최초커밋
This commit is contained in:
243
ess/0config_ess.asp
Normal file
243
ess/0config_ess.asp
Normal file
@@ -0,0 +1,243 @@
|
||||
<%
|
||||
'======================================================================
|
||||
'<27><> <20><> <20><> :
|
||||
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> :
|
||||
'<27>ۼ<EFBFBD><DBBC><EFBFBD><EFBFBD><EFBFBD> :
|
||||
'<27><> <20><> <20><> :
|
||||
'-----------------------------------------------------------------------
|
||||
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
'=======================================================================
|
||||
'
|
||||
'=======================================================================
|
||||
'Response.Expires = -1
|
||||
%><%
|
||||
'===========================================
|
||||
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
'-------------------------------------------
|
||||
dim tmp_flag_arr(20)
|
||||
'<27><><EFBFBD><EFBFBD> Flag<61><67><EFBFBD><EFBFBD>
|
||||
tmp_flag_arr(1) = "1" 'Flag1 <09>ް<EFBFBD><DEB0><EFBFBD>
|
||||
tmp_flag_arr(2) = "0" 'Flag2 Project<63><74><EFBFBD>ຸ<EFBFBD><E0BAB8><EFBFBD><EFBFBD>
|
||||
tmp_flag_arr(3) = "0" 'Flag3 <09><><EFBFBD>ݰ<EFBFBD><DDB0>꼭
|
||||
tmp_flag_arr(4) = "1" 'Flag4 <09><><EFBFBD><EFBFBD><EFBFBD>ٺ<EFBFBD><D9BA><EFBFBD><EFBFBD><EFBFBD>
|
||||
tmp_flag_arr(5) = "0" 'Flag5 <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
tmp_flag_arr(6) = "0" 'Flag6 <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD><C3BB>
|
||||
tmp_flag_arr(7) = "1" 'Flag7 <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
tmp_flag_arr(8) = "1" 'Flag8 <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
tmp_flag_arr(9) = "0" 'Flag9 <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><F1BAB8B0><EFBFBD>
|
||||
tmp_flag_arr(10) = "0" 'Flag10 <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǽ<EFBFBD>
|
||||
tmp_flag_arr(11) = "0" 'Flag11 <09><><EFBFBD><EFBFBD><EFBFBD>ޱ<EFBFBD><DEB1><EFBFBD><EFBFBD><EFBFBD>
|
||||
tmp_flag_arr(12) = "0" 'Flag12 <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
tmp_flag_arr(13) = "0" 'Flag13 <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD><C3BB>
|
||||
tmp_flag_arr(14) = "0" 'Flag14 <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ν<EFBFBD>û<EFBFBD><C3BB>
|
||||
tmp_flag_arr(15) = "0" 'Flag15 <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
tmp_flag_arr(16) = "0" 'Flag16 <09><><EFBFBD><EFBFBD><EFBFBD>ޱ<EFBFBD><DEB1><EFBFBD><EFBFBD><EFBFBD>
|
||||
|
||||
'###### <20><><EFBFBD><EFBFBD> tmp_flag_arr() <20><> <20>Ʒ<EFBFBD><C6B7><EFBFBD> tmp_team_flag <20><> 2009<30><39>3<EFBFBD><33>24<32><34> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ʰ<EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
'###### <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ǵ<EFBFBD> <20>μ<EFBFBD><CEBC><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ٲٷ<D9B2><D9B7><EFBFBD> Config<69><67> base<73><65> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD><DAB5><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>
|
||||
'-------------------------------------------
|
||||
'Document table<6C><65> d_order_cnt
|
||||
'77 <09><><EFBFBD>οϷ<CEBF>
|
||||
'99 <09>ݷ<EFBFBD>
|
||||
'===========================================
|
||||
|
||||
dim tmp_request_chk
|
||||
dim tmp_project_chk '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȹ<EFBFBD><C8B9> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
dim tmp_buy_chk '<27><>ǰ<EFBFBD><C7B0><EFBFBD>ż<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
|
||||
If Session("User_Number") = "" Then
|
||||
Session("User_Number") = "0"
|
||||
End If
|
||||
|
||||
'Depart<72><74><EFBFBD>̺<EFBFBD><CCBA><EFBFBD> <20>ִ<EFBFBD> d_code<64><65> <20>μ<EFBFBD><CEBC>Ǻ<EFBFBD> (<28>տ<EFBFBD><D5BF><EFBFBD>:d_mcode, <20>ڿ<EFBFBD><DABF><EFBFBD>:1<><31> tmp_ess<73><73> <20>տ<EFBFBD><D5BF><EFBFBD> 2<><32> tmp_ess<73><73> <20>ڿ<EFBFBD><DABF><EFBFBD>)
|
||||
' tmp_dcode(P_depart, ???) = tmp_ess<73><73> ù<><C3B9>° <20><>
|
||||
Dim tmp_dcode(100, 2)
|
||||
tmp_dcode(12, 1) = "3" '<27>ڷ<EFBFBD><DAB7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(DIN)
|
||||
tmp_dcode(12, 2) = "2" '<27>ڷ<EFBFBD><DAB7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(DIN)
|
||||
|
||||
tmp_dcode(17, 1) = "3" '<27><><EFBFBD><EFBFBD><EFBFBD>ý<EFBFBD><C3BD>ۺ<EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD>ͺм<CDBA>) (3, 1) 3<><33> <20><>, 1<><31> <20><>
|
||||
tmp_dcode(17, 2) = "1" '<27><><EFBFBD><EFBFBD><EFBFBD>ý<EFBFBD><C3BD>ۺ<EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD>ͺм<CDBA>) (3, 1) 3<><33> <20><>, 1<><31> <20><>
|
||||
|
||||
if Session("Depart_Code") = "18" and Session("job_code") = "08" then
|
||||
tmp_dcode(18, 1) = "3" '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (3, 3) 3<><33> <20><>, 3<><33> <20><>
|
||||
tmp_dcode(18, 2) = "3" '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (3, 3) 3<><33> <20><>, 3<><33> <20><>
|
||||
else
|
||||
tmp_dcode(18, 1) = "3" '<27>濵<EFBFBD><E6BFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(HR) (3, 5) 3<><33> <20><>, 5<><35> <20><>
|
||||
tmp_dcode(18, 2) = "5" '<27>濵<EFBFBD><E6BFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(HR) (3, 5) 3<><33> <20><>, 5<><35> <20><>
|
||||
end if
|
||||
|
||||
tmp_dcode(19, 1) = "3" '<27><><EFBFBD><EFBFBD><EFBFBD>к<EFBFBD><D0BA><EFBFBD><EFBFBD>Ͻ<EFBFBD>(<28>¶<EFBFBD><C2B6>μ<EFBFBD><CEBC><EFBFBD><EFBFBD><EFBFBD>) (3, 4) 3<><33> <20><>, 4<><34> <20><>
|
||||
tmp_dcode(19, 2) = "4" '<27><><EFBFBD><EFBFBD><EFBFBD>к<EFBFBD><D0BA><EFBFBD><EFBFBD>Ͻ<EFBFBD>(<28>¶<EFBFBD><C2B6>μ<EFBFBD><CEBC><EFBFBD><EFBFBD><EFBFBD>) (3, 4) 3<><33> <20><>, 4<><34> <20><>
|
||||
|
||||
tmp_dcode(20, 1) = "3" '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>COMM (3, 6) 3<><33> <20><>, 6<><36> <20><>
|
||||
tmp_dcode(20, 2) = "6" '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>COMM (3, 6) 3<><33> <20><>, 6<><36> <20><>
|
||||
|
||||
tmp_dcode(61, 1) = "60" 'PSBU 1
|
||||
tmp_dcode(61, 2) = "1" 'PSBU 1
|
||||
tmp_dcode(62, 1) = "60" 'PSBU 2
|
||||
tmp_dcode(62, 2) = "2" 'PSBU 2
|
||||
tmp_dcode(63, 1) = "60" 'PSBU 3
|
||||
tmp_dcode(63, 2) = "3" 'PSBU 3
|
||||
|
||||
' tmp_dcode(64, 1) = "61" 'PSBU 4
|
||||
tmp_dcode(64, 1) = "60" 'PSBU 4
|
||||
tmp_dcode(64, 2) = "4" 'PSBU 4
|
||||
' tmp_dcode(65, 1) = "60" 'PSBU 5
|
||||
' tmp_dcode(65, 2) = "5" 'PSBU 5
|
||||
tmp_dcode(66, 1) = "60" 'PSBU 6
|
||||
tmp_dcode(66, 2) = "6" 'PSBU 6
|
||||
|
||||
tmp_dcode(71, 1) = "70" 'MSBU 1
|
||||
tmp_dcode(71, 2) = "1" 'MSBU 1
|
||||
tmp_dcode(72, 1) = "70" 'MSBU 2
|
||||
tmp_dcode(72, 2) = "2" 'MSBU 2
|
||||
tmp_dcode(73, 1) = "70" 'MSBU 3
|
||||
tmp_dcode(73, 2) = "3" 'MSBU 3
|
||||
|
||||
' tmp_dcode(74, 1) = "71" 'MSBU 4
|
||||
|
||||
' tmp_dcode(81, 1) = "80" 'ABC
|
||||
' tmp_dcode(81, 2) = "1" 'ABC
|
||||
|
||||
' tmp_dcode(82, 1) = "82" 'DAO
|
||||
' tmp_dcode(82, 2) = "0" 'DAO
|
||||
|
||||
' tmp_dcode(90, 1) = "1" 'TF <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
' tmp_dcode(90, 2) = "0" 'TF <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
|
||||
tmp_dcode(91, 1) = "91" '<27>ۺ<EFBFBD><DBBA><EFBFBD>R&D <20><><EFBFBD><EFBFBD> <20>Ż<EFBFBD><C5BB><EFBFBD>
|
||||
tmp_dcode(91, 2) = "0" '<27>ۺ<EFBFBD><DBBA><EFBFBD>R&D <20><><EFBFBD><EFBFBD> <20>Ż<EFBFBD><C5BB><EFBFBD>
|
||||
tmp_dcode(65, 1) = "91" 'PSBU 5
|
||||
tmp_dcode(65, 2) = "1" 'PSBU 5
|
||||
|
||||
tmp_dcode(93, 1) = "93" '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>缾<EFBFBD><E7BCBE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
tmp_dcode(93, 2) = "0" '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>缾<EFBFBD><E7BCBE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
|
||||
'<27><><EFBFBD>μ<EFBFBD> <20>μ<EFBFBD><CEBC><EFBFBD> <20><> <20>ӿ<EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
Dim tmp_ess(99, 50)
|
||||
'tmp_ess(0, 0) = "20080101" 'ȸ<><C8B8> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> - <20><>ǥ<EFBFBD>̻<EFBFBD> <09><><EFBFBD>¿<EFBFBD>(2019<31><39> 1<><31> 2<><32><EFBFBD>ڷ<EFBFBD> <20><><EFBFBD><EFBFBD>)
|
||||
tmp_ess(0, 0) = "20190301" 'ȸ<><C8B8> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> - <20><>ǥ<EFBFBD>̻<EFBFBD> <09><><EFBFBD><EFBFBD>ö(2023<32><33> 11<31><31> 28<32><38><EFBFBD>ڷ<EFBFBD> <20><><EFBFBD><EFBFBD>)
|
||||
|
||||
tmp_ess(3, 0) = "<22><><EFBFBD><EFBFBD>" '<27><EFBFBD><EEBFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> (<28><>ǥ<EFBFBD><C7A5> <20><><EFBFBD><EFBFBD>)
|
||||
|
||||
'response.write Session("N_depart") &"________ "& Session("N_team")
|
||||
If Session("N_depart") = "S" AND Session("N_team") = "501" Then '501:Ű<><C5B0>
|
||||
tmp_ess(3, 0) = "20031102" ' ä<><C3A4><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
|
||||
ELSEIF Session("N_depart") = "S" AND Session("N_team") = "301" Then'301:DP
|
||||
tmp_ess(3, 0) = "20031102" ' ä<><C3A4><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
|
||||
ELSEIF Session("N_depart") = "S" AND Session("N_team") = "401" Then'401:<3A><><EFBFBD><EFBFBD>
|
||||
tmp_ess(3, 0) = "20031102" ' ä<><C3A4><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
|
||||
ELSEIF Session("N_depart") = "S" AND Session("N_team") = "601" Then'601:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>COMM
|
||||
tmp_ess(3, 0) = "20031102" ' ä<><C3A4><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
|
||||
ELSEIF Session("N_depart") = "S" AND (Session("N_team") = "101" OR Session("N_team") = "201") Then'DIN, DIN(QC)
|
||||
tmp_ess(3, 0) = "20151203" '//-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
' tmp_ess(2, 0) = "20151203" '//-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
End If
|
||||
|
||||
tmp_ess(3, 1) = "20160203" '<27><><EFBFBD><EFBFBD><EFBFBD>ͺм<CDBA><D0BC><EFBFBD> <20>鼺<EFBFBD><E9BCBA>(<28><EFBFBD><D7B7><EFBFBD>)
|
||||
tmp_ess(3, 3) = "20250301" '<27>ַ<EFBFBD><D6B7>ǰ<EFBFBD><C7B0>߱<DFB1> <20>ֳ<EFBFBD><D6B3><EFBFBD>(<28><EFBFBD><D7B7><EFBFBD>)
|
||||
tmp_ess(3, 4) = "20210302" '<27>¶<EFBFBD><C2B6>μ<EFBFBD><CEBC><EFBFBD><EFBFBD>̿<CCBF><EFBFBD> <20><>ä<EFBFBD><C3A4>(<28><EFBFBD><D7B7><EFBFBD>)
|
||||
tmp_ess(3, 6) = "20220901" '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>COMM <20>̼<EFBFBD><CCBC><EFBFBD>(<28><EFBFBD><D7B7><EFBFBD>)
|
||||
|
||||
tmp_ess(3, 2) = "20151203" 'DIN <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
' tmp_ess(2, 1) = "20181009" 'FW<46><EFBFBD> <20><><EFBFBD>ξ<EFBFBD>
|
||||
' tmp_ess(2, 2) = "20210405" '<27><><EFBFBD><EFBFBD><EFBFBD>Ͻ<EFBFBD><CFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
' tmp_ess(2, 3) = "20200103" 'QC<51><EFBFBD> <20><><EFBFBD>̾<EFBFBD>
|
||||
tmp_ess(3, 5) = "20191202" '<27>濵<EFBFBD><E6BFB5>ȭ<EFBFBD><C8AD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ü <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
|
||||
tmp_ess(4, 2) = "20191202" '<27>濵<EFBFBD><E6BFB5><EFBFBD><EFBFBD><EFBFBD>δ<EFBFBD><CEB4><EFBFBD> <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ü <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<28><><EFBFBD>ݰ<EFBFBD><DDB0>꼭 ó<><C3B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
|
||||
tmp_ess(4, 3) = "20210403" '<27>濵<EFBFBD><E6BFB5><EFBFBD><EFBFBD><EFBFBD>δ<EFBFBD><CEB4><EFBFBD> <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<28>ް<EFBFBD><DEB0><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD>ٺ<EFBFBD><D9BA><EFBFBD><EFBFBD><EFBFBD> ó<><C3B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
|
||||
tmp_ess(4, 4) = "20210403" '<27>濵<EFBFBD><E6BFB5><EFBFBD><EFBFBD><EFBFBD>δ<EFBFBD><CEB4><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ó<><C3B3>, <20><><EFBFBD><EFBFBD><EFBFBD>Է<EFBFBD> <20><><EFBFBD><EFBFBD>)
|
||||
|
||||
|
||||
' -- 2025-07-21 jelee <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
' <20>ۺ<EFBFBD><DBBA><EFBFBD>
|
||||
tmp_ess(60, 0) = "20160205" 'P1 <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
|
||||
' tmp_ess(60, 1) = "20160205" 'PSBU1 <09><><EFBFBD><EFBFBD>
|
||||
tmp_ess(60, 2) = "20140804" 'PSBU2 <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28><EFBFBD><D7B7><EFBFBD>)
|
||||
' tmp_ess(60, 3) = "20190101" 'PSBU3 <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28><EFBFBD><D7B7><EFBFBD>)
|
||||
tmp_ess(60, 4) = "20190102" 'PSBU4 <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28><EFBFBD><D7B7><EFBFBD>)
|
||||
' tmp_ess(60, 5) = "20230704" 'PSBU5 <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28><EFBFBD><D7B7><EFBFBD>)
|
||||
tmp_ess(60, 6) = "20191001" 'PSBU6 <09><>â<EFBFBD><C3A2>(<28><EFBFBD><D7B7><EFBFBD>)
|
||||
|
||||
'2<><32><EFBFBD><EFBFBD> <20>϶<EFBFBD> <20>츮<EFBFBD><ECB8AE> <20><>.
|
||||
' tmp_ess(61, 0) = "20210107" 'P2 <20>Ż<EFBFBD><C5BB><EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
|
||||
' tmp_ess(61, 4) = "20190102" 'PSBU4 <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28><EFBFBD><D7B7><EFBFBD>)
|
||||
' tmp_ess(61, 5) = "20210107" 'PSBU5 <09>Ż<EFBFBD><C5BB><EFBFBD> PSBU5 <20><EFBFBD><D7B7><EFBFBD> <20><><EFBFBD><EFBFBD> <20>Ѱ<EFBFBD><D1B0><EFBFBD><D7B7><EFBFBD><EFBFBD><EFBFBD> <20>븮 <20><><EFBFBD><EFBFBD>
|
||||
' tmp_ess(61, 5) = "20230704" 'PSBU5 <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28><EFBFBD><D7B7><EFBFBD>)
|
||||
' tmp_ess(61, 6) = "20191001" 'PSBU6 <09><>â<EFBFBD><C3A2>(<28><EFBFBD><D7B7><EFBFBD>)
|
||||
|
||||
' <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
tmp_ess(70, 0) = "20190601" 'M1 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
|
||||
tmp_ess(70, 1) = "20160301" 'MSBU1 <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28><EFBFBD><D7B7><EFBFBD>)
|
||||
tmp_ess(70, 2) = "20221101" 'MSBU2 <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28><EFBFBD><D7B7><EFBFBD>)
|
||||
tmp_ess(70, 3) = "20210701" 'MSBU2 <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28><EFBFBD><D7B7><EFBFBD>)
|
||||
|
||||
'2<><32><EFBFBD><EFBFBD> <20>϶<EFBFBD> <20>츮<EFBFBD><ECB8AE> <20><>.
|
||||
' tmp_ess(71, 0) = "20190301" 'M2 <20><><EFBFBD><EFBFBD>ö(<28><>ǥ) 2024-06-17 M2<4D><32><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>ö<EFBFBD><C3B6>ǥ<EFBFBD><C7A5> <20>븮 <20><><EFBFBD><EFBFBD>
|
||||
' tmp_ess(71, 3) = "20210703" 'MSBU3 <09><><EFBFBD>ذ<EFBFBD>(<28>Ѱ<EFBFBD> <20><EFBFBD><D7B7><EFBFBD>)
|
||||
|
||||
' AIBD
|
||||
' tmp_ess(80, 0) = "20190301" 'AIBD <09><><EFBFBD><EFBFBD>ö(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>)
|
||||
' tmp_ess(80, 1) = "20210907" 'AIBD <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28>Ѱ<EFBFBD> <20><EFBFBD><D7B7><EFBFBD>)
|
||||
|
||||
' TF <20><><EFBFBD><EFBFBD>ö<EFBFBD><C3B6><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD> <20><><EFBFBD>ڵ<EFBFBD>
|
||||
' tmp_ess(90, 0) = "20000201" 'TF <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
|
||||
tmp_ess(91, 0) = "20210107" '<27>ۺ<EFBFBD><DBBA><EFBFBD>R&D<><44><EFBFBD><EFBFBD> <09>Ż<EFBFBD><C5BB><EFBFBD>
|
||||
tmp_ess(91, 1) = "20150302" '<27>ۺ<EFBFBD><DBBA><EFBFBD>R&D<><44><EFBFBD><EFBFBD> - <20>ۺ<EFBFBD><DBBA><EFBFBD>5<EFBFBD><EFBFBD> <20><EFBFBD><D7B7><EFBFBD> <09><>ȯ
|
||||
|
||||
tmp_ess(93, 0) = "20210801" '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>缾<EFBFBD><E7BCBE> <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
|
||||
|
||||
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> üũ
|
||||
if replace(replace(Request.ServerVariables("REMOTE_ADDR"), "10.10.20.", "10.10.13."), "10.10.17.", "10.10.13.") = session("admin_ip") then
|
||||
tmp_admin_chk = "1"
|
||||
else
|
||||
tmp_admin_chk = "0"
|
||||
end if
|
||||
'ȸ<><C8B8> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
if int(Session("User_Number")) = int(tmp_ess(4, 2)) then
|
||||
tmp_project_chk = "1"
|
||||
else
|
||||
tmp_project_chk = "0"
|
||||
end if
|
||||
'<27>ް<EFBFBD><DEB0><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
if int(Session("User_Number")) = int(tmp_ess(4, 3)) or int(Session("User_Number")) = int(tmp_ess(4, 2)) or int(Session("User_Number")) = int("20210502") or int(Session("User_Number")) = int("20191202") then
|
||||
tmp_request_chk = "1"
|
||||
else
|
||||
tmp_request_chk = "0"
|
||||
end if
|
||||
'<27><>ǰ<EFBFBD><C7B0><EFBFBD>ż<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
if int(Session("User_Number")) = int(tmp_ess(4, 4)) then
|
||||
tmp_buy_chk = "1"
|
||||
else
|
||||
tmp_buy_chk = "0"
|
||||
end if
|
||||
|
||||
query = ""
|
||||
query = query & " SELECT COUNT(*) as cnt FROM person "
|
||||
query = query & " WHERE p_depart='18' AND p_resign='0' AND p_job_part <> '08' "
|
||||
'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
||||
query = query & " AND p_team_place < 3 " ' <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
||||
query = query & " AND p_no = '" & Session("User_Number") & "' "
|
||||
'<27>濵<EFBFBD><E6BFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Check ~
|
||||
tmp_support_chk = "0"
|
||||
|
||||
set tmp_res = server.CreateObject("ADODB.RECORDSET")
|
||||
|
||||
tmp_res.open query, adoconn, adopenstatic, adlockreadonly
|
||||
tmp_support_chk = tmp_res("cnt")
|
||||
tmp_res.close
|
||||
|
||||
set tmp_res = nothing
|
||||
|
||||
|
||||
|
||||
Dim my_pos
|
||||
'============================================================================
|
||||
'<27>ۼ<EFBFBD><DBBC><EFBFBD><EFBFBD><EFBFBD> <20><>ġ<EFBFBD><C4A1> <20>ľ<EFBFBD>(<28><><EFBFBD><EFBFBD> 0:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, 1:<3A><><EFBFBD><EFBFBD>, 2:<3A><><EFBFBD><EFBFBD>, 3:<3A>μ<EFBFBD><CEBC><EFBFBD>, 4:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, 5:<3A>ӿ<EFBFBD>, 6:<3A><><EFBFBD><EFBFBD>, 7:<3A><>ȸ<EFBFBD><C8B8>, 8:ȸ<><C8B8>)
|
||||
my_pos = Session("teamplace")
|
||||
'============================================================================
|
||||
%>
|
||||
241
ess/Donfile_folder.asp
Normal file
241
ess/Donfile_folder.asp
Normal file
@@ -0,0 +1,241 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<script>
|
||||
window.resizeTo(400, 450);
|
||||
</script>
|
||||
<%
|
||||
set rsp = server.CreateObject("ADODB.RECORDSET")
|
||||
set rsf = server.CreateObject("ADODB.RECORDSET")
|
||||
|
||||
d_no = request("d_no")
|
||||
dcode = request("dcode")
|
||||
'Response.Write d_no & "<BR>"
|
||||
|
||||
if dcode = "0" then
|
||||
tmp_type = "consultation"
|
||||
end if
|
||||
|
||||
Dim RootDir
|
||||
Dim tmp_folder(50, 50)
|
||||
|
||||
|
||||
tmp_y = right(year(date), 2)
|
||||
|
||||
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
'<27><><EFBFBD><EFBFBD> <20>ٿ<EFBFBD><D9BF>ε<EFBFBD> <20><><EFBFBD>ɿ<EFBFBD><C9BF>θ<EFBFBD> üũ
|
||||
'tmp_downok<6F><6B> 1<≯<EFBFBD> <20>ٿ<D9BF><EEB0A1> 0<≯<EFBFBD> <20>Ұ<EFBFBD><D2B0><EFBFBD>
|
||||
tmp_downok = 1
|
||||
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
|
||||
'RootDir = "D:\project_db\data\" & tmp_y & "\consultation\" & d_no & "\"
|
||||
RootDir = "D:\project_db\data\" & tmp_y & "\Document\" & tmp_type & "\"' & d_no & "\"
|
||||
|
||||
tmp_folder_cnt = 1
|
||||
|
||||
call getFolder(RootDir, 0, true, true)
|
||||
|
||||
'===================================================================
|
||||
' func : getFolder(<28><><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD>)
|
||||
' param :
|
||||
' memo :
|
||||
'===================================================================
|
||||
function getFolder(sPath, iDepth, bSonFdr, bShowFile)
|
||||
Dim fso, objFolder
|
||||
Dim folders, folder
|
||||
Dim files, file
|
||||
|
||||
Dim sSpace
|
||||
sSpace = ""
|
||||
|
||||
for i=0 to iDepth
|
||||
sSpace = sSpace & ":tab:"
|
||||
next
|
||||
|
||||
'Response.Write sPath & " 1<BR>"
|
||||
Set fso = CreateObject("Scripting.FileSystemObject")
|
||||
Set objFolder = fso.GetFolder(sPath)
|
||||
set fso = nothing
|
||||
set folders = objFolder.SubFolders
|
||||
Set files = objFolder.Files
|
||||
set objFolder = nothing
|
||||
For Each folder in folders
|
||||
if instr(1, folder, d_no) then
|
||||
'Response.Write folder & "<BR>"
|
||||
'<27>ش<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
Set fso = CreateObject("Scripting.FileSystemObject")
|
||||
Set objFolder = fso.GetFolder(sPath & "\" & folder.name)
|
||||
set fso = nothing
|
||||
Set hfiles = objFolder.Files
|
||||
'Response.Write sPath & folder.name & "<BR>"
|
||||
tmp_folder(tmp_folder_cnt,0) = sPath & folder.name
|
||||
i = 1
|
||||
For Each file in hfiles
|
||||
|
||||
tmp_folder(tmp_folder_cnt,i) = file.name
|
||||
i = i + 1
|
||||
Next
|
||||
|
||||
tmp_folder_cnt = tmp_folder_cnt + 1
|
||||
|
||||
'++ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
if bSonFdr then
|
||||
call getFolder(sPath & folder.name & "\", iDepth+1, bSonFdr, bShowFile)
|
||||
end if
|
||||
end if
|
||||
Next
|
||||
|
||||
'++ <20><><EFBFBD>ϵ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>شٸ<D8B4>
|
||||
if bShowFile then
|
||||
For Each file in files
|
||||
'response.write sSpace& "<font color='#5D5D5D'>[<5B><>]</font>" &file.name & "<br>"& vbCRLF
|
||||
Next
|
||||
end if
|
||||
end function
|
||||
%>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ks_c_5601-1987">
|
||||
<!--meta http-equiv="content-type" content="text/html; charset=euc-kr"-->
|
||||
<LINK rel="stylesheet" type="text/css" href="/lib/text.css">
|
||||
<title>
|
||||
KRI INTRANET
|
||||
</title>
|
||||
<script language=javascript>
|
||||
function clsit() {
|
||||
self.close();
|
||||
}
|
||||
|
||||
function downit(z,x) {
|
||||
document.pms.action = 'Dfiledown_folder.asp?DnFilePath=' + z + '&d_no=' + document.pms.d_no.value;
|
||||
document.pms.submit();
|
||||
}
|
||||
|
||||
function chkit() {
|
||||
document.pms.action = 'onfile_req.asp';
|
||||
document.pms.submit();
|
||||
}
|
||||
|
||||
function upit() {
|
||||
|
||||
if (document.pms.down_tip.value == '') {
|
||||
alert('<27><> <20>Է<EFBFBD><D4B7>϶<EFBFBD><CFB6><EFBFBD> <20>ſ<EFBFBD>ȿ~ -0-;;');
|
||||
document.pms.down_tip.focus();
|
||||
return false;
|
||||
}
|
||||
document.pms.action = 'upcoment_ok.asp';
|
||||
document.pms.submit();
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<meta http-equiv="refresh" content="300;url=onfile.asp">
|
||||
<body>
|
||||
<form name="pms" method="post">
|
||||
|
||||
<input type="hidden" value="<%=d_no%>" name="d_no">
|
||||
|
||||
<table border="0" cellspacing="0" cellpadding="0" width="350">
|
||||
<tr>
|
||||
<td valign="top">
|
||||
<table border="0" cellspacing="0" cellpadding="0" width="100%">
|
||||
<tr>
|
||||
<td align="center"><font color="blue" size="3"><b><%=tmp_name%></b></font>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<%
|
||||
tmp_folder_link = ""
|
||||
'Response.Write tmp_folder(2,0)
|
||||
for j = 1 to ubound(tmp_folder)
|
||||
%>
|
||||
<% if tmp_folder(j,0) <> "" then %>
|
||||
<table border="0" cellspacing="0" cellpadding="0" width="100%">
|
||||
<tr>
|
||||
<td>
|
||||
<%
|
||||
tmp_subject_folder = ""
|
||||
|
||||
tmp_aa = split(tmp_folder(j,0), "\")
|
||||
tmp_subject_cnt = left(tmp_aa(ubound(tmp_aa)), 1)
|
||||
|
||||
tmp_subject_name = "<BR>" & tmp_aa(ubound(tmp_aa))
|
||||
tmp_link = tmp_folder(j,0)
|
||||
%>
|
||||
<b><%=tmp_subject_name%></b>
|
||||
<table border="1" cellspacing="0" cellpadding="5" width="100%">
|
||||
<tr>
|
||||
<td>
|
||||
<%
|
||||
tmp = 0
|
||||
|
||||
tmp_folder(j,0) = replace(tmp_folder(j,0),"\","/")
|
||||
|
||||
'Response.Write RootDir & "<BR>"
|
||||
'Response.Write tmp_folder(j,0) & "<BR>"
|
||||
'Response.Write mid(tmp_folder(j,0), len(RootDir) + 1, len(tmp_folder(j,0)) - len(RootDir)) & "<BR>"
|
||||
tmp_tmp_folder = mid(tmp_folder(j,0), len(RootDir) + 1, len(tmp_folder(j,0)) - len(RootDir))
|
||||
'Response.Write tmp_tmp_folder & " " & instr(1, tmp_tmp_folder, "/") & "<BR>"
|
||||
|
||||
'------------------------------------------------------
|
||||
'6<><36> <20><><EFBFBD><EFBFBD><EFBFBD>߿<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ٿ<EFBFBD><D9BF>ε<EFBFBD> <20>ϰ<EFBFBD><CFB0><EFBFBD> <20><> (<28><><EFBFBD><EFBFBD> <20>ش<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> root<6F><74> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ؾ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>)
|
||||
'<27><>) 6Man <20><><EFBFBD><EFBFBD> <20>ؿ<EFBFBD> <20><><EFBFBD><EFBFBD> <20>Ӹ<EFBFBD> <20>ƴ϶<C6B4> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ؾ<EFBFBD> <20><>
|
||||
'if instr(1, tmp_tmp_folder, "/") then
|
||||
'
|
||||
'else
|
||||
' tmp_folder_link = tmp_folder(j,0)
|
||||
'end if
|
||||
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
if left(tmp_tmp_folder, 4) = tmp_tmp_folder_base then
|
||||
else
|
||||
tmp_folder_link = tmp_folder(j,0)
|
||||
tmp_tmp_folder_base = left(tmp_tmp_folder, 4)
|
||||
end if
|
||||
'------------------------------------------------------
|
||||
|
||||
'------------------------------------------------------
|
||||
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ٿ<EFBFBD><D9BF>ε<EFBFBD> <20>ϰ<EFBFBD><CFB0><EFBFBD> <20><>
|
||||
'<27>ѱ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ȵdz<C8B5>.. <20><>.<2E><>
|
||||
'if isnumeric(left(tmp_tmp_folder, 1)) then
|
||||
' tmp_folder_link = tmp_folder(j,0)
|
||||
'else
|
||||
'
|
||||
'end if
|
||||
'------------------------------------------------------
|
||||
|
||||
'Response.Write j & " " & tmp_folder_link & "<BR>"
|
||||
|
||||
for i = 1 to ubound(tmp_folder,2)
|
||||
if tmp_folder(j,i) <> "" then
|
||||
|
||||
if tmp_downok = 1 then
|
||||
Response.Write "<a href=javascript:downit('" & Server.UrlEncode(tmp_folder_link) & "')>" & tmp_subject_folder & tmp_folder(j,i) & "</a><BR>"
|
||||
else
|
||||
Response.Write tmp_subject_folder & tmp_folder(j,i) & "<BR>"
|
||||
end if
|
||||
tmp = 1
|
||||
end if
|
||||
next
|
||||
|
||||
'if tmp = 0 then
|
||||
'Response.Write "<center><font color='red'><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD></b></font></center>"
|
||||
'end if
|
||||
%>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<% end if %>
|
||||
<%
|
||||
next
|
||||
%>
|
||||
<br>
|
||||
<table border="0" cellspacing="0" cellpadding="0" width="100%">
|
||||
<tr>
|
||||
<td align="center">
|
||||
<input type="button" value="<22><> <20><>" onclick="clsit()">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
599
ess/allow_ok.asp
Normal file
599
ess/allow_ok.asp
Normal file
@@ -0,0 +1,599 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<!-- #include virtual = "include/holiday_count.asp" -->
|
||||
<%
|
||||
set rsp = server.CreateObject("ADODB.RECORDSET")
|
||||
set rsm = server.CreateObject("ADODB.RECORDSET")
|
||||
|
||||
d_no = request("d_no")
|
||||
approve_pass = request("approve_pass")
|
||||
tmp_pass_psn = request("tmp_pass_psn")
|
||||
title = request("title")
|
||||
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
|
||||
query = " SELECT * "
|
||||
query = query & " FROM Document as a with(nolock) "
|
||||
query = query & " INNER JOIN <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> as b with(nolock) on a.d_no = b.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ "
|
||||
query = query & " WHERE a.d_no='" & d_no & "' "
|
||||
|
||||
rsc.Open query, adoConn, 1
|
||||
if rsc.RecordCount > 0 then
|
||||
'----------------------------------------------------
|
||||
if rsc("d_order_cnt") <> "77" then
|
||||
tmp = split(rsc("target99"), "^^")
|
||||
for i = 0 to ubound(tmp)
|
||||
if trim(tmp(i)) = "" then
|
||||
if approve_pass = "1" then
|
||||
tmp(i) = "<22><><EFBFBD><EFBFBD>"
|
||||
else
|
||||
tmp(i) = Session("loginuser") & "<BR>" & replace(date(), "-", "") & "<BR>" & Session("User_Number")
|
||||
end if
|
||||
tmp_i = i
|
||||
exit for
|
||||
end if
|
||||
|
||||
'response.write "<br> tmp(i) = "& tmp(i)
|
||||
'response.write "<br> i = "& i
|
||||
next
|
||||
'----------------------------------------------------
|
||||
'target100<30><30> <20><>¥ <20><><EFBFBD><EFBFBD>
|
||||
tmp2 = split(rsc("target100"), "^^")
|
||||
tmp2(tmp_i) = month(now()) & " / " & day(now())
|
||||
'----------------------------------------------------
|
||||
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڸ<EFBFBD> <20><><EFBFBD><EFBFBD>Ű<EFBFBD><C5B0><EFBFBD><EFBFBD> <20>ϳ<EFBFBD><CFB3><EFBFBD> <20><><EFBFBD><EFBFBD> <20><>
|
||||
tmp_i = tmp_i + 1
|
||||
|
||||
for i = int(rsc("d_order_cnt")) + 1 to ubound(tmp) + 1
|
||||
if rsc("d_order" & i) = "<22><><EFBFBD><EFBFBD>" or rsc("d_order" & i) = "NO" then
|
||||
tmp_order_value = "<22><><EFBFBD><EFBFBD>"
|
||||
|
||||
if rsc("d_order" & i) = "<22><><EFBFBD><EFBFBD>" then
|
||||
tmp_1 = "1"
|
||||
else
|
||||
tmp_1 = "0"
|
||||
end if
|
||||
|
||||
if tmp_1 = "1" then
|
||||
response.write tmp_order_value
|
||||
tmp(tmp_i) = tmp_order_value
|
||||
tmp_i = tmp_i + 1
|
||||
end if
|
||||
|
||||
else
|
||||
d_order_cnt = i
|
||||
d_orders = rsc("d_order" & i)
|
||||
exit for
|
||||
end if
|
||||
next
|
||||
|
||||
'<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ϸ<EFBFBD>
|
||||
if i > ubound(tmp) + 1 then
|
||||
d_order_cnt = "77"
|
||||
'if rsc("d_flag") = "1" or rsc("d_flag") = "4" then '<27><><EFBFBD><EFBFBD><EFBFBD>ڿ<EFBFBD><DABF><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ϴ°͵<C2B0>(<28>ް<EFBFBD><DEB0><EFBFBD>,<2C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
|
||||
' d_orders = tmp_ess(4, 3)
|
||||
' if rsc("login_p_no") = "20220801" or rsc("login_p_no") = "20190703" or rsc("login_p_no") = "20191202" then ' <20>翵<EFBFBD><E7BFB5> å<>Ӵ<EFBFBD>, <20>Ǵٿ<C7B4> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ڵ<EFBFBD>ó<EFBFBD><C3B3>
|
||||
' d_orders = rsc("login_p_no")
|
||||
' end if
|
||||
'else
|
||||
d_orders = rsc("login_p_no")
|
||||
'end if
|
||||
end if
|
||||
|
||||
'//-- hwkim 20230215 test
|
||||
'response.write "<br> tmp = "& ubound(tmp)
|
||||
'response.write "<br> i = "& i
|
||||
'response.write "<br> ubound(tmp) + 1 = "& (ubound(tmp) + 1 )
|
||||
'response.write "<br> d_order_cnt = "& d_order_cnt
|
||||
'response.write "<br> rsc('d_order_cnt') = "& rsc("d_order_cnt")
|
||||
'response.write "<br>"
|
||||
'response.end
|
||||
|
||||
target99 = ""
|
||||
for i = 0 to ubound(tmp)
|
||||
if i <> 0 then
|
||||
target99 = target99 & "^^"
|
||||
end if
|
||||
target99 = target99 & tmp(i)
|
||||
next
|
||||
|
||||
target100 = ""
|
||||
for i = 0 to ubound(tmp2)
|
||||
if i <> 0 then
|
||||
target100 = target100 & "^^"
|
||||
end if
|
||||
target100 = target100 & tmp2(i)
|
||||
next
|
||||
if rsc("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>") = "<22>ް<EFBFBD><DEB0><EFBFBD>" and d_order_cnt = "77" Then
|
||||
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ó<><C3B3><EFBFBD><EFBFBD> <20>ڵ<EFBFBD><DAB5><EFBFBD><EFBFBD><EFBFBD> job<6F><62><EFBFBD>̺<EFBFBD><CCBA><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>
|
||||
'tmp_1 Job_Code, tmp_2 <20><><EFBFBD><EFBFBD> <20>ð<EFBFBD>(h)
|
||||
if rsc("target3") = "<22><><EFBFBD><EFBFBD> <20>ް<EFBFBD>" then
|
||||
tmp_1 = "8"
|
||||
tmp_2 = "8"
|
||||
elseif rsc("target3") = "<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>" then
|
||||
tmp_1 = "10"
|
||||
tmp_2 = "4"
|
||||
elseif rsc("target3") = "<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>" then
|
||||
tmp_1 = "11"
|
||||
tmp_2 = "4"
|
||||
elseif instr(1, rsc("target3"), "<22><><EFBFBD><EFBFBD>") then
|
||||
tmp_1 = "18"
|
||||
tmp_2 = "8"
|
||||
elseif instr(1, rsc("target3"), "<22><><EFBFBD><EFBFBD>") then
|
||||
tmp_1 = "12"
|
||||
tmp_2 = "8"
|
||||
elseif rsc("target3") = "<22><><EFBFBD><EFBFBD> <20>ް<EFBFBD>" then
|
||||
tmp_1 = "14"
|
||||
tmp_2 = "8"
|
||||
elseif rsc("target3") = "<22>Ƚ<EFBFBD> <20>ް<EFBFBD>" then
|
||||
tmp_1 = "15"
|
||||
tmp_2 = "8"
|
||||
elseif rsc("target3") = "<22><><EFBFBD><EFBFBD> <20>ް<EFBFBD>" then
|
||||
tmp_1 = "16"
|
||||
tmp_2 = "8"
|
||||
elseif instr(1, rsc("target3"), "<22><><EFBFBD><EFBFBD>") then
|
||||
tmp_1 = "17"
|
||||
tmp_2 = "8"
|
||||
elseif rsc("target3") = "<22><>ü <20><EFBFBD>" then
|
||||
tmp_1 = "9"
|
||||
tmp_2 = "8"
|
||||
elseif rsc("target3") = "<22><>Ÿ <20>ް<EFBFBD>" then
|
||||
tmp_1 = "19"
|
||||
tmp_2 = "8"
|
||||
end if
|
||||
|
||||
for i = cdate(rsc("target1")) to cdate(rsc("target2"))
|
||||
Call day_off_chk(year(i), month(i), day(i))
|
||||
if day_off <> "true" then
|
||||
p_no = rsc("login_p_no") ''<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
|
||||
query = " SELECT * "
|
||||
query = query & " FROM Job_List "
|
||||
query = query & " WHERE p_no = '" & p_no & "' "
|
||||
query = query & " AND j_contents = '" & tmp_1 & "' "
|
||||
query = query & " AND j_date = '" & i & "' "
|
||||
query = query & " AND j_Flag = '1' "
|
||||
|
||||
adoRs.Open Query, adoConn,1' adOpenStatic, adLockReadOnly
|
||||
If adoRs.RecordCount > 0 Then
|
||||
tmp_proc = "1"
|
||||
else
|
||||
tmp_proc = "0"
|
||||
End If
|
||||
adoRs.Close
|
||||
'+++++++++++------------------------------------------------
|
||||
if tmp_proc = "0" then
|
||||
query = " "
|
||||
query = query & " INSERT INTO Job_List(p_no, j_date, j_p_sn, j_contents, j_time, j_ip) VALUES "
|
||||
query = query & " (" & p_no & ", '" & i & "', '99999', " & tmp_1 & ", " & tmp_2 & ", '" & Request.ServerVariables("REMOTE_ADDR") & "') "
|
||||
adoconn.execute query
|
||||
End if
|
||||
End if
|
||||
Next
|
||||
End if
|
||||
if rsc("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>") = "<22><><EFBFBD><EFBFBD><EFBFBD>ٺ<EFBFBD><D9BA><EFBFBD><EFBFBD><EFBFBD>" and d_order_cnt = "77" Then
|
||||
p_no = rsc("login_p_no") ''<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
p_name = rsc("login_<6E≯<EFBFBD>") '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20≯<EFBFBD>
|
||||
for i = 1 to 15
|
||||
if not isnull(rsc("target" & i)) then
|
||||
lgap = split(rsc("target" & i), "^^")
|
||||
|
||||
for j=0 to 5
|
||||
lgap(j) = replace(lgap(j)," ","")
|
||||
lgap(j) = replace(lgap(j)," ","")
|
||||
next
|
||||
if not isEmpty(lgap(4)) and not isnull(lgap(4)) and lgap(4) <> " " and trim(lgap(4)) <> "" then
|
||||
query = "insert into login (name, p_no, [date], [time], real_time, login_out, ip, edit_reason) values ("
|
||||
query = query & "'" & rsc("login_<6E≯<EFBFBD>") & "', "
|
||||
query = query & "'" & rsc("login_p_no") & "', "
|
||||
query = query & "'" & lgap(0) & "', "
|
||||
query = query & "'" & replace(lgap(4),":","") & "', "
|
||||
query = query & "'" & FormatDateTime(date,0) & " " & FormatDateTime(time,4) & "', "
|
||||
query = query & "'login-<2D><><EFBFBD><EFBFBD><EFBFBD>ٺ<EFBFBD><D9BA><EFBFBD><EFBFBD><EFBFBD>', "
|
||||
query = query & "'" & Request.ServerVariables("remote_host") & "', "
|
||||
query = query & "'" & lgap(3) & "-" & session("User_Number") & "') "
|
||||
'Response.Write query & "<BR>"
|
||||
adoConn.Execute query
|
||||
end if
|
||||
|
||||
if not isEmpty(lgap(5)) and not isnull(lgap(5)) and lgap(5) <> " " and trim(lgap(5)) <> "" then
|
||||
query = "insert into login (name, p_no, [date], [time], real_time, login_out, ip, edit_reason) values ("
|
||||
query = query & "'" & rsc("login_<6E≯<EFBFBD>") & "', "
|
||||
query = query & "'" & rsc("login_p_no") & "', "
|
||||
if mid(lgap(5),1,2) >= 00 and mid(lgap(5),1,2) < 06 then ''00<30>ú<EFBFBD><C3BA><EFBFBD> 06<30><36> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD≯<EFBFBD> <20><>¥<EFBFBD><C2A5> 1<><31> <20><><EFBFBD>Ͽ<EFBFBD> <20><>
|
||||
query = query & "'" & cdate(lgap(0)) + 1 & "', "
|
||||
else
|
||||
query = query & "'" & lgap(0) & "', "
|
||||
end if
|
||||
query = query & "'" & replace(lgap(5),":","") & "', "
|
||||
query = query & "'" & FormatDateTime(date,0) & " " & FormatDateTime(time,4) & "', "
|
||||
query = query & "'login-<2D><><EFBFBD><EFBFBD><EFBFBD>ٺ<EFBFBD><D9BA><EFBFBD><EFBFBD><EFBFBD>', "
|
||||
query = query & "'" & Request.ServerVariables("remote_host") & "', "
|
||||
query = query & "'" & lgap(3) & "-" & session("User_Number") & "') "
|
||||
'Response.Write query & "<BR>"
|
||||
adoConn.Execute query
|
||||
end if
|
||||
end if
|
||||
next
|
||||
End if
|
||||
|
||||
if rsc("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>") = "ǰ<>Ǽ<EFBFBD>" and d_order_cnt = "77" and instr(1, target99, Session("loginuser")) = false then
|
||||
target99 = target99 & "^^" & Session("loginuser") & "<BR>" & replace(date(), "-", "") & "<BR>" & Session("User_Number")
|
||||
target100 = target100 & "^^" & month(now()) & " / " & day(now())
|
||||
end if
|
||||
|
||||
If rsc("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǽ<EFBFBD>" Then
|
||||
If d_order_cnt = "77" then
|
||||
if rsc("d_order_cnt") <> "77" then
|
||||
query = " SELECT t.p_sn, s_gubun, SUM(s_sum) as s_sum "
|
||||
query = query & " FROM (select tmp.p_sn, tmp.m_name, tmp.m_jumin, tmp.work_dt, "
|
||||
query = query & " case when tmp.s_gubun like '<27>߰<EFBFBD>%' then ( "
|
||||
query = query & " select top 1 s_gubun from t_neakeun_pay "
|
||||
query = query & " where attribute01 = tmp.attribute01 and s_gubun not like '<27>߰<EFBFBD>%' order by s_wan desc ) "
|
||||
query = query & " else tmp.s_gubun end as s_gubun, s_sum, attribute01, attribute05 from t_neakeun_pay tmp) t "
|
||||
query = query & " left outer join neakeun_work nw on t.attribute01 = nw.id "
|
||||
query = query & " WHERE isnull(t.attribute05,'') = '" & rsc("d_no") & "' "
|
||||
query = query & " group by s_gubun, t.p_sn "
|
||||
|
||||
rsp.open query, adoconn,adopenstatic, adlockreadonly
|
||||
do while not rsp.eof
|
||||
directQuery = " UPDATE direct_cost "
|
||||
directQuery = directQuery & " set act_money = act_money + " & rsp("s_sum") & " , "
|
||||
directQuery = directQuery & " cha_money = cha_money + " & rsp("s_sum") & " "
|
||||
directQuery = directQuery & " where p_child_sn = '" & rsp("p_sn") & "' "
|
||||
directQuery = directQuery & " and del_yes_no = 'no' and sebu = '" & rsp("s_gubun") & "' "
|
||||
|
||||
dbin.Open adoConn
|
||||
dbin.Execute directQuery, i
|
||||
dbin.Close
|
||||
|
||||
if i < 1 then
|
||||
Query = "select <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ as krc_no from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> "
|
||||
query = query & " where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> = '" & replace(title, " ", "") & "' "
|
||||
query = query & " and substring(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ,5,4) = '" & year(date) & "' "
|
||||
|
||||
query = query & " order by <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ"
|
||||
|
||||
Rs.open Query, adoconn,adopenstatic, adlockreadonly
|
||||
|
||||
if Rs.recordcount <= 0 then
|
||||
krc_no = 0
|
||||
else
|
||||
Rs.movelast
|
||||
tmpstr = split(trim(Rs("krc_no")),"-")
|
||||
krc_no = tmpstr(3)
|
||||
end if
|
||||
Rs.close
|
||||
krc_no = int(krc_no) + 1
|
||||
tmpstr = "KRC-" & year(date) & "-"
|
||||
tmpstr = tmpstr & "X-"
|
||||
krc_no = tmpstr & ZeroFormat(krc_no,5)
|
||||
|
||||
Query = " insert into direct_cost(p_sn, krc_no, p_subject, hangmok, sebu, act_money, "
|
||||
Query = Query & " modify_date, modify_time, modify_user, modify_user_code, modify_ip, del_yes_no, cost_type, p_child_sn) "
|
||||
Query = Query & " values( "
|
||||
Query = Query & " left('" & rsp("p_sn") & "',7), "
|
||||
Query = Query & " '" & krc_no & "', "
|
||||
Query = Query & " (select p_subject from T_PROJECT_METHOD where p_child_sn = '" & rsp("p_sn") & "'), "
|
||||
Query = Query & " '49', "
|
||||
Query = Query & " '" & rsp("s_gubun") & "', "
|
||||
Query = Query & " '" & rsp("s_sum") & "', "
|
||||
Query = Query & " convert(char(10),GETDATE(),23), "
|
||||
Query = Query & " convert(char(10),GETDATE(),24), "
|
||||
Query = Query & " '"& Session("loginuser") &"', "
|
||||
Query = Query & " '"& Session("User_Number") &"', "
|
||||
Query = Query & " '"& Session("USERIP") &"', "
|
||||
Query = Query & " 'no', "
|
||||
Query = Query & " 'field', "
|
||||
Query = Query & " '" & rsp("p_sn") & "') "
|
||||
|
||||
'Response.Write "Query :" & Query
|
||||
dbin.Open adoConn
|
||||
dbin.Execute Query
|
||||
dbin.Close
|
||||
end if
|
||||
rsp.movenext
|
||||
loop
|
||||
rsp.close
|
||||
Else
|
||||
alert2 "<22>̹<EFBFBD> <20><><EFBFBD>簡 <20>Ϸ<EFBFBD><CFB7><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>."
|
||||
End if
|
||||
|
||||
End if
|
||||
End if
|
||||
'----------------------------------------------------------------------------------
|
||||
If rsc("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǽ<EFBFBD>" Then
|
||||
|
||||
If d_order_cnt = "77" then
|
||||
|
||||
query = " SELECT p_sn, s_gubun, SUM(s_sum) as s_sum "
|
||||
query = query & " FROM "
|
||||
query = query & " ( "
|
||||
query = query & " select p_sn, m_name, m_jumin, work_dt, est_money as s_gubun, "
|
||||
query = query & " case when s_gubun = 'ff' then s_pay_unit * (s_wan + add_count) + add_money else s_sum end as s_sum, "
|
||||
query = query & " attribute05, confirm_yn, s_ot "
|
||||
query = query & " from t_myun_pay "
|
||||
query = query & " union all "
|
||||
query = query & " select p_sn, m_name, m_jumin, work_dt, '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' as s_gubun, "
|
||||
query = query & " case when s_gubun = 'ff' then s_sum - s_pay_unit * (s_wan + add_count) - add_money else 0 end as s_sum, "
|
||||
query = query & " attribute05, confirm_yn, s_ot "
|
||||
query = query & " from t_myun_pay "
|
||||
query = query & " ) t "
|
||||
query = query & " WHERE isnull(attribute05,'') = '" & d_no & "' and confirm_yn = 'Y' "
|
||||
query = query & " group by s_gubun, p_sn "
|
||||
|
||||
rsp.open query, adoconn,adopenstatic, adlockreadonly
|
||||
do while not rsp.eof
|
||||
directQuery = " UPDATE direct_cost "
|
||||
directQuery = directQuery & " set act_money = cast(act_money as numeric) + " & rsp("s_sum") & " , "
|
||||
directQuery = directQuery & " cha_money = cast(cha_money as numeric) + " & rsp("s_sum") & " "
|
||||
directQuery = directQuery & " where p_child_sn = '" & rsp("p_sn") & "' "
|
||||
directQuery = directQuery & " and del_yes_no = 'no' and sebu = '" & rsp("s_gubun") & "' "
|
||||
|
||||
adoConn.Execute directQuery, i
|
||||
|
||||
if i < 1 then
|
||||
Query = "select <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ as krc_no from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> "
|
||||
query = query & " where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> = '" & replace(title, " ", "") & "' "
|
||||
query = query & " and substring(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ,5,4) = '" & year(date) & "' "
|
||||
query = query & " order by <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ"
|
||||
|
||||
Rs.open Query, adoconn,adopenstatic, adlockreadonly
|
||||
|
||||
if Rs.recordcount <= 0 then
|
||||
krc_no = 0
|
||||
else
|
||||
Rs.movelast
|
||||
tmpstr = split(trim(Rs("krc_no")),"-")
|
||||
krc_no = tmpstr(3)
|
||||
end if
|
||||
Rs.close
|
||||
krc_no = int(krc_no) + 1
|
||||
tmpstr = "KRC-" & year(date) & "-"
|
||||
tmpstr = tmpstr & "X-"
|
||||
krc_no = tmpstr & ZeroFormat(krc_no,5)
|
||||
|
||||
Query = " insert into direct_cost(p_sn, krc_no, p_subject, hangmok, sebu, act_money, "
|
||||
Query = Query & " modify_date, modify_time, modify_user, modify_user_code, modify_ip, del_yes_no, cost_type, p_child_sn) "
|
||||
Query = Query & " values( "
|
||||
Query = Query & " left('" & rsp("p_sn") & "',7), "
|
||||
Query = Query & " '" & krc_no & "', "
|
||||
Query = Query & " (select p_subject from T_PROJECT_METHOD where p_child_sn = '" & rsp("p_sn") & "'), "
|
||||
Query = Query & " '48', "
|
||||
Query = Query & " '" & rsp("s_gubun") & "', "
|
||||
Query = Query & " '" & rsp("s_sum") & "', "
|
||||
Query = Query & " convert(char(10),GETDATE(),23), "
|
||||
Query = Query & " convert(char(10),GETDATE(),24), "
|
||||
Query = Query & " '"& Session("loginuser") &"', "
|
||||
Query = Query & " '"& Session("User_Number") &"', "
|
||||
Query = Query & " '"& Session("USERIP") &"', "
|
||||
Query = Query & " 'no', "
|
||||
Query = Query & " 'field', "
|
||||
Query = Query & " '" & rsp("p_sn") & "') "
|
||||
|
||||
adoConn.Execute Query
|
||||
end if
|
||||
rsp.movenext
|
||||
loop
|
||||
rsp.close
|
||||
End if
|
||||
End if
|
||||
'----------------------------------------------------------------------------------
|
||||
|
||||
If rsc("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><D7BC><EFBFBD>" Then
|
||||
If d_order_cnt = "77" then
|
||||
query = " update t_project_method "
|
||||
query = query & " set p_cont_cost = '"& rsc("target1") &"' "
|
||||
query = query & " where p_child_sn = '"& rsc("p_sn") &"' "
|
||||
|
||||
adoconn.execute query
|
||||
|
||||
query = " update t_project_base "
|
||||
query = query & " set p_total_cost = '"& rsc("target5") &"' "
|
||||
query = query & " where p_sn = '"& left(rsc("p_sn"), 7) &"' "
|
||||
|
||||
adoconn.execute query
|
||||
end if
|
||||
end if
|
||||
|
||||
If rsc("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>") = "<22><><EFBFBD>⿹<EFBFBD><E2BFB9><EFBFBD><EFBFBD>û<EFBFBD><C3BB>" Then
|
||||
If d_order_cnt = "77" then
|
||||
query = " "
|
||||
query = query & " Update Krc_device "
|
||||
query = query & " Set T_STATUS = 'RES' "
|
||||
query = query & " Where KRC_NO = '" & d_no & "' "
|
||||
query = query & " And T_USE_YN = 'Y' "
|
||||
|
||||
adoconn.execute query
|
||||
end if
|
||||
end if
|
||||
|
||||
If rsc("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><F1BAB8B0><EFBFBD>" Then
|
||||
p_sn = request("p_sn")
|
||||
p_method_cd = request("p_method_cd")
|
||||
complete = request("complete")
|
||||
cost_type = request("cost_type")
|
||||
|
||||
sql = "select * from person where p_no = '" & rsc("login_p_no") & "'"
|
||||
'Response.Write sql & "<br>"
|
||||
Rs.open sql, adoconn, adopenstatic, adlockreadonly
|
||||
user_team = rs("p_team")
|
||||
Rs.close
|
||||
|
||||
if Instr(p_method_cd,"@") > 0 then
|
||||
list_p_sn = split(p_method_cd,"@")
|
||||
p_method_cd = list_p_sn(0)
|
||||
p_child_sn = list_p_sn(1)
|
||||
end if
|
||||
If d_order_cnt = "77" then
|
||||
query = " SELECT p_sn, p_method_cd , p_child_sn, p_sub_type, p_input_complete "
|
||||
query = query & " FROM T_PROJECT_METHOD "
|
||||
query = query & " WHERE p_sn = '"& p_sn &"' "
|
||||
query = query & " AND p_child_sn = '"& p_child_sn &"' "
|
||||
|
||||
|
||||
adors.Open query, adoconn, 1
|
||||
|
||||
do while not adors.EOF
|
||||
if complete = "yes" and cost_type = "field" then
|
||||
if user_team = "8" then
|
||||
'complete_str = mid(adors("p_input_complete"),1,1) & mid(adors("p_input_complete"),2,1) & "o"
|
||||
complete_str = mid(adors("p_input_complete"),1,1) & "o" & mid(adors("p_input_complete"),3,1) ' QC<51><43> <20>÷<EFBFBD><C3B7><EFBFBD> SV<53><56> <20>ø<EFBFBD> <20><>ó<EFBFBD><C3B3>..
|
||||
Else
|
||||
complete_str = mid(adors("p_input_complete"),1,1) & "o" & mid(adors("p_input_complete"),3,1)
|
||||
end if
|
||||
elseif complete = "yes" and cost_type = "research" then
|
||||
complete_str = "o" & mid(adors("p_input_complete"),2,1) & mid(adors("p_input_complete"),3,1)
|
||||
elseif complete = "cancle" and cost_type = "field" then
|
||||
if user_team = "8" then
|
||||
'complete_str = mid(adors("p_input_complete"),1,1) & mid(adors("p_input_complete"),2,1) & "x"
|
||||
complete_str = mid(adors("p_input_complete"),1,1) & "x" & mid(adors("p_input_complete"),3,1) ' QC<51><43> <20>÷<EFBFBD><C3B7><EFBFBD> SV<53><56> <20>ø<EFBFBD> <20><>ó<EFBFBD><C3B3>..
|
||||
Else
|
||||
complete_str = mid(adors("p_input_complete"),1,1) & "x" & mid(adors("p_input_complete"),3,1)
|
||||
end if
|
||||
elseif complete = "cancle" and cost_type = "research" then
|
||||
complete_str = "x" & mid(adors("p_input_complete"),2,1) & mid(adors("p_input_complete"),3,1)
|
||||
end If
|
||||
|
||||
if complete = "yes" OR complete = "cancle" then
|
||||
query = " UPDATE T_PROJECT_METHOD "
|
||||
query = query & " SET p_input_complete = '"& complete_str &"' "
|
||||
query = query & " WHERE p_sn = '"& p_sn &"' "
|
||||
query = query & " AND p_child_sn = '"& adors("p_child_sn") &"' "
|
||||
end if
|
||||
|
||||
adoConn.execute query
|
||||
|
||||
adors.movenext
|
||||
loop
|
||||
adors.close
|
||||
|
||||
if complete_str = "oooo" Or complete_str = "ooo" then
|
||||
'<27>˶<EFBFBD><CBB6><EFBFBD><EFBFBD><EFBFBD> <20>߰<EFBFBD> ***********************************************
|
||||
query = ""
|
||||
query = query & " insert into Intranet_Alarm Values "
|
||||
query = query & " ( "
|
||||
query = query & " '" & p_child_sn & "', "
|
||||
query = query & " '', "
|
||||
query = query & " '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>°<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>', "
|
||||
query = query & " '', "
|
||||
query = query & " '', "
|
||||
query = query & " (SELECT TOP 1 cast(p2.p_no as varchar) +','+ cast(p.p_no as varchar) "
|
||||
query = query & " FROM T_PROJECT_BASE tpb INNER JOIN person p ON tpb.p_input_user = p.p_no "
|
||||
query = query & " INNER JOIN (select p_no, p_depart, p_team_place, p_resign from person) p2 ON p.p_depart = p2.p_depart and p2.p_resign = '0' "
|
||||
query = query & " WHERE tpb.p_sn = '" & p_sn & "' and p2.p_team_place between '0' and '5' "
|
||||
query = query & " ORDER BY p2.p_team_place DESC) "
|
||||
query = query & " ) "
|
||||
|
||||
adoConn.execute query
|
||||
end if
|
||||
end if
|
||||
end if
|
||||
|
||||
|
||||
|
||||
'//-- hwkim 20230215 test
|
||||
'response.write "<br> tmp = "& ubound(tmp)
|
||||
'response.write "<br> i = "& i
|
||||
'response.write "<br> ubound(tmp) + 1 = "& (ubound(tmp) + 1 )
|
||||
'response.write "<br> d_order_cnt = "& d_order_cnt
|
||||
'response.write "<br> target99 = " & target99
|
||||
'response.write "<br> target100 = " & target100
|
||||
'response.write "<br>"
|
||||
'response.end
|
||||
|
||||
query = " UPDATE Document "
|
||||
query = query & " SET "
|
||||
query = query & " d_order_cnt = '" & d_order_cnt & "', "
|
||||
query = query & " d_orders = '" & d_orders & "' "
|
||||
query = query & "WHERE d_no = '" & d_no & "' "
|
||||
|
||||
'if rsc("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>") = "ǰ<>Ǽ<EFBFBD>" and d_order_cnt = "77" then
|
||||
' response.write query
|
||||
'end if
|
||||
'response.end
|
||||
|
||||
'//--
|
||||
if rsc("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>") = "ǰ<>Ǽ<EFBFBD>" and d_order_cnt = "77" then
|
||||
'if instr(1, target99, "<22><><EFBFBD>غ<EFBFBD>") and instr(1, target99, "<22><><EFBFBD><EFBFBD>ö") then
|
||||
if instr(1, target99, "<22><><EFBFBD>غ<EFBFBD>") or instr(1, target99, "<22><><EFBFBD><EFBFBD>ö") then '//-- hwkim 20230215
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query
|
||||
dbin.Close
|
||||
end if
|
||||
else
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query
|
||||
dbin.Close
|
||||
end if
|
||||
|
||||
|
||||
query = " UPDATE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> "
|
||||
query = query & " SET "
|
||||
query = query & " target99 = '" & target99 & "', "
|
||||
query = query & " target100 = '" & target100 & "' "
|
||||
query = query & " WHERE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '" & d_no & "' "
|
||||
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query
|
||||
dbin.Close
|
||||
|
||||
'<27><><EFBFBD><EFBFBD> <20><>ư Ŭ<><C5AC><EFBFBD>Ͽ<EFBFBD><CFBF><EFBFBD> <20><> document_pass <20><><EFBFBD>̺<EFBFBD><CCBA><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
if approve_pass = "1" then
|
||||
query = "INSERT INTO [Document_pass] "
|
||||
query = query & "(d_no, d_name, d_orders, d_write_date, d_view, d_delok) "
|
||||
query = query & "VALUES "
|
||||
query = query & "('" & d_no & "', "
|
||||
query = query & " '" & rsc("d_name") & "', "
|
||||
query = query & " '" & tmp_pass_psn & "', "
|
||||
query = query & " '" & date() & "', "
|
||||
query = query & " 'Y', "
|
||||
query = query & " 'N') "
|
||||
|
||||
adoConn.execute query
|
||||
end if
|
||||
|
||||
''<27>α<EFBFBD><CEB1><EFBFBD><EFBFBD><EFBFBD>
|
||||
query = "insert into <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_log (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_p_no, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_<EFBFBD≯<EFBFBD>, <20><><EFBFBD><EFBFBD>,"
|
||||
query = query & " <20>߱<EFBFBD><DFB1><EFBFBD>, <20>߱ð<DEBD>, <20>߱<EFBFBD><DFB1><EFBFBD>_p_no, <20>߱<EFBFBD><DFB1><EFBFBD>_<EFBFBD≯<EFBFBD>, <20>߱<EFBFBD><DFB1><EFBFBD>_ip) values ( "
|
||||
query = query & "'" & d_no & "', "
|
||||
query = query & "'" & replace(title, " ", "") & "', "
|
||||
query = query & "'" & Session("User_Number") & "', "
|
||||
query = query & "'" & Session("loginuser") & "', "
|
||||
query = query & "'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>', "
|
||||
query = query & "'" & year(date) & "-" & zeroformat(month(date),2) & "-" & zeroformat(day(date),2) & "', "
|
||||
query = query & "'" & time() & "', "
|
||||
query = query & "'', '', "
|
||||
query = query & "'" & Session("USERIP") & "')"
|
||||
|
||||
if Request.ServerVariables("REMOTE_ADDr") = session("admin_ip") then
|
||||
else
|
||||
adoconn.execute query
|
||||
end if
|
||||
%>
|
||||
<html>
|
||||
<head>
|
||||
<title>
|
||||
|
||||
</title>
|
||||
<script language=javascript>
|
||||
function goit() {
|
||||
alert('<27><><EFBFBD>εǾ<CEB5><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>');
|
||||
opener.location.reload();
|
||||
self.close();
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body onLoad="goit()">
|
||||
<form name="pms" method="post">
|
||||
<input type="hidden" name="p_sn" value="<%=p_sn%>">
|
||||
</body>
|
||||
</html>
|
||||
<%
|
||||
else
|
||||
alert2 "<22>̹<EFBFBD> <20><><EFBFBD>簡 <20>Ϸ<EFBFBD><CFB7><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>."
|
||||
end if
|
||||
else
|
||||
alert2 "DB <20><><EFBFBD><EFBFBD>. <20><><EFBFBD><EFBFBD><EFBFBD>ڿ<EFBFBD><DABF><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>"
|
||||
end if 'if rsc.RecordCount > 0 then
|
||||
rsc.Close
|
||||
%>
|
||||
34
ess/direct_cost_ajax_confirm.asp
Normal file
34
ess/direct_cost_ajax_confirm.asp
Normal file
@@ -0,0 +1,34 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<OBJECT RUNAT=Server PROGID=ADODB.Recordset id=rsp></OBJECT>
|
||||
<%'
|
||||
|
||||
|
||||
|
||||
p_child_sn = request("p_child_sn")
|
||||
hangmok = request("hangmok")
|
||||
sebu = request("sebu")
|
||||
cost_type = request("cost_type")
|
||||
confirmYN = request("confirmYN")
|
||||
|
||||
Response.CharSet = "EUC-KR" '<27>ѱ<EFBFBD>
|
||||
Response.AddHeader "Pragma","no-cache"
|
||||
Response.AddHeader "cache-control", "no-staff"
|
||||
Response.Expires = -1
|
||||
|
||||
query = " update direct_cost "
|
||||
query = query & " set confirm_yn = '"& confirmYN &"' "
|
||||
query = query & " where p_child_sn = '"& p_child_sn &"' "
|
||||
query = query & " and del_yes_no = 'no' "
|
||||
query = query & " and hangmok= (select id from direct_costcode where d_cost_parents = '0' and d_cost_name = '"& hangmok &"' and d_cost_kind = '"& cost_type &"') "
|
||||
query = query & " and sebu = '"& sebu &"' "
|
||||
query = query & " and hangmok NOT IN ('<27><EFBFBD>', '<27><EFBFBD>_<EFBFBD>濵<EFBFBD><E6BFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>') "
|
||||
|
||||
adoConn.execute query
|
||||
|
||||
if confirmYN = "Y" then
|
||||
response.write "Y_OK"
|
||||
else
|
||||
response.write "N_OK"
|
||||
end if
|
||||
|
||||
%>
|
||||
660
ess/direct_cost_print_2014.asp
Normal file
660
ess/direct_cost_print_2014.asp
Normal file
@@ -0,0 +1,660 @@
|
||||
<!-- #include virtual = "include/header.asp" -->
|
||||
<!-- #include virtual = "include/left.asp" -->
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
<div class="content-header">
|
||||
<h1></h1>
|
||||
</div>
|
||||
<!-- /.content-header -->
|
||||
<!-- Main content -->
|
||||
<div class="content-body">
|
||||
<div class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<%
|
||||
chk_opt = request("chk_opt")
|
||||
sc_year = request("sc_year")
|
||||
sc_month = request("sc_month")
|
||||
sc_team = request("sc_team")
|
||||
sc_name = request("sc_name")
|
||||
sc_method = request("sc_method")
|
||||
cost_type = request("cost_type")
|
||||
p_method_cd = trim(request("p_method_cd"))
|
||||
p_child_sn = request("p_sn")
|
||||
p_sub_type = request("p_sub_type")
|
||||
|
||||
if Instr(p_child_sn,"@") > 0 then
|
||||
list_p_sn = split(p_child_sn,"@")
|
||||
p_child_sn = list_p_sn(0)
|
||||
p_sub_type = list_p_sn(1)
|
||||
end if
|
||||
if Instr(p_method_cd,"@") > 0 then
|
||||
list_p_sn = split(p_method_cd,"@")
|
||||
p_method_cd = list_p_sn(0)
|
||||
p_child_sn = list_p_sn(1)
|
||||
end if
|
||||
|
||||
p_sn = trim(request("p_sn"))
|
||||
p_sn = left(p_sn,7)
|
||||
|
||||
Response.Expires = 0
|
||||
if cost_type = "" then
|
||||
cost_type = "field"
|
||||
end if
|
||||
|
||||
if cost_type = "field" then
|
||||
cost_type_name = "<22>ǻ<EFBFBD>"
|
||||
elseif cost_type = "research" then
|
||||
cost_type_name = "<22><><EFBFBD><EFBFBD>"
|
||||
elseif cost_type = "dp" then
|
||||
cost_type_name = "DP"
|
||||
elseif cost_type = "all" then
|
||||
cost_type_name = "<22><>ü"
|
||||
else
|
||||
cost_type_name = "<22><><EFBFBD><EFBFBD>....."
|
||||
end if
|
||||
|
||||
Dim user_job_part
|
||||
sql = "select * from person where p_no = '" & Session("user_number") & "'"
|
||||
'Response.Write sql & "<br>"
|
||||
Rs.open sql, adoconn, adopenstatic, adlockreadonly
|
||||
user_depart = rs("p_depart")
|
||||
user_job_part = rs("p_job_part")
|
||||
Rs.close
|
||||
|
||||
query = " SELECT p_sn, p_child_sn, p_subject, TPM.p_method_cd, TPM.p_progress_status, TPMC.p_method_nm, p_subject, p_sub_type, TPMC.p_method_cd "
|
||||
query = query & " FROM T_PROJECT_METHOD TPM LEFT OUTER JOIN T_PROJECT_METHOD_CD TPMC ON TPM.p_method_cd = TPMC.p_method_cd "
|
||||
if p_sub_type = "C" then
|
||||
query = query & " WHERE p_child_sn = '"& p_child_sn &"' "
|
||||
elseif p_sub_type = "M" then
|
||||
query = query & " WHERE p_sn = '"& p_sn &"' "
|
||||
end if
|
||||
adors.Open query, adoConn, 1
|
||||
|
||||
if cost_type = "research" then
|
||||
p_method_cd = adors("p_method_cd")
|
||||
end if
|
||||
adors.Close
|
||||
|
||||
query = " SELECT p_sn "
|
||||
query = query & " , p_subject "
|
||||
query = query & " , TCCD_E.c_code_name as p_export_range "
|
||||
query = query & " , p_cont_cost "
|
||||
query = query & " FROM T_PROJECT_BASE TPB "
|
||||
query = query & " LEFT OUTER JOIN T_COMMON_CODE_DETAIL TCCD_E ON TCCD_E.c_kind_code = '011' AND TPB.p_export_range = TCCD_E.c_common_code"
|
||||
query = query & " WHERE p_sn = '"& p_sn &"'"
|
||||
'Response.Write query & "<BR>"
|
||||
|
||||
AdoRs.Open query,adoconn, 1
|
||||
|
||||
p_sn = adors("p_sn")
|
||||
p_subject = adors.fields("p_subject")
|
||||
p_export_range = adors("p_export_range")
|
||||
p_cont_cost = adors("p_cont_cost")
|
||||
|
||||
adors.Close
|
||||
|
||||
'<27>⺻<EFBFBD><E2BABB><EFBFBD><EFBFBD> <20>ʱⰪ <20><><EFBFBD><EFBFBD>
|
||||
query = " SELECT p_method_cd, TPM.p_sn, p_child_sn, p_sub_type, TCCD_A.c_code_name as p_sur_area, TCCD_T.c_code_name as p_sur_target, isnull(TPM.p_sample, 0) as p_sample, p_research_date_st, p_research_date_end, "
|
||||
query = query & " TCCD_P.c_code_name as p_sur_part, TCCD_F.c_code_name as p_field_process, TPM.p_cont_cost, ISNULL(TCCD_E1.c_code_name,TCCD_E2.c_code_name) as p_export_range "
|
||||
query = query & " FROM T_PROJECT_METHOD TPM "
|
||||
query = query & " LEFT OUTER JOIN T_PROJECT_BASE TPB ON TPM.p_sn = TPB.p_sn "
|
||||
query = query & " LEFT OUTER JOIN T_COMMON_CODE_DETAIL TCCD_E1 ON TCCD_E1.c_kind_code = '011' AND TPM.p_export_range = TCCD_E1.c_common_code "
|
||||
query = query & " LEFT OUTER JOIN T_COMMON_CODE_DETAIL TCCD_E2 ON TCCD_E2.c_kind_code = '011' AND TPB.p_export_range = TCCD_E2.c_common_code "
|
||||
query = query & " LEFT OUTER JOIN T_COMMON_CODE_DETAIL TCCD_A ON TCCD_A.c_kind_code = '012' AND TPM.p_sur_area = TCCD_A.c_common_code "
|
||||
query = query & " LEFT OUTER JOIN T_COMMON_CODE_DETAIL TCCD_T ON TCCD_T.c_kind_code = '013' AND TPM.p_sur_target = TCCD_T.c_common_code "
|
||||
query = query & " LEFT OUTER JOIN T_COMMON_CODE_DETAIL TCCD_P ON TCCD_P.c_kind_code = '014' AND TPM.p_sur_part = TCCD_P.c_common_code "
|
||||
query = query & " LEFT OUTER JOIN T_COMMON_CODE_DETAIL TCCD_F ON TCCD_F.c_kind_code = '015' AND TPM.p_field_process = TCCD_F.c_common_code "
|
||||
|
||||
if len(p_child_sn) > 7 then
|
||||
query = query & " WHERE TPM.p_child_sn = '"& p_child_sn &"' "
|
||||
elseif p_sub_type = "M" then
|
||||
query = query & " WHERE TPM.p_sn = '"& p_sn &"' "
|
||||
end if
|
||||
if p_method_cd <> "" then
|
||||
query = query & " AND TPM.p_method_cd = '"&p_method_cd&"' "
|
||||
end if
|
||||
|
||||
|
||||
''' Response.Write "rs query : " & query &"<BR>"
|
||||
rs.Open query,adoconn, 1
|
||||
if rs.recordCount > 0 then
|
||||
p_sur_area = rs("p_sur_area")
|
||||
p_sur_target = rs("p_sur_target")
|
||||
p_sample = Cdbl(rs("p_sample"))
|
||||
p_research_date_st = rs("p_research_date_st")
|
||||
p_research_date_end = rs("p_research_date_end")
|
||||
p_sur_part = rs("p_sur_part")
|
||||
p_field_process = rs("p_field_process")
|
||||
p_child_sn = rs("p_child_sn")
|
||||
p_sub_type = rs("p_sub_type")
|
||||
|
||||
if p_sub_type = "C" then
|
||||
p_cont_cost = "0"
|
||||
if rs("p_cont_cost") <> "" then
|
||||
p_cont_cost = rs("p_cont_cost")
|
||||
end if
|
||||
end if
|
||||
p_export_range = rs("p_export_range")
|
||||
else
|
||||
p_sur_area = ""
|
||||
p_sur_target = ""
|
||||
p_sample = 1
|
||||
est_sum = 0
|
||||
p_research_date_st = ""
|
||||
p_research_date_end = ""
|
||||
p_sur_part = ""
|
||||
p_field_process = ""
|
||||
p_export_range = ""
|
||||
end if
|
||||
rs.close
|
||||
|
||||
|
||||
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է°<D4B7><C2B0><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>. <20>ʱⰪ<CAB1><E2B0AA> <20><><EFBFBD><EFBFBD><EFBFBD>Ѵ<EFBFBD>. <20>Ʒ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ǻ<EFBFBD> <20>μ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>.
|
||||
query = " SELECT dc2.d_cost_name as hangmok, dc1.d_cost_name as sebu "
|
||||
query = query & " FROM direct_costcode dc1 INNER JOIN direct_costcode dc2 ON dc1.d_cost_parents = dc2.d_cost_code AND dc1.d_cost_kind = dc2.d_cost_kind "
|
||||
query = query & " WHERE dc1.d_cost_parents != '0' "
|
||||
If cost_type <> "all" Then
|
||||
query = query & " AND dc1.d_cost_kind = '"& cost_type &"' "
|
||||
End if
|
||||
query = query & " AND dc2.d_cost_parents = '0' "
|
||||
query = query & " ORDER BY dc1.d_cost_parents, dc1.d_cost_code "
|
||||
'Response.Write "rs query : " & query &"<BR>"
|
||||
rs.Open query,adoconn, 1
|
||||
|
||||
'<27><> <20>÷<EFBFBD><C3B7><EFBFBD> <20>ʱⰪ <20><><EFBFBD><EFBFBD>
|
||||
for i=1 to line_total
|
||||
for j=1 to 11
|
||||
pay_Array_new(i,j) = ""
|
||||
next
|
||||
next
|
||||
|
||||
query = ""&VbCrlf
|
||||
query = query & " SELECT *, isnull(confirm_yn,'N') as confirmYN, "&VbCrlf
|
||||
query = query & " tpm.p_sv_1, tpm.p_sv_2, tpm.p_sv_3, tpm.p_sv_4, "&VbCrlf'<27>ǻ<EFBFBD>(SV)
|
||||
query = query & " tpm.p_code_1, tpm.p_code_2, tpm.p_code_3, tpm.p_code_4, "&VbCrlf'<27>ڵ<EFBFBD>
|
||||
query = query & " tpm.p_verify_1, tpm.p_verify_2, tpm.p_verify_3, tpm.p_verify_4, "&VbCrlf'<27><><EFBFBD><EFBFBD>
|
||||
query = query & " tpm.p_punch_1, tpm.p_punch_2, tpm.p_punch_3, tpm.p_punch_4 "&VbCrlf'<27><>ġ
|
||||
query = query & " FROM direct_cost dc LEFT OUTER JOIN direct_costcode dcc ON dc.hangmok = dcc.id "&VbCrlf
|
||||
query = query & " left outer join T_PROJECT_METHOD tpm on dc.p_child_sn = tpm.p_child_sn "&VbCrlf
|
||||
query = query & " WHERE dc.p_sn = '"& p_sn &"' "&VbCrlf
|
||||
query = query & " AND del_yes_no = 'no' "&VbCrlf
|
||||
query = query & " AND hangmok NOT IN ('<27><EFBFBD>','<27><EFBFBD>_<EFBFBD>濵<EFBFBD><E6BFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>') "&VbCrlf
|
||||
If cost_type <> "all" Then
|
||||
query = query & " AND (cost_type = '"& cost_type &"' "&VbCrlf
|
||||
If cost_type = "research" Then
|
||||
query = query & " OR sebu IN ('<27>μ<EFBFBD><CEBC><EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)','<27>μ<EFBFBD><CEBC><EFBFBD>(<28><><EFBFBD><EFBFBD>)')) " &VbCrlf
|
||||
elseIf cost_type = "field" Then
|
||||
query = query & " OR sebu IN ('<27>μ<EFBFBD><CEBC><EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)','<27><><EFBFBD>ź<EFBFBD>')) "&VbCrlf
|
||||
Else
|
||||
query = query & " ) "&VbCrlf
|
||||
End if
|
||||
End if
|
||||
|
||||
if LEN(p_child_sn) > 8 Then
|
||||
If InStr(p_child_sn, "_M") > 7 Then
|
||||
if cost_type = "research" Then
|
||||
query = query & " AND dc.p_child_sn like '" & Left(p_child_sn, 9) & "%' "&VbCrlf
|
||||
elseif cost_type = "field" Then
|
||||
query = query & " AND dc.p_child_sn = '" & p_child_sn & "' "&VbCrlf
|
||||
end if
|
||||
Else
|
||||
query = query & " AND dc.p_child_sn = '" & p_child_sn & "' "&VbCrlf
|
||||
End If
|
||||
query = query & " ORDER BY hangmok, dc.p_child_sn "&VbCrlf
|
||||
Else
|
||||
query = query & " ORDER BY hangmok "&VbCrlf
|
||||
end if
|
||||
|
||||
adors.Open query, adoconn, 1'adOpenStatic,adLockReadOnly
|
||||
if adors.recordCount > 0 then
|
||||
modifyUser = adors("modify_user")
|
||||
p_sv_1 = adors("p_sv_1")
|
||||
p_sv_2 = adors("p_sv_2")
|
||||
p_sv_3 = adors("p_sv_3")
|
||||
p_sv_4 = adors("p_sv_4")
|
||||
|
||||
p_code_1 = adors("p_code_1")
|
||||
p_code_2 = adors("p_code_2")
|
||||
p_code_3 = adors("p_code_3")
|
||||
p_code_4 = adors("p_code_4")
|
||||
|
||||
p_verify_1 = adors("p_verify_1")
|
||||
p_verify_2 = adors("p_verify_2")
|
||||
p_verify_3 = adors("p_verify_3")
|
||||
p_verify_4 = adors("p_verify_4")
|
||||
|
||||
p_punch_1 = adors("p_punch_1")
|
||||
p_punch_2 = adors("p_punch_2")
|
||||
p_punch_3 = adors("p_punch_3")
|
||||
p_punch_4 = adors("p_punch_4")
|
||||
end if
|
||||
'<27><> <20>ټ<EFBFBD><D9BC><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
line_total = adors.recordcount
|
||||
redim pay_Array_new(line_total, 13)
|
||||
|
||||
|
||||
if adors.RecordCount > 0 Then
|
||||
|
||||
redim pay_Array_new(line_total, 16)
|
||||
'x:<3A><><EFBFBD><EFBFBD>, y:1:<3A><EFBFBD>, 2:<3A><><EFBFBD>γ<EFBFBD><CEB3><EFBFBD>, 3:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>, 4:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>/<2F><>, 5:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>/<2F>ð<EFBFBD>, 6:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ݾ<EFBFBD>,7:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>, 8:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>/<2F><>, 9:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>/<2F>ð<EFBFBD>, 10:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ݾ<EFBFBD>,11:<3A><><EFBFBD><EFBFBD><EFBFBD>ݾ<EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD>ݾ<EFBFBD><DDBE><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
'0:<3A><EFBFBD>, 12:<3A>濵<EFBFBD><E6BFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><EFBFBD>, 14:p_child_sn, 15:confirm <20><><EFBFBD><EFBFBD>
|
||||
i = -1
|
||||
txt_p_subject_group = ""
|
||||
txt_p_sn_group = ""
|
||||
|
||||
do while not adors.EOF
|
||||
i = i + 1
|
||||
pay_Array_new(i,1) = adors("d_cost_name")'adors("hangmok")
|
||||
pay_Array_new(i,2) = adors("sebu")
|
||||
pay_Array_new(i,3) = adors("est_danga")
|
||||
pay_Array_new(i,4) = adors("est_bu_or_cnt")
|
||||
pay_Array_new(i,5) = adors("est_dosu_or_time")
|
||||
|
||||
pay_Array_new(i,6) = FormatNumber(adors("est_money"),0)
|
||||
pay_Array_new(i,7) = adors("act_danga")
|
||||
pay_Array_new(i,8) = adors("act_bu_or_cnt")
|
||||
pay_Array_new(i,9) = adors("act_dosu_or_time")
|
||||
pay_Array_new(i,10) = FormatNumber(adors("act_money"),0)
|
||||
pay_Array_new(i,11) = FormatNumber(adors("est_money") - adors("act_money"),0)
|
||||
If adors("cost_type") = "research" Then
|
||||
pay_Array_new(i,12) = "<22><><EFBFBD><EFBFBD>"
|
||||
ElseIf adors("cost_type") = "field" Then
|
||||
pay_Array_new(i,12) = "<22>ǻ<EFBFBD>"
|
||||
elseIf adors("cost_type") = "support" Then
|
||||
pay_Array_new(i,12) = "<22>濵"
|
||||
elseIf adors("cost_type") = "DP" Then
|
||||
pay_Array_new(i,12) = "<22><><EFBFBD><EFBFBD><EFBFBD>м<EFBFBD>"
|
||||
End If
|
||||
pay_Array_new(i,14) = adors("p_child_sn")
|
||||
pay_Array_new(i,15) = adors("confirmYN")
|
||||
pay_Array_new(i,16) = adors("memo")
|
||||
|
||||
if trim(pay_Array_new(i,6)) = "" then
|
||||
else
|
||||
est_sum = cdbl(est_sum) + cdbl(pay_Array_new(i,6)) '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
end if
|
||||
|
||||
if pay_Array_new(i,10) <> "" then
|
||||
act_sum = cdbl(act_sum) + cdbl(pay_Array_new(i,10)) '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
end if
|
||||
|
||||
|
||||
adors.movenext
|
||||
loop
|
||||
|
||||
end if
|
||||
adoRs.Close
|
||||
|
||||
query = " SELECT * "
|
||||
query = query & " FROM direct_cost "
|
||||
query = query & " WHERE p_sn = '" & p_sn & "' "
|
||||
query = query & " AND del_yes_no = 'no' "
|
||||
If cost_type <> "all" Then
|
||||
query = query & " AND cost_type = '" & cost_type & "' "
|
||||
End if
|
||||
query = query & " AND p_child_sn = '" & p_child_sn & "' "
|
||||
query = query & " AND hangmok IN ('<27><EFBFBD>', '<27><EFBFBD>_<EFBFBD>濵<EFBFBD><E6BFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>') "
|
||||
query = query & " ORDER BY id "
|
||||
'response.Write query
|
||||
adors.Open query, adoconn, 1
|
||||
do while not adors.EOF
|
||||
if adors("hangmok") = "<22><EFBFBD>" then
|
||||
pay_Array_new(0,0) = adors("memo")
|
||||
elseif adors("hangmok") = "<22><EFBFBD>_<EFBFBD>濵<EFBFBD><E6BFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" then
|
||||
pay_Array_new(0,13) = adors("memo")
|
||||
end if
|
||||
adors.movenext
|
||||
loop
|
||||
|
||||
adoRs.close
|
||||
rs.close
|
||||
|
||||
query = "select * from document where d_no = '" & krc_no & "'"
|
||||
adoRs.open query, adoconn, 1
|
||||
|
||||
edit_yes_no = "yes" '<27>⺻<EFBFBD><E2BABB><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ó<><C3B3><EFBFBD>϶<EFBFBD><CFB6><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
if adoRs.recordcount > 0 then
|
||||
if lcase(adoRs("d_delok")) = "y" and (cint(user_depart) = 12 OR cint(user_depart) = 16) then '12, 16<31><36> <20>ڷ<EFBFBD><DAB7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, QC <20><>... <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>߾<EFBFBD><DFBE><EFBFBD>.
|
||||
edit_yes_no = "yes"
|
||||
end If
|
||||
end if
|
||||
adoRs.close
|
||||
|
||||
p_cont_cost = cdbl(p_cont_cost)
|
||||
%>
|
||||
<form method=post name='frm_direct_cost' id="frm_direct_cost">
|
||||
<!-- <20><><EFBFBD><EFBFBD><EFBFBD>ɰ͵<C9B0> -->
|
||||
<input type="hidden" name='p_sn' value='<%=p_sn%>' >
|
||||
<input type="hidden" name='line_total' value='<%=line_total%>' >
|
||||
<input type="hidden" name="p_sample" value='<%=p_sample%>'> <!--<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Գ<EFBFBD> <20><><EFBFBD>ֱ<EFBFBD>-->
|
||||
<input type="hidden" name="pay_save" value='<%=pay_save%>'>
|
||||
<input type="hidden" name="prj_get" value=''> <!--<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Գ<EFBFBD> <20><><EFBFBD>ֱ<EFBFBD>-->
|
||||
<input type="hidden" name="p_cont_cost" value='<%=p_cont_cost%>'> <!--<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-->
|
||||
<input type="hidden" name="project_type_code" value='<%=project_type_code%>'> <!--<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>п<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-->
|
||||
<input type="hidden" name="edit_yes_no" value='<%=edit_yes_no%>'> <!--<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>п<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-->
|
||||
<input type="hidden" name="sc_year" value='<%=sc_year%>'> <!--<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>˻<EFBFBD><CBBB><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ٴϱ<D9B4>-->
|
||||
<input type="hidden" name="sc_month" value='<%=sc_month%>'> <!--<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>˻<EFBFBD><CBBB><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ٴϱ<D9B4>-->
|
||||
<input type="hidden" name="sc_team" value='<%=sc_team%>'> <!--<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>˻<EFBFBD><CBBB><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ٴϱ<D9B4>-->
|
||||
<input type="hidden" name="sc_name" value='<%=sc_name%>'> <!--<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>˻<EFBFBD><CBBB><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ٴϱ<D9B4>-->
|
||||
<input type="hidden" name="sc_method" value='<%=sc_method%>'> <!--<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>˻<EFBFBD><CBBB><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ٴϱ<D9B4>-->
|
||||
<input type="hidden" name="txt_p_sn_group" value='<%=txt_p_sn_group%>' > <!--<2D><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ<EFBFBD>-->
|
||||
<input type="hidden" name="p_child_sn" value='<%=p_child_sn%>' >
|
||||
<input type="hidden" name ='cost_type' value = '<%=cost_type%>'> <!-- <20><><EFBFBD><EFBFBD> OR <20>ǻ<EFBFBD>-->
|
||||
<input type="hidden" name ='p_sub_type' value = '<%=p_sub_type%>'> <!-- M or C <20><>Ƽ<EFBFBD><C6BC><EFBFBD><EFBFBD> <20>ܵ<EFBFBD><DCB5><EFBFBD><EFBFBD><EFBFBD>-->
|
||||
<input type="hidden" name ='lineNumber' value = ''> <!-- confirmYN<59><4E> <20><> <20><><EFBFBD><EFBFBD>-->
|
||||
<!-- <20><><EFBFBD><EFBFBD><EFBFBD>ɰ͵<C9B0> -->
|
||||
<div id="m_list"></div>
|
||||
<table style="width:1180px;">
|
||||
<tr>
|
||||
<td>
|
||||
<table class='table table-sm2 table-bordered'>
|
||||
<tr>
|
||||
<td colspan=4 align="left" bgcolor='yellow' style='font-size:13pt;font-weight:bold'><%=cost_type_name%> <20>μ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Դϴ<D4B4>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="15%" class='bg-gray-light text-center'><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><>ȣ</td>
|
||||
<td width="15%" ><%=p_child_sn %></td>
|
||||
<td width="15%" class='bg-gray-light text-center'><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE></td>
|
||||
<td><%=p_subject%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="15%" class='bg-gray-light text-center'><3E>뿪<EFBFBD><EBBFAA><EFBFBD><EFBFBD></td>
|
||||
<td width="15%" ><%=p_export_range%></td>
|
||||
<td width="15%" class='bg-gray-light text-center'><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td>
|
||||
<%
|
||||
query = " SELECT TPM.p_method_cd, p_child_sn, TPMC.p_method_nm, p_sn, p_subject, p_sub_type, TPMC.p_method_cd, p_input_complete, TPM.p_intention "
|
||||
query = query & " FROM T_PROJECT_METHOD TPM LEFT OUTER JOIN T_PROJECT_METHOD_CD TPMC ON TPM.p_method_cd = TPMC.p_method_cd "
|
||||
if p_sub_type = "C" then
|
||||
query = query & " WHERE p_child_sn = '"& p_child_sn &"' "
|
||||
elseif p_sub_type = "M" then
|
||||
query = query & " WHERE p_sn = '"& p_sn &"' "
|
||||
end if
|
||||
|
||||
adors.Open query, adoConn, 1
|
||||
%>
|
||||
<%=adors("p_method_nm")%>-[<%=adors("p_intention")%>]
|
||||
<select name="p_method_cd" id = "p_method_cd" onchange="p_method_cd_select()" class='d-none'>
|
||||
<option value=""><3E><> <20><></option>
|
||||
<% for i = 1 to adors.RecordCount %>
|
||||
<option value="<%=adors("p_method_cd")%>@<%=adors("p_child_sn")%>" <%if p_child_sn = trim(adors("p_child_sn")) then %> selected <%end if %> ><%=adors("p_method_nm")%>-[<%=adors("p_intention")%>]</option>
|
||||
<%
|
||||
p_sub_type = adors("p_sub_type")
|
||||
adors.movenext
|
||||
next %>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<% if cost_type = "field" or (cost_type = "research" and p_sub_type = "C") then %>
|
||||
<tr>
|
||||
<td width="15%" class='bg-gray-light text-center' ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="15%" ><%=p_sur_area%></td>
|
||||
<td width="15%" class='bg-gray-light text-center'><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td><%=p_sur_target%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="15%" class='bg-gray-light text-center'><3E><><EFBFBD>ü<EFBFBD></td>
|
||||
<td width="15%" ><font ><%=formatnumber(p_sample, 0)%></font></td>
|
||||
<td width="15%" class='bg-gray-light text-center'><3E><><EFBFBD><EFBFBD><EFBFBD>ð<EFBFBD></td>
|
||||
<td><font ><%=p_research_date_st%>~<%=p_research_date_end%></font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="15%" class='bg-gray-light text-center'><3E><><EFBFBD><EFBFBD><EFBFBD>з<EFBFBD></td>
|
||||
<td width="15%" ><font ><%=p_sur_part %></font></td>
|
||||
<td width="15%" class='bg-gray-light text-center'><3E>ǻ<EFBFBD><C7BB><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td><font ><%=p_field_process %></font></td>
|
||||
</tr>
|
||||
<%
|
||||
end if
|
||||
adors.close
|
||||
%>
|
||||
|
||||
|
||||
<%if admin = "true" then%>
|
||||
<tr height=30 bgcolor='yellow'>
|
||||
<td width=100% colspan=4 ><3E><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ܰ<EFBFBD>(Actual <20>Է°<D4B7><C2B0><EFBFBD><EFBFBD>ڸ<EFBFBD> <20><><EFBFBD><EFBFBD>) : <%=ing_stat%> </td>
|
||||
</tr>
|
||||
<%end if%>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding:10 0 0 0;">
|
||||
<table id="direct_cost_table" class='table table-sm table-sm2 table-bordered table-head tr-colors'>
|
||||
<tr>
|
||||
<td class='align-middle text-center' rowspan="2"><3E><EFBFBD></td>
|
||||
<td class='align-middle text-center' rowspan="2"><3E><><EFBFBD>γ<EFBFBD><CEB3><EFBFBD></td>
|
||||
<td class='align-middle text-center' colspan="4"><font class="tahoma_white">Estimate Cost</font></td>
|
||||
<td class='align-middle text-center' style="width:200px;"></td>
|
||||
<td class='align-middle text-center' colspan="4"><font class="tahoma_white">Actual Cost</font></td>
|
||||
<td class='align-middle text-center' rowspan="2"><3E><><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD>)</td>
|
||||
<td class='align-middle text-center' rowspan="2"><font class="tahoma_white">Action</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='align-middle text-center' ><3E><>(<28>ܰ<EFBFBD>)</td>
|
||||
<td class='align-middle text-center' ><3E><>/<2F><></td>
|
||||
<td class='align-middle text-center' ><3E><><EFBFBD><EFBFBD>/<2F>ð<EFBFBD></td>
|
||||
<td class='align-middle text-center' ><3E>ݾ<EFBFBD></td>
|
||||
<td class='align-middle text-center'><3E><EFBFBD></td>
|
||||
<td class='align-middle text-center' ><3E><>(<28>ܰ<EFBFBD>)</td>
|
||||
<td class='align-middle text-center' ><3E><>/<2F><></td>
|
||||
<td class='align-middle text-center' ><3E><><EFBFBD><EFBFBD>/<2F>ð<EFBFBD></td>
|
||||
<td class='align-middle text-center' ><3E>ݾ<EFBFBD></td>
|
||||
</tr>
|
||||
<% for i=0 to line_total-1
|
||||
pay_Array_new(i,7) = ""
|
||||
pay_Array_new(i,8) = ""
|
||||
pay_Array_new(i,9) = ""
|
||||
%>
|
||||
<tr>
|
||||
<!-- (2014-05-13)save<76><65> hangmok<6F><6B><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϱ<EFBFBD> <20><><EFBFBD><EFBFBD> hidden<65><6E><EFBFBD><EFBFBD> hangmok<6F><6B> <20><><EFBFBD><EFBFBD> -->
|
||||
<td class='align-middle text-center'><span class="field_hangmok"><%=pay_Array_new(i,1)%></span></td> <!-- <20><EFBFBD> -->
|
||||
<%If (Session("Depart_Code") = "12" or Session("Depart_Code") = "18") and (pay_Array_new(i,1)= "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ΰǺ<CEB0>" or pay_Array_new(i,1)= "<22>ڷ<EFBFBD>ó<EFBFBD><C3B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>") Then %>
|
||||
<td class='align-middle text-center'><span class="field_sebu" style="cursor:pointer;"><%=pay_Array_new(i,2)%></span></td> <!-- <20><><EFBFBD><EFBFBD> -->
|
||||
<%Else %>
|
||||
<td class='align-middle text-center'><%=pay_Array_new(i,2)%></td> <!-- <20><><EFBFBD><EFBFBD> -->
|
||||
<%End If %>
|
||||
|
||||
<td class='align-middle text-center'><%if pay_Array_new(i,3) <> "" then response.write FormatNumber(pay_Array_new(i,3) ,0) end if%></td> <!-- <20><><EFBFBD><EFBFBD> <20><>(<28>ܰ<EFBFBD>) -->
|
||||
<td class='align-middle text-center'><%if pay_Array_new(i,4) <> "" then response.write FormatNumber(pay_Array_new(i,4) ,0) end if%></td> <!-- <20><><EFBFBD><EFBFBD> <20><>/<2F><> -->
|
||||
<td class='align-middle text-center'><%if pay_Array_new(i,5) <> "" then response.write FormatNumber(pay_Array_new(i,5) ,2) end if%></td> <!-- <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>/<2F>ð<EFBFBD> -->
|
||||
<td class='align-middle text-center'><%if pay_Array_new(i,6) <> "" then response.write FormatNumber(pay_Array_new(i,6) ,0) end if%></td> <!-- <20><><EFBFBD><EFBFBD> <20>ݾ<EFBFBD> -->
|
||||
|
||||
<td align="left" ><%= pay_Array_new(i,16)%></td> <!-- <20><EFBFBD> -->
|
||||
|
||||
<td class='align-middle text-center'><%if pay_Array_new(i,7) <> "" then response.write FormatNumber(pay_Array_new(i,7) ,0) end if%></td> <!-- <20><><EFBFBD><EFBFBD> <20><>(<28>ܰ<EFBFBD>) -->
|
||||
<td class='align-middle text-center'><%if pay_Array_new(i,8) <> "" then response.write FormatNumber(pay_Array_new(i,8) ,0) end if%></td> <!-- <20><><EFBFBD><EFBFBD> <20><>/<2F><> -->
|
||||
<td class='align-middle text-center'><%if pay_Array_new(i,9) <> "" then response.write FormatNumber(pay_Array_new(i,9) ,0) end if%></td> <!-- <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>/<2F>ð<EFBFBD> -->
|
||||
<%If (Session("Depart_Code") = "12" or Session("Depart_Code") = "18") and (pay_Array_new(i,1)= "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ΰǺ<CEB0>" or pay_Array_new(i,1)= "<22>ڷ<EFBFBD>ó<EFBFBD><C3B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>") Then %>
|
||||
<td class='align-middle text-center'><span class="act_cost"><%if pay_Array_new(i,10) <> "" then response.write FormatNumber(pay_Array_new(i,10) ,0) end if%></span></td> <!-- <20><><EFBFBD><EFBFBD> <20>ݾ<EFBFBD> -->
|
||||
<%Else %>
|
||||
<td class='align-middle text-center'><%if pay_Array_new(i,10) <> "" then response.write FormatNumber(pay_Array_new(i,10) ,0) end if%></td> <!-- <20><><EFBFBD><EFBFBD> <20>ݾ<EFBFBD> -->
|
||||
<%End If %>
|
||||
<td class='align-middle text-center'><%if pay_Array_new(i,11) <> "" then response.write FormatNumber(pay_Array_new(i,11) ,0) end if%></td> <!-- <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> -->
|
||||
<td class='align-middle text-center'>
|
||||
<%
|
||||
'Response.Write Session("Depart_Code")
|
||||
'if pay_Array_new(i,12) = "<22>ǻ<EFBFBD>" and Session("Depart_Code") = "12" and _
|
||||
'##### DP <20>ڵ<EFBFBD> <20><>Ʈ <20>߰<EFBFBD> (2018-02-22) <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
'##### p_code_1="20150810"(<28>ӽ<EFBFBD><D3BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>̾<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>߰<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> - 20180223 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
|
||||
'##### <20>ڵ<EFBFBD> -> <20>ǻ<EFBFBD> <20><><EFBFBD><EFBFBD> (2018-11) Hwi
|
||||
if pay_Array_new(i,12) = "<22>ǻ<EFBFBD>" and Session("Depart_Code") = "12" and _
|
||||
(trim(Session("User_Number")) = p_sv_1 or trim(Session("User_Number")) = p_sv_2 or trim(Session("User_Number")) = p_sv_3 or trim(Session("User_Number")) = p_sv_4 _
|
||||
or trim(Session("User_Number")) = p_code_1 or p_code_1="20181009" or trim(Session("User_Number")) = p_code_2 or trim(Session("User_Number")) = p_code_3 or trim(Session("User_Number")) = p_code_4 _
|
||||
or trim(Session("User_Number")) = p_verify_1 or trim(Session("User_Number")) = p_verify_2 or trim(Session("User_Number")) = p_verify_3 or trim(Session("User_Number")) = p_verify_4 _
|
||||
or trim(Session("User_Number")) = p_punch_1 or trim(Session("User_Number")) = p_punch_2 or trim(Session("User_Number")) = p_punch_3 or trim(Session("User_Number")) = p_punch_4 _
|
||||
or trim(Session("teamplace")) >= 3 ) then %>
|
||||
<% if pay_Array_new(i,12) = "<22>ǻ<EFBFBD>" and Session("Depart_Code") = "12" and trim(Session("teamplace")) >= 3 then %>
|
||||
<button type="button" name="confirmN" id="confirmN_<%=i %>" value="N" <% if pay_Array_new(i,15) = "N" then %> style="display :none" <% end if %> onclick="confirmYN('<%=pay_Array_new(i,1)%>','<%=pay_Array_new(i,2)%>','N','<%=i %>')"><3E><><EFBFBD><EFBFBD></button>
|
||||
<% else %>
|
||||
<!--<input type="text" name="confirmN" id="confirmN_<%=i %>" value="Ȯ<>ε<EFBFBD>" <% if pay_Array_new(i,15) = "N" then %> style="display :none" <% end if %> />-->
|
||||
<b name="confirmN" id="confirmN_<%=i %>" <% if pay_Array_new(i,15) = "N" then %> style="display :none;" <% end if %>>Ȯ<><C8AE> <20>Ϸ<EFBFBD></b>
|
||||
<% end if %>
|
||||
<button type="button" name="confirmY" id="confirmY_<%=i %>" value="Y" <% if pay_Array_new(i,15) = "Y" then %> style="display :none" <% end if %>onclick="confirmYN('<%=pay_Array_new(i,1)%>','<%=pay_Array_new(i,2)%>','Y',<%=i %>)">Ȯ<><C8AE></button>
|
||||
<%
|
||||
end if
|
||||
If cost_type = "all" Then
|
||||
%>
|
||||
<%=pay_Array_new(i,12)%>
|
||||
<%
|
||||
If InStr(p_child_sn, "_M") > 7 And pay_Array_new(i,12) = "<22>ǻ<EFBFBD>" then
|
||||
%>
|
||||
(<%=pay_Array_new(i,14)%>)
|
||||
<%
|
||||
End if
|
||||
End If
|
||||
%>
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
NEXT
|
||||
%>
|
||||
<tr>
|
||||
<td class='align-middle text-center' rowspan="3"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td class='align-middle text-center' rowspan="3"><b class="tahoma_orange"><%=formatnumber(p_cont_cost,0)%></b> <20><><br>(<28>ΰ<EFBFBD><CEB0><EFBFBD> <20><><EFBFBD><EFBFBD>)</td>
|
||||
<td class='align-middle text-center' colspan="2"><%=cost_type_name%> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td class='align-middle text-center' colspan="3"><font ><input type="text" style="width:120;text-align:right" name=estimate_sum value='<%=formatnumber(est_sum,0)%>' readonly><3E><></td>
|
||||
<td class='align-middle text-center' colspan="2"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td class='align-middle text-center' colspan="4"><input type="text" name="actual_sum" style="width:120;text-align:right" value='<%=formatnumber(act_sum,0)%>' readonly><3E><></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='align-middle text-center' colspan="2"><%=cost_type_name%> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td class='align-middle text-center' colspan="3"><input name=estimate_proportion type="text" style="width:120;text-align:right" value='<%if p_cont_cost <> 0 then response.write formatnumber(est_sum / p_cont_cost * 100,2) else response.write "0" end if%>' readonly>%</td>
|
||||
<td class='align-middle text-center' colspan="2"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td class='align-middle text-center' colspan="4"><input type="text" name=actual_proportion style="width:120;text-align:right" value='<%if p_cont_cost <> 0 then response.write formatnumber(act_sum / p_cont_cost * 100,2) else response.write "0" end if%>' readonly>%</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='align-middle text-center' colspan="2"><3E><><EFBFBD>ô<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td class='align-middle text-center' colspan="3"><input name=estimate_sample type="text" style="width:120;text-align:right" value='<%if p_sample <> 0 then %><%=formatnumber(est_sum / p_sample,0)%><%else %>0<%end if %>' readonly><3E><></td>
|
||||
<td class='align-middle text-center' colspan="2"><3E><><EFBFBD>ô<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td class='align-middle text-center' colspan="4"><input type="text" name=actual_sample style="width:120;text-align:right" value='<%if p_sample <> 0 then %><%=formatnumber(act_sum / p_sample,0)%><%else %>0<%end if %>' readonly><3E><></td>
|
||||
</tr>
|
||||
<%if cost_type = "field" Or cost_type = "all" then%>
|
||||
<tr>
|
||||
<td class='align-middle text-center'><3E><EFBFBD><br>
|
||||
<img src="/images/project/btn_ssave.gif" title='<27><EFBFBD><DEB8><EFBFBD><EFBFBD><EFBFBD>' onclick="save_memo();" style='cursor:pointer' align="absmiddle">
|
||||
</td>
|
||||
<td class='align-middle text-center' colspan="12">
|
||||
<textarea rows=5 cols=80 name='txt_memo' style="width:100%;height:80;"><%=pay_Array_new(0,0)%></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<%if admin = "true" then%>
|
||||
<tr>
|
||||
<td class='align-middle text-center'>MEMO<br><3E>濵<EFBFBD><E6BFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></td>
|
||||
<td class='align-middle text-center' colspan="12">
|
||||
<TEXTAREA rows=5 cols=80 name='txt_memo2' style="width:100%;height:80;"><%=pay_Array_new(0,13)%></TEXTAREA>
|
||||
</td>
|
||||
</tr>
|
||||
<%end if%>
|
||||
<%end if%>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.content -->
|
||||
<!-- REQUIRED SCRIPTS -->
|
||||
<script>
|
||||
//<2F><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
function save_memo() {//sv<73><76><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> : 2010<31><30> 7<><37> 6<><36> <20><><EFBFBD><EFBFBD>
|
||||
document.frm_direct_cost.action = "/inspection/direct_cost_sv_memo_save_2014.asp?ref=" + encodeURIComponent(window.location.href);
|
||||
document.frm_direct_cost.submit();
|
||||
}
|
||||
|
||||
function p_method_cd_select() {
|
||||
if ($('#p_method_cd option:selected').val() == "") {
|
||||
direct_cost_table.style.visibility = "hidden";
|
||||
} else {
|
||||
//alert($('#p_child_sn option:selected').val());
|
||||
direct_cost_table.style.visibility = "visible";
|
||||
var url = "p_sn=" + document.frm_direct_cost.p_sn.value;
|
||||
url = url + "&p_method_cd=" + $('#p_method_cd option:selected').val();
|
||||
|
||||
document.frm_direct_cost.action = "direct_cost_print_2014.asp?" + url;
|
||||
document.frm_direct_cost.submit();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function confirmYN(hangmok, sebu, yn, i) {
|
||||
p_child_sn = document.frm_direct_cost.p_child_sn.value;
|
||||
cost_type = document.frm_direct_cost.cost_type.value;
|
||||
document.frm_direct_cost.lineNumber.value = i;
|
||||
ajaxCallJson("direct_cost_ajax_confirm.asp?hangmok=" + hangmok + "&sebu=" + sebu, { p_child_sn: p_child_sn, cost_type: cost_type, confirmYN: yn }, null, "post", "confrimYNResult()");
|
||||
|
||||
}
|
||||
function confrimYNResult() {
|
||||
lineNumber = document.frm_direct_cost.lineNumber.value
|
||||
if (ajaxResponse == "Y_OK") {
|
||||
$("#confirmY_" + lineNumber).css("display", "none");
|
||||
$("#confirmN_" + lineNumber).css("display", "inline");
|
||||
}else {
|
||||
$("#confirmY_" + lineNumber).css("display", "inline");
|
||||
$("#confirmN_" + lineNumber).css("display", "none");
|
||||
}
|
||||
}
|
||||
|
||||
$(function () {
|
||||
cutmenu(); /// <20>˾<EFBFBD><CBBE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
|
||||
var url;
|
||||
var p_sn = "<%=p_child_sn %>";
|
||||
var sebu_name;
|
||||
$(".field_sebu").each(function (i) {
|
||||
if ($(".act_cost:eq(" + i + ")").text() != "0") {
|
||||
$(".field_sebu:eq(" + i + ")").css("color", "red");
|
||||
} else {
|
||||
$(".field_sebu:eq(" + i + ")").css("color", "black");
|
||||
}
|
||||
|
||||
$(".field_sebu:eq(" + i + ")").click(function () {
|
||||
if ($(this).parent("td").prev().text() == "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ΰǺ<CEB0>" || $(this).parent("td").prev().text() == "<22>ڷ<EFBFBD>ó<EFBFBD><C3B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>") {
|
||||
if ($(".act_cost:eq(" + i + ")").text() == "0") {
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ݾ<EFBFBD><DDBE><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
|
||||
return false;
|
||||
} else {
|
||||
url = "direct_cost_print_2014_ajax.asp?p_sn=" + p_sn + "&sebu_name=" + $(this).text() + "&sebu_hangmok=" + $(this).parent("td").prev().text();
|
||||
$("#m_list").dialog({
|
||||
autoOpen: false,
|
||||
modal: true,
|
||||
resizable: false,
|
||||
position: { my: "center", at: "top" },
|
||||
show: "blind",
|
||||
width: "800",
|
||||
height: "auto",
|
||||
title: "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>Ʈ",
|
||||
open: function () {
|
||||
$(".ui-widget-overlay").css({
|
||||
opacity: 0.5,
|
||||
filter: "Alpha(Opacity=50)",
|
||||
backgroundColor: "gray"
|
||||
});
|
||||
},
|
||||
close: function (event, ui) {
|
||||
$("body").css({
|
||||
overflow: 'inherit'
|
||||
});
|
||||
url = "";
|
||||
$("#m_list").dialog("close");
|
||||
}
|
||||
});
|
||||
$("#m_list").load(url, function () {
|
||||
$("#m_list").dialog("open");
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
<!-- #include virtual = "include/footer.asp" -->
|
||||
134
ess/direct_cost_print_2014_ajax.asp
Normal file
134
ess/direct_cost_print_2014_ajax.asp
Normal file
@@ -0,0 +1,134 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
Response.CharSet="euc-kr"
|
||||
Session.codepage="949"
|
||||
Response.codepage="949"
|
||||
Response.ContentType="text/html;charset=euc-kr"
|
||||
|
||||
Dim url
|
||||
Dim x
|
||||
Dim p_sn : p_sn = Request("p_sn")
|
||||
Dim hangmok : hangmok = Request("sebu_hangmok")
|
||||
Dim sebu : sebu = Request("sebu_name")
|
||||
If hangmok = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ΰǺ<CEB0>" OR sebu = "<22>ص<EFBFBD><D8B5><EFBFBD>" Then
|
||||
url = "/ess/doc_myun_pay_print2.asp"
|
||||
x="2"
|
||||
Else
|
||||
url = "/ess/doc_myun_pay_print.asp"
|
||||
x=""
|
||||
End If
|
||||
%>
|
||||
<script type="text/javascript">
|
||||
var agent = navigator.userAgent.toLowerCase();
|
||||
var chromeChk = false;
|
||||
if (agent.indexOf("chrome") != -1) {
|
||||
chromeChk = true;
|
||||
}
|
||||
$(document).ready(function () {
|
||||
|
||||
//console.log($("inpit[name=minus_money_flag]"));
|
||||
|
||||
$(".d_no").each(function () {
|
||||
|
||||
$(this).mouseover(function () {
|
||||
$(this).css("color", "blue");
|
||||
$(this).css("font-weight", "bold");
|
||||
});
|
||||
|
||||
$(this).mouseout(function () {
|
||||
$(this).css("color", "");
|
||||
$(this).css("font-weight", "");
|
||||
});
|
||||
|
||||
$(this).click(function () {
|
||||
$("#m_d_no *").remove();
|
||||
var d_no = $(this).text().replace(' ', '');
|
||||
if (d_no.indexOf('-i-') > 0) {
|
||||
var url = "doc_expense_print_2014.asp";
|
||||
} else {
|
||||
var url = "<%=url %>";
|
||||
var x = "<%=x %>";
|
||||
}
|
||||
|
||||
var view_chk = "1";
|
||||
|
||||
var title_type = "undefined";
|
||||
url = url + "?d_no=" + d_no + "&view_chk=" + view_chk + "&x=" + x + "&title_type+" + title_type;
|
||||
if(chromeChk == false){
|
||||
window.open(url,'','left=0,top=0,width=1000,height=1000,scrollbars=yes,resizable=yes');
|
||||
return;
|
||||
}
|
||||
$.ajax({
|
||||
url: url,
|
||||
type: "get",
|
||||
contentType: 'application/x-www-form-urlencoded; charset=euc-kr',
|
||||
data:
|
||||
{
|
||||
"p_child_sn": "<%=p_child_sn %>",
|
||||
"startDT": "<%=startDT %>",
|
||||
"endDT": "<%=endDT %>",
|
||||
"sv": "<%=sv %>",
|
||||
"pay_type": "<%=pay_type %>",
|
||||
"cost_type": "<%=cost_type %>",
|
||||
"krc_no": "<%=krc_no %>"
|
||||
},
|
||||
success: function (response, textStatus, jqXHR) {
|
||||
$("#m_d_no").append(response);
|
||||
},
|
||||
error: function (error) {
|
||||
console.log(error);
|
||||
alert("Web Service Error.");
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
<table width="100%" cellpadding="2" cellspacing="0" border="1" style="border-collapse:collapse;text-align:center;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD>ڵ<EFBFBD></td>
|
||||
<td ><3E><><EFBFBD><EFBFBD>S/V</td>
|
||||
<td ><3E><><EFBFBD>γ<EFBFBD><CEB3><EFBFBD></td>
|
||||
<td ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ</td>
|
||||
<td ><3E><><EFBFBD>ް<EFBFBD><DEB0><EFBFBD></td>
|
||||
</tr>
|
||||
<%
|
||||
SQL = ""
|
||||
SQL = SQL & " select a.p_sn, a.p_name, a.sebu, a.attribute05, sum(a.d_cost) as d_cost from "&VbCrlf
|
||||
SQL = SQL & " ( "&VbCrlf
|
||||
SQL = SQL & " select sum(s_sum) as d_cost, p_sn, (select p_name from person where p_no=insert_user) as p_name, s_gubun as sebu, attribute05 "&VbCrlf
|
||||
SQL = SQL & " from T_NEAKEUN_PAY where attribute01 in (select cast(id as varchar) from neakeun_work) "&VbCrlf
|
||||
SQL = SQL & " GROUP BY p_sn, insert_user, s_gubun, attribute05 "&VbCrlf
|
||||
SQL = SQL & " union all "&VbCrlf
|
||||
SQL = SQL & " select sum(s_sum) as d_cost, p_sn, (select p_name from person where p_no=insert_user) as p_name, est_money as sebu,attribute05 "&VbCrlf
|
||||
SQL = SQL & " from T_MYUN_PAY where confirm_yn='Y' "&VbCrlf
|
||||
SQL = SQL & " GROUP BY p_sn, insert_user, est_money, attribute05 "&VbCrlf
|
||||
SQL = SQL & " union all "&VbCrlf
|
||||
SQL = SQL & " select cast(target5 as varchar) as d_cost, cast(target10 as varchar) as p_sn, login_<6E≯<EFBFBD> as p_name, (select d_cost_name from direct_costcode where id in (cast(cast(target12 as varchar) as int ))) as sebu, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ as attribute05 "&VbCrlf
|
||||
SQL = SQL & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>='<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǽ<EFBFBD>' and del_yes_no = 'no' and cast(target10 as varchar) <> '' "&VbCrlf
|
||||
SQL = SQL & " ) a "&VbCrlf
|
||||
SQL = SQL & " where a.p_sn = '" & p_sn & "' and a.sebu = '" & sebu & "' "&VbCrlf
|
||||
SQL = SQL & " group by a.p_sn, a.p_name, a.sebu, a.attribute05 "&VbCrlf
|
||||
SQL = SQL & " order by a.p_name, a.attribute05 "
|
||||
'Response.Write sql
|
||||
adoRs.Open SQL, adoconn, 1
|
||||
while not adoRs.eof
|
||||
%>
|
||||
<tr>
|
||||
<td ><%=adoRs("p_sn") %></td>
|
||||
<td ><%=adoRs("p_name") %></td>
|
||||
<td ><%=adoRs("sebu") %></td>
|
||||
<td ><span class="d_no" style="cursor:pointer;"><%=adoRs("attribute05") %></span></td>
|
||||
<td ><%=formatnumber(adoRs("d_cost"), 0) %> <20><></td>
|
||||
</tr>
|
||||
<%
|
||||
adoRs.movenext
|
||||
wend
|
||||
adoRs.close
|
||||
%>
|
||||
</tbody>
|
||||
</table>
|
||||
<br /><br />
|
||||
<div id="m_d_no"></div>
|
||||
372
ess/doc_commute_print.asp
Normal file
372
ess/doc_commute_print.asp
Normal file
@@ -0,0 +1,372 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
dim tmpstr
|
||||
dim Query
|
||||
dim i, j
|
||||
dim user_name(4) '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,0:<3A><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD>, 1:<3A≯<EFBFBD>,2:<3A><><EFBFBD><EFBFBD>,3:<3A><>ȭ<EFBFBD><C8AD>ȣ, 4:<3A>μ<EFBFBD><CEBC>ڵ<EFBFBD>(<28><>)
|
||||
dim Max_Width
|
||||
dim title
|
||||
dim target_name '<27>߱<DFB1><DEB4><EFBFBD><EFBFBD><EFBFBD> <20≯<EFBFBD>
|
||||
dim Curr_date '<27><><EFBFBD>ó<EFBFBD>¥
|
||||
dim Company(6)
|
||||
dim krc_no
|
||||
dim Gap()
|
||||
dim Max_Repare_Day_Cnt
|
||||
dim print_type '1:<3A><><EFBFBD><EFBFBD>, 2:<3A><>¥<EFBFBD><C2A5><EFBFBD><EFBFBD>Ʈ
|
||||
dim db_table_name
|
||||
|
||||
d_no = request("d_no")
|
||||
x = request("x")
|
||||
krc_no = d_no
|
||||
print_type = request("print_type")
|
||||
view_chk= request("view_chk")
|
||||
|
||||
db_table_name = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
|
||||
title="<22><><EFBFBD><EFBFBD><EFBFBD>ٺ<EFBFBD><D9BA><EFBFBD><EFBFBD><EFBFBD>"
|
||||
Max_Width =750
|
||||
Curr_date = year(date) & "<22><> " & zeroformat(month(date),2) & "<22><> " & zeroformat(day(date),2) & "<22><>"
|
||||
|
||||
|
||||
|
||||
query = "SELECT * "
|
||||
query = query & "FROM <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> as a "
|
||||
query = query & " INNER JOIN Document as b on a.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = b.d_no "
|
||||
query = query & "WHERE a.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ='" & d_no & "' "
|
||||
if x = "99" then
|
||||
else
|
||||
query = query & " AND b.d_delok = 'N' "
|
||||
end if
|
||||
rsc.Open query, adoConn, 1
|
||||
if rsc.RecordCount > 0 then
|
||||
|
||||
tmp_date = split(rsc("d_write_date"), "-")
|
||||
Curr_date = tmp_date(0) & "<22><> " & tmp_date(1) & "<22><> " & tmp_date(2) & "<22><>"
|
||||
|
||||
tmp_0 = split(rsc("target97"), "^^")
|
||||
user_name(0) = rsc("login_p_no") '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
user_name(1) = tmp_0(0) '<27≯<EFBFBD>
|
||||
user_name(2) = tmp_0(1) '<27><><EFBFBD><EFBFBD> <20>ڵ<EFBFBD>
|
||||
user_name(3) = tmp_0(2) '<27><><EFBFBD><EFBFBD> <20><>ȭ
|
||||
user_name(4) = tmp_0(3) '<27>μ<EFBFBD><CEBC>ڵ<EFBFBD>
|
||||
|
||||
tmp_00 = split(rsc("target98"), "^^")
|
||||
Company(1) = tmp_00(0)
|
||||
Company(2) = tmp_00(1)
|
||||
Company(3) = tmp_00(2)
|
||||
Company(4) = tmp_00(3)
|
||||
Company(5) = tmp_00(4)
|
||||
Company(6) = tmp_00(5)
|
||||
|
||||
tmp_7 = split(rsc("target99"), "^^")
|
||||
tmp_8 = split(rsc("target100"), "^^")
|
||||
|
||||
if instr(1,tmp_7(0), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt1 = tmp_7(0)
|
||||
elseif instr(1,tmp_7(0), "<BR>") then
|
||||
tmp_t1 = split(tmp_7(0), "<BR>")
|
||||
tmp_txt1 = "<img src='/images/sign/" & tmp_t1(0) & "_" & tmp_t1(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt1 = tmp_7(0)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(1), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt2 = tmp_7(1)
|
||||
elseif instr(1,tmp_7(1), "<BR>") then
|
||||
tmp_t2 = split(tmp_7(1), "<BR>")
|
||||
tmp_txt2 = "<img src='/images/sign/" & tmp_t2(0) & "_" & tmp_t2(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt2 = tmp_7(1)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(2), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt3 = tmp_7(2)
|
||||
elseif instr(1,tmp_7(2), "<BR>") then
|
||||
tmp_t3 = split(tmp_7(2), "<BR>")
|
||||
tmp_txt3 = "<img src='/images/sign/" & tmp_t3(0) & "_" & tmp_t3(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt3 = tmp_7(2)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(3), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt4 = tmp_7(3)
|
||||
elseif instr(1,tmp_7(3), "<BR>") then
|
||||
tmp_t4 = split(tmp_7(3), "<BR>")
|
||||
tmp_txt4 = "<img src='/images/sign/" & tmp_t4(0) & "_" & tmp_t4(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt4 = tmp_7(3)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(4), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt5 = tmp_7(4)
|
||||
elseif instr(1,tmp_7(4), "<BR>") then
|
||||
tmp_t5 = split(tmp_7(4), "<BR>")
|
||||
tmp_txt5 = "<img src='/images/sign/" & tmp_t5(0) & "_" & tmp_t5(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt5 = tmp_7(4)
|
||||
end if
|
||||
|
||||
tmp_txt6 = tmp_8(0)
|
||||
tmp_txt7 = tmp_8(1)
|
||||
tmp_txt8 = tmp_8(2)
|
||||
tmp_txt9 = tmp_8(3)
|
||||
tmp_txt10 = tmp_8(4)
|
||||
|
||||
for i = 16 to 1 step -1
|
||||
if not isnull(rsc("target" & i)) then
|
||||
Max_Repare_Day_Cnt = i
|
||||
exit for
|
||||
end if
|
||||
next
|
||||
|
||||
'Max_Repare_Day_Cnt = request("txt_Max_Repare_Day_Cnt")
|
||||
redim Gap(Max_Repare_Day_Cnt,6) 'x:<3A><><EFBFBD><EFBFBD>, y:1:<3A><>¥, 2:system <20><><EFBFBD>ٽð<D9BD>, 3:system <20><><EFBFBD>ٽð<D9BD>, 4:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, 5:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ð<EFBFBD>, 6:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ð<EFBFBD>
|
||||
for i=1 to Max_Repare_Day_Cnt
|
||||
tmp_1 = split(rsc("target" & i), "^^")
|
||||
gap(i, 1) = tmp_1(0)
|
||||
gap(i, 2) = tmp_1(1)
|
||||
gap(i, 3) = tmp_1(2)
|
||||
gap(i, 4) = tmp_1(3)
|
||||
gap(i, 5) = tmp_1(4)
|
||||
gap(i, 6) = tmp_1(5)
|
||||
next
|
||||
|
||||
for i=1 to Max_Repare_Day_Cnt
|
||||
for j=1 to 6
|
||||
if trim(gap(i, j)) = "" then
|
||||
gap(i, j) = " "
|
||||
end if
|
||||
if trim(gap(i, j)) = "?" then
|
||||
gap(i, j) = " "
|
||||
end if
|
||||
next
|
||||
next
|
||||
|
||||
d_order_cnt = int(rsc("d_order_cnt"))
|
||||
%>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title><%=GNB_TITLE%></title>
|
||||
<link rel="stylesheet" type="text/css" href="/css/basic.css">
|
||||
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
|
||||
</head>
|
||||
|
||||
<script language=javascript>
|
||||
function win_close()
|
||||
{
|
||||
window.close();
|
||||
}
|
||||
|
||||
function win_print()
|
||||
{
|
||||
url = "doc_commute_print.asp?print_type=2";
|
||||
document.ess.action=url;
|
||||
//alert(document.ess.action);
|
||||
document.ess.submit();
|
||||
}
|
||||
|
||||
function print_ie()
|
||||
{
|
||||
|
||||
//
|
||||
if(navigator.userAgent.toLowerCase().indexOf('chrome') > -1){ // Chrome Browser Detected?
|
||||
window.PPClose = false; // Clear Close Flag
|
||||
window.onbeforeunload = function(){ // Before Window Close Event
|
||||
if(window.PPClose === false){ // Close not OK?
|
||||
return 'Leaving this page will block the parent window!\nPlease select "Stay on this Page option" and use the\nCancel button instead to close the Print Preview Window.\n';
|
||||
}
|
||||
}
|
||||
window.print(); // Print preview
|
||||
window.PPClose = true; // Set Close Flag to OK.
|
||||
}else{
|
||||
window.print();
|
||||
window.close();
|
||||
}
|
||||
}
|
||||
|
||||
function clsit()
|
||||
{
|
||||
alert('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>û <20>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>');
|
||||
self.close();
|
||||
}
|
||||
|
||||
function subit(a, b)
|
||||
{
|
||||
var tmp_txt;
|
||||
var approve_pass;
|
||||
|
||||
if (a == 1)
|
||||
{
|
||||
tmp_txt = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ";
|
||||
approve_pass = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
tmp_txt = "";
|
||||
}
|
||||
|
||||
if (confirm(tmp_txt + "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?"))
|
||||
{
|
||||
document.ess.action = "allow_ok.asp?approve_pass="+approve_pass;
|
||||
document.ess.action = "allow_ok.asp?approve_pass="+approve_pass+"&tmp_pass_psn="+b;
|
||||
document.ess.submit();
|
||||
}
|
||||
}
|
||||
|
||||
function backit(a)
|
||||
{
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ۼ<EFBFBD><DBBC><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>");
|
||||
var url = "reason.asp?d_no="+a;
|
||||
window.open(url,'','left=0,top=0,width=400,height=180,scrollbars=yes,resizable=yes')
|
||||
}
|
||||
|
||||
function request_pros()
|
||||
{
|
||||
//alert('ok');
|
||||
document.ess.action = "request_ok.asp?x=6";
|
||||
document.ess.submit();
|
||||
}
|
||||
|
||||
//-->
|
||||
</script>
|
||||
|
||||
<body topmargin="10" leftmargin="10" <%if cint(print_type) = 2 then%> onLoad="print_ie();" <% end if %>>
|
||||
|
||||
<form method='post' name='ess'>
|
||||
|
||||
<input type="hidden" name="d_no" value="<%=d_no%>">
|
||||
<input type=hidden name='txt_p_no' title ='<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>' value = '<%=user_name(0)%>'>
|
||||
<input type=hidden name='txt_p_name' title ='<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20≯<EFBFBD>' value = '<%=user_name(1)%>'>
|
||||
<input type=hidden name='txt_line_cnt' title ='<27><><EFBFBD><EFBFBD><EFBFBD>ΰ<EFBFBD>' value = '<%=Max_Repare_Day_Cnt%>'>
|
||||
|
||||
<%if x = "99" then%>
|
||||
<!-- #include file = "inc_delreason.asp" -->
|
||||
<%end if '''if x = "99" then%>
|
||||
|
||||
<%
|
||||
if cint(print_type) <> 2 and (d_order_cnt = "99" or d_order_cnt = "77") and (tmp_admin_chk = "1" or tmp_request_chk = "1" or int(rsc("login_p_no")) = int(Session("User_Number"))) then
|
||||
%>
|
||||
<!-- #include file = "inc_print.asp" -->
|
||||
<%end if%>
|
||||
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td >
|
||||
<table cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td><img src="/images/approval/docbg_top.jpg"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="710" align="center" style="padding:10;border-left:1px solid #dedede;border-right:1px solid #dedede;">
|
||||
<table width="95%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td colspan="2" style="padding:0 0 10 0">
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<td width="255"><img src="/images/approval/doc_stit12.jpg"></td>
|
||||
<td>
|
||||
<!-- #include file = "inc_approval.asp" -->
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><> <3B><> <3B><></b></td>
|
||||
<td width="80%" class="tahoma"><%=Curr_date%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><></b></td>
|
||||
<td width="80%"><%=user_name(1)%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><></b></td>
|
||||
<td width="80%"><%=user_name(4)%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><></b></td>
|
||||
<td width="80%"><%=user_name(2)%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:20 0 10 0;font-size:14;font-family:dotum;"><b><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>Ͽ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD><CFBF><EFBFBD> <20>簡<EFBFBD>Ͽ<EFBFBD> <20>ֽñ<D6BD> <20>ٶ<EFBFBD><D9B6>ϴ<EFBFBD>.</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:10 0 0 0">
|
||||
<table width="100%" cellpadding="5" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr >
|
||||
<td rowspan=2 class='tit2' align="center"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td colspan=2 class='tit2' align="center">System<65><6D></td>
|
||||
<td rowspan=2 class='tit2' align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td rowspan=2 class='tit2' align="center"><3E><><EFBFBD><EFBFBD><br><3E><><EFBFBD><EFBFBD><EFBFBD>ð<EFBFBD></td>
|
||||
<td rowspan=2 class='tit2' align="center"><3E><><EFBFBD><EFBFBD><br><3E><><EFBFBD><EFBFBD><EFBFBD>ð<EFBFBD></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tit2' align="center"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td class='tit2' align="center"><3E><><EFBFBD><EFBFBD></td>
|
||||
</tr>
|
||||
<%for i=1 to Max_Repare_Day_Cnt%>
|
||||
<tr height=30>
|
||||
<td class='tit7' align="center"><font class="tahoma"><%=gap(i,1)%></font></td>
|
||||
<td class='tit7' align="center"><font class="tahoma"><%=gap(i,2)%></font></td>
|
||||
<td class='tit7' align="center"><font class="tahoma"><%=gap(i,3)%></font></td>
|
||||
<td class='tit7' align="center" style="width:300px;"><font class="tahoma"><%=gap(i,4)%></font></td>
|
||||
<td class='tit7' align="center"><font class="tahoma"><%=gap(i,5)%></font></td>
|
||||
<td class='tit7' align="center"><font class="tahoma"><%=gap(i,6)%></font></td>
|
||||
</tr>
|
||||
<%next%>
|
||||
|
||||
<%for i=Max_Repare_Day_Cnt + 1 to 10%>
|
||||
<tr height=30>
|
||||
<td colspan=6 class="tahoma"> </td>
|
||||
</tr>
|
||||
<%next%>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" style="padding:20 0 0 0" align="right">
|
||||
<pre><font class="tahoma"> <09><> û <20><> : <%=Curr_date%></font></pre>
|
||||
<pre><font class="tahoma"> <09><> û <20><> : <%=user_name(1)%> (<28><>)</font></pre>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:15 0 5 0"><!-- #include virtual= "approval/inc_logo.asp" --></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="/images/approval/docbg_btm.jpg"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding:10 0 0 0;" class="brown"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ް<EFBFBD> <20>ο<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ģ <20><> 4 <20><>(<28><><EFBFBD><EFBFBD> <20><> <20>ް<EFBFBD>) <20><><EFBFBD>ؿ<EFBFBD> <20>ǰ<EFBFBD><C7B0>մϴ<D5B4>.</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
<%
|
||||
end if
|
||||
rsc.Close
|
||||
%>
|
||||
495
ess/doc_consultation_print.asp
Normal file
495
ess/doc_consultation_print.asp
Normal file
@@ -0,0 +1,495 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
dim tmpstr
|
||||
dim Query
|
||||
dim i
|
||||
dim user_name(4) '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,0:<3A><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD>, 1:<3A≯<EFBFBD>,2:<3A><><EFBFBD><EFBFBD>,3:<3A><>ȭ<EFBFBD><C8AD>ȣ, 4:<3A>μ<EFBFBD><CEBC>ڵ<EFBFBD>(<28><>)
|
||||
dim Max_Width
|
||||
dim title
|
||||
dim target_name '<27>߱<DFB1><DEB4><EFBFBD><EFBFBD><EFBFBD> <20≯<EFBFBD>
|
||||
dim Curr_date '<27><><EFBFBD>ó<EFBFBD>¥
|
||||
dim Company(6)
|
||||
dim Gap(10) '1:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ<EFBFBD>, 2:ǰ<>Ǹ<EFBFBD><C7B8><EFBFBD>, 3:<3A><>ǰ<EFBFBD><C7B0><EFBFBD><EFBFBD>, 4:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, 5:<3A><><EFBFBD>ް<EFBFBD><DEB0><EFBFBD>, 6:<3A>ΰ<EFBFBD><CEB0><EFBFBD><EFBFBD><EFBFBD>, 7:<3A>Ѿ<EFBFBD>, 8:<3A>ŷ<EFBFBD>ó, 9:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD>ڵ<EFBFBD>, 10:ǰ<><C7B0>
|
||||
dim krc_no
|
||||
dim print_type '1:<3A><><EFBFBD><EFBFBD>, 2:<3A><>¥<EFBFBD><C2A5><EFBFBD><EFBFBD>Ʈ
|
||||
dim db_table_name
|
||||
|
||||
d_no = request("d_no")
|
||||
x = request("x")
|
||||
krc_no = d_no
|
||||
print_type = request("print_type")
|
||||
view_chk= request("view_chk")
|
||||
|
||||
db_table_name = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
|
||||
title="ǰ <20><> <20><>"
|
||||
Max_Width =750
|
||||
Curr_date = year(date) & "<22><> " & zeroformat(month(date),2) & "<22><> " & zeroformat(day(date),2) & "<22><>"
|
||||
|
||||
|
||||
|
||||
''//==========================================
|
||||
''2010<31><30> 3<><33> 3<><33>
|
||||
'''<27>μ<CEBC><E2BFA9> ǥ<><C7A5>
|
||||
if print_type = "2" then
|
||||
query = "update <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> set print_chk = 'Yes', print_cnt = print_cnt + 1 where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ='" & d_no & "' "
|
||||
adoConn.Execute query
|
||||
end if
|
||||
|
||||
|
||||
query = "SELECT * "
|
||||
query = query & "FROM <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> as a "
|
||||
query = query & " INNER JOIN Document as b on a.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = b.d_no "
|
||||
query = query & "WHERE a.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ='" & d_no & "' "
|
||||
|
||||
if x = "99" then
|
||||
else
|
||||
if session("admin_ip") = Request.ServerVariables("remote_host") then
|
||||
else
|
||||
query = query & " AND b.d_delok = 'N' "
|
||||
end if
|
||||
end if
|
||||
|
||||
rsc.Open query, adoConn, 1
|
||||
if rsc.RecordCount > 0 then
|
||||
|
||||
tmp_date = split(rsc("d_write_date"), "-")
|
||||
Curr_date = tmp_date(0) & "<22><> " & tmp_date(1) & "<22><> " & tmp_date(2) & "<22><>"
|
||||
|
||||
tmp_0 = split(rsc("target97"), "^^")
|
||||
user_name(0) = rsc("login_p_no") '<27><><EFBFBD><EFBFBD>
|
||||
user_name(1) = tmp_0(0) '<27≯<EFBFBD>
|
||||
user_name(2) = tmp_0(1) '<27><><EFBFBD><EFBFBD> <20>ڵ<EFBFBD>
|
||||
user_name(3) = tmp_0(2) '<27><><EFBFBD><EFBFBD> <20><>ȭ
|
||||
user_name(4) = tmp_0(3) '<27>μ<EFBFBD><CEBC>ڵ<EFBFBD>
|
||||
|
||||
tmp_00 = split(rsc("target98"), "^^")
|
||||
Company(1) = tmp_00(0)
|
||||
Company(2) = tmp_00(1)
|
||||
Company(3) = tmp_00(2)
|
||||
Company(4) = tmp_00(3)
|
||||
Company(5) = tmp_00(4)
|
||||
Company(6) = tmp_00(5)
|
||||
|
||||
tmp_7 = split(rsc("target99"), "^^")
|
||||
tmp_8 = split(rsc("target100"), "^^")
|
||||
|
||||
if instr(1,tmp_7(0), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt1 = tmp_7(0)
|
||||
elseif instr(1,tmp_7(0), "<BR>") then
|
||||
tmp_t1 = split(tmp_7(0), "<BR>")
|
||||
tmp_txt1 = "<img src='/images/sign/" & tmp_t1(0) & "_" & tmp_t1(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt1 = tmp_7(0)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(1), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt2 = tmp_7(1)
|
||||
elseif instr(1,tmp_7(1), "<BR>") then
|
||||
tmp_t2 = split(tmp_7(1), "<BR>")
|
||||
tmp_txt2 = "<img src='/images/sign/" & tmp_t2(0) & "_" & tmp_t2(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt2 = tmp_7(1)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(2), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt3 = tmp_7(2)
|
||||
elseif instr(1,tmp_7(2), "<BR>") then
|
||||
tmp_t3 = split(tmp_7(2), "<BR>")
|
||||
tmp_txt3 = "<img src='/images/sign/" & tmp_t3(0) & "_" & tmp_t3(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt3 = tmp_7(2)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(3), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt4 = tmp_7(3)
|
||||
elseif instr(1,tmp_7(3), "<BR>") then
|
||||
tmp_t4 = split(tmp_7(3), "<BR>")
|
||||
tmp_txt4 = "<img src='/images/sign/" & tmp_t4(0) & "_" & tmp_t4(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt4 = tmp_7(3)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(4), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt5 = tmp_7(4)
|
||||
elseif instr(1,tmp_7(4), "<BR>") then
|
||||
tmp_t5 = split(tmp_7(4), "<BR>")
|
||||
tmp_txt5 = "<img src='/images/sign/" & tmp_t5(0) & "_" & tmp_t5(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt5 = tmp_7(4)
|
||||
end if
|
||||
|
||||
if uBound(tmp_7) - Lbound(tmp_7) + 1 > 5 then
|
||||
if instr(1,tmp_7(5), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt5_1 = tmp_7(5)
|
||||
elseif instr(1,tmp_7(5), "<BR>") then
|
||||
tmp_t5_1 = split(tmp_7(5), "<BR>")
|
||||
tmp_txt5_1 = "<img src='/images/sign/" & tmp_t5_1(0) & "_" & tmp_t5_1(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt5_1 = tmp_7(5)
|
||||
end if
|
||||
else
|
||||
tmp_txt5_1 = ""
|
||||
end if
|
||||
tmp_txt6 = tmp_8(0)
|
||||
tmp_txt7 = tmp_8(1)
|
||||
tmp_txt8 = tmp_8(2)
|
||||
tmp_txt9 = tmp_8(3)
|
||||
tmp_txt10 = tmp_8(4)
|
||||
if uBound(tmp_8) - Lbound(tmp_8) + 1 > 5 then
|
||||
tmp_txt10_1 = tmp_8(5)
|
||||
else
|
||||
tmp_txt10_1 = ""
|
||||
end if
|
||||
|
||||
gap(1) = rsc("target1")
|
||||
gap(2) = rsc("target2")
|
||||
gap(3) = rsc("target3")
|
||||
gap(4) = rsc("target4")
|
||||
gap(5) = rsc("target5")
|
||||
gap(6) = rsc("target6")
|
||||
gap(7) = rsc("target7")
|
||||
gap(8) = rsc("target8")
|
||||
gap(9) = rsc("p_sn")
|
||||
gap(10) = rsc("target9")
|
||||
|
||||
d_order_cnt = int(rsc("d_order_cnt"))
|
||||
|
||||
print_type = request("print_type")
|
||||
|
||||
''<27><><EFBFBD>ڸ<EFBFBD> '-'<27><><EFBFBD><EFBFBD> <20><>,<2C><><EFBFBD><EFBFBD> <20><>ü
|
||||
gap(3) = mid(gap(3),1,4) & "<22><> " & mid(gap(3),6,2) & "<22><> " & mid(gap(3),9,2) & "<22><>"
|
||||
for i=1 to 9
|
||||
if trim(gap(i)) = "" then
|
||||
gap(i) = " "
|
||||
end if
|
||||
next
|
||||
for i=5 to 7
|
||||
if gap(i) = " " then
|
||||
gap(i) = "0"
|
||||
end if
|
||||
next
|
||||
|
||||
|
||||
''<27>α<EFBFBD><CEB1><EFBFBD><EFBFBD><EFBFBD>
|
||||
query = "insert into " & db_table_name & "_log (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_p_no, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_<EFBFBD≯<EFBFBD>, <20><><EFBFBD><EFBFBD>,"
|
||||
query = query & " <20>߱<EFBFBD><DFB1><EFBFBD>, <20>߱ð<DEBD>, <20>߱<EFBFBD><DFB1><EFBFBD>_p_no, <20>߱<EFBFBD><DFB1><EFBFBD>_<EFBFBD≯<EFBFBD>, <20>߱<EFBFBD><DFB1><EFBFBD>_ip) values ( "
|
||||
query = query & "'" & krc_no & "', "
|
||||
query = query & "'" & replace(title, " ", "") & "', "
|
||||
query = query & "'" & Session("User_Number") & "', "
|
||||
query = query & "'" & Session("loginuser") & "', "
|
||||
query = query & "'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>', "
|
||||
query = query & "'" & year(date) & "-" & zeroformat(month(date),2) & "-" & zeroformat(day(date),2) & "', "
|
||||
query = query & "'" & time() & "', "
|
||||
query = query & "'" & user_name(0) & "', "
|
||||
query = query & "'" & user_name(1) & "', "
|
||||
query = query & "'" & Session("USERIP") & "')"
|
||||
|
||||
if Request.ServerVariables("REMOTE_ADDr") = session("admin_ip") then
|
||||
else
|
||||
adoconn.execute query
|
||||
end if
|
||||
|
||||
%>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title><%=GNB_TITLE%></title>
|
||||
<link rel="stylesheet" type="text/css" href="/css/basic.css">
|
||||
</head>
|
||||
|
||||
<script language=javascript>
|
||||
function win_close()
|
||||
{
|
||||
window.close();
|
||||
}
|
||||
function win_print()
|
||||
{
|
||||
var txt_name = document.ess.txt_name.value;
|
||||
var txt_prj_name = document.ess.txt_prj_name.value;
|
||||
var txt_pay_target = document.ess.txt_pay_target.value;
|
||||
var txt_date = document.ess.txt_date.value;
|
||||
var txt_date2 = document.ess.txt_date2.value;
|
||||
var txt_pay = document.ess.txt_pay.value;
|
||||
var txt_pay_vat = document.ess.txt_pay_vat.value;
|
||||
var txt_pay_tot = document.ess.txt_pay_tot.value;
|
||||
var txt_client = document.ess.txt_client.value;
|
||||
var txt_p_sn = document.ess.txt_p_sn.value;
|
||||
|
||||
var url = "doc_consultation_print.asp"
|
||||
url = url + "?txt_prj_name=" + txt_prj_name;
|
||||
url = url + "&txt_pay_target=" + txt_pay_target;
|
||||
url = url + "&txt_date=" + txt_date;
|
||||
url = url + "&txt_date2=" + txt_date2;
|
||||
url = url + "&txt_pay=" + txt_pay;
|
||||
url = url + "&txt_pay_vat=" + txt_pay_vat;
|
||||
url = url + "&txt_pay_tot=" + txt_pay_tot;
|
||||
url = url + "&txt_client=" + txt_client;
|
||||
url = url + "&print_type=2";
|
||||
url = url + "&txt_p_sn=" + txt_p_sn;
|
||||
url = url + "&txt_name=" + txt_name;
|
||||
document.ess.action=url;
|
||||
document.ess.submit();
|
||||
}
|
||||
|
||||
|
||||
|
||||
function print_ie()
|
||||
{
|
||||
|
||||
//
|
||||
if(navigator.userAgent.toLowerCase().indexOf('chrome') > -1){ // Chrome Browser Detected?
|
||||
window.PPClose = false; // Clear Close Flag
|
||||
window.onbeforeunload = function(){ // Before Window Close Event
|
||||
if(window.PPClose === false){ // Close not OK?
|
||||
return 'Leaving this page will block the parent window!\nPlease select "Stay on this Page option" and use the\nCancel button instead to close the Print Preview Window.\n';
|
||||
}
|
||||
}
|
||||
window.print(); // Print preview
|
||||
window.PPClose = true; // Set Close Flag to OK.
|
||||
}else{
|
||||
window.print();
|
||||
window.close();
|
||||
}
|
||||
}
|
||||
|
||||
function clsit()
|
||||
{
|
||||
alert('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>û <20>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>');
|
||||
self.close();
|
||||
}
|
||||
|
||||
function subit(a, b)
|
||||
{
|
||||
var tmp_txt;
|
||||
var approve_pass;
|
||||
|
||||
if (a == 1)
|
||||
{
|
||||
tmp_txt = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ";
|
||||
approve_pass = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
tmp_txt = "";
|
||||
}
|
||||
|
||||
if (confirm(tmp_txt + "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?"))
|
||||
{
|
||||
document.ess.action = "allow_ok.asp?approve_pass="+approve_pass;
|
||||
document.ess.action = "allow_ok.asp?approve_pass="+approve_pass+"&tmp_pass_psn="+b+"&title="+"<%=replace(title," ","")%>";
|
||||
document.ess.submit();
|
||||
}
|
||||
}
|
||||
|
||||
function backit(a)
|
||||
{
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ۼ<EFBFBD><DBBC><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>");
|
||||
var url = "reason.asp?d_no="+a;
|
||||
window.open(url,'','left=0,top=0,width=400,height=180,scrollbars=yes,resizable=yes')
|
||||
}
|
||||
|
||||
//-->
|
||||
|
||||
</script>
|
||||
|
||||
<body topmargin="10" leftmargin="10" <%if cint(print_type) = 2 then%> onLoad="print_ie();" <% end if %>>
|
||||
|
||||
<form method='post' name='ess'>
|
||||
|
||||
<input type="hidden" name="d_no" value="<%=d_no%>">
|
||||
<input type="hidden" name="x" value="<%=x%>">
|
||||
|
||||
<input type=hidden name = "txt_name" value="<%=gap(10)%>">
|
||||
<input type=hidden name = "txt_prj_name" value="<%=gap(1)%>">
|
||||
<input type=hidden name = "txt_pay_target" value="<%=gap(2)%>">
|
||||
<input type=hidden name = "txt_date" value="<%=gap(3)%>">
|
||||
<input type=hidden name = "txt_date2" value="<%=gap(4)%>">
|
||||
<input type=hidden name = "txt_pay" value="<%=gap(5)%>">
|
||||
<input type=hidden name = "txt_pay_vat" value="<%=gap(6)%>">
|
||||
<input type=hidden name = "txt_pay_tot" value="<%=gap(7)%>">
|
||||
<input type=hidden name = "txt_client" value="<%=gap(8)%>">
|
||||
<input type=hidden name = "txt_p_sn" value='<%=gap(9)%>'>
|
||||
|
||||
<%if x = "99" then%>
|
||||
<!-- #include file = "inc_delreason.asp" -->
|
||||
<%end if '''if x = "99" then%>
|
||||
|
||||
<%
|
||||
if cint(print_type) <> 2 and (d_order_cnt = "99" or d_order_cnt = "77") and (tmp_admin_chk = "1" or tmp_request_chk = "1" or int(rsc("login_p_no")) = int(Session("User_Number"))) then
|
||||
%>
|
||||
<!-- #include file = "inc_print.asp" -->
|
||||
<%end if%>
|
||||
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td colspan="2" style="padding:20;">
|
||||
<table cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td><img width = "100%" src="/images/approval/docbg_top.jpg"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="710" align="center" style="padding:10;border-left:1px solid #dedede;border-right:1px solid #dedede;">
|
||||
<table width="95%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td colspan="2" style="padding:0 0 10 0">
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<td width="255"><img src="/images/approval/doc_stit20.jpg"></td>
|
||||
<td>
|
||||
<!-- #include file = "inc_approval.asp" -->
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><> <3B><> ȣ</b></td>
|
||||
<td width="80%" class="tahoma"><%=d_no%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><> <3B><> <3B><></b></td>
|
||||
<td width="80%" class="tahoma"><%=Curr_date%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><></b></td>
|
||||
<td width="80%"><%=user_name(1)%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><></b></td>
|
||||
<td width="80%"><%=user_name(4)%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><></b></td>
|
||||
<td width="80%"><%=user_name(2)%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:10 0 10 0;font-size:14;font-family:dotum;"><b><3E>ϱ<EFBFBD><CFB1><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ(<28><><EFBFBD><EFBFBD>)<29><> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD>, ǰ<>Ǹ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD><CFBF><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20>ֽñ<D6BD> <20>ٶ<EFBFBD><D9B6>ϴ<EFBFBD>.</b></td>
|
||||
</tr>
|
||||
<%
|
||||
'----------------------------------------------------------------------------------------
|
||||
'### <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD> <20>ش<EFBFBD><D8B4>ϴ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ִٸ<D6B4> <20><>ũ<EFBFBD><C5A9> - 2010<31><30> 1<><31> 26<32><36> <20><><EFBFBD><EFBFBD>
|
||||
'### <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>ý<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ũ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> - 2011<31><31> 6<><36> 07<30><37> <20>߰<EFBFBD>
|
||||
tmp_link = ""
|
||||
tmp_p_sn = split(rsc("p_sn"),",")
|
||||
'Response.Write ubound(tmp_p_sn)
|
||||
if ubound(tmp_p_sn) = 0 then
|
||||
end_i = 1
|
||||
tmp_p_sn(0) = rsc("p_sn")
|
||||
else
|
||||
end_i = ubound(tmp_p_sn)
|
||||
end if
|
||||
'Response.Write rsc("p_sn") & "<br>"
|
||||
for i = 0 to end_i - 1
|
||||
query = "SELECT * "
|
||||
query = query & "FROM Document a "
|
||||
query = query & " INNER JOIN <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> b on a.d_no = b.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ "
|
||||
query = query & "WHERE a.d_delok = 'N' "
|
||||
query = query & " AND a.d_name = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' "
|
||||
query = query & " AND b.p_sn = '" & tmp_p_sn(i) & "' "
|
||||
'Response.Write query & "<BR>"
|
||||
adoRs.open query, adoConn, 1
|
||||
'Response.Write "adoRs.recordcount : " & adoRs.recordcount & "<BR>"
|
||||
if adoRs.recordcount > 0 then
|
||||
'tmp_link = " - <a href='direct_cost_print.asp?p_sn=" & rsc("p_sn") & "' target='_blank'><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></a>"
|
||||
tmp_link = tmp_link & "<a href='direct_cost_print.asp?p_sn=" & tmp_p_sn(i) & "' target='_blank' class='blue'><img src='/images/approval/btn_directcost_view.jpg' align='absmiddle' style='CURSOR:pointer;'></a>"
|
||||
else
|
||||
tmp_link = tmp_link & "<font color=blue><b>[<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>]</b></font>"
|
||||
end if
|
||||
adoRs.close
|
||||
next
|
||||
'----------------------------------------------------------------------------------------
|
||||
%>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:10 0 0 0">
|
||||
<table width="100%" cellpadding="5" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<td width="20%" class='tit2' align="center"><3E><> <3B><></td>
|
||||
<td width="80%" class='tit7'><font class="tahoma"><%=gap(10)%></font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" class='tit2' align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><>(<28><><EFBFBD><EFBFBD>)</td>
|
||||
<td width="80%" class='tit7'><font class="tahoma"><%=gap(1)%>(<%=gap(9)%>) <%=tmp_link%></font></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:10 0 0 0">
|
||||
<table width="100%" cellpadding="5" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<td width="20%" class='tit2' align="center">ǰ<>Ǹ<EFBFBD><C7B8><EFBFBD> <20><> <20><>Ÿ<EFBFBD><C5B8><EFBFBD><EFBFBD></td>
|
||||
<td width="80%" class='tit7'><font class="tahoma"><%=ViewWord(gap(2))%></font></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:10 0 0 0">
|
||||
<table width="100%" cellpadding="5" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<td width="20%" class='tit2' align="center"><3E><><EFBFBD><EFBFBD><E0BFB9><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="30%" class='tit7'><font class="tahoma"><%=gap(3)%></font></td>
|
||||
<td class='tit2' align="center"><3E>ŷ<EFBFBD>ó</td>
|
||||
<td class='tit7' ><font class="tahoma"><%=gap(8)%></font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tit2' align="center"><3E><><EFBFBD>ް<EFBFBD><DEB0><EFBFBD></td>
|
||||
<td class='tit7'><font class="tahoma"><%=gap(5)%> <20><></font></td>
|
||||
<td class='tit2' align="center" rowspan="2"><3E><><EFBFBD><EFBFBD><EFBFBD>Ѿ<EFBFBD></td>
|
||||
<td class='tit7' rowspan="2"><font class="tahoma"><%=gap(7)%> <20><></font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" class='tit2' align="center"><3E>ΰ<EFBFBD><CEB0><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="30%" class='tit7'><font class="tahoma"><%=gap(6)%> <20><></font></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- #include file = "inc_reply.asp" -->
|
||||
<tr>
|
||||
<td colspan="2" style="padding:20 0 0 0" align="right">
|
||||
<pre><font class="tahoma"> </font></pre>
|
||||
<pre><font class="tahoma"> </font></pre>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:15 0 5 0"><!-- #include virtual= "approval/inc_logo.asp" --></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img width = "100%" src="/images/approval/docbg_btm.jpg"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
<%
|
||||
end if
|
||||
rsc.Close
|
||||
%>
|
||||
519
ess/doc_entertainment_print.asp
Normal file
519
ess/doc_entertainment_print.asp
Normal file
@@ -0,0 +1,519 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
dim tmpstr
|
||||
dim Query
|
||||
dim i
|
||||
dim user_name(4) '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,0:<3A><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD>, 1:<3A≯<EFBFBD>,2:<3A><><EFBFBD><EFBFBD>,3:<3A><>ȭ<EFBFBD><C8AD>ȣ, 4:<3A>μ<EFBFBD><CEBC>ڵ<EFBFBD>(<28><>)
|
||||
dim Max_Width
|
||||
dim title
|
||||
dim target_name '<27>߱<DFB1><DEB4><EFBFBD><EFBFBD><EFBFBD> <20≯<EFBFBD>
|
||||
dim Curr_date '<27><><EFBFBD>ó<EFBFBD>¥
|
||||
dim Company(6)
|
||||
dim Gap(20) '1:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ<EFBFBD>, 2:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, 3:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, 4:<3A><><EFBFBD>ް<EFBFBD><DEB0><EFBFBD>, 5:<3A>ΰ<EFBFBD><CEB0><EFBFBD><EFBFBD><EFBFBD>, 6:<3A>Ѿ<EFBFBD>,
|
||||
' 7:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>, 8:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>, 9:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȸ<EFBFBD><C8B8><EFBFBD><EFBFBD>, 10:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڼҼ<DABC>, 11:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,
|
||||
' 12:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ȭ<EFBFBD><C8AD>ȣ, 13:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ڹ<EFBFBD>ȣ, 14:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, 15:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, 16:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD>ڵ<EFBFBD>, 17:<3A><><EFBFBD>밡<EFBFBD><EBB0A1><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, 18:<3A><><EFBFBD>봩<EFBFBD><EBB4A9><EFBFBD>ݾ<EFBFBD>
|
||||
dim krc_no
|
||||
dim print_type '1:<3A><><EFBFBD><EFBFBD>, 2:<3A><>¥<EFBFBD><C2A5><EFBFBD><EFBFBD>Ʈ
|
||||
dim db_table_name
|
||||
dim p_depart
|
||||
|
||||
dim depart_div
|
||||
|
||||
d_no = request("d_no")
|
||||
x = request("x")
|
||||
krc_no = d_no
|
||||
print_type = request("print_type")
|
||||
view_chk= request("view_chk")
|
||||
|
||||
db_table_name = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
|
||||
title="<22><> <20><> <20><> <20><> <20><> <20><>"
|
||||
Max_Width =750
|
||||
Curr_date = year(date) & "<22><> " & zeroformat(month(date),2) & "<22><> " & zeroformat(day(date),2) & "<22><>"
|
||||
|
||||
''//==========================================
|
||||
''2010<31><30> 3<><33> 3<><33>
|
||||
'''<27>μ<CEBC><E2BFA9> ǥ<><C7A5>
|
||||
if print_type = "2" then
|
||||
query = "update <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> set print_chk = 'Yes', print_cnt = print_cnt + 1 where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ='" & d_no & "' "
|
||||
adoConn.Execute query
|
||||
end if
|
||||
|
||||
|
||||
query = "SELECT a.*, b.*, p.p_depart "
|
||||
query = query & "FROM <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> as a "
|
||||
query = query & " INNER JOIN Document as b on a.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = b.d_no "
|
||||
query = query & " left outer join person p on a.login_p_no = p.p_no "
|
||||
query = query & "WHERE a.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ='" & d_no & "' "
|
||||
if x = "99" then
|
||||
else
|
||||
if session("admin_ip") <> request.ServerVariables("REMOTE_ADDR") then
|
||||
query = query & " AND b.d_delok = 'N' "
|
||||
end if
|
||||
end if
|
||||
|
||||
rsc.Open query, adoConn, 1
|
||||
if rsc.RecordCount > 0 then
|
||||
|
||||
tmp_date = split(rsc("d_write_date"), "-")
|
||||
Curr_date = tmp_date(0) & "<22><> " & tmp_date(1) & "<22><> " & tmp_date(2) & "<22><>"
|
||||
|
||||
tmp_0 = split(rsc("target97"), "^^")
|
||||
user_name(0) = rsc("login_p_no") '<27><><EFBFBD><EFBFBD>
|
||||
user_name(1) = tmp_0(0) '<27≯<EFBFBD>
|
||||
user_name(2) = tmp_0(1) '<27><><EFBFBD><EFBFBD> <20>ڵ<EFBFBD>
|
||||
user_name(3) = tmp_0(2) '<27><><EFBFBD><EFBFBD> <20><>ȭ
|
||||
user_name(4) = tmp_0(3) '<27>μ<EFBFBD><CEBC>ڵ<EFBFBD>
|
||||
p_depart = rsc("p_depart")
|
||||
|
||||
tmp_00 = split(rsc("target98"), "^^")
|
||||
Company(1) = tmp_00(0)
|
||||
Company(2) = tmp_00(1)
|
||||
Company(3) = tmp_00(2)
|
||||
Company(4) = tmp_00(3)
|
||||
Company(5) = tmp_00(4)
|
||||
Company(6) = tmp_00(5)
|
||||
|
||||
tmp_7 = split(rsc("target99"), "^^")
|
||||
tmp_8 = split(rsc("target100"), "^^")
|
||||
|
||||
if instr(1,tmp_7(0), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt1 = tmp_7(0)
|
||||
elseif instr(1,tmp_7(0), "<BR>") then
|
||||
tmp_t1 = split(tmp_7(0), "<BR>")
|
||||
tmp_txt1 = "<img src='/images/sign/" & tmp_t1(0) & "_" & tmp_t1(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt1 = tmp_7(0)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(1), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt2 = tmp_7(1)
|
||||
elseif instr(1,tmp_7(1), "<BR>") then
|
||||
tmp_t2 = split(tmp_7(1), "<BR>")
|
||||
tmp_txt2 = "<img src='/images/sign/" & tmp_t2(0) & "_" & tmp_t2(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt2 = tmp_7(1)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(2), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt3 = tmp_7(2)
|
||||
elseif instr(1,tmp_7(2), "<BR>") then
|
||||
tmp_t3 = split(tmp_7(2), "<BR>")
|
||||
tmp_txt3 = "<img src='/images/sign/" & tmp_t3(0) & "_" & tmp_t3(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt3 = tmp_7(2)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(3), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt4 = tmp_7(3)
|
||||
elseif instr(1,tmp_7(3), "<BR>") then
|
||||
tmp_t4 = split(tmp_7(3), "<BR>")
|
||||
tmp_txt4 = "<img src='/images/sign/" & tmp_t4(0) & "_" & tmp_t4(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt4 = tmp_7(3)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(4), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt5 = tmp_7(4)
|
||||
elseif instr(1,tmp_7(4), "<BR>") then
|
||||
tmp_t5 = split(tmp_7(4), "<BR>")
|
||||
tmp_txt5 = "<img src='/images/sign/" & tmp_t5(0) & "_" & tmp_t5(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt5 = tmp_7(4)
|
||||
end if
|
||||
|
||||
tmp_txt6 = tmp_8(0)
|
||||
tmp_txt7 = tmp_8(1)
|
||||
tmp_txt8 = tmp_8(2)
|
||||
tmp_txt9 = tmp_8(3)
|
||||
tmp_txt10 = tmp_8(4)
|
||||
|
||||
gap(1) = rsc("target1")
|
||||
gap(2) = rsc("target2")
|
||||
gap(3) = rsc("target3")
|
||||
gap(4) = rsc("target4")
|
||||
gap(5) = rsc("target5")
|
||||
gap(6) = rsc("target6")
|
||||
gap(7) = rsc("target7")
|
||||
gap(8) = rsc("target8")
|
||||
gap(9) = rsc("target9")
|
||||
gap(10) = rsc("target10")
|
||||
gap(11) = rsc("target11")
|
||||
gap(12) = rsc("target12")
|
||||
gap(13) = rsc("target13")
|
||||
gap(14) = rsc("target14")
|
||||
gap(15) = rsc("target15")
|
||||
gap(16) = rsc("p_sn")
|
||||
gap(17) = rsc("target16")
|
||||
gap(18) = rsc("target17")
|
||||
gap(19) = rsc("target18")
|
||||
gap(20) = rsc("target19")
|
||||
depart_div = rsc("target20")
|
||||
d_order_cnt = int(rsc("d_order_cnt"))
|
||||
|
||||
|
||||
''<27><><EFBFBD>ڸ<EFBFBD> '-'<27><><EFBFBD><EFBFBD> <20><>,<2C><><EFBFBD><EFBFBD> <20><>ü
|
||||
gap(3) = mid(gap(3),1,4) & "<22><> " & mid(gap(3),6,2) & "<22><> " & mid(gap(3),9,2) & "<22><>"
|
||||
gap(14) = mid(gap(14),1,4) & "<22><> " & mid(gap(14),6,2) & "<22><> " & mid(gap(14),9,2) & "<22><>"
|
||||
for i=1 to 16
|
||||
if trim(gap(i)) ="" then
|
||||
gap(i) = " "
|
||||
end if
|
||||
next
|
||||
''<27>ݾ<EFBFBD><DDBE><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 0<><30><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
for i=4 to 6
|
||||
if gap(i) = " " then
|
||||
gap(i) = "0"
|
||||
end if
|
||||
next
|
||||
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
if gap(8) = " " then
|
||||
gap(8) = "0"
|
||||
end if
|
||||
%>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title><%=GNB_TITLE%></title>
|
||||
<link rel="stylesheet" type="text/css" href="/css/basic.css">
|
||||
</head>
|
||||
|
||||
<script language=javascript>
|
||||
function win_close()
|
||||
{
|
||||
window.close();
|
||||
}
|
||||
function win_print()
|
||||
{
|
||||
var txt_prj_name = document.ess.txt_prj_name.value;
|
||||
var txt_pay_target = document.ess.txt_pay_target.value;
|
||||
var txt_date_1 = document.ess.txt_date_1.value;
|
||||
var txt_pay = document.ess.txt_pay.value;
|
||||
var txt_pay_vat = document.ess.txt_pay_vat.value;
|
||||
var txt_pay_tot = document.ess.txt_pay_tot.value;
|
||||
var txt_client_1 = document.ess.txt_client_1.value;
|
||||
var txt_client_2 = document.ess.txt_client_2.value;
|
||||
var txt_client_3 = document.ess.txt_client_3.value;
|
||||
var txt_client_4 = document.ess.txt_client_4.value;
|
||||
var txt_client_5 = document.ess.txt_client_5.value;
|
||||
var txt_client_6 = document.ess.txt_client_6.value;
|
||||
var txt_client_7 = document.ess.txt_client_7.value;
|
||||
var txt_date_2 = document.ess.txt_date_2.value;
|
||||
var sel_pay_type = document.ess.sel_pay_type.value;
|
||||
var txt_p_sn = document.ess.txt_p_sn.value;
|
||||
var possiblePay = document.ess.possiblePay.value;
|
||||
var allUsePay = document.ess.allUsePay.value;
|
||||
|
||||
var url = "doc_entertainment_print.asp";
|
||||
url = url + "?txt_prj_name=" + txt_prj_name;
|
||||
url = url + "&txt_pay_target=" + txt_pay_target;
|
||||
url = url + "&txt_date_1=" + txt_date_1;
|
||||
url = url + "&txt_pay=" + txt_pay;
|
||||
url = url + "&txt_pay_vat=" + txt_pay_vat;
|
||||
url = url + "&txt_pay_tot=" + txt_pay_tot;
|
||||
url = url + "&txt_client_1=" + txt_client_1;
|
||||
url = url + "&txt_client_2=" + txt_client_2;
|
||||
url = url + "&txt_client_3=" + txt_client_3;
|
||||
url = url + "&txt_client_4=" + txt_client_4;
|
||||
url = url + "&txt_client_5=" + txt_client_5;
|
||||
url = url + "&txt_client_6=" + txt_client_6;
|
||||
url = url + "&txt_client_7=" + txt_client_7;
|
||||
url = url + "&possiblePay=" + possiblePay;
|
||||
url = url + "&allUsePay=" + allUsePay;
|
||||
url = url + "&txt_date_2=" + txt_date_2;
|
||||
url = url + "&sel_pay_type=" + sel_pay_type;
|
||||
url = url + "&print_type=2";
|
||||
url = url + "&txt_p_sn=" + txt_p_sn;
|
||||
document.ess.action=url;
|
||||
document.ess.submit();
|
||||
}
|
||||
|
||||
|
||||
|
||||
function print_ie()
|
||||
{
|
||||
|
||||
//
|
||||
if(navigator.userAgent.toLowerCase().indexOf('chrome') > -1){ // Chrome Browser Detected?
|
||||
window.PPClose = false; // Clear Close Flag
|
||||
window.onbeforeunload = function(){ // Before Window Close Event
|
||||
if(window.PPClose === false){ // Close not OK?
|
||||
return 'Leaving this page will block the parent window!\nPlease select "Stay on this Page option" and use the\nCancel button instead to close the Print Preview Window.\n';
|
||||
}
|
||||
}
|
||||
window.print(); // Print preview
|
||||
window.PPClose = true; // Set Close Flag to OK.
|
||||
}else{
|
||||
window.print();
|
||||
window.close();
|
||||
}
|
||||
}
|
||||
|
||||
function clsit()
|
||||
{
|
||||
alert('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>û <20>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>');
|
||||
self.close();
|
||||
}
|
||||
|
||||
function subit(a, b)
|
||||
{
|
||||
|
||||
var tmp_txt;
|
||||
var approve_pass;
|
||||
|
||||
if (a == 1)
|
||||
{
|
||||
tmp_txt = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ";
|
||||
approve_pass = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
tmp_txt = "";
|
||||
}
|
||||
|
||||
if (confirm(tmp_txt + "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?"))
|
||||
{
|
||||
document.ess.action = "allow_ok.asp?approve_pass="+approve_pass;
|
||||
document.ess.action = "allow_ok.asp?approve_pass="+approve_pass+"&tmp_pass_psn="+b+"&title="+"<%=replace(title," ","")%>";
|
||||
document.ess.submit();
|
||||
}
|
||||
}
|
||||
|
||||
function backit(a)
|
||||
{
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ۼ<EFBFBD><DBBC><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>");
|
||||
var url = "reason.asp?d_no="+a;
|
||||
window.open(url,'','left=0,top=0,width=400,height=180,scrollbars=yes,resizable=yes')
|
||||
}
|
||||
|
||||
//-->
|
||||
|
||||
</script>
|
||||
|
||||
<body topmargin="10" leftmargin="10" <%if cint(print_type) = 2 then%> onLoad="print_ie();" <% end if %>>
|
||||
<div style="filter: alpha(opacity=5);position:absolute; display:inline-block; left:50px; top:70px; z-index:499;width:80%;height:80%;background-color: rgb(255,255,255); opacity:0.05; font-size:35px; font-family:malgun gothic; font-weight:bold; line-height:50px;" id="popup_background">
|
||||
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><br />
|
||||
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><br />
|
||||
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><br />
|
||||
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><br />
|
||||
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><br />
|
||||
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><br />
|
||||
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><br />
|
||||
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><br />
|
||||
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><br />
|
||||
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><br />
|
||||
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
</div>
|
||||
<form method='post' name='ess'>
|
||||
|
||||
<input type="hidden" name="d_no" value="<%=d_no%>">
|
||||
|
||||
<input type=hidden name = "txt_prj_name" value="<%=gap(1)%>">
|
||||
<input type=hidden name = "txt_pay_target" value="<%=gap(2)%>">
|
||||
<input type=hidden name = "txt_date_1" value="<%=gap(3)%>">
|
||||
<input type=hidden name = "txt_pay" value="<%=gap(4)%>">
|
||||
<input type=hidden name = "txt_pay_vat" value="<%=gap(5)%>">
|
||||
<input type=hidden name = "txt_pay_tot" value="<%=gap(6)%>">
|
||||
<input type=hidden name = "txt_client_1" value="<%=gap(7)%>">
|
||||
<input type=hidden name = "txt_client_2" value="<%=gap(8)%>">
|
||||
<input type=hidden name = "txt_client_3" value="<%=gap(9)%>">
|
||||
<input type=hidden name = "txt_client_4" value="<%=gap(10)%>">
|
||||
<input type=hidden name = "txt_client_5" value="<%=gap(11)%>">
|
||||
<input type=hidden name = "txt_client_6" value="<%=gap(12)%>">
|
||||
<input type=hidden name = "txt_client_7" value="<%=gap(13)%>">
|
||||
<input type=hidden name = "txt_date_2" value="<%=gap(14)%>">
|
||||
<input type=hidden name = "sel_pay_type" value="<%=gap(15)%>">
|
||||
<input type=hidden name = "txt_p_sn" value="<%=gap(16)%>">
|
||||
<input type=hidden name = "possiblePay" value="<%=gap(17)%>">
|
||||
<input type=hidden name = "allUsePay" value="<%=gap(18)%>">
|
||||
|
||||
<%if x = "99" then%>
|
||||
<!-- #include file = "inc_delreason.asp" -->
|
||||
<%end if '''if x = "99" then%>
|
||||
<img src="/images/common/btn_cancel.jpg" border="0" onClick="win_close();" style="CURSOR:pointer;">
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td colspan="2" style="padding:20;">
|
||||
<table cellpadding="0" cellspacing="0" border="0">
|
||||
<%if cint(print_type) = 1 then%>
|
||||
<tr>
|
||||
<td style="padding:0 0 5 0;">
|
||||
<img src="/images/common/btn_approve.jpg" onClick="subit()" style="CURSOR:pointer;">
|
||||
<img src="/images/common/btn_cancel.jpg" onClick="win_close();" style="CURSOR:pointer;">
|
||||
</td>
|
||||
</tr>
|
||||
<%end if%>
|
||||
<tr>
|
||||
<td><img src="/images/approval/docbg_top.jpg"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="710" align="center" style="padding:10;border-left:1px solid #dedede;border-right:1px solid #dedede;">
|
||||
<table width="95%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td colspan="2" style="padding:0 0 10 0">
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<td width="40%">
|
||||
<span style="color:#636B7E;font-family:batang;font-weight:bold;font-size:30px;letter-spacing:-6;line-height:30px;"><3E><><EFBFBD><EFBFBD><EFBFBD>ú<EFBFBD></span>
|
||||
</td>
|
||||
<td width="59%" align="right">
|
||||
<!-- #include file = "inc_approval.asp" -->
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><> <3B><> ȣ</b></td>
|
||||
<td width="80%" class="tahoma"><%=d_no%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><> <3B><> <3B><></b></td>
|
||||
<td width="80%" class="tahoma"><%=Curr_date%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><></b></td>
|
||||
<td width="80%"><%=user_name(1)%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><></b></td>
|
||||
<td width="80%"><%=user_name(4)%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><></b></td>
|
||||
<td width="80%"><%=user_name(2)%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" height="20"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:10 0 0 0">
|
||||
<table width="100%" cellpadding="5" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<td width="20%" class="tit2" align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><>(<28><><EFBFBD><EFBFBD>)</td>
|
||||
<td width="80%" class="tit7"><font class="tahoma"><%=gap(1)%>(<%=gap(16)%>)</font></td>
|
||||
</tr>
|
||||
<%
|
||||
if gap(19) <> "" then
|
||||
%>
|
||||
<tr>
|
||||
<td width="20%" class="tit2" align="center"><3E><><EFBFBD>÷<EFBFBD><C3B7><EFBFBD>Ʈ <20><></td>
|
||||
<td width="80%" class="tit7"><font class="tahoma"><%=gap(19) %>(<%=gap(20) %>)</font></td>
|
||||
</tr>
|
||||
<%
|
||||
end if
|
||||
%>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:10 0 0 0">
|
||||
<table width="100%" cellpadding="5" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<td width="20%" class="tit2" align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><>Ÿ<EFBFBD><C5B8><EFBFBD><EFBFBD></td>
|
||||
<td width="80%" class="tit7"><font class="tahoma"><%=ViewWord(gap(2))%></font></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:10 0 0 0">
|
||||
<table width="100%" cellpadding="5" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<td width="20%" class="tit2" align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="30%" class="tit7"><font class="tahoma"><%=gap(3)%></font></td>
|
||||
<td width="20%" class="tit2" align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="30%" class="tit7"><font class="tahoma"><%=gap(15)%></font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tit2" align="center"><3E>ݾ<EFBFBD></td>
|
||||
<td class="tit7"><font class="tahoma"><%=formatnumber(gap(4),0)%> <20><></font></td>
|
||||
<td class="tit2" align="center" rowspan="2"><3E><><EFBFBD><EFBFBD><EFBFBD>Ѿ<EFBFBD></td>
|
||||
<td class="tit7"><font class="tahoma"><%=gap(6)%> <20><></font></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding:10 0 0 0;" colspan="2">
|
||||
<font class="brown"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:10 0 0 0">
|
||||
<table width="100%" cellpadding="5" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<td width="20%" class="tit2" align="center"><3E><> <3B><></td>
|
||||
<td width="30%" class="tit7"><font class="tahoma">
|
||||
<%=gap(7)%>
|
||||
<%if trim(gap(8)) <> "" then%>
|
||||
<3B><> <%=gap(8)%> <3B><>
|
||||
<%end if%>
|
||||
</font></td>
|
||||
<td width="20%" class="tit2" align="center">ȸ <3B><> <3B><></td>
|
||||
<td width="30%" class="tit7"><font class="tahoma"><%=gap(9)%></font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" class="tit2" align="center"><3E><> <3B><></td>
|
||||
<td width="30%" class="tit7"><font class="tahoma"><%=gap(10)%></font></td>
|
||||
<td width="20%" class="tit2" align="center"><3E><> <3B><></td>
|
||||
<td width="30%" class="tit7"><font class="tahoma"><%=gap(11)%></font></td>
|
||||
</tr>
|
||||
<!--
|
||||
<tr>
|
||||
<td width="20%" class="tit2" align="center"><3E><>ȭ<EFBFBD><C8AD>ȣ</td>
|
||||
<td width="30%" class="tit7"><font class="tahoma"><%=gap(12)%></font></td>
|
||||
<td width="20%" class="tit2" align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="30%" class="tit7"><font class="tahoma"><%=gap(14)%></font></td>
|
||||
</tr>
|
||||
-->
|
||||
<tr>
|
||||
<td class="tit2" align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td class="tit7"><font class="tahoma"><%=gap(14)%></font></td>
|
||||
<td class="tit2" align="center"><3E><> <3B><> <3B><></td>
|
||||
<td class="tit7"><font class="tahoma"><%=user_name(1)%> (<28><>)</font></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- #include file = "inc_reply.asp" -->
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:15 0 5 0"><!-- #include virtual= "approval/inc_logo.asp" --></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="/images/approval/docbg_btm.jpg"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
<%
|
||||
end if
|
||||
rsc.Close
|
||||
%>
|
||||
653
ess/doc_expense2_print.asp
Normal file
653
ess/doc_expense2_print.asp
Normal file
@@ -0,0 +1,653 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
''//=====================
|
||||
''//=====================
|
||||
''2013<31><33> 9<><39> 27<32><37><EFBFBD>ڷ<EFBFBD>
|
||||
' <20><><EFBFBD><EFBFBD> <20><><EFBFBD>Ǽ<EFBFBD><C7BC><EFBFBD> <20>Աݰ<D4B1><DDB0>Ǽ<EFBFBD><C7BC><EFBFBD> <20>߰<EFBFBD><DFB0>Ͽ<EFBFBD> 2<><32><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>α<CEB1><D7B7><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
'' <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> titie<69><65> title_type<70><65> <20><><EFBFBD><EFBFBD>
|
||||
''//=====================
|
||||
''//=====================
|
||||
|
||||
|
||||
|
||||
dim tmpstr
|
||||
dim Query
|
||||
dim i
|
||||
dim user_name(4) '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,0:<3A><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD>, 1:<3A≯<EFBFBD>,2:<3A><><EFBFBD><EFBFBD>,3:<3A><>ȭ<EFBFBD><C8AD>ȣ, 4:<3A>μ<EFBFBD><CEBC>ڵ<EFBFBD>(<28><>)
|
||||
dim Max_Width
|
||||
dim title
|
||||
dim target_name '<27>߱<DFB1><DEB4><EFBFBD><EFBFBD><EFBFBD> <20≯<EFBFBD>
|
||||
dim Curr_date '<27><><EFBFBD>ó<EFBFBD>¥
|
||||
dim Company(6)
|
||||
dim Gap(10) '1:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ<EFBFBD>, 2:<3A><><EFBFBD><EFBFBD>(<28>Ա<EFBFBD>)<29><><EFBFBD><EFBFBD>, 3:<3A><><EFBFBD><EFBFBD>(<28>Ա<EFBFBD>)<29><><EFBFBD><EFBFBD>, 4:<3A><><EFBFBD><EFBFBD>(<28>Ա<EFBFBD>)<29><><EFBFBD><EFBFBD>, 5:<3A><><EFBFBD>ް<EFBFBD><DEB0><EFBFBD>, 6:<3A>ΰ<EFBFBD><CEB0><EFBFBD><EFBFBD><EFBFBD>, 7:<3A>Ѿ<EFBFBD>, 8:<3A>ŷ<EFBFBD>ó, 9:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ<EFBFBD>, 10:ǰ<>Ǽ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ
|
||||
dim krc_no
|
||||
dim print_type '1:<3A><><EFBFBD><EFBFBD>, 2:<3A><>¥<EFBFBD><C2A5><EFBFBD><EFBFBD>Ʈ
|
||||
dim db_table_name
|
||||
dim title_type
|
||||
|
||||
d_no = request("d_no")
|
||||
x = request("x")
|
||||
krc_no = d_no
|
||||
print_type = request("print_type")
|
||||
view_chk= request("view_chk")
|
||||
rev_type = request("rev_type")
|
||||
|
||||
db_table_name = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
title="<22>ڱ<EFBFBD><DAB1><EFBFBD><EFBFBD>༭"
|
||||
title_type = title
|
||||
|
||||
Max_Width =750
|
||||
Curr_date = year(date) & "<22><> " & zeroformat(month(date),2) & "<22><> " & zeroformat(day(date),2) & "<22><>"
|
||||
|
||||
|
||||
|
||||
''//==========================================
|
||||
''2010<31><30> 3<><33> 3<><33>
|
||||
'''<27>μ<CEBC><E2BFA9> ǥ<><C7A5>
|
||||
if print_type = "2" then
|
||||
query = "update <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> set print_chk = 'Yes', print_cnt = print_cnt + 1 where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ='" & d_no & "' "
|
||||
adoConn.Execute query
|
||||
end if
|
||||
|
||||
|
||||
query = "SELECT * "
|
||||
query = query & "FROM <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> as a "
|
||||
query = query & " INNER JOIN Document as b on a.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = b.d_no "
|
||||
query = query & "WHERE a.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ='" & d_no & "' "
|
||||
if x = "99" then
|
||||
else
|
||||
if session("admin_ip") = Request.ServerVariables("remote_host") then
|
||||
else
|
||||
query = query & " AND b.d_delok = 'N' "
|
||||
end if
|
||||
end if
|
||||
|
||||
|
||||
rsc.Open query, adoConn, 1
|
||||
if rsc.RecordCount > 0 then
|
||||
|
||||
tmp_date = split(rsc("d_write_date"), "-")
|
||||
Curr_date = tmp_date(0) & "<22><> " & tmp_date(1) & "<22><> " & tmp_date(2) & "<22><>"
|
||||
|
||||
tmp_0 = split(rsc("target97"), "^^")
|
||||
user_name(0) = rsc("login_p_no") '<27><><EFBFBD><EFBFBD>
|
||||
user_name(1) = tmp_0(0) '<27≯<EFBFBD>
|
||||
user_name(2) = tmp_0(1) '<27><><EFBFBD><EFBFBD> <20>ڵ<EFBFBD>
|
||||
user_name(3) = tmp_0(2) '<27><><EFBFBD><EFBFBD> <20><>ȭ
|
||||
user_name(4) = tmp_0(3) '<27>μ<EFBFBD><CEBC>ڵ<EFBFBD>
|
||||
|
||||
tmp_00 = split(rsc("target98"), "^^")
|
||||
Company(1) = tmp_00(0)
|
||||
Company(2) = tmp_00(1)
|
||||
Company(3) = tmp_00(2)
|
||||
Company(4) = tmp_00(3)
|
||||
Company(5) = tmp_00(4)
|
||||
Company(6) = tmp_00(5)
|
||||
|
||||
|
||||
|
||||
tmp_7 = split(rsc("target99"), "^^")
|
||||
tmp_8 = split(rsc("target100"), "^^")
|
||||
|
||||
if instr(1,tmp_7(0), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt1 = tmp_7(0)
|
||||
elseif instr(1,tmp_7(0), "<BR>") then
|
||||
tmp_t1 = split(tmp_7(0), "<BR>")
|
||||
tmp_txt1 = "<img src='/images/sign/" & tmp_t1(0) & "_" & tmp_t1(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt1 = tmp_7(0)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(1), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt2 = tmp_7(1)
|
||||
elseif instr(1,tmp_7(1), "<BR>") then
|
||||
tmp_t2 = split(tmp_7(1), "<BR>")
|
||||
tmp_txt2 = "<img src='/images/sign/" & tmp_t2(0) & "_" & tmp_t2(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt2 = tmp_7(1)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(2), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt3 = tmp_7(2)
|
||||
elseif instr(1,tmp_7(2), "<BR>") then
|
||||
tmp_t3 = split(tmp_7(2), "<BR>")
|
||||
tmp_txt3 = "<img src='/images/sign/" & tmp_t3(0) & "_" & tmp_t3(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt3 = tmp_7(2)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(3), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt4 = tmp_7(3)
|
||||
elseif instr(1,tmp_7(3), "<BR>") then
|
||||
tmp_t4 = split(tmp_7(3), "<BR>")
|
||||
tmp_txt4 = "<img src='/images/sign/" & tmp_t4(0) & "_" & tmp_t4(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt4 = tmp_7(3)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(4), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt5 = tmp_7(4)
|
||||
elseif instr(1,tmp_7(4), "<BR>") then
|
||||
tmp_t5 = split(tmp_7(4), "<BR>")
|
||||
tmp_txt5 = "<img src='/images/sign/" & tmp_t5(0) & "_" & tmp_t5(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt5 = tmp_7(4)
|
||||
end if
|
||||
|
||||
tmp_txt6 = tmp_8(0)
|
||||
tmp_txt7 = tmp_8(1)
|
||||
tmp_txt8 = tmp_8(2)
|
||||
tmp_txt9 = tmp_8(3)
|
||||
tmp_txt10 = tmp_8(4)
|
||||
|
||||
gap(1) = rsc("target1")
|
||||
gap(2) = rsc("target2")
|
||||
gap(3) = rsc("target3")
|
||||
gap(4) = rsc("target4")
|
||||
gap(5) = rsc("target5")
|
||||
gap(6) = rsc("target6")
|
||||
gap(7) = rsc("target7")
|
||||
gap(8) = rsc("target8")
|
||||
gap(9) = rsc("p_sn")
|
||||
gap(10) = rsc("target9")
|
||||
|
||||
d_order_cnt = int(rsc("d_order_cnt"))
|
||||
|
||||
print_type = request("print_type")
|
||||
|
||||
''<27><><EFBFBD>ڸ<EFBFBD> '-'<27><><EFBFBD><EFBFBD> <20><>,<2C><><EFBFBD><EFBFBD> <20><>ü
|
||||
gap(3) = mid(gap(3),1,4) & "<22><> " & mid(gap(3),6,2) & "<22><> " & mid(gap(3),9,2) & "<22><>"
|
||||
for i=1 to 9
|
||||
if trim(gap(i)) = "" then
|
||||
gap(i) = " "
|
||||
end if
|
||||
next
|
||||
for i=5 to 7
|
||||
if gap(i) = " " then
|
||||
gap(i) = "0"
|
||||
end if
|
||||
next
|
||||
|
||||
|
||||
''<27>α<EFBFBD><CEB1><EFBFBD><EFBFBD>夻
|
||||
query = "insert into " & db_table_name & "_log (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_p_no, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_<EFBFBD≯<EFBFBD>, <20><><EFBFBD><EFBFBD>,"
|
||||
query = query & " <20>߱<EFBFBD><DFB1><EFBFBD>, <20>߱ð<DEBD>, <20>߱<EFBFBD><DFB1><EFBFBD>_p_no, <20>߱<EFBFBD><DFB1><EFBFBD>_<EFBFBD≯<EFBFBD>, <20>߱<EFBFBD><DFB1><EFBFBD>_ip) values ( "
|
||||
query = query & "'" & krc_no & "', "
|
||||
query = query & "'" & replace(title, " ", "") & "', "
|
||||
query = query & "'" & Session("User_Number") & "', "
|
||||
query = query & "'" & Session("loginuser") & "', "
|
||||
query = query & "'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>', "
|
||||
query = query & "'" & year(date) & "-" & zeroformat(month(date),2) & "-" & zeroformat(day(date),2) & "', "
|
||||
query = query & "'" & time() & "', "
|
||||
query = query & "'" & user_name(0) & "', "
|
||||
query = query & "'" & user_name(1) & "', "
|
||||
query = query & "'" & Session("USERIP") & "')"
|
||||
|
||||
if Request.ServerVariables("REMOTE_ADDr") = session("admin_ip") then
|
||||
else
|
||||
adoconn.execute query
|
||||
end if
|
||||
|
||||
%>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title><%=GNB_TITLE%></title>
|
||||
<link rel="stylesheet" type="text/css" href="/css/jquery-ui.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="/css/basic.css">
|
||||
</head>
|
||||
<script src="/js/jquery.min.js"></script>
|
||||
<script src="/js/jquery-ajax-call.js"></script>
|
||||
<script src="/js/jquery.form.min.js"></script>
|
||||
<script src="/js/jquery-ui.min.js"></script>
|
||||
<script src="/js/common.js"></script>
|
||||
<script language=javascript>
|
||||
function win_close()
|
||||
{
|
||||
window.close();
|
||||
}
|
||||
function win_print()
|
||||
{
|
||||
var txt_prj_name = document.ess.txt_prj_name.value;
|
||||
var txt_pay_target = document.ess.txt_pay_target.value;
|
||||
var txt_date = document.ess.txt_date.value;
|
||||
var sel_pay_type = document.ess.sel_pay_type.value;
|
||||
var txt_pay = document.ess.txt_pay.value;
|
||||
var txt_pay_vat = document.ess.txt_pay_vat.value;
|
||||
var txt_pay_tot = document.ess.txt_pay_tot.value;
|
||||
var txt_client = document.ess.txt_client.value;
|
||||
var txt_p_sn = document.ess.txt_p_sn.value;
|
||||
<%
|
||||
if tmp_admin_chk = "1" then
|
||||
%>
|
||||
var txt_d_no = document.ess.txt_d_no.value;
|
||||
<%
|
||||
end if
|
||||
%>
|
||||
|
||||
var url = "doc_expense2_print.asp"
|
||||
url = url + "?txt_prj_name=" + txt_prj_name;
|
||||
url = url + "&txt_pay_target=" + txt_pay_target;
|
||||
url = url + "&txt_date=" + txt_date;
|
||||
url = url + "&sel_pay_type=" + sel_pay_type;
|
||||
url = url + "&txt_pay=" + txt_pay;
|
||||
url = url + "&txt_pay_vat=" + txt_pay_vat;
|
||||
url = url + "&txt_pay_tot=" + txt_pay_tot;
|
||||
url = url + "&txt_client=" + txt_client;
|
||||
url = url + "&print_type=2";
|
||||
url = url + "&txt_p_sn=" + txt_p_sn;
|
||||
<%
|
||||
if tmp_admin_chk = "1" then
|
||||
%>
|
||||
url = url + "&txt_d_no=" + txt_d_no;
|
||||
<%
|
||||
end if
|
||||
%>
|
||||
document.ess.action=url;
|
||||
document.ess.submit();
|
||||
}
|
||||
|
||||
|
||||
|
||||
function print_ie()
|
||||
{
|
||||
setTimeout(
|
||||
function(){
|
||||
//
|
||||
if(navigator.userAgent.toLowerCase().indexOf('chrome') > -1){ // Chrome Browser Detected?
|
||||
window.PPClose = false; // Clear Close Flag
|
||||
window.onbeforeunload = function(){ // Before Window Close Event
|
||||
if(window.PPClose === false){ // Close not OK?
|
||||
return 'Leaving this page will block the parent window!\nPlease select "Stay on this Page option" and use the\nCancel button instead to close the Print Preview Window.\n';
|
||||
}
|
||||
}
|
||||
window.print(); // Print preview
|
||||
window.PPClose = true; // Set Close Flag to OK.
|
||||
}else{
|
||||
window.print();
|
||||
window.close();
|
||||
}
|
||||
}, 3000);
|
||||
}
|
||||
|
||||
function clsit()
|
||||
{
|
||||
alert('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>û <20>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>');
|
||||
self.close();
|
||||
}
|
||||
|
||||
function subit(a, b)
|
||||
{
|
||||
var tmp_txt;
|
||||
var approve_pass;
|
||||
|
||||
if (a == 1)
|
||||
{
|
||||
tmp_txt = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ";
|
||||
approve_pass = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
tmp_txt = "";
|
||||
}
|
||||
|
||||
if (confirm(tmp_txt + "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?"))
|
||||
{
|
||||
document.ess.action = "allow_ok.asp?approve_pass="+approve_pass;
|
||||
document.ess.action = "allow_ok.asp?approve_pass="+approve_pass+"&tmp_pass_psn="+b+"&title="+"<%=replace(title," ","")%>";
|
||||
document.ess.submit();
|
||||
}
|
||||
}
|
||||
|
||||
function backit(a)
|
||||
{
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ۼ<EFBFBD><DBBC><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>");
|
||||
var url = "reason.asp?d_no="+a;
|
||||
window.open(url,'','left=0,top=0,width=400,height=180,scrollbars=yes,resizable=yes')
|
||||
}
|
||||
|
||||
//-->
|
||||
|
||||
</script>
|
||||
|
||||
<body topmargin="10" leftmargin="10" <%if cint(print_type) = 2 then%> onLoad="print_ie();" <% end if %>>
|
||||
|
||||
<form method='post' name='ess'>
|
||||
|
||||
<input type="hidden" name="d_no" value="<%=d_no%>">
|
||||
<input type="hidden" name="x" value="<%=x%>">
|
||||
|
||||
<input type=hidden name = "txt_prj_name" value="<%=gap(1)%>">
|
||||
<input type=hidden name = "txt_pay_target" value="<%=gap(2)%>">
|
||||
<input type=hidden name = "txt_date" value="<%=gap(3)%>">
|
||||
<input type=hidden name = "sel_pay_type" value="<%=gap(4)%>">
|
||||
<input type=hidden name = "txt_pay" value="<%=gap(5)%>">
|
||||
<input type=hidden name = "txt_pay_vat" value="<%=gap(6)%>">
|
||||
<input type=hidden name = "txt_pay_tot" value="<%=gap(7)%>">
|
||||
<input type=hidden name = "txt_client" value="<%=gap(8)%>">
|
||||
<input type=hidden name = "txt_p_sn" value='<%=gap(9)%>'>
|
||||
<input type=hidden name="txt_d_no" value='<%=gap(10)%>'>
|
||||
|
||||
<%if x = "99" then%>
|
||||
<!-- #include file = "inc_delreason.asp" -->
|
||||
<%end if '''if x = "99" then%>
|
||||
|
||||
<%
|
||||
if cint(print_type) <> 2 and (d_order_cnt = "99" or d_order_cnt = "77") and (tmp_admin_chk = "1" or tmp_request_chk = "1" or int(rsc("login_p_no")) = int(Session("User_Number"))) then
|
||||
%>
|
||||
<!-- #include file = "inc_print.asp" -->
|
||||
<%end if%>
|
||||
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td colspan="2" style="padding:20;">
|
||||
<table cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td><img width = "100%" src="/images/approval/docbg_top.jpg"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="710" align="center" style="padding:10;border-left:1px solid #dedede;border-right:1px solid #dedede;">
|
||||
<table width="95%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td colspan="2" style="padding:0 0 10 0">
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<td width="255">
|
||||
<img src="/images/approval/doc_stit28.jpg">
|
||||
</td>
|
||||
<td>
|
||||
<!-- #include file = "inc_approval.asp" -->
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><> <3B><> ȣ</b></td>
|
||||
<td width="80%" class="tahoma"><%=d_no%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><> <3B><> <3B><></b></td>
|
||||
<td width="80%" class="tahoma"><%=Curr_date%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><></b></td>
|
||||
<td width="80%"><%=user_name(1)%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><></b></td>
|
||||
<td width="80%"><%=user_name(4)%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><></b></td>
|
||||
<td width="80%"><%=user_name(2)%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:10 0 10 0;font-size:14;font-family:dotum;"><b><3E>ϱ<EFBFBD><CFB1><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ(<28><><EFBFBD><EFBFBD>)<29><> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD><CFBF><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20>ֽñ<D6BD> <20>ٶ<EFBFBD><D9B6>ϴ<EFBFBD>.</b></td>
|
||||
</tr>
|
||||
<%
|
||||
'----------------------------------------------------------------------------------------
|
||||
'### <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD> <20>ش<EFBFBD><D8B4>ϴ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ִٸ<D6B4> <20><>ũ<EFBFBD><C5A9> - 2010<31><30> 1<><31> 26<32><36> <20><><EFBFBD><EFBFBD>
|
||||
'### <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>ý<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ũ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> - 2011<31><31> 6<><36> 07<30><37> <20>߰<EFBFBD>
|
||||
tmp_link = ""
|
||||
tmp_p_sn = split(rsc("p_sn"),",")
|
||||
'Response.Write ubound(tmp_p_sn)
|
||||
if ubound(tmp_p_sn) = 0 then
|
||||
end_i = 1
|
||||
tmp_p_sn(0) = rsc("p_sn")
|
||||
else
|
||||
end_i = ubound(tmp_p_sn)
|
||||
end if
|
||||
'Response.Write rsc("p_sn") & "<br>"
|
||||
for i = 0 to end_i - 1
|
||||
query = "SELECT * "
|
||||
query = query & "FROM Document a "
|
||||
query = query & " INNER JOIN <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> b on a.d_no = b.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ "
|
||||
query = query & "WHERE a.d_delok = 'N' "
|
||||
'query = query & " AND a.d_name = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' "
|
||||
query = query & " AND a.d_name = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȹ<EFBFBD><C8B9>' AND a.d_order_cnt = '77' "
|
||||
query = query & " AND b.p_sn = '" & tmp_p_sn(i) & "' "
|
||||
'Response.Write query & "<BR>"
|
||||
adoRs.open query, adoConn, 1
|
||||
'Response.Write "adoRs.recordcount : " & adoRs.recordcount & "<BR>"
|
||||
if adoRs.recordcount > 0 then
|
||||
'tmp_link = " - <a href='direct_cost_print.asp?p_sn=" & rsc("p_sn") & "' target='_blank'><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></a>"
|
||||
tmp_link = tmp_link & "<a href='direct_cost_print.asp?p_sn=" & tmp_p_sn(i) & "' target='_blank' class='blue'><img src='/images/approval/btn_directcost_view.jpg' align='absmiddle' style='CURSOR:pointer;'></a>"
|
||||
else
|
||||
tmp_link = tmp_link & "<font color=blue><b>[<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>]</b></font>"
|
||||
end if
|
||||
adoRs.close
|
||||
next
|
||||
|
||||
tmp_doc_link = ""
|
||||
if gap(10) <> "" then
|
||||
tmp_doc_link = "<a href='doc_consultation_print.asp?d_no=" & gap(10) & "' target='_blank'><img src='/images/common/btn_smalldetail.gif' align='absmiddle' style='CURSOR:pointer;'></a>" '+'&view_chk='+c+'&x='+v
|
||||
end if
|
||||
'----------------------------------------------------------------------------------------
|
||||
%>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:10 0 0 0">
|
||||
<table width="100%" cellpadding="5" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<td width="20%" class='tit2' align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><>(<28><><EFBFBD><EFBFBD>)</td>
|
||||
<td width="80%" class='tit7'><font class="tahoma"><%=gap(1)%>-(<%=gap(9)%>) <%=tmp_link%></font></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:10 0 0 0">
|
||||
<table width="100%" cellpadding="5" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<td width="20%" class='tit2' align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><>Ÿ<EFBFBD><C5B8><EFBFBD><EFBFBD></td>
|
||||
<td width="80%" class='tit7'><font class="tahoma"><%=ViewWord(gap(2))%></font></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:10 0 0 0">
|
||||
<table width="100%" cellpadding="5" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<!-- <td width="20%" align="center"><%=title_type%><3E><><EFBFBD><EFBFBD></td> -->
|
||||
<td width="20%" class='tit2' align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="30%" class='tit7'><font class="tahoma"><%=gap(3)%></font></td>
|
||||
<td width="20%" class='tit2' align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="30%" class='tit7'><%=gap(4)%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tit2' align="center"><3E><><EFBFBD>ް<EFBFBD><DEB0><EFBFBD></td>
|
||||
<td class='tit7'><font class="tahoma"><3E><> <%=gap(5)%> <20><></font></td>
|
||||
<td class='tit2' align="center" rowspan="2"><3E><><EFBFBD><EFBFBD><EFBFBD>Ѿ<EFBFBD></td>
|
||||
<td class='tit7' rowspan="2"><font class="tahoma"><3E><> <%=gap(7)%> <20><></font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" class='tit2' align="center"><3E>ΰ<EFBFBD><CEB0><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="30%" class='tit7'><font class="tahoma"><3E><> <%=gap(6)%> <20><></font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tit2' align="center"><3E>ŷ<EFBFBD>ó</td>
|
||||
<td class='tit7'><font class="tahoma"><%=gap(8)%></font></td>
|
||||
<td class='tit2' align="center"><3E>Աݰ<D4B1><DDB0><EFBFBD></td>
|
||||
<td class='tit7'><font class="tahoma">
|
||||
<%if trim(gap(4)) = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ü" then
|
||||
Response.Write "<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>纻 <20><>ü"
|
||||
else
|
||||
Response.Write "<22>ش<EFBFBD> <20><><EFBFBD><EFBFBD>"
|
||||
end if%>
|
||||
</font></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
if tmp_doc_link <> "" then
|
||||
%>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:10 0 0 0">
|
||||
<table width="100%" cellpadding="5" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<td width="20%" class='tit2' align="center">ǰ<>ǹ<EFBFBD><C7B9><EFBFBD></td>
|
||||
<td width="80%" class='tit7'><font class="tahoma"><%=gap(10)%> <%=tmp_doc_link%></font></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
end if
|
||||
%>
|
||||
|
||||
|
||||
<!-- #include file = "inc_reply.asp" -->
|
||||
|
||||
|
||||
<tr>
|
||||
<td colspan="2" style="padding:20 0 0 0" align="right">
|
||||
<pre><font class="tahoma"> <09><> <20><> <20><> <20><> : <20><> <20><> <20><></font></pre>
|
||||
<pre><font class="tahoma"> <09><> <20><> <20><> : (<28><>)</font></pre>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:15 0 5 0"><!-- #include virtual= "approval/inc_logo.asp" --></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img width = "100%" src="/images/approval/docbg_btm.jpg"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
var today = new Date().getMonth()+1 + " / " + new Date().getDate();
|
||||
<% If rev_type = "1" Then %>
|
||||
var tmpHtml = "";
|
||||
tmpHtml += "<input type='button' id='rev_btn' value='<27><><EFBFBD><EFBFBD>' style='background-color: #c6fccf;cursor: pointer;' />";
|
||||
<% if cstr(tmp_ess(4, 2)) = cstr(session("user_number")) then %>
|
||||
$("#approval_tb > tbody > tr:eq(2) > td:nth-last-child(3)").html(tmpHtml) // <20><><EFBFBD><EFBFBD>
|
||||
$("#approval_tb > tbody > tr:eq(3) > td:nth-last-child(3)").html(today) // <20><><EFBFBD><EFBFBD>
|
||||
<% Else %>
|
||||
$("#approval_tb > tbody > tr:eq(2) > td:nth-last-child(4)").html(tmpHtml) // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
$("#approval_tb > tbody > tr:eq(3) > td:nth-last-child(4)").html(today) // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
<% End If %>
|
||||
|
||||
$("#rev_btn").on("click", function(){
|
||||
if(confirm("<22><><EFBFBD><EFBFBD>ó<EFBFBD><C3B3><EFBFBD>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?")){
|
||||
$.ajax({
|
||||
url: "/ess/doc_rev_ajax.asp",
|
||||
type: "POST",
|
||||
data: {"command":"revIReqApproval", "d_no":"<%=d_no%>", "today":today},
|
||||
success: function(ret){
|
||||
if(ret == "1"){
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD><C3BB> <20><><EFBFBD><EFBFBD> ó<><C3B3><EFBFBD>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
|
||||
$(opener.document).find("#tr_<%=d_no%>").remove();
|
||||
self.close();
|
||||
}else if(ret == "2"){
|
||||
alert("<22><><EFBFBD><EFBFBD> ó<><C3B3><EFBFBD>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
|
||||
$(opener.document).find("#tr_<%=d_no%>").remove();
|
||||
self.close();
|
||||
}else{
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><EFBFBD><DFBB>Ͽ<EFBFBD><CFBF><EFBFBD><EFBFBD>ϴ<EFBFBD>.\n<><6E><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>.");
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
<% ElseIf rev_type = "2" Then %>
|
||||
<% if cstr(tmp_ess(4, 2)) = cstr(session("user_number")) then %>
|
||||
tmpHtml = ""
|
||||
tmpHtml += "<input type='button' id='rev_comp_btn' value='<27><><EFBFBD><EFBFBD>' style='background-color: #c6fccf;cursor: pointer;' />";
|
||||
$("#approval_tb > tbody > tr:eq(2) > td:nth-last-child(3)").html(tmpHtml) // <20><><EFBFBD><EFBFBD>
|
||||
|
||||
$("#rev_comp_btn").on("click", function(){
|
||||
if(confirm("<22><><EFBFBD><EFBFBD><EFBFBD>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?")){
|
||||
$.ajax({
|
||||
url: "/ess/doc_rev_ajax.asp",
|
||||
type: "POST",
|
||||
data: {"command":"revICompApproval", "d_no":"<%=d_no%>", "today":today},
|
||||
success: function(ret){
|
||||
if(ret == "1"){
|
||||
alert("<22><><EFBFBD><EFBFBD> ó<><C3B3><EFBFBD>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
|
||||
$(opener.document).find("#tr_<%=d_no%>").remove();
|
||||
self.close();
|
||||
}else{
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><EFBFBD><DFBB>Ͽ<EFBFBD><CFBF><EFBFBD><EFBFBD>ϴ<EFBFBD>.\n<><6E><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>.");
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
<% End If %>
|
||||
|
||||
<% ElseIf rev_type = "3" Then %>
|
||||
|
||||
<% End If %>
|
||||
<% If d_order_cnt = 77 Then %>
|
||||
$.ajax({
|
||||
url: "/ess/doc_rev_ajax.asp",
|
||||
type: "POST",
|
||||
data: {"command":"revIIngApproval", "d_no":"<%=d_no%>", "appoval_level":"21"},
|
||||
success: function(ret){
|
||||
if(ret != "0"){
|
||||
var retJson = JSON.parse(ret);
|
||||
$("#approval_tb > tbody > tr:eq(2) > td:nth-last-child(4)").html('<img src="/images/sign/' + retJson.imgFile + '.jpg" border="0" width="40" height="40">') // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
$("#approval_tb > tbody > tr:eq(3) > td:nth-last-child(4)").html(retJson.day) // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
}
|
||||
}
|
||||
});
|
||||
$.ajax({
|
||||
url: "/ess/doc_rev_ajax.asp",
|
||||
type: "POST",
|
||||
data: {"command":"revIIngApproval", "d_no":"<%=d_no%>", "appoval_level":"22"},
|
||||
success: function(ret){
|
||||
if(ret != "0"){
|
||||
var retJson = JSON.parse(ret);
|
||||
$("#approval_tb > tbody > tr:eq(2) > td:nth-last-child(3)").html('<img src="/images/sign/' + retJson.imgFile + '.jpg" border="0" width="40" height="40">') // <20><><EFBFBD><EFBFBD>
|
||||
$("#approval_tb > tbody > tr:eq(3) > td:nth-last-child(3)").html(retJson.day) // <20><><EFBFBD><EFBFBD>
|
||||
}
|
||||
}
|
||||
});
|
||||
$.ajax({
|
||||
url: "/ess/doc_rev_ajax.asp",
|
||||
type: "POST",
|
||||
data: {"command":"revIIngApproval", "d_no":"<%=d_no%>", "appoval_level":"23"},
|
||||
success: function(ret){
|
||||
if(ret != "0"){
|
||||
var retJson = JSON.parse(ret);
|
||||
$("#approval_tb > tbody > tr:eq(2) > td:nth-last-child(1)").html('<img src="/images/sign/' + retJson.imgFile + '.jpg" border="0" width="40" height="40">') // <20><><EFBFBD><EFBFBD>
|
||||
$("#approval_tb > tbody > tr:eq(3) > td:nth-last-child(1)").html(retJson.day) // <20><>ǥ<EFBFBD><C7A5>
|
||||
}
|
||||
}
|
||||
});
|
||||
<% End If %>
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
<%
|
||||
end if
|
||||
rsc.Close
|
||||
%>
|
||||
541
ess/doc_expense2_print.asp_250916_cns
Normal file
541
ess/doc_expense2_print.asp_250916_cns
Normal file
@@ -0,0 +1,541 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
''//=====================
|
||||
''//=====================
|
||||
''2013<31><33> 9<><39> 27<32><37><EFBFBD>ڷ<EFBFBD>
|
||||
' <20><><EFBFBD><EFBFBD> <20><><EFBFBD>Ǽ<EFBFBD><C7BC><EFBFBD> <20>Աݰ<D4B1><DDB0>Ǽ<EFBFBD><C7BC><EFBFBD> <20>߰<EFBFBD><DFB0>Ͽ<EFBFBD> 2<><32><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>α<CEB1><D7B7><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
'' <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> titie<69><65> title_type<70><65> <20><><EFBFBD><EFBFBD>
|
||||
''//=====================
|
||||
''//=====================
|
||||
|
||||
|
||||
|
||||
dim tmpstr
|
||||
dim Query
|
||||
dim i
|
||||
dim user_name(4) '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,0:<3A><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD>, 1:<3A≯<EFBFBD>,2:<3A><><EFBFBD><EFBFBD>,3:<3A><>ȭ<EFBFBD><C8AD>ȣ, 4:<3A>μ<EFBFBD><CEBC>ڵ<EFBFBD>(<28><>)
|
||||
dim Max_Width
|
||||
dim title
|
||||
dim target_name '<27>߱<DFB1><DEB4><EFBFBD><EFBFBD><EFBFBD> <20≯<EFBFBD>
|
||||
dim Curr_date '<27><><EFBFBD>ó<EFBFBD>¥
|
||||
dim Company(6)
|
||||
dim Gap(10) '1:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ<EFBFBD>, 2:<3A><><EFBFBD><EFBFBD>(<28>Ա<EFBFBD>)<29><><EFBFBD><EFBFBD>, 3:<3A><><EFBFBD><EFBFBD>(<28>Ա<EFBFBD>)<29><><EFBFBD><EFBFBD>, 4:<3A><><EFBFBD><EFBFBD>(<28>Ա<EFBFBD>)<29><><EFBFBD><EFBFBD>, 5:<3A><><EFBFBD>ް<EFBFBD><DEB0><EFBFBD>, 6:<3A>ΰ<EFBFBD><CEB0><EFBFBD><EFBFBD><EFBFBD>, 7:<3A>Ѿ<EFBFBD>, 8:<3A>ŷ<EFBFBD>ó, 9:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ<EFBFBD>, 10:ǰ<>Ǽ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ
|
||||
dim krc_no
|
||||
dim print_type '1:<3A><><EFBFBD><EFBFBD>, 2:<3A><>¥<EFBFBD><C2A5><EFBFBD><EFBFBD>Ʈ
|
||||
dim db_table_name
|
||||
dim title_type
|
||||
|
||||
d_no = request("d_no")
|
||||
x = request("x")
|
||||
krc_no = d_no
|
||||
print_type = request("print_type")
|
||||
view_chk= request("view_chk")
|
||||
|
||||
db_table_name = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
title="<22>ڱ<EFBFBD><DAB1><EFBFBD><EFBFBD>༭"
|
||||
title_type = title
|
||||
|
||||
Max_Width =750
|
||||
Curr_date = year(date) & "<22><> " & zeroformat(month(date),2) & "<22><> " & zeroformat(day(date),2) & "<22><>"
|
||||
|
||||
|
||||
|
||||
''//==========================================
|
||||
''2010<31><30> 3<><33> 3<><33>
|
||||
'''<27>μ<CEBC><E2BFA9> ǥ<><C7A5>
|
||||
if print_type = "2" then
|
||||
query = "update <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> set print_chk = 'Yes', print_cnt = print_cnt + 1 where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ='" & d_no & "' "
|
||||
adoConn.Execute query
|
||||
end if
|
||||
|
||||
|
||||
query = "SELECT * "
|
||||
query = query & "FROM <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> as a "
|
||||
query = query & " INNER JOIN Document as b on a.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = b.d_no "
|
||||
query = query & "WHERE a.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ='" & d_no & "' "
|
||||
if x = "99" then
|
||||
else
|
||||
if session("admin_ip") = Request.ServerVariables("remote_host") then
|
||||
else
|
||||
query = query & " AND b.d_delok = 'N' "
|
||||
end if
|
||||
end if
|
||||
|
||||
|
||||
rsc.Open query, adoConn, 1
|
||||
if rsc.RecordCount > 0 then
|
||||
|
||||
tmp_date = split(rsc("d_write_date"), "-")
|
||||
Curr_date = tmp_date(0) & "<22><> " & tmp_date(1) & "<22><> " & tmp_date(2) & "<22><>"
|
||||
|
||||
tmp_0 = split(rsc("target97"), "^^")
|
||||
user_name(0) = rsc("login_p_no") '<27><><EFBFBD><EFBFBD>
|
||||
user_name(1) = tmp_0(0) '<27≯<EFBFBD>
|
||||
user_name(2) = tmp_0(1) '<27><><EFBFBD><EFBFBD> <20>ڵ<EFBFBD>
|
||||
user_name(3) = tmp_0(2) '<27><><EFBFBD><EFBFBD> <20><>ȭ
|
||||
user_name(4) = tmp_0(3) '<27>μ<EFBFBD><CEBC>ڵ<EFBFBD>
|
||||
|
||||
tmp_00 = split(rsc("target98"), "^^")
|
||||
Company(1) = tmp_00(0)
|
||||
Company(2) = tmp_00(1)
|
||||
Company(3) = tmp_00(2)
|
||||
Company(4) = tmp_00(3)
|
||||
Company(5) = tmp_00(4)
|
||||
Company(6) = tmp_00(5)
|
||||
|
||||
|
||||
|
||||
tmp_7 = split(rsc("target99"), "^^")
|
||||
tmp_8 = split(rsc("target100"), "^^")
|
||||
|
||||
if instr(1,tmp_7(0), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt1 = tmp_7(0)
|
||||
elseif instr(1,tmp_7(0), "<BR>") then
|
||||
tmp_t1 = split(tmp_7(0), "<BR>")
|
||||
tmp_txt1 = "<img src='/images/sign/" & tmp_t1(0) & "_" & tmp_t1(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt1 = tmp_7(0)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(1), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt2 = tmp_7(1)
|
||||
elseif instr(1,tmp_7(1), "<BR>") then
|
||||
tmp_t2 = split(tmp_7(1), "<BR>")
|
||||
tmp_txt2 = "<img src='/images/sign/" & tmp_t2(0) & "_" & tmp_t2(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt2 = tmp_7(1)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(2), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt3 = tmp_7(2)
|
||||
elseif instr(1,tmp_7(2), "<BR>") then
|
||||
tmp_t3 = split(tmp_7(2), "<BR>")
|
||||
tmp_txt3 = "<img src='/images/sign/" & tmp_t3(0) & "_" & tmp_t3(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt3 = tmp_7(2)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(3), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt4 = tmp_7(3)
|
||||
elseif instr(1,tmp_7(3), "<BR>") then
|
||||
tmp_t4 = split(tmp_7(3), "<BR>")
|
||||
tmp_txt4 = "<img src='/images/sign/" & tmp_t4(0) & "_" & tmp_t4(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt4 = tmp_7(3)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(4), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt5 = tmp_7(4)
|
||||
elseif instr(1,tmp_7(4), "<BR>") then
|
||||
tmp_t5 = split(tmp_7(4), "<BR>")
|
||||
tmp_txt5 = "<img src='/images/sign/" & tmp_t5(0) & "_" & tmp_t5(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt5 = tmp_7(4)
|
||||
end if
|
||||
|
||||
tmp_txt6 = tmp_8(0)
|
||||
tmp_txt7 = tmp_8(1)
|
||||
tmp_txt8 = tmp_8(2)
|
||||
tmp_txt9 = tmp_8(3)
|
||||
tmp_txt10 = tmp_8(4)
|
||||
|
||||
gap(1) = rsc("target1")
|
||||
gap(2) = rsc("target2")
|
||||
gap(3) = rsc("target3")
|
||||
gap(4) = rsc("target4")
|
||||
gap(5) = rsc("target5")
|
||||
gap(6) = rsc("target6")
|
||||
gap(7) = rsc("target7")
|
||||
gap(8) = rsc("target8")
|
||||
gap(9) = rsc("p_sn")
|
||||
gap(10) = rsc("target9")
|
||||
|
||||
d_order_cnt = int(rsc("d_order_cnt"))
|
||||
|
||||
print_type = request("print_type")
|
||||
|
||||
''<27><><EFBFBD>ڸ<EFBFBD> '-'<27><><EFBFBD><EFBFBD> <20><>,<2C><><EFBFBD><EFBFBD> <20><>ü
|
||||
gap(3) = mid(gap(3),1,4) & "<22><> " & mid(gap(3),6,2) & "<22><> " & mid(gap(3),9,2) & "<22><>"
|
||||
for i=1 to 9
|
||||
if trim(gap(i)) = "" then
|
||||
gap(i) = " "
|
||||
end if
|
||||
next
|
||||
for i=5 to 7
|
||||
if gap(i) = " " then
|
||||
gap(i) = "0"
|
||||
end if
|
||||
next
|
||||
|
||||
|
||||
''<27>α<EFBFBD><CEB1><EFBFBD><EFBFBD><EFBFBD>
|
||||
query = "insert into " & db_table_name & "_log (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_p_no, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_<EFBFBD≯<EFBFBD>, <20><><EFBFBD><EFBFBD>,"
|
||||
query = query & " <20>߱<EFBFBD><DFB1><EFBFBD>, <20>߱ð<DEBD>, <20>߱<EFBFBD><DFB1><EFBFBD>_p_no, <20>߱<EFBFBD><DFB1><EFBFBD>_<EFBFBD≯<EFBFBD>, <20>߱<EFBFBD><DFB1><EFBFBD>_ip) values ( "
|
||||
query = query & "'" & krc_no & "', "
|
||||
query = query & "'" & replace(title, " ", "") & "', "
|
||||
query = query & "'" & Session("User_Number") & "', "
|
||||
query = query & "'" & Session("loginuser") & "', "
|
||||
query = query & "'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>', "
|
||||
query = query & "'" & year(date) & "-" & zeroformat(month(date),2) & "-" & zeroformat(day(date),2) & "', "
|
||||
query = query & "'" & time() & "', "
|
||||
query = query & "'" & user_name(0) & "', "
|
||||
query = query & "'" & user_name(1) & "', "
|
||||
query = query & "'" & Session("USERIP") & "')"
|
||||
|
||||
if Request.ServerVariables("REMOTE_ADDr") = session("admin_ip") then
|
||||
else
|
||||
adoconn.execute query
|
||||
end if
|
||||
|
||||
%>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title><%=GNB_TITLE%></title>
|
||||
<link rel="stylesheet" type="text/css" href="/css/basic.css">
|
||||
</head>
|
||||
|
||||
<script language=javascript>
|
||||
function win_close()
|
||||
{
|
||||
window.close();
|
||||
}
|
||||
function win_print()
|
||||
{
|
||||
var txt_prj_name = document.ess.txt_prj_name.value;
|
||||
var txt_pay_target = document.ess.txt_pay_target.value;
|
||||
var txt_date = document.ess.txt_date.value;
|
||||
var sel_pay_type = document.ess.sel_pay_type.value;
|
||||
var txt_pay = document.ess.txt_pay.value;
|
||||
var txt_pay_vat = document.ess.txt_pay_vat.value;
|
||||
var txt_pay_tot = document.ess.txt_pay_tot.value;
|
||||
var txt_client = document.ess.txt_client.value;
|
||||
var txt_p_sn = document.ess.txt_p_sn.value;
|
||||
<%
|
||||
if tmp_admin_chk = "1" then
|
||||
%>
|
||||
var txt_d_no = document.ess.txt_d_no.value;
|
||||
<%
|
||||
end if
|
||||
%>
|
||||
|
||||
var url = "doc_expense2_print.asp"
|
||||
url = url + "?txt_prj_name=" + txt_prj_name;
|
||||
url = url + "&txt_pay_target=" + txt_pay_target;
|
||||
url = url + "&txt_date=" + txt_date;
|
||||
url = url + "&sel_pay_type=" + sel_pay_type;
|
||||
url = url + "&txt_pay=" + txt_pay;
|
||||
url = url + "&txt_pay_vat=" + txt_pay_vat;
|
||||
url = url + "&txt_pay_tot=" + txt_pay_tot;
|
||||
url = url + "&txt_client=" + txt_client;
|
||||
url = url + "&print_type=2";
|
||||
url = url + "&txt_p_sn=" + txt_p_sn;
|
||||
<%
|
||||
if tmp_admin_chk = "1" then
|
||||
%>
|
||||
url = url + "&txt_d_no=" + txt_d_no;
|
||||
<%
|
||||
end if
|
||||
%>
|
||||
document.ess.action=url;
|
||||
document.ess.submit();
|
||||
}
|
||||
|
||||
|
||||
|
||||
function print_ie()
|
||||
{
|
||||
|
||||
//
|
||||
if(navigator.userAgent.toLowerCase().indexOf('chrome') > -1){ // Chrome Browser Detected?
|
||||
window.PPClose = false; // Clear Close Flag
|
||||
window.onbeforeunload = function(){ // Before Window Close Event
|
||||
if(window.PPClose === false){ // Close not OK?
|
||||
return 'Leaving this page will block the parent window!\nPlease select "Stay on this Page option" and use the\nCancel button instead to close the Print Preview Window.\n';
|
||||
}
|
||||
}
|
||||
window.print(); // Print preview
|
||||
window.PPClose = true; // Set Close Flag to OK.
|
||||
}else{
|
||||
window.print();
|
||||
window.close();
|
||||
}
|
||||
}
|
||||
|
||||
function clsit()
|
||||
{
|
||||
alert('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>û <20>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>');
|
||||
self.close();
|
||||
}
|
||||
|
||||
function subit(a, b)
|
||||
{
|
||||
var tmp_txt;
|
||||
var approve_pass;
|
||||
|
||||
if (a == 1)
|
||||
{
|
||||
tmp_txt = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ";
|
||||
approve_pass = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
tmp_txt = "";
|
||||
}
|
||||
|
||||
if (confirm(tmp_txt + "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?"))
|
||||
{
|
||||
document.ess.action = "allow_ok.asp?approve_pass="+approve_pass;
|
||||
document.ess.action = "allow_ok.asp?approve_pass="+approve_pass+"&tmp_pass_psn="+b+"&title="+"<%=replace(title," ","")%>";
|
||||
document.ess.submit();
|
||||
}
|
||||
}
|
||||
|
||||
function backit(a)
|
||||
{
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ۼ<EFBFBD><DBBC><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>");
|
||||
var url = "reason.asp?d_no="+a;
|
||||
window.open(url,'','left=0,top=0,width=400,height=180,scrollbars=yes,resizable=yes')
|
||||
}
|
||||
|
||||
//-->
|
||||
|
||||
</script>
|
||||
|
||||
<body topmargin="10" leftmargin="10" <%if cint(print_type) = 2 then%> onLoad="print_ie();" <% end if %>>
|
||||
|
||||
<form method='post' name='ess'>
|
||||
|
||||
<input type="hidden" name="d_no" value="<%=d_no%>">
|
||||
<input type="hidden" name="x" value="<%=x%>">
|
||||
|
||||
<input type=hidden name = "txt_prj_name" value="<%=gap(1)%>">
|
||||
<input type=hidden name = "txt_pay_target" value="<%=gap(2)%>">
|
||||
<input type=hidden name = "txt_date" value="<%=gap(3)%>">
|
||||
<input type=hidden name = "sel_pay_type" value="<%=gap(4)%>">
|
||||
<input type=hidden name = "txt_pay" value="<%=gap(5)%>">
|
||||
<input type=hidden name = "txt_pay_vat" value="<%=gap(6)%>">
|
||||
<input type=hidden name = "txt_pay_tot" value="<%=gap(7)%>">
|
||||
<input type=hidden name = "txt_client" value="<%=gap(8)%>">
|
||||
<input type=hidden name = "txt_p_sn" value='<%=gap(9)%>'>
|
||||
<input type=hidden name="txt_d_no" value='<%=gap(10)%>'>
|
||||
|
||||
<%if x = "99" then%>
|
||||
<!-- #include file = "inc_delreason.asp" -->
|
||||
<%end if '''if x = "99" then%>
|
||||
|
||||
<%
|
||||
if cint(print_type) <> 2 and (d_order_cnt = "99" or d_order_cnt = "77") and (tmp_admin_chk = "1" or tmp_request_chk = "1" or int(rsc("login_p_no")) = int(Session("User_Number"))) then
|
||||
%>
|
||||
<!-- #include file = "inc_print.asp" -->
|
||||
<%end if%>
|
||||
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td colspan="2" style="padding:20;">
|
||||
<table cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td><img width = "100%" src="/images/approval/docbg_top.jpg"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="710" align="center" style="padding:10;border-left:1px solid #dedede;border-right:1px solid #dedede;">
|
||||
<table width="95%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td colspan="2" style="padding:0 0 10 0">
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<td width="255">
|
||||
<img src="/images/approval/doc_stit28.jpg">
|
||||
</td>
|
||||
<td>
|
||||
<!-- #include file = "inc_approval.asp" -->
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><> <3B><> ȣ</b></td>
|
||||
<td width="80%" class="tahoma"><%=d_no%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><> <3B><> <3B><></b></td>
|
||||
<td width="80%" class="tahoma"><%=Curr_date%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><></b></td>
|
||||
<td width="80%"><%=user_name(1)%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><></b></td>
|
||||
<td width="80%"><%=user_name(4)%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><></b></td>
|
||||
<td width="80%"><%=user_name(2)%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:10 0 10 0;font-size:14;font-family:dotum;"><b><3E>ϱ<EFBFBD><CFB1><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ(<28><><EFBFBD><EFBFBD>)<29><> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD><CFBF><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20>ֽñ<D6BD> <20>ٶ<EFBFBD><D9B6>ϴ<EFBFBD>.</b></td>
|
||||
</tr>
|
||||
<%
|
||||
'----------------------------------------------------------------------------------------
|
||||
'### <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD> <20>ش<EFBFBD><D8B4>ϴ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ִٸ<D6B4> <20><>ũ<EFBFBD><C5A9> - 2010<31><30> 1<><31> 26<32><36> <20><><EFBFBD><EFBFBD>
|
||||
'### <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>ý<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ũ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> - 2011<31><31> 6<><36> 07<30><37> <20>߰<EFBFBD>
|
||||
tmp_link = ""
|
||||
tmp_p_sn = split(rsc("p_sn"),",")
|
||||
'Response.Write ubound(tmp_p_sn)
|
||||
if ubound(tmp_p_sn) = 0 then
|
||||
end_i = 1
|
||||
tmp_p_sn(0) = rsc("p_sn")
|
||||
else
|
||||
end_i = ubound(tmp_p_sn)
|
||||
end if
|
||||
'Response.Write rsc("p_sn") & "<br>"
|
||||
for i = 0 to end_i - 1
|
||||
query = "SELECT * "
|
||||
query = query & "FROM Document a "
|
||||
query = query & " INNER JOIN <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> b on a.d_no = b.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ "
|
||||
query = query & "WHERE a.d_delok = 'N' "
|
||||
'query = query & " AND a.d_name = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' "
|
||||
query = query & " AND a.d_name = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȹ<EFBFBD><C8B9>' AND a.d_order_cnt = '77' "
|
||||
query = query & " AND b.p_sn = '" & tmp_p_sn(i) & "' "
|
||||
'Response.Write query & "<BR>"
|
||||
adoRs.open query, adoConn, 1
|
||||
'Response.Write "adoRs.recordcount : " & adoRs.recordcount & "<BR>"
|
||||
if adoRs.recordcount > 0 then
|
||||
'tmp_link = " - <a href='direct_cost_print.asp?p_sn=" & rsc("p_sn") & "' target='_blank'><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></a>"
|
||||
tmp_link = tmp_link & "<a href='direct_cost_print.asp?p_sn=" & tmp_p_sn(i) & "' target='_blank' class='blue'><img src='/images/approval/btn_directcost_view.jpg' align='absmiddle' style='CURSOR:pointer;'></a>"
|
||||
else
|
||||
tmp_link = tmp_link & "<font color=blue><b>[<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>]</b></font>"
|
||||
end if
|
||||
adoRs.close
|
||||
next
|
||||
|
||||
tmp_doc_link = ""
|
||||
if gap(10) <> "" then
|
||||
tmp_doc_link = "<a href='doc_consultation_print.asp?d_no=" & gap(10) & "' target='_blank'><img src='/images/common/btn_smalldetail.gif' align='absmiddle' style='CURSOR:pointer;'></a>" '+'&view_chk='+c+'&x='+v
|
||||
end if
|
||||
'----------------------------------------------------------------------------------------
|
||||
%>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:10 0 0 0">
|
||||
<table width="100%" cellpadding="5" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<td width="20%" class='tit2' align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><>(<28><><EFBFBD><EFBFBD>)</td>
|
||||
<td width="80%" class='tit7'><font class="tahoma"><%=gap(1)%>-(<%=gap(9)%>) <%=tmp_link%></font></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:10 0 0 0">
|
||||
<table width="100%" cellpadding="5" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<td width="20%" class='tit2' align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><>Ÿ<EFBFBD><C5B8><EFBFBD><EFBFBD></td>
|
||||
<td width="80%" class='tit7'><font class="tahoma"><%=ViewWord(gap(2))%></font></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:10 0 0 0">
|
||||
<table width="100%" cellpadding="5" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<!-- <td width="20%" align="center"><%=title_type%><3E><><EFBFBD><EFBFBD></td> -->
|
||||
<td width="20%" class='tit2' align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="30%" class='tit7'><font class="tahoma"><%=gap(3)%></font></td>
|
||||
<td width="20%" class='tit2' align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="30%" class='tit7'><%=gap(4)%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tit2' align="center"><3E><><EFBFBD>ް<EFBFBD><DEB0><EFBFBD></td>
|
||||
<td class='tit7'><font class="tahoma"><3E><> <%=gap(5)%> <20><></font></td>
|
||||
<td class='tit2' align="center" rowspan="2"><3E><><EFBFBD><EFBFBD><EFBFBD>Ѿ<EFBFBD></td>
|
||||
<td class='tit7' rowspan="2"><font class="tahoma"><3E><> <%=gap(7)%> <20><></font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" class='tit2' align="center"><3E>ΰ<EFBFBD><CEB0><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="30%" class='tit7'><font class="tahoma"><3E><> <%=gap(6)%> <20><></font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tit2' align="center"><3E>ŷ<EFBFBD>ó</td>
|
||||
<td class='tit7'><font class="tahoma"><%=gap(8)%></font></td>
|
||||
<td class='tit2' align="center"><3E>Աݰ<D4B1><DDB0><EFBFBD></td>
|
||||
<td class='tit7'><font class="tahoma">
|
||||
<%if trim(gap(4)) = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ü" then
|
||||
Response.Write "<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>纻 <20><>ü"
|
||||
else
|
||||
Response.Write "<22>ش<EFBFBD> <20><><EFBFBD><EFBFBD>"
|
||||
end if%>
|
||||
</font></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
if tmp_doc_link <> "" then
|
||||
%>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:10 0 0 0">
|
||||
<table width="100%" cellpadding="5" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<td width="20%" class='tit2' align="center">ǰ<>ǹ<EFBFBD><C7B9><EFBFBD></td>
|
||||
<td width="80%" class='tit7'><font class="tahoma"><%=gap(10)%> <%=tmp_doc_link%></font></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
end if
|
||||
%>
|
||||
|
||||
|
||||
<!-- #include file = "inc_reply.asp" -->
|
||||
|
||||
|
||||
<tr>
|
||||
<td colspan="2" style="padding:20 0 0 0" align="right">
|
||||
<pre><font class="tahoma"> <09><> <20><> <20><> <20><> : <20><> <20><> <20><></font></pre>
|
||||
<pre><font class="tahoma"> <09><> <20><> <20><> : (<28><>)</font></pre>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:15 0 5 0"><!-- #include virtual= "approval/inc_logo.asp" --></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img width = "100%" src="/images/approval/docbg_btm.jpg"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
<%
|
||||
end if
|
||||
rsc.Close
|
||||
%>
|
||||
651
ess/doc_expense2_print.asp_250924_cns
Normal file
651
ess/doc_expense2_print.asp_250924_cns
Normal file
@@ -0,0 +1,651 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
''//=====================
|
||||
''//=====================
|
||||
''2013<31><33> 9<><39> 27<32><37><EFBFBD>ڷ<EFBFBD>
|
||||
' <20><><EFBFBD><EFBFBD> <20><><EFBFBD>Ǽ<EFBFBD><C7BC><EFBFBD> <20>Աݰ<D4B1><DDB0>Ǽ<EFBFBD><C7BC><EFBFBD> <20>߰<EFBFBD><DFB0>Ͽ<EFBFBD> 2<><32><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>α<CEB1><D7B7><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
'' <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> titie<69><65> title_type<70><65> <20><><EFBFBD><EFBFBD>
|
||||
''//=====================
|
||||
''//=====================
|
||||
|
||||
|
||||
|
||||
dim tmpstr
|
||||
dim Query
|
||||
dim i
|
||||
dim user_name(4) '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,0:<3A><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD>, 1:<3A≯<EFBFBD>,2:<3A><><EFBFBD><EFBFBD>,3:<3A><>ȭ<EFBFBD><C8AD>ȣ, 4:<3A>μ<EFBFBD><CEBC>ڵ<EFBFBD>(<28><>)
|
||||
dim Max_Width
|
||||
dim title
|
||||
dim target_name '<27>߱<DFB1><DEB4><EFBFBD><EFBFBD><EFBFBD> <20≯<EFBFBD>
|
||||
dim Curr_date '<27><><EFBFBD>ó<EFBFBD>¥
|
||||
dim Company(6)
|
||||
dim Gap(10) '1:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ<EFBFBD>, 2:<3A><><EFBFBD><EFBFBD>(<28>Ա<EFBFBD>)<29><><EFBFBD><EFBFBD>, 3:<3A><><EFBFBD><EFBFBD>(<28>Ա<EFBFBD>)<29><><EFBFBD><EFBFBD>, 4:<3A><><EFBFBD><EFBFBD>(<28>Ա<EFBFBD>)<29><><EFBFBD><EFBFBD>, 5:<3A><><EFBFBD>ް<EFBFBD><DEB0><EFBFBD>, 6:<3A>ΰ<EFBFBD><CEB0><EFBFBD><EFBFBD><EFBFBD>, 7:<3A>Ѿ<EFBFBD>, 8:<3A>ŷ<EFBFBD>ó, 9:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ<EFBFBD>, 10:ǰ<>Ǽ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ
|
||||
dim krc_no
|
||||
dim print_type '1:<3A><><EFBFBD><EFBFBD>, 2:<3A><>¥<EFBFBD><C2A5><EFBFBD><EFBFBD>Ʈ
|
||||
dim db_table_name
|
||||
dim title_type
|
||||
|
||||
d_no = request("d_no")
|
||||
x = request("x")
|
||||
krc_no = d_no
|
||||
print_type = request("print_type")
|
||||
view_chk= request("view_chk")
|
||||
rev_type = request("rev_type")
|
||||
|
||||
db_table_name = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
title="<22>ڱ<EFBFBD><DAB1><EFBFBD><EFBFBD>༭"
|
||||
title_type = title
|
||||
|
||||
Max_Width =750
|
||||
Curr_date = year(date) & "<22><> " & zeroformat(month(date),2) & "<22><> " & zeroformat(day(date),2) & "<22><>"
|
||||
|
||||
|
||||
|
||||
''//==========================================
|
||||
''2010<31><30> 3<><33> 3<><33>
|
||||
'''<27>μ<CEBC><E2BFA9> ǥ<><C7A5>
|
||||
if print_type = "2" then
|
||||
query = "update <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> set print_chk = 'Yes', print_cnt = print_cnt + 1 where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ='" & d_no & "' "
|
||||
adoConn.Execute query
|
||||
end if
|
||||
|
||||
|
||||
query = "SELECT * "
|
||||
query = query & "FROM <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> as a "
|
||||
query = query & " INNER JOIN Document as b on a.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = b.d_no "
|
||||
query = query & "WHERE a.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ='" & d_no & "' "
|
||||
if x = "99" then
|
||||
else
|
||||
if session("admin_ip") = Request.ServerVariables("remote_host") then
|
||||
else
|
||||
query = query & " AND b.d_delok = 'N' "
|
||||
end if
|
||||
end if
|
||||
|
||||
|
||||
rsc.Open query, adoConn, 1
|
||||
if rsc.RecordCount > 0 then
|
||||
|
||||
tmp_date = split(rsc("d_write_date"), "-")
|
||||
Curr_date = tmp_date(0) & "<22><> " & tmp_date(1) & "<22><> " & tmp_date(2) & "<22><>"
|
||||
|
||||
tmp_0 = split(rsc("target97"), "^^")
|
||||
user_name(0) = rsc("login_p_no") '<27><><EFBFBD><EFBFBD>
|
||||
user_name(1) = tmp_0(0) '<27≯<EFBFBD>
|
||||
user_name(2) = tmp_0(1) '<27><><EFBFBD><EFBFBD> <20>ڵ<EFBFBD>
|
||||
user_name(3) = tmp_0(2) '<27><><EFBFBD><EFBFBD> <20><>ȭ
|
||||
user_name(4) = tmp_0(3) '<27>μ<EFBFBD><CEBC>ڵ<EFBFBD>
|
||||
|
||||
tmp_00 = split(rsc("target98"), "^^")
|
||||
Company(1) = tmp_00(0)
|
||||
Company(2) = tmp_00(1)
|
||||
Company(3) = tmp_00(2)
|
||||
Company(4) = tmp_00(3)
|
||||
Company(5) = tmp_00(4)
|
||||
Company(6) = tmp_00(5)
|
||||
|
||||
|
||||
|
||||
tmp_7 = split(rsc("target99"), "^^")
|
||||
tmp_8 = split(rsc("target100"), "^^")
|
||||
|
||||
if instr(1,tmp_7(0), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt1 = tmp_7(0)
|
||||
elseif instr(1,tmp_7(0), "<BR>") then
|
||||
tmp_t1 = split(tmp_7(0), "<BR>")
|
||||
tmp_txt1 = "<img src='/images/sign/" & tmp_t1(0) & "_" & tmp_t1(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt1 = tmp_7(0)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(1), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt2 = tmp_7(1)
|
||||
elseif instr(1,tmp_7(1), "<BR>") then
|
||||
tmp_t2 = split(tmp_7(1), "<BR>")
|
||||
tmp_txt2 = "<img src='/images/sign/" & tmp_t2(0) & "_" & tmp_t2(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt2 = tmp_7(1)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(2), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt3 = tmp_7(2)
|
||||
elseif instr(1,tmp_7(2), "<BR>") then
|
||||
tmp_t3 = split(tmp_7(2), "<BR>")
|
||||
tmp_txt3 = "<img src='/images/sign/" & tmp_t3(0) & "_" & tmp_t3(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt3 = tmp_7(2)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(3), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt4 = tmp_7(3)
|
||||
elseif instr(1,tmp_7(3), "<BR>") then
|
||||
tmp_t4 = split(tmp_7(3), "<BR>")
|
||||
tmp_txt4 = "<img src='/images/sign/" & tmp_t4(0) & "_" & tmp_t4(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt4 = tmp_7(3)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(4), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt5 = tmp_7(4)
|
||||
elseif instr(1,tmp_7(4), "<BR>") then
|
||||
tmp_t5 = split(tmp_7(4), "<BR>")
|
||||
tmp_txt5 = "<img src='/images/sign/" & tmp_t5(0) & "_" & tmp_t5(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt5 = tmp_7(4)
|
||||
end if
|
||||
|
||||
tmp_txt6 = tmp_8(0)
|
||||
tmp_txt7 = tmp_8(1)
|
||||
tmp_txt8 = tmp_8(2)
|
||||
tmp_txt9 = tmp_8(3)
|
||||
tmp_txt10 = tmp_8(4)
|
||||
|
||||
gap(1) = rsc("target1")
|
||||
gap(2) = rsc("target2")
|
||||
gap(3) = rsc("target3")
|
||||
gap(4) = rsc("target4")
|
||||
gap(5) = rsc("target5")
|
||||
gap(6) = rsc("target6")
|
||||
gap(7) = rsc("target7")
|
||||
gap(8) = rsc("target8")
|
||||
gap(9) = rsc("p_sn")
|
||||
gap(10) = rsc("target9")
|
||||
|
||||
d_order_cnt = int(rsc("d_order_cnt"))
|
||||
|
||||
print_type = request("print_type")
|
||||
|
||||
''<27><><EFBFBD>ڸ<EFBFBD> '-'<27><><EFBFBD><EFBFBD> <20><>,<2C><><EFBFBD><EFBFBD> <20><>ü
|
||||
gap(3) = mid(gap(3),1,4) & "<22><> " & mid(gap(3),6,2) & "<22><> " & mid(gap(3),9,2) & "<22><>"
|
||||
for i=1 to 9
|
||||
if trim(gap(i)) = "" then
|
||||
gap(i) = " "
|
||||
end if
|
||||
next
|
||||
for i=5 to 7
|
||||
if gap(i) = " " then
|
||||
gap(i) = "0"
|
||||
end if
|
||||
next
|
||||
|
||||
|
||||
''<27>α<EFBFBD><CEB1><EFBFBD><EFBFBD>夻
|
||||
query = "insert into " & db_table_name & "_log (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_p_no, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_<EFBFBD≯<EFBFBD>, <20><><EFBFBD><EFBFBD>,"
|
||||
query = query & " <20>߱<EFBFBD><DFB1><EFBFBD>, <20>߱ð<DEBD>, <20>߱<EFBFBD><DFB1><EFBFBD>_p_no, <20>߱<EFBFBD><DFB1><EFBFBD>_<EFBFBD≯<EFBFBD>, <20>߱<EFBFBD><DFB1><EFBFBD>_ip) values ( "
|
||||
query = query & "'" & krc_no & "', "
|
||||
query = query & "'" & replace(title, " ", "") & "', "
|
||||
query = query & "'" & Session("User_Number") & "', "
|
||||
query = query & "'" & Session("loginuser") & "', "
|
||||
query = query & "'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>', "
|
||||
query = query & "'" & year(date) & "-" & zeroformat(month(date),2) & "-" & zeroformat(day(date),2) & "', "
|
||||
query = query & "'" & time() & "', "
|
||||
query = query & "'" & user_name(0) & "', "
|
||||
query = query & "'" & user_name(1) & "', "
|
||||
query = query & "'" & Session("USERIP") & "')"
|
||||
|
||||
if Request.ServerVariables("REMOTE_ADDr") = session("admin_ip") then
|
||||
else
|
||||
adoconn.execute query
|
||||
end if
|
||||
|
||||
%>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title><%=GNB_TITLE%></title>
|
||||
<link rel="stylesheet" type="text/css" href="/css/jquery-ui.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="/css/basic.css">
|
||||
</head>
|
||||
<script src="/js/jquery.min.js"></script>
|
||||
<script src="/js/jquery-ajax-call.js"></script>
|
||||
<script src="/js/jquery.form.min.js"></script>
|
||||
<script src="/js/jquery-ui.min.js"></script>
|
||||
<script src="/js/common.js"></script>
|
||||
<script language=javascript>
|
||||
function win_close()
|
||||
{
|
||||
window.close();
|
||||
}
|
||||
function win_print()
|
||||
{
|
||||
var txt_prj_name = document.ess.txt_prj_name.value;
|
||||
var txt_pay_target = document.ess.txt_pay_target.value;
|
||||
var txt_date = document.ess.txt_date.value;
|
||||
var sel_pay_type = document.ess.sel_pay_type.value;
|
||||
var txt_pay = document.ess.txt_pay.value;
|
||||
var txt_pay_vat = document.ess.txt_pay_vat.value;
|
||||
var txt_pay_tot = document.ess.txt_pay_tot.value;
|
||||
var txt_client = document.ess.txt_client.value;
|
||||
var txt_p_sn = document.ess.txt_p_sn.value;
|
||||
<%
|
||||
if tmp_admin_chk = "1" then
|
||||
%>
|
||||
var txt_d_no = document.ess.txt_d_no.value;
|
||||
<%
|
||||
end if
|
||||
%>
|
||||
|
||||
var url = "doc_expense2_print.asp"
|
||||
url = url + "?txt_prj_name=" + txt_prj_name;
|
||||
url = url + "&txt_pay_target=" + txt_pay_target;
|
||||
url = url + "&txt_date=" + txt_date;
|
||||
url = url + "&sel_pay_type=" + sel_pay_type;
|
||||
url = url + "&txt_pay=" + txt_pay;
|
||||
url = url + "&txt_pay_vat=" + txt_pay_vat;
|
||||
url = url + "&txt_pay_tot=" + txt_pay_tot;
|
||||
url = url + "&txt_client=" + txt_client;
|
||||
url = url + "&print_type=2";
|
||||
url = url + "&txt_p_sn=" + txt_p_sn;
|
||||
<%
|
||||
if tmp_admin_chk = "1" then
|
||||
%>
|
||||
url = url + "&txt_d_no=" + txt_d_no;
|
||||
<%
|
||||
end if
|
||||
%>
|
||||
document.ess.action=url;
|
||||
document.ess.submit();
|
||||
}
|
||||
|
||||
|
||||
|
||||
function print_ie()
|
||||
{
|
||||
|
||||
//
|
||||
if(navigator.userAgent.toLowerCase().indexOf('chrome') > -1){ // Chrome Browser Detected?
|
||||
window.PPClose = false; // Clear Close Flag
|
||||
window.onbeforeunload = function(){ // Before Window Close Event
|
||||
if(window.PPClose === false){ // Close not OK?
|
||||
return 'Leaving this page will block the parent window!\nPlease select "Stay on this Page option" and use the\nCancel button instead to close the Print Preview Window.\n';
|
||||
}
|
||||
}
|
||||
window.print(); // Print preview
|
||||
window.PPClose = true; // Set Close Flag to OK.
|
||||
}else{
|
||||
window.print();
|
||||
window.close();
|
||||
}
|
||||
}
|
||||
|
||||
function clsit()
|
||||
{
|
||||
alert('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>û <20>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>');
|
||||
self.close();
|
||||
}
|
||||
|
||||
function subit(a, b)
|
||||
{
|
||||
var tmp_txt;
|
||||
var approve_pass;
|
||||
|
||||
if (a == 1)
|
||||
{
|
||||
tmp_txt = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ";
|
||||
approve_pass = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
tmp_txt = "";
|
||||
}
|
||||
|
||||
if (confirm(tmp_txt + "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?"))
|
||||
{
|
||||
document.ess.action = "allow_ok.asp?approve_pass="+approve_pass;
|
||||
document.ess.action = "allow_ok.asp?approve_pass="+approve_pass+"&tmp_pass_psn="+b+"&title="+"<%=replace(title," ","")%>";
|
||||
document.ess.submit();
|
||||
}
|
||||
}
|
||||
|
||||
function backit(a)
|
||||
{
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ۼ<EFBFBD><DBBC><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>");
|
||||
var url = "reason.asp?d_no="+a;
|
||||
window.open(url,'','left=0,top=0,width=400,height=180,scrollbars=yes,resizable=yes')
|
||||
}
|
||||
|
||||
//-->
|
||||
|
||||
</script>
|
||||
|
||||
<body topmargin="10" leftmargin="10" <%if cint(print_type) = 2 then%> onLoad="print_ie();" <% end if %>>
|
||||
|
||||
<form method='post' name='ess'>
|
||||
|
||||
<input type="hidden" name="d_no" value="<%=d_no%>">
|
||||
<input type="hidden" name="x" value="<%=x%>">
|
||||
|
||||
<input type=hidden name = "txt_prj_name" value="<%=gap(1)%>">
|
||||
<input type=hidden name = "txt_pay_target" value="<%=gap(2)%>">
|
||||
<input type=hidden name = "txt_date" value="<%=gap(3)%>">
|
||||
<input type=hidden name = "sel_pay_type" value="<%=gap(4)%>">
|
||||
<input type=hidden name = "txt_pay" value="<%=gap(5)%>">
|
||||
<input type=hidden name = "txt_pay_vat" value="<%=gap(6)%>">
|
||||
<input type=hidden name = "txt_pay_tot" value="<%=gap(7)%>">
|
||||
<input type=hidden name = "txt_client" value="<%=gap(8)%>">
|
||||
<input type=hidden name = "txt_p_sn" value='<%=gap(9)%>'>
|
||||
<input type=hidden name="txt_d_no" value='<%=gap(10)%>'>
|
||||
|
||||
<%if x = "99" then%>
|
||||
<!-- #include file = "inc_delreason.asp" -->
|
||||
<%end if '''if x = "99" then%>
|
||||
|
||||
<%
|
||||
if cint(print_type) <> 2 and (d_order_cnt = "99" or d_order_cnt = "77") and (tmp_admin_chk = "1" or tmp_request_chk = "1" or int(rsc("login_p_no")) = int(Session("User_Number"))) then
|
||||
%>
|
||||
<!-- #include file = "inc_print.asp" -->
|
||||
<%end if%>
|
||||
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td colspan="2" style="padding:20;">
|
||||
<table cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td><img width = "100%" src="/images/approval/docbg_top.jpg"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="710" align="center" style="padding:10;border-left:1px solid #dedede;border-right:1px solid #dedede;">
|
||||
<table width="95%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td colspan="2" style="padding:0 0 10 0">
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<td width="255">
|
||||
<img src="/images/approval/doc_stit28.jpg">
|
||||
</td>
|
||||
<td>
|
||||
<!-- #include file = "inc_approval.asp" -->
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><> <3B><> ȣ</b></td>
|
||||
<td width="80%" class="tahoma"><%=d_no%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><> <3B><> <3B><></b></td>
|
||||
<td width="80%" class="tahoma"><%=Curr_date%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><></b></td>
|
||||
<td width="80%"><%=user_name(1)%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><></b></td>
|
||||
<td width="80%"><%=user_name(4)%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><></b></td>
|
||||
<td width="80%"><%=user_name(2)%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:10 0 10 0;font-size:14;font-family:dotum;"><b><3E>ϱ<EFBFBD><CFB1><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ(<28><><EFBFBD><EFBFBD>)<29><> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD><CFBF><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20>ֽñ<D6BD> <20>ٶ<EFBFBD><D9B6>ϴ<EFBFBD>.</b></td>
|
||||
</tr>
|
||||
<%
|
||||
'----------------------------------------------------------------------------------------
|
||||
'### <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD> <20>ش<EFBFBD><D8B4>ϴ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ִٸ<D6B4> <20><>ũ<EFBFBD><C5A9> - 2010<31><30> 1<><31> 26<32><36> <20><><EFBFBD><EFBFBD>
|
||||
'### <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>ý<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ũ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> - 2011<31><31> 6<><36> 07<30><37> <20>߰<EFBFBD>
|
||||
tmp_link = ""
|
||||
tmp_p_sn = split(rsc("p_sn"),",")
|
||||
'Response.Write ubound(tmp_p_sn)
|
||||
if ubound(tmp_p_sn) = 0 then
|
||||
end_i = 1
|
||||
tmp_p_sn(0) = rsc("p_sn")
|
||||
else
|
||||
end_i = ubound(tmp_p_sn)
|
||||
end if
|
||||
'Response.Write rsc("p_sn") & "<br>"
|
||||
for i = 0 to end_i - 1
|
||||
query = "SELECT * "
|
||||
query = query & "FROM Document a "
|
||||
query = query & " INNER JOIN <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> b on a.d_no = b.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ "
|
||||
query = query & "WHERE a.d_delok = 'N' "
|
||||
'query = query & " AND a.d_name = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' "
|
||||
query = query & " AND a.d_name = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȹ<EFBFBD><C8B9>' AND a.d_order_cnt = '77' "
|
||||
query = query & " AND b.p_sn = '" & tmp_p_sn(i) & "' "
|
||||
'Response.Write query & "<BR>"
|
||||
adoRs.open query, adoConn, 1
|
||||
'Response.Write "adoRs.recordcount : " & adoRs.recordcount & "<BR>"
|
||||
if adoRs.recordcount > 0 then
|
||||
'tmp_link = " - <a href='direct_cost_print.asp?p_sn=" & rsc("p_sn") & "' target='_blank'><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></a>"
|
||||
tmp_link = tmp_link & "<a href='direct_cost_print.asp?p_sn=" & tmp_p_sn(i) & "' target='_blank' class='blue'><img src='/images/approval/btn_directcost_view.jpg' align='absmiddle' style='CURSOR:pointer;'></a>"
|
||||
else
|
||||
tmp_link = tmp_link & "<font color=blue><b>[<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>]</b></font>"
|
||||
end if
|
||||
adoRs.close
|
||||
next
|
||||
|
||||
tmp_doc_link = ""
|
||||
if gap(10) <> "" then
|
||||
tmp_doc_link = "<a href='doc_consultation_print.asp?d_no=" & gap(10) & "' target='_blank'><img src='/images/common/btn_smalldetail.gif' align='absmiddle' style='CURSOR:pointer;'></a>" '+'&view_chk='+c+'&x='+v
|
||||
end if
|
||||
'----------------------------------------------------------------------------------------
|
||||
%>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:10 0 0 0">
|
||||
<table width="100%" cellpadding="5" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<td width="20%" class='tit2' align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><>(<28><><EFBFBD><EFBFBD>)</td>
|
||||
<td width="80%" class='tit7'><font class="tahoma"><%=gap(1)%>-(<%=gap(9)%>) <%=tmp_link%></font></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:10 0 0 0">
|
||||
<table width="100%" cellpadding="5" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<td width="20%" class='tit2' align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><>Ÿ<EFBFBD><C5B8><EFBFBD><EFBFBD></td>
|
||||
<td width="80%" class='tit7'><font class="tahoma"><%=ViewWord(gap(2))%></font></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:10 0 0 0">
|
||||
<table width="100%" cellpadding="5" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<!-- <td width="20%" align="center"><%=title_type%><3E><><EFBFBD><EFBFBD></td> -->
|
||||
<td width="20%" class='tit2' align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="30%" class='tit7'><font class="tahoma"><%=gap(3)%></font></td>
|
||||
<td width="20%" class='tit2' align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="30%" class='tit7'><%=gap(4)%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tit2' align="center"><3E><><EFBFBD>ް<EFBFBD><DEB0><EFBFBD></td>
|
||||
<td class='tit7'><font class="tahoma"><3E><> <%=gap(5)%> <20><></font></td>
|
||||
<td class='tit2' align="center" rowspan="2"><3E><><EFBFBD><EFBFBD><EFBFBD>Ѿ<EFBFBD></td>
|
||||
<td class='tit7' rowspan="2"><font class="tahoma"><3E><> <%=gap(7)%> <20><></font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" class='tit2' align="center"><3E>ΰ<EFBFBD><CEB0><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="30%" class='tit7'><font class="tahoma"><3E><> <%=gap(6)%> <20><></font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tit2' align="center"><3E>ŷ<EFBFBD>ó</td>
|
||||
<td class='tit7'><font class="tahoma"><%=gap(8)%></font></td>
|
||||
<td class='tit2' align="center"><3E>Աݰ<D4B1><DDB0><EFBFBD></td>
|
||||
<td class='tit7'><font class="tahoma">
|
||||
<%if trim(gap(4)) = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ü" then
|
||||
Response.Write "<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>纻 <20><>ü"
|
||||
else
|
||||
Response.Write "<22>ش<EFBFBD> <20><><EFBFBD><EFBFBD>"
|
||||
end if%>
|
||||
</font></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
if tmp_doc_link <> "" then
|
||||
%>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:10 0 0 0">
|
||||
<table width="100%" cellpadding="5" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<td width="20%" class='tit2' align="center">ǰ<>ǹ<EFBFBD><C7B9><EFBFBD></td>
|
||||
<td width="80%" class='tit7'><font class="tahoma"><%=gap(10)%> <%=tmp_doc_link%></font></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
end if
|
||||
%>
|
||||
|
||||
|
||||
<!-- #include file = "inc_reply.asp" -->
|
||||
|
||||
|
||||
<tr>
|
||||
<td colspan="2" style="padding:20 0 0 0" align="right">
|
||||
<pre><font class="tahoma"> <09><> <20><> <20><> <20><> : <20><> <20><> <20><></font></pre>
|
||||
<pre><font class="tahoma"> <09><> <20><> <20><> : (<28><>)</font></pre>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:15 0 5 0"><!-- #include virtual= "approval/inc_logo.asp" --></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img width = "100%" src="/images/approval/docbg_btm.jpg"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
var today = new Date().getMonth()+1 + " / " + new Date().getDate();
|
||||
<% If rev_type = "1" Then %>
|
||||
var tmpHtml = "";
|
||||
tmpHtml += "<input type='button' id='rev_btn' value='<27><><EFBFBD><EFBFBD>' style='background-color: #c6fccf;cursor: pointer;' />";
|
||||
<% if cstr(tmp_ess(4, 2)) = cstr(session("user_number")) then %>
|
||||
$("#approval_tb > tbody > tr:eq(2) > td:nth-last-child(3)").html(tmpHtml) // <20><><EFBFBD><EFBFBD>
|
||||
$("#approval_tb > tbody > tr:eq(3) > td:nth-last-child(3)").html(today) // <20><><EFBFBD><EFBFBD>
|
||||
<% Else %>
|
||||
$("#approval_tb > tbody > tr:eq(2) > td:nth-last-child(4)").html(tmpHtml) // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
$("#approval_tb > tbody > tr:eq(3) > td:nth-last-child(4)").html(today) // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
<% End If %>
|
||||
|
||||
$("#rev_btn").on("click", function(){
|
||||
if(confirm("<22><><EFBFBD><EFBFBD>ó<EFBFBD><C3B3><EFBFBD>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?")){
|
||||
$.ajax({
|
||||
url: "/ess/doc_rev_ajax.asp",
|
||||
type: "POST",
|
||||
data: {"command":"revIReqApproval", "d_no":"<%=d_no%>", "today":today},
|
||||
success: function(ret){
|
||||
if(ret == "1"){
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD><C3BB> <20><><EFBFBD><EFBFBD> ó<><C3B3><EFBFBD>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
|
||||
$(opener.document).find("#tr_<%=d_no%>").remove();
|
||||
self.close();
|
||||
}else if(ret == "2"){
|
||||
alert("<22><><EFBFBD><EFBFBD> ó<><C3B3><EFBFBD>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
|
||||
$(opener.document).find("#tr_<%=d_no%>").remove();
|
||||
self.close();
|
||||
}else{
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><EFBFBD><DFBB>Ͽ<EFBFBD><CFBF><EFBFBD><EFBFBD>ϴ<EFBFBD>.\n<><6E><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>.");
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
<% ElseIf rev_type = "2" Then %>
|
||||
<% if cstr(tmp_ess(4, 2)) = cstr(session("user_number")) then %>
|
||||
tmpHtml = ""
|
||||
tmpHtml += "<input type='button' id='rev_comp_btn' value='<27><><EFBFBD><EFBFBD>' style='background-color: #c6fccf;cursor: pointer;' />";
|
||||
$("#approval_tb > tbody > tr:eq(2) > td:nth-last-child(3)").html(tmpHtml) // <20><><EFBFBD><EFBFBD>
|
||||
|
||||
$("#rev_comp_btn").on("click", function(){
|
||||
if(confirm("<22><><EFBFBD><EFBFBD><EFBFBD>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?")){
|
||||
$.ajax({
|
||||
url: "/ess/doc_rev_ajax.asp",
|
||||
type: "POST",
|
||||
data: {"command":"revICompApproval", "d_no":"<%=d_no%>", "today":today},
|
||||
success: function(ret){
|
||||
if(ret == "1"){
|
||||
alert("<22><><EFBFBD><EFBFBD> ó<><C3B3><EFBFBD>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
|
||||
$(opener.document).find("#tr_<%=d_no%>").remove();
|
||||
self.close();
|
||||
}else{
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><EFBFBD><DFBB>Ͽ<EFBFBD><CFBF><EFBFBD><EFBFBD>ϴ<EFBFBD>.\n<><6E><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>.");
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
<% End If %>
|
||||
|
||||
<% ElseIf rev_type = "3" Then %>
|
||||
|
||||
<% End If %>
|
||||
<% If d_order_cnt = 77 Then %>
|
||||
$.ajax({
|
||||
url: "/ess/doc_rev_ajax.asp",
|
||||
type: "POST",
|
||||
data: {"command":"revIIngApproval", "d_no":"<%=d_no%>", "appoval_level":"21"},
|
||||
success: function(ret){
|
||||
if(ret != "0"){
|
||||
var retJson = JSON.parse(ret);
|
||||
$("#approval_tb > tbody > tr:eq(2) > td:nth-last-child(4)").html('<img src="/images/sign/' + retJson.imgFile + '.jpg" border="0" width="40" height="40">') // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
$("#approval_tb > tbody > tr:eq(3) > td:nth-last-child(4)").html(retJson.day) // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
}
|
||||
}
|
||||
});
|
||||
$.ajax({
|
||||
url: "/ess/doc_rev_ajax.asp",
|
||||
type: "POST",
|
||||
data: {"command":"revIIngApproval", "d_no":"<%=d_no%>", "appoval_level":"22"},
|
||||
success: function(ret){
|
||||
if(ret != "0"){
|
||||
var retJson = JSON.parse(ret);
|
||||
$("#approval_tb > tbody > tr:eq(2) > td:nth-last-child(3)").html('<img src="/images/sign/' + retJson.imgFile + '.jpg" border="0" width="40" height="40">') // <20><><EFBFBD><EFBFBD>
|
||||
$("#approval_tb > tbody > tr:eq(3) > td:nth-last-child(3)").html(retJson.day) // <20><><EFBFBD><EFBFBD>
|
||||
}
|
||||
}
|
||||
});
|
||||
$.ajax({
|
||||
url: "/ess/doc_rev_ajax.asp",
|
||||
type: "POST",
|
||||
data: {"command":"revIIngApproval", "d_no":"<%=d_no%>", "appoval_level":"23"},
|
||||
success: function(ret){
|
||||
if(ret != "0"){
|
||||
var retJson = JSON.parse(ret);
|
||||
$("#approval_tb > tbody > tr:eq(2) > td:nth-last-child(1)").html('<img src="/images/sign/' + retJson.imgFile + '.jpg" border="0" width="40" height="40">') // <20><><EFBFBD><EFBFBD>
|
||||
$("#approval_tb > tbody > tr:eq(3) > td:nth-last-child(1)").html(retJson.day) // <20><>ǥ<EFBFBD><C7A5>
|
||||
}
|
||||
}
|
||||
});
|
||||
<% End If %>
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
<%
|
||||
end if
|
||||
rsc.Close
|
||||
%>
|
||||
1295
ess/doc_expense2_print_2014.asp
Normal file
1295
ess/doc_expense2_print_2014.asp
Normal file
File diff suppressed because it is too large
Load Diff
1278
ess/doc_expense2_print_2014.asp_250908_cns
Normal file
1278
ess/doc_expense2_print_2014.asp_250908_cns
Normal file
File diff suppressed because it is too large
Load Diff
1294
ess/doc_expense2_print_2014.asp_250909_cns
Normal file
1294
ess/doc_expense2_print_2014.asp_250909_cns
Normal file
File diff suppressed because it is too large
Load Diff
450
ess/doc_expense_approval_depart_print.asp
Normal file
450
ess/doc_expense_approval_depart_print.asp
Normal file
@@ -0,0 +1,450 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
dim tmpstr
|
||||
dim Query
|
||||
dim i,j
|
||||
dim user_name(4) '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,0:<3A><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD>, 1:<3A≯<EFBFBD>,2:<3A><><EFBFBD><EFBFBD>,3:<3A><>ȭ<EFBFBD><C8AD>ȣ, 4:<3A>μ<EFBFBD><CEBC>ڵ<EFBFBD>(<28><>)
|
||||
dim Max_Width
|
||||
dim title
|
||||
dim target_name '<27>߱<DFB1><DEB4><EFBFBD><EFBFBD><EFBFBD> <20≯<EFBFBD>
|
||||
dim Curr_date '<27><><EFBFBD>ó<EFBFBD>¥
|
||||
dim Company(6)
|
||||
dim Gap()
|
||||
dim krc_no
|
||||
dim Max_length '<27>Է°<D4B7><C2B0><EFBFBD> <20>ټ<EFBFBD><D9BC><EFBFBD><EFBFBD><EFBFBD>
|
||||
dim print_type '1:<3A><><EFBFBD><EFBFBD>, 2:<3A><>¥<EFBFBD><C2A5><EFBFBD><EFBFBD>Ʈ
|
||||
dim db_table_name
|
||||
dim depart_cost_type
|
||||
dim cost_type(2) ''<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
|
||||
cost_type(1) = "<22><><EFBFBD>ι<EFBFBD><CEB9><EFBFBD>ī<EFBFBD><C4AB>"
|
||||
cost_type(2) = "<22><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD>ī<EFBFBD><C4AB>"
|
||||
|
||||
|
||||
d_no = request("d_no")
|
||||
if request("d_no") = "" then
|
||||
d_no = request("krc_no")
|
||||
end if
|
||||
x = request("x")
|
||||
krc_no = d_no
|
||||
print_type = request("print_type")
|
||||
view_chk= request("view_chk")
|
||||
|
||||
db_table_name = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
|
||||
title="<22>μ<EFBFBD><CEBC><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD><C3BB>"
|
||||
Max_Width =750
|
||||
|
||||
Curr_date = year(date) & "<22><> " & zeroformat(month(date),2) & "<22><> " & zeroformat(day(date),2) & "<22><>"
|
||||
|
||||
|
||||
|
||||
''//==========================================
|
||||
''2010<31><30> 3<><33> 3<><33>
|
||||
'''<27>μ<CEBC><E2BFA9> ǥ<><C7A5>
|
||||
if print_type = "2" then
|
||||
query = "update <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> set print_chk = 'Yes', print_cnt = print_cnt + 1 where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ='" & d_no & "' "
|
||||
adoConn.Execute query
|
||||
end if
|
||||
|
||||
query = "SELECT * "
|
||||
query = query & "FROM <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> as a "
|
||||
query = query & " INNER JOIN Document as b on a.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = b.d_no "
|
||||
query = query & "WHERE a.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ='" & d_no & "' "
|
||||
if x = "99" then
|
||||
else
|
||||
query = query & " AND b.d_delok = 'N' "
|
||||
end if
|
||||
rsc.Open query, adoConn, 1
|
||||
if rsc("target20") = "<22><>" then
|
||||
depart_cost_type = "1"
|
||||
elseif rsc("target20") = "<22><>" then
|
||||
depart_cost_type = "2"
|
||||
end if
|
||||
|
||||
if rsc("target29") = "" or isnull(rsc("target29")) then
|
||||
Max_length = 20
|
||||
else
|
||||
Max_length = rsc("target29")
|
||||
end if
|
||||
redim gap(Max_length,8) 'x:<3A><><EFBFBD><EFBFBD>, y:1:<3A><><EFBFBD><EFBFBD>, 2:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE>, 3:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, 4:<3A>ݾ<EFBFBD>,5:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD>ڵ<EFBFBD>, 6:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,7:<3A><><EFBFBD>ٽð<D9BD>, (0,0) : <20>Ѿ<EFBFBD>
|
||||
|
||||
'response.write query
|
||||
if rsc.RecordCount > 0 then
|
||||
|
||||
tmp_date = split(rsc("d_write_date"), "-")
|
||||
Curr_date = tmp_date(0) & "<22><> " & tmp_date(1) & "<22><> " & tmp_date(2) & "<22><>"
|
||||
|
||||
part = rsc("part")
|
||||
tmp_0 = split(rsc("target97"), "^^")
|
||||
user_name(0) = rsc("login_p_no") '<27><><EFBFBD><EFBFBD>
|
||||
user_name(1) = tmp_0(0) '<27≯<EFBFBD>
|
||||
user_name(2) = tmp_0(1) '<27><><EFBFBD><EFBFBD> <20>ڵ<EFBFBD>
|
||||
user_name(3) = tmp_0(2) '<27><><EFBFBD><EFBFBD> <20><>ȭ
|
||||
user_name(4) = tmp_0(3) '<27>μ<EFBFBD><CEBC>ڵ<EFBFBD>
|
||||
|
||||
tmp_00 = split(rsc("target98"), "^^")
|
||||
Company(1) = tmp_00(0)
|
||||
Company(2) = tmp_00(1)
|
||||
Company(3) = tmp_00(2)
|
||||
Company(4) = tmp_00(3)
|
||||
Company(5) = tmp_00(4)
|
||||
Company(6) = tmp_00(5)
|
||||
|
||||
tmp_7 = split(rsc("target99"), "^^")
|
||||
tmp_8 = split(rsc("target100"), "^^")
|
||||
|
||||
if instr(1,tmp_7(0), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt1 = tmp_7(0)
|
||||
elseif instr(1,tmp_7(0), "<BR>") then
|
||||
tmp_t1 = split(tmp_7(0), "<BR>")
|
||||
tmp_txt1 = "<img src='/images/sign/" & tmp_t1(0) & "_" & tmp_t1(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt1 = tmp_7(0)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(1), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt2 = tmp_7(1)
|
||||
elseif instr(1,tmp_7(1), "<BR>") then
|
||||
tmp_t2 = split(tmp_7(1), "<BR>")
|
||||
tmp_txt2 = "<img src='/images/sign/" & tmp_t2(0) & "_" & tmp_t2(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt2 = tmp_7(1)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(2), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt3 = tmp_7(2)
|
||||
elseif instr(1,tmp_7(2), "<BR>") then
|
||||
tmp_t3 = split(tmp_7(2), "<BR>")
|
||||
tmp_txt3 = "<img src='/images/sign/" & tmp_t3(0) & "_" & tmp_t3(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt3 = tmp_7(2)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(3), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt4 = tmp_7(3)
|
||||
elseif instr(1,tmp_7(3), "<BR>") then
|
||||
tmp_t4 = split(tmp_7(3), "<BR>")
|
||||
tmp_txt4 = "<img src='/images/sign/" & tmp_t4(0) & "_" & tmp_t4(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt4 = tmp_7(3)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(4), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt5 = tmp_7(4)
|
||||
elseif instr(1,tmp_7(4), "<BR>") then
|
||||
tmp_t5 = split(tmp_7(4), "<BR>")
|
||||
tmp_txt5 = "<img src='/images/sign/" & tmp_t5(0) & "_" & tmp_t5(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt5 = tmp_7(4)
|
||||
end if
|
||||
|
||||
tmp_txt6 = tmp_8(0)
|
||||
tmp_txt7 = tmp_8(1)
|
||||
tmp_txt8 = tmp_8(2)
|
||||
tmp_txt9 = tmp_8(3)
|
||||
tmp_txt10 = tmp_8(4)
|
||||
|
||||
for i = 1 to Max_length
|
||||
if isnull(rsc("target" & i)) then
|
||||
else
|
||||
if trim(replace(rsc("target" & i), "^", "")) <> "" then
|
||||
tmp_g = split(rsc("target" & i), "^^")
|
||||
'response.write(rsc("target" & i))
|
||||
'response.write(ubound(tmp_g) &" - "& Max_length)
|
||||
for j=0 to ubound(tmp_g)
|
||||
'response.write("<br>"& tmp_g(j) &" - "& j+1)
|
||||
gap(i, j+1) = tmp_g(j)
|
||||
next
|
||||
|
||||
if trim(gap(i, 4)) <> "" then
|
||||
gap(0,0) = clng(gap(0,0)) + clng(replace(gap(i, 4) ,",",""))
|
||||
end if
|
||||
end if
|
||||
end if
|
||||
next
|
||||
|
||||
d_order_cnt = int(rsc("d_order_cnt"))
|
||||
|
||||
tmp_str_money = rsc("target22")
|
||||
|
||||
for i = 1 to Max_length
|
||||
if trim(gap(i, 1)) <> "" then
|
||||
Query = "select * from login "
|
||||
Query = Query & " where p_no = '" & user_name(0) & "'"
|
||||
Query = Query & " and ("
|
||||
Query = Query & " ([date] = '" & gap(i, 1) & "' and cast([time] as int) >= 600) " '6<>ð<EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
Query = Query & " or "
|
||||
Query = Query & " ([date] = '" & cdate(gap(i, 1)) + 1 & "' and cast([time] as int) < 600)"
|
||||
Query = Query & " )"
|
||||
query = query & " order by [date], [time]"
|
||||
adoRs.Open query, adoConn, 1
|
||||
if adoRs.recordcount > 0 then
|
||||
adoRs.movelast
|
||||
gap(i, 7) = mid(adoRs("time"),1,2) & ":" & mid(adoRs("time"),3,2)
|
||||
else
|
||||
gap(i, 7) = "No"
|
||||
end if
|
||||
adoRs.close
|
||||
|
||||
gap(i, 1) = mid(gap(i, 1),1,4) & "<22><> " & mid(gap(i, 1),6,2) & "<22><> " & mid(gap(i, 1),9,2) & "<22><>"
|
||||
end if
|
||||
for j=1 to 6
|
||||
if trim(gap(i, j)) = "" then
|
||||
gap(i, j) = " "
|
||||
end if
|
||||
next
|
||||
next
|
||||
|
||||
''<27>α<EFBFBD><CEB1><EFBFBD><EFBFBD><EFBFBD>
|
||||
query = "insert into " & db_table_name & "_log (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_p_no, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_<EFBFBD≯<EFBFBD>, <20><><EFBFBD><EFBFBD>,"
|
||||
query = query & " <20>߱<EFBFBD><DFB1><EFBFBD>, <20>߱ð<DEBD>, <20>߱<EFBFBD><DFB1><EFBFBD>_p_no, <20>߱<EFBFBD><DFB1><EFBFBD>_<EFBFBD≯<EFBFBD>, <20>߱<EFBFBD><DFB1><EFBFBD>_ip) values ( "
|
||||
query = query & "'" & krc_no & "', "
|
||||
query = query & "'" & replace(title, " ", "") & "', "
|
||||
query = query & "'" & Session("User_Number") & "', "
|
||||
query = query & "'" & Session("loginuser") & "', "
|
||||
query = query & "'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>', "
|
||||
query = query & "'" & year(date) & "-" & zeroformat(month(date),2) & "-" & zeroformat(day(date),2) & "', "
|
||||
query = query & "'" & time() & "', "
|
||||
query = query & "'" & user_name(0) & "', "
|
||||
query = query & "'" & user_name(1) & "', "
|
||||
query = query & "'" & Session("USERIP") & "')"
|
||||
if Request.ServerVariables("REMOTE_ADDr") = session("admin_ip") then
|
||||
else
|
||||
adoconn.execute query
|
||||
end if
|
||||
%>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title><%=GNB_TITLE%></title>
|
||||
<link rel="stylesheet" type="text/css" href="/css/basic.css">
|
||||
</head>
|
||||
|
||||
<script language=javascript>
|
||||
function win_close()
|
||||
{
|
||||
window.close();
|
||||
}
|
||||
function win_print()
|
||||
{
|
||||
var url = "doc_expense_approval_depart_print.asp";
|
||||
url = url + "?print_type=2";
|
||||
document.ess.action=url;
|
||||
document.ess.submit();
|
||||
}
|
||||
|
||||
function print_ie()
|
||||
{
|
||||
|
||||
//
|
||||
if(navigator.userAgent.toLowerCase().indexOf('chrome') > -1){ // Chrome Browser Detected?
|
||||
window.PPClose = false; // Clear Close Flag
|
||||
window.onbeforeunload = function(){ // Before Window Close Event
|
||||
if(window.PPClose === false){ // Close not OK?
|
||||
return 'Leaving this page will block the parent window!\nPlease select "Stay on this Page option" and use the\nCancel button instead to close the Print Preview Window.\n';
|
||||
}
|
||||
}
|
||||
window.print(); // Print preview
|
||||
window.PPClose = true; // Set Close Flag to OK.
|
||||
}else{
|
||||
window.print();
|
||||
window.close();
|
||||
}
|
||||
}
|
||||
|
||||
function clsit()
|
||||
{
|
||||
alert('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>û <20>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>');
|
||||
self.close();
|
||||
}
|
||||
|
||||
function subit(a, b)
|
||||
{
|
||||
var tmp_txt;
|
||||
var approve_pass;
|
||||
|
||||
if (a == 1)
|
||||
{
|
||||
tmp_txt = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ";
|
||||
approve_pass = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
tmp_txt = "";
|
||||
}
|
||||
|
||||
if (confirm(tmp_txt + "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?"))
|
||||
{
|
||||
document.ess.action = "allow_ok.asp?approve_pass="+approve_pass;
|
||||
document.ess.action = "allow_ok.asp?approve_pass="+approve_pass+"&tmp_pass_psn="+b+"&title="+"<%=replace(title," ","")%>";
|
||||
document.ess.submit();
|
||||
}
|
||||
}
|
||||
|
||||
function backit(a)
|
||||
{
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ۼ<EFBFBD><DBBC><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>");
|
||||
var url = "reason.asp?d_no="+a;
|
||||
window.open(url,'','left=0,top=0,width=400,height=180,scrollbars=yes,resizable=yes')
|
||||
}
|
||||
</script>
|
||||
<body topmargin="10" leftmargin="10" <%if cint(print_type) = 2 then%> onLoad="print_ie();" <% end if %>>
|
||||
<div style="filter: alpha(opacity=5);position:absolute; display:inline-block; left:50px; top:70px; z-index:499;width:80%;height:80%;background-color: rgb(255,255,255); opacity:0.05; font-size:35px; font-family:malgun gothic; font-weight:bold; line-height:50px;" id="popup_background">
|
||||
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><br />
|
||||
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><br />
|
||||
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><br />
|
||||
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><br />
|
||||
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><br />
|
||||
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><br />
|
||||
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><br />
|
||||
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><br />
|
||||
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><br />
|
||||
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><br />
|
||||
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
</div>
|
||||
<form method='post' name='ess'>
|
||||
<input type="hidden" name="d_no" value="<%=d_no%>">
|
||||
<%if x = "99" then%>
|
||||
<!-- #include file = "inc_delreason.asp" -->
|
||||
<%end if '''if x = "99" then%>
|
||||
<img src="/images/common/btn_cancel.jpg" border="0" onClick="win_close();" style="CURSOR:pointer;">
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td colspan="2" style="padding:20;">
|
||||
<table cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td><img src="/images/approval/docbg_top.jpg"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="710" align="center" style="padding:10;border-left:1px solid #dedede;border-right:1px solid #dedede;">
|
||||
<table width="95%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td colspan="2" style="padding:0 0 10 0">
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<td width="255">
|
||||
<%
|
||||
if depart_cost_type = "1" then
|
||||
tmp_tit = "<22><EFBFBD>Ȱ<EFBFBD><C8B0><EFBFBD><EFBFBD>"
|
||||
elseif depart_cost_type = "2" then
|
||||
tmp_tit = "<22><EFBFBD><D7B7><EFBFBD>Ȱ<EFBFBD><C8B0><EFBFBD><EFBFBD>"
|
||||
end if
|
||||
%>
|
||||
<span style="color:#636B7E;font-family:batang;font-weight:bold;font-size:40px;letter-spacing:-6;line-height:30px;"><%=tmp_tit%></span>
|
||||
</td>
|
||||
<td>
|
||||
<!-- #include file = "inc_approval.asp" -->
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><> <3B><> ȣ</b></td>
|
||||
<td width="80%" class="tahoma"><%=d_no%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> û <3B><> <3B><></b></td>
|
||||
<td width="80%" class="tahoma"><%=Curr_date%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><></b></td>
|
||||
<td width="80%"><%=user_name(1)%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><></b></td>
|
||||
<td width="80%"><%=user_name(4)%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><></b></td>
|
||||
<td width="80%"><%=user_name(2)%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"><%=tmp_str_money %></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:10 0 0 0">
|
||||
<table width="100%" cellpadding="3" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<td width="20%" align="center"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td width="20%" align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ(<28><><EFBFBD><EFBFBD>)<29><>/<2F><><EFBFBD><EFBFBD></td>
|
||||
<td width="35%" align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="15%" align="center"><3E>ݾ<EFBFBD></td>
|
||||
<td width="10%" align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
</tr>
|
||||
<%for i=1 to Max_length
|
||||
if gap(i, 4) <> "" and gap(i, 4) <> " " then
|
||||
%>
|
||||
<tr>
|
||||
<td align="center"><font class="tahoma"><%=gap(i,1)%></font></td>
|
||||
<td ><font class="tahoma"><%=(gap(i,2))%></font></td>
|
||||
<td ><font class="tahoma"><%=(gap(i,3))%></font></td>
|
||||
<td align="right"><font class="tahoma"><3E><><%=formatnumber(gap(i,4),0)%> </font></td>
|
||||
<td align="center"><font class="tahoma">
|
||||
<%if cost_type(1) = gap(i,6) then%>
|
||||
<09><>
|
||||
<%elseif cost_type(2) = gap(i,6) then%>
|
||||
<09><>
|
||||
<%else%>
|
||||
<09><>
|
||||
<%end if%>
|
||||
</font></td>
|
||||
</tr>
|
||||
<%
|
||||
end if
|
||||
next%>
|
||||
<tr>
|
||||
<td colspan="3" >
|
||||
<09>հ<EFBFBD> (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> => <20><> : <20><><EFBFBD>ι<EFBFBD><CEB9><EFBFBD>ī<EFBFBD><C4AB>, <20><> : <20><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD>ī<EFBFBD><C4AB>, <20><> :<3A><><EFBFBD>α<CEB1> <20><><EFBFBD><EFBFBD>
|
||||
</td>
|
||||
<td align="right"><font class="tahoma"><3E><><%=formatnumber(gap(0,0),0)%> </font></td>
|
||||
<td colspan="2"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" style="padding:20 0 0 0" align="right">
|
||||
<pre><font class="tahoma"> <09><> <20><> <20><> <20><> : <20><> <20><> <20><></font></pre>
|
||||
<pre><font class="tahoma"> <09><> <20><> <20><> : (<28><>)</font></pre>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:15 0 5 0"><!-- #include virtual= "approval/inc_logo.asp" --></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="/images/approval/docbg_btm.jpg"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
<%
|
||||
end if
|
||||
rsc.Close
|
||||
%>
|
||||
749
ess/doc_expense_editok.asp
Normal file
749
ess/doc_expense_editok.asp
Normal file
@@ -0,0 +1,749 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<OBJECT RUNAT=Server PROGID=ADODB.Recordset id=rsp></OBJECT>
|
||||
<%
|
||||
|
||||
dim sql, objdb
|
||||
dim edit_mode : edit_mode=request.form("edit_mode") '-- <20><><EFBFBD><EFBFBD>Ÿ<EFBFBD><C5B8>
|
||||
|
||||
dim d_no
|
||||
dim hangmok
|
||||
dim sebu
|
||||
dim expence_company
|
||||
dim expence_date
|
||||
dim payment_date
|
||||
dim expence_way
|
||||
dim minus_expence_reason
|
||||
dim tmp_date_edit
|
||||
dim h
|
||||
|
||||
tmp_date_edit=request.form("tmp_date_edit")
|
||||
hangmok=request.form("hangmok")
|
||||
sebu=request.form("sebu")
|
||||
expence_date=request.form("expence_date")
|
||||
payment_date=request.form("payment_date")
|
||||
expence_way=request.form("expence_way")
|
||||
expence_company=request.form("expence_company")
|
||||
d_no=request.form("d_no")
|
||||
response.write "<br>"
|
||||
|
||||
select case edit_mode
|
||||
case "mult" '-- <20><>Ƽ<EFBFBD><C6BC><EFBFBD><EFBFBD>
|
||||
response.write "(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)tmp_date_edit:"& tmp_date_edit&"<br>"
|
||||
response.write "d_no:"& d_no&"<br>"
|
||||
response.write "hangmok:"& hangmok&"<br>"
|
||||
response.write "sebu:"& sebu&"<br>"
|
||||
response.write "expence_company:"& expence_company&"<br>"
|
||||
response.write "expence_date:"& expence_date&"<br>"
|
||||
response.write "payment_date:"& payment_date&"<br>"
|
||||
response.write "expence_way:"& expence_way&"<br>"
|
||||
|
||||
|
||||
response.write "<22><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD>(ex_account)<br>"
|
||||
for h=1 to request.form("ex_account").count
|
||||
response.write request.form("ex_account")(h)&"<br>"
|
||||
next
|
||||
|
||||
'-- <20><><EFBFBD>ް<EFBFBD><DEB0><EFBFBD>
|
||||
dim tmp_sql : tmp_sql=""
|
||||
dim expence_money_sum : expence_money_sum=0
|
||||
response.write "expence_money"&"<br>"
|
||||
for h=1 to request.form("expence_money").count
|
||||
response.write request.form("expence_money")(h)&"<br>"
|
||||
expence_money_sum=cdbl(fnc_rp(expence_money_sum,"1"))+cdbl(fnc_rp(request.form("expence_money")(h),"1"))
|
||||
'-- tmp_sql
|
||||
tmp_sql=tmp_sql&", target"& (h+20) &"='"&h&"^^"&fnc_rp(request.form("ex_account")(h),"2")&"^//^"&fnc_rp(request.form("expence_money")(h),"2")&"^//^"&fnc_rp(request.form("expence_vat")(h),"2")&"^//^"&fnc_rp(request.form("expence_sum")(h),"2")&"^//^"&fnc_rp(replace(request.form("expence_reason")(h),chr(13)&chr(10),"<br>"),"2")&"^//^' "
|
||||
next
|
||||
|
||||
'-- <20>ΰ<EFBFBD><CEB0><EFBFBD>
|
||||
dim expence_vat_sum : expence_vat_sum=0
|
||||
response.write "expence_vat"&"<br>"
|
||||
for h=1 to request.form("expence_vat").count
|
||||
response.write request.form("expence_vat")(h)&"<br>"
|
||||
expence_vat_sum=cdbl(fnc_rp(expence_vat_sum,"1"))+cdbl(fnc_rp(request.form("expence_vat")(h),"1"))
|
||||
next
|
||||
|
||||
|
||||
response.write "expence_sum"&"<br>"
|
||||
for h=1 to request.form("expence_sum").count
|
||||
response.write request.form("expence_sum")(h)&"<br>"
|
||||
next
|
||||
|
||||
response.write "expence_reason"&"<br>"
|
||||
for h=1 to request.form("expence_reason").count
|
||||
response.write request.form("expence_reason")(h)&"<br>"
|
||||
next
|
||||
|
||||
'################## <20><><EFBFBD><EFBFBD>ó<EFBFBD><C3B3><EFBFBD><EFBFBD> ######################################################################
|
||||
'--(1)
|
||||
sql = " "
|
||||
sql = sql & " update direct_cost "
|
||||
sql = sql & " set direct_cost.act_money = direct_cost.act_money - B.cost, direct_cost.cha_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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
|
||||
|
||||
'--(2)
|
||||
sql=""
|
||||
sql=sql&" update <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> set "
|
||||
sql=sql&" target3='"&expence_date&"' " '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
'-- sql=sql&" ,<2C>߱<EFBFBD><DFB1><EFBFBD>='"&tmp_date_edit&"' " '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
|
||||
sql=sql&" ,target4='"&expence_way&"' " '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
sql=sql&" ,target5='"&expence_money_sum&"' " '-- <20><><EFBFBD>ް<EFBFBD><DEB0><EFBFBD> <20>ջ<EFBFBD>
|
||||
sql=sql&" ,target6='"&expence_vat_sum&"' " '-- vat <20>ջ<EFBFBD>
|
||||
sql=sql&" ,target7='"&cdbl(expence_money_sum)+cdbl(expence_vat_sum)&"' " '-- <20><><EFBFBD>ް<EFBFBD><DEB0><EFBFBD> <20>ջ<EFBFBD> + vat <20>ջ<EFBFBD>
|
||||
sql=sql&" ,target8='"&fnc_rp(expence_company,"2")&"' " '-- <20>ŷ<EFBFBD>ó
|
||||
if hangmok<>"" and sebu<>"" then
|
||||
sql=sql&" ,target11='"&fnc_rp(hangmok,"1")&"' " '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
sql=sql&" ,target12='"&fnc_rp(sebu,"1")&"' " '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
end if
|
||||
sql=sql&" ,remark19='"&payment_date&"' " '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
sql=sql&tmp_sql ' -- <20><><EFBFBD>⳻<EFBFBD><E2B3BB>21~50<35><30><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
sql=sql&" where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ='"&d_no&"' " '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ
|
||||
sql=sql&" and del_yes_no='no' "
|
||||
adoconn.execute sql
|
||||
|
||||
'--(3)
|
||||
sql = " "
|
||||
sql = sql & " update direct_cost "
|
||||
sql = sql & " set direct_cost.act_money = direct_cost.act_money + B.cost, direct_cost.cha_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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
|
||||
|
||||
response.write "<br><br><br><font color=blue>-- <20><><EFBFBD><EFBFBD><EFBFBD>Ϸ<EFBFBD> --</font>"
|
||||
'################## <20><><EFBFBD><EFBFBD>ó<EFBFBD><C3B3><EFBFBD><EFBFBD> ######################################################################
|
||||
|
||||
|
||||
case "single" '-- <20><><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>
|
||||
|
||||
|
||||
response.write "d_no:"& d_no&"<br>"
|
||||
response.write "hangmok:"& hangmok&"<br>"
|
||||
response.write "sebu:"& sebu&"<br>"
|
||||
response.write "expence_company:"& expence_company&"<br>"
|
||||
response.write "expence_date:"& expence_date&"<br>"
|
||||
response.write "payment_date:"& payment_date&"<br>"
|
||||
response.write "expence_way:"& expence_way&"<br>"
|
||||
|
||||
|
||||
response.write "expence_money"&"<br>"
|
||||
response.write request.form("expence_money")&"<br>"
|
||||
|
||||
response.write "expence_vat"&"<br>"
|
||||
response.write request.form("expence_vat")&"<br>"
|
||||
|
||||
|
||||
response.write "expence_sum"&"<br>"
|
||||
response.write request.form("expence_sum")&"<br>"
|
||||
|
||||
response.write "expence_num"&"<br>"
|
||||
response.write request.form("expence_num")&"<br>"
|
||||
|
||||
response.write "expence_reason"&"<br>"
|
||||
response.write request.form("expence_reason")&"<br>"
|
||||
|
||||
|
||||
response.write "minus_expence_reason"&"<br>"
|
||||
response.write request.form("minus_expence_reason")&"<br>"
|
||||
|
||||
|
||||
'################## <20><><EFBFBD><EFBFBD>ó<EFBFBD><C3B3><EFBFBD><EFBFBD> ######################################################################
|
||||
|
||||
'--(1)
|
||||
sql=""
|
||||
sql = sql & " update direct_cost set "
|
||||
sql = sql & " act_money = "
|
||||
sql = sql & " ( "
|
||||
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>ȣ = '"&d_no&"') "
|
||||
sql = sql & " and hangmok = (select CAST(target11 AS varchar(100)) from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&d_no&"') "
|
||||
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>ȣ = '"&d_no&"') "
|
||||
sql = sql & " ) - (select CAST(CAST(target5 AS varchar(100)) AS money) from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&d_no&"'), "
|
||||
sql = sql & " cha_money = "
|
||||
sql = sql & " ( "
|
||||
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>ȣ = '"&d_no&"') "
|
||||
sql = sql & " and hangmok = (select CAST(target11 AS varchar(100)) from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&d_no&"') "
|
||||
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>ȣ = '"&d_no&"') "
|
||||
sql = sql & " ) - (select CAST(CAST(target5 AS varchar(100)) AS money) from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&d_no&"') "
|
||||
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>ȣ = '"&d_no&"') "
|
||||
sql = sql & " and hangmok = (select CAST(target11 AS varchar(100)) from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&d_no&"') "
|
||||
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>ȣ = '"&d_no&"') "
|
||||
adoconn.execute sql
|
||||
'--(2)
|
||||
sql=""
|
||||
sql=sql&" update <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> set "
|
||||
sql=sql&" target2='"&fnc_rp(request.form("expence_reason"),"2")&"' " '-- <20><><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD>)
|
||||
sql=sql&" ,target3='"&expence_date&"' " '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
sql=sql&" ,target4='"&expence_way&"' " '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
sql=sql&" ,target5='"&fnc_rp(request.form("expence_money"),"1")&"' " '-- <20><><EFBFBD>ް<EFBFBD><DEB0><EFBFBD>
|
||||
sql=sql&" ,target6='"&request.form("expence_vat")&"' " '-- vat
|
||||
sql=sql&" ,target7='"&request.form("expence_sum")&"' " '-- <20><><EFBFBD>ް<EFBFBD><DEB0><EFBFBD> + vat
|
||||
sql=sql&" ,target8='"&fnc_rp(expence_company,"2")&"' " '-- <20>ŷ<EFBFBD>ó
|
||||
if hangmok<>"" and sebu<>"" then
|
||||
sql=sql&" ,target11='"&fnc_rp(hangmok,"1")&"' " '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
sql=sql&" ,target12='"&fnc_rp(sebu,"1")&"' " '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
end if
|
||||
sql=sql&" ,target15=convert(varchar(20), convert(bigint, convert(varchar(20), target15))+convert(bigint, replace(convert(varchar(20), target5),',',''))-"&fnc_rp(request.form("expence_money"),"1")&") " '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ܾ<EFBFBD>
|
||||
sql=sql&" ,target17='"&fnc_rp(request.form("minus_expence_reason"),"2")&"' " '-- <20>߰<EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
sql=sql&" ,target18='"&request.form("expence_num")&"' " '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ
|
||||
sql=sql&" ,remark19='"&payment_date&"' " '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
sql=sql&" where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ='"&d_no&"' " '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ
|
||||
sql=sql&" and del_yes_no='no' "
|
||||
|
||||
adoconn.execute sql
|
||||
|
||||
'--(3)
|
||||
sql=""
|
||||
sql = sql & " update direct_cost set "
|
||||
sql = sql & " act_money = "
|
||||
sql = sql & " ( "
|
||||
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>ȣ = '"&d_no&"') "
|
||||
sql = sql & " and hangmok = (select CAST(target11 AS varchar(100)) from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&d_no&"') "
|
||||
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>ȣ = '"&d_no&"') "
|
||||
sql = sql & " ) + (select CAST(CAST(target5 AS varchar(100)) AS money) from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&d_no&"'), "
|
||||
sql = sql & " cha_money = "
|
||||
sql = sql & " ( "
|
||||
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>ȣ = '"&d_no&"') "
|
||||
sql = sql & " and hangmok = (select CAST(target11 AS varchar(100)) from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&d_no&"') "
|
||||
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>ȣ = '"&d_no&"') "
|
||||
sql = sql & " ) + (select CAST(CAST(target5 AS varchar(100)) AS money) from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&d_no&"') "
|
||||
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>ȣ = '"&d_no&"') "
|
||||
sql = sql & " and hangmok = (select CAST(target11 AS varchar(100)) from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&d_no&"') "
|
||||
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>ȣ = '"&d_no&"') "
|
||||
adoconn.execute sql, i
|
||||
|
||||
if i = 0 then
|
||||
sql = ""
|
||||
sql = sql & " insert into direct_cost ("
|
||||
sql = sql & " p_sn, krc_no, p_subject, hangmok, sebu, "
|
||||
sql = sql & " act_money, cha_money, "
|
||||
sql = sql & " modify_date, modify_time, modify_user, modify_user_code, modify_ip, write_count,p_subject_group, p_sn_group, cost_type, p_child_sn"
|
||||
sql = sql & " ) values ("
|
||||
sql = sql & "(select CAST(target10 AS varchar(7)) from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&d_no&"'), "
|
||||
sql = sql & "'" & d_no & "', "
|
||||
sql = sql & "(select CAST(target1 AS varchar(500)) from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&d_no&"'), "
|
||||
sql = sql & "'" & hangmok & "', "
|
||||
sql = sql & "(select d_cost_name from direct_costcode where id = '" & sebu & "'), "
|
||||
sql = sql & "'" & request.form("expence_money") & "', "
|
||||
sql = sql & "'" & request.form("expence_money") & "', "
|
||||
sql = sql & "'" & date() & "',"
|
||||
sql = sql & "'" & time() & "',"
|
||||
sql = sql & "'" & session("loginuser") & "', "
|
||||
sql = sql & "'" & session("user_number") & "', "
|
||||
sql = sql & "'" & Request.ServerVariables("REMOTE_HOST") & "', "
|
||||
sql = sql & "'" & 1 & "', "
|
||||
sql = sql & "'', "
|
||||
sql = sql & "'', "
|
||||
sql = sql & "(select d_cost_kind from direct_costcode where id = '" & sebu & "'), "
|
||||
sql = sql & "(select CAST(target10 AS varchar(100)) from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&d_no&"'))"
|
||||
response.write sql
|
||||
adoconn.execute sql
|
||||
end if
|
||||
|
||||
response.write "<br><br><br><font color=blue>-- <20><><EFBFBD><EFBFBD><EFBFBD>Ϸ<EFBFBD> --</font>"
|
||||
'################## <20><><EFBFBD><EFBFBD>ó<EFBFBD><C3B3><EFBFBD><EFBFBD> ######################################################################
|
||||
end select
|
||||
|
||||
%>
|
||||
<%
|
||||
|
||||
'-- replace(<28><><EFBFBD><EFBFBD>)
|
||||
function fnc_rp(mo,mo_type)
|
||||
|
||||
dim xval : xval=mo
|
||||
|
||||
select case mo_type
|
||||
case "1" '-- <20><><EFBFBD><EFBFBD>
|
||||
xval=replace(xval,",","")
|
||||
xval=replace(replace(xval,"'",""),"""","")
|
||||
xval=replace(replace(xval," ","")," ","")
|
||||
case "2" '-- <20><><EFBFBD><EFBFBD>
|
||||
xval=replace(replace(xval,"'",""),"""","")
|
||||
xval=replace(replace(xval," "," ")," ","")
|
||||
end select
|
||||
|
||||
fnc_rp=xval
|
||||
|
||||
end function
|
||||
|
||||
|
||||
%>
|
||||
<%
|
||||
'---------------------------------------------
|
||||
'-- sql <20>ڷ<EFBFBD>
|
||||
'-- USE [project2]
|
||||
|
||||
'-- select * from Document
|
||||
'-- where d_no='KRC-2017-A-00221'
|
||||
|
||||
'-- select * from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
'-- where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ='KRC-2017-A-00221'
|
||||
|
||||
'-- select * from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_log
|
||||
'-- where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ='KRC-2017-A-00221'
|
||||
|
||||
'-- select * from direct_cost
|
||||
'-- where krc_no='KRC-2017-A-00221'
|
||||
|
||||
'---------------------------------------------
|
||||
%>
|
||||
</html>
|
||||
<head>
|
||||
<meta http-equiv="Expires" content="Mon, 06 Jan 1990 00:00:01 GMT">
|
||||
<meta http-equiv="Expires" content="-1">
|
||||
<meta http-equiv="Pragma" content="no-cache">
|
||||
<meta http-equiv="Cache-Control" content="no-cache">
|
||||
|
||||
<meta http-equiv="Content-Language" content="ko">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no,target-densitydpi=medium-dpi"/>
|
||||
<title><%=GNB_TITLE%></title>
|
||||
</head>
|
||||
<script language="javascript">
|
||||
function js_init(x,next_page){
|
||||
alert("<22><><EFBFBD><EFBFBD> <20>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD> ");
|
||||
if(next_page!=""){
|
||||
x.target="";
|
||||
x.action=next_page;
|
||||
x.submit();
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<body oncontextmenu="return false;" onload="javascript:js_init(kform,'<%=request.form("topage")%>');" >
|
||||
<form name="kform" method="post">
|
||||
<input type="hidden" name="d_no" value="<%=request.form("d_no")%>" >
|
||||
<input type="hidden" name="view_chk" value="1" ><!-- default(1) -->
|
||||
<input type="hidden" name="x" value="<%=request.form("x")%>" >
|
||||
<input type="hidden" name="title_type" value="<%=request.form("title_type")%>" >
|
||||
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
743
ess/doc_expense_editok.asp_250908_cns
Normal file
743
ess/doc_expense_editok.asp_250908_cns
Normal file
@@ -0,0 +1,743 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<OBJECT RUNAT=Server PROGID=ADODB.Recordset id=rsp></OBJECT>
|
||||
<%
|
||||
|
||||
dim sql, objdb
|
||||
dim edit_mode : edit_mode=request.form("edit_mode") '-- <20><><EFBFBD><EFBFBD>Ÿ<EFBFBD><C5B8>
|
||||
|
||||
dim d_no
|
||||
dim hangmok
|
||||
dim sebu
|
||||
dim expence_company
|
||||
dim expence_date
|
||||
dim expence_way
|
||||
dim minus_expence_reason
|
||||
dim tmp_date_edit
|
||||
dim h
|
||||
|
||||
tmp_date_edit=request.form("tmp_date_edit")
|
||||
hangmok=request.form("hangmok")
|
||||
sebu=request.form("sebu")
|
||||
expence_date=request.form("expence_date")
|
||||
expence_way=request.form("expence_way")
|
||||
expence_company=request.form("expence_company")
|
||||
d_no=request.form("d_no")
|
||||
response.write "<br>"
|
||||
|
||||
select case edit_mode
|
||||
case "mult" '-- <20><>Ƽ<EFBFBD><C6BC><EFBFBD><EFBFBD>
|
||||
response.write "(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)tmp_date_edit:"& tmp_date_edit&"<br>"
|
||||
response.write "d_no:"& d_no&"<br>"
|
||||
response.write "hangmok:"& hangmok&"<br>"
|
||||
response.write "sebu:"& sebu&"<br>"
|
||||
response.write "expence_company:"& expence_company&"<br>"
|
||||
response.write "expence_date:"& expence_date&"<br>"
|
||||
response.write "expence_way:"& expence_way&"<br>"
|
||||
|
||||
|
||||
response.write "<22><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD>(ex_account)<br>"
|
||||
for h=1 to request.form("ex_account").count
|
||||
response.write request.form("ex_account")(h)&"<br>"
|
||||
next
|
||||
|
||||
'-- <20><><EFBFBD>ް<EFBFBD><DEB0><EFBFBD>
|
||||
dim tmp_sql : tmp_sql=""
|
||||
dim expence_money_sum : expence_money_sum=0
|
||||
response.write "expence_money"&"<br>"
|
||||
for h=1 to request.form("expence_money").count
|
||||
response.write request.form("expence_money")(h)&"<br>"
|
||||
expence_money_sum=cdbl(fnc_rp(expence_money_sum,"1"))+cdbl(fnc_rp(request.form("expence_money")(h),"1"))
|
||||
'-- tmp_sql
|
||||
tmp_sql=tmp_sql&", target"& (h+20) &"='"&h&"^^"&fnc_rp(request.form("ex_account")(h),"2")&"^//^"&fnc_rp(request.form("expence_money")(h),"2")&"^//^"&fnc_rp(request.form("expence_vat")(h),"2")&"^//^"&fnc_rp(request.form("expence_sum")(h),"2")&"^//^"&fnc_rp(replace(request.form("expence_reason")(h),chr(13)&chr(10),"<br>"),"2")&"^//^' "
|
||||
next
|
||||
|
||||
'-- <20>ΰ<EFBFBD><CEB0><EFBFBD>
|
||||
dim expence_vat_sum : expence_vat_sum=0
|
||||
response.write "expence_vat"&"<br>"
|
||||
for h=1 to request.form("expence_vat").count
|
||||
response.write request.form("expence_vat")(h)&"<br>"
|
||||
expence_vat_sum=cdbl(fnc_rp(expence_vat_sum,"1"))+cdbl(fnc_rp(request.form("expence_vat")(h),"1"))
|
||||
next
|
||||
|
||||
|
||||
response.write "expence_sum"&"<br>"
|
||||
for h=1 to request.form("expence_sum").count
|
||||
response.write request.form("expence_sum")(h)&"<br>"
|
||||
next
|
||||
|
||||
response.write "expence_reason"&"<br>"
|
||||
for h=1 to request.form("expence_reason").count
|
||||
response.write request.form("expence_reason")(h)&"<br>"
|
||||
next
|
||||
|
||||
'################## <20><><EFBFBD><EFBFBD>ó<EFBFBD><C3B3><EFBFBD><EFBFBD> ######################################################################
|
||||
'--(1)
|
||||
sql = " "
|
||||
sql = sql & " update direct_cost "
|
||||
sql = sql & " set direct_cost.act_money = direct_cost.act_money - B.cost, direct_cost.cha_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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
|
||||
|
||||
'--(2)
|
||||
sql=""
|
||||
sql=sql&" update <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> set "
|
||||
sql=sql&" target3='"&expence_date&"' " '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
'-- sql=sql&" ,<2C>߱<EFBFBD><DFB1><EFBFBD>='"&tmp_date_edit&"' " '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
|
||||
sql=sql&" ,target4='"&expence_way&"' " '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
sql=sql&" ,target5='"&expence_money_sum&"' " '-- <20><><EFBFBD>ް<EFBFBD><DEB0><EFBFBD> <20>ջ<EFBFBD>
|
||||
sql=sql&" ,target6='"&expence_vat_sum&"' " '-- vat <20>ջ<EFBFBD>
|
||||
sql=sql&" ,target7='"&cdbl(expence_money_sum)+cdbl(expence_vat_sum)&"' " '-- <20><><EFBFBD>ް<EFBFBD><DEB0><EFBFBD> <20>ջ<EFBFBD> + vat <20>ջ<EFBFBD>
|
||||
sql=sql&" ,target8='"&fnc_rp(expence_company,"2")&"' " '-- <20>ŷ<EFBFBD>ó
|
||||
if hangmok<>"" and sebu<>"" then
|
||||
sql=sql&" ,target11='"&fnc_rp(hangmok,"1")&"' " '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
sql=sql&" ,target12='"&fnc_rp(sebu,"1")&"' " '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
end if
|
||||
sql=sql&tmp_sql ' -- <20><><EFBFBD>⳻<EFBFBD><E2B3BB>21~50<35><30><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
sql=sql&" where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ='"&d_no&"' " '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ
|
||||
sql=sql&" and del_yes_no='no' "
|
||||
adoconn.execute sql
|
||||
|
||||
'--(3)
|
||||
sql = " "
|
||||
sql = sql & " update direct_cost "
|
||||
sql = sql & " set direct_cost.act_money = direct_cost.act_money + B.cost, direct_cost.cha_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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 money) 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>ȣ = '"&d_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
|
||||
|
||||
response.write "<br><br><br><font color=blue>-- <20><><EFBFBD><EFBFBD><EFBFBD>Ϸ<EFBFBD> --</font>"
|
||||
'################## <20><><EFBFBD><EFBFBD>ó<EFBFBD><C3B3><EFBFBD><EFBFBD> ######################################################################
|
||||
|
||||
|
||||
case "single" '-- <20><><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>
|
||||
|
||||
|
||||
response.write "d_no:"& d_no&"<br>"
|
||||
response.write "hangmok:"& hangmok&"<br>"
|
||||
response.write "sebu:"& sebu&"<br>"
|
||||
response.write "expence_company:"& expence_company&"<br>"
|
||||
response.write "expence_date:"& expence_date&"<br>"
|
||||
response.write "expence_way:"& expence_way&"<br>"
|
||||
|
||||
|
||||
response.write "expence_money"&"<br>"
|
||||
response.write request.form("expence_money")&"<br>"
|
||||
|
||||
response.write "expence_vat"&"<br>"
|
||||
response.write request.form("expence_vat")&"<br>"
|
||||
|
||||
|
||||
response.write "expence_sum"&"<br>"
|
||||
response.write request.form("expence_sum")&"<br>"
|
||||
|
||||
response.write "expence_num"&"<br>"
|
||||
response.write request.form("expence_num")&"<br>"
|
||||
|
||||
response.write "expence_reason"&"<br>"
|
||||
response.write request.form("expence_reason")&"<br>"
|
||||
|
||||
|
||||
response.write "minus_expence_reason"&"<br>"
|
||||
response.write request.form("minus_expence_reason")&"<br>"
|
||||
|
||||
|
||||
'################## <20><><EFBFBD><EFBFBD>ó<EFBFBD><C3B3><EFBFBD><EFBFBD> ######################################################################
|
||||
|
||||
'--(1)
|
||||
sql=""
|
||||
sql = sql & " update direct_cost set "
|
||||
sql = sql & " act_money = "
|
||||
sql = sql & " ( "
|
||||
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>ȣ = '"&d_no&"') "
|
||||
sql = sql & " and hangmok = (select CAST(target11 AS varchar(100)) from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&d_no&"') "
|
||||
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>ȣ = '"&d_no&"') "
|
||||
sql = sql & " ) - (select CAST(CAST(target5 AS varchar(100)) AS money) from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&d_no&"'), "
|
||||
sql = sql & " cha_money = "
|
||||
sql = sql & " ( "
|
||||
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>ȣ = '"&d_no&"') "
|
||||
sql = sql & " and hangmok = (select CAST(target11 AS varchar(100)) from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&d_no&"') "
|
||||
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>ȣ = '"&d_no&"') "
|
||||
sql = sql & " ) - (select CAST(CAST(target5 AS varchar(100)) AS money) from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&d_no&"') "
|
||||
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>ȣ = '"&d_no&"') "
|
||||
sql = sql & " and hangmok = (select CAST(target11 AS varchar(100)) from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&d_no&"') "
|
||||
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>ȣ = '"&d_no&"') "
|
||||
adoconn.execute sql
|
||||
'--(2)
|
||||
sql=""
|
||||
sql=sql&" update <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> set "
|
||||
sql=sql&" target2='"&fnc_rp(request.form("expence_reason"),"2")&"' " '-- <20><><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD>)
|
||||
sql=sql&" ,target3='"&expence_date&"' " '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
sql=sql&" ,target4='"&expence_way&"' " '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
sql=sql&" ,target5='"&fnc_rp(request.form("expence_money"),"1")&"' " '-- <20><><EFBFBD>ް<EFBFBD><DEB0><EFBFBD>
|
||||
sql=sql&" ,target6='"&request.form("expence_vat")&"' " '-- vat
|
||||
sql=sql&" ,target7='"&request.form("expence_sum")&"' " '-- <20><><EFBFBD>ް<EFBFBD><DEB0><EFBFBD> + vat
|
||||
sql=sql&" ,target8='"&fnc_rp(expence_company,"2")&"' " '-- <20>ŷ<EFBFBD>ó
|
||||
if hangmok<>"" and sebu<>"" then
|
||||
sql=sql&" ,target11='"&fnc_rp(hangmok,"1")&"' " '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
sql=sql&" ,target12='"&fnc_rp(sebu,"1")&"' " '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
end if
|
||||
sql=sql&" ,target15=convert(varchar(20), convert(bigint, convert(varchar(20), target15))+convert(bigint, replace(convert(varchar(20), target5),',',''))-"&fnc_rp(request.form("expence_money"),"1")&") " '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ܾ<EFBFBD>
|
||||
sql=sql&" ,target17='"&fnc_rp(request.form("minus_expence_reason"),"2")&"' " '-- <20>߰<EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
sql=sql&" ,target18='"&request.form("expence_num")&"' " '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ
|
||||
sql=sql&" where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ='"&d_no&"' " '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ
|
||||
sql=sql&" and del_yes_no='no' "
|
||||
|
||||
adoconn.execute sql
|
||||
|
||||
'--(3)
|
||||
sql=""
|
||||
sql = sql & " update direct_cost set "
|
||||
sql = sql & " act_money = "
|
||||
sql = sql & " ( "
|
||||
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>ȣ = '"&d_no&"') "
|
||||
sql = sql & " and hangmok = (select CAST(target11 AS varchar(100)) from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&d_no&"') "
|
||||
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>ȣ = '"&d_no&"') "
|
||||
sql = sql & " ) + (select CAST(CAST(target5 AS varchar(100)) AS money) from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&d_no&"'), "
|
||||
sql = sql & " cha_money = "
|
||||
sql = sql & " ( "
|
||||
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>ȣ = '"&d_no&"') "
|
||||
sql = sql & " and hangmok = (select CAST(target11 AS varchar(100)) from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&d_no&"') "
|
||||
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>ȣ = '"&d_no&"') "
|
||||
sql = sql & " ) + (select CAST(CAST(target5 AS varchar(100)) AS money) from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&d_no&"') "
|
||||
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>ȣ = '"&d_no&"') "
|
||||
sql = sql & " and hangmok = (select CAST(target11 AS varchar(100)) from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&d_no&"') "
|
||||
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>ȣ = '"&d_no&"') "
|
||||
adoconn.execute sql, i
|
||||
|
||||
if i = 0 then
|
||||
sql = ""
|
||||
sql = sql & " insert into direct_cost ("
|
||||
sql = sql & " p_sn, krc_no, p_subject, hangmok, sebu, "
|
||||
sql = sql & " act_money, cha_money, "
|
||||
sql = sql & " modify_date, modify_time, modify_user, modify_user_code, modify_ip, write_count,p_subject_group, p_sn_group, cost_type, p_child_sn"
|
||||
sql = sql & " ) values ("
|
||||
sql = sql & "(select CAST(target10 AS varchar(7)) from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&d_no&"'), "
|
||||
sql = sql & "'" & d_no & "', "
|
||||
sql = sql & "(select CAST(target1 AS varchar(500)) from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&d_no&"'), "
|
||||
sql = sql & "'" & hangmok & "', "
|
||||
sql = sql & "(select d_cost_name from direct_costcode where id = '" & sebu & "'), "
|
||||
sql = sql & "'" & request.form("expence_money") & "', "
|
||||
sql = sql & "'" & request.form("expence_money") & "', "
|
||||
sql = sql & "'" & date() & "',"
|
||||
sql = sql & "'" & time() & "',"
|
||||
sql = sql & "'" & session("loginuser") & "', "
|
||||
sql = sql & "'" & session("user_number") & "', "
|
||||
sql = sql & "'" & Request.ServerVariables("REMOTE_HOST") & "', "
|
||||
sql = sql & "'" & 1 & "', "
|
||||
sql = sql & "'', "
|
||||
sql = sql & "'', "
|
||||
sql = sql & "(select d_cost_kind from direct_costcode where id = '" & sebu & "'), "
|
||||
sql = sql & "(select CAST(target10 AS varchar(100)) from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&d_no&"'))"
|
||||
response.write sql
|
||||
adoconn.execute sql
|
||||
end if
|
||||
|
||||
response.write "<br><br><br><font color=blue>-- <20><><EFBFBD><EFBFBD><EFBFBD>Ϸ<EFBFBD> --</font>"
|
||||
'################## <20><><EFBFBD><EFBFBD>ó<EFBFBD><C3B3><EFBFBD><EFBFBD> ######################################################################
|
||||
end select
|
||||
|
||||
%>
|
||||
<%
|
||||
|
||||
'-- replace(<28><><EFBFBD><EFBFBD>)
|
||||
function fnc_rp(mo,mo_type)
|
||||
|
||||
dim xval : xval=mo
|
||||
|
||||
select case mo_type
|
||||
case "1" '-- <20><><EFBFBD><EFBFBD>
|
||||
xval=replace(xval,",","")
|
||||
xval=replace(replace(xval,"'",""),"""","")
|
||||
xval=replace(replace(xval," ","")," ","")
|
||||
case "2" '-- <20><><EFBFBD><EFBFBD>
|
||||
xval=replace(replace(xval,"'",""),"""","")
|
||||
xval=replace(replace(xval," "," ")," ","")
|
||||
end select
|
||||
|
||||
fnc_rp=xval
|
||||
|
||||
end function
|
||||
|
||||
|
||||
%>
|
||||
<%
|
||||
'---------------------------------------------
|
||||
'-- sql <20>ڷ<EFBFBD>
|
||||
'-- USE [project2]
|
||||
|
||||
'-- select * from Document
|
||||
'-- where d_no='KRC-2017-A-00221'
|
||||
|
||||
'-- select * from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
'-- where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ='KRC-2017-A-00221'
|
||||
|
||||
'-- select * from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_log
|
||||
'-- where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ='KRC-2017-A-00221'
|
||||
|
||||
'-- select * from direct_cost
|
||||
'-- where krc_no='KRC-2017-A-00221'
|
||||
|
||||
'---------------------------------------------
|
||||
%>
|
||||
</html>
|
||||
<head>
|
||||
<meta http-equiv="Expires" content="Mon, 06 Jan 1990 00:00:01 GMT">
|
||||
<meta http-equiv="Expires" content="-1">
|
||||
<meta http-equiv="Pragma" content="no-cache">
|
||||
<meta http-equiv="Cache-Control" content="no-cache">
|
||||
|
||||
<meta http-equiv="Content-Language" content="ko">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no,target-densitydpi=medium-dpi"/>
|
||||
<title><%=GNB_TITLE%></title>
|
||||
</head>
|
||||
<script language="javascript">
|
||||
function js_init(x,next_page){
|
||||
alert("<22><><EFBFBD><EFBFBD> <20>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD> ");
|
||||
if(next_page!=""){
|
||||
x.target="";
|
||||
x.action=next_page;
|
||||
x.submit();
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<body oncontextmenu="return false;" onload="javascript:js_init(kform,'<%=request.form("topage")%>');" >
|
||||
<form name="kform" method="post">
|
||||
<input type="hidden" name="d_no" value="<%=request.form("d_no")%>" >
|
||||
<input type="hidden" name="view_chk" value="1" ><!-- default(1) -->
|
||||
<input type="hidden" name="x" value="<%=request.form("x")%>" >
|
||||
<input type="hidden" name="title_type" value="<%=request.form("title_type")%>" >
|
||||
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
555
ess/doc_expense_print.asp
Normal file
555
ess/doc_expense_print.asp
Normal file
@@ -0,0 +1,555 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
''//=====================
|
||||
''//=====================
|
||||
''2013<31><33> 9<><39> 27<32><37><EFBFBD>ڷ<EFBFBD>
|
||||
' <20><><EFBFBD><EFBFBD> <20><><EFBFBD>Ǽ<EFBFBD><C7BC><EFBFBD> <20>Աݰ<D4B1><DDB0>Ǽ<EFBFBD><C7BC><EFBFBD> <20>߰<EFBFBD><DFB0>Ͽ<EFBFBD> 2<><32><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>α<CEB1><D7B7><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
'' <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> titie<69><65> title_type<70><65> <20><><EFBFBD><EFBFBD>
|
||||
''//=====================
|
||||
''//=====================
|
||||
|
||||
|
||||
|
||||
dim tmpstr
|
||||
dim Query
|
||||
dim i
|
||||
dim user_name(4) '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,0:<3A><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD>, 1:<3A≯<EFBFBD>,2:<3A><><EFBFBD><EFBFBD>,3:<3A><>ȭ<EFBFBD><C8AD>ȣ, 4:<3A>μ<EFBFBD><CEBC>ڵ<EFBFBD>(<28><>)
|
||||
dim Max_Width
|
||||
dim title
|
||||
dim target_name '<27>߱<DFB1><DEB4><EFBFBD><EFBFBD><EFBFBD> <20≯<EFBFBD>
|
||||
dim Curr_date '<27><><EFBFBD>ó<EFBFBD>¥
|
||||
dim Company(6)
|
||||
dim Gap(10) '1:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ<EFBFBD>, 2:<3A><><EFBFBD><EFBFBD>(<28>Ա<EFBFBD>)<29><><EFBFBD><EFBFBD>, 3:<3A><><EFBFBD><EFBFBD>(<28>Ա<EFBFBD>)<29><><EFBFBD><EFBFBD>, 4:<3A><><EFBFBD><EFBFBD>(<28>Ա<EFBFBD>)<29><><EFBFBD><EFBFBD>, 5:<3A><><EFBFBD>ް<EFBFBD><DEB0><EFBFBD>, 6:<3A>ΰ<EFBFBD><CEB0><EFBFBD><EFBFBD><EFBFBD>, 7:<3A>Ѿ<EFBFBD>, 8:<3A>ŷ<EFBFBD>ó, 9:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ<EFBFBD>, 10:ǰ<>Ǽ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ
|
||||
dim krc_no
|
||||
dim print_type '1:<3A><><EFBFBD><EFBFBD>, 2:<3A><>¥<EFBFBD><C2A5><EFBFBD><EFBFBD>Ʈ
|
||||
dim db_table_name
|
||||
dim title_type
|
||||
|
||||
d_no = request("d_no")
|
||||
x = request("x")
|
||||
krc_no = d_no
|
||||
print_type = request("print_type")
|
||||
view_chk= request("view_chk")
|
||||
|
||||
db_table_name = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
if mid(krc_no, 10,1) = "i" then
|
||||
title="<22><> <20><> <20><> <20><> <20><>"
|
||||
else ' mid(krc_no, 10,1) = "S"
|
||||
title="<22><> <20><> <20><> <20><> <20><>"
|
||||
end if
|
||||
title_type = mid(replace(title," ",""), 1, 2)
|
||||
|
||||
|
||||
Max_Width =750
|
||||
Curr_date = year(date) & "<22><> " & zeroformat(month(date),2) & "<22><> " & zeroformat(day(date),2) & "<22><>"
|
||||
|
||||
|
||||
|
||||
''//==========================================
|
||||
''2010<31><30> 3<><33> 3<><33>
|
||||
'''<27>μ<CEBC><E2BFA9> ǥ<><C7A5>
|
||||
if print_type = "2" then
|
||||
query = "update <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> set print_chk = 'Yes', print_cnt = print_cnt + 1 where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ='" & d_no & "' "
|
||||
adoConn.Execute query
|
||||
end if
|
||||
|
||||
|
||||
query = "SELECT * "
|
||||
query = query & "FROM <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> as a "
|
||||
query = query & " INNER JOIN Document as b on a.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = b.d_no "
|
||||
query = query & "WHERE a.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ='" & d_no & "' "
|
||||
if x = "99" then
|
||||
else
|
||||
if session("admin_ip") = Request.ServerVariables("remote_host") then
|
||||
else
|
||||
query = query & " AND b.d_delok = 'N' "
|
||||
end if
|
||||
end if
|
||||
|
||||
rsc.Open query, adoConn, 1
|
||||
if rsc.RecordCount > 0 then
|
||||
|
||||
tmp_date = split(rsc("d_write_date"), "-")
|
||||
Curr_date = tmp_date(0) & "<22><> " & tmp_date(1) & "<22><> " & tmp_date(2) & "<22><>"
|
||||
|
||||
tmp_0 = split(rsc("target97"), "^^")
|
||||
user_name(0) = rsc("login_p_no") '<27><><EFBFBD><EFBFBD>
|
||||
user_name(1) = tmp_0(0) '<27≯<EFBFBD>
|
||||
user_name(2) = tmp_0(1) '<27><><EFBFBD><EFBFBD> <20>ڵ<EFBFBD>
|
||||
user_name(3) = tmp_0(2) '<27><><EFBFBD><EFBFBD> <20><>ȭ
|
||||
user_name(4) = tmp_0(3) '<27>μ<EFBFBD><CEBC>ڵ<EFBFBD>
|
||||
|
||||
tmp_00 = split(rsc("target98"), "^^")
|
||||
Company(1) = tmp_00(0)
|
||||
Company(2) = tmp_00(1)
|
||||
Company(3) = tmp_00(2)
|
||||
Company(4) = tmp_00(3)
|
||||
Company(5) = tmp_00(4)
|
||||
Company(6) = tmp_00(5)
|
||||
|
||||
|
||||
|
||||
tmp_7 = split(rsc("target99"), "^^")
|
||||
tmp_8 = split(rsc("target100"), "^^")
|
||||
|
||||
if instr(1,tmp_7(0), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt1 = tmp_7(0)
|
||||
elseif instr(1,tmp_7(0), "<BR>") then
|
||||
tmp_t1 = split(tmp_7(0), "<BR>")
|
||||
tmp_txt1 = "<img src='/images/sign/" & tmp_t1(0) & "_" & tmp_t1(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt1 = tmp_7(0)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(1), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt2 = tmp_7(1)
|
||||
elseif instr(1,tmp_7(1), "<BR>") then
|
||||
tmp_t2 = split(tmp_7(1), "<BR>")
|
||||
tmp_txt2 = "<img src='/images/sign/" & tmp_t2(0) & "_" & tmp_t2(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt2 = tmp_7(1)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(2), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt3 = tmp_7(2)
|
||||
elseif instr(1,tmp_7(2), "<BR>") then
|
||||
tmp_t3 = split(tmp_7(2), "<BR>")
|
||||
tmp_txt3 = "<img src='/images/sign/" & tmp_t3(0) & "_" & tmp_t3(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt3 = tmp_7(2)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(3), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt4 = tmp_7(3)
|
||||
elseif instr(1,tmp_7(3), "<BR>") then
|
||||
tmp_t4 = split(tmp_7(3), "<BR>")
|
||||
tmp_txt4 = "<img src='/images/sign/" & tmp_t4(0) & "_" & tmp_t4(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt4 = tmp_7(3)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(4), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt5 = tmp_7(4)
|
||||
elseif instr(1,tmp_7(4), "<BR>") then
|
||||
tmp_t5 = split(tmp_7(4), "<BR>")
|
||||
tmp_txt5 = "<img src='/images/sign/" & tmp_t5(0) & "_" & tmp_t5(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt5 = tmp_7(4)
|
||||
end if
|
||||
|
||||
|
||||
tmp_txt6 = tmp_8(0)
|
||||
tmp_txt7 = tmp_8(1)
|
||||
tmp_txt8 = tmp_8(2)
|
||||
tmp_txt9 = tmp_8(3)
|
||||
tmp_txt10 = tmp_8(4)
|
||||
|
||||
gap(1) = rsc("target1")
|
||||
gap(2) = rsc("target2")
|
||||
gap(3) = rsc("target3")
|
||||
gap(4) = rsc("target4")
|
||||
gap(5) = rsc("target5")
|
||||
gap(6) = rsc("target6")
|
||||
gap(7) = rsc("target7")
|
||||
gap(8) = rsc("target8")
|
||||
gap(9) = rsc("p_sn")
|
||||
gap(10) = rsc("target9")
|
||||
|
||||
d_order_cnt = int(rsc("d_order_cnt"))
|
||||
|
||||
print_type = request("print_type")
|
||||
|
||||
''<27><><EFBFBD>ڸ<EFBFBD> '-'<27><><EFBFBD><EFBFBD> <20><>,<2C><><EFBFBD><EFBFBD> <20><>ü
|
||||
gap(3) = mid(gap(3),1,4) & "<22><> " & mid(gap(3),6,2) & "<22><> " & mid(gap(3),9,2) & "<22><>"
|
||||
for i=1 to 9
|
||||
if trim(gap(i)) = "" then
|
||||
gap(i) = " "
|
||||
end if
|
||||
next
|
||||
for i=5 to 7
|
||||
if gap(i) = " " then
|
||||
gap(i) = "0"
|
||||
end if
|
||||
next
|
||||
|
||||
|
||||
''<27>α<EFBFBD><CEB1><EFBFBD><EFBFBD><EFBFBD>
|
||||
query = "insert into " & db_table_name & "_log (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_p_no, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_<EFBFBD≯<EFBFBD>, <20><><EFBFBD><EFBFBD>,"
|
||||
query = query & " <20>߱<EFBFBD><DFB1><EFBFBD>, <20>߱ð<DEBD>, <20>߱<EFBFBD><DFB1><EFBFBD>_p_no, <20>߱<EFBFBD><DFB1><EFBFBD>_<EFBFBD≯<EFBFBD>, <20>߱<EFBFBD><DFB1><EFBFBD>_ip) values ( "
|
||||
query = query & "'" & krc_no & "', "
|
||||
query = query & "'" & replace(title, " ", "") & "', "
|
||||
query = query & "'" & Session("User_Number") & "', "
|
||||
query = query & "'" & Session("loginuser") & "', "
|
||||
query = query & "'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>', "
|
||||
query = query & "'" & year(date) & "-" & zeroformat(month(date),2) & "-" & zeroformat(day(date),2) & "', "
|
||||
query = query & "'" & time() & "', "
|
||||
query = query & "'" & user_name(0) & "', "
|
||||
query = query & "'" & user_name(1) & "', "
|
||||
query = query & "'" & Session("USERIP") & "')"
|
||||
|
||||
if Request.ServerVariables("REMOTE_ADDr") = session("admin_ip") then
|
||||
else
|
||||
adoconn.execute query
|
||||
end if
|
||||
|
||||
%>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title><%=GNB_TITLE%></title>
|
||||
<link rel="stylesheet" type="text/css" href="/css/basic.css">
|
||||
</head>
|
||||
|
||||
<script language=javascript>
|
||||
function win_close()
|
||||
{
|
||||
window.close();
|
||||
}
|
||||
function win_print()
|
||||
{
|
||||
var txt_prj_name = document.ess.txt_prj_name.value;
|
||||
var txt_pay_target = document.ess.txt_pay_target.value;
|
||||
var txt_date = document.ess.txt_date.value;
|
||||
var sel_pay_type = document.ess.sel_pay_type.value;
|
||||
var txt_pay = document.ess.txt_pay.value;
|
||||
var txt_pay_vat = document.ess.txt_pay_vat.value;
|
||||
var txt_pay_tot = document.ess.txt_pay_tot.value;
|
||||
var txt_client = document.ess.txt_client.value;
|
||||
var txt_p_sn = document.ess.txt_p_sn.value;
|
||||
<%
|
||||
if tmp_admin_chk = "1" then
|
||||
%>
|
||||
var txt_d_no = document.ess.txt_d_no.value;
|
||||
<%
|
||||
end if
|
||||
%>
|
||||
|
||||
var url = "doc_expense_print.asp"
|
||||
url = url + "?txt_prj_name=" + txt_prj_name;
|
||||
url = url + "&txt_pay_target=" + txt_pay_target;
|
||||
url = url + "&txt_date=" + txt_date;
|
||||
url = url + "&sel_pay_type=" + sel_pay_type;
|
||||
url = url + "&txt_pay=" + txt_pay;
|
||||
url = url + "&txt_pay_vat=" + txt_pay_vat;
|
||||
url = url + "&txt_pay_tot=" + txt_pay_tot;
|
||||
url = url + "&txt_client=" + txt_client;
|
||||
url = url + "&print_type=2";
|
||||
url = url + "&txt_p_sn=" + txt_p_sn;
|
||||
<%
|
||||
if tmp_admin_chk = "1" then
|
||||
%>
|
||||
url = url + "&txt_d_no=" + txt_d_no;
|
||||
<%
|
||||
end if
|
||||
%>
|
||||
document.ess.action=url;
|
||||
document.ess.submit();
|
||||
}
|
||||
|
||||
|
||||
|
||||
function print_ie()
|
||||
{
|
||||
|
||||
//
|
||||
if(navigator.userAgent.toLowerCase().indexOf('chrome') > -1){ // Chrome Browser Detected?
|
||||
window.PPClose = false; // Clear Close Flag
|
||||
window.onbeforeunload = function(){ // Before Window Close Event
|
||||
if(window.PPClose === false){ // Close not OK?
|
||||
return 'Leaving this page will block the parent window!\nPlease select "Stay on this Page option" and use the\nCancel button instead to close the Print Preview Window.\n';
|
||||
}
|
||||
}
|
||||
window.print(); // Print preview
|
||||
window.PPClose = true; // Set Close Flag to OK.
|
||||
}else{
|
||||
window.print();
|
||||
window.close();
|
||||
}
|
||||
}
|
||||
|
||||
function clsit()
|
||||
{
|
||||
alert('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>û <20>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>');
|
||||
self.close();
|
||||
}
|
||||
|
||||
function subit(a, b)
|
||||
{
|
||||
var tmp_txt;
|
||||
var approve_pass;
|
||||
|
||||
if (a == 1)
|
||||
{
|
||||
tmp_txt = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ";
|
||||
approve_pass = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
tmp_txt = "";
|
||||
}
|
||||
|
||||
if (confirm(tmp_txt + "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?"))
|
||||
{
|
||||
document.ess.action = "allow_ok.asp?approve_pass="+approve_pass;
|
||||
document.ess.action = "allow_ok.asp?approve_pass="+approve_pass+"&tmp_pass_psn="+b+"&title="+"<%=replace(title," ","")%>";
|
||||
document.ess.submit();
|
||||
}
|
||||
}
|
||||
|
||||
function backit(a)
|
||||
{
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ۼ<EFBFBD><DBBC><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>");
|
||||
var url = "reason.asp?d_no="+a;
|
||||
window.open(url,'','left=0,top=0,width=400,height=180,scrollbars=yes,resizable=yes')
|
||||
}
|
||||
|
||||
//-->
|
||||
|
||||
</script>
|
||||
|
||||
<body topmargin="10" leftmargin="10" <%if cint(print_type) = 2 then%> onLoad="print_ie();" <% end if %>>
|
||||
|
||||
<form method='post' name='ess'>
|
||||
|
||||
<input type="hidden" name="d_no" value="<%=d_no%>">
|
||||
<input type="hidden" name="x" value="<%=x%>">
|
||||
|
||||
<input type=hidden name = "txt_prj_name" value="<%=gap(1)%>">
|
||||
<input type=hidden name = "txt_pay_target" value="<%=gap(2)%>">
|
||||
<input type=hidden name = "txt_date" value="<%=gap(3)%>">
|
||||
<input type=hidden name = "sel_pay_type" value="<%=gap(4)%>">
|
||||
<input type=hidden name = "txt_pay" value="<%=gap(5)%>">
|
||||
<input type=hidden name = "txt_pay_vat" value="<%=gap(6)%>">
|
||||
<input type=hidden name = "txt_pay_tot" value="<%=gap(7)%>">
|
||||
<input type=hidden name = "txt_client" value="<%=gap(8)%>">
|
||||
<input type=hidden name = "txt_p_sn" value='<%=gap(9)%>'>
|
||||
<input type=hidden name="txt_d_no" value='<%=gap(10)%>'>
|
||||
|
||||
<%if x = "99" then%>
|
||||
<!-- #include file = "inc_delreason.asp" -->
|
||||
<%end if '''if x = "99" then%>
|
||||
|
||||
<%
|
||||
if cint(print_type) <> 2 and (d_order_cnt = "99" or d_order_cnt = "77") and (tmp_admin_chk = "1" or tmp_request_chk = "1" or int(rsc("login_p_no")) = int(Session("User_Number"))) then
|
||||
%>
|
||||
<!-- #include file = "inc_print.asp" -->
|
||||
<%end if%>
|
||||
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td colspan="2" style="padding:20;">
|
||||
<table cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td><img width = "100%" src="/images/approval/docbg_top.jpg"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="710" align="center" style="padding:10;border-left:1px solid #dedede;border-right:1px solid #dedede;">
|
||||
<table width="95%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td colspan="2" style="padding:0 0 10 0">
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<td width="255">
|
||||
<%if title_type = "<22><><EFBFBD><EFBFBD>" then%>
|
||||
<img src="/images/approval/doc_stit08.jpg">
|
||||
<%else%>
|
||||
<img src="/images/approval/doc_stit24.jpg">
|
||||
<%end if%>
|
||||
</td>
|
||||
<td>
|
||||
<!-- #include file = "inc_approval.asp" -->
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><> <3B><> ȣ</b></td>
|
||||
<td width="80%" class="tahoma"><%=d_no%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><> <3B><> <3B><></b></td>
|
||||
<td width="80%" class="tahoma"><%=Curr_date%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><></b></td>
|
||||
<td width="80%"><%=user_name(1)%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><></b></td>
|
||||
<td width="80%"><%=user_name(4)%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><></b></td>
|
||||
<td width="80%"><%=user_name(2)%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:10 0 10 0;font-size:14;font-family:dotum;"><b><3E>ϱ<EFBFBD><CFB1><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ(<28><><EFBFBD><EFBFBD>)<29><> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD>, <%=title_type%><3E><> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD><CFBF><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20>ֽñ<D6BD> <20>ٶ<EFBFBD><D9B6>ϴ<EFBFBD>.</b></td>
|
||||
</tr>
|
||||
<%
|
||||
'----------------------------------------------------------------------------------------
|
||||
'### <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD> <20>ش<EFBFBD><D8B4>ϴ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ִٸ<D6B4> <20><>ũ<EFBFBD><C5A9> - 2010<31><30> 1<><31> 26<32><36> <20><><EFBFBD><EFBFBD>
|
||||
'### <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>ý<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ũ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> - 2011<31><31> 6<><36> 07<30><37> <20>߰<EFBFBD>
|
||||
tmp_link = ""
|
||||
tmp_p_sn = split(rsc("p_sn"),",")
|
||||
'Response.Write ubound(tmp_p_sn)
|
||||
if ubound(tmp_p_sn) = 0 then
|
||||
end_i = 1
|
||||
tmp_p_sn(0) = rsc("p_sn")
|
||||
else
|
||||
end_i = ubound(tmp_p_sn)
|
||||
end if
|
||||
'Response.Write rsc("p_sn") & "<br>"
|
||||
for i = 0 to end_i - 1
|
||||
query = "SELECT * "
|
||||
query = query & "FROM Document a "
|
||||
query = query & " INNER JOIN <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> b on a.d_no = b.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ "
|
||||
query = query & "WHERE a.d_delok = 'N' "
|
||||
'query = query & " AND a.d_name = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' "
|
||||
query = query & " AND a.d_name = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȹ<EFBFBD><C8B9>' AND a.d_order_cnt = '77' "
|
||||
query = query & " AND b.p_sn = '" & tmp_p_sn(i) & "' "
|
||||
'Response.Write query & "<BR>"
|
||||
|
||||
'<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǽ<EFBFBD><C7BC><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȹ<EFBFBD><C8B9><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǽ<EFBFBD> <20>ۼ<EFBFBD><DBBC><EFBFBD> <20>Ҷ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȹ<EFBFBD><C8B9><EFBFBD><EFBFBD> <20>ۼ<EFBFBD><DBBC><EFBFBD><EFBFBD><EFBFBD> <20>ʾ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>γ<EFBFBD>Ÿ<EFBFBD><C5B8>.
|
||||
'<27><EFBFBD><D7B7><EFBFBD> <20>̺κ<CCBA><CEBA><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>Ÿ<EFBFBD><C5B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ǥ<><C7A5>~!
|
||||
query = "select * from direct_cost where del_yes_no = 'no' and p_sn = '" & tmp_p_sn(i) & "' "
|
||||
|
||||
adoRs.open query, adoConn, 1
|
||||
'Response.Write "adoRs.recordcount : " & adoRs.recordcount & "<BR>"
|
||||
if adoRs.recordcount > 0 then
|
||||
'tmp_link = " - <a href='direct_cost_print.asp?p_sn=" & rsc("p_sn") & "' target='_blank'><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></a>"
|
||||
tmp_link = tmp_link & "<a href='direct_cost_print.asp?p_sn=" & tmp_p_sn(i) & "' target='_blank' class='blue'><img src='/images/approval/btn_directcost_view.jpg' align='absmiddle' style='CURSOR:pointer;'></a>"
|
||||
else
|
||||
tmp_link = tmp_link & "<font color=blue><b>[<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>]</b></font>"
|
||||
end if
|
||||
adoRs.close
|
||||
next
|
||||
|
||||
tmp_doc_link = ""
|
||||
if gap(10) <> "" then
|
||||
tmp_doc_link = "<a href='doc_consultation_print.asp?d_no=" & gap(10) & "' target='_blank'><img src='/images/common/btn_smalldetail.gif' align='absmiddle' style='CURSOR:pointer;'></a>" '+'&view_chk='+c+'&x='+v
|
||||
end if
|
||||
'----------------------------------------------------------------------------------------
|
||||
%>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:10 0 0 0">
|
||||
<table width="100%" cellpadding="5" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<td width="20%" align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><>(<28><><EFBFBD><EFBFBD>)</td>
|
||||
<td width="80%" ><font class="tahoma"><%=gap(1)%>-(<%=gap(9)%>) <%=tmp_link%></font></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:10 0 0 0">
|
||||
<table width="100%" cellpadding="5" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<td width="20%" align="center"><%=title_type%><3E><><EFBFBD><EFBFBD> <20><> <20><>Ÿ<EFBFBD><C5B8><EFBFBD><EFBFBD></td>
|
||||
<td width="80%" ><font class="tahoma"><%=ViewWord(gap(2))%></font></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:10 0 0 0">
|
||||
<table width="100%" cellpadding="5" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<!-- <td width="20%" align="center"><%=title_type%><3E><><EFBFBD><EFBFBD></td> -->
|
||||
<td width="20%" align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="30%" ><font class="tahoma"><%=gap(3)%></font></td>
|
||||
<td width="20%" align="center"><%=title_type%><3E><><EFBFBD><EFBFBD></td>
|
||||
<td width="30%" ><%=gap(4)%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center"><3E><><EFBFBD>ް<EFBFBD><DEB0><EFBFBD></td>
|
||||
<td ><font class="tahoma"><3E><> <%=gap(5)%> <20><></font></td>
|
||||
<td align="center" rowspan="2"><%=title_type%><3E>Ѿ<EFBFBD></td>
|
||||
<td rowspan="2"><font class="tahoma"><3E><> <%=gap(7)%> <20><></font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" align="center"><3E>ΰ<EFBFBD><CEB0><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="30%" ><font class="tahoma"><3E><> <%=gap(6)%> <20><></font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center"><3E>ŷ<EFBFBD>ó</td>
|
||||
<td ><font class="tahoma"><%=gap(8)%></font></td>
|
||||
<td align="center"><3E>Աݰ<D4B1><DDB0><EFBFBD></td>
|
||||
<td ><font class="tahoma">
|
||||
<%if trim(gap(4)) = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ü" then
|
||||
Response.Write "<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>纻 <20><>ü"
|
||||
else
|
||||
Response.Write "<22>ش<EFBFBD> <20><><EFBFBD><EFBFBD>"
|
||||
end if%>
|
||||
</font></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
if tmp_doc_link <> "" then
|
||||
%>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:10 0 0 0">
|
||||
<table width="100%" cellpadding="5" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<td width="20%" align="center">ǰ<>ǹ<EFBFBD><C7B9><EFBFBD></td>
|
||||
<td width="80%" ><font class="tahoma"><%=gap(10)%> <%=tmp_doc_link%></font></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
end if
|
||||
%>
|
||||
|
||||
|
||||
<!-- #include file = "inc_reply.asp" -->
|
||||
|
||||
|
||||
<tr>
|
||||
<td colspan="2" style="padding:20 0 0 0" align="right">
|
||||
<pre><font class="tahoma"> <09><> <20><> <20><> <20><> : <20><> <20><> <20><></font></pre>
|
||||
<pre><font class="tahoma"> <09><> <20><> <20><> : (<28><>)</font></pre>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:15 0 5 0"><!-- #include virtual= "approval/inc_logo.asp" --></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img width = "100%" src="/images/approval/docbg_btm.jpg"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
<%
|
||||
end if
|
||||
rsc.Close
|
||||
%>
|
||||
1164
ess/doc_expense_print_2014.asp
Normal file
1164
ess/doc_expense_print_2014.asp
Normal file
File diff suppressed because it is too large
Load Diff
1137
ess/doc_expense_print_2014.asp_250908_cns
Normal file
1137
ess/doc_expense_print_2014.asp_250908_cns
Normal file
File diff suppressed because it is too large
Load Diff
1154
ess/doc_expense_print_2014.asp_250909_cns
Normal file
1154
ess/doc_expense_print_2014.asp_250909_cns
Normal file
File diff suppressed because it is too large
Load Diff
602
ess/doc_myun_pay_print.asp
Normal file
602
ess/doc_myun_pay_print.asp
Normal file
@@ -0,0 +1,602 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
|
||||
Response.CharSet="euc-kr"
|
||||
|
||||
dim tmpstr
|
||||
dim Query
|
||||
dim i
|
||||
dim user_name(4) '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,0:<3A><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD>, 1:<3A≯<EFBFBD>,2:<3A><><EFBFBD><EFBFBD>,3:<3A><>ȭ<EFBFBD><C8AD>ȣ, 4:<3A>μ<EFBFBD><CEBC>ڵ<EFBFBD>(<28><>)
|
||||
dim Max_Width
|
||||
dim title
|
||||
dim target_name '<27>߱<DFB1><DEB4><EFBFBD><EFBFBD><EFBFBD> <20≯<EFBFBD>
|
||||
dim Curr_date '<27><><EFBFBD>ó<EFBFBD>¥
|
||||
dim Company(6)
|
||||
dim Gap(10) '1:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ<EFBFBD>, 2:<3A><><EFBFBD><EFBFBD>(<28>Ա<EFBFBD>)<29><><EFBFBD><EFBFBD>, 3:<3A><><EFBFBD><EFBFBD>(<28>Ա<EFBFBD>)<29><><EFBFBD><EFBFBD>, 4:<3A><><EFBFBD><EFBFBD>(<28>Ա<EFBFBD>)<29><><EFBFBD><EFBFBD>, 5:<3A><><EFBFBD>ް<EFBFBD><DEB0><EFBFBD>, 6:<3A>ΰ<EFBFBD><CEB0><EFBFBD><EFBFBD><EFBFBD>, 7:<3A>Ѿ<EFBFBD>, 8:<3A>ŷ<EFBFBD>ó, 9:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ<EFBFBD>, 10:ǰ<>Ǽ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ
|
||||
dim krc_no
|
||||
dim print_type '1:<3A><><EFBFBD><EFBFBD>, 2:<3A><>¥<EFBFBD><C2A5><EFBFBD><EFBFBD>Ʈ
|
||||
dim db_table_name
|
||||
dim title_type
|
||||
|
||||
|
||||
d_no = request("d_no")
|
||||
x = request("x")
|
||||
krc_no = d_no
|
||||
print_type = request("print_type")
|
||||
view_chk= request("view_chk")
|
||||
|
||||
db_table_name = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
|
||||
Max_Width =750
|
||||
Curr_date = year(date) & "<22><> " & zeroformat(month(date),2) & "<22><> " & zeroformat(day(date),2) & "<22><>"
|
||||
|
||||
|
||||
|
||||
''//==========================================
|
||||
''2010<31><30> 3<><33> 3<><33>
|
||||
'''<27>μ<CEBC><E2BFA9> ǥ<><C7A5>
|
||||
if print_type = "2" then
|
||||
query = "update <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> set print_chk = 'Yes', print_cnt = print_cnt + 1 where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ='" & d_no & "' "
|
||||
adoConn.Execute query
|
||||
end if
|
||||
|
||||
query = "SELECT * "
|
||||
query = query & "FROM <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> as a "
|
||||
query = query & " INNER JOIN Document as b on a.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = b.d_no "
|
||||
query = query & "WHERE a.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ='" & d_no & "' "
|
||||
|
||||
if x = "99" then
|
||||
else
|
||||
if session("admin_ip") = Request.ServerVariables("remote_host") then
|
||||
else
|
||||
query = query & " AND b.d_delok = 'N' "
|
||||
end if
|
||||
end if
|
||||
|
||||
rsc.Open query, adoConn, 1
|
||||
if rsc.RecordCount > 0 Then
|
||||
If rsc("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǽ<EFBFBD>" Then
|
||||
title="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǽ<EFBFBD>"
|
||||
pay_type = "1"
|
||||
Else
|
||||
title="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǽ<EFBFBD>"
|
||||
pay_type = "2"
|
||||
End If
|
||||
|
||||
title_type = mid(replace(title," ",""), 1, 2)
|
||||
|
||||
work_month = rsc("target10")
|
||||
sv = rsc("target12")
|
||||
|
||||
if IsNull(rsc("target21")) = False then
|
||||
d_p_subject = split(rsc("target21"), "^//^")
|
||||
d_p_child_sn = split(rsc("target20"), "^//^")
|
||||
d_estimate_money = split(rsc("target13"), "^//^")
|
||||
d_currentMoney = split(rsc("target14"), "^//^")
|
||||
d_totalPay = split(rsc("target15"), "^//^")
|
||||
d_chaPay = split(rsc("target16"), "^//^")
|
||||
|
||||
new_gubun = True
|
||||
else
|
||||
new_gubun = False
|
||||
End if
|
||||
overMoney_reason = split(rsc("target17"), "^//^")
|
||||
|
||||
tmp_date = split(rsc("d_write_date"), "-")
|
||||
Curr_date = tmp_date(0) & "<22><> " & tmp_date(1) & "<22><> " & tmp_date(2) & "<22><>"
|
||||
|
||||
tmp_0 = split(rsc("target97"), "^^")
|
||||
user_name(0) = rsc("login_p_no") '<27><><EFBFBD><EFBFBD>
|
||||
user_name(1) = tmp_0(0) '<27≯<EFBFBD>
|
||||
user_name(2) = tmp_0(1) '<27><><EFBFBD><EFBFBD> <20>ڵ<EFBFBD>
|
||||
user_name(3) = tmp_0(2) '<27><><EFBFBD><EFBFBD> <20><>ȭ
|
||||
user_name(4) = tmp_0(3) '<27>μ<EFBFBD><CEBC>ڵ<EFBFBD>
|
||||
|
||||
tmp_00 = split(rsc("target98"), "^^")
|
||||
Company(1) = tmp_00(0)
|
||||
Company(2) = tmp_00(1)
|
||||
Company(3) = tmp_00(2)
|
||||
Company(4) = tmp_00(3)
|
||||
Company(5) = tmp_00(4)
|
||||
Company(6) = tmp_00(5)
|
||||
|
||||
tmp_7 = split(rsc("target99"), "^^")
|
||||
tmp_8 = split(rsc("target100"), "^^")
|
||||
|
||||
if instr(1,tmp_7(0), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt1 = tmp_7(0)
|
||||
elseif instr(1,tmp_7(0), "<BR>") then
|
||||
tmp_t1 = split(tmp_7(0), "<BR>")
|
||||
tmp_txt1 = "<img src='/images/sign/" & tmp_t1(0) & "_" & tmp_t1(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt1 = tmp_7(0)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(1), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt2 = tmp_7(1)
|
||||
elseif instr(1,tmp_7(1), "<BR>") then
|
||||
tmp_t2 = split(tmp_7(1), "<BR>")
|
||||
tmp_txt2 = "<img src='/images/sign/" & tmp_t2(0) & "_" & tmp_t2(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt2 = tmp_7(1)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(2), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt3 = tmp_7(2)
|
||||
elseif instr(1,tmp_7(2), "<BR>") then
|
||||
tmp_t3 = split(tmp_7(2), "<BR>")
|
||||
tmp_txt3 = "<img src='/images/sign/" & tmp_t3(0) & "_" & tmp_t3(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt3 = tmp_7(2)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(3), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt4 = tmp_7(3)
|
||||
elseif instr(1,tmp_7(3), "<BR>") then
|
||||
tmp_t4 = split(tmp_7(3), "<BR>")
|
||||
tmp_txt4 = "<img src='/images/sign/" & tmp_t4(0) & "_" & tmp_t4(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt4 = tmp_7(3)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(4), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt5 = tmp_7(4)
|
||||
elseif instr(1,tmp_7(4), "<BR>") then
|
||||
tmp_t5 = split(tmp_7(4), "<BR>")
|
||||
tmp_txt5 = "<img src='/images/sign/" & tmp_t5(0) & "_" & tmp_t5(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt5 = tmp_7(4)
|
||||
end if
|
||||
|
||||
tmp_txt6 = tmp_8(0)
|
||||
tmp_txt7 = tmp_8(1)
|
||||
tmp_txt8 = tmp_8(2)
|
||||
tmp_txt9 = tmp_8(3)
|
||||
tmp_txt10 = tmp_8(4)
|
||||
|
||||
gap(1) = rsc("target1")
|
||||
gap(2) = rsc("target2")
|
||||
gap(3) = rsc("target3")
|
||||
gap(4) = rsc("target4")
|
||||
gap(5) = rsc("target5")
|
||||
gap(6) = rsc("target6")
|
||||
gap(7) = rsc("target7")
|
||||
gap(8) = rsc("target8")
|
||||
gap(9) = rsc("p_sn")
|
||||
gap(10) = rsc("target9")
|
||||
|
||||
d_order_cnt = int(rsc("d_order_cnt"))
|
||||
|
||||
print_type = request("print_type")
|
||||
|
||||
''<27><><EFBFBD>ڸ<EFBFBD> '-'<27><><EFBFBD><EFBFBD> <20><>,<2C><><EFBFBD><EFBFBD> <20><>ü
|
||||
gap(3) = mid(gap(3),1,4) & "<22><> " & mid(gap(3),6,2) & "<22><> " & mid(gap(3),9,2) & "<22><>"
|
||||
for i=1 to 9
|
||||
if trim(gap(i)) = "" then
|
||||
gap(i) = " "
|
||||
end if
|
||||
next
|
||||
for i=5 to 7
|
||||
if gap(i) = " " then
|
||||
gap(i) = "0"
|
||||
end if
|
||||
next
|
||||
|
||||
|
||||
''<27>α<EFBFBD><CEB1><EFBFBD><EFBFBD><EFBFBD>
|
||||
query = "insert into " & db_table_name & "_log (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_p_no, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_<EFBFBD≯<EFBFBD>, <20><><EFBFBD><EFBFBD>,"
|
||||
query = query & " <20>߱<EFBFBD><DFB1><EFBFBD>, <20>߱ð<DEBD>, <20>߱<EFBFBD><DFB1><EFBFBD>_p_no, <20>߱<EFBFBD><DFB1><EFBFBD>_<EFBFBD≯<EFBFBD>, <20>߱<EFBFBD><DFB1><EFBFBD>_ip) values ( "
|
||||
query = query & "'" & krc_no & "', "
|
||||
query = query & "'" & replace(title, " ", "") & "', "
|
||||
query = query & "'" & Session("User_Number") & "', "
|
||||
query = query & "'" & Session("loginuser") & "', "
|
||||
query = query & "'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>', "
|
||||
query = query & "'" & year(date) & "-" & zeroformat(month(date),2) & "-" & zeroformat(day(date),2) & "', "
|
||||
query = query & "'" & time() & "', "
|
||||
query = query & "'" & user_name(0) & "', "
|
||||
query = query & "'" & user_name(1) & "', "
|
||||
query = query & "'" & Session("USERIP") & "')"
|
||||
|
||||
if Request.ServerVariables("REMOTE_ADDr") = session("admin_ip") then
|
||||
else
|
||||
adoconn.execute query
|
||||
end if
|
||||
|
||||
%>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title><%=GNB_TITLE%></title>
|
||||
<link rel="stylesheet" type="text/css" href="/css/basic.css">
|
||||
</head>
|
||||
<script src="/js/jquery.min.js"></script>
|
||||
<script src="/js/jquery-ajax-call.js"></script>
|
||||
<script src="/js/jquery.form.min.js"></script>
|
||||
<link rel="stylesheet" href="/css/jquery-ui.min.css">
|
||||
<script src="/js/jquery-ui.min.js"></script>
|
||||
<script language="javascript" src="/js/common.js"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
$(document).ready(function () {
|
||||
|
||||
direct_cost_detail=function (p_child_sn, work_month, sv, pay_type, cost_type, d_no, work_kind){
|
||||
//var url = "../approval/doc_myun_pay_detail.asp?p_child_sn="+p_child_sn+"&work_month="+work_month+"&sv="+sv+"&pay_type="+pay_type+"&cost_type="+cost_type+"&krc_no="+d_no+"&work_kind="+escape(work_kind);
|
||||
var url = "doc_myun_pay_print_ajax.asp?p_child_sn="+p_child_sn+"&work_month="+work_month+"&sv="+sv+"&pay_type="+pay_type+"&cost_type="+cost_type+"&krc_no="+d_no+"&work_kind="+escape(work_kind);
|
||||
$("#m_detail").dialog({
|
||||
autoOpen: false,
|
||||
modal: true,
|
||||
resizable: false,
|
||||
position: { my: "center", at: "top" },
|
||||
show: "blind",
|
||||
width: "800",
|
||||
height: "600",
|
||||
title: "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>Ʈ",
|
||||
open: function () {
|
||||
$(".ui-widget-overlay").css({
|
||||
opacity: 0.5,
|
||||
filter: "Alpha(Opacity=50)",
|
||||
backgroundColor: "gray"
|
||||
});
|
||||
},
|
||||
close: function (event, ui) {
|
||||
$("body").css({
|
||||
overflow: 'inherit'
|
||||
});
|
||||
url = "";
|
||||
$("#m_detail").html("");
|
||||
}
|
||||
});
|
||||
$("#m_detail").load(url, function () {
|
||||
$("#m_detail").dialog("open");
|
||||
});
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
function win_close()
|
||||
{
|
||||
window.close();
|
||||
}
|
||||
function win_print()
|
||||
{
|
||||
var txt_prj_name = document.ess.txt_prj_name.value;
|
||||
var txt_pay_target = document.ess.txt_pay_target.value;
|
||||
var txt_date = document.ess.txt_date.value;
|
||||
var sel_pay_type = document.ess.sel_pay_type.value;
|
||||
var txt_pay = document.ess.txt_pay.value;
|
||||
var txt_pay_vat = document.ess.txt_pay_vat.value;
|
||||
var txt_pay_tot = document.ess.txt_pay_tot.value;
|
||||
var txt_client = document.ess.txt_client.value;
|
||||
var txt_p_sn = document.ess.txt_p_sn.value;
|
||||
<%
|
||||
if tmp_admin_chk = "1" then
|
||||
%>
|
||||
var txt_d_no = document.ess.txt_d_no.value;
|
||||
<%
|
||||
end if
|
||||
%>
|
||||
|
||||
var url = "doc_myun_pay_print.asp"
|
||||
url = url + "?txt_prj_name=" + txt_prj_name;
|
||||
url = url + "&txt_pay_target=" + txt_pay_target;
|
||||
url = url + "&txt_date=" + txt_date;
|
||||
url = url + "&sel_pay_type=" + sel_pay_type;
|
||||
url = url + "&txt_pay=" + txt_pay;
|
||||
url = url + "&txt_pay_vat=" + txt_pay_vat;
|
||||
url = url + "&txt_pay_tot=" + txt_pay_tot;
|
||||
url = url + "&txt_client=" + txt_client;
|
||||
url = url + "&print_type=2";
|
||||
url = url + "&txt_p_sn=" + txt_p_sn;
|
||||
<%
|
||||
if tmp_admin_chk = "1" then
|
||||
%>
|
||||
url = url + "&txt_d_no=" + txt_d_no;
|
||||
<%
|
||||
end if
|
||||
%>
|
||||
document.ess.action=url;
|
||||
document.ess.submit();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
function print_ie()
|
||||
{
|
||||
|
||||
//
|
||||
if(navigator.userAgent.toLowerCase().indexOf('chrome') > -1){ // Chrome Browser Detected?
|
||||
window.PPClose = false; // Clear Close Flag
|
||||
window.onbeforeunload = function(){ // Before Window Close Event
|
||||
if(window.PPClose === false){ // Close not OK?
|
||||
return 'Leaving this page will block the parent window!\nPlease select "Stay on this Page option" and use the\nCancel button instead to close the Print Preview Window.\n';
|
||||
}
|
||||
}
|
||||
window.print(); // Print preview
|
||||
window.PPClose = true; // Set Close Flag to OK.
|
||||
}else{
|
||||
window.print();
|
||||
window.close();
|
||||
}
|
||||
}
|
||||
|
||||
function clsit()
|
||||
{
|
||||
alert('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>û <20>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>');
|
||||
self.close();
|
||||
}
|
||||
|
||||
function subit(a, b)
|
||||
{
|
||||
var tmp_txt;
|
||||
var approve_pass;
|
||||
|
||||
if (a == 1)
|
||||
{
|
||||
tmp_txt = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ";
|
||||
approve_pass = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
tmp_txt = "";
|
||||
}
|
||||
|
||||
if (confirm(tmp_txt + "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?"))
|
||||
{
|
||||
document.ess.action = "allow_ok.asp?approve_pass="+approve_pass;
|
||||
document.ess.action = "allow_ok.asp?approve_pass="+approve_pass+"&tmp_pass_psn="+b+"&title="+"<%=replace(title," ","")%>";
|
||||
document.ess.submit();
|
||||
}
|
||||
}
|
||||
|
||||
function backit(a)
|
||||
{
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ۼ<EFBFBD><DBBC><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>");
|
||||
var url = "reason.asp?d_no="+a;
|
||||
window.open(url,'','left=0,top=0,width=400,height=180,scrollbars=yes,resizable=yes')
|
||||
}
|
||||
|
||||
//-->
|
||||
|
||||
</script>
|
||||
<div id="m_detail"></div><!-- m_detail Modal -->
|
||||
<body topmargin="10" leftmargin="10" <%if cint(print_type) = 2 then%> onLoad="print_ie();" <% end if %>>
|
||||
|
||||
<form method='post' name='ess'>
|
||||
|
||||
<input type="hidden" name="d_no" value="<%=d_no%>">
|
||||
<input type="hidden" name="x" value="<%=x%>">
|
||||
|
||||
<input type=hidden name = "txt_prj_name" value="<%=gap(1)%>">
|
||||
<input type=hidden name = "txt_pay_target" value="<%=gap(2)%>">
|
||||
<input type=hidden name = "txt_date" value="<%=gap(3)%>">
|
||||
<input type=hidden name = "sel_pay_type" value="<%=gap(4)%>">
|
||||
<input type=hidden name = "txt_pay" value="<%=gap(5)%>">
|
||||
<input type=hidden name = "txt_pay_vat" value="<%=gap(6)%>">
|
||||
<input type=hidden name = "txt_pay_tot" value="<%=gap(7)%>">
|
||||
<input type=hidden name = "txt_client" value="<%=gap(8)%>">
|
||||
<input type=hidden name = "txt_p_sn" value='<%=gap(9)%>'>
|
||||
<input type=hidden name="txt_d_no" value='<%=gap(10)%>'>
|
||||
|
||||
<%if x = "99" then%>
|
||||
<!-- #include file = "inc_delreason.asp" -->
|
||||
<%end if '''if x = "99" then%>
|
||||
|
||||
<%
|
||||
if cint(print_type) <> 2 and (d_order_cnt = "99" or d_order_cnt = "77") and (tmp_admin_chk = "1" or tmp_request_chk = "1" or int(rsc("login_p_no")) = int(Session("User_Number")) or Session("Depart_Code") = "18") then
|
||||
%>
|
||||
<!-- #include file = "inc_print.asp" -->
|
||||
<%end if%>
|
||||
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td colspan="2" style="padding:20;">
|
||||
<table cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td><img width = "100%" src="/images/approval/docbg_top.jpg"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="710" align="center" style="padding:10;border-left:1px solid #dedede;border-right:1px solid #dedede;">
|
||||
<table width="95%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td colspan="2" style="padding:0 0 10 0">
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<td width="255">
|
||||
<font color="blue" size="3" ><b><%=title%></b></font>
|
||||
</td>
|
||||
<td>
|
||||
<!-- #include file = "inc_approval.asp" -->
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><> <3B><> ȣ</b></td>
|
||||
<td width="80%" class="tahoma"><%=d_no%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><> <3B><> <3B><></b></td>
|
||||
<td width="80%" class="tahoma"><%=Curr_date%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><></b></td>
|
||||
<td width="80%"><%=user_name(1)%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><></b></td>
|
||||
<td width="80%"><%=user_name(4)%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><></b></td>
|
||||
<td width="80%"><%=user_name(2)%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:10 0 10 0;font-size:14;font-family:dotum;"><b><3E>ϱ<EFBFBD><CFB1><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ(<28><><EFBFBD><EFBFBD>)<29><> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD>, <%=title_type%><3E><> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD><CFBF><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20>ֽñ<D6BD> <20>ٶ<EFBFBD><D9B6>ϴ<EFBFBD>.</b></td>
|
||||
</tr>
|
||||
<%
|
||||
Dim pay_apply_username
|
||||
pay_apply_username = ""
|
||||
|
||||
set adors2 = server.CreateObject("ADODB.RECORDSET")
|
||||
query = "select p_name from person where p_no = '" & sv & "' "
|
||||
adors2.open query, adoconn, adopenstatic, adlockreadonly
|
||||
|
||||
If adors2.recordCount > 0 Then
|
||||
pay_apply_username = adors2("p_name")
|
||||
End If
|
||||
adors2.close
|
||||
%>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:10 0 0 0">
|
||||
<table width="100%" cellpadding="5" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<td width="20%" class="tit2" align="center"><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>Ⱓ</td>
|
||||
<td width="35%" class="tit7" align="center"><font class="tahoma"><%=work_month%></font></td>
|
||||
<td width="15%" class="tit2" align="center"><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="30%" class="tit7" align="center"><font class="tahoma"><%=pay_apply_username%></font></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:10 0 0 0">
|
||||
<table width="100%" cellpadding="5" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<td width="26%" class="tit2" align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ</td>
|
||||
<td width="11%" class="tit2" align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="tit2" align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="tit2" align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǻ<EFBFBD><C7BA><EFBFBD></td>
|
||||
<td width="11%" class="tit2" align="center"><3E><><EFBFBD><EFBFBD><EFBFBD>ܾ<EFBFBD></td>
|
||||
<td width="30%" class="tit2" align="center"><3E><><EFBFBD><EFBFBD></td>
|
||||
</tr>
|
||||
<%
|
||||
Dim minus_money_flag, data_index
|
||||
minus_money_flag = false
|
||||
|
||||
|
||||
Dim total_estimate_money, total_currentMoney, total_Pay, total_chaPay
|
||||
total_estimate_money = 0
|
||||
total_currentMoney = 0
|
||||
total_Pay = 0
|
||||
total_chaPay = 0
|
||||
|
||||
for data_index = 0 To UBound(d_p_child_sn)-1
|
||||
Dim tmp_p_child_sn
|
||||
Dim tmp_p_subject
|
||||
Dim tmp_estimate_money
|
||||
Dim tmp_currentMoney
|
||||
Dim tmp_totalPay
|
||||
Dim tmp_chaPay
|
||||
Dim tmp_overMoney_reason
|
||||
|
||||
|
||||
replaceStr = CStr(data_index+1)+"^^"
|
||||
|
||||
tmp_p_child_sn = Replace(d_p_child_sn(data_index), replaceStr, "")
|
||||
tmp_p_subject = Replace(d_p_subject(data_index), replaceStr, "")
|
||||
tmp_estimate_money = Replace(d_estimate_money(data_index), replaceStr, "")
|
||||
tmp_currentMoney = Replace(d_currentMoney(data_index), replaceStr, "")
|
||||
tmp_totalPay = Replace(d_totalPay(data_index), replaceStr, "")
|
||||
tmp_chaPay = Replace(d_chaPay(data_index), replaceStr, "")
|
||||
tmp_overMoney_reason = Replace(overMoney_reason(data_index), replaceStr, "")
|
||||
|
||||
%>
|
||||
|
||||
<tr>
|
||||
<td class="tit7"><font class="tahoma">[<%=tmp_p_child_sn%>]
|
||||
<%if session("depart_code") = "0" or session("depart_code") = "18" or (session("depart_code") = "12" ) then %>
|
||||
<img src="/images/common/btn_directcost_view.jpg" align="absmiddle" style="cursor:pointer; height: 14px;" onclick="direct_cost_detail('<%=tmp_p_child_sn%>', '<%=work_month%>', '<%=sv%>', 1, '<%="field"%>', '<%= d_no %>', '<%=replace(split(RIGHT(tmp_p_subject, 6), "(")(1), ")", "") %>')">
|
||||
<%end if %>
|
||||
<br><%=tmp_p_subject%></font></td>
|
||||
|
||||
<%
|
||||
If CDbl(tmp_chaPay) < 0 Then
|
||||
minus_money_flag = true
|
||||
End If
|
||||
%>
|
||||
<%
|
||||
tempPay = 0
|
||||
|
||||
%>
|
||||
<td class="tit7" style="text-align: right;"><font class="tahoma"><%=tmp_estimate_money%></font></td>
|
||||
<td class="tit7" style="text-align: right;"><font class="tahoma"><%=tmp_currentMoney%></font></td>
|
||||
<td class="tit7" style="text-align: right;"><font class="tahoma"><%=tmp_totalPay%></font></td>
|
||||
<td class="tit7" style="text-align: right;"><font class="tahoma"><%=tmp_chaPay%></font></td>
|
||||
<td class="tit7" style="text-align: left;"><font class="tahoma"><%=tmp_overMoney_reason%></font></td>
|
||||
<%
|
||||
total_estimate_money = total_estimate_money + CDbl(tmp_estimate_money)
|
||||
total_currentMoney = total_currentMoney + CDbl(tmp_currentMoney)
|
||||
total_Pay = total_Pay + CDbl(tmp_totalPay)
|
||||
total_chaPay = total_chaPay + CDbl(tmp_chaPay)
|
||||
%>
|
||||
</tr>
|
||||
<%
|
||||
Next
|
||||
%>
|
||||
<tr>
|
||||
<td align="center" class="tit2"><font class="tahoma"><3E>հ<EFBFBD></font></td>
|
||||
<td align="right" class="tit2"><font class="tahoma"><%=FormatNumber(total_estimate_money, 0)%></font></td>
|
||||
<td align="right" class="tit2"><font class="tahoma"><%=FormatNumber(total_currentMoney, 0)%></font></td>
|
||||
<td align="right" class="tit2"><font class="tahoma"><%=FormatNumber(total_Pay, 0)%></font></td>
|
||||
<td align="right" class="tit2"><font class="tahoma"><%=FormatNumber(total_chaPay, 0)%></font></td>
|
||||
<td width="20%" class="tit2" style="text-align: right;"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<input type=hidden name = "minus_money_flag" value='<%=minus_money_flag%>'>
|
||||
|
||||
<!-- #include file = "inc_myun_pay_reply.asp" -->
|
||||
|
||||
<tr>
|
||||
<td colspan="2" style="padding:20 0 0 0" align="right">
|
||||
<pre><font class="tahoma"> <09><> <20><> <20><> <20><> : <20><> <20><> <20><></font></pre>
|
||||
<pre><font class="tahoma"> <09><> <20><> <20><> : (<28><>)</font></pre>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:15 0 5 0"><!-- #include virtual= "approval/inc_logo.asp" --></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img width = "100%" src="/images/approval/docbg_btm.jpg"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
<%
|
||||
end if
|
||||
rsc.Close
|
||||
%>
|
||||
600
ess/doc_myun_pay_print2.asp
Normal file
600
ess/doc_myun_pay_print2.asp
Normal file
@@ -0,0 +1,600 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
|
||||
Response.CharSet = "EUC-KR" '<27>ѱ<EFBFBD>
|
||||
|
||||
dim tmpstr
|
||||
dim Query
|
||||
dim i
|
||||
dim user_name(4) '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,0:<3A><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD>, 1:<3A≯<EFBFBD>,2:<3A><><EFBFBD><EFBFBD>,3:<3A><>ȭ<EFBFBD><C8AD>ȣ, 4:<3A>μ<EFBFBD><CEBC>ڵ<EFBFBD>(<28><>)
|
||||
dim Max_Width
|
||||
dim title
|
||||
dim target_name '<27>߱<DFB1><DEB4><EFBFBD><EFBFBD><EFBFBD> <20≯<EFBFBD>
|
||||
dim Curr_date '<27><><EFBFBD>ó<EFBFBD>¥
|
||||
dim Company(6)
|
||||
dim Gap(10) '1:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ<EFBFBD>, 2:<3A><><EFBFBD><EFBFBD>(<28>Ա<EFBFBD>)<29><><EFBFBD><EFBFBD>, 3:<3A><><EFBFBD><EFBFBD>(<28>Ա<EFBFBD>)<29><><EFBFBD><EFBFBD>, 4:<3A><><EFBFBD><EFBFBD>(<28>Ա<EFBFBD>)<29><><EFBFBD><EFBFBD>, 5:<3A><><EFBFBD>ް<EFBFBD><DEB0><EFBFBD>, 6:<3A>ΰ<EFBFBD><CEB0><EFBFBD><EFBFBD><EFBFBD>, 7:<3A>Ѿ<EFBFBD>, 8:<3A>ŷ<EFBFBD>ó, 9:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ<EFBFBD>, 10:ǰ<>Ǽ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ
|
||||
dim krc_no
|
||||
dim print_type '1:<3A><><EFBFBD><EFBFBD>, 2:<3A><>¥<EFBFBD><C2A5><EFBFBD><EFBFBD>Ʈ
|
||||
dim db_table_name
|
||||
dim title_type
|
||||
|
||||
|
||||
d_no = request("d_no")
|
||||
x = request("x")
|
||||
krc_no = d_no
|
||||
print_type = request("print_type")
|
||||
view_chk= request("view_chk")
|
||||
|
||||
db_table_name = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
|
||||
Max_Width =750
|
||||
Curr_date = year(date) & "<22><> " & zeroformat(month(date),2) & "<22><> " & zeroformat(day(date),2) & "<22><>"
|
||||
|
||||
|
||||
|
||||
''//==========================================
|
||||
''2010<31><30> 3<><33> 3<><33>
|
||||
'''<27>μ<CEBC><E2BFA9> ǥ<><C7A5>
|
||||
if print_type = "2" then
|
||||
query = "update <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> set print_chk = 'Yes', print_cnt = print_cnt + 1 where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ='" & d_no & "' "
|
||||
adoConn.Execute query
|
||||
end if
|
||||
|
||||
query = "SELECT * "
|
||||
query = query & "FROM <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> as a "
|
||||
query = query & " INNER JOIN Document as b on a.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = b.d_no "
|
||||
query = query & "WHERE a.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ='" & d_no & "' "
|
||||
|
||||
if x = "99" then
|
||||
else
|
||||
if session("admin_ip") = Request.ServerVariables("remote_host") then
|
||||
else
|
||||
query = query & " AND b.d_delok = 'N' "
|
||||
end if
|
||||
end if
|
||||
|
||||
|
||||
rsc.Open query, adoConn, 1
|
||||
if rsc.RecordCount > 0 Then
|
||||
If rsc("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǽ<EFBFBD>" Then
|
||||
title="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǽ<EFBFBD>"
|
||||
pay_type = "1"
|
||||
Else
|
||||
title="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǽ<EFBFBD>"
|
||||
pay_type = "2"
|
||||
End If
|
||||
|
||||
title_type = mid(replace(title," ",""), 1, 2)
|
||||
|
||||
startDT = rsc("target10")
|
||||
endDT = rsc("target11")
|
||||
sv = rsc("target12")
|
||||
d_p_subject = split(rsc("target21"), "^//^")
|
||||
d_p_child_sn = split(rsc("target20"), "^//^")
|
||||
d_estimate_money = split(rsc("target13"), "^//^")
|
||||
d_currentMoney = split(rsc("target14"), "^//^")
|
||||
d_totalPay = split(rsc("target15"), "^//^")
|
||||
d_chaPay = split(rsc("target16"), "^//^")
|
||||
overMoney_reason = split(rsc("target17"), "^//^")
|
||||
''' Response.Write "rsc('target17') : " & rsc("target17") & "<br>"
|
||||
|
||||
tmp_date = split(rsc("d_write_date"), "-")
|
||||
Curr_date = tmp_date(0) & "<22><> " & tmp_date(1) & "<22><> " & tmp_date(2) & "<22><>"
|
||||
|
||||
tmp_0 = split(rsc("target97"), "^^")
|
||||
user_name(0) = rsc("login_p_no") '<27><><EFBFBD><EFBFBD>
|
||||
user_name(1) = tmp_0(0) '<27≯<EFBFBD>
|
||||
user_name(2) = tmp_0(1) '<27><><EFBFBD><EFBFBD> <20>ڵ<EFBFBD>
|
||||
user_name(3) = tmp_0(2) '<27><><EFBFBD><EFBFBD> <20><>ȭ
|
||||
user_name(4) = tmp_0(3) '<27>μ<EFBFBD><CEBC>ڵ<EFBFBD>
|
||||
|
||||
tmp_00 = split(rsc("target98"), "^^")
|
||||
Company(1) = tmp_00(0)
|
||||
Company(2) = tmp_00(1)
|
||||
Company(3) = tmp_00(2)
|
||||
Company(4) = tmp_00(3)
|
||||
Company(5) = tmp_00(4)
|
||||
Company(6) = tmp_00(5)
|
||||
|
||||
|
||||
|
||||
tmp_7 = split(rsc("target99"), "^^")
|
||||
tmp_8 = split(rsc("target100"), "^^")
|
||||
|
||||
if instr(1,tmp_7(0), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt1 = tmp_7(0)
|
||||
elseif instr(1,tmp_7(0), "<BR>") then
|
||||
tmp_t1 = split(tmp_7(0), "<BR>")
|
||||
tmp_txt1 = "<img src='/images/sign/" & tmp_t1(0) & "_" & tmp_t1(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt1 = tmp_7(0)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(1), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt2 = tmp_7(1)
|
||||
elseif instr(1,tmp_7(1), "<BR>") then
|
||||
tmp_t2 = split(tmp_7(1), "<BR>")
|
||||
tmp_txt2 = "<img src='/images/sign/" & tmp_t2(0) & "_" & tmp_t2(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt2 = tmp_7(1)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(2), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt3 = tmp_7(2)
|
||||
elseif instr(1,tmp_7(2), "<BR>") then
|
||||
tmp_t3 = split(tmp_7(2), "<BR>")
|
||||
tmp_txt3 = "<img src='/images/sign/" & tmp_t3(0) & "_" & tmp_t3(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt3 = tmp_7(2)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(3), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt4 = tmp_7(3)
|
||||
elseif instr(1,tmp_7(3), "<BR>") then
|
||||
tmp_t4 = split(tmp_7(3), "<BR>")
|
||||
tmp_txt4 = "<img src='/images/sign/" & tmp_t4(0) & "_" & tmp_t4(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt4 = tmp_7(3)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(4), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt5 = tmp_7(4)
|
||||
elseif instr(1,tmp_7(4), "<BR>") then
|
||||
tmp_t5 = split(tmp_7(4), "<BR>")
|
||||
tmp_txt5 = "<img src='/images/sign/" & tmp_t5(0) & "_" & tmp_t5(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt5 = tmp_7(4)
|
||||
end if
|
||||
|
||||
|
||||
tmp_txt6 = tmp_8(0)
|
||||
tmp_txt7 = tmp_8(1)
|
||||
tmp_txt8 = tmp_8(2)
|
||||
tmp_txt9 = tmp_8(3)
|
||||
tmp_txt10 = tmp_8(4)
|
||||
|
||||
gap(1) = rsc("target1")
|
||||
gap(2) = rsc("target2")
|
||||
gap(3) = rsc("target3")
|
||||
gap(4) = rsc("target4")
|
||||
gap(5) = rsc("target5")
|
||||
gap(6) = rsc("target6")
|
||||
gap(7) = rsc("target7")
|
||||
gap(8) = rsc("target8")
|
||||
gap(9) = rsc("p_sn")
|
||||
gap(10) = rsc("target9")
|
||||
|
||||
d_order_cnt = int(rsc("d_order_cnt"))
|
||||
|
||||
print_type = request("print_type")
|
||||
|
||||
''<27><><EFBFBD>ڸ<EFBFBD> '-'<27><><EFBFBD><EFBFBD> <20><>,<2C><><EFBFBD><EFBFBD> <20><>ü
|
||||
gap(3) = mid(gap(3),1,4) & "<22><> " & mid(gap(3),6,2) & "<22><> " & mid(gap(3),9,2) & "<22><>"
|
||||
for i=1 to 9
|
||||
if trim(gap(i)) = "" then
|
||||
gap(i) = " "
|
||||
end if
|
||||
next
|
||||
for i=5 to 7
|
||||
if gap(i) = " " then
|
||||
gap(i) = "0"
|
||||
end if
|
||||
next
|
||||
|
||||
|
||||
''<27>α<EFBFBD><CEB1><EFBFBD><EFBFBD><EFBFBD>
|
||||
query = "insert into " & db_table_name & "_log (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_p_no, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_<EFBFBD≯<EFBFBD>, <20><><EFBFBD><EFBFBD>,"
|
||||
query = query & " <20>߱<EFBFBD><DFB1><EFBFBD>, <20>߱ð<DEBD>, <20>߱<EFBFBD><DFB1><EFBFBD>_p_no, <20>߱<EFBFBD><DFB1><EFBFBD>_<EFBFBD≯<EFBFBD>, <20>߱<EFBFBD><DFB1><EFBFBD>_ip) values ( "
|
||||
query = query & "'" & krc_no & "', "
|
||||
query = query & "'" & replace(title, " ", "") & "', "
|
||||
query = query & "'" & Session("User_Number") & "', "
|
||||
query = query & "'" & Session("loginuser") & "', "
|
||||
query = query & "'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>', "
|
||||
query = query & "'" & year(date) & "-" & zeroformat(month(date),2) & "-" & zeroformat(day(date),2) & "', "
|
||||
query = query & "'" & time() & "', "
|
||||
query = query & "'" & user_name(0) & "', "
|
||||
query = query & "'" & user_name(1) & "', "
|
||||
query = query & "'" & Session("USERIP") & "')"
|
||||
|
||||
if Request.ServerVariables("REMOTE_ADDr") = session("admin_ip") then
|
||||
else
|
||||
adoconn.execute query
|
||||
end if
|
||||
|
||||
%>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title><%=GNB_TITLE%></title>
|
||||
<link rel="stylesheet" type="text/css" href="/css/basic.css">
|
||||
</head>
|
||||
|
||||
<script src="/js/jquery.min.js"></script>
|
||||
<script src="/js/jquery-ajax-call.js"></script>
|
||||
<script src="/js/jquery.form.min.js"></script>
|
||||
<<link rel="stylesheet" href="/css/jquery-ui.min.css">
|
||||
<script src="/js/jquery-ui.min.js"></script>
|
||||
<script language="javascript" src="/js/common.js"></script>
|
||||
<script language=javascript>
|
||||
|
||||
$(document).ready(function () {
|
||||
|
||||
direct_cost_detail=function (p_child_sn, start_DT, end_DT, sv, pay_type, cost_type, d_no){
|
||||
//var url = "../approval/doc_myun_pay_detail.asp?p_child_sn="+p_child_sn+"&work_month="+work_month+"&sv="+sv+"&pay_type="+pay_type+"&cost_type="+cost_type+"&krc_no="+d_no+"&work_kind="+escape(work_kind);
|
||||
url = "doc_myun_pay_print2_ajax.asp?p_child_sn="+p_child_sn+"&startDT="+start_DT+"&endDT="+end_DT+"&sv="+sv+"&pay_type="+pay_type+"&cost_type="+cost_type + "&krc_no=" + d_no;
|
||||
$("#m_detail").dialog({
|
||||
autoOpen: false,
|
||||
modal: true,
|
||||
resizable: false,
|
||||
position: { my: "center", at: "top" },
|
||||
show: "blind",
|
||||
width: "800",
|
||||
height: "600",
|
||||
title: "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>Ʈ",
|
||||
open: function () {
|
||||
$(".ui-widget-overlay").css({
|
||||
opacity: 0.5,
|
||||
filter: "Alpha(Opacity=50)",
|
||||
backgroundColor: "gray"
|
||||
});
|
||||
},
|
||||
close: function (event, ui) {
|
||||
$("body").css({
|
||||
overflow: 'inherit'
|
||||
});
|
||||
url = "";
|
||||
$(this).dialog("close");
|
||||
}
|
||||
});
|
||||
$("#m_detail").load(url, function () {
|
||||
$("#m_detail").dialog("open");
|
||||
});
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
function win_close()
|
||||
{
|
||||
window.close();
|
||||
}
|
||||
function win_print()
|
||||
{
|
||||
var txt_prj_name = document.ess.txt_prj_name.value;
|
||||
var txt_pay_target = document.ess.txt_pay_target.value;
|
||||
var txt_date = document.ess.txt_date.value;
|
||||
var sel_pay_type = document.ess.sel_pay_type.value;
|
||||
var txt_pay = document.ess.txt_pay.value;
|
||||
var txt_pay_vat = document.ess.txt_pay_vat.value;
|
||||
var txt_pay_tot = document.ess.txt_pay_tot.value;
|
||||
var txt_client = document.ess.txt_client.value;
|
||||
var txt_p_sn = document.ess.txt_p_sn.value;
|
||||
<%
|
||||
if tmp_admin_chk = "1" then
|
||||
%>
|
||||
var txt_d_no = document.ess.txt_d_no.value;
|
||||
<%
|
||||
end if
|
||||
%>
|
||||
|
||||
var url = "doc_myun_pay_print2.asp"
|
||||
url = url + "?txt_prj_name=" + txt_prj_name;
|
||||
url = url + "&txt_pay_target=" + txt_pay_target;
|
||||
url = url + "&txt_date=" + txt_date;
|
||||
url = url + "&sel_pay_type=" + sel_pay_type;
|
||||
url = url + "&txt_pay=" + txt_pay;
|
||||
url = url + "&txt_pay_vat=" + txt_pay_vat;
|
||||
url = url + "&txt_pay_tot=" + txt_pay_tot;
|
||||
url = url + "&txt_client=" + txt_client;
|
||||
url = url + "&print_type=2";
|
||||
url = url + "&txt_p_sn=" + txt_p_sn;
|
||||
<%
|
||||
if tmp_admin_chk = "1" then
|
||||
%>
|
||||
url = url + "&txt_d_no=" + txt_d_no;
|
||||
<%
|
||||
end if
|
||||
%>
|
||||
document.ess.action=url;
|
||||
document.ess.submit();
|
||||
}
|
||||
/*
|
||||
function direct_cost_detail(p_child_sn, start_DT, end_DT, sv, pay_type, cost_type, d_no){
|
||||
//alert(p_child_sn+"//"+start_DT+"//"+cost_type);
|
||||
//url = "../ess/doc_myun_pay_detail.asp?d_no="+d_no+"&view_chk=1&x=1";
|
||||
url = "../approval/doc_myun_pay_detail2.asp?p_child_sn="+p_child_sn+"&startDT="+start_DT+"&endDT="+end_DT+"&sv="+sv+"&pay_type="+pay_type+"&cost_type="+cost_type + "&krc_no=" + d_no;
|
||||
window.open(url,"","left=50 ,top=0, menubar=no, location=no ,status=no ,toolbar=no ,width=780, height=600 ,scrollbars=yes ,resizable=yes");
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
function print_ie()
|
||||
{
|
||||
|
||||
//
|
||||
if(navigator.userAgent.toLowerCase().indexOf('chrome') > -1){ // Chrome Browser Detected?
|
||||
window.PPClose = false; // Clear Close Flag
|
||||
window.onbeforeunload = function(){ // Before Window Close Event
|
||||
if(window.PPClose === false){ // Close not OK?
|
||||
return 'Leaving this page will block the parent window!\nPlease select "Stay on this Page option" and use the\nCancel button instead to close the Print Preview Window.\n';
|
||||
}
|
||||
}
|
||||
window.print(); // Print preview
|
||||
window.PPClose = true; // Set Close Flag to OK.
|
||||
}else{
|
||||
window.print();
|
||||
window.close();
|
||||
}
|
||||
}
|
||||
|
||||
function clsit()
|
||||
{
|
||||
alert('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>û <20>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>');
|
||||
self.close();
|
||||
}
|
||||
|
||||
function subit(a, b)
|
||||
{
|
||||
var tmp_txt;
|
||||
var approve_pass;
|
||||
|
||||
if (a == 1)
|
||||
{
|
||||
tmp_txt = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ";
|
||||
approve_pass = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
tmp_txt = "";
|
||||
}
|
||||
|
||||
if (confirm(tmp_txt + "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?"))
|
||||
{
|
||||
document.ess.action = "allow_ok.asp?approve_pass="+approve_pass;
|
||||
document.ess.action = "allow_ok.asp?approve_pass="+approve_pass+"&tmp_pass_psn="+b+"&title="+"<%=replace(title," ","")%>";
|
||||
document.ess.submit();
|
||||
}
|
||||
}
|
||||
|
||||
function backit(a)
|
||||
{
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ۼ<EFBFBD><DBBC><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>");
|
||||
var url = "reason.asp?d_no="+a;
|
||||
window.open(url,'','left=0,top=0,width=400,height=180,scrollbars=yes,resizable=yes')
|
||||
}
|
||||
|
||||
//-->
|
||||
|
||||
</script>
|
||||
<div id="m_detail"></div><!-- m_detail Modal -->
|
||||
<body topmargin="10" leftmargin="10" <%if cint(print_type) = 2 then%> onLoad="print_ie();" <% end if %>>
|
||||
|
||||
<form method='post' name='ess'>
|
||||
|
||||
<input type="hidden" name="d_no" value="<%=d_no%>">
|
||||
<input type="hidden" name="x" value="<%=x%>">
|
||||
|
||||
<input type=hidden name = "txt_prj_name" value="<%=gap(1)%>">
|
||||
<input type=hidden name = "txt_pay_target" value="<%=gap(2)%>">
|
||||
<input type=hidden name = "txt_date" value="<%=gap(3)%>">
|
||||
<input type=hidden name = "sel_pay_type" value="<%=gap(4)%>">
|
||||
<input type=hidden name = "txt_pay" value="<%=gap(5)%>">
|
||||
<input type=hidden name = "txt_pay_vat" value="<%=gap(6)%>">
|
||||
<input type=hidden name = "txt_pay_tot" value="<%=gap(7)%>">
|
||||
<input type=hidden name = "txt_client" value="<%=gap(8)%>">
|
||||
<input type=hidden name = "txt_p_sn" value='<%=gap(9)%>'>
|
||||
<input type=hidden name="txt_d_no" value='<%=gap(10)%>'>
|
||||
|
||||
<%if x = "99" then%>
|
||||
<!-- #include file = "inc_delreason.asp" -->
|
||||
<%end if '''if x = "99" then%>
|
||||
|
||||
<%
|
||||
if cint(print_type) <> 2 and (d_order_cnt = "99" or d_order_cnt = "77") and (tmp_admin_chk = "1" or tmp_request_chk = "1" or int(rsc("login_p_no")) = int(Session("User_Number")) or Session("Depart_Code") = "18") then
|
||||
%>
|
||||
<!-- #include file = "inc_print.asp" -->
|
||||
<%end if%>
|
||||
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td colspan="2" style="padding:20;">
|
||||
<table cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td><img width = "100%" src="/images/approval/docbg_top.jpg"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="710" align="center" style="padding:10;border-left:1px solid #dedede;border-right:1px solid #dedede;">
|
||||
<table width="95%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td colspan="2" style="padding:0 0 10 0">
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<td width="255">
|
||||
<font color="blue" size="3" ><b><%=title%></b></font>
|
||||
</td>
|
||||
<td>
|
||||
<!-- #include file = "inc_approval.asp" -->
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><> <3B><> ȣ</b></td>
|
||||
<td width="80%" class="tahoma"><%=d_no%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><> <3B><> <3B><></b></td>
|
||||
<td width="80%" class="tahoma"><%=Curr_date%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><></b></td>
|
||||
<td width="80%"><%=user_name(1)%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><></b></td>
|
||||
<td width="80%"><%=user_name(4)%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><></b></td>
|
||||
<td width="80%"><%=user_name(2)%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:10 0 10 0;font-size:14;font-family:dotum;"><b><3E>ϱ<EFBFBD><CFB1><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ(<28><><EFBFBD><EFBFBD>)<29><> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD>, <%=title_type%><3E><> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD><CFBF><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20>ֽñ<D6BD> <20>ٶ<EFBFBD><D9B6>ϴ<EFBFBD>.</b></td>
|
||||
</tr>
|
||||
<%
|
||||
Dim pay_apply_username
|
||||
pay_apply_username = ""
|
||||
|
||||
set adors2 = server.CreateObject("ADODB.RECORDSET")
|
||||
query = "select p_name from person where p_no = '" & sv & "' "
|
||||
adors2.open query, adoconn, adopenstatic, adlockreadonly
|
||||
|
||||
If adors2.recordCount > 0 Then
|
||||
pay_apply_username = adors2("p_name")
|
||||
End If
|
||||
adors2.close
|
||||
%>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:10 0 0 0">
|
||||
<table width="100%" cellpadding="5" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<td width="20%" class="tit2" align="center"><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>Ⱓ</td>
|
||||
<td width="35%" class="tit7" align="center"><font class="tahoma"><%if startDT <> "" then %><%=startDT%> ~ <%=endDT%><% else %><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD><%end if %></font></td>
|
||||
<td width="15%" class="tit2" align="center"><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="30%" class="tit7" align="center"><font class="tahoma"><%=pay_apply_username%></font></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:10 0 0 0">
|
||||
<table width="100%" cellpadding="5" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<td width="25%" class="tit2" align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ</td>
|
||||
<td width="9%" class="tit2" align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="9%" class="tit2" align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="9%" class="tit2" align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǻ<EFBFBD><C7BA><EFBFBD></td>
|
||||
<td width="9%" class="tit2" align="center"><3E><><EFBFBD><EFBFBD><EFBFBD>ܾ<EFBFBD></td>
|
||||
<td width="20%" class="tit2" align="center"><3E><><EFBFBD><EFBFBD></td>
|
||||
</tr>
|
||||
<%
|
||||
Dim minus_money_flag, data_index
|
||||
minus_money_flag = false
|
||||
|
||||
|
||||
Dim total_estimate_money, total_currentMoney, total_Pay, total_chaPay
|
||||
total_estimate_money = 0
|
||||
total_currentMoney = 0
|
||||
total_Pay = 0
|
||||
total_chaPay = 0
|
||||
|
||||
for data_index = 0 To UBound(d_p_child_sn)-1
|
||||
Dim tmp_p_child_sn
|
||||
Dim tmp_p_subject
|
||||
Dim tmp_estimate_money
|
||||
Dim tmp_currentMoney
|
||||
Dim tmp_totalPay
|
||||
Dim tmp_chaPay
|
||||
Dim tmp_overMoney_reason
|
||||
|
||||
replaceStr = CStr(data_index+1)+"^^"
|
||||
|
||||
tmp_p_child_sn = Replace(d_p_child_sn(data_index), replaceStr, "")
|
||||
tmp_p_subject = Replace(d_p_subject(data_index), replaceStr, "")
|
||||
tmp_estimate_money = Replace(d_estimate_money(data_index), replaceStr, "")
|
||||
tmp_currentMoney = Replace(d_currentMoney(data_index), replaceStr, "")
|
||||
tmp_totalPay = Replace(d_totalPay(data_index), replaceStr, "")
|
||||
tmp_chaPay = Replace(d_chaPay(data_index), replaceStr, "")
|
||||
tmp_overMoney_reason = Replace(overMoney_reason(data_index), replaceStr, "")
|
||||
%>
|
||||
|
||||
<tr>
|
||||
<td class="tit7"><font class="tahoma">[<%=tmp_p_child_sn%>]
|
||||
<img src="/images/common/btn_directcost_view.jpg" align="absmiddle" style="cursor:pointer; height: 14px;" onclick="direct_cost_detail('<%=tmp_p_child_sn%>', '<%=startDT%>', '<%=endDT%>', '<%=sv%>', 2, '<%="field"%>', '<%= d_no %>')">
|
||||
<br><%=tmp_p_subject%></font></td>
|
||||
|
||||
<%
|
||||
If CDbl(tmp_chaPay) < 0 Then
|
||||
minus_money_flag = true
|
||||
End If
|
||||
%>
|
||||
<%
|
||||
tempPay = 0
|
||||
|
||||
%>
|
||||
<td class="tit7" style="text-align: right;"><font class="tahoma"><%=tmp_estimate_money%></font></td>
|
||||
<td class="tit7" style="text-align: right;"><font class="tahoma"><%=tmp_currentMoney%></font></td>
|
||||
<td class="tit7" style="text-align: right;"><font class="tahoma"><%=tmp_totalPay%></font></td>
|
||||
<td class="tit7" style="text-align: right;"><font class="tahoma"><%=tmp_chaPay%></font></td>
|
||||
<td class="tit7" style="text-align: left;"><font class="tahoma"><%=tmp_overMoney_reason%></font></td>
|
||||
<%
|
||||
total_estimate_money = total_estimate_money + CDbl(tmp_estimate_money)
|
||||
total_currentMoney = total_currentMoney + CDbl(tmp_currentMoney)
|
||||
total_Pay = total_Pay + CDbl(tmp_totalPay)
|
||||
total_chaPay = total_chaPay + CDbl(tmp_chaPay)
|
||||
%>
|
||||
</tr>
|
||||
<%
|
||||
Next
|
||||
%>
|
||||
<tr>
|
||||
<td align="center" class="tit2"><font class="tahoma"><3E>հ<EFBFBD></font></td>
|
||||
<td align="right" class="tit2"><font class="tahoma"><%=FormatNumber(total_estimate_money, 0)%></font></td>
|
||||
<td align="right" class="tit2"><font class="tahoma"><%=FormatNumber(total_currentMoney, 0)%></font></td>
|
||||
<td align="right" class="tit2"><font class="tahoma"><%=FormatNumber(total_Pay, 0)%></font></td>
|
||||
<td align="right" class="tit2"><font class="tahoma"><%=FormatNumber(total_chaPay, 0)%></font></td>
|
||||
<td width="20%" class="tit2" style="text-align: right;"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<input type=hidden name = "minus_money_flag" value='<%=minus_money_flag%>'>
|
||||
<!-- #include file = "inc_myun_pay_reply.asp" -->
|
||||
|
||||
<tr>
|
||||
<td colspan="2" style="padding:20 0 0 0" align="right">
|
||||
<pre><font class="tahoma"> <09><> <20><> <20><> <20><> : <20><> <20><> <20><></font></pre>
|
||||
<pre><font class="tahoma"> <09><> <20><> <20><> : (<28><>)</font></pre>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:15 0 5 0"><!-- #include virtual= "approval/inc_logo.asp" --></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img width = "100%" src="/images/approval/docbg_btm.jpg"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
<%
|
||||
end if
|
||||
rsc.Close
|
||||
%>
|
||||
43
ess/doc_myun_pay_print2_ajax.asp
Normal file
43
ess/doc_myun_pay_print2_ajax.asp
Normal file
@@ -0,0 +1,43 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
Response.CharSet = "EUC-KR" '<27>ѱ<EFBFBD>
|
||||
|
||||
Dim p_child_sn : p_child_sn = Request("p_child_sn")
|
||||
Dim startDT : startDT = Request("start_DT")
|
||||
Dim endDT : endDT = Request("end_DT")
|
||||
Dim sv : sv = Request("sv")
|
||||
Dim pay_type : pay_type = Request("pay_type")
|
||||
Dim cost_type : cost_type = Request("cost_type")
|
||||
Dim krc_no : krc_no = Request("krc_no")
|
||||
%>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
var url = "../approval/doc_myun_pay_detail2.asp";
|
||||
$.ajax({
|
||||
url: url,
|
||||
type: "get",
|
||||
contentType: 'application/x-www-form-urlencoded; charset=euc-kr',
|
||||
data:
|
||||
{
|
||||
"p_child_sn": "<%=p_child_sn %>",
|
||||
"startDT": "<%=startDT %>",
|
||||
"endDT": "<%=endDT %>",
|
||||
"sv": "<%=sv %>",
|
||||
"pay_type": "<%=pay_type %>",
|
||||
"cost_type": "<%=cost_type %>",
|
||||
"krc_no": "<%=krc_no %>"
|
||||
},
|
||||
success: function (response, textStatus, jqXHR) {
|
||||
$(".m_detail").append(response);
|
||||
},
|
||||
complete: function () {
|
||||
//alert("comment complete");
|
||||
}, error: function (error) {
|
||||
console.log(error);
|
||||
alert("Web Service Error.");
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
<div class="m_detail"></div>
|
||||
43
ess/doc_myun_pay_print_ajax.asp
Normal file
43
ess/doc_myun_pay_print_ajax.asp
Normal file
@@ -0,0 +1,43 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
Response.CharSet = "EUC-KR" '<27>ѱ<EFBFBD>
|
||||
|
||||
Dim p_child_sn : p_child_sn = Request("p_child_sn")
|
||||
Dim work_month : work_month = Request("work_month")
|
||||
Dim sv : sv = Request("sv")
|
||||
Dim pay_type : pay_type = Request("pay_type")
|
||||
Dim cost_type : cost_type = Request("cost_type")
|
||||
Dim krc_no : krc_no = Request("krc_no")
|
||||
Dim work_kind : work_kind = unescape(Request("work_kind"))
|
||||
%>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
var url = "../approval/doc_myun_pay_detail.asp";
|
||||
$.ajax({
|
||||
url: url,
|
||||
type: "get",
|
||||
contentType: 'application/x-www-form-urlencoded; charset=euc-kr',
|
||||
data:
|
||||
{
|
||||
"p_child_sn": "<%=p_child_sn %>",
|
||||
"work_month": "<%=work_month %>",
|
||||
"sv": "<%=sv %>",
|
||||
"pay_type": "<%=pay_type %>",
|
||||
"cost_type": "<%=cost_type %>",
|
||||
"krc_no": "<%=krc_no %>",
|
||||
"work_kind": escape("<%=work_kind %>")
|
||||
},
|
||||
success: function (response, textStatus, jqXHR) {
|
||||
$(".m_detail").append(response);
|
||||
},
|
||||
complete: function () {
|
||||
//alert("comment complete");
|
||||
}, error: function (error) {
|
||||
console.log(error);
|
||||
alert("Web Service Error.");
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
<div class="m_detail"></div>
|
||||
607
ess/doc_prepayment2_ex_print.asp
Normal file
607
ess/doc_prepayment2_ex_print.asp
Normal file
@@ -0,0 +1,607 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
dim tmpstr
|
||||
dim Query
|
||||
dim i, j
|
||||
dim user_name(4) '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,0:<3A><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD>, 1:<3A≯<EFBFBD>,2:<3A><><EFBFBD><EFBFBD>,3:<3A><>ȭ<EFBFBD><C8AD>ȣ, 4:<3A>μ<EFBFBD><CEBC>ڵ<EFBFBD>(<28><>)
|
||||
dim Max_Width
|
||||
dim title
|
||||
dim Curr_date '<27><><EFBFBD>ó<EFBFBD>¥
|
||||
dim Company(6)
|
||||
dim krc_no '<27><><EFBFBD>꼭<EFBFBD><EABCAD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ
|
||||
dim krc_no_estimate '<27><><EFBFBD><EFBFBD><EFBFBD>ޱ<EFBFBD><DEB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǽ<EFBFBD><C7BC><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ
|
||||
dim gap(16)
|
||||
dim gap_real(63)
|
||||
dim print_type
|
||||
dim tabindex
|
||||
dim db_table_name
|
||||
|
||||
d_no = request("d_no")
|
||||
x = request("x")
|
||||
krc_no = d_no
|
||||
print_type = request("print_type")
|
||||
view_chk= request("view_chk")
|
||||
|
||||
db_table_name = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
|
||||
title="<22><><EFBFBD><EFBFBD><EFBFBD>ޱ<EFBFBD><DEB1><EFBFBD><EFBFBD><EFBFBD>"
|
||||
Max_Width =750
|
||||
Curr_date = year(date) & "<22><> " & month(date) & "<22><> " & day(date) & "<22><>"
|
||||
|
||||
|
||||
|
||||
|
||||
query = "SELECT * "
|
||||
query = query & "FROM <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> as a "
|
||||
query = query & " INNER JOIN Document as b on a.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = b.d_no "
|
||||
query = query & "WHERE a.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ='" & d_no & "' "
|
||||
if x = "99" then
|
||||
else
|
||||
query = query & " AND b.d_delok = 'N' "
|
||||
end if
|
||||
|
||||
'Response.Write query &"<BR>"
|
||||
|
||||
rsc.Open query, adoConn, 1
|
||||
if rsc.RecordCount > 0 then
|
||||
|
||||
tmp_date = split(rsc("d_write_date"), "-")
|
||||
Curr_date = tmp_date(0) & "<22><> " & tmp_date(1) & "<22><> " & tmp_date(2) & "<22><>"
|
||||
|
||||
tmp_0 = split(rsc("target97"), "^^")
|
||||
user_name(0) = rsc("login_p_no") '<27><><EFBFBD><EFBFBD>
|
||||
user_name(1) = tmp_0(0) '<27≯<EFBFBD>
|
||||
user_name(2) = tmp_0(1) '<27><><EFBFBD><EFBFBD> <20>ڵ<EFBFBD>
|
||||
user_name(3) = tmp_0(2) '<27><><EFBFBD><EFBFBD> <20><>ȭ
|
||||
user_name(4) = tmp_0(3) '<27>μ<EFBFBD><CEBC>ڵ<EFBFBD>
|
||||
|
||||
tmp_00 = split(rsc("target98"), "^^")
|
||||
Company(1) = tmp_00(0)
|
||||
Company(2) = tmp_00(1)
|
||||
Company(3) = tmp_00(2)
|
||||
Company(4) = tmp_00(3)
|
||||
Company(5) = tmp_00(4)
|
||||
Company(6) = tmp_00(5)
|
||||
|
||||
tmp_7 = split(rsc("target99"), "^^")
|
||||
tmp_8 = split(rsc("target100"), "^^")
|
||||
|
||||
if instr(1,tmp_7(0), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt1 = tmp_7(0)
|
||||
elseif instr(1,tmp_7(0), "<BR>") then
|
||||
tmp_t1 = split(tmp_7(0), "<BR>")
|
||||
tmp_txt1 = "<img src='/images/sign/" & tmp_t1(0) & "_" & tmp_t1(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt1 = tmp_7(0)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(1), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt2 = tmp_7(1)
|
||||
elseif instr(1,tmp_7(1), "<BR>") then
|
||||
tmp_t2 = split(tmp_7(1), "<BR>")
|
||||
tmp_txt2 = "<img src='/images/sign/" & tmp_t2(0) & "_" & tmp_t2(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt2 = tmp_7(1)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(2), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt3 = tmp_7(2)
|
||||
elseif instr(1,tmp_7(2), "<BR>") then
|
||||
tmp_t3 = split(tmp_7(2), "<BR>")
|
||||
tmp_txt3 = "<img src='/images/sign/" & tmp_t3(0) & "_" & tmp_t3(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt3 = tmp_7(2)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(3), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt4 = tmp_7(3)
|
||||
elseif instr(1,tmp_7(3), "<BR>") then
|
||||
tmp_t4 = split(tmp_7(3), "<BR>")
|
||||
tmp_txt4 = "<img src='/images/sign/" & tmp_t4(0) & "_" & tmp_t4(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt4 = tmp_7(3)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(4), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt5 = tmp_7(4)
|
||||
elseif instr(1,tmp_7(4), "<BR>") then
|
||||
tmp_t5 = split(tmp_7(4), "<BR>")
|
||||
tmp_txt5 = "<img src='/images/sign/" & tmp_t5(0) & "_" & tmp_t5(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt5 = tmp_7(4)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(5), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt6 = tmp_7(5)
|
||||
elseif instr(1,tmp_7(5), "<BR>") then
|
||||
tmp_t6 = split(tmp_7(5), "<BR>")
|
||||
tmp_txt6 = "<img src='/images/sign/" & tmp_t6(0) & "_" & tmp_t6(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt6 = tmp_7(5)
|
||||
end if
|
||||
|
||||
tmp_txt7 = tmp_8(0)
|
||||
tmp_txt8 = tmp_8(1)
|
||||
tmp_txt9 = tmp_8(2)
|
||||
tmp_txt10 = tmp_8(3)
|
||||
tmp_txt11 = tmp_8(4)
|
||||
tmp_txt12 = tmp_8(5)
|
||||
|
||||
gap(1) = rsc("target1")
|
||||
gap(2) = rsc("target2")
|
||||
gap(3) = rsc("target3")
|
||||
gap(4) = rsc("target4")
|
||||
gap(5) = rsc("target5")
|
||||
gap(6) = rsc("target6")
|
||||
gap(7) = ViewWord(rsc("target7"))
|
||||
gap(8) = rsc("target8")
|
||||
gap(9) = rsc("target9")
|
||||
gap(10) = rsc("target10")
|
||||
gap(11) = ViewWord(rsc("target11"))
|
||||
gap(16) = rsc("target17")
|
||||
|
||||
tmpstr = split(rsc("target12"),"^^")
|
||||
|
||||
for i=0 to ubound(tmpstr)
|
||||
gap_real(i) = tmpstr(i)
|
||||
'Response.Write i & " => " & gap_real(i) & "'<br>"
|
||||
next
|
||||
|
||||
|
||||
|
||||
|
||||
tmpstr = split(rsc("target13"),"^^")
|
||||
|
||||
for i=0 to ubound(tmpstr)
|
||||
gap_real(i+24) = tmpstr(i)
|
||||
' Response.Write i & " => " & gap_real(i) & "'<br>"
|
||||
next
|
||||
|
||||
tmpstr = split(rsc("target14"),"^^")
|
||||
|
||||
for i=0 to ubound(tmpstr)
|
||||
gap_real(i+36) = tmpstr(i)
|
||||
' Response.Write i & " => " & gap_real(i) & "'<br>"
|
||||
next
|
||||
|
||||
tmpstr = split(rsc("target15"),"^^")
|
||||
'Response.Write ubound(tmpstr) & "<BR>"
|
||||
for i=0 to ubound(tmpstr)
|
||||
gap_real(i+59) = tmpstr(i)
|
||||
'Response.Write i+59 & " => " & gap_real(i+59) & "'<br>"
|
||||
next
|
||||
|
||||
d_order_cnt = int(rsc("d_order_cnt"))
|
||||
|
||||
|
||||
%>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title><%=GNB_TITLE%></title>
|
||||
<link rel="stylesheet" type="text/css" href="/css/basic.css">
|
||||
<script language="javascript" src="/js/common.js"></script>
|
||||
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
|
||||
</head>
|
||||
|
||||
|
||||
<script language=javascript>
|
||||
|
||||
function win_close()
|
||||
{
|
||||
window.close();
|
||||
}
|
||||
|
||||
|
||||
function win_print(){
|
||||
|
||||
var txt_date_1 = document.ess.txt_date_1.value;
|
||||
|
||||
|
||||
if (allTrim(txt_date_1) == ""){
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڸ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>");
|
||||
document.ess.txt_date_1.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
var url = "doc_prepayment2_ex_print.asp";
|
||||
url = url + "?txt_date_1=" + txt_date_1;
|
||||
url = url + "&krc_no_estimate=" + document.ess.krc_no_estimate.value;
|
||||
url = url + "&print_type=2";
|
||||
|
||||
document.ess.action=url;
|
||||
document.ess.submit();
|
||||
|
||||
|
||||
}
|
||||
|
||||
function print_ie()
|
||||
{
|
||||
|
||||
//
|
||||
if(navigator.userAgent.toLowerCase().indexOf('chrome') > -1){ // Chrome Browser Detected?
|
||||
window.PPClose = false; // Clear Close Flag
|
||||
window.onbeforeunload = function(){ // Before Window Close Event
|
||||
if(window.PPClose === false){ // Close not OK?
|
||||
return 'Leaving this page will block the parent window!\nPlease select "Stay on this Page option" and use the\nCancel button instead to close the Print Preview Window.\n';
|
||||
}
|
||||
}
|
||||
window.print(); // Print preview
|
||||
window.PPClose = true; // Set Close Flag to OK.
|
||||
}else{
|
||||
window.print();
|
||||
window.close();
|
||||
}
|
||||
}
|
||||
|
||||
function clsit()
|
||||
{
|
||||
alert('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>û <20>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>');
|
||||
self.close();
|
||||
}
|
||||
|
||||
function subit(a, b)
|
||||
{
|
||||
var tmp_txt;
|
||||
var approve_pass;
|
||||
|
||||
if (a == 1)
|
||||
{
|
||||
tmp_txt = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ";
|
||||
approve_pass = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
tmp_txt = "";
|
||||
}
|
||||
|
||||
if (confirm(tmp_txt + "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?"))
|
||||
{
|
||||
document.ess.action = "allow_ok.asp?approve_pass="+approve_pass;
|
||||
document.ess.action = "allow_ok.asp?approve_pass="+approve_pass+"&tmp_pass_psn="+b+"&title="+"<%=replace(title," ","")%>";
|
||||
document.ess.submit();
|
||||
}
|
||||
}
|
||||
|
||||
function backit(a)
|
||||
{
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ۼ<EFBFBD><DBBC><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>");
|
||||
var url = "reason.asp?d_no="+a;
|
||||
window.open(url,'','left=0,top=0,width=400,height=150,scrollbars=yes,resizable=yes')
|
||||
}
|
||||
|
||||
//-->
|
||||
</script>
|
||||
|
||||
<body topmargin="10" leftmargin="10" <%if cint(print_type) = 2 then%> onLoad="print_ie();" <% end if %>>
|
||||
|
||||
<form method='post' name='ess'>
|
||||
|
||||
<input type="hidden" name="d_no" value="<%=d_no%>">
|
||||
|
||||
<%if x = "99" then%>
|
||||
<!-- #include file = "inc_delreason.asp" -->
|
||||
<%end if '''if x = "99" then%>
|
||||
|
||||
<%
|
||||
if cint(print_type) <> 2 and (d_order_cnt = "99" or d_order_cnt = "77") and (tmp_admin_chk = "1" or tmp_request_chk = "1" or int(rsc("login_p_no")) = int(Session("User_Number"))) then
|
||||
%>
|
||||
<!-- #include file = "inc_print.asp" -->
|
||||
<%end if%>
|
||||
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td colspan="2" style="padding:20;">
|
||||
<table cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td><img width = "100%" src="/images/approval/docbg_top.jpg"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="710" align="center" style="padding:10;border-left:1px solid #dedede;border-right:1px solid #dedede;">
|
||||
<table width="95%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td colspan="5" style="padding:0 0 10 0">
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<td width="255"><img src="/images/approval/doc_stit13_4.jpg"></td>
|
||||
<td>
|
||||
<!-- #include file = "inc_approval2.asp" -->
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr height="24">
|
||||
<td align="center" colspan="5" style="font-size:12px;"><3E><><EFBFBD><EFBFBD><EFBFBD>ޱ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
</tr>
|
||||
<tr height="25">
|
||||
<td width="15%" align="center" class='tit2'><3E><><EFBFBD><EFBFBD>ó</td>
|
||||
<td width="35%" class='tit7'>
|
||||
<font class="tahoma">
|
||||
<%=gap(1)%>
|
||||
<%tmpstr = split(gap(2),"-")%>
|
||||
Tel.
|
||||
<%=tmpstr(0)%> - <%=tmpstr(1)%> - <%=tmpstr(2)%>
|
||||
</font>
|
||||
</td>
|
||||
<td width="15%" align="center" class='tit2' rowspan="4"><3E><><EFBFBD><EFBFBD><EFBFBD>ޱ<EFBFBD> <20><><EFBFBD><EFBFBD></td>
|
||||
<td width="35%" align="center" class='tit7' rowspan="4">
|
||||
<%=ViewWord(gap(7))%>
|
||||
</td>
|
||||
</tr>
|
||||
<tr height="25">
|
||||
<td width="15%" align="center" class='tit2'><3E><><EFBFBD><EFBFBD>ó <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="35%" class='tit7'>
|
||||
<font class="tahoma">
|
||||
<%=gap(3)%>
|
||||
</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr height="25">
|
||||
<td width="15%" align="center" class='tit2'><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="35%" class='tit7'>
|
||||
<font class="tahoma">
|
||||
<%=gap(4)%>
|
||||
</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr height="25">
|
||||
<td width="15%" align="center" class='tit2'><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="35%" class='tit7'>
|
||||
<font class="tahoma">
|
||||
<%=gap(5)%>
|
||||
</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr height="25">
|
||||
<td width="15%" align="center" class='tit2'><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="35%" class='tit7'>
|
||||
<font class="tahoma">
|
||||
<%=gap(6)%>
|
||||
</font>
|
||||
</td>
|
||||
<td width="15%" align="center" class='tit2'><3E><></td>
|
||||
<td width="35%" class='tit7' align="right">
|
||||
<font class="tahoma">
|
||||
<%=gap(8)%> <20><>
|
||||
</font>
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
'----------------------------------------------------------------------------------------
|
||||
'### <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD> <20>ش<EFBFBD><D8B4>ϴ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ִٸ<D6B4> <20><>ũ<EFBFBD><C5A9> - 2010<31><30> 1<><31> 26<32><36> <20><><EFBFBD><EFBFBD>
|
||||
query = "SELECT * "
|
||||
query = query & "FROM Document a "
|
||||
query = query & " INNER JOIN <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> b on a.d_no = b.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ "
|
||||
query = query & "WHERE a.d_delok = 'N' "
|
||||
query = query & " AND a.d_name = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' "
|
||||
query = query & " AND b.p_sn = '" & rsc("p_sn") & "' "
|
||||
'Response.Write query & "<BR>"
|
||||
adoRs.open query, adoConn, 1
|
||||
'Response.Write "adoRs.recordcount : " & adoRs.recordcount & "<BR>"
|
||||
if adoRs.recordcount > 0 then
|
||||
'tmp_link = " - <a href='direct_cost_print.asp?p_sn=" & rsc("p_sn") & "' target='_blank' class='blue'><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></a>"
|
||||
tmp_link = "<a href='direct_cost_print.asp?p_sn=" & rsc("p_sn") & "' target='_blank' class='blue'><img src='/images/approval/btn_directcost_view.jpg' align='absmiddle' style='CURSOR:pointer;'></a>"
|
||||
else
|
||||
tmp_link = ""
|
||||
end if
|
||||
adoRs.close
|
||||
'----------------------------------------------------------------------------------------
|
||||
%>
|
||||
<tr height="25">
|
||||
<td width="15%" align="center" class='tit2'><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ</td>
|
||||
<td width="35%" class='tit7'>
|
||||
<font class="tahoma">
|
||||
<%=gap(16)%>(<%=rsc("p_sn")%>) <%=tmp_link%>
|
||||
</font>
|
||||
</td>
|
||||
<td width="15%" align="center" class='tit2'><3E>ΰ<EFBFBD><CEB0><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="35%" class='tit7' align="right">
|
||||
<font class="tahoma">
|
||||
<%=gap(9)%> <20><>
|
||||
</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr height="25">
|
||||
<td width="15%" align="center" class='tit2'><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="35%" class='tit7' align="center">
|
||||
<font class="tahoma">
|
||||
<%=user_name(1)%>
|
||||
</font>
|
||||
</td>
|
||||
<td width="15%" align="center" class='tit2'><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>հ<EFBFBD><D5B0><EFBFBD></td>
|
||||
<td width="35%" class='tit7' align="right">
|
||||
<font class="tahoma">
|
||||
<%=gap(10)%> <20><>
|
||||
</font>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="hidden" name=txt_target08 value="<%=replace(ViewWord(gap(11)),"<br>",chr(13))%>">
|
||||
<table width="95%" cellpadding="3" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr height="15">
|
||||
<td align="center" class='tit2' colspan="4" style="font-size:12px;"><3E><> <20><> <20><> <20><> <20><> <20><> (<28><> <20><> <20><>)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<%
|
||||
tabindex = 10
|
||||
for i=1 to 2 '<27><><EFBFBD>ʺ<EFBFBD>, <20><><EFBFBD>ݺ<EFBFBD>
|
||||
|
||||
tabindex = tabindex + 1
|
||||
%>
|
||||
<td width="15%" align="center" class='tit7'><input type=text readonly value="<%=gap_real(tabindex-11)%>" size="15" id=text1 name=text1></td>
|
||||
<%tabindex = tabindex + 1%>
|
||||
<td width="35%" class='tit7' align="center">
|
||||
<input type=text name="txt_target<%=zeroformat(tabindex,2)%>" OnKeyup="OnlyNumber(this);check_comma();" value="<%=gap_real(tabindex-11)%>" tabindex="<%=tabindex%>"> <3B><>
|
||||
</td>
|
||||
<%
|
||||
next
|
||||
%>
|
||||
</tr>
|
||||
<%for i=1 to 3%>
|
||||
<tr>
|
||||
<%for j=(i-1) * 2+3 to (i-1) * 2+4 '<27>Ӵ<EFBFBD><D3B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
tabindex = tabindex + 1'%>
|
||||
<td width="15%" align="center" class='tit7'><input type=text readonly value="<%=gap_real(tabindex-11)%>" size="15" id=text2 name=text2></td>
|
||||
<%tabindex = tabindex + 1%>
|
||||
<td width="35%" class='tit7' align="center">
|
||||
<input type=text name="txt_target<%=zeroformat(tabindex,2)%>" OnKeyup="OnlyNumber(this);check_comma();" value="<%=gap_real(tabindex-11)%>" tabindex="<%=tabindex%>"> <3B><>
|
||||
</td>
|
||||
<%next%>
|
||||
</tr>
|
||||
<%next%>
|
||||
<%for i=4 to 5%>
|
||||
<tr>
|
||||
<%for j=(i-1) * 2+3 to (i-1) * 2+4 '<27><><EFBFBD><EFBFBD>4<EFBFBD><34>
|
||||
tabindex = tabindex + 1'%>
|
||||
<td width="15%" align="center" class='tit7'><input type=text value="<%=gap_real(tabindex-11)%>" size="15" name='txt_target<%=zeroformat(tabindex,2)%>'></td>
|
||||
<%tabindex = tabindex + 1'%>
|
||||
<td width="35%" class='tit7' align="center">
|
||||
<input type=text name="txt_target<%=zeroformat(tabindex,2)%>" OnKeyup="OnlyNumber(this);check_comma();" value="<%=gap_real(tabindex-11)%>" tabindex="<%=tabindex%>"> <3B><>
|
||||
</td>
|
||||
<%next%>
|
||||
</tr>
|
||||
<%next%>
|
||||
<tr height="15">
|
||||
<td align="center" class='tit2' colspan="4" style="font-size:12px;"><3E><> <20><> <20><> <20><> <20><> <20><> (<28><> <20><> <20><>)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<%
|
||||
for i=13 to 14 '<27>װ<EFBFBD><D7B0><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
tabindex = tabindex + 1
|
||||
%>
|
||||
<td width="15%" align="center" class='tit7'><input type=text readonly value="<%=gap_real(tabindex-11)%>" size="15" id=text3 name=text3></td>
|
||||
<%tabindex = tabindex + 1%>
|
||||
<td width="35%" class='tit7' align="center">
|
||||
<input type=text name="txt_target<%=zeroformat(tabindex,2)%>" OnKeyup="OnlyNumber(this);check_comma();" value="<%=gap_real(tabindex-11)%>" tabindex="<%=tabindex%>"> <3B><>
|
||||
</td>
|
||||
<%
|
||||
next
|
||||
%>
|
||||
</tr>
|
||||
<%for i=7 to 8%>
|
||||
<tr>
|
||||
<%for j=(i-1) * 2+3 to (i-1) * 2+4 '<27><><EFBFBD>ٷ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><>Ÿ<EFBFBD><C5B8><EFBFBD><EFBFBD>
|
||||
tabindex = tabindex + 1'%>
|
||||
<td width="15%" align="center" class='tit7'><input type=text readonly value="<%=gap_real(tabindex-11)%>" size="15" id=text4 name=text4></td>
|
||||
<%tabindex = tabindex + 1'%>
|
||||
<td width="35%" class='tit7' align="center">
|
||||
<input type=text name="txt_target<%=zeroformat(tabindex,2)%>" OnKeyup="OnlyNumber(this);check_comma();" value="<%=gap_real(tabindex-11)%>" tabindex="<%=tabindex%>"> <3B><>
|
||||
</td>
|
||||
<%next%>
|
||||
</tr>
|
||||
<%next%>
|
||||
<tr height="15">
|
||||
<td align="center" class='tit2' colspan="4" style="font-size:12px;"><3E><> <20><> <20><> <20><> <20><> <20><> (<28><> Ÿ)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<%
|
||||
for i=19 to 20
|
||||
tabindex = tabindex + 1
|
||||
%>
|
||||
<td width="15%" align="center" class='tit7'><input type=text value="<%=gap_real(tabindex-11)%>" size="15" name='txt_target<%=zeroformat(tabindex,2)%>' tabindex="<%=tabindex%>"></td>
|
||||
<%tabindex = tabindex + 1%>
|
||||
<td width="35%" class='tit7' align="center">
|
||||
<input type=text name="txt_target<%=zeroformat(tabindex,2)%>" OnKeyup="OnlyNumber(this);check_comma();" value="<%=gap_real(tabindex-11)%>" tabindex="<%=tabindex%>"> <3B><>
|
||||
</td>
|
||||
<%
|
||||
next
|
||||
%>
|
||||
</tr>
|
||||
<%for i=10 to 11%>
|
||||
<tr>
|
||||
<%for j=(i-1) * 2+3 to (i-1) * 2+4
|
||||
tabindex = tabindex + 1'%>
|
||||
<td width="15%" align="center" class='tit7'><input type=text value="<%=gap_real(tabindex-11)%>" size="15" name='txt_target<%=zeroformat(tabindex,2)%>' tabindex="<%=tabindex%>"></td>
|
||||
<%tabindex = tabindex + 1'%>
|
||||
<td width="35%" class='tit7' align="center">
|
||||
<input type=text name="txt_target<%=zeroformat(tabindex,2)%>" OnKeyup="OnlyNumber(this);check_comma();" value="<%=gap_real(tabindex-11)%>" tabindex="<%=tabindex%>"> <3B><>
|
||||
</td>
|
||||
<%next%>
|
||||
</tr>
|
||||
<%next%>
|
||||
<tr height="15">
|
||||
<td align="center" class='tit2' colspan="4" style="font-size:12px;"><3E><> <20><> <20><> <20><></td>
|
||||
</tr>
|
||||
<%tabindex = tabindex + 1'%>
|
||||
<tr height="30">
|
||||
<td align="center" class='tit2' colspan="2"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center" class='tit7' colspan="2">
|
||||
<input type="text" class="gray" style="width:150;text-align:right" readonly name="txt_date_1"OnBlur="OnFormatDate(this)" OnFocus="OnReplaceDate(this)" OnKeyup="OnlyNumber(this)" value="<%=gap_real(59)%>">
|
||||
<!--img src="/images/common/btn_calendar.jpg" align="absmiddle" OnClick="winopn('/include/calendar.html?actval=txt_date_1')" style="CURSOR:pointer;"-->
|
||||
</td>
|
||||
</tr>
|
||||
<tr height="30">
|
||||
<td width="15%" align="center" class='tit2' rowspan="2"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></td>
|
||||
<td width="35%" class='tit2' align="center">
|
||||
<09>ѻ<EFBFBD><D1BB><EFBFBD> <20>ݾ<EFBFBD>
|
||||
</td>
|
||||
<td class='tit7' align="center" colspan="2">
|
||||
<input type="text" class="gray" name="txt_target60" readonly value="<%=formatnumber(gap_real(60),0)%>" > <3B><>
|
||||
</td>
|
||||
</tr>
|
||||
<tr height="30">
|
||||
<td width="35%" class='tit7' align="center">
|
||||
<input type="text" class="gray" name="txt_target61" readonly value="<%=gap_real(61)%>" >
|
||||
</td>
|
||||
<td class='tit7' align="center" colspan="2">
|
||||
<input type="text" class="gray" name="txt_target62" readonly value="<%=formatnumber(gap_real(62),0)%>" > <3B><>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="5" style="padding:10 0 0 0;">
|
||||
<table border="0" cellspacing=0 cellpadding=0 width="100%">
|
||||
<tr>
|
||||
<td class='tit7'>
|
||||
<br>
|
||||
<font class="tahoma">
|
||||
<%=ViewWord(gap(11))%>
|
||||
</font>
|
||||
<br>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- #include file = "inc_reply.asp" -->
|
||||
|
||||
|
||||
|
||||
<%if print_type=2 then%>
|
||||
<tr>
|
||||
<td colspan="4" style="padding:20 0 0 0" align="right">
|
||||
<pre><font class="tahoma"> <09><> <20><> <20><> <20><> : <20><> <20><> <20><></font></pre>
|
||||
<pre><font class="tahoma"> <09><> <20><> <20><> : (<28><>)</font></pre>
|
||||
</td>
|
||||
</tr>
|
||||
<%end if%>
|
||||
<tr>
|
||||
<td colspan="4" align="center" style="padding:15 0 5 0"><!-- #include virtual= "approval/inc_logo.asp" --></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img width = "100%" src="/images/approval/docbg_btm.jpg"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<%
|
||||
'<27><><EFBFBD>α<CEB1><D7B7><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ʒ<EFBFBD><C6B7><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ݵ<EFBFBD><DDB5><EFBFBD> <20><><EFBFBD> <20><>ġ<EFBFBD>ؾ<EFBFBD> <20><>..
|
||||
'<27><><EFBFBD><EFBFBD> <20>ø<EFBFBD><C3B8><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ǵ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>߳<EFBFBD>.
|
||||
%>
|
||||
<input type=hidden readonly name = 'krc_no_estimate' value="<%=krc_no_estimate%>">
|
||||
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
<%
|
||||
end if
|
||||
rsc.Close
|
||||
%>
|
||||
515
ess/doc_prepayment2_print.asp
Normal file
515
ess/doc_prepayment2_print.asp
Normal file
@@ -0,0 +1,515 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
dim tmpstr
|
||||
dim Query
|
||||
dim i
|
||||
dim user_name(4) '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,0:<3A><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD>, 1:<3A≯<EFBFBD>,2:<3A><><EFBFBD><EFBFBD>,3:<3A><>ȭ<EFBFBD><C8AD>ȣ, 4:<3A>μ<EFBFBD><CEBC>ڵ<EFBFBD>(<28><>)
|
||||
dim Max_Width
|
||||
dim title
|
||||
dim Curr_date '<27><><EFBFBD>ó<EFBFBD>¥
|
||||
dim Company(6)
|
||||
dim gap(23)'1:<3A><><EFBFBD><EFBFBD>ó, 2:<3A><><EFBFBD><EFBFBD>ó<EFBFBD><C3B3>ȭ<EFBFBD><C8AD>ȣ, 3:<3A><><EFBFBD><EFBFBD>ó<EFBFBD><C3B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, 4:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, 5:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, 6:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,
|
||||
'7:<3A><><EFBFBD><EFBFBD><EFBFBD>ޱݳ<DEB1><DDB3><EFBFBD>, 8:<3A><><EFBFBD>ް<EFBFBD><DEB0><EFBFBD>, 9:<3A>ΰ<EFBFBD><CEB0><EFBFBD><EFBFBD><EFBFBD>, 10:<3A><><EFBFBD><EFBFBD><EFBFBD>ޱ<EFBFBD><DEB1>հ<EFBFBD><D5B0><EFBFBD>, 11:<3A><><EFBFBD>γ<EFBFBD><CEB3><EFBFBD>, 12:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE>, 13:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE>ȣ
|
||||
'14:<3A><><EFBFBD><EFBFBD><EFBFBD>ޱݳ<DEB1><DDB3><EFBFBD><EFBFBD><EFBFBD> 1<><31>° <20><EFBFBD>, 15:1<><31>°<EFBFBD>ݾ<EFBFBD>
|
||||
'16:<3A><><EFBFBD><EFBFBD><EFBFBD>ޱݳ<DEB1><DDB3><EFBFBD><EFBFBD><EFBFBD> 1<><31>° <20><EFBFBD>, 17:1<><31>°<EFBFBD>ݾ<EFBFBD>
|
||||
'18:<3A><><EFBFBD><EFBFBD><EFBFBD>ޱݳ<DEB1><DDB3><EFBFBD><EFBFBD><EFBFBD> 1<><31>° <20><EFBFBD>, 19:1<><31>°<EFBFBD>ݾ<EFBFBD>
|
||||
'20:<3A><><EFBFBD><EFBFBD><EFBFBD>ޱݳ<DEB1><DDB3><EFBFBD><EFBFBD><EFBFBD> 1<><31>° <20><EFBFBD>, 21:1<><31>°<EFBFBD>ݾ<EFBFBD>
|
||||
'22:<3A><><EFBFBD><EFBFBD><EFBFBD>ޱݳ<DEB1><DDB3><EFBFBD><EFBFBD><EFBFBD> 1<><31>° <20><EFBFBD>, 23:1<><31>°<EFBFBD>ݾ<EFBFBD>
|
||||
dim krc_no
|
||||
dim print_type '1:<3A><><EFBFBD><EFBFBD>, 2:<3A><>¥<EFBFBD><C2A5><EFBFBD><EFBFBD>Ʈ
|
||||
dim db_table_name
|
||||
|
||||
d_no = request("d_no")
|
||||
x = request("x")
|
||||
krc_no = d_no
|
||||
print_type = request("print_type")
|
||||
view_chk= request("view_chk")
|
||||
|
||||
db_table_name = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
|
||||
|
||||
title="<22><><EFBFBD><EFBFBD><EFBFBD>ޱ<EFBFBD><DEB1><EFBFBD><EFBFBD><EFBFBD>"'<27><><EFBFBD>Ǽ<EFBFBD>"
|
||||
Max_Width =750
|
||||
Curr_date = year(date) & "<22><> " & month(date) & "<22><> " & day(date) & "<22><>"
|
||||
|
||||
|
||||
|
||||
|
||||
query = "SELECT * "
|
||||
query = query & "FROM <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> as a "
|
||||
query = query & " INNER JOIN Document as b on a.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = b.d_no "
|
||||
query = query & "WHERE a.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ='" & d_no & "' "
|
||||
if x = "99" then
|
||||
else
|
||||
query = query & " AND b.d_delok = 'N' "
|
||||
end if
|
||||
'Response.Write query
|
||||
rsc.Open query, adoConn, 1
|
||||
if rsc.RecordCount > 0 then
|
||||
|
||||
tmp_date = split(rsc("d_write_date"), "-")
|
||||
Curr_date = tmp_date(0) & "<22><> " & tmp_date(1) & "<22><> " & tmp_date(2) & "<22><>"
|
||||
|
||||
tmp_0 = split(rsc("target97"), "^^")
|
||||
user_name(0) = rsc("login_p_no") '<27><><EFBFBD><EFBFBD>
|
||||
user_name(1) = tmp_0(0) '<27≯<EFBFBD>
|
||||
user_name(2) = tmp_0(1) '<27><><EFBFBD><EFBFBD> <20>ڵ<EFBFBD>
|
||||
user_name(3) = tmp_0(2) '<27><><EFBFBD><EFBFBD> <20><>ȭ
|
||||
user_name(4) = tmp_0(3) '<27>μ<EFBFBD><CEBC>ڵ<EFBFBD>
|
||||
|
||||
tmp_00 = split(rsc("target98"), "^^")
|
||||
Company(1) = tmp_00(0)
|
||||
Company(2) = tmp_00(1)
|
||||
Company(3) = tmp_00(2)
|
||||
Company(4) = tmp_00(3)
|
||||
Company(5) = tmp_00(4)
|
||||
Company(6) = tmp_00(5)
|
||||
|
||||
tmp_7 = split(rsc("target99"), "^^")
|
||||
tmp_8 = split(rsc("target100"), "^^")
|
||||
|
||||
if instr(1,tmp_7(0), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt1 = tmp_7(0)
|
||||
elseif instr(1,tmp_7(0), "<BR>") then
|
||||
tmp_t1 = split(tmp_7(0), "<BR>")
|
||||
tmp_txt1 = "<img src='/images/sign/" & tmp_t1(0) & "_" & tmp_t1(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt1 = tmp_7(0)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(1), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt2 = tmp_7(1)
|
||||
elseif instr(1,tmp_7(1), "<BR>") then
|
||||
tmp_t2 = split(tmp_7(1), "<BR>")
|
||||
tmp_txt2 = "<img src='/images/sign/" & tmp_t2(0) & "_" & tmp_t2(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt2 = tmp_7(1)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(2), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt3 = tmp_7(2)
|
||||
elseif instr(1,tmp_7(2), "<BR>") then
|
||||
tmp_t3 = split(tmp_7(2), "<BR>")
|
||||
tmp_txt3 = "<img src='/images/sign/" & tmp_t3(0) & "_" & tmp_t3(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt3 = tmp_7(2)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(3), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt4 = tmp_7(3)
|
||||
elseif instr(1,tmp_7(3), "<BR>") then
|
||||
tmp_t4 = split(tmp_7(3), "<BR>")
|
||||
tmp_txt4 = "<img src='/images/sign/" & tmp_t4(0) & "_" & tmp_t4(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt4 = tmp_7(3)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(4), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt5 = tmp_7(4)
|
||||
elseif instr(1,tmp_7(4), "<BR>") then
|
||||
tmp_t5 = split(tmp_7(4), "<BR>")
|
||||
tmp_txt5 = "<img src='/images/sign/" & tmp_t5(0) & "_" & tmp_t5(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt5 = tmp_7(4)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(5), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt6 = tmp_7(5)
|
||||
elseif instr(1,tmp_7(5), "<BR>") then
|
||||
tmp_t6 = split(tmp_7(5), "<BR>")
|
||||
tmp_txt6 = "<img src='/images/sign/" & tmp_t6(0) & "_" & tmp_t6(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt6 = tmp_7(5)
|
||||
end if
|
||||
|
||||
tmp_txt7 = tmp_8(0)
|
||||
tmp_txt8 = tmp_8(1)
|
||||
tmp_txt9 = tmp_8(2)
|
||||
tmp_txt10 = tmp_8(3)
|
||||
tmp_txt11 = tmp_8(4)
|
||||
tmp_txt12 = tmp_8(5)
|
||||
|
||||
gap(1) = rsc("target1")
|
||||
gap(2) = rsc("target2")
|
||||
gap(3) = rsc("target3")
|
||||
gap(4) = rsc("target4")
|
||||
gap(5) = rsc("target5")
|
||||
gap(6) = rsc("target6")
|
||||
gap(7) = rsc("target7")
|
||||
gap(8) = rsc("target8")
|
||||
gap(9) = rsc("target9")
|
||||
gap(10) = rsc("target10")
|
||||
gap(11) = rsc("target11")
|
||||
gap(12) = rsc("target12")
|
||||
gap(14) = rsc("target19")
|
||||
gap(15) = rsc("target20")
|
||||
gap(16) = rsc("target21")
|
||||
gap(17) = rsc("target22")
|
||||
gap(18) = rsc("target23")
|
||||
gap(19) = rsc("target24")
|
||||
gap(20) = rsc("target25")
|
||||
gap(21) = rsc("target26")
|
||||
gap(22) = rsc("target27")
|
||||
gap(23) = rsc("target28")
|
||||
|
||||
d_order_cnt = int(rsc("d_order_cnt"))
|
||||
|
||||
|
||||
''<27><><EFBFBD>ڸ<EFBFBD> '-'<27><><EFBFBD><EFBFBD> <20><>,<2C><><EFBFBD><EFBFBD> <20><>ü
|
||||
gap(4) = mid(gap(4),1,4) & "<22><> " & mid(gap(4),6,2) & "<22><> " & mid(gap(4),9,2) & "<22><>"
|
||||
gap(5) = mid(gap(5),1,4) & "<22><> " & mid(gap(5),6,2) & "<22><> " & mid(gap(5),9,2) & "<22><>"
|
||||
for i=1 to 11
|
||||
if trim(gap(i)) ="" then
|
||||
gap(i) = " "
|
||||
end if
|
||||
next
|
||||
''<27>ݾ<EFBFBD><DDBE><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 0<><30><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
for i=8 to 10
|
||||
if gap(i) = " " then
|
||||
gap(i) = "0"
|
||||
end if
|
||||
next
|
||||
|
||||
%>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title><%=GNB_TITLE%></title>
|
||||
<link rel="stylesheet" type="text/css" href="/css/basic.css">
|
||||
</head>
|
||||
|
||||
<script language=javascript>
|
||||
|
||||
function win_close()
|
||||
{
|
||||
window.close();
|
||||
}
|
||||
function win_print()
|
||||
{
|
||||
|
||||
var txt_date_1 = document.ess.txt_date_1.value;
|
||||
var txt_date_2 = document.ess.txt_date_2.value;
|
||||
var txt_target01 = document.ess.txt_target01.value;
|
||||
var txt_target02 = document.ess.txt_target02.value;
|
||||
var txt_target03 = document.ess.txt_target03.value;
|
||||
var txt_target04 = document.ess.txt_target04.value;
|
||||
var txt_target05 = document.ess.txt_target05.value;
|
||||
var txt_target06 = document.ess.txt_target06.value;
|
||||
var txt_target07 = document.ess.txt_target07.value;
|
||||
var txt_target08 = document.ess.txt_target08.value;
|
||||
var txt_tel_num_1 = document.ess.txt_tel_num_1.value;
|
||||
var txt_tel_num_2 = document.ess.txt_tel_num_2.value;
|
||||
var txt_tel_num_3 = document.ess.txt_tel_num_3.value;
|
||||
|
||||
var url = "doc_prepayment2_print.asp";
|
||||
/*
|
||||
url = url + "?txt_date_1=" + txt_date_1;
|
||||
url = url + "&txt_date_2=" + txt_date_2;
|
||||
url = url + "&txt_target01=" + txt_target01;
|
||||
url = url + "&txt_target02=" + txt_target02;
|
||||
url = url + "&txt_target03=" + txt_target03;
|
||||
url = url + "&txt_target04=" + txt_target04;
|
||||
url = url + "&txt_target05=" + txt_target05;
|
||||
url = url + "&txt_target06=" + txt_target06;
|
||||
url = url + "&txt_target07=" + txt_target07;
|
||||
url = url + "&txt_target08=" + txt_target08;
|
||||
url = url + "&txt_tel_num_1=" + txt_tel_num_1;
|
||||
url = url + "&txt_tel_num_2=" + txt_tel_num_2;
|
||||
url = url + "&txt_tel_num_3=" + txt_tel_num_3;
|
||||
*/
|
||||
url = url + "?print_type=2";
|
||||
|
||||
|
||||
document.ess.action=url;
|
||||
document.ess.submit();
|
||||
}
|
||||
|
||||
|
||||
|
||||
function print_ie()
|
||||
{
|
||||
|
||||
//
|
||||
if(navigator.userAgent.toLowerCase().indexOf('chrome') > -1){ // Chrome Browser Detected?
|
||||
window.PPClose = false; // Clear Close Flag
|
||||
window.onbeforeunload = function(){ // Before Window Close Event
|
||||
if(window.PPClose === false){ // Close not OK?
|
||||
return 'Leaving this page will block the parent window!\nPlease select "Stay on this Page option" and use the\nCancel button instead to close the Print Preview Window.\n';
|
||||
}
|
||||
}
|
||||
window.print(); // Print preview
|
||||
window.PPClose = true; // Set Close Flag to OK.
|
||||
}else{
|
||||
window.print();
|
||||
window.close();
|
||||
}
|
||||
}
|
||||
|
||||
function clsit()
|
||||
{
|
||||
alert('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>û <20>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>');
|
||||
// self.close();
|
||||
}
|
||||
|
||||
function subit(a, b)
|
||||
{
|
||||
var tmp_txt;
|
||||
var approve_pass;
|
||||
|
||||
if (a == 1)
|
||||
{
|
||||
tmp_txt = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ";
|
||||
approve_pass = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
tmp_txt = "";
|
||||
}
|
||||
|
||||
if (confirm(tmp_txt + "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?"))
|
||||
{
|
||||
//document.ess.action = "allow_ok.asp?approve_pass="+approve_pass;
|
||||
document.ess.action = "allow_ok.asp?approve_pass="+approve_pass+"&tmp_pass_psn="+b+"&title="+"<%=replace(title," ","")%>";
|
||||
document.ess.submit();
|
||||
}
|
||||
}
|
||||
|
||||
function backit(a)
|
||||
{
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ۼ<EFBFBD><DBBC><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>");
|
||||
var url = "reason.asp?d_no="+a;
|
||||
window.open(url,'','left=0,top=0,width=400,height=150,scrollbars=yes,resizable=yes')
|
||||
}
|
||||
|
||||
|
||||
//-->
|
||||
|
||||
</script>
|
||||
|
||||
<body topmargin="10" leftmargin="10" <%if cint(print_type) = 2 then%> onLoad="print_ie();" <% end if %>>
|
||||
|
||||
<form method='post' name='ess'>
|
||||
|
||||
<input type="hidden" name="d_no" value="<%=d_no%>">
|
||||
<input type=hidden name = "txt_target01" value="<%=gap(1)%>">
|
||||
<%tmpstr = split(gap(2),"-")%>
|
||||
<input type=hidden name = "txt_tel_num_1" value="<%=tmpstr(0)%>">
|
||||
<input type=hidden name = "txt_tel_num_2" value="<%=tmpstr(1)%>">
|
||||
<input type=hidden name = "txt_tel_num_3" value="<%=tmpstr(2)%>">
|
||||
<input type=hidden name = "txt_target02" value="<%=gap(3)%>">
|
||||
<input type=hidden name = "txt_date_1" value="<%=gap(4)%>">
|
||||
<input type=hidden name = "txt_date_2" value="<%=gap(5)%>">
|
||||
|
||||
<input type=hidden name = "txt_target03" value="<%=gap(6)%>">
|
||||
<input type=hidden name = "txt_target04" value="<%=gap(7)%>">
|
||||
<input type=hidden name = "txt_target05" value="<%=gap(8)%>">
|
||||
<input type=hidden name = "txt_target06" value="<%=gap(9)%>">
|
||||
<input type=hidden name = "txt_target07" value="<%=gap(10)%>">
|
||||
<input type=hidden name = "txt_target08" value="<%=gap(11)%>">
|
||||
|
||||
<%if x = "99" then%>
|
||||
<!-- #include file = "inc_delreason.asp" -->
|
||||
<%end if '''if x = "99" then%>
|
||||
|
||||
<%
|
||||
if cint(print_type) <> 2 and (d_order_cnt = "99" or d_order_cnt = "77") and (tmp_admin_chk = "1" or tmp_request_chk = "1" or int(rsc("login_p_no")) = int(Session("User_Number"))) then
|
||||
%>
|
||||
<!-- #include file = "inc_print.asp" -->
|
||||
<%end if%>
|
||||
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td colspan="2" style="padding:20;">
|
||||
<table cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td><img width="100%" src="/images/approval/docbg_top.jpg"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="710" align="center" style="padding:10;border-left:1px solid #dedede;border-right:1px solid #dedede;">
|
||||
<table width="95%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td colspan="5" style="padding:0 0 10 0">
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<td width="255"><img src="/images/approval/doc_stit13_3.jpg"></td>
|
||||
<td>
|
||||
<!-- #include file = "inc_approval2.asp" -->
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr height="24">
|
||||
<td align="center" colspan="5" style="font-size:12px;"><3E><><EFBFBD><EFBFBD><EFBFBD>ޱ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="15%" align="center" class='tit2'><3E><><EFBFBD><EFBFBD>ó</td>
|
||||
<td width="35%" class='tit7'>
|
||||
<font class="tahoma">
|
||||
<%=gap(1)%>
|
||||
<%tmpstr = split(gap(2),"-")%>
|
||||
Tel.
|
||||
<%=tmpstr(0)%> - <%=tmpstr(1)%> - <%=tmpstr(2)%>
|
||||
</font>
|
||||
</td>
|
||||
<td width="15%" align="center" class='tit2' rowspan="4"><3E><><EFBFBD><EFBFBD><EFBFBD>ޱ<EFBFBD> <20><><EFBFBD><EFBFBD></td>
|
||||
<td width="35%" align="center" class='tit7' rowspan="4">
|
||||
<%if not (trim(gap(7)) = " " or trim(gap(7)) = "") then%>
|
||||
<%=ViewWord(gap(7))%>
|
||||
<%else%>
|
||||
<table width="100%" cellpadding="3" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<td width="60%" class='tit2' align="center"><3E><EFBFBD></td>
|
||||
<td width="40%" class='tit2' align="center"><3E>ݾ<EFBFBD></td>
|
||||
</tr>
|
||||
<%for i=1 to 5%>
|
||||
<tr>
|
||||
<%if trim(gap(14+((i-1)*2))) = "" then%>
|
||||
<td class='tit7'> </td>
|
||||
<td class='tit7'> </td>
|
||||
<% else %>
|
||||
<td class='tit7'><font class="tahoma"><%=gap(14+((i-1)*2))%></font></td>
|
||||
<td class='tit7' align="right"><font class="tahoma"><3E><> <%=gap(15+((i-1)*2))%></font></td>
|
||||
<% end if %>
|
||||
</tr>
|
||||
<%next%>
|
||||
</table>
|
||||
<%end if%>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="15%" align="center" class='tit2'><3E><><EFBFBD><EFBFBD>ó <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="35%" class='tit7'>
|
||||
<font class="tahoma">
|
||||
<%=gap(3)%>
|
||||
</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="15%" align="center" class='tit2'><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="35%" class='tit7'>
|
||||
<font class="tahoma">
|
||||
<%=gap(4)%>
|
||||
</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="15%" align="center" class='tit2'><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="35%" class='tit7'>
|
||||
<font class="tahoma">
|
||||
<%=gap(5)%>
|
||||
</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr height="30">
|
||||
<td width="15%" align="center" class='tit2'><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="35%" class='tit7'>
|
||||
<font class="tahoma">
|
||||
<%=gap(6)%>
|
||||
</font>
|
||||
</td>
|
||||
<td width="15%" align="center" class='tit2'><3E><><EFBFBD>ް<EFBFBD><DEB0><EFBFBD></td>
|
||||
<td width="35%" class='tit7' align="right">
|
||||
<font class="tahoma">
|
||||
<%=gap(8)%> <20><>
|
||||
</font>
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
'----------------------------------------------------------------------------------------
|
||||
'### <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD> <20>ش<EFBFBD><D8B4>ϴ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ִٸ<D6B4> <20><>ũ<EFBFBD><C5A9> - 2010<31><30> 1<><31> 26<32><36> <20><><EFBFBD><EFBFBD>
|
||||
query = "SELECT * "
|
||||
query = query & "FROM Document a "
|
||||
query = query & " INNER JOIN <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> b on a.d_no = b.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ "
|
||||
query = query & "WHERE a.d_delok = 'N' "
|
||||
query = query & " AND a.d_name = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' "
|
||||
query = query & " AND b.p_sn = '" & rsc("p_sn") & "' "
|
||||
'Response.Write query & "<BR>"
|
||||
adoRs.open query, adoConn, 1
|
||||
'Response.Write "adoRs.recordcount : " & adoRs.recordcount & "<BR>"
|
||||
if adoRs.recordcount > 0 then
|
||||
'tmp_link = " - <a href='direct_cost_print.asp?p_sn=" & rsc("p_sn") & "' target='_blank' class='blue'><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></a>"
|
||||
tmp_link = "<a href='direct_cost_print.asp?p_sn=" & rsc("p_sn") & "' target='_blank' class='blue'><img src='/images/approval/btn_directcost_view.jpg' align='absmiddle' style='CURSOR:pointer;'></a>"
|
||||
else
|
||||
tmp_link = ""
|
||||
end if
|
||||
adoRs.close
|
||||
'----------------------------------------------------------------------------------------
|
||||
%>
|
||||
<tr height="30">
|
||||
<td width="15%" align="center" class='tit2'><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ</td>
|
||||
<td width="35%" class='tit7'>
|
||||
<font class="tahoma">
|
||||
<%=gap(12)%>(<%=rsc("p_sn")%>) <%=tmp_link%>
|
||||
</font>
|
||||
</td>
|
||||
<td width="15%" align="center" class='tit2'><3E>ΰ<EFBFBD><CEB0><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="35%" class='tit7' align="right">
|
||||
<font class="tahoma">
|
||||
<%=gap(9)%> <20><>
|
||||
</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr height="30">
|
||||
<td width="15%" align="center" class='tit2'><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="35%" class='tit7' align="center">
|
||||
<font class="tahoma">
|
||||
<%=user_name(1)%>
|
||||
</font>
|
||||
</td>
|
||||
<td width="15%" align="center" class='tit2'><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>հ<EFBFBD><D5B0><EFBFBD></td>
|
||||
<td width="35%" class='tit7' align="right">
|
||||
<font class="tahoma">
|
||||
<%=gap(10)%> <20><>
|
||||
</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="5" style="padding:10 0 0 0;">
|
||||
<table border="0" cellspacing=0 cellpadding=0 width="100%">
|
||||
<tr>
|
||||
<td class='tit7'>
|
||||
<br>
|
||||
<font class="tahoma">
|
||||
<%=ViewWord(gap(11))%>
|
||||
</font>
|
||||
<br>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<!-- #include file = "inc_reply.asp" -->
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td colspan="5" style="padding:20 0 0 0" align="right">
|
||||
<pre><font class="tahoma"> <09><> <20><> <20><> <20><> : <20><> <20><> <20><></font></pre>
|
||||
<pre><font class="tahoma"> <09><> <20><> <20><> : (<28><>)</font></pre>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="5" align="center" style="padding:15 0 5 0"><!-- #include virtual= "approval/inc_logo.asp" --></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img width="100%" src="/images/approval/docbg_btm.jpg"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
<%
|
||||
end if
|
||||
rsc.Close
|
||||
%>
|
||||
186
ess/doc_rev_ajax.asp
Normal file
186
ess/doc_rev_ajax.asp
Normal file
@@ -0,0 +1,186 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
Response.CharSet = "EUC-KR" '<27>ѱ<EFBFBD>
|
||||
Response.AddHeader "Pragma","no-cache"
|
||||
Response.AddHeader "cache-control", "no-staff"
|
||||
Response.Expires = -1
|
||||
|
||||
d_no = Request("d_no")
|
||||
today = Request("today")
|
||||
|
||||
Select Case Request("command")
|
||||
Case "revReqApproval"
|
||||
query = ""
|
||||
query = query & " UPDATE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Set remark2 = '"& Session("user_Number") &"', remark3 = '"& tmp_ess(4, 2) &"' "
|
||||
query = query & " , remark12 = '"& today &"' "
|
||||
If cstr(Session("user_Number")) = cstr(tmp_ess(4, 2)) Then
|
||||
query = query & " , remark1 = '77' "
|
||||
query = query & " , remark13 = '"& today &"' "
|
||||
End If
|
||||
query = query & " WHERE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '" & d_no & "' "
|
||||
|
||||
adoConn.Execute query, i
|
||||
|
||||
if i = 1 Then
|
||||
If cstr(Session("user_Number")) = cstr(tmp_ess(4, 2)) Then
|
||||
Response.Write "2"
|
||||
Else
|
||||
Response.Write "1"
|
||||
End If
|
||||
Else
|
||||
Response.Write "0"
|
||||
End If
|
||||
|
||||
Case "revCompApproval"
|
||||
query = ""
|
||||
query = query & " UPDATE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Set remark3 = '"& Session("user_Number") &"', remark1 = '77' "
|
||||
query = query & " , remark13 = '"& today &"' "
|
||||
query = query & " WHERE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '" & d_no & "' "
|
||||
|
||||
adoConn.Execute query, i
|
||||
|
||||
if i = 1 Then
|
||||
Response.Write "1"
|
||||
Else
|
||||
Response.Write "0"
|
||||
End If
|
||||
|
||||
Case "revIngApproval"
|
||||
query = " "
|
||||
query = query & " SELECT isnull(convert(varchar, remark"& Request("appoval_level") &"), '') As req_p_no, "
|
||||
query = query & " isnull(convert(varchar, remark1"& Request("appoval_level") &"), '') As req_day, "
|
||||
query = query & " isnull(convert(varchar, remark1), '') As req_order "
|
||||
query = query & " FROM <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> WITH(NOLOCK) "
|
||||
query = query & " WHERE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '" & d_no & "' "
|
||||
|
||||
Adors.Open query, adoConn, 1
|
||||
if Adors.recordCount > 0 Then
|
||||
req_p_no = Adors("req_p_no")
|
||||
req_day = Adors("req_day")
|
||||
req_order = Adors("req_order")
|
||||
Else
|
||||
Response.Write "0"
|
||||
Response.End
|
||||
End If
|
||||
Adors.close
|
||||
|
||||
query = " "
|
||||
query = query & " SELECT p_name "
|
||||
query = query & " FROM Person WITH(NOLOCK) "
|
||||
query = query & " WHERE p_no = '" & req_p_no & "' "
|
||||
|
||||
Adors.Open query, adoConn, 1
|
||||
if Adors.recordCount > 0 Then
|
||||
req_p_name = Adors("p_name")
|
||||
Else
|
||||
Response.Write "0"
|
||||
Response.End
|
||||
End If
|
||||
Adors.close
|
||||
|
||||
if Request("appoval_level") = "2" And req_p_no = cstr(tmp_ess(4, 2)) Then
|
||||
Response.Write "0"
|
||||
Elseif Request("appoval_level") = "3" And req_order = "3" Then
|
||||
Response.Write "0"
|
||||
Else
|
||||
if req_p_no <> "" And req_p_name <> "" Then
|
||||
Response.Write "{""imgFile"":"""& req_p_name & "_" & req_p_no &""",""day"":"""& req_day &"""}"
|
||||
End If
|
||||
End If
|
||||
|
||||
Case "revIReqApproval"
|
||||
query = ""
|
||||
query = query & " UPDATE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Set remark21 = '"& Session("user_Number") &"', remark22 = '"& tmp_ess(4, 2) &"' "
|
||||
query = query & " , remark24 = '"& today &"', target10='', target17='' "
|
||||
If cstr(Session("user_Number")) = cstr(tmp_ess(4, 2)) Then
|
||||
query = query & " , remark1 = '77' "
|
||||
query = query & " , remark25 = '"& today &"' "
|
||||
End If
|
||||
query = query & " WHERE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '" & d_no & "' "
|
||||
|
||||
adoConn.Execute query, i
|
||||
|
||||
if i = 1 Then
|
||||
If cstr(Session("user_Number")) = cstr(tmp_ess(4, 2)) Then
|
||||
Response.Write "2"
|
||||
Else
|
||||
Response.Write "1"
|
||||
End If
|
||||
Else
|
||||
Response.Write "0"
|
||||
End If
|
||||
|
||||
Case "revICompApproval"
|
||||
query = ""
|
||||
query = query & " UPDATE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Set remark22 = '"& Session("user_Number") &"', remark1 = '77' "
|
||||
query = query & " , remark25 = '"& today &"' "
|
||||
query = query & " WHERE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '" & d_no & "' "
|
||||
|
||||
adoConn.Execute query, i
|
||||
|
||||
if i = 1 Then
|
||||
Response.Write "1"
|
||||
Else
|
||||
Response.Write "0"
|
||||
End If
|
||||
|
||||
Case "revIIngApproval"
|
||||
|
||||
' --- <20>߰<EFBFBD> <20><><EFBFBD><EFBFBD> ---
|
||||
Dim level, remarkDayCol
|
||||
level = CInt(Request("appoval_level"))
|
||||
|
||||
Select Case level
|
||||
Case 21: remarkDayCol = "remark24"
|
||||
Case 22: remarkDayCol = "remark25"
|
||||
Case 23: remarkDayCol = "remark26"
|
||||
Case Else: remarkDayCol = "remark1" & level
|
||||
End Select
|
||||
' --- <20>߰<EFBFBD> <20><> ---
|
||||
|
||||
query = " "
|
||||
query = query & " SELECT isnull(convert(varchar, remark"& Request("appoval_level") &"), '') As req_p_no, "
|
||||
query = query & " isnull(convert(varchar, " & remarkDayCol & "), '') As req_day, "
|
||||
query = query & " isnull(convert(varchar, remark1), '') As req_order "
|
||||
query = query & " FROM <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> WITH(NOLOCK) "
|
||||
query = query & " WHERE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '" & d_no & "' "
|
||||
|
||||
Adors.Open query, adoConn, 1
|
||||
if Adors.recordCount > 0 Then
|
||||
req_p_no = Adors("req_p_no")
|
||||
req_day = Adors("req_day")
|
||||
req_order = Adors("req_order")
|
||||
Else
|
||||
Response.Write "0"
|
||||
Response.End
|
||||
End If
|
||||
Adors.close
|
||||
|
||||
query = " "
|
||||
query = query & " SELECT p_name "
|
||||
query = query & " FROM Person WITH(NOLOCK) "
|
||||
query = query & " WHERE p_no = '" & req_p_no & "' "
|
||||
|
||||
Adors.Open query, adoConn, 1
|
||||
if Adors.recordCount > 0 Then
|
||||
req_p_name = Adors("p_name")
|
||||
Else
|
||||
Response.Write "0"
|
||||
Response.End
|
||||
End If
|
||||
Adors.close
|
||||
|
||||
if Request("appoval_level") = "21" And req_p_no = cstr(tmp_ess(4, 2)) Then
|
||||
Response.Write "0"
|
||||
Elseif Request("appoval_level") = "22" And req_order = "3" Then
|
||||
Response.Write "0"
|
||||
Else
|
||||
if req_p_no <> "" And req_p_name <> "" Then
|
||||
Response.Write "{""imgFile"":"""& req_p_name & "_" & req_p_no &""",""day"":"""& req_day &"""}"
|
||||
End If
|
||||
End If
|
||||
|
||||
Case Else
|
||||
Response.Write "0"
|
||||
End Select
|
||||
%>
|
||||
94
ess/doc_rev_ajax.asp_250916_cns
Normal file
94
ess/doc_rev_ajax.asp_250916_cns
Normal file
@@ -0,0 +1,94 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
Response.CharSet = "EUC-KR" '<27>ѱ<EFBFBD>
|
||||
Response.AddHeader "Pragma","no-cache"
|
||||
Response.AddHeader "cache-control", "no-staff"
|
||||
Response.Expires = -1
|
||||
|
||||
d_no = Request("d_no")
|
||||
today = Request("today")
|
||||
|
||||
Select Case Request("command")
|
||||
Case "revReqApproval"
|
||||
query = ""
|
||||
query = query & " UPDATE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Set remark2 = '"& Session("user_Number") &"', remark3 = '"& tmp_ess(4, 2) &"' "
|
||||
query = query & " , remark12 = '"& today &"' "
|
||||
If cstr(Session("user_Number")) = cstr(tmp_ess(4, 2)) Then
|
||||
query = query & " , remark1 = '77' "
|
||||
query = query & " , remark13 = '"& today &"' "
|
||||
End If
|
||||
query = query & " WHERE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '" & d_no & "' "
|
||||
|
||||
adoConn.Execute query, i
|
||||
|
||||
if i = 1 Then
|
||||
If cstr(Session("user_Number")) = cstr(tmp_ess(4, 2)) Then
|
||||
Response.Write "2"
|
||||
Else
|
||||
Response.Write "1"
|
||||
End If
|
||||
Else
|
||||
Response.Write "0"
|
||||
End If
|
||||
|
||||
Case "revCompApproval"
|
||||
query = ""
|
||||
query = query & " UPDATE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Set remark3 = '"& Session("user_Number") &"', remark1 = '77' "
|
||||
query = query & " , remark13 = '"& today &"' "
|
||||
query = query & " WHERE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '" & d_no & "' "
|
||||
|
||||
adoConn.Execute query, i
|
||||
|
||||
if i = 1 Then
|
||||
Response.Write "1"
|
||||
Else
|
||||
Response.Write "0"
|
||||
End If
|
||||
|
||||
Case "revIngApproval"
|
||||
query = " "
|
||||
query = query & " SELECT isnull(convert(varchar, remark"& Request("appoval_level") &"), '') As req_p_no, "
|
||||
query = query & " isnull(convert(varchar, remark1"& Request("appoval_level") &"), '') As req_day, "
|
||||
query = query & " isnull(convert(varchar, remark1), '') As req_order "
|
||||
query = query & " FROM <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> WITH(NOLOCK) "
|
||||
query = query & " WHERE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '" & d_no & "' "
|
||||
|
||||
Adors.Open query, adoConn, 1
|
||||
if Adors.recordCount > 0 Then
|
||||
req_p_no = Adors("req_p_no")
|
||||
req_day = Adors("req_day")
|
||||
req_order = Adors("req_order")
|
||||
Else
|
||||
Response.Write "0"
|
||||
Response.End
|
||||
End If
|
||||
Adors.close
|
||||
|
||||
query = " "
|
||||
query = query & " SELECT p_name "
|
||||
query = query & " FROM Person WITH(NOLOCK) "
|
||||
query = query & " WHERE p_no = '" & req_p_no & "' "
|
||||
|
||||
Adors.Open query, adoConn, 1
|
||||
if Adors.recordCount > 0 Then
|
||||
req_p_name = Adors("p_name")
|
||||
Else
|
||||
Response.Write "0"
|
||||
Response.End
|
||||
End If
|
||||
Adors.close
|
||||
|
||||
if Request("appoval_level") = "2" And req_p_no = cstr(tmp_ess(4, 2)) Then
|
||||
Response.Write "0"
|
||||
Elseif Request("appoval_level") = "3" And req_order = "3" Then
|
||||
Response.Write "0"
|
||||
Else
|
||||
if req_p_no <> "" And req_p_name <> "" Then
|
||||
Response.Write "{""imgFile"":"""& req_p_name & "_" & req_p_no &""",""day"":"""& req_day &"""}"
|
||||
End If
|
||||
End If
|
||||
|
||||
Case Else
|
||||
Response.Write "0"
|
||||
End Select
|
||||
%>
|
||||
186
ess/doc_rev_ajax.asp_250917_cns
Normal file
186
ess/doc_rev_ajax.asp_250917_cns
Normal file
@@ -0,0 +1,186 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
Response.CharSet = "EUC-KR" '<27>ѱ<EFBFBD>
|
||||
Response.AddHeader "Pragma","no-cache"
|
||||
Response.AddHeader "cache-control", "no-staff"
|
||||
Response.Expires = -1
|
||||
|
||||
d_no = Request("d_no")
|
||||
today = Request("today")
|
||||
|
||||
Select Case Request("command")
|
||||
Case "revReqApproval"
|
||||
query = ""
|
||||
query = query & " UPDATE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Set remark2 = '"& Session("user_Number") &"', remark3 = '"& tmp_ess(4, 2) &"' "
|
||||
query = query & " , remark12 = '"& today &"' "
|
||||
If cstr(Session("user_Number")) = cstr(tmp_ess(4, 2)) Then
|
||||
query = query & " , remark1 = '77' "
|
||||
query = query & " , remark13 = '"& today &"' "
|
||||
End If
|
||||
query = query & " WHERE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '" & d_no & "' "
|
||||
|
||||
adoConn.Execute query, i
|
||||
|
||||
if i = 1 Then
|
||||
If cstr(Session("user_Number")) = cstr(tmp_ess(4, 2)) Then
|
||||
Response.Write "2"
|
||||
Else
|
||||
Response.Write "1"
|
||||
End If
|
||||
Else
|
||||
Response.Write "0"
|
||||
End If
|
||||
|
||||
Case "revCompApproval"
|
||||
query = ""
|
||||
query = query & " UPDATE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Set remark3 = '"& Session("user_Number") &"', remark1 = '77' "
|
||||
query = query & " , remark13 = '"& today &"' "
|
||||
query = query & " WHERE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '" & d_no & "' "
|
||||
|
||||
adoConn.Execute query, i
|
||||
|
||||
if i = 1 Then
|
||||
Response.Write "1"
|
||||
Else
|
||||
Response.Write "0"
|
||||
End If
|
||||
|
||||
Case "revIngApproval"
|
||||
query = " "
|
||||
query = query & " SELECT isnull(convert(varchar, remark"& Request("appoval_level") &"), '') As req_p_no, "
|
||||
query = query & " isnull(convert(varchar, remark1"& Request("appoval_level") &"), '') As req_day, "
|
||||
query = query & " isnull(convert(varchar, remark1), '') As req_order "
|
||||
query = query & " FROM <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> WITH(NOLOCK) "
|
||||
query = query & " WHERE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '" & d_no & "' "
|
||||
|
||||
Adors.Open query, adoConn, 1
|
||||
if Adors.recordCount > 0 Then
|
||||
req_p_no = Adors("req_p_no")
|
||||
req_day = Adors("req_day")
|
||||
req_order = Adors("req_order")
|
||||
Else
|
||||
Response.Write "0"
|
||||
Response.End
|
||||
End If
|
||||
Adors.close
|
||||
|
||||
query = " "
|
||||
query = query & " SELECT p_name "
|
||||
query = query & " FROM Person WITH(NOLOCK) "
|
||||
query = query & " WHERE p_no = '" & req_p_no & "' "
|
||||
|
||||
Adors.Open query, adoConn, 1
|
||||
if Adors.recordCount > 0 Then
|
||||
req_p_name = Adors("p_name")
|
||||
Else
|
||||
Response.Write "0"
|
||||
Response.End
|
||||
End If
|
||||
Adors.close
|
||||
|
||||
if Request("appoval_level") = "2" And req_p_no = cstr(tmp_ess(4, 2)) Then
|
||||
Response.Write "0"
|
||||
Elseif Request("appoval_level") = "3" And req_order = "3" Then
|
||||
Response.Write "0"
|
||||
Else
|
||||
if req_p_no <> "" And req_p_name <> "" Then
|
||||
Response.Write "{""imgFile"":"""& req_p_name & "_" & req_p_no &""",""day"":"""& req_day &"""}"
|
||||
End If
|
||||
End If
|
||||
|
||||
Case "revIReqApproval"
|
||||
query = ""
|
||||
query = query & " UPDATE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Set remark21 = '"& Session("user_Number") &"', remark22 = '"& tmp_ess(4, 2) &"' "
|
||||
query = query & " , remark24 = '"& today &"', target10='', target17='' "
|
||||
If cstr(Session("user_Number")) = cstr(tmp_ess(4, 2)) Then
|
||||
query = query & " , remark1 = '77' "
|
||||
query = query & " , remark25 = '"& today &"' "
|
||||
End If
|
||||
query = query & " WHERE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '" & d_no & "' "
|
||||
|
||||
adoConn.Execute query, i
|
||||
|
||||
if i = 1 Then
|
||||
If cstr(Session("user_Number")) = cstr(tmp_ess(4, 2)) Then
|
||||
Response.Write "2"
|
||||
Else
|
||||
Response.Write "1"
|
||||
End If
|
||||
Else
|
||||
Response.Write "0"
|
||||
End If
|
||||
|
||||
Case "revICompApproval"
|
||||
query = ""
|
||||
query = query & " UPDATE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Set remark22 = '"& Session("user_Number") &"', remark1 = '77' "
|
||||
query = query & " , remark25 = '"& today &"' "
|
||||
query = query & " WHERE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '" & d_no & "' "
|
||||
|
||||
adoConn.Execute query, i
|
||||
|
||||
if i = 1 Then
|
||||
Response.Write "1"
|
||||
Else
|
||||
Response.Write "0"
|
||||
End If
|
||||
|
||||
Case "revIIngApproval"
|
||||
|
||||
' --- <20>߰<EFBFBD> <20><><EFBFBD><EFBFBD> ---
|
||||
Dim level, remarkDayCol
|
||||
level = CInt(Request("appoval_level"))
|
||||
|
||||
Select Case level
|
||||
Case 21: remarkDayCol = "remark24"
|
||||
Case 22: remarkDayCol = "remark25"
|
||||
Case 23: remarkDayCol = "remark26"
|
||||
Case Else: remarkDayCol = "remark1" & level
|
||||
End Select
|
||||
' --- <20>߰<EFBFBD> <20><> ---
|
||||
|
||||
query = " "
|
||||
query = query & " SELECT isnull(convert(varchar, remark"& Request("appoval_level") &"), '') As req_p_no, "
|
||||
query = query & " isnull(convert(varchar, " & remarkDayCol & "), '') As req_day, "
|
||||
query = query & " isnull(convert(varchar, remark1), '') As req_order "
|
||||
query = query & " FROM <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> WITH(NOLOCK) "
|
||||
query = query & " WHERE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '" & d_no & "' "
|
||||
|
||||
Adors.Open query, adoConn, 1
|
||||
if Adors.recordCount > 0 Then
|
||||
req_p_no = Adors("req_p_no")
|
||||
req_day = Adors("req_day")
|
||||
req_order = Adors("req_order")
|
||||
Else
|
||||
Response.Write "0"
|
||||
Response.End
|
||||
End If
|
||||
Adors.close
|
||||
|
||||
query = " "
|
||||
query = query & " SELECT p_name "
|
||||
query = query & " FROM Person WITH(NOLOCK) "
|
||||
query = query & " WHERE p_no = '" & req_p_no & "' "
|
||||
|
||||
Adors.Open query, adoConn, 1
|
||||
if Adors.recordCount > 0 Then
|
||||
req_p_name = Adors("p_name")
|
||||
Else
|
||||
Response.Write "0"
|
||||
Response.End
|
||||
End If
|
||||
Adors.close
|
||||
|
||||
if Request("appoval_level") = "21" And req_p_no = cstr(tmp_ess(4, 2)) Then
|
||||
Response.Write "0"
|
||||
Elseif Request("appoval_level") = "22" And req_order = "" Then
|
||||
Response.Write "0"
|
||||
Else
|
||||
if req_p_no <> "" And req_p_name <> "" Then
|
||||
Response.Write "{""imgFile"":"""& req_p_name & "_" & req_p_no &""",""day"":"""& req_day &"""}"
|
||||
End If
|
||||
End If
|
||||
|
||||
Case Else
|
||||
Response.Write "0"
|
||||
End Select
|
||||
%>
|
||||
331
ess/doc_timeoff_print.asp
Normal file
331
ess/doc_timeoff_print.asp
Normal file
@@ -0,0 +1,331 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
dim tmpstr
|
||||
dim Query
|
||||
dim i
|
||||
dim user_name(4) '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,0:<3A><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD>, 1:<3A≯<EFBFBD>,2:<3A><><EFBFBD><EFBFBD>,3:<3A><>ȭ<EFBFBD><C8AD>ȣ, 4:<3A>μ<EFBFBD><CEBC>ڵ<EFBFBD>(<28><>)
|
||||
dim Max_Width
|
||||
dim title
|
||||
dim target_name '<27>߱<DFB1><DEB4><EFBFBD><EFBFBD><EFBFBD> <20≯<EFBFBD>
|
||||
dim Curr_date '<27><><EFBFBD>ó<EFBFBD>¥
|
||||
dim Company(6)
|
||||
dim gap(3) '3:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, 1:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, 2:<3A><><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD>)<29><> '20110307 : <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ް<EFBFBD><DEB0><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>˻<EFBFBD><CBBB>ϱ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ü
|
||||
dim krc_no
|
||||
dim print_type '1:<3A><><EFBFBD><EFBFBD>, 2:<3A><>¥<EFBFBD><C2A5><EFBFBD><EFBFBD>Ʈ
|
||||
dim db_table_name
|
||||
|
||||
d_no = request("d_no")
|
||||
x = request("x")
|
||||
krc_no = d_no
|
||||
print_type = request("print_type")
|
||||
view_chk= request("view_chk")
|
||||
|
||||
db_table_name = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
|
||||
title="<22><> <20><> <20><>"
|
||||
Max_Width =750
|
||||
Curr_date = year(date) & "<22><> " & zeroformat(month(date),2) & "<22><> " & zeroformat(day(date),2) & "<22><>"
|
||||
|
||||
query = "SELECT * "
|
||||
query = query & "FROM <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> as a "
|
||||
query = query & " INNER JOIN Document as b on a.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = b.d_no "
|
||||
query = query & "WHERE a.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ='" & d_no & "' "
|
||||
if x = "99" then
|
||||
else
|
||||
query = query & " AND b.d_delok = 'N' "
|
||||
end if
|
||||
rsc.Open query, adoConn, 1
|
||||
if rsc.RecordCount > 0 then
|
||||
|
||||
tmp_date = split(rsc("d_write_date"), "-")
|
||||
Curr_date = tmp_date(0) & "<22><> " & tmp_date(1) & "<22><> " & tmp_date(2) & "<22><>"
|
||||
|
||||
tmp_0 = split(rsc("target97"), "^^")
|
||||
user_name(0) = rsc("login_p_no") '<27><><EFBFBD><EFBFBD>
|
||||
user_name(1) = tmp_0(0) '<27≯<EFBFBD>
|
||||
user_name(2) = tmp_0(1) '<27><><EFBFBD><EFBFBD> <20>ڵ<EFBFBD>
|
||||
user_name(3) = tmp_0(2) '<27><><EFBFBD><EFBFBD> <20><>ȭ
|
||||
user_name(4) = tmp_0(3) '<27>μ<EFBFBD><CEBC>ڵ<EFBFBD>
|
||||
|
||||
tmp_00 = split(rsc("target98"), "^^")
|
||||
Company(1) = tmp_00(0)
|
||||
Company(2) = tmp_00(1)
|
||||
Company(3) = tmp_00(2)
|
||||
Company(4) = tmp_00(3)
|
||||
Company(5) = tmp_00(4)
|
||||
Company(6) = tmp_00(5)
|
||||
|
||||
tmp_7 = split(rsc("target99"), "^^")
|
||||
tmp_8 = split(rsc("target100"), "^^")
|
||||
|
||||
if instr(1,tmp_7(0), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt1 = tmp_7(0)
|
||||
elseif instr(1,tmp_7(0), "<BR>") then
|
||||
tmp_t1 = split(tmp_7(0), "<BR>")
|
||||
tmp_txt1 = "<img src='/images/sign/" & tmp_t1(0) & "_" & tmp_t1(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt1 = tmp_7(0)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(1), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt2 = tmp_7(1)
|
||||
elseif instr(1,tmp_7(1), "<BR>") then
|
||||
tmp_t2 = split(tmp_7(1), "<BR>")
|
||||
tmp_txt2 = "<img src='/images/sign/" & tmp_t2(0) & "_" & tmp_t2(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt2 = tmp_7(1)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(2), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt3 = tmp_7(2)
|
||||
elseif instr(1,tmp_7(2), "<BR>") then
|
||||
tmp_t3 = split(tmp_7(2), "<BR>")
|
||||
tmp_txt3 = "<img src='/images/sign/" & tmp_t3(0) & "_" & tmp_t3(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt3 = tmp_7(2)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(3), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt4 = tmp_7(3)
|
||||
elseif instr(1,tmp_7(3), "<BR>") then
|
||||
tmp_t4 = split(tmp_7(3), "<BR>")
|
||||
tmp_txt4 = "<img src='/images/sign/" & tmp_t4(0) & "_" & tmp_t4(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt4 = tmp_7(3)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(4), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt5 = tmp_7(4)
|
||||
elseif instr(1,tmp_7(4), "<BR>") then
|
||||
tmp_t5 = split(tmp_7(4), "<BR>")
|
||||
tmp_txt5 = "<img src='/images/sign/" & tmp_t5(0) & "_" & tmp_t5(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt5 = tmp_7(4)
|
||||
end if
|
||||
|
||||
tmp_txt6 = tmp_8(0)
|
||||
tmp_txt7 = tmp_8(1)
|
||||
tmp_txt8 = tmp_8(2)
|
||||
tmp_txt9 = tmp_8(3)
|
||||
tmp_txt10 = tmp_8(4)
|
||||
|
||||
gap(3) = rsc("target1")
|
||||
gap(1) = rsc("target2")
|
||||
gap(2) = rsc("target3")
|
||||
|
||||
d_order_cnt = int(rsc("d_order_cnt"))
|
||||
|
||||
%>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title><%=GNB_TITLE%></title>
|
||||
<link rel="stylesheet" type="text/css" href="/css/basic.css">
|
||||
</head>
|
||||
|
||||
<script language=javascript>
|
||||
function win_close()
|
||||
{
|
||||
window.close();
|
||||
}
|
||||
function win_print()
|
||||
{
|
||||
url = "doc_timeoff_print.asp?print_type=2";
|
||||
document.ess.action=url;
|
||||
//alert(document.ess.action);
|
||||
document.ess.submit();
|
||||
}
|
||||
|
||||
|
||||
function print_ie()
|
||||
{
|
||||
|
||||
//
|
||||
if(navigator.userAgent.toLowerCase().indexOf('chrome') > -1){ // Chrome Browser Detected?
|
||||
window.PPClose = false; // Clear Close Flag
|
||||
window.onbeforeunload = function(){ // Before Window Close Event
|
||||
if(window.PPClose === false){ // Close not OK?
|
||||
return 'Leaving this page will block the parent window!\nPlease select "Stay on this Page option" and use the\nCancel button instead to close the Print Preview Window.\n';
|
||||
}
|
||||
}
|
||||
window.print(); // Print preview
|
||||
window.PPClose = true; // Set Close Flag to OK.
|
||||
}else{
|
||||
window.print();
|
||||
window.close();
|
||||
}
|
||||
}
|
||||
|
||||
function subit(a, b)
|
||||
{
|
||||
var tmp_txt;
|
||||
var approve_pass;
|
||||
|
||||
if (a == 1)
|
||||
{
|
||||
tmp_txt = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ";
|
||||
approve_pass = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
tmp_txt = "";
|
||||
}
|
||||
|
||||
if (confirm(tmp_txt + "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?"))
|
||||
{
|
||||
document.ess.action = "allow_ok.asp?approve_pass="+approve_pass;
|
||||
document.ess.action = "allow_ok.asp?approve_pass="+approve_pass+"&tmp_pass_psn="+b+"&title="+"<%=replace(title," ","")%>";
|
||||
document.ess.submit();
|
||||
}
|
||||
}
|
||||
|
||||
function backit(a)
|
||||
{
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ۼ<EFBFBD><DBBC><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>");
|
||||
var url = "reason.asp?d_no="+a;
|
||||
window.open(url,'','left=0,top=0,width=400,height=150,scrollbars=yes,resizable=yes')
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
|
||||
<body topmargin="10" leftmargin="10" <%if cint(print_type) = 2 then%> onLoad="win_close2();" <% end if %>>
|
||||
|
||||
<form method='post' name='ess'>
|
||||
|
||||
<input type="hidden" name="d_no" value="<%=d_no%>">
|
||||
|
||||
<input type=hidden name = "txt_reason" value="<%=gap(3)%>">
|
||||
<input type=hidden name = "txt_holiday_start_date" value="<%=gap(1)%>">
|
||||
<input type=hidden name = "txt_holiday_end_date" value="<%=gap(2)%>">
|
||||
|
||||
<%if x = "99" then%>
|
||||
<!-- #include file = "inc_delreason.asp" -->
|
||||
<%end if '''if x = "99" then%>
|
||||
|
||||
<%
|
||||
if cint(print_type) <> 2 and (d_order_cnt = "99" or d_order_cnt = "77") and (tmp_admin_chk = "1" or tmp_request_chk = "1" or int(rsc("login_p_no")) = int(Session("User_Number"))) then
|
||||
%>
|
||||
<!-- #include file = "inc_print.asp" -->
|
||||
<%end if%>
|
||||
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td >
|
||||
<table cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td><img src="/images/approval/docbg_top.jpg"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="710" align="center" style="padding:10;border-left:1px solid #dedede;border-right:1px solid #dedede;">
|
||||
<table width="95%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td colspan="2" style="padding:0 0 10 0">
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<td width="255"><img src="/images/approval/doc_stit05.jpg"></td>
|
||||
<td>
|
||||
<!-- #include file = "inc_approval.asp" -->
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><></b></td>
|
||||
<td width="80%"><%=user_name(1)%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><></b></td>
|
||||
<td width="80%"><%=user_name(4)%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><></b></td>
|
||||
<td width="80%"><%=user_name(2)%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:20 0 10 0;font-size:14;font-family:dotum;"><b><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϰ<EFBFBD><CFB0><EFBFBD> <20>Ͽ<EFBFBD><CFBF><EFBFBD> <20>簡<EFBFBD>Ͽ<EFBFBD> <20>ֽñ<D6BD> <20>ٶ<EFBFBD><D9B6>ϴ<EFBFBD>.</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><> <3B><> <3B><></b></td>
|
||||
<td width="80%"><font class="tahoma"><%=gap(2)%> <<3C><><EFBFBD>ܼ<EFBFBD><DCBC><EFBFBD> <20><><EFBFBD><EFBFBD>÷<EFBFBD><C3B7>></font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></td>
|
||||
<td width="80%"><font class="tahoma"><%=mid(gap(3),1,4)%><3E><> <%=mid(gap(3),6,2)%><3E><> <%=mid(gap(3),9,2)%><3E><></font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></td>
|
||||
<td width="80%"><font class="tahoma"><%=mid(gap(1),1,4)%><3E><> <%=mid(gap(1),6,2)%><3E><> <%=mid(gap(1),9,2)%><3E><></font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b>ó <3B><> <3B><> <3B><></b></td>
|
||||
<td width="80%">
|
||||
<font class="tahoma">
|
||||
<09><><EFBFBD><EFBFBD>( ) / <3B><><EFBFBD><EFBFBD>( )%
|
||||
<<font color="red"><3E>濵<EFBFBD><E6BFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></font>>
|
||||
</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" style="padding:20 0 0 0" align="right">
|
||||
<pre><font class="tahoma"> <09><> û <20><> : <%=Curr_date%></font></pre>
|
||||
<pre><font class="tahoma"> <09><> û <20><> : <%=user_name(1)%> (<28><>)</font></pre>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:15 0 5 0"><!-- #include virtual= "approval/inc_logo.asp" --></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="/images/approval/docbg_btm.jpg"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding:10 0 0 0;" class="brown">
|
||||
<09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>̶<EFBFBD><CCB6><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ؼҵǾ<D2B5> <20><><EFBFBD><EFBFBD><EFBFBD>踦 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>, <20>ɻ縦 <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>.<br>
|
||||
<09><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20>ٰ<EFBFBD><D9B0>Ͽ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20>濵<EFBFBD><E6BFB5><EFBFBD><EFBFBD><EFBFBD>Ƿ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>뺸(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)<29><><EFBFBD><EFBFBD> <20>ƴ<EFBFBD><C6B4>ϸ<EFBFBD><br>   <73><70><EFBFBD><EFBFBD><EFBFBD>ǻ<EFBFBD><C7BB><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> ó<><C3B3><EFBFBD>մϴ<D5B4>.<br>
|
||||
<09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><EFBFBD><DFBB><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 1<><31><EFBFBD>ϰ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>踦 <20>ٽ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20>ֽñ<D6BD> <20>ٶ<EFBFBD><D9B6>ϴ<EFBFBD>.<br>
|
||||
<09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ķ<EFBFBD><C4B6><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ؼҵ<D8BC><D2B5><EFBFBD> <20>ƴ<EFBFBD><C6B4><EFBFBD> <20><><EFBFBD>쿡<EFBFBD><ECBFA1> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>踦 <20><><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>Ǵ<EFBFBD> <20><><EFBFBD><EFBFBD>û<EFBFBD><C3BB> <20>Ͽ<EFBFBD><CFBF><EFBFBD> <20>մϴ<D5B4>.
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
<%
|
||||
end if
|
||||
rsc.Close
|
||||
%>
|
||||
461
ess/doc_vacation_print.asp
Normal file
461
ess/doc_vacation_print.asp
Normal file
@@ -0,0 +1,461 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<!-- #include virtual = "include/holiday_count.asp" -->
|
||||
<%
|
||||
dim tmpstr
|
||||
dim Query
|
||||
dim i
|
||||
dim user_name(4) '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,0:<3A><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD>, 1:<3A≯<EFBFBD>,2:<3A><><EFBFBD><EFBFBD>,3:<3A><>ȭ<EFBFBD><C8AD>ȣ, 4:<3A>μ<EFBFBD><CEBC>ڵ<EFBFBD>(<28><>)
|
||||
dim Max_Width
|
||||
dim title
|
||||
dim target_name '<27>߱<DFB1><DEB4><EFBFBD><EFBFBD><EFBFBD> <20≯<EFBFBD>
|
||||
dim Curr_date '<27><><EFBFBD>ó<EFBFBD>¥
|
||||
dim Company(6)
|
||||
dim gap(27) '1:<3A>ް<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, 2:<3A>ް<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, 3:<3A><><EFBFBD><EFBFBD>, , 26:<3A>༱<EFBFBD><E0BCB1>, 27:<3A><><EFBFBD><EFBFBD><F3BFACB6><EFBFBD>
|
||||
dim krc_no
|
||||
dim print_type '1:<3A><><EFBFBD><EFBFBD>, 2:<3A><>¥<EFBFBD><C2A5><EFBFBD><EFBFBD>Ʈ
|
||||
dim db_table_name
|
||||
|
||||
d_no = request("d_no")
|
||||
x = request("x")
|
||||
krc_no = d_no
|
||||
print_type = request("print_type")
|
||||
view_chk= request("view_chk")
|
||||
clear_chk = request("clear_chk") '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ް<EFBFBD><DEB0><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20>ֵ<EFBFBD><D6B5><EFBFBD> <20>ϴ<EFBFBD> <20><>
|
||||
|
||||
if x = "3" then
|
||||
x = "99"
|
||||
end if
|
||||
|
||||
db_table_name = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
|
||||
title="<22>ް<EFBFBD><DEB0><EFBFBD>"
|
||||
Max_Width =750
|
||||
Curr_date = year(date) & "<22><> " & month(date) & "<22><> " & day(date) & "<22><>"
|
||||
|
||||
|
||||
|
||||
query = "SELECT * "
|
||||
query = query & "FROM <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> as a "
|
||||
query = query & " INNER JOIN Document as b on a.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = b.d_no "
|
||||
query = query & "WHERE a.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ='" & d_no & "' "
|
||||
if x = "99" then
|
||||
else
|
||||
query = query & " AND b.d_delok = 'N' "
|
||||
end if
|
||||
rsc.Open query, adoConn, 1
|
||||
|
||||
if rsc.RecordCount > 0 then
|
||||
|
||||
tmp_date = split(rsc("d_write_date"), "-")
|
||||
Curr_date = tmp_date(0) & "<22><> " & tmp_date(1) & "<22><> " & tmp_date(2) & "<22><>"
|
||||
|
||||
tmp_0 = split(rsc("target97"), "^^")
|
||||
user_name(0) = rsc("login_p_no")
|
||||
user_name(1) = tmp_0(0) '<27≯<EFBFBD>
|
||||
user_name(2) = tmp_0(1) '<27><><EFBFBD><EFBFBD> <20>ڵ<EFBFBD>
|
||||
user_name(3) = tmp_0(2) '<27><><EFBFBD><EFBFBD> <20><>ȭ
|
||||
user_name(4) = tmp_0(3) '<27>μ<EFBFBD><CEBC>ڵ<EFBFBD>
|
||||
|
||||
tmp_00 = split(rsc("target98"), "^^")
|
||||
Company(1) = tmp_00(0)
|
||||
Company(2) = tmp_00(1)
|
||||
Company(3) = tmp_00(2)
|
||||
Company(4) = tmp_00(3)
|
||||
Company(5) = tmp_00(4)
|
||||
Company(6) = tmp_00(5)
|
||||
|
||||
gap(1) = rsc("target1")
|
||||
gap(2) = rsc("target2")
|
||||
gap(3) = rsc("target3")
|
||||
|
||||
tmp_1 = split(rsc("target4"), "^^")
|
||||
gap(4) = tmp_1(0)
|
||||
gap(5) = tmp_1(1)
|
||||
|
||||
tmp_2 = split(rsc("target5"), "^^")
|
||||
gap(6) = tmp_2(0)
|
||||
gap(7) = tmp_2(1)
|
||||
gap(8) = tmp_2(2)
|
||||
|
||||
tmp_3 = split(rsc("target6"), "^^")
|
||||
gap(9) = tmp_3(0)
|
||||
gap(10) = tmp_3(1)
|
||||
gap(11) = tmp_3(2)
|
||||
gap(12) = tmp_3(3)
|
||||
gap(13) = tmp_3(4)
|
||||
|
||||
gap(14) = rsc("target7")
|
||||
|
||||
tmp_4 = split(rsc("target8"), "^^")
|
||||
gap(15) = tmp_4(0)
|
||||
gap(16) = tmp_4(1)
|
||||
gap(17) = tmp_4(2)
|
||||
|
||||
tmp_5 = split(rsc("target9"), "^^")
|
||||
gap(18) = tmp_5(0)
|
||||
gap(19) = tmp_5(1)
|
||||
|
||||
gap(20) = rsc("target10")
|
||||
|
||||
gap(26) = rsc("target11")
|
||||
gap(27) = rsc("target12")
|
||||
|
||||
tmp_7 = split(rsc("target99"), "^^")
|
||||
tmp_8 = split(rsc("target100"), "^^")
|
||||
|
||||
|
||||
if instr(1,tmp_7(0), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt1 = tmp_7(0)
|
||||
elseif instr(1,tmp_7(0), "<BR>") then
|
||||
tmp_t1 = split(tmp_7(0), "<BR>")
|
||||
tmp_txt1 = "<img src='/images/sign/" & tmp_t1(0) & "_" & tmp_t1(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt1 = tmp_7(0)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(1), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt2 = tmp_7(1)
|
||||
elseif instr(1,tmp_7(1), "<BR>") then
|
||||
tmp_t2 = split(tmp_7(1), "<BR>")
|
||||
tmp_txt2 = "<img src='/images/sign/" & tmp_t2(0) & "_" & tmp_t2(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt2 = tmp_7(1)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(2), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt3 = tmp_7(2)
|
||||
elseif instr(1,tmp_7(2), "<BR>") then
|
||||
tmp_t3 = split(tmp_7(2), "<BR>")
|
||||
tmp_txt3 = "<img src='/images/sign/" & tmp_t3(0) & "_" & tmp_t3(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt3 = tmp_7(2)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(3), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt4 = tmp_7(3)
|
||||
elseif instr(1,tmp_7(3), "<BR>") then
|
||||
tmp_t4 = split(tmp_7(3), "<BR>")
|
||||
tmp_txt4 = "<img src='/images/sign/" & tmp_t4(0) & "_" & tmp_t4(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt4 = tmp_7(3)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(4), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt5 = tmp_7(4)
|
||||
elseif instr(1,tmp_7(4), "<BR>") then
|
||||
tmp_t5 = split(tmp_7(4), "<BR>")
|
||||
tmp_txt5 = "<img src='/images/sign/" & tmp_t5(0) & "_" & tmp_t5(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt5 = tmp_7(4)
|
||||
end if
|
||||
|
||||
tmp_txt6 = tmp_8(0)
|
||||
tmp_txt7 = tmp_8(1)
|
||||
tmp_txt8 = tmp_8(2)
|
||||
tmp_txt9 = tmp_8(3)
|
||||
tmp_txt10 = tmp_8(4)
|
||||
|
||||
d_order_cnt = int(rsc("d_order_cnt"))
|
||||
|
||||
|
||||
''<27>α<EFBFBD><CEB1><EFBFBD><EFBFBD><EFBFBD>
|
||||
query = "insert into " & db_table_name & "_log (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_p_no, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_<EFBFBD≯<EFBFBD>, <20><><EFBFBD><EFBFBD>,"
|
||||
query = query & " <20>߱<EFBFBD><DFB1><EFBFBD>, <20>߱ð<DEBD>, <20>߱<EFBFBD><DFB1><EFBFBD>_p_no, <20>߱<EFBFBD><DFB1><EFBFBD>_<EFBFBD≯<EFBFBD>, <20>߱<EFBFBD><DFB1><EFBFBD>_ip) values ( "
|
||||
query = query & "'" & krc_no & "', "
|
||||
query = query & "'" & replace(title, " ", "") & "', "
|
||||
query = query & "'" & Session("User_Number") & "', "
|
||||
query = query & "'" & Session("loginuser") & "', "
|
||||
query = query & "'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>', "
|
||||
query = query & "'" & year(date) & "-" & zeroformat(month(date),2) & "-" & zeroformat(day(date),2) & "', "
|
||||
query = query & "'" & time() & "', "
|
||||
query = query & "'" & user_name(0) & "', "
|
||||
query = query & "'" & user_name(1) & "', "
|
||||
query = query & "'" & Session("USERIP") & "')"
|
||||
|
||||
if Request.ServerVariables("REMOTE_ADDr") = session("admin_ip") then
|
||||
else
|
||||
adoconn.execute query
|
||||
end if
|
||||
|
||||
|
||||
%>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title><%=GNB_TITLE%></title>
|
||||
<link rel="stylesheet" type="text/css" href="/css/basic.css">
|
||||
</head>
|
||||
|
||||
<script language=javascript>
|
||||
function win_close()
|
||||
{
|
||||
window.close();
|
||||
}
|
||||
function win_print()
|
||||
{
|
||||
url = "doc_vacation_print.asp?print_type=2";
|
||||
document.ess.action=url;
|
||||
//alert(document.ess.action);
|
||||
document.ess.submit();
|
||||
}
|
||||
function myError()
|
||||
{
|
||||
alert("error");
|
||||
}
|
||||
|
||||
function print_ie()
|
||||
{
|
||||
|
||||
//
|
||||
if(navigator.userAgent.toLowerCase().indexOf('chrome') > -1){ // Chrome Browser Detected?
|
||||
window.PPClose = false; // Clear Close Flag
|
||||
window.onbeforeunload = function(){ // Before Window Close Event
|
||||
if(window.PPClose === false){ // Close not OK?
|
||||
return 'Leaving this page will block the parent window!\nPlease select "Stay on this Page option" and use the\nCancel button instead to close the Print Preview Window.\n';
|
||||
}
|
||||
}
|
||||
window.print(); // Print preview
|
||||
window.PPClose = true; // Set Close Flag to OK.
|
||||
}else{
|
||||
window.print();
|
||||
window.close();
|
||||
}
|
||||
}
|
||||
|
||||
function subit(a, b)
|
||||
{
|
||||
var tmp_txt;
|
||||
var approve_pass;
|
||||
|
||||
if (a == 1)
|
||||
{
|
||||
tmp_txt = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ";
|
||||
approve_pass = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
tmp_txt = "";
|
||||
}
|
||||
|
||||
if (confirm(tmp_txt + "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?"))
|
||||
{
|
||||
document.ess.action = "allow_ok.asp?approve_pass="+approve_pass;
|
||||
document.ess.action = "allow_ok.asp?approve_pass="+approve_pass+"&tmp_pass_psn="+b+"&title="+"<%=replace(title," ","")%>";
|
||||
document.ess.submit();
|
||||
}
|
||||
}
|
||||
|
||||
function backit(a)
|
||||
{
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ۼ<EFBFBD><DBBC><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>");
|
||||
var url = "reason.asp?d_no="+a;
|
||||
window.open(url,'','left=0,top=0,width=400,height=180,scrollbars=yes,resizable=yes')
|
||||
}
|
||||
|
||||
function request_pros()
|
||||
{
|
||||
//alert('ok');
|
||||
if(confirm("<22><><EFBFBD><EFBFBD> ó<><C3B3><EFBFBD>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?")){
|
||||
document.ess.action = "request_ok.asp?x=2";
|
||||
document.ess.submit();
|
||||
}
|
||||
}
|
||||
|
||||
function request_cls()
|
||||
{
|
||||
//alert('ok');
|
||||
if(confirm("<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?")){
|
||||
document.ess.action = "request_ok.asp?x=7";
|
||||
document.ess.submit();
|
||||
}
|
||||
}
|
||||
|
||||
//-->
|
||||
</script>
|
||||
|
||||
<body topmargin="10" leftmargin="10" <%if cint(print_type) = 2 then%> onLoad="print_ie();" <% end if %>>
|
||||
|
||||
<form method='post' name='ess'>
|
||||
|
||||
<input type="hidden" name="d_no" value="<%=d_no%>">
|
||||
|
||||
<%if x = "99" then%>
|
||||
<!-- #include file = "inc_delreason.asp" -->
|
||||
<%end if '''if x = "99" then%>
|
||||
|
||||
<%
|
||||
'() and (<28>ݷ<EFBFBD><DDB7>ǰų<C7B0> <20><><EFBFBD><EFBFBD><EFBFBD>Ϸ<EFBFBD>) and (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̰ų<CCB0> <20><><EFBFBD><EFBFBD>ó<EFBFBD><C3B3><EFBFBD><EFBFBD> <20>Ǵ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
|
||||
if cint(print_type) <> 2 and (d_order_cnt = "99" or d_order_cnt = "77") and (tmp_admin_chk = "1" or tmp_request_chk = "1" or int(rsc("login_p_no")) = int(Session("User_Number"))) then
|
||||
%>
|
||||
<!-- #include file = "inc_print.asp" -->
|
||||
<%end if%>
|
||||
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td >
|
||||
<table cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td><img src="/images/approval/docbg_top.jpg"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="710" align="center" style="padding:10;border-left:1px solid #dedede;border-right:1px solid #dedede;">
|
||||
<table width="95%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td colspan="2" style="padding:0 0 10 0">
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<td width="255"><img src="/images/approval/doc_stit01.jpg"></td>
|
||||
<td>
|
||||
<!-- #include file = "inc_approval.asp" -->
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><> <3B><> <3B><></b></td>
|
||||
<td width="80%" class="tahoma"><%=Curr_date%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><></b></td>
|
||||
<td width="80%"><%=user_name(1)%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><></b></td>
|
||||
<td width="80%"><%=user_name(4)%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><></b></td>
|
||||
<td width="80%"><%=user_name(2)%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:20 0 10 0;font-size:14;font-family:dotum;"><b><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ް<EFBFBD><DEB0><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD><CFBF><EFBFBD> <20>簡<EFBFBD>Ͽ<EFBFBD> <20>ֽñ<D6BD> <20>ٶ<EFBFBD><D9B6>ϴ<EFBFBD>.</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:10 0 0 0">
|
||||
<table width="100%" cellpadding="5" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<td width="20%" class='tit2' align="center"><3E>ް<EFBFBD><DEB0>Ⱓ</td>
|
||||
<td width="80%" class='tit7'><font class="tahoma"><%=mid(gap(1),1,4)%><3E><> <%=mid(gap(1),6,2)%><3E><> <%=mid(gap(1),9,2)%><3E>Ϻ<EFBFBD><CFBA><EFBFBD> <%=mid(gap(2),1,4)%><3E><> <%=mid(gap(2),6,2)%><3E><> <%=mid(gap(2),9,2)%><3E>ϱ<EFBFBD><CFB1><EFBFBD></font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tit2' align="center"><3E>ް<EFBFBD><DEB0><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td class='tit7'><%=gap(3)%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tit2' align="center"><3E><><EFBFBD>γ<EFBFBD><CEB3><EFBFBD></td>
|
||||
<td class='tit7'>
|
||||
<font class="tahoma">
|
||||
<%tmpstr = replace(gap(3), " ","")
|
||||
if mid(tmpstr,1,2) = "<22><><EFBFBD><EFBFBD>" or instr(1, tmpstr,"<22><><EFBFBD><EFBFBD>") > 0 then%>
|
||||
<!--
|
||||
<09>ܿ<EFBFBD><DCBF>ϼ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϱ<EFBFBD>
|
||||
|
||||
-->
|
||||
<%
|
||||
dim holiday_cnt '<27>̹<EFBFBD><CCB9><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϰ<EFBFBD><CFB0><EFBFBD> <20>ϴ<EFBFBD> <20>ް<EFBFBD> <20><><EFBFBD><EFBFBD> <20><>
|
||||
dim condate
|
||||
holiday_cnt = 0
|
||||
cnt = cint(cdate(gap(2))-cdate(gap(1)))
|
||||
for k=0 to cnt
|
||||
condate = cdate(cdate(gap(1)) + k)
|
||||
if weekday(condate) >= 2 and weekday(condate) <= 6 then
|
||||
call day_off_chk_only(year(condate), month(condate), day(condate))
|
||||
if day_off = "false" then
|
||||
holiday_cnt = holiday_cnt + 1
|
||||
end if
|
||||
|
||||
end if
|
||||
next
|
||||
if instr(1, tmpstr,"<22><><EFBFBD><EFBFBD>") > 0 then '<27><><EFBFBD><EFBFBD><EFBFBD≯<EFBFBD>
|
||||
holiday_cnt = cint(holiday_cnt) - 0.5
|
||||
end if%>
|
||||
|
||||
* <%=year(date)%><3E><> <20>ѿ<EFBFBD><D1BF><EFBFBD> <20>ϼ<EFBFBD> <%=gap(4)%><3E><><br>
|
||||
* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ܿ<EFBFBD> <20>ϼ<EFBFBD> <%=gap(5)%><3E><><br>
|
||||
* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ܿ<EFBFBD> <20>ϼ<EFBFBD> <%=gap(5) - holiday_cnt%><3E><><br>
|
||||
<font color=red>* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>ϱ<EFBFBD><CFB1><EFBFBD><EFBFBD>Դϴ<D4B4>.<br> * <20>ް<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>̱<EFBFBD><CCB1>Ͻÿ<CFBD><C3BF><EFBFBD> <20><> <20><>ġ<EFBFBD><C4A1> <20>ٸ<EFBFBD> <20><> <20><><EFBFBD><EFBFBD>.</font>
|
||||
<%elseif mid(tmpstr,1,2) = "<22><><EFBFBD><EFBFBD>" then%>
|
||||
* <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> : <%=gap(6)%><br>
|
||||
* <20><><EFBFBD><EFBFBD> <20>ð<EFBFBD> : <%=gap(7)%><br>
|
||||
* <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> : <%=gap(8)%>
|
||||
<%elseif mid(tmpstr,1,2) = "<22><><EFBFBD><EFBFBD>" then%>
|
||||
* <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> : <%=gap(9)%><br>
|
||||
* <20><><EFBFBD><EFBFBD> <20>Ⱓ : <%=mid(gap(10),1,4)%><3E><> <%=mid(gap(10),6,2)%><3E><> <%=mid(gap(10),9,2)%><3E>Ϻ<EFBFBD><CFBA><EFBFBD> <%=mid(gap(11),1,4)%><3E><> <%=mid(gap(11),6,2)%><3E><> <%=mid(gap(11),9,2)%><3E>ϱ<EFBFBD><CFB1><EFBFBD><br>
|
||||
* <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> : <%=gap(12)%><br>
|
||||
* <20>Կ<EFBFBD> <20><><EFBFBD><EFBFBD> : <%=gap(13)%>
|
||||
<%elseif mid(tmpstr,1,2) = "<22><><EFBFBD><EFBFBD>" or mid(tmpstr,1,2) = "<22>Ƚ<EFBFBD>" or mid(tmpstr,1,2) = "<22><>Ÿ" then%>
|
||||
* <%=gap(14)%>
|
||||
<%elseif mid(tmpstr,1,2) = "<22><><EFBFBD><EFBFBD>" then%>
|
||||
* <20><> <20><> <20><> <20><> : <%=gap(15)%><br>
|
||||
* <20><><EFBFBD>ΰ<EFBFBD><CEB0><EFBFBD><EFBFBD><EFBFBD> : <%=gap(16)%><br>
|
||||
* <20><> <20><> <20><> <20><> : <%=gap(17)%>
|
||||
<%elseif mid(tmpstr,1,2) = "<22><><EFBFBD><EFBFBD>" then%>
|
||||
* <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> : <%=gap(18)%><br>
|
||||
* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ż<EFBFBD> : <%=gap(19)%>
|
||||
<%elseif mid(tmpstr,1,2) = "<22><>ü" then%>
|
||||
* <%=gap(20)%>
|
||||
<%end if%>
|
||||
</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tit2' align="center"><3E><><EFBFBD><EFBFBD> <20><></td>
|
||||
<td class='tit7'>
|
||||
<font class="tahoma">
|
||||
<09><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> : <%=gap(26)%><br>
|
||||
<09><> <20><>Ÿ <20><><EFBFBD><EFBFBD> : <%=gap(27)%><br>
|
||||
</font>
|
||||
<font class="brown"><<3C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>ó<EFBFBD><C3B3> <20><><EFBFBD><EFBFBD>></font>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" style="padding:20 0 0 0" align="right">
|
||||
<pre><font class="tahoma"> <09><> û <20><> : <%=Curr_date%></font></pre>
|
||||
<pre><font class="tahoma"> <09><> û <20><> : <%=user_name(1)%> (<28><>)</font></pre>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:15 0 5 0"><!-- #include virtual= "approval/inc_logo.asp" --></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="/images/approval/docbg_btm.jpg"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding:10 0 0 0;" class="brown"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ް<EFBFBD> <20>ο<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ģ <20><> 4 <20><>(<28><><EFBFBD><EFBFBD> <20><> <20>ް<EFBFBD>) <20><><EFBFBD>ؿ<EFBFBD> <20>ǰ<EFBFBD><C7B0>մϴ<D5B4>.</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
<%
|
||||
end if
|
||||
rsc.Close
|
||||
%>
|
||||
313
ess/inc_approval.asp
Normal file
313
ess/inc_approval.asp
Normal file
@@ -0,0 +1,313 @@
|
||||
<%
|
||||
if view_chk = "1" then
|
||||
|
||||
'### <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ư ǥ<><C7A5> <20><><EFBFBD><EFBFBD>-------
|
||||
tmp_pass_chk = "0"
|
||||
query = "SELECT * "
|
||||
query = query & "FROM [Document] "
|
||||
query = query & "WHERE d_no = '" & d_no & "' "
|
||||
|
||||
adors.Open query, adoConn, 1
|
||||
if adors.recordcount > 0 then
|
||||
if int(adors("d_order_cnt")) < 10 then
|
||||
tmp_pass_psn = adors("d_orders")
|
||||
end if
|
||||
end if
|
||||
adors.close
|
||||
|
||||
'''Response.Write query & "<BR>"
|
||||
|
||||
'<27>ް<EFBFBD><DEB0><EFBFBD>üũ
|
||||
query = "SELECT * "
|
||||
query = query & "FROM [<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>] "
|
||||
query = query & "WHERE login_p_no = '" & tmp_pass_psn & "' "
|
||||
query = query & " AND del_yes_no = 'no' "
|
||||
query = query & " AND (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> = '<27>ް<EFBFBD><DEB0><EFBFBD>' "
|
||||
query = query & " OR <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>') "
|
||||
query = query & " AND SUBSTRING(target1, 1, 4) LIKE '" & year(date) & "' "
|
||||
|
||||
'''Response.Write query & "<BR>"
|
||||
|
||||
adors.open query, adoConn, 1
|
||||
if adors.recordcount > 0 then
|
||||
for i = 1 to adors.recordcount
|
||||
tmp_pass_sdate = adors("target1")
|
||||
tmp_pass_edate = adors("target2")
|
||||
if cdate(tmp_pass_sdate) <= date() AND cdate(tmp_pass_edate) >= date() then
|
||||
tmp_pass_chk = "1"
|
||||
end if
|
||||
adors.movenext
|
||||
next
|
||||
end if
|
||||
adors.close
|
||||
'### <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ư ǥ<><C7A5> <20><><EFBFBD><EFBFBD>-------
|
||||
|
||||
|
||||
' <20>ش<EFBFBD><D8B4><EFBFBD><EFBFBD>ڿ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ۼ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ܱ<EFBFBD><DCB1><EFBFBD><EFBFBD><EFBFBD> <20>ۼ<EFBFBD><DBBC><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>ٸ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Ȱ<><C8B0>ȭ (<28><><EFBFBD>ܱ<EFBFBD>)
|
||||
query = ""
|
||||
query = query & "SELECT count(*) - sum(CASE WHEN j_work_out = 'Y' THEN 1 ELSE 0 END) AS not_work_out "
|
||||
query = query & "FROM job WHERE j_p_no = '" & tmp_pass_psn & "' "
|
||||
query = query & "AND j_date = '" & cstr(date) & "' "
|
||||
'response.write query
|
||||
adors.open query, adoConn, 1
|
||||
if adors.recordcount > 0 then
|
||||
if adors("not_work_out") = "0" then
|
||||
tmp_pass_chk = "1"
|
||||
end if
|
||||
end if
|
||||
adors.close
|
||||
|
||||
|
||||
if tmp_pass_chk = "1" then
|
||||
tmp_approval = "<img src='/images/approval/btn_smallapprove_pass.gif' onClick='subit(1," & tmp_pass_psn & ")' style='cursor:pointer'>"
|
||||
'tmp_approval = "<img src='/images/approval/btn_smallapprove_pass.gif' onClick='subit(1)' style='cursor:pointer'>"
|
||||
else
|
||||
tmp_approval = ""
|
||||
end if
|
||||
tmp_reject = ""
|
||||
|
||||
|
||||
'set rsp = server.CreateObject("ADODB.RECORDSET")
|
||||
query = "SELECT * "
|
||||
query = query & "FROM person "
|
||||
query = query & "WHERE p_no = '" & rsc("d_orders") & "' "
|
||||
|
||||
If rsc("d_orders") <> "<22><><EFBFBD><EFBFBD>" Then
|
||||
'response.write "query : " & query
|
||||
adors.Open query, adoConn, 1
|
||||
if adors.RecordCount > 0 then
|
||||
tmp_name = adors("p_name")
|
||||
end if
|
||||
adors.Close
|
||||
End if
|
||||
|
||||
else
|
||||
tmp_approval = "<img src='/images/approval/btn_smallapprove.gif' onClick='subit()' style='cursor:pointer'>"
|
||||
tmp_reject = "<img src='/images/approval/btn_smallreject.gif' onClick='backit(""" & d_no & """)' style='cursor:pointer'>"
|
||||
end if
|
||||
|
||||
query = " SELECT d.*, convert(varchar, convert(datetime, "
|
||||
query = query & " left(<28>߱<EFBFBD><DFB1><EFBFBD> + ' ' + <20>߱ð<DEBD>,charindex(' ',<2C>߱<EFBFBD><DFB1><EFBFBD> + ' ' + <20>߱ð<DEBD>,1)-1) "
|
||||
query = query & " + ' ' "
|
||||
query = query & " + right(<28>߱<EFBFBD><DFB1><EFBFBD> + ' ' + <20>߱ð<DEBD>,charindex(' ',reverse(<28>߱<EFBFBD><DFB1><EFBFBD> + ' ' + <20>߱ð<DEBD>),1)-1) "
|
||||
query = query & " + case when charindex('<27><><EFBFBD><EFBFBD>',<2C>߱<EFBFBD><DFB1><EFBFBD> + ' ' + <20>߱ð<DEBD>,1) > 0 then 'AM' "
|
||||
query = query & " else 'PM' "
|
||||
query = query & " end "
|
||||
query = query & " ), 120) as <20>߱<EFBFBD><DFB1><EFBFBD> FROM [Document] d left outer join [<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>] m on d.d_no = m.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ "
|
||||
query = query & " WHERE d_no = '" & d_no & "' "
|
||||
|
||||
adors.Open query, adoConn, 1
|
||||
|
||||
'response.Write query
|
||||
write_time = ""
|
||||
if adors.recordCount > 0 then
|
||||
write_time = adors("<22>߱<EFBFBD><DFB1><EFBFBD>")
|
||||
end if
|
||||
if adors("d_write_date") > "2014-01-07" then
|
||||
tmp_title = "<22><>ǥ<EFBFBD>̻<EFBFBD>"
|
||||
else
|
||||
tmp_title = "<22><>ȸ<EFBFBD><C8B8>"
|
||||
end if
|
||||
adors.close
|
||||
'response.Write "d_order_cnt : " & d_order_cnt & "<BR>"
|
||||
%>
|
||||
<div style="width:100%;">
|
||||
<table width="100%" align="right" cellpadding="0" cellspacing="1" border="1" style="border-collapse:collapse;" bgcolor="#d8d8d8" id="approval_tb">
|
||||
<tr>
|
||||
<td colspan="5" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD>(<28>ҼӺμ<D3BA>)</td>
|
||||
<td colspan="4" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD>)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1" style="display:none;"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E>μ<EFBFBD><CEBC><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E>ӿ<EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1" colspan="2"><%=tmp_title%></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E>μ<EFBFBD><CEBC><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E>ӿ<EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><%=tmp_title%></td>
|
||||
</tr>
|
||||
<%
|
||||
'd_order_cnt = 5
|
||||
'Response.Write "d_order_cnt : " & d_order_cnt & "<BR>"
|
||||
'Ư<><C6AF><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (view_chk = 1<≯<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ϸ<EFBFBD><CFB7><EFBFBD> ó<><C3B3><EFBFBD>ؼ<EFBFBD> <20><><EFBFBD>α<EFBFBD><CEB1><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>ġ <20><><EFBFBD><EFBFBD>, <20>׳<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⸸ <20><> <20><>)
|
||||
'Ư<><C6AF><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<28><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD>(77)<29><> <20>ƴ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 99<39><39> ó<><C3B3><EFBFBD>Ͽ<EFBFBD> <20><><EFBFBD>ι<EFBFBD>ư<EFBFBD><C6B0> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ʵ<EFBFBD><CAB5><EFBFBD> <20><>)
|
||||
|
||||
'Response.Write "d_order_cnt : " & d_order_cnt & "<BR>"
|
||||
|
||||
if d_order_cnt = 77 or d_order_cnt = 99 then '<27><><EFBFBD><EFBFBD><EFBFBD>Ϸ<EFBFBD>, <20>Ǵ<EFBFBD> <20>ݷ<EFBFBD>
|
||||
%>
|
||||
<tr height=40>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt1%> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small" style="display:none;"><%=tmp_txt2%> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt3%> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt4%> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt5%> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt5_1%> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
</tr>
|
||||
<tr height=20>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt6%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small" style="display:none;"><%=tmp_txt7%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt8%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt9%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt10%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt10_1%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small">/</td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small">/</td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small">/</td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small">/</td>
|
||||
</tr>
|
||||
<%
|
||||
elseif d_order_cnt = 5 then '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
tmp_txt10 = month(now()) & " / " & day(now())
|
||||
%>
|
||||
<tr height=40>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt1%> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small" style="display:none;"><%=tmp_txt2%> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt3%> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt4%> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small">
|
||||
<%=tmp_approval%>
|
||||
<br>
|
||||
<%=tmp_reject%>
|
||||
<br>
|
||||
<% if right(left(d_no, 10), 1) = "0" Then%>
|
||||
<%=replace(tmp_name, "<22><><EFBFBD>غ<EFBFBD>", "<22><>ǥ<EFBFBD>̻<EFBFBD>")%>
|
||||
<% else %>
|
||||
<%=replace(tmp_name, "<22><><EFBFBD>غ<EFBFBD>", "<22><><EFBFBD><EFBFBD>ö")%>
|
||||
<% End IF %>
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
</tr>
|
||||
<tr height=20>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt6%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small" style="display:none;"><%=tmp_txt7%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt8%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt9%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt10%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt10_1%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small">/</td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small">/</td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small">/</td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small">/</td>
|
||||
</tr>
|
||||
<%
|
||||
elseif d_order_cnt = 4 then '<27>ӿ<EFBFBD><D3BF><EFBFBD><EFBFBD><EFBFBD>
|
||||
tmp_txt9 = month(now()) & " / " & day(now())
|
||||
%>
|
||||
<tr height=40>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt1%> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small" style="display:none;"><%=tmp_txt2%> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt3%> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small">
|
||||
<%=tmp_approval%>
|
||||
<br>
|
||||
<%=tmp_reject%>
|
||||
<br>
|
||||
<%=tmp_name%>
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
</tr>
|
||||
<tr height=20>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt6%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small" style="display:none;"><%=tmp_txt7%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt8%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt9%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt10%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt10_1%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small">/</td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small">/</td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small">/</td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small">/</td>
|
||||
</tr>
|
||||
<%
|
||||
elseif d_order_cnt = 3 then '<27>μ<EFBFBD><CEBC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
tmp_txt8 = month(now()) & " / " & day(now())
|
||||
%>
|
||||
<tr height=40>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt1%> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small" style="display:none;"><%=tmp_txt2%> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small">
|
||||
<%=tmp_approval%>
|
||||
<br>
|
||||
<%=tmp_reject%>
|
||||
<br>
|
||||
<%=tmp_name%>
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
</tr>
|
||||
<tr height=20>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt6%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small" style="display:none;"><%=tmp_txt7%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt8%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt9%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt10%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt10_1%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small">/</td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small">/</td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small">/</td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small">/</td>
|
||||
</tr>
|
||||
<%
|
||||
elseif d_order_cnt = 2 then '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
tmp_txt7 = month(now()) & " / " & day(now())
|
||||
%>
|
||||
<tr height=40>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt1%> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small">
|
||||
<%=tmp_approval%>
|
||||
<br>
|
||||
<%=tmp_reject%>
|
||||
<br>
|
||||
<%=tmp_name%>
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
</tr>
|
||||
<tr height=20>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt6%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt7%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt8%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt9%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt10%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small">/</td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small">/</td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small">/</td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small">/</td>
|
||||
</tr>
|
||||
<%
|
||||
end if
|
||||
%>
|
||||
<%if write_time <> "" then %>
|
||||
<tr>
|
||||
<td colspan="5"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ͻ<EFBFBD> : <%= write_time%></td>
|
||||
<td colspan="4"></td>
|
||||
</tr>
|
||||
<%end if %>
|
||||
</table>
|
||||
</div>
|
||||
312
ess/inc_approval2.asp
Normal file
312
ess/inc_approval2.asp
Normal file
@@ -0,0 +1,312 @@
|
||||
<%
|
||||
if view_chk = "1" then
|
||||
|
||||
'### <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ư ǥ<><C7A5> <20><><EFBFBD><EFBFBD>-------
|
||||
tmp_pass_chk = "0"
|
||||
query = "SELECT * "
|
||||
query = query & "FROM [Document] "
|
||||
query = query & "WHERE d_no = '" & d_no & "' "
|
||||
|
||||
adors.Open query, adoConn, 1
|
||||
if adors.recordcount > 0 then
|
||||
if int(adors("d_order_cnt")) < 10 then
|
||||
tmp_pass_psn = adors("d_orders")
|
||||
end if
|
||||
end if
|
||||
adors.close
|
||||
|
||||
'<27>ް<EFBFBD><DEB0><EFBFBD>üũ
|
||||
query = "SELECT * "
|
||||
query = query & "FROM [<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>] "
|
||||
query = query & "WHERE login_p_no = '" & tmp_pass_psn & "' "
|
||||
query = query & " AND del_yes_no = 'no' "
|
||||
query = query & " AND (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> = '<27>ް<EFBFBD><DEB0><EFBFBD>' "
|
||||
query = query & " OR <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>') "
|
||||
query = query & " AND SUBSTRING(target1, 1, 4) LIKE '" & year(date) & "' "
|
||||
'Response.Write query & "<BR>"
|
||||
adors.open query, adoConn, 1
|
||||
if adors.recordcount > 0 then
|
||||
for i = 1 to adors.recordcount
|
||||
tmp_pass_sdate = adors("target1")
|
||||
tmp_pass_edate = adors("target2")
|
||||
if cdate(tmp_pass_sdate) <= date() AND cdate(tmp_pass_edate) >= date() then
|
||||
tmp_pass_chk = "1"
|
||||
end if
|
||||
adors.movenext
|
||||
next
|
||||
end if
|
||||
adors.close
|
||||
|
||||
'### <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ư ǥ<><C7A5> <20><><EFBFBD><EFBFBD>-------
|
||||
|
||||
if tmp_pass_chk = "1" then
|
||||
tmp_approval = "<img src='/images/approval/btn_smallapprove_pass.gif' onClick='subit(1," & tmp_pass_psn & ")' style='cursor:pointer'>"
|
||||
'tmp_approval = "<img src='/images/approval/btn_smallapprove_pass.gif' onClick='subit(1)' style='cursor:pointer'>"
|
||||
else
|
||||
tmp_approval = ""
|
||||
end if
|
||||
tmp_reject = ""
|
||||
|
||||
set rsp = server.CreateObject("ADODB.RECORDSET")
|
||||
query = "SELECT * "
|
||||
query = query & "FROM person "
|
||||
query = query & "WHERE p_no = '" & rsc("d_orders") & "' "
|
||||
|
||||
rsp.Open query, adoConn, 1
|
||||
if rsp.RecordCount > 0 then
|
||||
tmp_name = rsp("p_name")
|
||||
end if
|
||||
rsp.Close
|
||||
|
||||
else
|
||||
tmp_approval = "<img src='/images/approval/btn_smallapprove.gif' onClick='subit()' style='cursor:pointer'>"
|
||||
tmp_reject = "<img src='/images/approval/btn_smallreject.gif' onClick='backit(""" & d_no & """)' style='cursor:pointer'>"
|
||||
end if
|
||||
|
||||
|
||||
|
||||
query = "SELECT * FROM [Document] " & _
|
||||
"WHERE d_no = '" & d_no & "' "
|
||||
adors.Open query, adoConn, 1
|
||||
if adors("d_write_date") > "2014-01-07" then
|
||||
tmp_title = "<22><>ǥ<EFBFBD>̻<EFBFBD>"
|
||||
else
|
||||
tmp_title = "<22><>ȸ<EFBFBD><C8B8>"
|
||||
end if
|
||||
adors.close
|
||||
%>
|
||||
|
||||
<table width="100%" cellpadding="0" cellspacing="1" border="1" style="border-collapse:collapse;" bgcolor="#d8d8d8">
|
||||
<tr align="center" height=35>
|
||||
<td height=20 class="k_small" bgcolor="#F1F1F1" colspan=2 width=20% style="font-size:11px;"><3E><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD><br>(<28>ǻ<EFBFBD>)</td>
|
||||
<td height=20 class="k_small" bgcolor="#F1F1F1" colspan=2 width=20% style="font-size:11px; display:none;"><3E><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD><br>(<28><><EFBFBD><EFBFBD>)</td>
|
||||
<td height=20 class="k_small" bgcolor="#F1F1F1" colspan=2 width=20% style="font-size:11px;"><3E><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD><br>(<28>ӿ<EFBFBD>)</td>
|
||||
<td colspan=4 class="k_small" bgcolor="#F1F1F1" width=40% style="font-size:11px;"><3E><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD>)</td>
|
||||
</tr>
|
||||
<tr align="center">
|
||||
<td height=20 class="k_small" bgcolor="#F1F1F1" width=10% style="font-size:11px;"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td width=10% class="k_small" bgcolor="#F1F1F1" style="font-size:11px;"><3E>μ<EFBFBD><CEBC><EFBFBD></td>
|
||||
<td width=10% class="k_small" bgcolor="#F1F1F1" style="font-size:11px; display:none;"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td width=10% class="k_small" bgcolor="#F1F1F1" style="font-size:11px; display:none;"><3E>μ<EFBFBD><CEBC><EFBFBD></td>
|
||||
<td width=10% class="k_small" bgcolor="#F1F1F1" style="font-size:11px;"><3E>ӿ<EFBFBD></td>
|
||||
<td width=10% class="k_small" bgcolor="#F1F1F1" style="font-size:11px;"><%=tmp_title%></td>
|
||||
<td width=10% class="k_small" bgcolor="#F1F1F1" style="font-size:11px;"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td width=10% class="k_small" bgcolor="#F1F1F1" style="font-size:11px;"><3E>μ<EFBFBD><CEBC><EFBFBD></td>
|
||||
<td width=10% class="k_small" bgcolor="#F1F1F1" style="font-size:11px;"><3E>ӿ<EFBFBD></td>
|
||||
<td width=10% class="k_small" bgcolor="#F1F1F1" style="font-size:11px;"><%=tmp_title%></td>
|
||||
</tr>
|
||||
<%
|
||||
'd_order_cnt = 5
|
||||
'Response.Write "d_order_cnt : " & d_order_cnt & "<BR>"
|
||||
'Ư<><C6AF><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (view_chk = 1<≯<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ϸ<EFBFBD><CFB7><EFBFBD> ó<><C3B3><EFBFBD>ؼ<EFBFBD> <20><><EFBFBD>α<EFBFBD><CEB1><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>ġ <20><><EFBFBD><EFBFBD>, <20>׳<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⸸ <20><> <20><>)
|
||||
'Ư<><C6AF><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<28><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD>(77)<29><> <20>ƴ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 99<39><39> ó<><C3B3><EFBFBD>Ͽ<EFBFBD> <20><><EFBFBD>ι<EFBFBD>ư<EFBFBD><C6B0> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ʵ<EFBFBD><CAB5><EFBFBD> <20><>)
|
||||
if rsc("d_order_cnt") <> "77" and view_chk = "1" then
|
||||
'20100802 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ۼ<EFBFBD><DBBC>ڴ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><>ư<EFBFBD><C6B0> <20><><EFBFBD><EFBFBD>
|
||||
'd_order_cnt = 99
|
||||
end if
|
||||
'Response.Write "d_order_cnt : " & d_order_cnt & "<BR>"
|
||||
if d_order_cnt = 77 or d_order_cnt = 99 then '<27><><EFBFBD><EFBFBD><EFBFBD>Ϸ<EFBFBD>, <20>Ǵ<EFBFBD> <20>ݷ<EFBFBD>
|
||||
%>
|
||||
<tr height=40>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt1%> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt3%> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small" style="display:none;"><%=tmp_txt3%> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small" style="display:none;"><%=tmp_txt4%> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt4%> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt5%> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
</tr>
|
||||
<tr height=20>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt7%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt9%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small" style="display:none;"><%=tmp_txt9%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small" style="display:none;"><%=tmp_txt10%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt11%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt12%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small">/</td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small">/</td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small">/</td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small">/</td>
|
||||
</tr>
|
||||
<%
|
||||
elseif d_order_cnt = 6 then '<27><>ȸ<EFBFBD><C8B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
tmp_txt10 = month(now()) & " / " & day(now())
|
||||
%>
|
||||
<tr height=40>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt1%> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt3%> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small" style="display:none;"><%=tmp_txt3%> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small" style="display:none;"><%=tmp_txt4%> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt4%> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small">
|
||||
<%=tmp_approval%>
|
||||
<br>
|
||||
<%=tmp_reject%>
|
||||
<br>
|
||||
<%=tmp_name%>
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
</tr>
|
||||
<tr height=20>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt7%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt9%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small" style="display:none;"><%=tmp_txt9%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small" style="display:none;"><%=tmp_txt10%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt10%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt11%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small">/</td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small">/</td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small">/</td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small">/</td>
|
||||
</tr>
|
||||
<%
|
||||
elseif d_order_cnt = 5 then '<27>ӿ<EFBFBD><D3BF><EFBFBD><EFBFBD><EFBFBD>
|
||||
tmp_txt10 = month(now()) & " / " & day(now())
|
||||
%>
|
||||
<tr height=40>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt1%> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt3%> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small" style="display:none;"><%=tmp_txt3%> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small" style="display:none;"><%=tmp_txt4%> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt4%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small">
|
||||
<%=tmp_approval%>
|
||||
<br>
|
||||
<%=tmp_reject%>
|
||||
<br>
|
||||
<%=tmp_name%>
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
</tr>
|
||||
<tr height=20>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt7%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt9%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small" style="display:none;"><%=tmp_txt9%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small" style="display:none;"><%=tmp_txt10%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt10%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt11%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small">/</td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small">/</td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small">/</td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small">/</td>
|
||||
</tr>
|
||||
<%
|
||||
elseif d_order_cnt = 4 then '<27><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD><CEBC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
tmp_txt9 = month(now()) & " / " & day(now())
|
||||
%>
|
||||
<tr height=40>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt1%> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt3%> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small" style="display:none;"><%=tmp_txt3%> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small" style="display:none;"> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small">
|
||||
<%=tmp_approval%>
|
||||
<br>
|
||||
<%=tmp_reject%>
|
||||
<br>
|
||||
<%=tmp_name%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
</tr>
|
||||
<tr height=20>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt7%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt9%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small" style="display:none;"><%=tmp_txt9%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small" style="display:none;"><%=tmp_txt10%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt10%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt11%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small">/</td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small">/</td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small">/</td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small">/</td>
|
||||
</tr>
|
||||
<%
|
||||
elseif d_order_cnt = 3 then '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
tmp_txt8 = month(now()) & " / " & day(now())
|
||||
%>
|
||||
<tr height=40>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt1%> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small">
|
||||
<%=tmp_approval%>
|
||||
<br>
|
||||
<%=tmp_reject%>
|
||||
<br>
|
||||
<%=tmp_name%>
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small" style="display:none;">
|
||||
<%=tmp_approval%>
|
||||
<br>
|
||||
<%=tmp_reject%>
|
||||
<br>
|
||||
<%=tmp_name%>
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small" style="display:none;"> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
</tr>
|
||||
<tr height=20>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt7%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt9%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small" style="display:none;"><%=tmp_txt9%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small" style="display:none;"><%=tmp_txt10%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt10%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt11%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small">/</td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small">/</td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small">/</td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small">/</td>
|
||||
</tr>
|
||||
<%
|
||||
elseif d_order_cnt = 2 then '<27>ڷ<EFBFBD><DAB7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
tmp_txt7 = month(now()) & " / " & day(now())
|
||||
%>
|
||||
<tr height=40>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt1%> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small">
|
||||
<%=tmp_approval%>
|
||||
<br>
|
||||
<%=tmp_reject%>
|
||||
<br>
|
||||
<%=tmp_name%>
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small" style="display:none;"> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small" style="display:none;"> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
</tr>
|
||||
<tr height=20>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt7%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt8%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small" style="display:none;"><%=tmp_txt9%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small" style="display:none;"><%=tmp_txt10%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt11%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt12%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small">/</td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small">/</td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small">/</td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small">/</td>
|
||||
</tr>
|
||||
<%
|
||||
end if
|
||||
%>
|
||||
</table>
|
||||
21
ess/inc_delreason.asp
Normal file
21
ess/inc_delreason.asp
Normal file
@@ -0,0 +1,21 @@
|
||||
<div style="position: absolute; left: 10px; top: 50px; z-index: 10;">
|
||||
<table border="0" cellspacing="0" cellpadding="5" width="350" bgcolor="#AAFA82">
|
||||
<tr align="center" height="35">
|
||||
<td>
|
||||
<< <20>ݷ<EFBFBD><DDB7>ڰ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> >>
|
||||
</td>
|
||||
</tr>
|
||||
<tr align="center" height="35">
|
||||
<td>
|
||||
<textarea name="del_reason" cols="42" rows="5" readonly class="tahoma"><%=ViewWord(rsc("del_reason"))%></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<% if split(split(request.servervariables("HTTP_url"), "/")(2), "?")(0) = "doc_expense_print_2014.asp" then %>
|
||||
<tr align="center" height="35">
|
||||
<td>
|
||||
<input type="button" value="<22>ݷ<EFBFBD> Ȯ<><C8AE>" id="delRewrite_btn"/>
|
||||
</td>
|
||||
</tr>
|
||||
<% end if %>
|
||||
</table>
|
||||
</div>
|
||||
593
ess/inc_direct_cost.asp
Normal file
593
ess/inc_direct_cost.asp
Normal file
@@ -0,0 +1,593 @@
|
||||
<%
|
||||
tmp_split = split(d_no, "-")
|
||||
|
||||
if int(tmp_split(1)) < int(confirm_date) then
|
||||
|
||||
'2011<31><31> <20><><EFBFBD><EFBFBD> <20>ڷ<EFBFBD><DAB7><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
confirm_flag = "1"
|
||||
|
||||
else
|
||||
|
||||
if int(tmp_split(1)) >= 2013 then
|
||||
confirm_flag = "2"
|
||||
else
|
||||
if int(tmp_split(3)) <= int(confirm_no) then
|
||||
|
||||
'2012<31><32> <20><><EFBFBD><EFBFBD> <20>ڷ<EFBFBD><DAB7><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 15<31><35>° <20><><EFBFBD>϶<EFBFBD><CFB6><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
confirm_flag = "1"
|
||||
|
||||
else
|
||||
|
||||
'<27>̵<EFBFBD> <20><><EFBFBD><EFBFBD> <20>ƴ϶<C6B4><CFB6><EFBFBD> <20>Ź<EFBFBD><C5B9><EFBFBD>
|
||||
confirm_flag = "2"
|
||||
|
||||
end if
|
||||
end if
|
||||
|
||||
end if
|
||||
|
||||
query = "SELECT * FROM [Document] " & _
|
||||
"WHERE d_no = '" & d_no & "' "
|
||||
adors.Open query, adoConn, 1
|
||||
if adors("d_write_date") > "2014-01-07" then
|
||||
tmp_title = "<22><>ǥ<EFBFBD>̻<EFBFBD>"
|
||||
else
|
||||
tmp_title = "<22><>ȸ<EFBFBD><C8B8>"
|
||||
end if
|
||||
adors.close
|
||||
|
||||
'Response.Write confirm_flag & "<BR>"
|
||||
%>
|
||||
<table border=1 cellspacing=0 cellpadding=0 width=100% bordercolordark="black" bordercolorlight="white" bordercolor="black">
|
||||
<%
|
||||
if confirm_flag = "1" then
|
||||
%>
|
||||
<tr align="center">
|
||||
<td height=20 colspan=5 width=50% style="font-size:11px;"><3E><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD>(<28>ҼӺμ<D3BA>)</td>
|
||||
<td colspan=4 width=50% style="font-size:11px;"><3E><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD>)</td>
|
||||
</tr>
|
||||
<tr align="center">
|
||||
<td height=20 width=11% style="font-size:11px;"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td width=11% style="font-size:11px;"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td width=11% style="font-size:11px;"><3E>μ<EFBFBD><CEBC><EFBFBD></td>
|
||||
<td width=11% style="font-size:11px;"><3E>ӿ<EFBFBD></td>
|
||||
<td width=11% style="font-size:11px;"><%=tmp_title%></td>
|
||||
<td width=11% style="font-size:11px;"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td width=11% style="font-size:11px;"><3E>μ<EFBFBD><CEBC><EFBFBD></td>
|
||||
<td width=11% style="font-size:11px;"><3E>ӿ<EFBFBD></td>
|
||||
<td width=11% style="font-size:11px;"><%=tmp_title%></td>
|
||||
</tr>
|
||||
<%
|
||||
elseif confirm_flag = "2" then
|
||||
%>
|
||||
<tr align="center">
|
||||
<td height=20 colspan=2 width=22% style="font-size:11px;"><3E><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD>(<28>ڷ<EFBFBD><DAB7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)</td>
|
||||
<td height=20 colspan=2 width=22% style="font-size:11px;"><3E><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD>)</td>
|
||||
<td height=20 colspan=2 width=22% style="font-size:11px;"><3E><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD>(<28>ӿ<EFBFBD>)</td>
|
||||
<td colspan=4 width=44% style="font-size:11px;"><3E><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD>)</td>
|
||||
</tr>
|
||||
<tr align="center">
|
||||
<td height=20 width=10% style="font-size:11px;"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td width=10% style="font-size:11px;"><3E>μ<EFBFBD><CEBC><EFBFBD></td>
|
||||
<td width=10% style="font-size:11px;"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td width=10% style="font-size:11px;"><3E>μ<EFBFBD><CEBC><EFBFBD></td>
|
||||
<td width=10% style="font-size:11px;"><3E>ӿ<EFBFBD></td>
|
||||
<td width=10% style="font-size:11px;"><%=tmp_title%></td>
|
||||
<td width=10% style="font-size:11px;"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td width=10% style="font-size:11px;"><3E>μ<EFBFBD><CEBC><EFBFBD></td>
|
||||
<td width=10% style="font-size:11px;"><3E>ӿ<EFBFBD></td>
|
||||
<td width=10% style="font-size:11px;"><%=tmp_title%></td>
|
||||
</tr>
|
||||
<%
|
||||
end if
|
||||
%>
|
||||
|
||||
<%
|
||||
if view_chk = "1" then
|
||||
'### <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ư ǥ<><C7A5> <20><><EFBFBD><EFBFBD>-------
|
||||
tmp_pass_chk = "0"
|
||||
query = "SELECT * "
|
||||
query = query & "FROM [Document] "
|
||||
query = query & "WHERE d_no = '" & d_no & "' "
|
||||
|
||||
adors.Open query, adoConn, 1
|
||||
if adors.recordcount > 0 then
|
||||
if int(adors("d_order_cnt")) < 10 then
|
||||
tmp_pass_psn = adors("d_orders")
|
||||
end if
|
||||
end if
|
||||
adors.close
|
||||
|
||||
'<27>ް<EFBFBD><DEB0><EFBFBD>üũ
|
||||
query = "SELECT * "
|
||||
query = query & "FROM [<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>] "
|
||||
query = query & "WHERE login_p_no = '" & tmp_pass_psn & "' "
|
||||
query = query & " AND del_yes_no = 'no' "
|
||||
query = query & " AND (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> = '<27>ް<EFBFBD><DEB0><EFBFBD>' "
|
||||
query = query & " OR <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>') "
|
||||
query = query & " AND SUBSTRING(target1, 1, 4) LIKE '" & year(date) & "' "
|
||||
'Response.Write query & "<BR>"
|
||||
adors.open query, adoConn, 1
|
||||
if adors.recordcount > 0 then
|
||||
for i = 1 to adors.recordcount
|
||||
tmp_pass_sdate = adors("target1")
|
||||
tmp_pass_edate = adors("target2")
|
||||
if cdate(tmp_pass_sdate) <= date() AND cdate(tmp_pass_edate) >= date() then
|
||||
tmp_pass_chk = "1"
|
||||
end if
|
||||
adors.movenext
|
||||
next
|
||||
end if
|
||||
adors.close
|
||||
|
||||
'### <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ư ǥ<><C7A5> <20><><EFBFBD><EFBFBD>-------
|
||||
|
||||
if tmp_pass_chk = "1" then
|
||||
tmp_approval = "<img src='/images/approval/btn_smallapprove_pass.gif' onClick='subit(1," & tmp_pass_psn & ")' style='cursor:pointer'>"
|
||||
'tmp_approval = "<img src='/images/approval/btn_smallapprove_pass.gif' onClick='subit(1)' style='cursor:pointer'>"
|
||||
else
|
||||
tmp_approval = ""
|
||||
end if
|
||||
tmp_reject = ""
|
||||
|
||||
set rsp = server.CreateObject("ADODB.RECORDSET")
|
||||
query = "SELECT * "
|
||||
query = query & "FROM person "
|
||||
query = query & "WHERE p_no = '" & rsc("d_orders") & "' "
|
||||
|
||||
rsp.Open query, adoConn, 1
|
||||
if rsp.RecordCount > 0 then
|
||||
tmp_name = rsp("p_name")
|
||||
end if
|
||||
rsp.Close
|
||||
elseif view_chk = "0" then
|
||||
tmp_approval = "<img src='/images/approval/btn_smallapprove.gif' onClick='subit()' style='cursor:pointer'>"
|
||||
tmp_reject = "<img src='/images/approval/btn_smallreject.gif' onClick='backit(""" & d_no & """)' style='cursor:pointer'>"
|
||||
elseif view_chk = "2" then '<27>ǻ<EFBFBD>-><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>Ŭ<EFBFBD><C5AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ö<EFBFBD><C3B6><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
tmp_approval = "<font color='blue'><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></font>"
|
||||
|
||||
end if
|
||||
|
||||
tmp_txt = split(target99, "^^")
|
||||
tmp_8 = split(target100, "^^")
|
||||
|
||||
if instr(1,tmp_txt(0), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt1 = tmp_txt(0)
|
||||
elseif instr(1,tmp_txt(0), "<BR>") then
|
||||
tmp_t1 = split(tmp_txt(0), "<BR>")
|
||||
tmp_txt1 = "<img src='/images/sign/" & tmp_t1(0) & "_" & tmp_t1(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt1 = tmp_txt(0)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_txt(1), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt2 = tmp_txt(1)
|
||||
elseif instr(1,tmp_txt(1), "<BR>") then
|
||||
tmp_t2 = split(tmp_txt(1), "<BR>")
|
||||
tmp_txt2 = "<img src='/images/sign/" & tmp_t2(0) & "_" & tmp_t2(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt2 = tmp_txt(1)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_txt(2), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt3 = tmp_txt(2)
|
||||
elseif instr(1,tmp_txt(2), "<BR>") then
|
||||
tmp_t3 = split(tmp_txt(2), "<BR>")
|
||||
tmp_txt3 = "<img src='/images/sign/" & tmp_t3(0) & "_" & tmp_t3(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt3 = tmp_txt(2)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_txt(3), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt4 = tmp_txt(3)
|
||||
elseif instr(1,tmp_txt(3), "<BR>") then
|
||||
tmp_t4 = split(tmp_txt(3), "<BR>")
|
||||
tmp_txt4 = "<img src='/images/sign/" & tmp_t4(0) & "_" & tmp_t4(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt4 = tmp_txt(3)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_txt(4), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt5 = tmp_txt(4)
|
||||
elseif instr(1,tmp_txt(4), "<BR>") then
|
||||
tmp_t5 = split(tmp_txt(4), "<BR>")
|
||||
tmp_txt5 = "<img src='/images/sign/" & tmp_t5(0) & "_" & tmp_t5(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt5 = tmp_txt(4)
|
||||
end if
|
||||
|
||||
|
||||
if confirm_flag = "1" then
|
||||
|
||||
tmp_txt6 = tmp_8(0)
|
||||
tmp_txt7 = tmp_8(1)
|
||||
tmp_txt8 = tmp_8(2)
|
||||
tmp_txt9 = tmp_8(3)
|
||||
tmp_txt10 = tmp_8(4)
|
||||
|
||||
elseif confirm_flag = "2" then
|
||||
|
||||
if instr(1,tmp_txt(5), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt6 = tmp_txt(5)
|
||||
elseif instr(1,tmp_txt(5), "<BR>") then
|
||||
tmp_t6 = split(tmp_txt(5), "<BR>")
|
||||
tmp_txt6 = "<img src='/images/sign/" & tmp_t6(0) & "_" & tmp_t6(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt6 = tmp_txt(5)
|
||||
end if
|
||||
|
||||
tmp_txt7 = tmp_8(0)
|
||||
tmp_txt8 = tmp_8(1)
|
||||
tmp_txt9 = tmp_8(2)
|
||||
tmp_txt10 = tmp_8(3)
|
||||
tmp_txt11 = tmp_8(4)
|
||||
tmp_txt12 = tmp_8(5)
|
||||
|
||||
end if
|
||||
%>
|
||||
<%
|
||||
d_order_cnt = int(d_order_cnt)
|
||||
|
||||
'Ư<><C6AF><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (view_chk = 1<≯<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ϸ<EFBFBD><CFB7><EFBFBD> ó<><C3B3><EFBFBD>ؼ<EFBFBD> <20><><EFBFBD>α<EFBFBD><CEB1><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>ġ <20><><EFBFBD><EFBFBD>, <20>׳<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⸸ <20><> <20><>)
|
||||
'Ư<><C6AF><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<28><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD>(77)<29><> <20>ƴ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 99<39><39> ó<><C3B3><EFBFBD>Ͽ<EFBFBD> <20><><EFBFBD>ι<EFBFBD>ư<EFBFBD><C6B0> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ʵ<EFBFBD><CAB5><EFBFBD> <20><>)
|
||||
if d_order_cnt <> "77" and view_chk = "1" then
|
||||
'20100802 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ۼ<EFBFBD><DBBC>ڴ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><>ư<EFBFBD><C6B0> <20><><EFBFBD><EFBFBD>
|
||||
'd_order_cnt = 99
|
||||
end if
|
||||
|
||||
|
||||
|
||||
if confirm_flag = "1" then
|
||||
|
||||
if d_order_cnt = 77 or d_order_cnt = 99 then '<27><><EFBFBD><EFBFBD><EFBFBD>Ϸ<EFBFBD>, <20>Ǵ<EFBFBD> <20>ݷ<EFBFBD>
|
||||
%>
|
||||
<tr height=40 align="center">
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt1%> </td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt2%> </td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt3%> </td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt4%> </td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt5%> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr height=20 align="center">
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt6%></td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt7%></td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt8%></td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt9%></td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt10%></td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'>/</td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'>/</td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'>/</td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'>/</td>
|
||||
</tr>
|
||||
<%
|
||||
elseif d_order_cnt = 5 then '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
tmp_txt10 = month(now()) & " / " & day(now())
|
||||
%>
|
||||
<tr height=40 align="center">
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt1%> </td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt2%> </td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt3%> </td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt4%> </td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'>
|
||||
<%=tmp_approval%>
|
||||
<br>
|
||||
<%=tmp_reject%>
|
||||
</td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr height=20 align="center">
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt6%></td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt7%></td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt8%></td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt9%></td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt10%></td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'>/</td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'>/</td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'>/</td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'>/</td>
|
||||
</tr>
|
||||
<%
|
||||
elseif d_order_cnt = 4 then '<27>ӿ<EFBFBD><D3BF><EFBFBD><EFBFBD><EFBFBD>
|
||||
tmp_txt9 = month(now()) & " / " & day(now())
|
||||
%>
|
||||
<tr height=40 align="center">
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt1%> </td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt2%> </td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt3%> </td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'>
|
||||
<%=tmp_approval%>
|
||||
<br>
|
||||
<%=tmp_reject%>
|
||||
</td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr height=20 align="center">
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt6%></td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt7%></td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt8%></td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt9%></td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt10%></td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'>/</td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'>/</td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'>/</td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'>/</td>
|
||||
</tr>
|
||||
<%
|
||||
elseif d_order_cnt = 3 then '<27>μ<EFBFBD><CEBC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
tmp_txt8 = month(now()) & " / " & day(now())
|
||||
%>
|
||||
<tr height=40 align="center">
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt1%> </td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt2%> </td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'>
|
||||
<%=tmp_approval%>
|
||||
<br>
|
||||
<%=tmp_reject%>
|
||||
</td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr height=20 align="center">
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt6%></td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt7%></td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt8%></td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt9%></td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt10%></td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'>/</td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'>/</td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'>/</td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'>/</td>
|
||||
</tr>
|
||||
<%
|
||||
elseif d_order_cnt = 2 then '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
tmp_txt7 = month(now()) & " / " & day(now())
|
||||
%>
|
||||
<tr height=40 align="center">
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt1%> </td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'>
|
||||
<%=tmp_approval%>
|
||||
<br>
|
||||
<%=tmp_reject%>
|
||||
</td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr height=20 align="center">
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt6%></td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt7%></td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt8%></td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt9%></td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt10%></td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'>/</td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'>/</td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'>/</td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'>/</td>
|
||||
</tr>
|
||||
<%
|
||||
end if
|
||||
|
||||
elseif confirm_flag = "2" then
|
||||
if d_order_cnt = 77 or d_order_cnt = 99 then '<27><><EFBFBD><EFBFBD><EFBFBD>Ϸ<EFBFBD>, <20>Ǵ<EFBFBD> <20>ݷ<EFBFBD>
|
||||
%>
|
||||
<tr height=40 align="center">
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt1%> </td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt2%> </td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt3%> </td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt4%> </td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt5%> </td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt6%> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr height=20 align="center">
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt7%></td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt8%></td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt9%></td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt10%></td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt11%></td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt12%></td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'>/</td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'>/</td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'>/</td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'>/</td>
|
||||
</tr>
|
||||
<%
|
||||
elseif d_order_cnt = 6 then '<27><>ȸ<EFBFBD><C8B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
tmp_txt12 = month(now()) & " / " & day(now())
|
||||
%>
|
||||
<tr height=40 align="center">
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt1%> </td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt2%> </td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt3%> </td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt4%> </td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt5%> </td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'>
|
||||
<%=tmp_approval%>
|
||||
<br>
|
||||
<%=tmp_reject%>
|
||||
<br>
|
||||
<%=tmp_name%>
|
||||
</td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr height=20 align="center">
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt7%></td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt8%></td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt9%></td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt10%></td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt11%></td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt12%></td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'>/</td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'>/</td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'>/</td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'>/</td>
|
||||
</tr>
|
||||
<%
|
||||
elseif d_order_cnt = 5 then '<27>ӿ<EFBFBD><D3BF><EFBFBD><EFBFBD><EFBFBD>
|
||||
tmp_txt11 = month(now()) & " / " & day(now())
|
||||
%>
|
||||
<tr height=40 align="center">
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt1%> </td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt2%> </td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt3%> </td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt4%> </td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'>
|
||||
<%=tmp_approval%>
|
||||
<br>
|
||||
<%=tmp_reject%>
|
||||
<br>
|
||||
<%=tmp_name%>
|
||||
</td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr height=20 align="center">
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt7%></td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt8%></td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt9%></td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt10%></td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt11%></td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt12%></td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'>/</td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'>/</td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'>/</td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'>/</td>
|
||||
</tr>
|
||||
<%
|
||||
elseif d_order_cnt = 4 then '<27>μ<EFBFBD><CEBC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
tmp_txt10 = month(now()) & " / " & day(now())
|
||||
%>
|
||||
<tr height=40 align="center">
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt1%> </td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt2%> </td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt3%> </td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'>
|
||||
<%=tmp_approval%>
|
||||
<br>
|
||||
<%=tmp_reject%>
|
||||
<br>
|
||||
<%=tmp_name%>
|
||||
</td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'> </td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr height=20 align="center">
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt7%></td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt8%></td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt9%></td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt10%></td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt11%></td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt12%></td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'>/</td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'>/</td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'>/</td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'>/</td>
|
||||
</tr>
|
||||
<%
|
||||
elseif d_order_cnt = 3 then '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
tmp_txt9 = month(now()) & " / " & day(now())
|
||||
%>
|
||||
<tr height=40 align="center">
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt1%> </td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt2%> </td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'>
|
||||
<%=tmp_approval%>
|
||||
<br>
|
||||
<%=tmp_reject%>
|
||||
<br>
|
||||
<%=tmp_name%>
|
||||
</td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'> </td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'> </td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr height=20 align="center">
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt7%></td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt8%></td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt9%></td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt10%></td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt11%></td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt12%></td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'>/</td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'>/</td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'>/</td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'>/</td>
|
||||
</tr>
|
||||
<%
|
||||
elseif d_order_cnt = 2 then '<27>μ<EFBFBD><CEBC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
tmp_txt8 = month(now()) & " / " & day(now())
|
||||
%>
|
||||
<tr height=40 align="center">
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt1%> </td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'>
|
||||
<%=tmp_approval%>
|
||||
<br>
|
||||
<%=tmp_reject%>
|
||||
<br>
|
||||
<%=tmp_name%>
|
||||
</td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'> </td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'> </td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'> </td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr height=20 align="center">
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt7%></td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt8%></td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt9%></td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt10%></td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt11%></td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'><%=tmp_txt12%></td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'>/</td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'>/</td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'>/</td>
|
||||
<td><p style='line-height:11pt;font-size:9pt;'>/</td>
|
||||
</tr>
|
||||
<%
|
||||
end if
|
||||
%>
|
||||
|
||||
<%
|
||||
end if
|
||||
%>
|
||||
</table>
|
||||
133
ess/inc_myun_pay_reply.asp
Normal file
133
ess/inc_myun_pay_reply.asp
Normal file
@@ -0,0 +1,133 @@
|
||||
<%
|
||||
'if tmp_admin_chk = "1" then
|
||||
'Response.Write Request.ServerVariables("PATH_INFO") & "<BR>"
|
||||
tmp_path = split(Request.ServerVariables("PATH_INFO"), "/")
|
||||
'Response.Write ubound(tmp_path) & "<BR>"
|
||||
'Response.Write tmp_path(ubound(tmp_path)) & "<BR>"
|
||||
%>
|
||||
<script>
|
||||
|
||||
function rep_work(a, b, c, d)
|
||||
{
|
||||
//<2F><><EFBFBD><EFBFBD>
|
||||
if (a == 1)
|
||||
{
|
||||
//alert(a + "\n" + b);
|
||||
if (confirm("<22><><EFBFBD><EFBFBD><EFBFBD>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>? <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ǻ츱 <20><> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>"))
|
||||
{
|
||||
document.ess.action = "reply_work.asp?work_flag=" + a + "&d_no=" + b + "&target_sn=" + c + "&go_url=" + d;
|
||||
//alert("reply_work.asp?d_no=" + b + "&target_sn=" + c + "&go_url=" + d);
|
||||
document.ess.submit();
|
||||
}
|
||||
}
|
||||
//<2F><><EFBFBD><EFBFBD>
|
||||
else if (a == 2)
|
||||
{
|
||||
if (document.ess.reply.value == "")
|
||||
{
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>");
|
||||
document.ess.reply.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
var txt = document.ess.reply.value.replace(/\n/g,"<br/>");
|
||||
txt = txt.replace(/\&/g,"%26");
|
||||
txt = txt.replace(/\"/g,""");
|
||||
txt = txt.replace(/\'/g,"'");
|
||||
txt = txt.replace(/\+/g,"%2B");
|
||||
txt = txt.replace(/\>/g,"%3E");
|
||||
txt = txt.replace(/\</g,"%3C");
|
||||
txt = txt.replace(/\?/g,"%3F");
|
||||
txt = txt.replace(/\\/g,"%5C");
|
||||
txt = txt.replace(/\[/g,"%5B");
|
||||
txt = txt.replace(/\]/g,"%5D");
|
||||
txt = txt.replace(/\//g,"%2F");
|
||||
txt = txt.replace(/\%/g,"%25");
|
||||
|
||||
for (var i=0;i<txt.length;i++)
|
||||
{
|
||||
var uniCode = txt.charCodeAt(i);
|
||||
if(uniCode == 13 && txt.charCodeAt(i+1) == 10){
|
||||
txt = txt.replace(txt.charAt(i)+txt.charAt(i+1),"<br>");
|
||||
}
|
||||
}
|
||||
|
||||
document.ess.action = "reply_work.asp?work_flag=" + a + "&d_no=" + b + "&target_sn=" + c + "&go_url=" + d + "&modi_reply=" + txt;
|
||||
document.ess.submit();
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
<%
|
||||
if rsc("target91") <> "" then
|
||||
if replace(replace(rsc("target91"), " ", ""), "^^", "") <> "" then
|
||||
|
||||
array_reply = split(rsc("target91"), "^^")
|
||||
'Response.Write rsc("target95") & "<BR>"
|
||||
%>
|
||||
<tr>
|
||||
<td colspan="2" style="padding:10 0 0 0">
|
||||
<table width="100%" cellpadding="5" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<%
|
||||
for loop_i = 2 to 6
|
||||
if rsc("target9" & loop_i) <> "" then
|
||||
|
||||
array_tmp = split(array_reply(loop_i - 2), "-")
|
||||
%>
|
||||
<tr>
|
||||
<td width="20%" align="center"><%=array_tmp(0)%><3E><> <20>ڸ<EFBFBD>Ʈ</td>
|
||||
<td width="75%" class="tit12">
|
||||
<table border="0">
|
||||
<tr><td>
|
||||
<font class="tahoma"><%=ViewWord(rsc("target9" & loop_i))%></font>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td>
|
||||
<td width="5%" class="tit13">
|
||||
<%
|
||||
if cstr(array_tmp(1)) = cstr(Session("User_Number")) then
|
||||
%>
|
||||
<table border="0" align="right">
|
||||
<tr><td>
|
||||
<img src="/images/common/btn_popclose.jpg" align="absmiddle" onClick="rep_work('1','<%=rsc("d_no")%>','<%=loop_i%>','<%=tmp_path(ubound(tmp_path))%>')" style="CURSOR:pointer;">
|
||||
</td></tr>
|
||||
</table>
|
||||
<%
|
||||
end if
|
||||
%>
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
end if
|
||||
next
|
||||
%>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
end if
|
||||
end if
|
||||
if print_type <> "2" then
|
||||
if cstr(Session("User_Number")) = cstr(rsc("d_orders")) AND cstr(rsc("d_order_cnt")) <> "77" AND cstr(rsc("d_order_cnt")) <> "99" then
|
||||
%>
|
||||
<tr>
|
||||
<td colspan="2" style="padding:10 0 0 0">
|
||||
<table width="100%" cellpadding="5" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<td width="10%" align="center"><3E>ڸ<EFBFBD>Ʈ <20>ޱ<EFBFBD></td>
|
||||
<td width="90%" >
|
||||
<textarea cols="77" rows="3" name="reply"></textarea>
|
||||
<img src="/images/board/btn_write.jpg" align="absmiddle" style="CURSOR:pointer;" onClick="rep_work('2','<%=rsc("d_no")%>','<%=rsc("d_order_cnt")%>','<%=tmp_path(ubound(tmp_path))%>')">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
end if
|
||||
end if
|
||||
%>
|
||||
|
||||
<%
|
||||
'end if
|
||||
%>
|
||||
33
ess/inc_print.asp
Normal file
33
ess/inc_print.asp
Normal file
@@ -0,0 +1,33 @@
|
||||
<%
|
||||
if title="<22><> <20><> <20><> û <20><>" OR title="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD><C3BB>" OR title="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" OR title="<22>ް<EFBFBD><DEB0><EFBFBD>" OR title="<22><><EFBFBD><EFBFBD><EFBFBD>ٺ<EFBFBD><D9BA><EFBFBD><EFBFBD><EFBFBD>" then
|
||||
tmp_pros = "1"
|
||||
else
|
||||
tmp_pros = "0"
|
||||
end if
|
||||
%>
|
||||
<table border=0 cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td>
|
||||
<img src="/images/common/btn_print2.jpg" border="0" onClick="win_print()" style="CURSOR:pointer;">
|
||||
<img src="/images/common/btn_cancel.jpg" border="0" onClick="win_close();" style="CURSOR:pointer;">
|
||||
<% if ((tmp_admin_chk = "1" or tmp_request_chk = "1") AND tmp_pros = "1") then %>
|
||||
<img src="/images/common/btn_proc.jpg" border="0" onClick="request_pros();" style="CURSOR:pointer;">
|
||||
<% end if %>
|
||||
<%
|
||||
'response.write "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>? clear_chk : " & clear_chk & "//tmp_admin_chk : " & tmp_admin_chk & "<br>"
|
||||
if clear_chk = "1" and tmp_admin_chk = "1" then
|
||||
%>
|
||||
<img title = '<27><><EFBFBD><EFBFBD>' src="/images/common/btn_delete.jpg" border="0" onClick="request_cls();" style="CURSOR:pointer;">
|
||||
<%
|
||||
Else
|
||||
'If title = "<22>ް<EFBFBD><DEB0><EFBFBD>" And session("loginuser") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" Then '2014-10-07 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ǻ<EFBFBD><C7BB><EFBFBD> <20>μ<EFBFBD> <20>̵<EFBFBD><CCB5><EFBFBD><EFBFBD><EFBFBD> <20>Ż<EFBFBD><C5BB><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><>ü
|
||||
If title = "<22>ް<EFBFBD><DEB0><EFBFBD>" And tmp_request_chk = "1" Then
|
||||
%>
|
||||
<img title = '<27><><EFBFBD><EFBFBD>' src="/images/common/btn_delete.jpg" border="0" onClick="request_cls();" style="CURSOR:pointer;">
|
||||
<%
|
||||
End if
|
||||
end if
|
||||
%>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
249
ess/inc_project_approval.asp
Normal file
249
ess/inc_project_approval.asp
Normal file
@@ -0,0 +1,249 @@
|
||||
<%
|
||||
if view_chk = "1" then
|
||||
|
||||
'### <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ư ǥ<><C7A5> <20><><EFBFBD><EFBFBD>-------
|
||||
tmp_pass_chk = "0"
|
||||
query = "SELECT * "
|
||||
query = query & "FROM [Document] "
|
||||
query = query & "WHERE d_no = '" & d_no & "' "
|
||||
|
||||
adors.Open query, adoConn, 1
|
||||
if adors.recordcount > 0 then
|
||||
if int(adors("d_order_cnt")) < 10 then
|
||||
tmp_pass_psn = adors("d_orders")
|
||||
end if
|
||||
end if
|
||||
adors.close
|
||||
|
||||
'''Response.Write query & "<BR>"
|
||||
|
||||
'<27>ް<EFBFBD><DEB0><EFBFBD>üũ
|
||||
query = "SELECT * "
|
||||
query = query & "FROM [<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>] "
|
||||
query = query & "WHERE login_p_no = '" & tmp_pass_psn & "' "
|
||||
query = query & " AND del_yes_no = 'no' "
|
||||
query = query & " AND (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> = '<27>ް<EFBFBD><DEB0><EFBFBD>' "
|
||||
query = query & " OR <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>') "
|
||||
query = query & " AND SUBSTRING(target1, 1, 4) LIKE '" & year(date) & "' "
|
||||
|
||||
'''Response.Write query & "<BR>"
|
||||
|
||||
adors.open query, adoConn, 1
|
||||
if adors.recordcount > 0 then
|
||||
for i = 1 to adors.recordcount
|
||||
tmp_pass_sdate = adors("target1")
|
||||
tmp_pass_edate = adors("target2")
|
||||
if cdate(tmp_pass_sdate) <= date() AND cdate(tmp_pass_edate) >= date() then
|
||||
tmp_pass_chk = "1"
|
||||
end if
|
||||
adors.movenext
|
||||
next
|
||||
end if
|
||||
adors.close
|
||||
|
||||
'### <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ư ǥ<><C7A5> <20><><EFBFBD><EFBFBD>-------
|
||||
|
||||
' <20>ش<EFBFBD><D8B4><EFBFBD><EFBFBD>ڿ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ۼ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ܱ<EFBFBD><DCB1><EFBFBD><EFBFBD><EFBFBD> <20>ۼ<EFBFBD><DBBC><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>ٸ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Ȱ<><C8B0>ȭ (<28><><EFBFBD>ܱ<EFBFBD>)
|
||||
query = ""
|
||||
query = query & "SELECT count(*) - sum(CASE WHEN j_work_out = 'Y' THEN 1 ELSE 0 END) AS not_work_out "
|
||||
query = query & "FROM job WHERE j_p_no = '" & tmp_pass_psn & "' "
|
||||
query = query & "AND j_date = '" & cstr(date) & "' "
|
||||
adors.open query, adoConn, 1
|
||||
if adors.recordcount > 0 then
|
||||
if adors("not_work_out") = "0" then
|
||||
tmp_pass_chk = "1"
|
||||
end if
|
||||
end if
|
||||
adors.close
|
||||
|
||||
if tmp_pass_chk = "1" then
|
||||
tmp_approval = "<img src='/images/approval/btn_smallapprove_pass.gif' onClick='subit(1," & tmp_pass_psn & ")' style='cursor:pointer'>"
|
||||
'tmp_approval = "<img src='/images/approval/btn_smallapprove_pass.gif' onClick='subit(1)' style='cursor:pointer'>"
|
||||
else
|
||||
tmp_approval = ""
|
||||
end if
|
||||
tmp_reject = ""
|
||||
|
||||
|
||||
set rsp = server.CreateObject("ADODB.RECORDSET")
|
||||
query = "SELECT * "
|
||||
query = query & "FROM person "
|
||||
query = query & "WHERE p_no = '" & rsc("d_orders") & "' "
|
||||
|
||||
If rsc("d_orders") <> "<22><><EFBFBD><EFBFBD>" Then
|
||||
'response.write "query : " & query
|
||||
rsp.Open query, adoConn, 1
|
||||
if rsp.RecordCount > 0 then
|
||||
tmp_name = rsp("p_name")
|
||||
end if
|
||||
rsp.Close
|
||||
End if
|
||||
|
||||
else
|
||||
tmp_approval = "<img src='/images/approval/btn_smallapprove.gif' onClick='subit()' style='cursor:pointer'>"
|
||||
tmp_reject = "<img src='/images/approval/btn_smallreject.gif' onClick='backit(""" & d_no & """)' style='cursor:pointer'>"
|
||||
end if
|
||||
|
||||
query = "SELECT * FROM [Document] " & _
|
||||
"WHERE d_no = '" & d_no & "' "
|
||||
adors.Open query, adoConn, 1
|
||||
|
||||
if adors("d_write_date") > "2014-01-07" then
|
||||
tmp_title = "<22><>ǥ<EFBFBD>̻<EFBFBD>"
|
||||
else
|
||||
tmp_title = "<22><>ȸ<EFBFBD><C8B8>"
|
||||
end if
|
||||
adors.close
|
||||
%>
|
||||
|
||||
<table class="ProjectActionPlanTable" width="100%" cellpadding="0" cellspacing="1" border="1" style="border-collapse:collapse;" bgcolor="#d8d8d8">
|
||||
<tr>
|
||||
<td colspan="4" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD>(<28>ҼӺμ<D3BA>)</td>
|
||||
<td class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1" style="display: none;"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><>/<2F><><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><%=tmp_title%></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD></td>
|
||||
</tr>
|
||||
<%
|
||||
'd_order_cnt = 5
|
||||
'Response.Write "d_order_cnt : " & d_order_cnt & "<BR>"
|
||||
'Ư<><C6AF><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (view_chk = 1<≯<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ϸ<EFBFBD><CFB7><EFBFBD> ó<><C3B3><EFBFBD>ؼ<EFBFBD> <20><><EFBFBD>α<EFBFBD><CEB1><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>ġ <20><><EFBFBD><EFBFBD>, <20>׳<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⸸ <20><> <20><>)
|
||||
'Ư<><C6AF><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<28><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD>(77)<29><> <20>ƴ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 99<39><39> ó<><C3B3><EFBFBD>Ͽ<EFBFBD> <20><><EFBFBD>ι<EFBFBD>ư<EFBFBD><C6B0> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ʵ<EFBFBD><CAB5><EFBFBD> <20><>)
|
||||
if rsc("d_order_cnt") <> "77" and view_chk = "1" then
|
||||
'20100802 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ۼ<EFBFBD><DBBC>ڴ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><>ư<EFBFBD><C6B0> <20><><EFBFBD><EFBFBD>
|
||||
'd_order_cnt = 99
|
||||
end if
|
||||
|
||||
'Response.Write "d_order_cnt : " & d_order_cnt & "<BR>"
|
||||
|
||||
if d_order_cnt = 77 or d_order_cnt = 99 then '<27><><EFBFBD><EFBFBD><EFBFBD>Ϸ<EFBFBD>, <20>Ǵ<EFBFBD> <20>ݷ<EFBFBD>
|
||||
%>
|
||||
<tr height=40>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt1%> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small" style="display: none;"><%=tmp_txt2%> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt3%> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt4%> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt5%> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
</tr>
|
||||
<tr height=20>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt6%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small" style="display: none;"><%=tmp_txt7%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt8%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt9%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt10%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
</tr>
|
||||
<%
|
||||
elseif d_order_cnt = 5 then '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
tmp_txt10 = month(now()) & " / " & day(now())
|
||||
%>
|
||||
<tr height=40>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt1%> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small" style="display: none;"><%=tmp_txt2%> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt3%> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt4%> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small">
|
||||
<%=tmp_approval%>
|
||||
<br>
|
||||
<%=tmp_reject%>
|
||||
<br>
|
||||
<%=replace(tmp_name, "<22><><EFBFBD>غ<EFBFBD>", "<22><><EFBFBD><EFBFBD>ö")%>
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
</tr>
|
||||
<tr height=20>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt6%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small" style="display: none;"><%=tmp_txt7%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt8%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt9%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt10%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
</tr>
|
||||
<%
|
||||
elseif d_order_cnt = 4 then '<27>ӿ<EFBFBD><D3BF><EFBFBD><EFBFBD><EFBFBD>
|
||||
tmp_txt9 = month(now()) & " / " & day(now())
|
||||
%>
|
||||
<tr height=40>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt1%> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small" style="display: none;"><%=tmp_txt2%> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt3%> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small">
|
||||
<%=tmp_approval%>
|
||||
<br>
|
||||
<%=tmp_reject%>
|
||||
<br>
|
||||
<%=tmp_name%>
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
</tr>
|
||||
<tr height=20>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt6%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small" style="display: none;"><%=tmp_txt7%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt8%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt9%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt10%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
</tr>
|
||||
<%
|
||||
elseif d_order_cnt = 3 then '<27>μ<EFBFBD><CEBC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
tmp_txt8 = month(now()) & " / " & day(now())
|
||||
%>
|
||||
<tr height=40>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt1%> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small" style="display: none;"><%=tmp_txt2%> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small">
|
||||
<%=tmp_approval%>
|
||||
<br>
|
||||
<%=tmp_reject%>
|
||||
<br>
|
||||
<%=tmp_name%>
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
</tr>
|
||||
<tr height=20>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt6%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small" style="display: none;"><%=tmp_txt7%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt8%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt9%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt10%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
</tr>
|
||||
<%
|
||||
elseif d_order_cnt = 2 then '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
tmp_txt7 = month(now()) & " / " & day(now())
|
||||
%>
|
||||
<tr height=40>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt1%> </td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small" style="display: none;">
|
||||
<%=tmp_approval%>
|
||||
<br>
|
||||
<%=tmp_reject%>
|
||||
<br>
|
||||
<%=tmp_name%>
|
||||
</td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
</tr>
|
||||
<tr height=20>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt6%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small" style="display: none;"><%=tmp_txt7%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt8%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt9%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt10%></td>
|
||||
<td bgcolor="#FFFFFF" align="center" class="k_small"></td>
|
||||
</tr>
|
||||
<%
|
||||
end if
|
||||
%>
|
||||
</table>
|
||||
139
ess/inc_reply.asp
Normal file
139
ess/inc_reply.asp
Normal file
@@ -0,0 +1,139 @@
|
||||
<%
|
||||
'if tmp_admin_chk = "1" then
|
||||
'Response.Write Request.ServerVariables("PATH_INFO") & "<BR>"
|
||||
tmp_path = split(Request.ServerVariables("PATH_INFO"), "/")
|
||||
'Response.Write ubound(tmp_path) & "<BR>"
|
||||
'Response.Write tmp_path(ubound(tmp_path)) & "<BR>"
|
||||
%>
|
||||
<script>
|
||||
|
||||
function rep_work(a, b, c, d)
|
||||
{
|
||||
if (a == 1)
|
||||
{
|
||||
//alert(a + "\n" + b);
|
||||
if (confirm("<22><><EFBFBD><EFBFBD><EFBFBD>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>? <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ǻ츱 <20><> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>"))
|
||||
{
|
||||
document.ess.action = "reply_work.asp?work_flag=" + a + "&d_no=" + b + "&target_sn=" + c + "&go_url=" + d;
|
||||
//alert("reply_work.asp?d_no=" + b + "&target_sn=" + c + "&go_url=" + d);
|
||||
document.ess.submit();
|
||||
}
|
||||
}
|
||||
else if (a == 2)
|
||||
{
|
||||
if (document.ess.reply.value == "")
|
||||
{
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>");
|
||||
document.ess.reply.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
var txt = document.ess.reply.value.replace(/\n/g,"<br/>");
|
||||
txt = txt.replace(/\&/g,"%26");
|
||||
txt = txt.replace(/\"/g,""");
|
||||
txt = txt.replace(/\'/g,"'");
|
||||
txt = txt.replace(/\+/g,"%2B");
|
||||
txt = txt.replace(/\>/g,"%3E");
|
||||
txt = txt.replace(/\</g,"%3C");
|
||||
txt = txt.replace(/\?/g,"%3F");
|
||||
txt = txt.replace(/\\/g,"%5C");
|
||||
txt = txt.replace(/\[/g,"%5B");
|
||||
txt = txt.replace(/\]/g,"%5D");
|
||||
txt = txt.replace(/\//g,"%2F");
|
||||
txt = txt.replace(/\%/g,"%25");
|
||||
|
||||
for (var i=0;i<txt.length;i++)
|
||||
{
|
||||
var uniCode = txt.charCodeAt(i);
|
||||
if(uniCode == 13 && txt.charCodeAt(i+1) == 10){
|
||||
txt = txt.replace(txt.charAt(i)+txt.charAt(i+1),"<br>");
|
||||
}
|
||||
}
|
||||
document.ess.action = "reply_work.asp?work_flag=" + a + "&d_no=" + b + "&target_sn=" + c + "&go_url=" + d + "&modi_reply=" + txt;
|
||||
document.ess.submit();
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
<%
|
||||
if instr(1, title, "<22><><EFBFBD><EFBFBD>") then
|
||||
tmp_inc_colspan = "4"
|
||||
else
|
||||
tmp_inc_colspan = "2"
|
||||
end if
|
||||
|
||||
if rsc("target91") <> "" then
|
||||
if replace(replace(rsc("target91"), " ", ""), "^^", "") <> "" then
|
||||
|
||||
array_reply = split(rsc("target91"), "^^")
|
||||
'Response.Write rsc("target95") & "<BR>"
|
||||
%>
|
||||
<tr>
|
||||
<td colspan="<%=tmp_inc_colspan%>" style="padding:10 0 0 0">
|
||||
<table width="100%" cellpadding="5" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<%
|
||||
for loop_i = 2 to 6
|
||||
if rsc("target9" & loop_i) <> "" then
|
||||
|
||||
array_tmp = split(array_reply(loop_i - 2), "-")
|
||||
%>
|
||||
<tr>
|
||||
<td width="20%" class="tit2" align="center"><%=array_tmp(0)%><3E><> <20>ڸ<EFBFBD>Ʈ</td>
|
||||
<td width="75%" class="tit12">
|
||||
<table border="0">
|
||||
<tr><td>
|
||||
<font class="tahoma"><%=ViewWord(rsc("target9" & loop_i))%></font>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td>
|
||||
<td width="5%" class="tit13">
|
||||
<%
|
||||
if cstr(array_tmp(1)) = cstr(Session("User_Number")) then
|
||||
%>
|
||||
<table border="0" align="right">
|
||||
<tr><td>
|
||||
<img src="/images/common/btn_popclose.jpg" align="absmiddle" onClick="rep_work('1','<%=rsc("d_no")%>','<%=loop_i%>','<%=tmp_path(ubound(tmp_path))%>')" style="CURSOR:pointer;">
|
||||
</td></tr>
|
||||
</table>
|
||||
<%
|
||||
end if
|
||||
%>
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
end if
|
||||
next
|
||||
%>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
end if
|
||||
end if
|
||||
|
||||
|
||||
|
||||
if print_type <> "2" then
|
||||
if cstr(Session("User_Number")) = cstr(rsc("d_orders")) AND cstr(rsc("d_order_cnt")) <> "77" AND cstr(rsc("d_order_cnt")) <> "99" OR (tmp_admin_chk = "1") then
|
||||
%>
|
||||
<tr>
|
||||
<td colspan="<%=tmp_inc_colspan%>" style="padding:10 0 0 0">
|
||||
<table width="100%" cellpadding="5" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<td width="10%" class="tit2" align="center"><3E>ڸ<EFBFBD>Ʈ <20>ޱ<EFBFBD></td>
|
||||
<td width="90%" class="tit7">
|
||||
<textarea cols="77" rows="3" name="reply" style='vertical-align:middle;'></textarea>
|
||||
<img src="/images/board/btn_write.jpg" align="absmiddle" style="CURSOR:pointer;" onClick="rep_work('2','<%=rsc("d_no")%>','<%=rsc("d_order_cnt")%>','<%=tmp_path(ubound(tmp_path))%>')">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
end if
|
||||
end if
|
||||
%>
|
||||
|
||||
<%
|
||||
'end if
|
||||
%>
|
||||
67
ess/project_reason.asp
Normal file
67
ess/project_reason.asp
Normal file
@@ -0,0 +1,67 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
d_no = request("d_no")
|
||||
|
||||
'page config
|
||||
tmp_colspan = 2
|
||||
%>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
|
||||
<LINK rel="stylesheet" type="text/css" href="/lib/text.css">
|
||||
<script src="/lib/function.js" type="text/javascript1.3"></script>
|
||||
<title>
|
||||
<09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD>
|
||||
</title>
|
||||
<script language=javascript>
|
||||
|
||||
|
||||
function clsit() {
|
||||
self.close();
|
||||
}
|
||||
|
||||
function upit() {
|
||||
|
||||
if (document.pms.del_reason.value.trim() == "")
|
||||
{
|
||||
if (confirm("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ݷ<EFBFBD><DDB7>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?"))
|
||||
{
|
||||
}
|
||||
else
|
||||
{
|
||||
document.pms.del_reason.value = "";
|
||||
document.pms.del_reason.focus();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
//alert('ok');
|
||||
document.pms.action = "project_reason_delok.asp";
|
||||
document.pms.submit();
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<form name="pms" method="post">
|
||||
|
||||
<input type="hidden" name="d_no" value="<%=d_no%>">
|
||||
|
||||
<table border="0" cellspacing="0" cellpadding="5" width="350">
|
||||
<tr align="center" height="35">
|
||||
<td>
|
||||
<textarea name="del_reason" cols="42" rows="5"></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<p style="margin-top:2.0pt;margin-bottom:3.0pt;"></p>
|
||||
<table border="0" cellspacing="0" cellpadding="0" width="335" bgcolor="white">
|
||||
<tr align="center">
|
||||
<td colspan="99">
|
||||
<!--input type="button" value="<22><> <20><>" onClick="upit()"-->
|
||||
<img src="/images/button/<2F>ۼ<EFBFBD>.gif" border="0" onClick="upit();" style="CURSOR:pointer;">
|
||||
|
||||
<!--input type="button" value="<22><> <20><>" onClick="clsit()"-->
|
||||
<img src="/images/button/<2F><><EFBFBD><EFBFBD>.gif" border="0" onClick="clsit();" style="CURSOR:pointer;">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
72
ess/project_reason_2014.asp
Normal file
72
ess/project_reason_2014.asp
Normal file
@@ -0,0 +1,72 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
d_no = request("d_no")
|
||||
p_sn = request("p_sn")
|
||||
p_sub_type = request("p_sub_type")
|
||||
p_method_cd = request("p_method_cd")
|
||||
|
||||
'response.write "p_sn : "&p_sn&"//p_sub_type : "&p_sub_type&"//"&p_method_cd
|
||||
|
||||
'page config
|
||||
tmp_colspan = 2
|
||||
%>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
|
||||
<title>
|
||||
<09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD>
|
||||
</title>
|
||||
<script language=javascript>
|
||||
|
||||
|
||||
function clsit() {
|
||||
self.close();
|
||||
}
|
||||
|
||||
function upit() {
|
||||
|
||||
if (document.pms.del_reason.value.trim() == "")
|
||||
{
|
||||
if (confirm("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ݷ<EFBFBD><DDB7>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?"))
|
||||
{
|
||||
}
|
||||
else
|
||||
{
|
||||
document.pms.del_reason.value = "";
|
||||
document.pms.del_reason.focus();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
//alert('ok');
|
||||
document.pms.action = "project_reason_delok_2014.asp";
|
||||
document.pms.submit();
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<form name="pms" method="post">
|
||||
|
||||
<input type="hidden" name="d_no" value="<%=d_no%>">
|
||||
<input type="hidden" name="p_sn" value="<%=p_sn%>">
|
||||
<input type="hidden" name="p_sub_type" value="<%=p_sub_type%>">
|
||||
<input type="hidden" name="p_method_cd" value="<%=p_method_cd%>">
|
||||
|
||||
|
||||
<table border="0" cellspacing="0" cellpadding="5" width="350">
|
||||
<tr align="center" height="35">
|
||||
<td>
|
||||
<textarea name="del_reason" cols="42" rows="5"></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<p style="margin-top:2.0pt;margin-bottom:3.0pt;"></p>
|
||||
<table border="0" cellspacing="0" cellpadding="0" width="335" bgcolor="white">
|
||||
<tr align="center">
|
||||
<td colspan="99">
|
||||
<img src="/images/common/btn_write.jpg" border="0" onClick="upit();" style="CURSOR:pointer;">
|
||||
|
||||
<img src="/images/common/btn_cancel2.jpg" border="0" onClick="clsit();" style="CURSOR:pointer;">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
78
ess/project_reason_delok.asp
Normal file
78
ess/project_reason_delok.asp
Normal file
@@ -0,0 +1,78 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
d_no = request("d_no")
|
||||
del_reason = CheckWord(request("del_reason"))
|
||||
|
||||
query = "SELECT * "
|
||||
query = query & "FROM Document as a "
|
||||
query = query & " INNER JOIN <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> as b on a.d_no = b.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ "
|
||||
query = query & "WHERE a.d_no='" & d_no & "' "
|
||||
|
||||
rsc.Open query, adoConn, 1
|
||||
if rsc.RecordCount > 0 then
|
||||
|
||||
tmp = split(rsc("target1"), "^^")
|
||||
for i = 0 to ubound(tmp)
|
||||
if trim(tmp(i)) = "" then
|
||||
tmp(i) = Session("loginuser") & "<BR>" & replace(date(), "-", "") & "<BR><3E>ݷ<EFBFBD>"
|
||||
exit for
|
||||
end if
|
||||
next
|
||||
|
||||
target1 = ""
|
||||
for i = 0 to ubound(tmp)
|
||||
if i <> 0 then
|
||||
target1 = target1 & "^^"
|
||||
end if
|
||||
target1 = target1 & tmp(i)
|
||||
next
|
||||
|
||||
query = "UPDATE Document "
|
||||
query = query & "SET "
|
||||
query = query & " d_delok = 'Y', "
|
||||
query = query & " d_order_cnt = '99' "
|
||||
query = query & "WHERE d_no = '" & d_no & "' "
|
||||
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query
|
||||
dbin.Close
|
||||
|
||||
query = "UPDATE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> "
|
||||
query = query & "SET "
|
||||
query = query & " target1 = '" & target1 & "', "
|
||||
query = query & " del_yes_no = 'yes', "
|
||||
query = query & " del_date = '" & date() & "', "
|
||||
query = query & " del_time = '" & time() & "', "
|
||||
query = query & " del_ip = '" & Request.ServerVariables("REMOTE_ADDR") & "', "
|
||||
query = query & " del_user_name = '" & Session("loginuser") & "', "
|
||||
query = query & " del_reason = '" & del_reason & "' "
|
||||
query = query & "WHERE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '" & d_no & "' "
|
||||
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query
|
||||
dbin.Close
|
||||
|
||||
%>
|
||||
|
||||
<html>
|
||||
<script>
|
||||
function goit() {
|
||||
alert('<27>ݷ<EFBFBD><DDB7>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>');
|
||||
self.close();
|
||||
opener.close();
|
||||
}
|
||||
</script>
|
||||
<body onLoad="goit()">
|
||||
<form name="pms" method="post">
|
||||
<input type="hidden" name="d_no" value="<%=d_no%>">
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
<%
|
||||
else
|
||||
alert2 "DB <20><><EFBFBD><EFBFBD>. <20><><EFBFBD><EFBFBD><EFBFBD>ڿ<EFBFBD><DABF><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>"
|
||||
end if 'if rsc.RecordCount > 0 then
|
||||
rsc.Close
|
||||
%>
|
||||
122
ess/project_reason_delok_2014.asp
Normal file
122
ess/project_reason_delok_2014.asp
Normal file
@@ -0,0 +1,122 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
set rsd = server.CreateObject("ADODB.RECORDSET")
|
||||
|
||||
d_no = request("d_no")
|
||||
del_reason = CheckWord(request("del_reason"))
|
||||
|
||||
p_sn = request("p_sn")
|
||||
p_sub_type = request("p_sub_type")
|
||||
|
||||
query = "SELECT * "
|
||||
query = query & "FROM Document as a "
|
||||
query = query & " INNER JOIN <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> as b on a.d_no = b.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ "
|
||||
query = query & "WHERE a.d_no='" & d_no & "' "
|
||||
|
||||
rsc.Open query, adoConn, 1
|
||||
if rsc.RecordCount > 0 then
|
||||
|
||||
tmp = split(rsc("target1"), "^^")
|
||||
for i = 0 to ubound(tmp)
|
||||
if trim(tmp(i)) = "" then
|
||||
tmp(i) = Session("loginuser") & "<BR>" & replace(date(), "-", "") & "<BR><3E>ݷ<EFBFBD>"
|
||||
exit for
|
||||
end if
|
||||
next
|
||||
|
||||
target1 = ""
|
||||
for i = 0 to ubound(tmp)
|
||||
if i <> 0 then
|
||||
target1 = target1 & "^^"
|
||||
end if
|
||||
target1 = target1 & tmp(i)
|
||||
next
|
||||
|
||||
query = "UPDATE Document "
|
||||
query = query & "SET "
|
||||
query = query & " d_delok = 'Y', "
|
||||
query = query & " d_order_cnt = '99' "
|
||||
query = query & "WHERE d_no = '" & d_no & "' "
|
||||
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query
|
||||
dbin.Close
|
||||
|
||||
query = "UPDATE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> "
|
||||
query = query & "SET "
|
||||
query = query & " target1 = '" & target1 & "', "
|
||||
query = query & " del_yes_no = 'yes', "
|
||||
query = query & " del_date = '" & date() & "', "
|
||||
query = query & " del_time = '" & time() & "', "
|
||||
query = query & " del_ip = '" & Request.ServerVariables("REMOTE_ADDR") & "', "
|
||||
query = query & " del_user_name = '" & Session("loginuser") & "', "
|
||||
query = query & " del_reason = '" & del_reason & "' "
|
||||
query = query & "WHERE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '" & d_no & "' "
|
||||
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query
|
||||
dbin.Close
|
||||
|
||||
|
||||
query = "select <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ, p_sn, p_child_sn, d_order_cnt "
|
||||
query = query & "FROM <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> as A "
|
||||
query = query & "LEFT OUTER JOIN Document AS B "
|
||||
query = query & "ON A.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = B.d_no "
|
||||
query = query & "where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '" & d_no & "' "
|
||||
|
||||
if Request.ServerVariables("REMOTE_ADDR") = "10.10.14.53" then
|
||||
'Response.Write query & "<BR>"
|
||||
end If
|
||||
|
||||
rsd.Open query, adoConn, 1
|
||||
if rsd.RecordCount > 0 Then
|
||||
tmp_p_sub_type = rsd("p_child_sn")
|
||||
End If
|
||||
|
||||
'<27><><EFBFBD><EFBFBD> <20>ݷ<EFBFBD> - <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ p_progress_status<75><73> 006<30><36><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ
|
||||
query = "UPDATE [project2].[dbo].[T_PROJECT_METHOD] "
|
||||
query = query & "SET p_progress_status = '006' "
|
||||
query = query & "WHERE p_sn = '" & p_sn & "' "
|
||||
|
||||
If InStr(tmp_p_sub_type, "_C") > 0 Then
|
||||
query = query & "and p_sub_type = 'C' "
|
||||
query = query & "and p_child_sn = '" & rsd("p_child_sn") & "' "
|
||||
Else
|
||||
query = query & "and p_sub_type = 'M' "
|
||||
End If
|
||||
rsd.close
|
||||
|
||||
adoconn.Execute query
|
||||
'response.write "query : " & query & "<br/>"
|
||||
|
||||
'<27><><EFBFBD><EFBFBD> <20>ݷ<EFBFBD> - <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ p_state<74><65> K<><4B> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ
|
||||
query = "UPDATE [project2].[dbo].[T_PROJECT_BASE] "
|
||||
query = query & "SET p_state = 'K' "
|
||||
query = query & "WHERE p_sn = '" & p_sn & "' "
|
||||
|
||||
adoconn.Execute query
|
||||
' response.write "query : " & query & "<br/>"
|
||||
%>
|
||||
|
||||
<html>
|
||||
<script>
|
||||
function goit() {
|
||||
alert('<27>ݷ<EFBFBD><DDB7>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>');
|
||||
self.close();
|
||||
opener.close();
|
||||
}
|
||||
</script>
|
||||
<body onLoad="goit()">
|
||||
<form name="pms" method="post">
|
||||
<input type="hidden" name="d_no" value="<%=d_no%>">
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
<%
|
||||
else
|
||||
alert2 "DB <20><><EFBFBD><EFBFBD>. <20><><EFBFBD><EFBFBD><EFBFBD>ڿ<EFBFBD><DABF><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>"
|
||||
end if 'if rsc.RecordCount > 0 then
|
||||
rsc.Close
|
||||
%>
|
||||
1093
ess/project_report_2014.asp
Normal file
1093
ess/project_report_2014.asp
Normal file
File diff suppressed because it is too large
Load Diff
193
ess/project_report_ok_2014.asp
Normal file
193
ess/project_report_ok_2014.asp
Normal file
@@ -0,0 +1,193 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
set rsp = server.CreateObject("ADODB.RECORDSET")
|
||||
set rsm = server.CreateObject("ADODB.RECORDSET")
|
||||
|
||||
d_no = request("d_no")
|
||||
approve_pass = request("approve_pass")
|
||||
tmp_pass_psn = request("tmp_pass_psn")
|
||||
|
||||
query = "SELECT * "
|
||||
query = query & "FROM Document as a "
|
||||
query = query & "INNER JOIN <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> as b on a.d_no = b.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ "
|
||||
query = query & "WHERE a.d_no='" & d_no & "' "
|
||||
|
||||
rsc.Open query, adoConn, 1
|
||||
if rsc.RecordCount > 0 then
|
||||
|
||||
tmp = split(rsc("target99"), "^^")
|
||||
for i = 0 to ubound(tmp)
|
||||
if trim(tmp(i)) = "" then
|
||||
if approve_pass = "1" then
|
||||
tmp(i) = "<22><><EFBFBD><EFBFBD>"
|
||||
else
|
||||
tmp(i) = Session("loginuser") & "<BR>" & replace(date(), "-", "") & "<BR>" & Session("User_Number")
|
||||
end if
|
||||
tmp_i = i
|
||||
exit for
|
||||
end if
|
||||
next
|
||||
|
||||
'----------------------------------------------------
|
||||
'target100<30><30> <20><>¥ <20><><EFBFBD><EFBFBD>
|
||||
tmp2 = split(rsc("target100"), "^^")
|
||||
tmp2(tmp_i) = month(now()) & " / " & day(now())
|
||||
'----------------------------------------------------
|
||||
|
||||
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڸ<EFBFBD> <20><><EFBFBD><EFBFBD>Ű<EFBFBD><C5B0><EFBFBD><EFBFBD> <20>ϳ<EFBFBD><CFB3><EFBFBD> <20><><EFBFBD><EFBFBD> <20><>
|
||||
tmp_i = tmp_i + 1
|
||||
|
||||
'Response.Write "tmp_end : " & tmp_end & "<BR>"
|
||||
for i = int(rsc("d_order_cnt")) + 1 to ubound(tmp) + 1
|
||||
if rsc("d_order" & i) = "<22><><EFBFBD><EFBFBD>" or rsc("d_order" & i) = "NO" then
|
||||
tmp_order_value = "<22><><EFBFBD><EFBFBD>"
|
||||
|
||||
if rsc("d_order" & i) = "<22><><EFBFBD><EFBFBD>" then
|
||||
tmp_1 = "1"
|
||||
else
|
||||
tmp_1 = "0"
|
||||
end if
|
||||
|
||||
if tmp_1 = "1" then
|
||||
tmp(tmp_i) = tmp_order_value
|
||||
tmp_i = tmp_i + 1
|
||||
end if
|
||||
|
||||
else
|
||||
d_order_cnt = i
|
||||
d_orders = rsc("d_order" & i)
|
||||
exit for
|
||||
end if
|
||||
next
|
||||
|
||||
'Response.Write "d_order_cnt : " & d_order_cnt & "<BR>"
|
||||
'<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ϸ<EFBFBD>
|
||||
'if trim(tmp(ubound(tmp) + 1)) <> "" then
|
||||
if i > ubound(tmp) + 1 then
|
||||
d_order_cnt = "77"
|
||||
d_orders = rsc("login_p_no")
|
||||
end if
|
||||
'Response.Write "d_order_cnt : " & d_order_cnt & "<BR>"
|
||||
|
||||
target99 = ""
|
||||
for i = 0 to ubound(tmp)
|
||||
if i <> 0 then
|
||||
target99 = target99 & "^^"
|
||||
end if
|
||||
target99 = target99 & tmp(i)
|
||||
next
|
||||
|
||||
target100 = ""
|
||||
for i = 0 to ubound(tmp2)
|
||||
if i <> 0 then
|
||||
target100 = target100 & "^^"
|
||||
end if
|
||||
target100 = target100 & tmp2(i)
|
||||
next
|
||||
|
||||
query = "UPDATE Document "
|
||||
query = query & "SET "
|
||||
query = query & " d_order_cnt = '" & d_order_cnt & "', "
|
||||
query = query & " d_orders = '" & d_orders & "' "
|
||||
query = query & "WHERE d_no = '" & d_no & "' "
|
||||
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query
|
||||
dbin.Close
|
||||
|
||||
'<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ϸ<EFBFBD>
|
||||
If d_order_cnt = "77" Then
|
||||
query = "UPDATE [project2].[dbo].[T_PROJECT_METHOD] "
|
||||
query = query & "SET p_progress_status = '008' "
|
||||
query = query & "WHERE p_sn = '" & rsc("p_sn") & "' "
|
||||
|
||||
If request("p_sub_type") = "C" Then
|
||||
query = query & " and p_child_sn = '" & request("p_child_sn") & "' "
|
||||
End if
|
||||
|
||||
adoconn.Execute query
|
||||
' response.write "query : " & query & "<br/>"
|
||||
|
||||
query = "UPDATE [project2].[dbo].[T_PROJECT_BASE] "
|
||||
query = query & "SET p_state = 'P' "
|
||||
query = query & "WHERE p_sn = '" & rsc("p_sn") & "' "
|
||||
|
||||
adoconn.Execute query
|
||||
' response.write "query : " & query & "<br/>"
|
||||
|
||||
query = "insert into <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_log (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_p_no, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_<EFBFBD≯<EFBFBD>, <20><><EFBFBD><EFBFBD>,"
|
||||
query = query & " <20>߱<EFBFBD><DFB1><EFBFBD>, <20>߱ð<DEBD>, <20>߱<EFBFBD><DFB1><EFBFBD>_p_no, <20>߱<EFBFBD><DFB1><EFBFBD>_<EFBFBD≯<EFBFBD>, <20>߱<EFBFBD><DFB1><EFBFBD>_ip) values ( "
|
||||
query = query & "'" & d_no & "', "
|
||||
query = query & "'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȹ<EFBFBD><C8B9>', "
|
||||
query = query & "'" & Session("User_Number") & "', "
|
||||
query = query & "'" & Session("loginuser") & "', "
|
||||
query = query & "'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>', "
|
||||
query = query & "'" & year(date) & "-" & zeroformat(month(date),2) & "-" & zeroformat(day(date),2) & "', "
|
||||
query = query & "'" & time() & "', "
|
||||
query = query & "'', '', "
|
||||
' query = query & "'" & user_name(0) & "', "
|
||||
' query = query & "'" & user_name(1) & "', "
|
||||
query = query & "'" & Session("USERIP") & "')"
|
||||
|
||||
adoconn.execute query
|
||||
|
||||
End if
|
||||
|
||||
query = "UPDATE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> "
|
||||
query = query & "SET "
|
||||
query = query & " target99 = '" & target99 & "', "
|
||||
query = query & " target100 = '" & target100 & "' "
|
||||
query = query & "WHERE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '" & d_no & "' "
|
||||
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query
|
||||
dbin.Close
|
||||
'Response.Write target99 & "<BR>"
|
||||
|
||||
'<27><><EFBFBD><EFBFBD> <20><>ư Ŭ<><C5AC><EFBFBD>Ͽ<EFBFBD><CFBF><EFBFBD> <20><> document_pass <20><><EFBFBD>̺<EFBFBD><CCBA><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
if approve_pass = "1" then
|
||||
query = "INSERT INTO [Document_pass] "
|
||||
query = query & "(d_no, d_orders, d_write_date, d_view, d_delok) "
|
||||
query = query & "VALUES "
|
||||
query = query & "('" & d_no & "', "
|
||||
query = query & " '" & tmp_pass_psn & "', "
|
||||
query = query & " '" & date() & "', "
|
||||
query = query & " 'Y', "
|
||||
query = query & " 'N') "
|
||||
end if
|
||||
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query
|
||||
dbin.Close
|
||||
%>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
|
||||
<LINK rel="stylesheet" type="text/css" href="cfg/text.css">
|
||||
<title>
|
||||
|
||||
</title>
|
||||
<script language=javascript>
|
||||
function goit() {
|
||||
alert('<27><><EFBFBD>εǾ<CEB5><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>');
|
||||
opener.location.reload();
|
||||
self.close();
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body onLoad="goit()">
|
||||
<form name="pms" method="post">
|
||||
|
||||
<input type="hidden" name="p_sn" value="<%=p_sn%>">
|
||||
|
||||
</body>
|
||||
</html>
|
||||
<%
|
||||
else
|
||||
alert2 "DB <20><><EFBFBD><EFBFBD>. <20><><EFBFBD><EFBFBD><EFBFBD>ڿ<EFBFBD><DABF><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>"
|
||||
end if 'if rsc.RecordCount > 0 then
|
||||
rsc.Close
|
||||
%>
|
||||
73
ess/reason.asp
Normal file
73
ess/reason.asp
Normal file
@@ -0,0 +1,73 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
d_no = request("d_no")
|
||||
|
||||
'page config
|
||||
tmp_colspan = 2
|
||||
%>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
|
||||
<title>
|
||||
<09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD>
|
||||
</title>
|
||||
<script language=javascript>
|
||||
|
||||
|
||||
function clsit() {
|
||||
self.close();
|
||||
}
|
||||
|
||||
function upit() {
|
||||
|
||||
if (document.ess.del_reason.value.trim() == "")
|
||||
{
|
||||
if (confirm("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ݷ<EFBFBD><DDB7>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?"))
|
||||
{
|
||||
}
|
||||
else
|
||||
{
|
||||
document.ess.del_reason.value = "";
|
||||
document.ess.del_reason.focus();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
//alert('ok');
|
||||
var posi = opener.opener.location.href;
|
||||
if (posi != "") {
|
||||
document.ess.posi.value = posi;
|
||||
}
|
||||
//alert(posi);
|
||||
document.ess.action = "reason_delok.asp";
|
||||
document.ess.submit();
|
||||
}
|
||||
|
||||
function focusit()
|
||||
{
|
||||
document.ess.del_reason.focus();
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body onLoad="focusit()">
|
||||
<form name="ess" method="post">
|
||||
|
||||
<input type="hidden" name="d_no" value="<%=d_no%>">
|
||||
<input type="hidden" name="posi" value="">
|
||||
<table border="0" cellspacing="0" cellpadding="5" width="350">
|
||||
<tr align="center" height="35">
|
||||
<td>
|
||||
<textarea name="del_reason" cols="42" rows="5"></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<p style="margin-top:2.0pt;margin-bottom:3.0pt;"></p>
|
||||
<table border="0" cellspacing="0" cellpadding="0" width="335" bgcolor="white">
|
||||
<tr align="center">
|
||||
<td colspan="99">
|
||||
<img src="/images/common/btn_write.jpg" border="0" onClick="upit();" style="CURSOR:pointer;">
|
||||
|
||||
<img src="/images/common/btn_cancel2.jpg" border="0" onClick="clsit();" style="CURSOR:pointer;">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
348
ess/reason_delok.asp
Normal file
348
ess/reason_delok.asp
Normal file
@@ -0,0 +1,348 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
|
||||
set rsd = server.CreateObject("ADODB.RECORDSET")
|
||||
|
||||
posi = request("posi")
|
||||
|
||||
d_no = request("d_no")
|
||||
del_reason = CheckWord(request("del_reason"))
|
||||
|
||||
query = "SELECT * "
|
||||
query = query & "FROM Document as a "
|
||||
query = query & " INNER JOIN <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> as b on a.d_no = b.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ "
|
||||
query = query & "WHERE a.d_no='" & d_no & "' "
|
||||
|
||||
|
||||
rsc.Open query, adoConn, 1
|
||||
if rsc.RecordCount > 0 then
|
||||
tmp = split(rsc("target99"), "^^")
|
||||
for i = 0 to ubound(tmp)
|
||||
if trim(tmp(i)) = "" then
|
||||
tmp(i) = Session("loginuser") & "<BR>" & replace(date(), "-", "") & "<BR><3E>ݷ<EFBFBD>"
|
||||
exit for
|
||||
end if
|
||||
next
|
||||
|
||||
target99 = ""
|
||||
for i = 0 to ubound(tmp)
|
||||
if i <> 0 then
|
||||
target99 = target99 & "^^"
|
||||
end if
|
||||
target99 = target99 & tmp(i)
|
||||
next
|
||||
|
||||
|
||||
'----------------------------------------------------------------------------------------------
|
||||
'### cost_account <20><><EFBFBD>̺<EFBFBD><CCBA><EFBFBD> <20>ش繮<D8B4><E7B9AE> <20><>ȣ<EFBFBD><C8A3> <20><><EFBFBD>ڵ尡 <20>ִٸ<D6B4> <20><><EFBFBD><EFBFBD>ó<EFBFBD><C3B3><EFBFBD><EFBFBD> <20>ȵȰɷ<C8B0> Ű<><C5B0><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
'### <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ν<EFBFBD>û<EFBFBD><C3BB><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> Ű<><C5B0><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
if rsc("d_name") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ν<EFBFBD>û<EFBFBD><C3BB>" then
|
||||
query = "UPDATE cost_account "
|
||||
query = query & "SET "
|
||||
query = query & " approval = 'no' "
|
||||
query = query & "WHERE d_no = '" & d_no & "' "
|
||||
|
||||
if Request.ServerVariables("REMOTE_ADDR") = "210.108.148.36" then
|
||||
'Response.Write query & "<BR>"
|
||||
end if
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query
|
||||
dbin.Close
|
||||
end if
|
||||
'----------------------------------------------------------------------------------------------
|
||||
|
||||
'----------------------------------------------------------------------------------------------
|
||||
'#### <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ݷ<EFBFBD><DDB7><EFBFBD> direct_cost_cc <20><><EFBFBD>̺<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
if rsc("d_name") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" then
|
||||
query = "UPDATE direct_cost_cc "
|
||||
query = query & "SET "
|
||||
query = query & " d_viewok = 'N' "
|
||||
query = query & "WHERE d_no = '" & d_no & "' "
|
||||
|
||||
if Request.ServerVariables("REMOTE_ADDR") = "210.108.148.36" then
|
||||
'Response.Write query & "<BR>"
|
||||
end if
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query
|
||||
dbin.Close
|
||||
end if
|
||||
'----------------------------------------------------------------------------------------------
|
||||
|
||||
'----------------------------------------------------------------------------------------------
|
||||
'####(2014-07-31) <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǽ<EFBFBD> <20><><EFBFBD>ҽ<EFBFBD> direct_cost<73><74> <20>־<EFBFBD><D6BE><EFBFBD> act_money<65><79> <20><><EFBFBD><EFBFBD>.
|
||||
if rsc("d_name") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǽ<EFBFBD>" then
|
||||
If Mid(rsc("d_no"), 10, 1) = "A" Then
|
||||
Dim tmp_rowData
|
||||
Dim gap(30, 10)
|
||||
|
||||
If rsc("target16") <> "common" Then
|
||||
for i=1 to 30
|
||||
tmp_rowData = rsc("target"& CStr(20 + i))
|
||||
If Trim(tmp_rowData) <> "" Then
|
||||
'response.Write "tmp_rowData : " & tmp_rowData &"<BR>"
|
||||
contents_cnt = contents_cnt + 1
|
||||
tmp_Arr = split(tmp_rowData, "^//^")
|
||||
replaceStr = CStr(i)+"^^"
|
||||
gap(i, 1) = tmp_Arr(0) '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><>
|
||||
gap(i, 1) = Replace(gap(i, 1), replaceStr, "")
|
||||
gap(i, 2) = tmp_Arr(4) '<27><EFBFBD>
|
||||
gap(i, 3) = "" '
|
||||
gap(i, 4) = "" '
|
||||
gap(i, 5) = tmp_Arr(1) '<27><><EFBFBD>ް<EFBFBD><DEB0><EFBFBD>
|
||||
gap(i, 6) = tmp_Arr(2) '<27>ΰ<EFBFBD><CEB0><EFBFBD><EFBFBD><EFBFBD>
|
||||
gap(i, 7) = tmp_Arr(3) '<27>Ա<EFBFBD><D4B1>Ѿ<EFBFBD>
|
||||
gap(i, 8) = "" '
|
||||
gap(i, 9) = gap(i, 1) '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><>ȣ
|
||||
gap(i, 10) = tmp_Arr(4) '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
|
||||
'response.Write "gap(i, 1) : " & gap(i, 1) &"<BR>"
|
||||
'response.Write "gap(i, 2) : " & gap(i, 2) &"<BR>"
|
||||
'response.Write "gap(i, 3) : " & gap(i, 3) &"<BR>"
|
||||
'response.Write "gap(i, 4) : " & gap(i, 4) &"<BR>"
|
||||
'response.Write "gap(i, 5) : " & gap(i, 5) &"<BR>"
|
||||
'response.Write "gap(i, 6) : " & gap(i, 6) &"<BR>"
|
||||
'response.Write "gap(i, 7) : " & gap(i, 7) &"<BR>"
|
||||
'response.Write "gap(i, 8) : " & gap(i, 8) &"<BR>"
|
||||
'response.Write "gap(i, 9) : " & gap(i, 9) &"<BR>"
|
||||
'response.Write "gap(i, 10) : " & gap(i, 10) &"<BR>"
|
||||
|
||||
query = " SELECT est_money, act_money "
|
||||
query = query & " FROM direct_cost "
|
||||
query = query & " WHERE p_child_sn = '"& gap(i, 9) &"' "
|
||||
query = query & " AND hangmok = '"&rsc("target11")&"' "
|
||||
query = query & " AND del_yes_no = 'no' "
|
||||
query = query & " AND sebu = ( "
|
||||
query = query & " SELECT d_cost_name "
|
||||
query = query & " FROM direct_costcode "
|
||||
query = query & " WHERE id = '"&rsc("target12")&"' "
|
||||
query = query & " ) "
|
||||
|
||||
rsd.Open query, adoConn, 1
|
||||
|
||||
act_money = clng(rsd("act_money")) - CDbl(Replace(gap(i, 5), ",", ""))
|
||||
cha_money = rsd("est_money") - act_money
|
||||
|
||||
'Response.Write "1 : " & rsd("act_money") & "<BR>"
|
||||
'Response.Write "2 : " & rsc("target5") & "<BR>"
|
||||
'Response.Write "3 : " & act_money & "<BR>"
|
||||
'Response.Write "4 : " & cha_money & "<BR>"
|
||||
rsd.close
|
||||
|
||||
query = " UPDATE direct_cost "
|
||||
query = query & " SET act_money = '"& act_money &"' "
|
||||
query = query & " ,cha_money = '"& cha_money &"' "
|
||||
query = query & " WHERE p_child_sn = '"& gap(i, 9) &"' "
|
||||
query = query & " AND hangmok = '"&rsc("target11")&"' "
|
||||
query = query & " AND del_yes_no = 'no' "
|
||||
query = query & " AND sebu = ( "
|
||||
query = query & " SELECT d_cost_name "
|
||||
query = query & " FROM direct_costcode "
|
||||
query = query & " WHERE id = '"&rsc("target12")&"' "
|
||||
query = query & " ) "
|
||||
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query
|
||||
dbin.Close
|
||||
End if
|
||||
Next
|
||||
End if
|
||||
ElseIf left(rsc("p_sn"),4) > "1406" and left(rsc("p_sn"),4) <> "9999" Then
|
||||
query = " SELECT est_money, act_money "
|
||||
query = query & " FROM direct_cost "
|
||||
query = query & " WHERE p_child_sn = '"& rsc("target10")&"' "
|
||||
query = query & " AND hangmok = '"&rsc("target11")&"' "
|
||||
query = query & " AND del_yes_no = 'no' "
|
||||
query = query & " AND sebu = ( "
|
||||
query = query & " SELECT d_cost_name "
|
||||
query = query & " FROM direct_costcode "
|
||||
query = query & " WHERE id = '"&rsc("target12")&"' "
|
||||
query = query & " ) "
|
||||
|
||||
rsd.Open query, adoConn, 1
|
||||
|
||||
'''Response.Write "1 : " & rsd("act_money") & "<BR>"
|
||||
'''Response.Write "2 : " & rsc("target5") & "<BR>"
|
||||
act_money = clng(rsd("act_money")) - rsc("target5")
|
||||
cha_money = rsd("est_money") - act_money
|
||||
'''Response.Write "3 : " & act_money & "<BR>"
|
||||
|
||||
rsd.close
|
||||
|
||||
query = " UPDATE direct_cost "
|
||||
query = query & " SET act_money = '"& act_money &"' "
|
||||
query = query & " WHERE p_child_sn = '"& rsc("target10")&"' "
|
||||
query = query & " AND hangmok = '"&rsc("target11")&"' "
|
||||
query = query & " AND del_yes_no = 'no' "
|
||||
query = query & " AND sebu = ( "
|
||||
query = query & " SELECT d_cost_name "
|
||||
query = query & " FROM direct_costcode "
|
||||
query = query & " WHERE id = '"&rsc("target12")&"' "
|
||||
query = query & " ) "
|
||||
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query
|
||||
dbin.Close
|
||||
|
||||
query = " UPDATE direct_cost "
|
||||
query = query & " SET cha_money = '"& cha_money &"' "
|
||||
query = query & " WHERE p_child_sn = '"& rsc("target10")&"' "
|
||||
query = query & " AND hangmok = '"&rsc("target11")&"' "
|
||||
query = query & " AND del_yes_no = 'no' "
|
||||
query = query & " AND sebu = ( "
|
||||
query = query & " SELECT d_cost_name "
|
||||
query = query & " FROM direct_costcode "
|
||||
query = query & " WHERE id = '"&rsc("target12")&"' "
|
||||
query = query & " ) "
|
||||
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query
|
||||
dbin.Close
|
||||
End If
|
||||
End if
|
||||
'----------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
'----------------------------------------------------------------------------------------------
|
||||
'####(2015-12-07) <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǽ<EFBFBD> <20><><EFBFBD>ҽ<EFBFBD> T_neakeun_pay<61><79> <20>ִ<EFBFBD> Pay_month<74><68> attribute05<30><35> <20><><EFBFBD><EFBFBD>.
|
||||
if rsc("d_name") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǽ<EFBFBD>" then
|
||||
|
||||
query = " UPDATE T_NEAKEUN_PAY "
|
||||
query = query & " SET pay_month = '', attribute05 = null "
|
||||
query = query & " WHERE attribute05 = '" & d_no & "' "
|
||||
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query
|
||||
dbin.Close
|
||||
|
||||
End if
|
||||
'----------------------------------------------------------------------------------------------
|
||||
|
||||
'----------------------------------------------------------------------------------------------
|
||||
'####(2015-12-07) <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǽ<EFBFBD> <20><><EFBFBD>ҽ<EFBFBD> T_neakeun_pay<61><79> <20>ִ<EFBFBD> Pay_month<74><68> attribute05<30><35> <20><><EFBFBD><EFBFBD>.
|
||||
if rsc("d_name") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǽ<EFBFBD>" then
|
||||
|
||||
query = " UPDATE T_MYUN_PAY "
|
||||
query = query & " SET pay_month = '', attribute05 = null "
|
||||
query = query & " WHERE attribute05 = '" & d_no & "' "
|
||||
|
||||
if Request.ServerVariables("REMOTE_ADDR") = session("admin_ip") then
|
||||
'Response.Write "<22><><EFBFBD><EFBFBD><EFBFBD>ڸ<EFBFBD> <20><><EFBFBD><EFBFBD><BR>"
|
||||
'Response.Write query & "<BR>"
|
||||
end if
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query
|
||||
dbin.Close
|
||||
|
||||
End if
|
||||
'----------------------------------------------------------------------------------------------
|
||||
If rsc("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>") = "<22><><EFBFBD>⿹<EFBFBD><E2BFB9><EFBFBD><EFBFBD>û<EFBFBD><C3BB>" Then
|
||||
query = " "
|
||||
query = query & " Update Krc_device "
|
||||
query = query & " Set T_STATUS = '' "
|
||||
query = query & " , T_P_SN = '' "
|
||||
query = query & " , T_P_NO = '' "
|
||||
query = query & " , T_COL_DATE = '' "
|
||||
query = query & " , KRC_NO = '' "
|
||||
query = query & " Where KRC_NO = '" & d_no & "' "
|
||||
query = query & " And T_USE_YN = 'Y' "
|
||||
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query
|
||||
dbin.Close
|
||||
end if
|
||||
|
||||
|
||||
query = "UPDATE Document "
|
||||
query = query & "SET "
|
||||
query = query & " d_delok = 'Y', "
|
||||
query = query & " d_order_cnt = '99', "
|
||||
query = query & " d_orders = '" & rsc("login_p_no") & "' "
|
||||
query = query & "WHERE d_no = '" & d_no & "' "
|
||||
|
||||
if Request.ServerVariables("REMOTE_ADDR") = "210.108.148.36" then
|
||||
Response.Write query & "<BR>"
|
||||
end If
|
||||
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query
|
||||
dbin.Close
|
||||
|
||||
query = "UPDATE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> "
|
||||
query = query & "SET "
|
||||
query = query & " target99 = '" & target99 & "', "
|
||||
query = query & " del_yes_no = 'yes', "
|
||||
query = query & " del_date = '" & date() & "', "
|
||||
query = query & " del_time = '" & time() & "', "
|
||||
query = query & " del_ip = '" & Request.ServerVariables("REMOTE_ADDR") & "', "
|
||||
query = query & " del_user_name = '" & Session("loginuser") & "', "
|
||||
query = query & " del_reason = '" & del_reason & "' "
|
||||
query = query & "WHERE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '" & d_no & "' "
|
||||
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query
|
||||
dbin.Close
|
||||
|
||||
Dim target99s
|
||||
target99s = split(target99, "^^")
|
||||
Dim target_user
|
||||
target_user = ""
|
||||
for i = 0 To ubound(target99s)
|
||||
if right(replace(right(target99s(i), 8), "<BR>", ""), 2) <> "<22><><EFBFBD><EFBFBD>" and right(replace(right(target99s(i), 8), "<BR>", ""), 2) <> "<22>ݷ<EFBFBD>" then
|
||||
target_user = target_user & right(target99s(i), 8) & ","
|
||||
end if
|
||||
Next
|
||||
'response.Write target_user
|
||||
|
||||
query = ""
|
||||
query = query & " insert into Intranet_Alarm Values "
|
||||
query = query & " ( "
|
||||
query = query & " '" & d_no & "', "
|
||||
query = query & " '0', "
|
||||
query = query & " '<27>ݷ<EFBFBD>', "
|
||||
query = query & " '0', "
|
||||
query = query & " '0', "
|
||||
query = query & " '" & target_user & "' "
|
||||
query = query & " ) "
|
||||
'response.Write query
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query
|
||||
dbin.Close
|
||||
%>
|
||||
|
||||
<html>
|
||||
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
|
||||
<script>
|
||||
function goit() {
|
||||
alert('<27>ݷ<EFBFBD><DDB7>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>');
|
||||
self.close();
|
||||
var posi = document.ess.posi.value;
|
||||
if (posi != "") {
|
||||
opener.opener.location.href = posi;
|
||||
}
|
||||
opener.close();
|
||||
}
|
||||
</script>
|
||||
<body onLoad="goit()">
|
||||
<form name="ess" method="post">
|
||||
<input type="hidden" name="d_no" value="<%=d_no%>" />
|
||||
<input type="hidden" name="posi" value="<%=posi%>" />
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
<%
|
||||
else
|
||||
'alert2 "DB <20><><EFBFBD><EFBFBD>. <20><><EFBFBD><EFBFBD><EFBFBD>ڿ<EFBFBD><DABF><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>"
|
||||
end if 'if rsc.RecordCount > 0 then
|
||||
rsc.Close
|
||||
%>
|
||||
116
ess/reply_work.asp
Normal file
116
ess/reply_work.asp
Normal file
@@ -0,0 +1,116 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
d_no = request("d_no")
|
||||
target_sn = request("target_sn")
|
||||
go_url = request("go_url")
|
||||
work_flag = request("work_flag")
|
||||
reply = request("reply")
|
||||
modi_reply = request("modi_reply")
|
||||
|
||||
modi_reply=replace(modi_reply,"%26","&")
|
||||
modi_reply=replace(modi_reply,"%2B","+")
|
||||
modi_reply=replace(modi_reply,"%3E",">")
|
||||
modi_reply=replace(modi_reply,"%3C","<")
|
||||
modi_reply=replace(modi_reply,"%3F","?")
|
||||
modi_reply=replace(modi_reply,"%5C","\")
|
||||
modi_reply=replace(modi_reply,"%5B","[")
|
||||
modi_reply=replace(modi_reply,"%5D","]")
|
||||
modi_reply=replace(modi_reply,"%2F","/")
|
||||
modi_reply=replace(modi_reply,"%25","%")
|
||||
|
||||
if work_flag = "1" then '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
query = "SELECT * "
|
||||
query = query & "FROM <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> "
|
||||
query = query & "WHERE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '" & d_no & "' "
|
||||
|
||||
rsc.open query, adoConn, 1
|
||||
if rsc.recordcount > 0 then
|
||||
for i = 2 to 6
|
||||
if cint(i) = cint(target_sn) then
|
||||
else
|
||||
if ISNULL(rsc("target9" & i)) OR rsc("target9" & i) = "" then
|
||||
tmp_chk = tmp_chk + 1
|
||||
end if
|
||||
end if
|
||||
next
|
||||
end if
|
||||
rsc.close
|
||||
|
||||
query = "UPDATE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> "
|
||||
query = query & "SET "
|
||||
if tmp_chk = 4 then
|
||||
query = query & " target91 = null, "
|
||||
end if
|
||||
query = query & " target9" & target_sn & " = null "
|
||||
query = query & "WHERE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '" & d_no & "' "
|
||||
|
||||
adoconn.execute query
|
||||
|
||||
elseif work_flag = "2" then '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
query = "SELECT * "
|
||||
query = query & "FROM <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> "
|
||||
query = query & "WHERE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '" & d_no & "' "
|
||||
|
||||
rsc.open query, adoConn, 1
|
||||
if rsc.recordcount > 0 then
|
||||
target91 = rsc("target91")
|
||||
end if
|
||||
rsc.close
|
||||
|
||||
if target91 = "" OR ISNULL(target91) then
|
||||
for i = 2 to 6
|
||||
if cint(i) = cint(target_sn) then
|
||||
target91 = target91 & Session("loginuser") & "-" & Session("User_Number")
|
||||
else
|
||||
target91 = target91 & " "
|
||||
end if
|
||||
|
||||
if i <> 6 then
|
||||
target91 = target91 & "^^"
|
||||
end if
|
||||
next
|
||||
else
|
||||
array_tmp = split(target91, "^^")
|
||||
array_tmp(target_sn - 2) = Session("loginuser") & "-" & Session("User_Number")
|
||||
|
||||
for i = 0 to UBOUND(array_tmp)
|
||||
if i <> 0 then
|
||||
tmp_target91 = tmp_target91 & "^^"
|
||||
end if
|
||||
tmp_target91 = tmp_target91 & array_tmp(i)
|
||||
next
|
||||
target91 = tmp_target91
|
||||
end if
|
||||
|
||||
query = "UPDATE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> "
|
||||
query = query & "SET "
|
||||
query = query & " target91 = '" & target91 & "', "
|
||||
query = query & " target9" & target_sn & " = '" & CheckWord(modi_reply) & "' "
|
||||
query = query & "WHERE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '" & d_no & "' "
|
||||
|
||||
adoconn.execute query
|
||||
|
||||
end if
|
||||
%>
|
||||
<html>
|
||||
<head>
|
||||
<title>
|
||||
|
||||
</title>
|
||||
<script language=javascript>
|
||||
function goit(a, b)
|
||||
{
|
||||
alert('ó<><C3B3><EFBFBD>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>');
|
||||
|
||||
document.pms.action = b + "?d_no=" + a;
|
||||
document.pms.submit();
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body onLoad="goit('<%=d_no%>','<%=go_url%>')">
|
||||
<form name="pms" method="post">
|
||||
|
||||
<input type="hidden" name="p_sn" value="<%=p_sn%>">
|
||||
|
||||
</body>
|
||||
</html>
|
||||
225
ess/request_ok.asp
Normal file
225
ess/request_ok.asp
Normal file
@@ -0,0 +1,225 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<!-- #include virtual = "include/holiday_count.asp" -->
|
||||
<%
|
||||
set adors2 = server.CreateObject("ADODB.RECORDSET")
|
||||
set adors3 = server.CreateObject("ADODB.RECORDSET")
|
||||
d_no = request("d_no")
|
||||
x = request("x")
|
||||
'Response.Write d_no & "'<br>"
|
||||
query = " SELECT * "
|
||||
query = query & " FROM Document as a "
|
||||
query = query & " INNER JOIN <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> as b on a.d_no = b.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ "
|
||||
query = query & " WHERE a.d_no='" & d_no & "' "
|
||||
|
||||
rsc.Open query, adoConn, 1
|
||||
if rsc.RecordCount > 0 then
|
||||
if x = "7" then '<27>ް<EFBFBD><DEB0><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
query = "UPDATE Document "
|
||||
query = query & "SET "
|
||||
query = query & " d_order_cnt = '99', "
|
||||
query = query & " d_view = 'N', "
|
||||
query = query & " d_delok = 'Y' "
|
||||
query = query & "WHERE d_no = '" & d_no & "' "
|
||||
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query
|
||||
dbin.Close
|
||||
|
||||
query = "UPDATE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> "
|
||||
query = query & "SET "
|
||||
query = query & " del_date = '" & date() & "', "
|
||||
query = query & " del_time = '" & time() & "', "
|
||||
query = query & " del_ip = '" & Request.ServerVariables("REMOTE_ADDR") & "', "
|
||||
query = query & " del_user_name = '" & Session("loginuser") & "', "
|
||||
query = query & " del_reason = 'ó<><C3B3><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>', "
|
||||
query = query & " del_yes_no = 'yes' "
|
||||
query = query & "WHERE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '" & d_no & "' "
|
||||
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query
|
||||
dbin.Close
|
||||
else
|
||||
'd_orders<72><73> <20><><EFBFBD><EFBFBD><EFBFBD>ڷ<EFBFBD> <20><>ü
|
||||
query = "UPDATE Document "
|
||||
query = query & "SET "
|
||||
query = query & " d_orders = '" & rsc("login_p_no") & "' "
|
||||
query = query & "WHERE d_no = '" & d_no & "' "
|
||||
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query
|
||||
dbin.Close
|
||||
end if
|
||||
|
||||
if x = "2" Or x = "7" then '<27>ް<EFBFBD><DEB0><EFBFBD> ó<><C3B3>
|
||||
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ó<><C3B3><EFBFBD><EFBFBD> <20>ڵ<EFBFBD><DAB5><EFBFBD><EFBFBD><EFBFBD> job<6F><62><EFBFBD>̺<EFBFBD><CCBA><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>
|
||||
'tmp_1 Job_Code, tmp_2 <20><><EFBFBD><EFBFBD> <20>ð<EFBFBD>(h)
|
||||
if rsc("target3") = "<22><><EFBFBD><EFBFBD> <20>ް<EFBFBD>" then
|
||||
tmp_1 = "8"
|
||||
tmp_2 = "8"
|
||||
elseif rsc("target3") = "<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>" then
|
||||
tmp_1 = "10"
|
||||
tmp_2 = "4"
|
||||
elseif rsc("target3") = "<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>" then
|
||||
tmp_1 = "11"
|
||||
tmp_2 = "4"
|
||||
elseif instr(1, rsc("target3"), "<22><><EFBFBD><EFBFBD>") then
|
||||
tmp_1 = "18"
|
||||
tmp_2 = "8"
|
||||
elseif instr(1, rsc("target3"), "<22><><EFBFBD><EFBFBD>") then
|
||||
tmp_1 = "12"
|
||||
tmp_2 = "8"
|
||||
elseif rsc("target3") = "<22><><EFBFBD><EFBFBD> <20>ް<EFBFBD>" then
|
||||
tmp_1 = "14"
|
||||
tmp_2 = "8"
|
||||
elseif rsc("target3") = "<22>Ƚ<EFBFBD> <20>ް<EFBFBD>" then
|
||||
tmp_1 = "15"
|
||||
tmp_2 = "8"
|
||||
elseif rsc("target3") = "<22><><EFBFBD><EFBFBD> <20>ް<EFBFBD>" then
|
||||
tmp_1 = "16"
|
||||
tmp_2 = "8"
|
||||
elseif instr(1, rsc("target3"), "<22><><EFBFBD><EFBFBD>") then
|
||||
tmp_1 = "17"
|
||||
tmp_2 = "8"
|
||||
elseif rsc("target3") = "<22><>ü <20><EFBFBD>" then
|
||||
tmp_1 = "9"
|
||||
tmp_2 = "8"
|
||||
elseif rsc("target3") = "<22><>Ÿ <20>ް<EFBFBD>" then
|
||||
tmp_1 = "19"
|
||||
tmp_2 = "8"
|
||||
end if
|
||||
|
||||
for i = cdate(rsc("target1")) to cdate(rsc("target2"))
|
||||
tmp_chk = "0"
|
||||
Call day_off_chk(year(i), month(i), day(i))
|
||||
if day_off = "true" then
|
||||
tmp_chk = "1"
|
||||
End if
|
||||
|
||||
if tmp_chk = "0" then '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ƴ϶<C6B4><CFB6><EFBFBD>
|
||||
p_no = rsc("login_p_no") ''<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
|
||||
if x = "2" Then
|
||||
query = " SELECT * "
|
||||
query = query & " FROM Job_List "
|
||||
query = query & " WHERE p_no = '" & p_no & "' "
|
||||
query = query & " AND j_contents = '" & tmp_1 & "' "
|
||||
query = query & " AND j_date = '" & i & "' "
|
||||
query = query & " AND j_Flag = '1' "
|
||||
|
||||
adors2.Open Query, adoConn,1' adOpenStatic, adLockReadOnly
|
||||
If adors2.RecordCount > 0 Then
|
||||
tmp_proc = "1"
|
||||
else
|
||||
tmp_proc = "0"
|
||||
End If
|
||||
adors2.Close
|
||||
'+++++++++++------------------------------------------------
|
||||
if tmp_proc = "0" then
|
||||
query = " "
|
||||
query = query & " INSERT INTO Job_List(p_no, j_date, j_p_sn, j_contents, j_time, j_ip) VALUES "
|
||||
query = query & " (" & p_no & ", '" & i & "', '99999', " & tmp_1 & ", " & tmp_2 & ", '" & Request.ServerVariables("REMOTE_ADDR") & "') "
|
||||
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query
|
||||
dbin.Close
|
||||
End if
|
||||
Elseif x = "7" Then
|
||||
query = " UPDATE Job_List SET "
|
||||
query = query & " j_flag = '0' "
|
||||
query = query & " WHERE p_no = '" & p_no & "' "
|
||||
query = query & " AND j_contents = '" & tmp_1 & "' "
|
||||
query = query & " AND j_date = '" & i & "' "
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query
|
||||
dbin.Close
|
||||
End if
|
||||
End if
|
||||
Next
|
||||
elseif x = "6" then '<27><><EFBFBD><EFBFBD><EFBFBD>ٺ<EFBFBD><D9BA><EFBFBD><EFBFBD><EFBFBD> ó<><C3B3>
|
||||
p_no = request("txt_p_no") ''<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
p_name = request("txt_p_name") '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20≯<EFBFBD>
|
||||
line_cnt = request("txt_line_cnt") '<27><><EFBFBD><EFBFBD><EFBFBD>ΰ<EFBFBD>
|
||||
|
||||
dim gap()
|
||||
redim gap(line_cnt,6)
|
||||
for i=1 to line_cnt
|
||||
gap(i,1) = request("gap1")(i)
|
||||
gap(i,2) = request("gap2")(i)
|
||||
gap(i,3) = request("gap3")(i)
|
||||
gap(i,4) = request("gap4")(i)
|
||||
gap(i,5) = replace(request("gap5")(i)," ","")
|
||||
gap(i,6) = replace(request("gap6")(i)," ","")
|
||||
for j=1 to 6
|
||||
gap(i,j) = replace(gap(i,j)," ","")
|
||||
gap(i,j) = replace(gap(i,j)," ","")
|
||||
next
|
||||
if not isEmpty(gap(i,5)) and not isnull(gap(i,5)) and gap(i,5) <> " " and trim(gap(i,5)) <> "" then
|
||||
query = "insert into login (name, p_no, [date], [time], real_time, login_out, ip, edit_reason) values ("
|
||||
query = query & "'" & p_name & "', "
|
||||
query = query & "'" & p_no & "', "
|
||||
query = query & "'" & gap(i,1) & "', "
|
||||
query = query & "'" & replace(gap(i,5),":","") & "', "
|
||||
query = query & "'" & FormatDateTime(date,0) & " " & FormatDateTime(time,4) & "', "
|
||||
query = query & "'login-<2D><><EFBFBD><EFBFBD><EFBFBD>ٺ<EFBFBD><D9BA><EFBFBD><EFBFBD><EFBFBD>', "
|
||||
query = query & "'" & Request.ServerVariables("remote_host") & "', "
|
||||
query = query & "'" & gap(i,4) & "-" & session("User_Number") & "') "
|
||||
'Response.Write query & "<BR>"
|
||||
adoConn.Execute query
|
||||
end if
|
||||
|
||||
if not isEmpty(gap(i,6)) and not isnull(gap(i,6)) and gap(i,5) <> " " and trim(gap(i,6)) <> "" then
|
||||
query = "insert into login (name, p_no, [date], [time], real_time, login_out, ip, edit_reason) values ("
|
||||
query = query & "'" & p_name & "', "
|
||||
query = query & "'" & p_no & "', "
|
||||
if mid(gap(i,6),1,2) >= 00 and mid(gap(i,6),1,2) < 07 then ''00<30>ú<EFBFBD><C3BA><EFBFBD> 07<30><37> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD≯<EFBFBD> <20><>¥<EFBFBD><C2A5> 1<><31> <20><><EFBFBD>Ͽ<EFBFBD> <20><>
|
||||
query = query & "'" & cdate(gap(i,1)) + 1 & "', "
|
||||
else
|
||||
query = query & "'" & gap(i,1) & "', "
|
||||
end if
|
||||
query = query & "'" & replace(gap(i,6),":","") & "', "
|
||||
query = query & "'" & FormatDateTime(date,0) & " " & FormatDateTime(time,4) & "', "
|
||||
query = query & "'login-<2D><><EFBFBD><EFBFBD><EFBFBD>ٺ<EFBFBD><D9BA><EFBFBD><EFBFBD><EFBFBD>', "
|
||||
query = query & "'" & Request.ServerVariables("remote_host") & "', "
|
||||
query = query & "'" & gap(i,4) & "-" & session("User_Number") & "') "
|
||||
'Response.Write query & "<BR>"
|
||||
adoConn.Execute query
|
||||
end if
|
||||
next
|
||||
end if
|
||||
%>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
|
||||
<LINK rel="stylesheet" type="text/css" href="/lib/text.css">
|
||||
<title>
|
||||
|
||||
</title>
|
||||
<script language=javascript>
|
||||
function goit() {
|
||||
<% if x = "7" then %>
|
||||
alert('<27>ް<EFBFBD><DEB0><EFBFBD> ó<><C3B3><EFBFBD><EFBFBD> <20><><EFBFBD>ҵǾ<D2B5><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>');
|
||||
opener.location.reload();
|
||||
window.close();
|
||||
<% else %>
|
||||
alert('ó<><C3B3> <20>Ϸ<EFBFBD>, <20>ð<EFBFBD><C3B0><EFBFBD><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD><CFB7>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>');
|
||||
opener.location.reload();
|
||||
window.close();
|
||||
<% end if %>
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body onLoad="goit()">
|
||||
<form name="ess" method="post">
|
||||
|
||||
</body>
|
||||
</html>
|
||||
<%
|
||||
else
|
||||
alert2 "DB <20><><EFBFBD><EFBFBD>. <20><><EFBFBD><EFBFBD><EFBFBD>ڿ<EFBFBD><DABF><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>"
|
||||
end if 'if rsc.RecordCount > 0 then
|
||||
rsc.Close
|
||||
%>
|
||||
528
ess/update_project_money.asp
Normal file
528
ess/update_project_money.asp
Normal file
@@ -0,0 +1,528 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
''//=====================
|
||||
''//=====================
|
||||
''2013<31><33> 9<><39> 27<32><37><EFBFBD>ڷ<EFBFBD>
|
||||
' <20><><EFBFBD><EFBFBD> <20><><EFBFBD>Ǽ<EFBFBD><C7BC><EFBFBD> <20>Աݰ<D4B1><DDB0>Ǽ<EFBFBD><C7BC><EFBFBD> <20>߰<EFBFBD><DFB0>Ͽ<EFBFBD> 2<><32><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>α<CEB1><D7B7><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
'' <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> titie<69><65> title_type<70><65> <20><><EFBFBD><EFBFBD>
|
||||
''//=====================
|
||||
''//=====================
|
||||
|
||||
|
||||
|
||||
dim tmpstr
|
||||
dim Query
|
||||
dim i
|
||||
dim user_name(4) '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,0:<3A><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD>, 1:<3A≯<EFBFBD>,2:<3A><><EFBFBD><EFBFBD>,3:<3A><>ȭ<EFBFBD><C8AD>ȣ, 4:<3A>μ<EFBFBD><CEBC>ڵ<EFBFBD>(<28><>)
|
||||
dim Max_Width
|
||||
dim title
|
||||
dim target_name '<27>߱<DFB1><DEB4><EFBFBD><EFBFBD><EFBFBD> <20≯<EFBFBD>
|
||||
dim Curr_date '<27><><EFBFBD>ó<EFBFBD>¥
|
||||
dim Company(6)
|
||||
dim Gap(10) '1:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ<EFBFBD>, 2:<3A><><EFBFBD><EFBFBD>(<28>Ա<EFBFBD>)<29><><EFBFBD><EFBFBD>, 3:<3A><><EFBFBD><EFBFBD>(<28>Ա<EFBFBD>)<29><><EFBFBD><EFBFBD>, 4:<3A><><EFBFBD><EFBFBD>(<28>Ա<EFBFBD>)<29><><EFBFBD><EFBFBD>, 5:<3A><><EFBFBD>ް<EFBFBD><DEB0><EFBFBD>, 6:<3A>ΰ<EFBFBD><CEB0><EFBFBD><EFBFBD><EFBFBD>, 7:<3A>Ѿ<EFBFBD>, 8:<3A>ŷ<EFBFBD>ó, 9:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ<EFBFBD>, 10:ǰ<>Ǽ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ
|
||||
dim krc_no
|
||||
dim print_type '1:<3A><><EFBFBD><EFBFBD>, 2:<3A><>¥<EFBFBD><C2A5><EFBFBD><EFBFBD>Ʈ
|
||||
dim db_table_name
|
||||
dim title_type
|
||||
|
||||
d_no = request("d_no")
|
||||
x = request("x")
|
||||
krc_no = d_no
|
||||
print_type = request("print_type")
|
||||
view_chk= request("view_chk")
|
||||
|
||||
db_table_name = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
title="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><D7BC><EFBFBD>"
|
||||
|
||||
Max_Width =750
|
||||
Curr_date = year(date) & "<22><> " & zeroformat(month(date),2) & "<22><> " & zeroformat(day(date),2) & "<22><>"
|
||||
|
||||
|
||||
set rsp = server.CreateObject("ADODB.RECORDSET")
|
||||
''//==========================================
|
||||
''2010<31><30> 3<><33> 3<><33>
|
||||
'''<27>μ<CEBC><E2BFA9> ǥ<><C7A5>
|
||||
if print_type = "2" then
|
||||
query = "update <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> set print_chk = 'Yes', print_cnt = print_cnt + 1 where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ='" & d_no & "' "
|
||||
adoConn.Execute query
|
||||
end if
|
||||
|
||||
|
||||
query = "SELECT * "
|
||||
query = query & "FROM <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> as a "
|
||||
query = query & " INNER JOIN Document as b on a.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = b.d_no "
|
||||
query = query & "WHERE a.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ='" & d_no & "' "
|
||||
if x = "99" then
|
||||
else
|
||||
if session("admin_ip") = Request.ServerVariables("remote_host") then
|
||||
else
|
||||
query = query & " AND b.d_delok = 'N' "
|
||||
end if
|
||||
end if
|
||||
|
||||
rsc.Open query, adoConn, 1
|
||||
if rsc.RecordCount > 0 then
|
||||
|
||||
tmp_date = split(rsc("d_write_date"), "-")
|
||||
Curr_date = tmp_date(0) & "<22><> " & tmp_date(1) & "<22><> " & tmp_date(2) & "<22><>"
|
||||
|
||||
tmp_0 = split(rsc("target97"), "^^")
|
||||
user_name(0) = rsc("login_p_no") '<27><><EFBFBD><EFBFBD>
|
||||
user_name(1) = tmp_0(0) '<27≯<EFBFBD>
|
||||
user_name(2) = tmp_0(1) '<27><><EFBFBD><EFBFBD> <20>ڵ<EFBFBD>
|
||||
user_name(3) = tmp_0(2) '<27><><EFBFBD><EFBFBD> <20><>ȭ
|
||||
user_name(4) = tmp_0(3) '<27>μ<EFBFBD><CEBC>ڵ<EFBFBD>
|
||||
|
||||
tmp_00 = split(rsc("target98"), "^^")
|
||||
Company(1) = tmp_00(0)
|
||||
Company(2) = tmp_00(1)
|
||||
Company(3) = tmp_00(2)
|
||||
Company(4) = tmp_00(3)
|
||||
Company(5) = tmp_00(4)
|
||||
Company(6) = tmp_00(5)
|
||||
|
||||
|
||||
|
||||
tmp_7 = split(rsc("target99"), "^^")
|
||||
tmp_8 = split(rsc("target100"), "^^")
|
||||
|
||||
if instr(1,tmp_7(0), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt1 = tmp_7(0)
|
||||
elseif instr(1,tmp_7(0), "<BR>") then
|
||||
tmp_t1 = split(tmp_7(0), "<BR>")
|
||||
tmp_txt1 = "<img src='/images/sign/" & tmp_t1(0) & "_" & tmp_t1(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt1 = tmp_7(0)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(1), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt2 = tmp_7(1)
|
||||
elseif instr(1,tmp_7(1), "<BR>") then
|
||||
tmp_t2 = split(tmp_7(1), "<BR>")
|
||||
tmp_txt2 = "<img src='/images/sign/" & tmp_t2(0) & "_" & tmp_t2(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt2 = tmp_7(1)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(2), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt3 = tmp_7(2)
|
||||
elseif instr(1,tmp_7(2), "<BR>") then
|
||||
tmp_t3 = split(tmp_7(2), "<BR>")
|
||||
tmp_txt3 = "<img src='/images/sign/" & tmp_t3(0) & "_" & tmp_t3(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt3 = tmp_7(2)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(3), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt4 = tmp_7(3)
|
||||
elseif instr(1,tmp_7(3), "<BR>") then
|
||||
tmp_t4 = split(tmp_7(3), "<BR>")
|
||||
tmp_txt4 = "<img src='/images/sign/" & tmp_t4(0) & "_" & tmp_t4(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt4 = tmp_7(3)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(4), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt5 = tmp_7(4)
|
||||
elseif instr(1,tmp_7(4), "<BR>") then
|
||||
tmp_t5 = split(tmp_7(4), "<BR>")
|
||||
tmp_txt5 = "<img src='/images/sign/" & tmp_t5(0) & "_" & tmp_t5(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt5 = tmp_7(4)
|
||||
end if
|
||||
|
||||
tmp_txt6 = tmp_8(0)
|
||||
tmp_txt7 = tmp_8(1)
|
||||
tmp_txt8 = tmp_8(2)
|
||||
tmp_txt9 = tmp_8(3)
|
||||
tmp_txt10 = tmp_8(4)
|
||||
|
||||
d_order_cnt = int(rsc("d_order_cnt"))
|
||||
|
||||
print_type = request("print_type")
|
||||
|
||||
''<27><><EFBFBD>ڸ<EFBFBD> '-'<27><><EFBFBD><EFBFBD> <20><>,<2C><><EFBFBD><EFBFBD> <20><>ü
|
||||
gap(3) = mid(gap(3),1,4) & "<22><> " & mid(gap(3),6,2) & "<22><> " & mid(gap(3),9,2) & "<22><>"
|
||||
for i=1 to 9
|
||||
if trim(gap(i)) = "" then
|
||||
gap(i) = " "
|
||||
end if
|
||||
next
|
||||
for i=5 to 7
|
||||
if gap(i) = " " then
|
||||
gap(i) = "0"
|
||||
end if
|
||||
next
|
||||
|
||||
''<27>α<EFBFBD><CEB1><EFBFBD><EFBFBD><EFBFBD>
|
||||
query = "insert into " & db_table_name & "_log (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_p_no, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_<EFBFBD≯<EFBFBD>, <20><><EFBFBD><EFBFBD>,"
|
||||
query = query & " <20>߱<EFBFBD><DFB1><EFBFBD>, <20>߱ð<DEBD>, <20>߱<EFBFBD><DFB1><EFBFBD>_p_no, <20>߱<EFBFBD><DFB1><EFBFBD>_<EFBFBD≯<EFBFBD>, <20>߱<EFBFBD><DFB1><EFBFBD>_ip) values ( "
|
||||
query = query & "'" & krc_no & "', "
|
||||
query = query & "'" & replace(title, " ", "") & "', "
|
||||
query = query & "'" & Session("User_Number") & "', "
|
||||
query = query & "'" & Session("loginuser") & "', "
|
||||
query = query & "'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>', "
|
||||
query = query & "'" & year(date) & "-" & zeroformat(month(date),2) & "-" & zeroformat(day(date),2) & "', "
|
||||
query = query & "'" & time() & "', "
|
||||
query = query & "'" & user_name(0) & "', "
|
||||
query = query & "'" & user_name(1) & "', "
|
||||
query = query & "'" & Session("USERIP") & "')"
|
||||
|
||||
if Request.ServerVariables("REMOTE_ADDr") = session("admin_ip") then
|
||||
else
|
||||
adoconn.execute query
|
||||
end if
|
||||
|
||||
|
||||
%>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title><%=GNB_TITLE%></title>
|
||||
<link rel="stylesheet" type="text/css" href="/css/basic.css">
|
||||
</head>
|
||||
|
||||
<script language=javascript>
|
||||
function win_close()
|
||||
{
|
||||
window.close();
|
||||
}
|
||||
function win_print()
|
||||
{
|
||||
var txt_d_no = document.ess.txt_d_no.value;
|
||||
var url = "update_project_money.asp"
|
||||
url = url + "?print_type=2";
|
||||
url = url + "&txt_d_no=" + txt_d_no;
|
||||
|
||||
document.ess.action=url;
|
||||
document.ess.submit();
|
||||
}
|
||||
|
||||
|
||||
|
||||
function print_ie()
|
||||
{
|
||||
|
||||
//
|
||||
if(navigator.userAgent.toLowerCase().indexOf('chrome') > -1){ // Chrome Browser Detected?
|
||||
window.PPClose = false; // Clear Close Flag
|
||||
window.onbeforeunload = function(){ // Before Window Close Event
|
||||
if(window.PPClose === false){ // Close not OK?
|
||||
return 'Leaving this page will block the parent window!\nPlease select "Stay on this Page option" and use the\nCancel button instead to close the Print Preview Window.\n';
|
||||
}
|
||||
}
|
||||
window.print(); // Print preview
|
||||
window.PPClose = true; // Set Close Flag to OK.
|
||||
}else{
|
||||
window.print();
|
||||
window.close();
|
||||
}
|
||||
}
|
||||
|
||||
function clsit()
|
||||
{
|
||||
alert('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>û <20>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>');
|
||||
self.close();
|
||||
}
|
||||
|
||||
function subit(a, b)
|
||||
{
|
||||
var tmp_txt;
|
||||
var approve_pass;
|
||||
|
||||
if (a == 1)
|
||||
{
|
||||
tmp_txt = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ";
|
||||
approve_pass = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
tmp_txt = "";
|
||||
}
|
||||
|
||||
if (confirm(tmp_txt + "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?"))
|
||||
{
|
||||
document.ess.action = "allow_ok.asp?approve_pass="+approve_pass;
|
||||
document.ess.action = "allow_ok.asp?approve_pass="+approve_pass+"&tmp_pass_psn="+b+"&title="+"<%=replace(title," ","")%>";
|
||||
document.ess.submit();
|
||||
}
|
||||
}
|
||||
|
||||
function backit(a)
|
||||
{
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ۼ<EFBFBD><DBBC><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>");
|
||||
var url = "reason.asp?d_no="+a;
|
||||
window.open(url,'','left=0,top=0,width=400,height=180,scrollbars=yes,resizable=yes')
|
||||
}
|
||||
function projectDetail(z,x,y,v){
|
||||
var url = '/project/project_list2_dep_2014.asp?p_sn=' + z;
|
||||
var tmp_width = 1400;
|
||||
var tmp_height = 800;
|
||||
//alert("p_sub_type : "+x);
|
||||
if (x == "M")
|
||||
{
|
||||
url = url + "&p_sub_type=" + x;
|
||||
}else{
|
||||
url = url + "&p_sub_type=" + x + "&p_method_cd=" + y + "&p_child_sn=" + v;
|
||||
}
|
||||
|
||||
window.open(url,'','left=0,top=0,width='+tmp_width+',height='+tmp_height+',scrollbars=yes,resizable=yes');
|
||||
}
|
||||
//-->
|
||||
|
||||
</script>
|
||||
|
||||
<body topmargin="10" leftmargin="10" <%if cint(print_type) = 2 then%> onLoad="print_ie();" <% end if %>>
|
||||
|
||||
<form method='post' name='ess'>
|
||||
|
||||
<input type="hidden" name="d_no" value="<%=d_no%>">
|
||||
<input type="hidden" name="x" value="<%=x%>">
|
||||
|
||||
<input type=hidden name = "txt_prj_name" value="<%=gap(1)%>">
|
||||
<input type=hidden name = "txt_pay_target" value="<%=gap(2)%>">
|
||||
<input type=hidden name = "txt_date" value="<%=gap(3)%>">
|
||||
<input type=hidden name = "sel_pay_type" value="<%=gap(4)%>">
|
||||
<input type=hidden name = "txt_pay" value="<%=gap(5)%>">
|
||||
<input type=hidden name = "txt_pay_vat" value="<%=gap(6)%>">
|
||||
<input type=hidden name = "txt_pay_tot" value="<%=gap(7)%>">
|
||||
<input type=hidden name = "txt_client" value="<%=gap(8)%>">
|
||||
<input type=hidden name = "txt_p_sn" value='<%=gap(9)%>'>
|
||||
<input type=hidden name="txt_d_no" value='<%=gap(10)%>'>
|
||||
|
||||
<%if x = "99" then%>
|
||||
<!-- #include file = "inc_delreason.asp" -->
|
||||
<%end if '''if x = "99" then%>
|
||||
|
||||
<%
|
||||
if cint(print_type) <> 2 and (d_order_cnt = "99" or d_order_cnt = "77") and (tmp_admin_chk = "1" or tmp_request_chk = "1" or int(rsc("login_p_no")) = int(Session("User_Number"))) then
|
||||
%>
|
||||
<!-- #include file = "inc_print.asp" -->
|
||||
<%end if%>
|
||||
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td colspan="2" style="padding:20;">
|
||||
<table cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td><img width = "100%" src="/images/approval/docbg_top.jpg"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="710" align="center" style="padding:10;border-left:1px solid #dedede;border-right:1px solid #dedede;">
|
||||
<table width="95%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td colspan="2" style="padding:0 0 10 0">
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<td width="255">
|
||||
<img src="/images/approval/doc_stit29.jpg">
|
||||
</td>
|
||||
<td>
|
||||
<!-- #include file = "inc_approval.asp" -->
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><> <3B><> ȣ</b></td>
|
||||
<td width="80%" class="tahoma"><%=d_no%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><> <3B><> <3B><></b></td>
|
||||
<td width="80%" class="tahoma"><%=Curr_date%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><></b></td>
|
||||
<td width="80%"><%=user_name(1)%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><></b></td>
|
||||
<td width="80%"><%=user_name(4)%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><></b></td>
|
||||
<td width="80%"><%=user_name(2)%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:10 0 10 0;font-size:14;font-family:dotum;"><b><3E>ϱ<EFBFBD><CFB1><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϰ<EFBFBD><CFB0><EFBFBD> <20>ϴ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20>ֽñ<D6BD> <20>ٶ<EFBFBD><D9B6>ϴ<EFBFBD>.</b></td>
|
||||
</tr>
|
||||
<%
|
||||
'----------------------------------------------------------------------------------------
|
||||
|
||||
query = " select <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ, a.p_sn as p_child_sn, tpm.p_sn, tpm.p_sub_type, tpm.p_method_cd, tpm.p_subject, tpmc.p_method_nm, tpm.p_decide_date, p_cont_cost, a.target1, a.target2, a.target3, a.target4, a.target5 "
|
||||
query = query & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join T_PROJECT_METHOD tpm on a.p_sn = tpm.p_child_sn "
|
||||
query = query & " left outer join T_PROJECT_METHOD_CD tpmc on tpm.p_method_cd = tpmc.p_method_cd "
|
||||
query = query & " where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ like '"&d_no&"' "
|
||||
|
||||
rsp.Open query, adoConn, 1
|
||||
If rsp.RecordCount > 0 then
|
||||
if rsp("target3") <> "" then
|
||||
tmp_len = len(rsp("target3"))
|
||||
for i = 1 to int(tmp_len)
|
||||
if i mod 3 = 1 and i <> 1 then
|
||||
target3 = "," & target3
|
||||
end if
|
||||
target3 = left(right(rsp("target3"),i), 1) & target3
|
||||
next
|
||||
Else
|
||||
target3 = 0
|
||||
end If
|
||||
End If
|
||||
dim updateMoney
|
||||
If rsp.RecordCount > 0 then
|
||||
if rsp("target1") <> "" then
|
||||
tmp_len = len(rsp("target1"))
|
||||
for i = 1 to int(tmp_len)
|
||||
if i mod 3 = 1 and i <> 1 then
|
||||
updateMoney = "," & updateMoney
|
||||
end if
|
||||
updateMoney = left(right(rsp("target1"),i), 1) & updateMoney
|
||||
next
|
||||
Else
|
||||
updateMoney = 0
|
||||
end If
|
||||
End If
|
||||
dim total_cost
|
||||
If rsp.RecordCount > 0 then
|
||||
if rsp("target4") <> "" then
|
||||
tmp_len = len(rsp("target4"))
|
||||
for i = 1 to int(tmp_len)
|
||||
if i mod 3 = 1 and i <> 1 then
|
||||
total_cost = "," & total_cost
|
||||
end if
|
||||
total_cost = left(right(rsp("target4"),i), 1) & total_cost
|
||||
next
|
||||
Else
|
||||
total_cost = 0
|
||||
end If
|
||||
End If
|
||||
dim updateTotalMoney
|
||||
If rsp.RecordCount > 0 then
|
||||
if rsp("target5") <> "" then
|
||||
tmp_len = len(rsp("target5"))
|
||||
for i = 1 to int(tmp_len)
|
||||
if i mod 3 = 1 and i <> 1 then
|
||||
updateTotalMoney = "," & updateTotalMoney
|
||||
end if
|
||||
updateTotalMoney = left(right(rsp("target5"),i), 1) & updateTotalMoney
|
||||
next
|
||||
Else
|
||||
updateTotalMoney = 0
|
||||
end If
|
||||
End If
|
||||
'----------------------------------------------------------------------------------------
|
||||
%>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:10 0 0 0">
|
||||
<table width="100%" cellpadding="5" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
|
||||
<td width="20%" class='tit2' align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><>ȣ</td>
|
||||
<td width="80%" class='tit7'><font class="tahoma">
|
||||
<input type="hidden" name="p_child_sn" value="<%=rsp("p_child_sn")%>" />
|
||||
<%=rsp("p_child_sn") %></font>
|
||||
<img src="/images/common/btn_projectdetail_view.JPG" align="absmiddle" style="cursor:pointer"
|
||||
onClick="projectDetail('<%=rsp("p_sn")%>','<%=rsp("p_sub_type")%>','<%=rsp("p_method_cd")%>','<%=rsp("p_child_sn")%>')"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" class='tit2' align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><>(<28><><EFBFBD><EFBFBD>)</td>
|
||||
<td width="80%" class='tit7'><font class="tahoma"><%=rsp("p_subject") %></font></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:10 0 0 0">
|
||||
<table width="100%" cellpadding="5" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
|
||||
<tr>
|
||||
<td width="20%" class='tit2' align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="30%" class='tit7'><%=rsp("p_method_nm") %></td>
|
||||
|
||||
<td width="20%" class='tit2' align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="30%" class='tit7' ><%=rsp("p_decide_date") %></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tit2' align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td class='tit7'><font class="tahoma"><%=target3 %><br />(<28><>ü<EFBFBD><C3BC><EFBFBD>ֱݾ<D6B1>:<%=total_cost %><3E><>)</font></td>
|
||||
<td class='tit2' align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td class='tit7'><font class="tahoma"><%=updateMoney %><br />(<28><>ü<EFBFBD><C3BC><EFBFBD>ֱݾ<D6B1>:<%=updateTotalMoney %><3E><>)</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tit2' align="center"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td class='tit7' colspan="3"><%=rsp("target2") %></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
rsp.close
|
||||
if tmp_doc_link <> "" then
|
||||
%>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:10 0 0 0">
|
||||
<table width="100%" cellpadding="5" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<td width="20%" align="center">ǰ<>ǹ<EFBFBD><C7B9><EFBFBD></td>
|
||||
<td width="80%" ><font class="tahoma"><%=gap(10)%> <%=tmp_doc_link%></font></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
end if
|
||||
%>
|
||||
|
||||
|
||||
<!-- #include file = "inc_reply.asp" -->
|
||||
|
||||
|
||||
<tr>
|
||||
<td colspan="2" style="padding:20 0 0 0" align="right">
|
||||
<pre><font class="tahoma"> <09><> <20><> <20><> <20><> : <20><> <20><> <20><></font></pre>
|
||||
<pre><font class="tahoma"> <09><> <20><> <20><> : (<28><>)</font></pre>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:15 0 5 0"><!-- #include virtual= "approval/inc_logo.asp" --></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img width = "100%" src="/images/approval/docbg_btm.jpg"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
<%
|
||||
end if
|
||||
rsc.Close
|
||||
%>
|
||||
Reference in New Issue
Block a user