최초커밋

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

View File

@@ -0,0 +1,34 @@
<!-- #include virtual = "lib/config.asp" -->
<OBJECT RUNAT=Server PROGID=ADODB.Recordset id=rsp></OBJECT>
<%
cli_list = request("cli_list")
p_contact = request("p_contact")
Response.CharSet = "EUC-KR" '<27>ѱ<EFBFBD>
Response.AddHeader "Pragma","no-cache"
Response.AddHeader "cache-control", "no-staff"
Response.Expires = -1
if cli_list <> "" then
query = " "
query = query & " SELECT p_cli_per_com_tel, p_cli_per_tel, p_cli_per_email "
query = query & " FROM V_CLIENT_PERSON "
query = query & " WHERE convert(varchar, p_cli_company_cd)+'_'+convert(varchar, p_cli_per_cd) IN ('" & replace(cli_list, ",", "','") & "') "
query = query & " AND (ISNULL(p_cli_per_com_tel, '') <> '' OR ISNULL(p_cli_per_tel, '') <> '') "
if p_contact <> "001" then
query = query & " AND ISNULL(p_cli_per_email, '') <> '' "
end if
rsp.Open query, adoConn, 1
if rsp.RecordCount > 0 then
response.Write "1"
else
response.Write "2"
end if
rsp.close
else
response.Write "0"
end if
%>

View File

@@ -0,0 +1,20 @@
<!-- #include virtual = "lib/config.asp" -->
<OBJECT RUNAT=Server PROGID=ADODB.Recordset id=rsp></OBJECT>
<%
chk_val = request("chk_val")
p_sn = request("p_sn")
Response.CharSet = "EUC-KR" '<27>ѱ<EFBFBD>
Response.AddHeader "Pragma","no-cache"
Response.AddHeader "cache-control", "no-staff"
Response.Expires = -1
query = " UPDATE T_PROJECT_PRE SET list_view_yn = '" & chk_val & "' WHERE p_sn = '" & p_sn & "' "
adoConn.execute query
response.Write "1"
%>

113
project/cli_modi.asp Normal file
View File

@@ -0,0 +1,113 @@
<!-- #include virtual = "lib/config.asp" -->
<%
cli_name = request("cli_name")
mod_cli = request("mod_cli")
'Client <20><><EFBFBD><EFBFBD>
dim tmp_cliform(99)
query = "SELECT * "
query = query & "FROM Client_Type "
query = query & "ORDER BY sort_key "
rsc.Open query, adoConn, 1
if rsc.RecordCount > 0 then
for i = 1 to rsc.RecordCount
tmp_cliform(int(rsc("c_type_code"))) = rsc("c_type_name")
rsc.MoveNext
next
end if
rsc.Close
query = "SELECT * "
query = query & "FROM Client "
query = query & "WHERE c_code='" & mod_cli & "' "
query = query & "ORDER BY c_name "
'Response.Write query
rsc.Open query, adoConn, 1
%>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<LINK rel="stylesheet" type="text/css" href="/lib/text.css">
<title>
Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ <20><><EFBFBD><EFBFBD>
</title>
<script language=javascript>
function cancelit() {
history.back();
}
function modit() {
if (document.pms.c_name.value.trim() == '') {
alert('Client <20≯<EFBFBD><CCB8><EFBFBD> <20>ۼ<EFBFBD><DBBC><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>');
document.pms.c_name.focus();
return false;
}
document.pms.c_name.value = document.pms.c_name.value.trim();
if (document.pms.c_type.value == '') {
alert('Client Type<70><65> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>');
document.pms.c_type.focus();
return false;
}
document.pms.action = 'cli_modi_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" name="cli_name" value="<%=cli_name%>">
<input type="hidden" name="mod_cli" value="<%=mod_cli%>">
<table border="1" cellspacing="0" cellpadding="0" width="335" bgcolor="white">
<tr align="center" height="20">
<td><font color="blue"><b>Code</b></font></td>
<td><font color="blue"><b>Client Name</b></font></td>
<td><font color="blue"><b>Type</b></font></td>
</tr>
<tr align="center">
<td><%=rsc("c_code")%></td>
<td>
<input class="input" type="text" size="15" name="c_name" value="<%=rsc("c_name")%>">
</td>
<td>
<select name="c_type">
<option value=""><3E><><EFBFBD><EFBFBD></option>
<%
for i = 4 to ubound(tmp_cliform)
if tmp_cliform(i) <> "" then
%>
<option value="<%=i%>"><%=tmp_cliform(i)%></option>
<%
end if
next
%>
</select>
</td>
</tr>
</table>
<br>
<table border="0" cellspacing="0" cellpadding="0" width="335" bgcolor="white">
<tr align="center">
<td colspan="99">
<img src="/images/common/btn_modify2.jpg" style="cursor:pointer" border="0" onClick="modit()" title = "<22><><EFBFBD><EFBFBD>">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<img src="/images/common/btn_cancel2.jpg" style="cursor:pointer" border="0" onClick="cancelit()" title = "<22><><EFBFBD><EFBFBD>">
</td>
</tr>
</table>
<%
rsc.Close
set rsc = nothing
%>

113
project/cli_modi_2014.asp Normal file
View File

@@ -0,0 +1,113 @@
<!-- #include virtual = "lib/config.asp" -->
<%
cli_name = request("cli_name")
mod_cli = request("mod_cli")
'Client <20><><EFBFBD><EFBFBD>
dim tmp_cliform(99)
query = "SELECT * "
query = query & "FROM Client_Type "
query = query & "ORDER BY sort_key "
rsc.Open query, adoConn, 1
if rsc.RecordCount > 0 then
for i = 1 to rsc.RecordCount
tmp_cliform(int(rsc("c_type_code"))) = rsc("c_type_name")
rsc.MoveNext
next
end if
rsc.Close
query = "SELECT * "
query = query & "FROM Client "
query = query & "WHERE c_code='" & mod_cli & "' "
query = query & "ORDER BY c_name "
'Response.Write query
rsc.Open query, adoConn, 1
%>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<LINK rel="stylesheet" type="text/css" href="/lib/text.css">
<title>
Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ <20><><EFBFBD><EFBFBD>
</title>
<script language=javascript>
function cancelit() {
history.back();
}
function modit() {
if (document.pms.c_name.value.trim() == '') {
alert('Client <20≯<EFBFBD><CCB8><EFBFBD> <20>ۼ<EFBFBD><DBBC><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>');
document.pms.c_name.focus();
return false;
}
document.pms.c_name.value = document.pms.c_name.value.trim();
if (document.pms.c_type.value == '') {
alert('Client Type<70><65> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>');
document.pms.c_type.focus();
return false;
}
document.pms.action = 'cli_modi_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" name="cli_name" value="<%=cli_name%>">
<input type="hidden" name="mod_cli" value="<%=mod_cli%>">
<table border="1" cellspacing="0" cellpadding="0" width="335" bgcolor="white">
<tr align="center" height="20">
<td><font color="blue"><b>Code</b></font></td>
<td><font color="blue"><b>Client Name</b></font></td>
<td><font color="blue"><b>Type</b></font></td>
</tr>
<tr align="center">
<td><%=rsc("c_code")%></td>
<td>
<input class="input" type="text" size="15" name="c_name" value="<%=rsc("c_name")%>">
</td>
<td>
<select name="c_type">
<option value=""><3E><><EFBFBD><EFBFBD></option>
<%
for i = 4 to ubound(tmp_cliform)
if tmp_cliform(i) <> "" then
%>
<option value="<%=i%>"><%=tmp_cliform(i)%></option>
<%
end if
next
%>
</select>
</td>
</tr>
</table>
<br>
<table border="0" cellspacing="0" cellpadding="0" width="335" bgcolor="white">
<tr align="center">
<td colspan="99">
<img src="/images/common/btn_modify2.jpg" style="cursor:pointer" border="0" onClick="modit()" title = "<22><><EFBFBD><EFBFBD>">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<img src="/images/common/btn_cancel2.jpg" style="cursor:pointer" border="0" onClick="cancelit()" title = "<22><><EFBFBD><EFBFBD>">
</td>
</tr>
</table>
<%
rsc.Close
set rsc = nothing
%>

40
project/cli_modi_ok.asp Normal file
View File

@@ -0,0 +1,40 @@
<!-- #include virtual = "lib/config.asp" -->
<%
cli_name = request("cli_name")
c_type = request("c_type")
c_name = request("c_name")
mod_cli = request("mod_cli")
query = "UPDATE Client "
query = query & "SET "
query = query & "c_name='" & c_name & "', "
query = query & "c_type='" & c_type & "' "
query = query & "WHERE c_code='" & mod_cli & "' "
'Response.Write query
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="/lib/text.css">
<title>
Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ <20><><EFBFBD><EFBFBD>
</title>
<script language=javascript>
function goit() {
document.pms.action = 'cli_search.asp';
document.pms.submit();
}
</script>
</head>
<body onLoad="goit()">
<form name="pms" method="post">
<input type="hidden" name="cli_name" value="<%=cli_name%>">
</body>
</html>

View File

@@ -0,0 +1,60 @@
<!-- #include virtual = "lib/config.asp" -->
<%
p_cli_company_cd = request("p_cli_company_cd") '<27≯<EFBFBD> <20>˻<EFBFBD><CBBB><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Client Name
p_cli_company_nm = request("p_cli_company_nm")
'<27><><EFBFBD><EFBFBD> <20>߰<EFBFBD><DFB0><EFBFBD> Client Name
query = "SELECT * "
query = query & "FROM T_CLIENT_COMP "
query = query & "WHERE p_cli_company_nm = '" & p_cli_company_nm & "' "
rsc.Open query, adoConn, 1
if rsc.RecordCount > 0 then
tmp_result = "1"
else
tmp_result = "0"
end if
rsc.Close
if tmp_result = "0" then
query = "UPDATE T_CLIENT_COMP "
query = query & "SET "
query = query & "p_cli_company_nm ='" & p_cli_company_nm & "', "
query = query & "p_cli_company_yn ='y' "
query = query & "WHERE p_cli_company_cd='" & p_cli_company_cd & "' "
'Response.Write query
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="/lib/text.css">
<title>
Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ <20><><EFBFBD><EFBFBD>
</title>
<script language=javascript>
function goit() {
document.pms.action = 'cli_search_2014.asp';
document.pms.submit();
}
</script>
</head>
<body onLoad="goit()">
<form name="pms" method="post">
<input type="hidden" name="p_cli_company_nm" value="<%=p_cli_company_nm%>">
</body>
</html>
<%
else
alert2 "<22>̹<EFBFBD> <20><><EFBFBD>ϵǾ<CFB5> <20>ִ<EFBFBD> <20≯<EFBFBD><CCB8>Դϴ<D4B4>"
end if
set rsc = nothing
%>

104
project/cli_new.asp Normal file
View File

@@ -0,0 +1,104 @@
<!-- #include virtual = "lib/config.asp" -->
<%
cli_name = request("cli_name")
'Client <20><><EFBFBD><EFBFBD>
dim tmp_cliform()
query = "select * from client_type order by sort_key"
rsc.Open query, adoConn, 1
redim tmp_cliform(99)
do while not rsc.EOF
tmp_cliform(cint(rsc("c_type_code"))) = rsc("c_type_name")
rsc.MoveNext
loop
rsc.Close
query = "SELECT MAX(c_code) as c_code "
query = query & "FROM Client "
query = query & "WHERE c_code < 9900 "
rsc.Open query, adoConn, 1
%>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<LINK rel="stylesheet" type="text/css" href="/lib/text.css">
<title>
Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ <20>߰<EFBFBD>
</title>
<script language=javascript>
function cancelit() {
history.back();
}
function newit() {
if (document.pms.c_name.value.trim() == '') {
alert('Client <20≯<EFBFBD><CCB8><EFBFBD> <20>ۼ<EFBFBD><DBBC>ϼ<EFBFBD><CFBC><EFBFBD>');
document.pms.c_name.value = '';
document.pms.c_name.focus();
return false;
}
document.pms.c_name.value = document.pms.c_name.value.trim();
if (document.pms.c_type.value == '') {
alert('Client Type<70><65> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>');
document.pms.c_type.focus();
return false;
}
document.pms.action = 'cli_new_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" name="cli_name" value="<%=cli_name%>">
<table border="1" cellspacing="0" cellpadding="0" width="335" bgcolor="white" bordercolordark="gray" bordercolorlight="white">
<tr align="center" height="20">
<td><font color="blue"><b>Code</b></font></td>
<td><font color="blue"><b>Client Name</b></font></td>
<td><font color="blue"><b>Type</b></font></td>
</tr>
<tr align="center">
<td><%=cint(rsc("c_code")) + 1%></td>
<td>
<input class="input" type="text" size="15" name="c_name">
</td>
<td>
<select name="c_type">
<option value=""><3E><><EFBFBD><EFBFBD></option>
<%
for i = 4 to ubound(tmp_cliform)
if tmp_cliform(i) <> "" then
%>
<option value="<%=i%>"><%=tmp_cliform(i)%></option>
<%
end if
next
%>
</select>
</td>
</tr>
</table>
<br>
<table border="0" cellspacing="0" cellpadding="0" width="335" bgcolor="white">
<tr align="center">
<td colspan="99">
<img src="/images/project/btn_sadd.gif" style="cursor:pointer" border="0" onClick="newit()" title = "<22><> <20><>">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<img src="/images/common/btn_cancel2.jpg" style="cursor:pointer" border="0" onClick="cancelit()" title = "<22><><EFBFBD><EFBFBD>">
</td>
</tr>
</table>
<%
rsc.Close
set rsc = nothing
%>

71
project/cli_new_2014.asp Normal file
View File

@@ -0,0 +1,71 @@
<!-- #include virtual = "lib/config.asp" -->
<%
p_cli_company_cd = ""
p_cli_company_cd = request("p_cli_company_cd")
%>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<LINK rel="stylesheet" type="text/css" href="/lib/text.css">
<title>
Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ <20>߰<EFBFBD>
</title>
<script language=javascript>
function cancelit() {
history.back();
}
function newit() {
if (document.pms.p_cli_company_nm.value.trim() == '') {
alert('ȸ<><C8B8> <20≯<EFBFBD><CCB8><EFBFBD> <20>ۼ<EFBFBD><DBBC>ϼ<EFBFBD><CFBC><EFBFBD>');
document.pms.p_cli_company_nm.value = '';
document.pms.p_cli_company_nm.focus();
return false;
}
document.pms.p_cli_company_nm.value = document.pms.p_cli_company_nm.value.trim();
if (document.pms.p_cli_company_cd.value == "") {
document.pms.action = 'cli_new_ok_2014.asp';
} else {
document.pms.action = 'cli_modi_ok_2014.asp';
}
document.pms.submit();
}
</script>
</head>
<meta http-equiv="refresh" content="300;url=onfile.asp">
<body>
<form name="pms" method="post">
<input type="hidden" name="p_cli_company_cd" value="<%=p_cli_company_cd%>">
<table border="1" cellspacing="0" cellpadding="0" width="335" height="50" bgcolor="white" bordercolordark="gray" bordercolorlight="white">
<tr align="center" height="20">
<td><font color="blue"><b>ȸ<><C8B8> <20≯<EFBFBD><CCB8><EFBFBD> <20>ۼ<EFBFBD><DBBC>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.</b></font></td>
</tr>
<tr align="center">
<td>
<input class="input" type="text" size="45" name="p_cli_company_nm">
</td>
</tr>
</table>
<br>
<table border="0" cellspacing="0" cellpadding="0" width="335" bgcolor="white">
<tr align="center">
<td colspan="99">
<%if p_cli_company_cd <> "" then %>
<img src="/images/common/btn_modify2.jpg" style="cursor:pointer" border="0" onClick="newit()" title = "<22><><EFBFBD><EFBFBD>">
<% else %>
<img src="/images/common/btn_save.jpg" style="cursor:pointer" border="0" onClick="newit()" title = "<22><><EFBFBD><EFBFBD>">
<% end if %>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<img src="/images/common/btn_cancel2.jpg" style="cursor:pointer" border="0" onClick="cancelit()" title = "<22><><EFBFBD><EFBFBD>">
</td>
</tr>
</table>

83
project/cli_new_ok.asp Normal file
View File

@@ -0,0 +1,83 @@
<!-- #include virtual = "lib/config.asp" -->
<%
cli_name = request("cli_name") '<27≯<EFBFBD> <20>˻<EFBFBD><CBBB><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Client Name
c_name = request("c_name") '<27><><EFBFBD><EFBFBD> <20>߰<EFBFBD><DFB0><EFBFBD> Client Name
c_type = request("c_type") '<27><><EFBFBD><EFBFBD> <20>߰<EFBFBD><DFB0><EFBFBD> Client Type
'Client <20><><EFBFBD><EFBFBD>
dim tmp_cliform(99)
query = "SELECT * "
query = query & "FROM Client_Type "
query = query & "ORDER BY sort_key "
rsc.Open query, adoConn, 1
if rsc.RecordCount > 0 then
for i = 1 to rsc.RecordCount
tmp_cliform(int(rsc("c_type_code"))) = rsc("c_type_name")
rsc.MoveNext
next
end if
rsc.Close
query = "SELECT MAX(c_code) as c_code "
query = query & "FROM Client "
query = query & "WHERE c_code < 9900 "
rsc.Open query, adoConn, 1
tmp_code = rsc("c_code") + 1
rsc.Close
query = "SELECT * "
query = query & "FROM client "
query = query & "WHERE c_name = '" & c_name & "' "
rsc.Open query, adoConn, 1
if rsc.RecordCount > 0 then
tmp_result = "1"
else
tmp_result = "0"
end if
rsc.Close
if tmp_result = "0" then
query = "INSERT INTO Client "
query = query & "(c_code, c_name, c_type) "
query = query & "VALUES "
query = query & "('" & tmp_code & "', "
query = query & "'" & c_name & "', "
query = query & "'" & c_type & "')"
'Response.Write query
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="/lib/text.css">
<title>
Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ <20>߰<EFBFBD>
</title>
<script language=javascript>
function goit() {
document.pms.action = 'cli_search.asp'
document.pms.submit();
}
</script>
</head>
<body onLoad="goit()">
<form name="pms" method="post">
<input type="hidden" name="cli_name" value="<%=cli_name%>">
<%
else
alert2 "<22>̹<EFBFBD> <20><><EFBFBD>ϵǾ<CFB5> <20>ִ<EFBFBD> <20≯<EFBFBD><CCB8>Դϴ<D4B4>"
end if
set rsc = nothing
%>

View File

@@ -0,0 +1,37 @@
<!-- #include virtual = "lib/config.asp" -->
<%
Response.CharSet="euc-kr"
Response.AddHeader "Pragma","no-cache"
Response.AddHeader "cache-control", "no-staff"
Response.Expires = -1
p_cli_company_nm = unescape(request("comp_name")) '<27><><EFBFBD><EFBFBD> <20>߰<EFBFBD><DFB0><EFBFBD> Client Name
query = "SELECT * "
query = query & "FROM T_CLIENT_COMP "
query = query & "WHERE p_cli_company_nm = '" & p_cli_company_nm & "' "
Rs.Open query, adoConn, 1
if Rs.RecordCount > 0 then
tmp_result = "1"
else
tmp_result = "0"
end if
Rs.Close
if tmp_result = "0" then
query = " INSERT INTO T_CLIENT_COMP "
query = query & " (p_cli_company_nm, p_cli_company_yn) "
query = query & " VALUES "
query = query & " ('" & p_cli_company_nm & "', 'Y')"
set dbin = server.CreateObject("ADODB.CONNECTION")
dbin.Open adoConn
dbin.Execute query
dbin.Close
response.write "1" ' <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
else
response.write "2" ' <20>̹<EFBFBD> <20><><EFBFBD><EFBFBD>
end if
%>

185
project/cli_search.asp Normal file
View File

@@ -0,0 +1,185 @@
<!-- #include virtual = "lib/config.asp" -->
<%
v = request("v")
'Client <20><><EFBFBD><EFBFBD>
dim tmp_cliform(99)
query = "SELECT * "
query = query & "FROM Client_Type "
query = query & "ORDER BY sort_key "
rsc.Open query, adoConn, 1
if rsc.RecordCount > 0 then
for i = 1 to rsc.RecordCount
tmp_cliform(int(rsc("c_type_code"))) = rsc("c_type_name")
rsc.MoveNext
next
end if
rsc.Close
query = "SELECT * "
query = query & "FROM Client "
if request("cli_name") <> "" then
query = query & "WHERE c_name like '%" & request("cli_name") & "%' "
end if
query = query & "ORDER BY c_name "
rsc.Open query, adoConn, 1
%>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<LINK rel="stylesheet" type="text/css" href="/lib/text.css">
<title>
Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ ã<><C3A3>
</title>
<script language=javascript>
function sltit(z,y,x,w,v) {
//z:Client code, y:Client name, x:Client type code, w:Client type name, v:page(1=modi, 2.3.4=search)
if (v == 1) {
opener.document.pms.p_cli_code.value = z;
opener.document.pms.p_cli_company.value = y;
opener.document.pms.p_cli_type.value = x;
opener.document.pms.p_cli_type2.value = x;
opener.document.pms.p_cli_name.value = "";
opener.document.pms.p_cli_depart.value = "";
} else if (v == 2) {
opener.document.pms.p_cli_code.value = z;
opener.document.pms.p_cli_company.value = y;
} else if (v == 3) {
opener.document.pms.p_cli_code2.value = z;
opener.document.pms.p_client_2.value = y;
} else if (v == 4) {
opener.document.pms.p_cli_code3.value = z;
opener.document.pms.p_client_3.value = y;
} else if (v == 5) {
opener.document.pms.p_cli_code1.value = z;
opener.document.pms.p_client_1.value = y;
}
self.close();
}
function search_cli() {
//if (document.pms.cli_name.value.trim() == '') {
// alert('Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD> <20>ۼ<EFBFBD><DBBC><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>');
// document.pms.cli_name.value = '';
// document.pms.cli_name.focus();
// return false;
//}
document.pms.cli_name.value = document.pms.cli_name.value.trim();
//document.pms.action = 'search_cli.asp';
document.pms.submit();
}
function modit(z) {
var tmp_ok = 0;
if (z > 1)
{
for (i = 1; i <= z; i++) {
if (document.pms.mod_cli[i-1].checked == true) {
tmp_ok = 1;
}
}
if (tmp_ok != 1) {
alert('Client<6E><74> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>');
document.pms.mod_cli[0].focus();
return false;
}
}
else
{
if (document.pms.mod_cli.checked == true) {
tmp_ok = 1;
}
if (tmp_ok != 1) {
alert('Client<6E><74> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>');
document.pms.mod_cli.focus();
return false;
}
}
document.pms.action = 'cli_modi.asp';
document.pms.submit();
}
function newit() {
document.pms.action = 'cli_new.asp';
document.pms.submit();
}
</script>
</head>
<body onLoad="javascript:document.pms.cli_name.focus();">
<form name="pms" method="post">
<div style="position: absolute; left: 10px; top: 4px; z-index: 10;">
<table border="0" cellspacing="0" cellpadding="0" width="335" bgcolor="white">
<tr align="center">
<td>
<img src="/images/common/btn_add.gif" onClick="newit()" style="CURSOR:pointer;">
&nbsp;&nbsp;&nbsp;&nbsp;
<img src="/images/common/btn_reply_modify.jpg" onclick="modit('<%=rsc.RecordCount%>')" style="CURSOR:pointer;">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input class="input" type="text" name="cli_name" value="<%=request("cli_name")%>" size="15" style="IME-MODE: active;background:#FFFFFF">
<img src="/images/common/btn_topsrch.gif" title="ã<><C3A3>" onClick="search_cli()" style="CURSOR:pointer;">
</td>
</tr>
</table>
</div>
<div style="position: absolute; left: 10px; top: 34px; z-index: 10;">
<table border="1" cellspacing="0" cellpadding="0" width="335" bgcolor="white">
<tr align="center" height="20">
<td width="20"></td>
<td width="40"><font color="blue"><b><3E>ڵ<EFBFBD></b></font></td>
<td><font color="blue"><b>Client<6E><74></b></font></td>
<td width="80"><font color="blue"><b>TYPE</b></font></td>
</tr>
</table>
</div>
<br>
<div style="width: 335px; height: 250px; overflow-y: auto;">
<table border="1" cellspacing="0" cellpadding="0" width="335">
<tr align="center" height="20">
<td width="20"></td>
<td width="40"><font color="blue"><b><3E>ڵ<EFBFBD></b></font></td>
<td><font color="blue"><b>Client<6E><74></b></font></td>
<td width="80"><font color="blue"><b>TYPE</b></font></td>
</tr>
<%
for i = 1 to rsc.RecordCount
%>
<tr>
<td><input type="radio" name="mod_cli" value="<%=rsc("c_code")%>"></td>
<td align="center"><%=rsc("c_code")%></td>
<td>&nbsp;<a href="javascript:sltit('<%=rsc("c_code")%>','<%=rsc("c_name")%>','<%=rsc("c_type")%>','<%=tmp_cliform(rsc("c_type"))%>','<%=v%>')"><font color="blue"><%=rsc("c_name")%></font></a></td>
<td align="center"><%=tmp_cliform(rsc("c_type"))%></td>
</tr>
<%
rsc.MoveNext
next
%>
</table>
</div>
<br>
<font color="red">*</font> Client TYPE<50><45> <font color="blue"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></font>, <font color="blue"><3E>ؿܱ<D8BF><DCB1><EFBFBD></font>, <font color="blue"><3E><><EFBFBD><EFBFBD>ȸ<EFBFBD><C8B8></font><3E><> <font color="red"><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></font><3E>Դϴ<D4B4>.
<br>
<font color="red">*</font> TYPE<50><45> <font color="red"><3E><><EFBFBD><EFBFBD></font><3E>Ϸ<EFBFBD><CFB7><EFBFBD> Client <20>ڵ<EFBFBD><DAB5><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ư<EFBFBD><C6B0> <20><><EFBFBD><EFBFBD><EFBFBD>ϰ<EFBFBD> <br>&nbsp;&nbsp;&nbsp;<3B><><EFBFBD><EFBFBD> <20><>ư<EFBFBD><C6B0> <20><><EFBFBD><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>.
<%
rsc.Close
set rsc = nothing
%>

138
project/cli_search_2014.asp Normal file
View File

@@ -0,0 +1,138 @@
<!-- #include virtual = "lib/config.asp" -->
<%
p_cli_company_nm = request("p_cli_company_nm")
query = " SELECT * "
query = query & " FROM V_CLIENT_COMP "
If p_cli_company_nm <> "" Then
query = query & " where p_cli_company_nm like '%" & p_cli_company_nm & "%' "
End if
query = query & " ORDER BY p_cli_company_nm "
rsc.Open query, adoConn, 1
%>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<LINK rel="stylesheet" type="text/css" href="/lib/text.css">
<title>
Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ ã<><C3A3>
</title>
<script language=javascript>
function sltit(code, name, v) {
opener.document.pms.p_cli_company_cd.value = code;
opener.document.pms.p_cli_company_nm.value = name;
opener.search('cp_search_2014.asp?p_cli_company_cd=' + code + '&v=1', 'ClientPeopleSearch', 'width=390,height=381,left=100,top=50,scrollbars=yes');
self.close();
}
function search_cli() {
document.pms.cli_name.value = document.pms.cli_name.value.trim();
document.pms.submit();
}
function modit(z) {
var tmp_ok = 0;
var p_cli_company_cd = "";
if (z > 1) {
for (i = 1; i <= z; i++) {
if (document.pms.mod_cli[i - 1].checked == true) {
p_cli_company_cd = document.pms.mod_cli[i - 1].value;
tmp_ok = 1;
}
}
if (p_cli_company_cd == "") {
alert('Client<6E><74> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>');
document.pms.mod_cli[0].focus();
return false;
}
}
else {
if (document.pms.mod_cli.checked == true) {
p_cli_company_cd = document.pms.mod_cli.value;
}
if (p_cli_company_cd == "") {
alert('Client<6E><74> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>');
document.pms.mod_cli.focus();
return false;
}
}
document.pms.action = 'cli_new_2014.asp?p_cli_company_cd=' + p_cli_company_cd;
document.pms.submit();
}
function newit() {
document.pms.action = 'cli_new_2014.asp';
document.pms.submit();
}
function search(){
document.pms.action = 'cli_search_2014.asp';
document.pms.submit();
}
</script>
</head>
<body onLoad="javascript:document.pms.cli_name.focus();">
<form name="pms" method="post">
<!-- Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD> <20>߰<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD> <20><>ư<EFBFBD>Դϴ<D4B4>. -->
<%if tmp_admin_chk = "1" then %>
<div style="position: absolute; left: 10px; top: 4px; z-index: 10;">
<table border="0" cellspacing="0" cellpadding="0" width="335" bgcolor="white">
<tr align="center">
<td>
<input type="button" value="<22>߰<EFBFBD>" onClick="newit()" style="CURSOR:pointer;" />
&nbsp;&nbsp;&nbsp;&nbsp;
<input type="button" value="<22><><EFBFBD><EFBFBD>" onclick="modit('<%=rsc.RecordCount%>')" style="CURSOR:pointer;" />
</td>
</tr>
</table>
</div>
<%end if %>
<!-- --------------------------------------- -->
<br>
<div style="width: 335px; height: 300px; overflow-y: auto;">
<table border="1" cellspacing="0" cellpadding="0" width="335">
<tr>
<td colspan="3" align="center" height="20"><font color="red"><b>(<28>߰<EFBFBD><DFB0><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> IT<49><54> <20><><EFBFBD><EFBFBD>)</b></font></td>
</tr>
<tr align="center" height="20">
<td width="20"></td>
<td width="40"><font color="blue"><b><3E>ڵ<EFBFBD></b></font></td>
<td><font color="blue"><b>Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ<EFBFBD><C6AE></b></font></td>
</tr>
<%
for i = 1 to rsc.RecordCount
%>
<tr>
<td><input type="radio" name="mod_cli" value="<%=rsc("p_cli_company_cd")%>"></td>
<td align="center"><%=rsc("p_cli_company_cd")%></td>
<td>&nbsp;<a href="javascript:sltit('<%=rsc("p_cli_company_cd")%>','<%=rsc("p_cli_company_nm")%>')"><font color="blue"><%=rsc("p_cli_company_nm")%></font></a></td>
</tr>
<%
rsc.MoveNext
next
%>
</table>
</div>
<table border="1" cellspacing="0" cellpadding="0" width="335">
<tr align="center" height="20">
<td width="100">Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ<EFBFBD><C6AE> : </td>
<td><input type="text" name="p_cli_company_nm" value="<%=p_cli_company_nm%>" /></td>
<td width="62"><input type="button" name="" value="<22>˻<EFBFBD>" onclick="javascript:search();"/></td>
</tr>
</table>
<%
rsc.Close
set rsc = nothing
%>
</form>
</body>
</html>

View File

@@ -0,0 +1,80 @@
<!-- #include virtual = "lib/config.asp" -->
<OBJECT RUNAT=Server PROGID=ADODB.Recordset id=rsp></OBJECT>
<%
set dbin = server.CreateObject("ADODB.CONNECTION")
cli_com_cd = request("cli_com_cd")
p_cli_per_cd = request("p_cli_per_cd")
p_cli_depart = unescape(request("p_cli_depart"))
p_cli_per_nm = unescape(request("p_cli_per_nm"))
p_cli_per_com_tel = unescape(request("p_cli_per_com_tel"))
p_cli_per_tel = unescape(request("p_cli_per_tel"))
p_cli_per_email = unescape(request("p_cli_per_email"))
Response.CharSet = "EUC-KR" '<27>ѱ<EFBFBD>
Response.AddHeader "Pragma","no-cache"
Response.AddHeader "cache-control", "no-staff"
Response.Expires = -1
i = 0
if p_cli_per_cd = "" then ' <20>߰<EFBFBD>
query = " "
query = " SELECT count(*) as cnt FROM T_CLIENT_COMP WHERE p_cli_company_cd = '" & cli_com_cd & "' "
rsp.Open query, adoConn, 1
if cint(rsp("cnt")) > 0 then
div_cli = "1"
else
div_cli = "2"
end if
rsp.Close
if div_cli = "1" then ' T_CLIENT_COMP<4D><50> Client<6E><74> <20><><EFBFBD><EFBFBD>
query = " "
query = query & " INSERT INTO T_CLIENT_PERSON VALUES "
query = query & " ('" & cli_com_cd & "', '" & p_cli_depart & "', '" & p_cli_per_nm & "', '" & p_cli_per_com_tel & "', '" & p_cli_per_tel & "', '" & p_cli_per_email & "', getdate(), '" & session("User_Number") & "') "
dbin.Open adoConn
dbin.Execute query, i
dbin.Close
elseif div_cli = "2" then ' Client<6E><74> Client<6E><74> <20><><EFBFBD><EFBFBD>
query = " "
query = query & " INSERT INTO Client_People (c_code, cp_code, cp_name, cp_depart, cp_tel, cp_mobile, cp_email) VALUES "
query = query & " ('" & cli_com_cd & "', (SELECT ISNULL(MAX(cp_code), 0) + 1 FROM Client_People WHERE c_code = '" & cli_com_cd & "'), '" & p_cli_per_nm & "', '" & p_cli_depart & "', '" & p_cli_per_com_tel & "', '" & p_cli_per_tel & "', '" & p_cli_per_email & "') "
dbin.Open adoConn
dbin.Execute query, i
dbin.Close
end if
else ' <20><><EFBFBD><EFBFBD>
query = " "
query = query & " UPDATE T_CLIENT_PERSON "
query = query & " SET p_cli_depart = '" & p_cli_depart & "', "
query = query & " p_cli_per_com_tel = '" & p_cli_per_com_tel & "', "
query = query & " p_cli_per_tel = '" & p_cli_per_tel & "', "
query = query & " p_cli_per_email = '" & p_cli_per_email & "' "
query = query & " WHERE p_cli_company_cd = '" & cli_com_cd & "' AND p_cli_per_cd = '" & split(p_cli_per_cd, "_")(1) & "' "
dbin.Open adoConn
dbin.Execute query, i
dbin.Close
if i = 0 then
query = " "
query = query & " UPDATE Client_People "
query = query & " SET cp_depart = '" & p_cli_depart & "', "
query = query & " cp_tel = '" & p_cli_per_com_tel & "', "
query = query & " cp_mobile = '" & p_cli_per_tel & "', "
query = query & " cp_email = '" & p_cli_per_email & "' "
query = query & " WHERE c_code = '" & cli_com_cd & "' AND cp_code = '" & split(p_cli_per_cd, "_")(1) & "' "
dbin.Open adoConn
dbin.Execute query, i
dbin.Close
end if
end if
response.Write cstr(i)
%>

280
project/client_search.asp Normal file
View File

@@ -0,0 +1,280 @@
<!-- #include virtual = "lib/config.asp" -->
<%
Dim nm_obj, cd_obj 'opener<65><72><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><>ü
nm_obj = request("nm_obj")
cd_obj = request("cd_obj")
if nm_obj = "" or cd_obj = "" then
alert4 "<22>߸<EFBFBD><DFB8><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>."
else
query = " SELECT p_cli_company_cd, p_cli_company_nm FROM V_CLIENT_COMP "
query = query & " ORDER BY p_cli_company_nm "
rsc.Open query, adoConn, 1
%>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<LINK rel="stylesheet" type="text/css" href="/lib/text.css">
<title>
Client <20>ο<EFBFBD> <20><><EFBFBD><EFBFBD>
</title>
<script src="/js/jquery.min.js"></script>
<script src="/js/jquery-ajax-call.js"></script>
<script src="/js/jquery.form.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
//$('#cli_list').css('text-transform','uppercase');
});
function sel_p(cp_no, cp_name) {
var cp_no = $("#cp_list").val();
var cp_name = $("#cp_list option:selected").text();
var cli_name = $("#cli_list option:selected").text();
var f = document.cp_sel;
if (cp_name != ""){
if (f.cp_nm_list.value == "") {
f.cp_nm_list.value = cli_name+"_"+cp_name;
f.cp_cd_list.value = cp_no;
} else {
f.cp_nm_list.value = f.cp_nm_list.value + "," + cli_name+"_"+cp_name;
f.cp_cd_list.value = f.cp_cd_list.value + "," + cp_no;
}
$("#cp_list option:selected").remove();
}else{
alert("Client <20>ο<EFBFBD><CEBF><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>");
}
}
function complete_sel() {
if (document.cp_sel.cp_cd_list.value != "") {
opener.document.<%=nm_obj %>.value = document.cp_sel.cp_nm_list.value;
opener.document.<%=cd_obj %>.value = document.cp_sel.cp_cd_list.value;
self.close();
} else {
alert("<22>ο<EFBFBD><CEBF><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>");
}
}
function delete_sel() {
location.href = "./client_search.asp?nm_obj=<%= nm_obj%>&cd_obj=<%= cd_obj%>";
}
function clear_form() {
var f = document.cp_sel;
f.cp_nm_list.value = "";
f.cp_cd_list.value = "";
}
function cursor_cli(val) {
var tmp_index = -1;
var live_chk = false;
if (val.trim() != "") {
$("#cli_list option").each(function (o) {
if($(this).text().toUpperCase().indexOf(val.toUpperCase()) > -1){
live_chk = true;
if (tmp_index == -1) {
if ($("#cli_list option").index($("#cli_list option:selected")) < $(this).index("#cli_list option")) {
tmp_index = $(this).index("#cli_list option");
}
}
}
});
if (live_chk == true) {
if (tmp_index == -1) {
$("#cli_list option").eq(0).prop("selected", true);
$("#cli_list option").eq(0).prop("selected", false);
cursor_cli(val);
} else {
$("#cli_list option").eq(tmp_index).prop("selected", true);
}
sel_cli();
} else {
alert("<22>˻<EFBFBD><CBBB><EFBFBD> <20>ܾ <20><><EFBFBD>Ե<EFBFBD> Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
$("#cli_list option").prop("selected", false);
}
}
}
function sel_cli(){
if($("#cli_list").val() != null){
var param = { cli_com_cd : $("#cli_list").val(), cp_sel_list : $("#cp_cd_list").val() };
ajaxCallJson("client_search_ajax.asp", param, null, "post", "cp_list()", "", "null_list()");
}
}
function cp_list(){
$("#cp_list").html("");
$("#cp_list").append(ajaxResponse);
}
function null_list(){
$("#cp_list").html("");
}
function add_cp(){
if($("#cli_list").val() != null){
$("#info_popup").css("display", "block");
$("#info_popup_background").css("display", "block");
$("#add_mod_button").val("<22>߰<EFBFBD>");
}else{
alert("Client ȸ<>縦 <20><><EFBFBD><EFBFBD> <20><> <20>̿<EFBFBD><CCBF>ϼ<EFBFBD><CFBC><EFBFBD>");
}
}
function mod_cp(){
if($("#cp_list").val() != null){
$("#info_popup").css("display", "block");
$("#info_popup_background").css("display", "block");
$("#add_mod_button").val("<22><><EFBFBD><EFBFBD>");
var param = { cli_com_cd : $("#cli_list").val(),
cli_per_cd : $("#cp_list").val() };
ajaxCallJson("client_search_ajax.asp", param, null, "post", "mod_cp_load()");
}else{
alert("Client <20>ο<EFBFBD><CEBF><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20>̿<EFBFBD><CCBF>ϼ<EFBFBD><CFBC><EFBFBD>");
}
}
function add_mod_cp_close(){
$("#info_popup").css("display", "none");
$("#info_popup_background").css("display", "none");
$("#p_cli_depart").val("");
$("#p_cli_per_nm").val("");
$("#p_cli_per_nm").prop("readonly", false);
$("#p_cli_per_com_tel").val("");
$("#p_cli_per_tel").val("");
$("#p_cli_per_email").val("");
$("#p_cli_per_cd").val("");
}
function mod_cp_load(){
var cp_array = ajaxResponse.split("||");
$("#p_cli_depart").val(cp_array[0]);
$("#p_cli_per_nm").val(cp_array[1]);
$("#p_cli_per_nm").prop("readonly", true);
$("#p_cli_per_com_tel").val(cp_array[2]);
$("#p_cli_per_tel").val(cp_array[3]);
$("#p_cli_per_email").val(cp_array[4]);
$("#p_cli_per_cd").val($("#cp_list").val());
}
function add_mod_cp_save(){
var param = {
cli_com_cd : $("#cli_list").val(),
p_cli_per_cd : $("#p_cli_per_cd").val(),
p_cli_depart : escape($("#p_cli_depart").val()),
p_cli_per_nm : escape($("#p_cli_per_nm").val()),
p_cli_per_com_tel : escape($("#p_cli_per_com_tel").val()),
p_cli_per_tel : escape($("#p_cli_per_tel").val()),
p_cli_per_email : escape($("#p_cli_per_email").val())
};
ajaxCallJson("client_per_add_mod_ajax.asp", param, null, "post", "cp_save_complete()");
}
function cp_save_complete(){
if(ajaxResponse * 1 > 0){
alert("<22><><EFBFBD><EFBFBD><EFBFBD>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>");
add_mod_cp_close();
sel_cli();
}
}
</script>
</head>
<body onload="clear_form();">
<table border="0" cellspacing="0" cellpadding="0" style="margin: 10 0 0 10;width:600px;">
<tr><td align="center" style="font-family:'malgun gothic'; font-size:14px;font-weight:bold;background-color:#F2F2F2;padding:10 10 10 10;">Client <20>ο<EFBFBD> <20><><EFBFBD><EFBFBD></td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="0" style="margin: 10 0 0 10;width:600px;">
<tr>
<td style="vertical-align:top;width:300px;" align="left">
<table border="0" cellspacing="1" cellpadding="0" style="width:95%;height:340px;">
<tr>
<td align="center" style="font-weight:bold;color:#08298A;">Client ȸ<><C8B8><br /><font color="red">(<28>߰<EFBFBD><DFB0><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> IT<49><54> <20><><EFBFBD><EFBFBD>)</font></td>
</tr>
<tr>
<td align="center" style="font-weight:bold;border:1px solid gray;color:#08298A;width:80%;">
<select style='WIDTH: 220px; HEIGHT: 220px' size='2' name='cli_list' id='cli_list' onClick = "sel_cli();">
<%
Do While Not rsc.Eof
%>
<option value="<%=rsc("p_cli_company_cd")%>" title="<%=rsc("p_cli_company_nm")%>"><%=rsc("p_cli_company_nm")%></option>
<%
rsc.MoveNext
Loop
rsc.Close
set rsc = nothing
%>
</select>
<br />
<20><><EFBFBD>˻<EFBFBD><CBBB><EFBFBD> Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ <20><><EFBFBD><EFBFBD> <20>Է<EFBFBD> <20><><br /> Enter<65><72> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><br />
<input type="text" value="" id="selPro" size="30" onkeypress="javascript:if(event.keyCode==13){cursor_cli(this.value); return false};" />
</td>
</tr>
</table>
</td>
<td style="vertical-align:top;width:300px;" align="right">
<table border="0" cellspacing="1" cellpadding="0" style="width:95%;height:340px;">
<tr>
<td align="center" style="font-weight:bold;color:#08298A;">Client <20>ο<EFBFBD><br />&nbsp;</td>
</tr>
<tr>
<td align="center" style="font-weight:bold;border:1px solid gray;color:#08298A;width:80%;">
<select style='WIDTH: 220px; HEIGHT: 220px' size='2' name='cp_list' id='cp_list' ondblClick = "sel_p();" onkeypress = "javascript:if(event.keyCode==13)sel_p();"></select>
<br />
<br />
<input type="button" value="<22>ű<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>߰<EFBFBD>" onclick="add_cp();" style="background-color:White;font-family:'malgun gothic';color:black;font-weight:bold;" /><br />
<input type="button" value="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>" onclick="mod_cp();" style="background-color:White;font-family:'malgun gothic';color:black;font-weight:bold;" />
</td>
</tr>
</table>
</td>
</tr>
</table>
<br />
<form name="cp_sel" method="post">
<table border="0" cellspacing="0" cellpadding="0" style="margin: 10 0 0 10;width:600px;">
<tr>
<td align="center">
<input type="text" value="" name="cp_nm_list" id="cp_nm_list" style="width:90%;" readonly />
<input type="hidden" value="" name="cp_cd_list" id="cp_cd_list" /><br />
</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td align="center">
<input type="button" value="<22><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD>" onclick="complete_sel();" style="background-color:White;font-family:'malgun gothic';color:black;font-weight:bold;" />&nbsp; &nbsp; &nbsp; &nbsp;
<input type="button" value="<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>" onclick="delete_sel();" style="background-color:White;font-family:'malgun gothic';color:black;font-weight:bold;" />
</td>
</tr>
</table>
</form>
<div style="filter: alpha(opacity=70);position:absolute; display:none; left:0px; top:0px; z-index:499;width:630px;height:490px;background-color: rgb(255,255,255); opacity:0.7;" id="info_popup_background">&nbsp;</div>
<div style="position:absolute; display:none; left:170px; top:150px; width:300px; height:180px;z-index:500; background-color:#E6E6E6;" id="info_popup">
<table border="0" cellspacing="0" cellpadding="0" style="margin: 10 0 0 10;width:100%;">
<tr>
<td align="right" style="padding-right:15px;width:40%;"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>μ<EFBFBD> : </td>
<td align="left"><input type="text" value="" name="p_cli_depart" id="p_cli_depart" style="width:90%;font-size:12px;" /></td>
</tr>
<tr>
<td align="right" style="padding-right:15px;width:40%;"><font color="red">* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></font> : </td>
<td align="left"><input type="text" value="" name="p_cli_per_nm" id="p_cli_per_nm" style="width:90%;font-size:12px;" /></td>
</tr>
<tr>
<td align="right" style="padding-right:15px;width:40%;"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ȸ<><C8B8><EFBFBD><EFBFBD>ȭ : </td>
<td align="left"><input type="text" value="" name="p_cli_per_com_tel" id="p_cli_per_com_tel" style="width:90%;font-size:12px;" /></td>
</tr>
<tr>
<td align="right" style="padding-right:15px;width:40%;"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ڵ<EFBFBD><DAB5><EFBFBD> : </td>
<td align="left"><input type="text" value="" name="p_cli_per_tel" id="p_cli_per_tel" style="width:90%;font-size:12px;" /></td>
</tr>
<tr>
<td align="right" style="padding-right:15px;width:40%;"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> : </td>
<td align="left"><input type="text" value="" name="p_cli_per_email" id="p_cli_per_email" style="width:90%;font-size:12px;" /></td>
</tr>
<tr><td colspan="2"><input type="hidden" value="" name="p_cli_per_cd" id="p_cli_per_cd" />&nbsp;</td></tr>
<tr>
<td colspan="2" align="center">
<input type="button" value="" id="add_mod_button" onclick="add_mod_cp_save();" style="background-color:White;font-family:'malgun gothic';color:black;font-weight:bold;" />&nbsp; &nbsp;
<input type="button" value="<22><><EFBFBD><EFBFBD>" onclick="add_mod_cp_close();" style="background-color:White;font-family:'malgun gothic';color:black;font-weight:bold;" />&nbsp; &nbsp; &nbsp;
</td>
</tr>
</table>
</div>
</body>
</html>
<%
end if
%>

View File

@@ -0,0 +1,42 @@
<!-- #include virtual = "lib/config.asp" -->
<OBJECT RUNAT=Server PROGID=ADODB.Recordset id=rsp></OBJECT>
<%
cli_com_cd = request("cli_com_cd")
cli_per_cd = request("cli_per_cd")
cp_sel_list = request("cp_sel_list")
Response.CharSet = "EUC-KR" '<27>ѱ<EFBFBD>
Response.AddHeader "Pragma","no-cache"
Response.AddHeader "cache-control", "no-staff"
Response.Expires = -1
if cli_per_cd = "" then
query = " "
query = query & " SELECT convert(varchar, p_cli_company_cd)+'_'+convert(varchar, p_cli_per_cd) as cp_cd, p_cli_depart, p_cli_per_nm, p_cli_per_com_tel, p_cli_per_tel, p_cli_per_email "
query = query & " FROM V_CLIENT_PERSON "
query = query & " WHERE p_cli_company_cd = '" & cli_com_cd & "' "
if cp_sel_list <> "" then
query = query & " AND convert(varchar, p_cli_company_cd)+'_'+convert(varchar, p_cli_per_cd) NOT IN ('" & replace(cp_sel_list, ",", "','") & "') "
end if
rsp.Open query, adoConn, 1
do while not rsp.eof
response.write "<option value='" & rsp("cp_cd") & "' title='" & rsp("p_cli_per_com_tel") & ", " & rsp("p_cli_per_tel") & ", " & rsp("p_cli_per_email") & "'>" & rsp("p_cli_per_nm") & "</option>"
rsp.movenext
loop
rsp.close
else
query = " "
query = query & " SELECT convert(varchar, p_cli_company_cd)+'_'+convert(varchar, p_cli_per_cd) as cp_cd, p_cli_depart, p_cli_per_nm, p_cli_per_com_tel, p_cli_per_tel, p_cli_per_email "
query = query & " FROM V_CLIENT_PERSON "
query = query & " WHERE p_cli_company_cd = '" & cli_com_cd & "' AND p_cli_per_cd = '" & split(cli_per_cd, "_")(1) & "' "
rsp.Open query, adoConn, 1
if rsp.recordCount > 0 then
response.write rsp("p_cli_depart") & "||" & rsp("p_cli_per_nm") & "||" & rsp("p_cli_per_com_tel") & "||" & rsp("p_cli_per_tel") & "||" & rsp("p_cli_per_email")
end if
rsp.close
end if
%>

View File

@@ -0,0 +1,351 @@
<!-- #include virtual = "lib/config.asp" -->
<script language="javascript" src="/js/common.js"></script>
<link rel="stylesheet" type="text/css" href="/css/basic.css">
<%
set rsp = server.CreateObject("ADODB.RECORDSET")
p_contact = request("p_contact")
contat_p_sn = request("contat_p_sn")
p_subject = request("p_subject")
p_depart = request("p_depart")
tmp_month = request("tmp_month")
tmp_year = request("tmp_year")
tmp_state = request("tmp_state")
%>
<script language=javascript>
function openit(a) {
document.pms.action = "contact_project_search_2014.asp";
document.pms.submit();
}
function subit(p_sn, p_subject) {
p_subject = "[" + p_sn + "] " + p_subject;
opener.document.pms.c_project_cd.value = p_sn;
opener.document.pms.c_project_nm.value = p_subject;
self.close();
}
</script>
<script src="/lib/function.js" type="text/javascript1.3"></script>
<form name="pms" method="post">
<td width="100%" valign="top">
<input type="hidden" name="p_contact" value="<%= p_contact%>" />
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td colspan="2" style="padding:20;">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td>
<font class="brown"><3E>˻<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>.</font>
</font>
</td>
</tr>
<tr>
<td style="padding:5 0 0 0">
<table width="100%" height="37" cellpadding="0" cellspacing="0" border="0" bgcolor="#c0c0c0">
<tr>
<td bgcolor="#DFDFDF" style="padding:0 0 0 10">
<09>μ<EFBFBD>&nbsp;
<select name="p_depart">
<%
if view_depart = "" then
%>
<option value="" <% if p_depart = "" then %> selected <% end if %>><3E><>ü</option>
<%
end if
query = "SELECT * " & _
"FROM depart " & _
"WHERE d_yes_no = 'Y' " & _
" AND (" & _
" (d_code <= 12) " & _
" or " & _
" (d_code >= 20 AND d_code <= 39) or (d_code='90') " & _
") ORDER BY d_code "
rsc.Open query, adoConn, 1
if rsc.RecordCount > 0 then
for i = 1 to rsc.RecordCount
if cint(Session("Depart_Code")) = cint(rsc("d_mcode")) OR view_depart = "" then
%>
<option value="<%=rsc("d_code")%>" <% if cstr(p_depart) = cstr(rsc("d_code")) then %> selected <% end if %>><%=rsc("d_name")%></option>
<%
end if
rsc.MoveNext
next
end if
rsc.Close
%>
</select>
&nbsp;&nbsp;
<09>⵵&nbsp;
<select name="tmp_year">
<%
for i = year(date()) to 2009 step -1
%>
<option value="<%=i%>" <% if tmp_year = cstr(i) then %> selected <% end if %>><%=i%><3E><></option>
<%
next
%>
</select>
&nbsp;&nbsp;
<09><>&nbsp;
<select name="tmp_month">
<option value="0" <% if tmp_month = "0" then %> selected <% end if %>><3E><>ü</option>
<%
if cstr(tmp_year) = cstr(year(date())) OR tmp_year = "" then
tmp_i = month(date())
else
tmp_i = 12
end if
for i = 1 to tmp_i
%>
<option value="<%=i%>" <% if tmp_month = cstr(i) then %> selected <% end if %>><%=i%><3E><></option>
<%
next
%>
</select>
&nbsp;&nbsp;
<%
if p_contact <> "002" then
%>
<09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>&nbsp;
<select name="tmp_state" >
<option value="" <% if tmp_state = "" then %> selected <% end if %>><3E><>ü</option>
<option value="K" <% if tmp_state = "K" then %> selected <% end if %>><3E><><EFBFBD><EFBFBD></option>
<option value="P" <% if tmp_state = "P" then %> selected <% end if %>><3E><><EFBFBD><EFBFBD></option>
<option value="D" <% if tmp_state = "D" then %> selected <% end if %>><3E><><EFBFBD><EFBFBD></option>
<option value="X" <% if tmp_state = "X" then %> selected <% end if %>>Ż<><C5BB></option>
</select>
<%
else
%>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<%
end if
%>
&nbsp;&nbsp;&nbsp;&nbsp;
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><> : &nbsp;
<input type="text" style="width:200" name="p_subject" maxlength=20 style='ime-mode:inactive;' value='<%=p_subject%>'>&nbsp;&nbsp;
<img src="/images/common/btn_smallsrch.gif" align="absmiddle" onclick='openit();' style='cursor:pointer' >
&nbsp;&nbsp;
&nbsp;&nbsp;
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td style="padding:10 0 0 0">
<%
if p_contact <> "002" then
%>
<table width="100%" cellpadding="3" cellspacing="0" border="0" style="border-collapse:collapse;">
<tr>
<td align="center" width=150><3E><><EFBFBD><EFBFBD> <20><>ȣ</td>
<td align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><></td>
<td align="center" ><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></td>
<td align="center" >Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ<EFBFBD><C6AE></td>
<td align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td align="center" ><3E><><EFBFBD>ʵ<EFBFBD><CAB5><EFBFBD><EFBFBD><EFBFBD></td>
</tr>
<!-- loop start -->
<%
query = " SELECT p_sn, p_cli_company_cd, p_client_type_cd, p_subject, p_cli_per_cd, p_memo, "
query = query & " p_cont_cost, p_decide_date, p_input_dt, p_state, p_input_user, "
query = query & " p_depart_dep, p_depart_team, p.p_name as p_name, p.p_depart, D.d_name "
query = query & " FROM T_PROJECT_BASE PB INNER JOIN person P ON PB.p_input_user = P.P_NO "
query = query & " INNER JOIN Depart D ON PB.p_depart_dep = d.d_code "
query = query & " WHERE p_sn IS NOT NULL"
'------------------------------------------------------
'<27><>ȸ <20>ɼ<EFBFBD>
if p_depart <> "" then
query = query & " AND p_depart_dep = '" & p_depart & "' "
end if
'------------------------------------------------------
'<27><> <20>ɼ<EFBFBD>
if tmp_year <> "0" and tmp_year <> "" then
query = query & " AND YEAR(p_input_dt) = '" & tmp_year & "' "
else
query = query & " AND YEAR(p_input_dt) = '" & year(date()) & "' "
end if
'------------------------------------------------------
'<27><> <20>ɼ<EFBFBD>
if tmp_month <> "0" and tmp_month <> "" then
query = query & " AND MONTH(p_input_dt) = '" & right("0" & tmp_month, 2) & "' "
end if
'------------------------------------------------------
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ɼ<EFBFBD>
if tmp_state <> "" then
query = query & " AND p_state = '"&tmp_state&"' "
end if
'------------------------------------------------------
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><> <20>˻<EFBFBD> <20>ɼ<EFBFBD>
if p_subject <> "" then
query = query & " AND p_subject LIKE '%"&p_subject&"%' "
end if
'------------------------------------------------------
query = query & " ORDER BY p_input_dt"
rsc.Open query, adoConn, 1
if rsc.RecordCount > 0 then
for i = 1 to rsc.RecordCount
query = " SELECT * "
query = query & " FROM V_CLIENT_PERSON "
query = query & " WHERE p_cli_per_cd = '" & rsc("p_cli_per_cd") & "' "
query = query & " AND p_cli_company_cd = '" & rsc("p_cli_company_cd") & "' "
rsp.Open query, adoConn, 1
if rsp.RecordCount > 0 then
tmp_cli_name = rsp("p_cli_per_nm")
else
tmp_cli_name = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
end if
rsp.Close
tmp_content = rsc("p_subject")
if i mod 2 = 0 then
tmp_bgcolor = "#dbe9f2"
else
tmp_bgcolor = "#ffffff"
end if
if rsc("p_state") = "K" then
p_state_kor = "<22><><EFBFBD><EFBFBD>"
elseif rsc("p_state") = "P" then
p_state_kor = "<22><><EFBFBD><EFBFBD>"
elseif rsc("p_state") = "D" then
p_state_kor = "<22><><EFBFBD><EFBFBD>"
elseif rsc("p_state") = "X" then
p_state_kor = "Ż<><C5BB>"
else
a = "<<3C><><EFBFBD><EFBFBD>> : <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>ǹٶ<C7B9>"
end if
%>
<tr bgcolor="<%=tmp_bgcolor%>">
<td align="center"><%=rsc("p_sn")%></td>
<td align="center"><a href="javascript:subit('<%=rsc("p_sn")%>', '<%=rsc("p_subject")%>')" class="blue"><%=rsc("p_subject")%></a></td>
<td align="center"><%=p_state_kor%></td>
<td align="center"><%=tmp_cli_name %></td>
<td class="center" align="center"><%=rsc("p_name")%></td>
<td align="center" ><%=rsc("p_input_dt")%></td>
</tr>
<%
rsc.MoveNext
next
end if
rsc.Close
%>
<!-- loop end -->
<tr>
<td colspan="6" bgcolor="#d5d5d5" height="1"></td>
</tr>
</table>
<%
else
%>
<table width="100%" cellpadding="3" cellspacing="0" border="0" style="border-collapse:collapse;">
<tr>
<td align="center" width=100><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD>ڵ<EFBFBD></td>
<td align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><></td>
<td align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td align="center" width=60><3E><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD></td>
<td align="center" >Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ<EFBFBD><C6AE></td>
<td align="center" width=60><3E><><EFBFBD>ʵ<EFBFBD><CAB5><EFBFBD><EFBFBD><EFBFBD></td>
</tr>
<!-- loop start -->
<%
query = " SELECT p_child_sn, p_subject, p_method_nm, CASE WHEN ISNULL(team_name, '') = '' THEN CASE WHEN p_field_dept <> '900' THEN '<27>ڷ<EFBFBD><DAB7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' END ELSE team_name END depart_name, "
query = query & " p_cli_company_nm, Convert(varchar(10), TPM.p_input_dt, 120) as p_input_dt "
query = query & " FROM T_PROJECT_METHOD TPM "
query = query & " LEFT OUTER JOIN T_PROJECT_METHOD_CD TPMC ON TPM.p_method_cd = TPMC.p_method_cd AND TPMC.p_method_yn = 'y' "
query = query & " LEFT OUTER JOIN TEAM_GROUP TG ON TPM.p_rsch_dept = TG.team_cd AND TG.div_use = '1' "
query = query & " LEFT OUTER JOIN V_CLIENT_COMP VCC ON TPM.p_cli_company_cd = VCC.p_cli_company_cd "
query = query & " WHERE TPM.p_progress_status >= '006' AND p_rsch_dept <> '91' "
'------------------------------------------------------
'<27><>ȸ <20>ɼ<EFBFBD>
if p_depart <> "" then
query = query & " AND (p_rsch_dept = '" & p_depart & "' OR (p_rsch_dept = '900' and p_field_dept = '" & p_depart & "')) "
end if
'------------------------------------------------------
'<27><> <20>ɼ<EFBFBD>
if tmp_year <> "0" and tmp_year <> "" then
query = query & " AND '20' +LEFT(p_child_sn, 2) = '" & tmp_year & "' "
else
query = query & " AND '20' +LEFT(p_child_sn, 2) = '" & year(date()) & "' "
end if
'------------------------------------------------------
'<27><> <20>ɼ<EFBFBD>
if tmp_month <> "0" and tmp_month <> "" then
query = query & " AND RIGHT(LEFT(p_child_sn, 4), 2) = '" & right("0" & tmp_month, 2) & "' "
end if
'------------------------------------------------------
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><> <20>˻<EFBFBD> <20>ɼ<EFBFBD>
if p_subject <> "" then
query = query & " AND p_subject LIKE '%"&p_subject&"%' "
end if
'------------------------------------------------------
query = query & " ORDER BY p_child_sn "
rsc.Open query, adoConn, 1
if rsc.RecordCount > 0 then
for i = 1 to rsc.RecordCount
if i mod 2 = 0 then
tmp_bgcolor = "#dbe9f2"
else
tmp_bgcolor = "#ffffff"
end if
%>
<tr bgcolor="<%=tmp_bgcolor%>">
<td align="center"><%=rsc("p_child_sn")%></td>
<td align="center"><a href="javascript:subit('<%=rsc("p_child_sn")%>', '<%=rsc("p_subject")%>')" class="blue"><%=rsc("p_subject")%></a></td>
<td align="center" align="center"><%=rsc("p_method_nm")%></td>
<td align="center" align="center"><%=rsc("depart_name") %></td>
<td class="center"><%=rsc("p_cli_company_nm")%></td>
<td align="center" ><%=rsc("p_input_dt")%></td>
</tr>
<%
rsc.MoveNext
next
end if
rsc.Close
%>
<!-- loop end -->
<tr>
<td colspan="6" bgcolor="#d5d5d5" height="1"></td>
</tr>
</table>
<%
end if
%>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</form>

166
project/cp_modi.asp Normal file
View File

@@ -0,0 +1,166 @@
<!-- #include virtual = "lib/config.asp" -->
<%
p_cli_code = request("p_cli_code")
mod_cli = request("mod_cli")
x = request("x") 'project_lsit2_thanksmail<69><6C><EFBFBD><EFBFBD> 1<><31> <20><><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD>Ϸ<EFBFBD> <20><> â<><C3A2> <20>ݱ<EFBFBD> <20><><EFBFBD><EFBFBD>)
query = "SELECT * "
query = query & "FROM Client_People "
query = query & "WHERE c_code='" & p_cli_code & "' "
query = query & " AND cp_code='" & mod_cli & "' "
query = query & "ORDER BY cp_name "
'Response.Write query
rsc.Open query, adoConn, 1
%>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<LINK rel="stylesheet" type="text/css" href="/lib/text.css">
<title>
Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
</title>
<script language=javascript>
function cancelit(a) {
if (a == 1)
{
self.close();
}
else
{
history.back();
}
}
function modit() {
if (document.pms.cp_name.value.trim() == '') {
alert('Client <20><><EFBFBD><EFBFBD><EFBFBD>ڸ<EFBFBD> <20>ۼ<EFBFBD><DBBC><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>');
document.pms.cp_name.focus();
return false;
}
document.pms.cp_name.value = document.pms.cp_name.value.trim();
if (document.pms.cp_depart.value.trim() == '') {
alert('Client <20>μ<EFBFBD><CEBC><EFBFBD> <20>ۼ<EFBFBD><DBBC><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>');
document.pms.cp_depart.focus();
return false;
}
document.pms.cp_depart.value = document.pms.cp_depart.value.trim();
if (document.pms.cp_tel.value.trim() == '') {
alert('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ȭ<EFBFBD><C8AD>ȣ<EFBFBD><C8A3> <20>ۼ<EFBFBD><DBBC><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>');
document.pms.cp_tel.focus();
return false;
}
document.pms.cp_tel.value = document.pms.cp_tel.value.trim();
if (document.pms.cp_mobile.value.trim() == '') {
alert('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ڵ<EFBFBD><DAB5><EFBFBD> <20><>ȣ<EFBFBD><C8A3> <20>ۼ<EFBFBD><DBBC><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>');
document.pms.cp_mobile.focus();
return false;
}
document.pms.cp_mobile.value = document.pms.cp_mobile.value.trim();
if (document.pms.cp_email.value.trim() == '') {
alert('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ۼ<EFBFBD><DBBC><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>');
document.pms.cp_email.focus();
return false;
}
document.pms.cp_email.value = document.pms.cp_email.value.trim();
if (document.pms.cp_position.value.trim() == '') {
alert('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ۼ<EFBFBD><DBBC><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>');
document.pms.cp_position.focus();
return false;
}
document.pms.cp_position.value = document.pms.cp_position.value.trim();
document.pms.action = 'cp_modi_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" name="p_cli_code" value="<%=p_cli_code%>">
<input type="hidden" name="mod_cli" value="<%=mod_cli%>">
<input type="hidden" name="x" value="<%=x%>">
<table border="1" cellspacing="0" cellpadding="0" width="335" bgcolor="white">
<tr align="center" height="20">
<td bgcolor=Yellow><font color="blue"><b>Client <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></font></td>
<td>
<input class="input" type="text" size="20" name="cp_name" value="<%=rsc("cp_name")%>">
</td>
</tr>
<tr align="center" >
<td bgcolor=Yellow><font color="blue"><b>Client <20>μ<EFBFBD></b></font></td>
<td>
<input class="input" type="text" size="20" name="cp_depart" value="<%=rsc("cp_depart")%>">
</td>
</tr>
<tr align="center" >
<td bgcolor=Yellow><font color="blue"><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ȭ</b></font></td>
<td>
<input class="input" type="text" size="20" name="cp_tel" value="<%=rsc("cp_tel")%>">
</td>
</tr>
<tr align="center" >
<td bgcolor=Yellow><font color="blue"><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ڵ<EFBFBD><DAB5><EFBFBD></b></font></td>
<td>
<input class="input" type="text" size="20" name="cp_mobile" value="<%=rsc("cp_mobile")%>">
</td>
</tr>
<tr align="center" >
<td bgcolor=Yellow><font color="blue"><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></b></font></td>
<td>
<input class="input" type="text" size="20" name="cp_email" value="<%=rsc("cp_email")%>">
</td>
</tr>
<tr align="center">
<td bgcolor=Yellow><font color="blue"><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></b></font></td>
<td>
<input class="input" type="text" size="20" name="cp_position" value="<%=rsc("cp_position")%>">
</td>
</tr>
<tr align="center">
<td><font color="blue"><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20≯<EFBFBD></b></font></td>
<td>
<input class="input" type="text" size="20" name="cp_master" value="<%=rsc("cp_master")%>">
</td>
</tr>
<tr align="center">
<td><font color="blue"><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></b></font></td>
<td>
<input class="input" type="text" size="20" name="cp_mposition" value="<%=rsc("cp_mposition")%>">
</td>
</tr>
</table>
<br>
<table border="0" cellspacing="0" cellpadding="0" width="335" bgcolor="white">
<tr align="center">
<td colspan="99" style = "font-family:<3A><><EFBFBD><EFBFBD>ü;color:blue;font-size:10pt;font-weight:bold;">
<09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>κ<EFBFBD><CEBA><EFBFBD> <20>ʼ<EFBFBD> <20>Դϴ<D4B4>.
</td>
</tr>
</table>
<br>
<table border="0" cellspacing="0" cellpadding="0" width="335" bgcolor="white">
<tr align="center">
<td colspan="99">
<img src="/images/common/btn_modify2.jpg" style="cursor:pointer" border="0" onClick="modit()" title = "<22><><EFBFBD><EFBFBD>">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<img src="/images/common/btn_cancel2.jpg" style="cursor:pointer" border="0" onClick="cancelit('<%=x%>')" title = "<22><><EFBFBD><EFBFBD>">
</td>
</tr>
</table>
<%
rsc.Close
set rsc = nothing
%>

138
project/cp_modi_2014.asp Normal file
View File

@@ -0,0 +1,138 @@
<!-- #include virtual = "lib/config.asp" -->
<%
p_cli_per_cd = ""
p_cli_per_cd = request("p_cli_per_cd")
p_cli_company_cd = request("p_cli_company_cd")
mod_cli = request("mod_cli")
x = request("x") 'project_lsit2_thanksmail<69><6C><EFBFBD><EFBFBD> 1<><31> <20><><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD>Ϸ<EFBFBD> <20><> â<><C3A2> <20>ݱ<EFBFBD> <20><><EFBFBD><EFBFBD>)
query = " SELECT * "
query = query & " FROM V_CLIENT_PERSON "
query = query & " WHERE p_cli_per_cd='" & p_cli_per_cd & "' and p_cli_company_cd = '" & p_cli_company_cd & "' "
'Response.Write query
rsc.Open query, adoConn, 1
p_cli_depart = ""
p_cli_per_nm = ""
p_cli_per_com_tel = ""
p_cli_per_tel = ""
p_cli_per_email = ""
if p_cli_per_cd <> "" then
p_cli_depart = rsc("p_cli_depart")
p_cli_per_nm = rsc("p_cli_per_nm")
p_cli_per_com_tel = rsc("p_cli_per_com_tel")
p_cli_per_tel = rsc("p_cli_per_tel")
p_cli_per_email = rsc("p_cli_per_email")
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>
Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
</title>
<script language=javascript>
function cancelit(a) {
if (a == 1)
{
self.close();
}
else
{
history.back();
}
}
function modit() {
if (document.pms.p_cli_per_nm.value.trim() == '') {
alert('Client <20><><EFBFBD><EFBFBD><EFBFBD>ڸ<EFBFBD> <20>ۼ<EFBFBD><DBBC>ϼ<EFBFBD><CFBC><EFBFBD>');
document.pms.p_cli_per_nm.value = '';
document.pms.p_cli_per_nm.focus();
return false;
}
document.pms.p_cli_per_nm.value = document.pms.p_cli_per_nm.value.trim();
/*if (document.pms.p_cli_per_com_tel.value.trim() == '' && document.pms.p_cli_per_tel.value.trim() == '' && document.pms.p_cli_per_email.value.trim() == '') {
alert('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ȸ<><C8B8><EFBFBD><EFBFBD>ȭ, <20>ڵ<EFBFBD><DAB5><EFBFBD>, <20><><EFBFBD><EFBFBD> <20><> 1<><31><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20>Է<EFBFBD><D4B7>ؾ<EFBFBD> <20>մϴ<D5B4>. ');
document.pms.p_cli_per_com_tel.value = '';
document.pms.p_cli_per_com_tel.focus();
return false;
}*/
document.pms.p_cli_depart.value = document.pms.p_cli_depart.value.trim();
if (document.pms.p_cli_per_cd.value == "") {
document.pms.action = 'cp_new_ok_2014.asp';
} else {
document.pms.action = 'cp_modi_ok_2014.asp';
}
document.pms.submit();
}
</script>
</head>
<!--meta http-equiv="refresh" content="300;url=onfile.asp"-->
<body>
<form name="pms" method="post">
<input type="hidden" name="p_cli_company_cd" value="<%=p_cli_company_cd%>">
<input type="hidden" name="p_cli_per_cd" value="<%=p_cli_per_cd%>">
<input type="hidden" name="mod_cli" value="<%=mod_cli%>">
<input type="hidden" name="x" value="<%=x%>">
<table border="1" cellspacing="0" cellpadding="0" width="335" bgcolor="white">
<tr align="center" >
<td><font color="blue"><b>Client <20>μ<EFBFBD></b></font></td>
<td>
<input class="input" type="text" size="20" name="p_cli_depart" value="<%=p_cli_depart%>">
</td>
</tr>
<tr align="center" height="20">
<td><font color="blue"><b>Client <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></font></td>
<td>
<input class="input" type="text" size="20" name="p_cli_per_nm" value="<%=p_cli_per_nm%>">
</td>
</tr>
<tr align="center" >
<td><font color="blue"><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ȸ<><C8B8> <20><>ȭ</b></font></td>
<td>
<input class="input" type="text" size="20" name="p_cli_per_com_tel" value="<%=p_cli_per_com_tel%>">
</td>
</tr>
<tr align="center" >
<td><font color="blue"><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ڵ<EFBFBD><DAB5><EFBFBD></b></font></td>
<td>
<input class="input" type="text" size="20" name="p_cli_per_tel" value="<%=p_cli_per_tel%>">
</td>
</tr>
<tr align="center" >
<td><font color="blue"><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></b></font></td>
<td>
<input class="input" type="text" size="20" name="p_cli_per_email" value="<%=p_cli_per_email%>">
</td>
</tr>
</table>
<br>
<br>
<table border="0" cellspacing="0" cellpadding="0" width="335" bgcolor="white">
<tr align="center">
<td colspan="99">
<%if p_cli_per_cd <> "" then %>
<img src="/images/common/btn_modify2.jpg" style="cursor:pointer" border="0" onClick="modit()" title = "<22><><EFBFBD><EFBFBD>">
<% else %>
<img src="/images/common/btn_save.jpg" style="cursor:pointer" border="0" onClick="modit()" title = "<22><><EFBFBD><EFBFBD>">
<% end if %>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<img src="/images/common/btn_cancel2.jpg" style="cursor:pointer" border="0" onClick="cancelit('<%=x%>')" title = "<22><><EFBFBD><EFBFBD>">
</td>
</tr>
</table>
<%
rsc.Close
set rsc = nothing
%>

66
project/cp_modi_ok.asp Normal file
View File

@@ -0,0 +1,66 @@
<!-- #include virtual = "lib/config.asp" -->
<%
x = request("x")
p_cli_code = request("p_cli_code")
mod_cli = request("mod_cli")
cp_depart = request("cp_depart")
cp_name = request("cp_name")
cp_tel = request("cp_tel")
cp_mobile = request("cp_mobile")
cp_email = request("cp_email")
cp_position = request("cp_position")
cp_master = request("cp_master")
cp_mposition= request("cp_mposition")
query = "UPDATE Client_People "
query = query & "SET "
query = query & "cp_name='" & cp_name & "', "
query = query & "cp_depart='" & cp_depart & "', "
query = query & "cp_tel='" & cp_tel & "', "
query = query & "cp_mobile='" & cp_mobile & "', "
query = query & "cp_email='" & cp_email & "', "
query = query & "cp_position='" & cp_position & "', "
query = query & "cp_master='" & cp_master & "', "
query = query & "cp_mposition='" & cp_mposition & "' "
query = query & "WHERE c_code='" & p_cli_code & "' "
query = query & " AND cp_code='" & mod_cli & "' "
'Response.Write query
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="/lib/text.css">
<title>
Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ <20><><EFBFBD><EFBFBD>
</title>
<script language=javascript>
function goit(a) {
alert('<27><><EFBFBD><EFBFBD><EFBFBD>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>');
document.pms.action = 'cp_search_2014.asp';
if (a == 1)
{
opener.location.reload();
self.close();
}
else
{
document.pms.submit();
}
}
</script>
</head>
<body onLoad="goit('<%=x%>')">
<form name="pms" method="post">
<input type="hidden" name="p_cli_code" value="<%=p_cli_code%>">
</body>
</html>

View File

@@ -0,0 +1,66 @@
<!-- #include virtual = "lib/config.asp" -->
<%
p_cli_company_cd = request("p_cli_company_cd")
p_cli_per_cd = request("p_cli_per_cd")
mod_cli = request("mod_cli")
p_cli_depart = request("p_cli_depart")
p_cli_per_nm = request("p_cli_per_nm")
p_cli_per_com_tel = request("p_cli_per_com_tel")
p_cli_per_tel = request("p_cli_per_tel")
p_cli_per_email = request("p_cli_per_email")
query = " UPDATE T_CLIENT_PERSON "
query = query & " SET "
query = query & " p_cli_depart='" & p_cli_depart & "', "
query = query & " p_cli_per_nm='" & p_cli_per_nm & "', "
query = query & " p_cli_per_com_tel='" & p_cli_per_com_tel & "', "
query = query & " p_cli_per_tel='" & p_cli_per_tel & "', "
query = query & " p_cli_per_email='" & p_cli_per_email & "'"
query = query & " WHERE p_cli_per_cd='" & p_cli_per_cd & "' and p_cli_company_cd = '" & p_cli_company_cd & "' "
set dbin = server.CreateObject("ADODB.CONNECTION")
dbin.Open adoConn
dbin.Execute query, i
dbin.Close
if i = 0 then
query = " UPDATE Client_People "
query = query & " SET "
query = query & " cp_depart ='" & p_cli_depart & "', "
query = query & " cp_name = '" & p_cli_per_nm & "', "
query = query & " cp_tel='" & p_cli_per_com_tel & "', "
query = query & " cp_mobile ='" & p_cli_per_tel & "', "
query = query & " cp_email ='" & p_cli_per_email & "'"
query = query & " WHERE cp_code ='" & p_cli_per_cd & "' and c_code = '" & p_cli_company_cd & "' "
dbin.Open adoConn
dbin.Execute query
dbin.Close
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>
Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ <20><><EFBFBD><EFBFBD>
</title>
<script language=javascript>
function goit() {
alert('<27><><EFBFBD><EFBFBD><EFBFBD>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>');
document.pms.action = 'cp_search_2014.asp?v=1';
document.pms.submit();
}
</script>
</head>
<body onLoad="goit()">
<form name="pms" method="post">
<input type="hidden" name="p_cli_company_cd" value="<%=p_cli_company_cd%>">
</body>
</html>

123
project/cp_new.asp Normal file
View File

@@ -0,0 +1,123 @@
<!-- #include virtual = "lib/config.asp" -->
<%
p_cli_code = request("p_cli_code")
query = "SELECT MAX(cp_code) as cp_code "
query = query & "FROM Client_People "
query = query & "WHERE c_code = '" & p_cli_code & "' "
rsc.Open query, adoConn, 1
if rsc("cp_code") = "" or isnull(rsc("cp_code")) then
tmp_cpcode = 1
else
tmp_cpcode = int(rsc("cp_code")) + 1
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>
Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ <20>߰<EFBFBD>
</title>
<script language=javascript>
function cancelit() {
history.back();
}
function newit(a) {
if (document.pms.cp_name.value.trim() == '') {
alert('Client <20><><EFBFBD><EFBFBD><EFBFBD>ڸ<EFBFBD> <20>ۼ<EFBFBD><DBBC>ϼ<EFBFBD><CFBC><EFBFBD>');
document.pms.cp_name.value = '';
document.pms.cp_name.focus();
return false;
}
document.pms.cp_name.value = document.pms.cp_name.value.trim();
if (document.pms.cp_depart.value.trim() == '') {
alert('Client <20>μ<EFBFBD><CEBC><EFBFBD> <20>ۼ<EFBFBD><DBBC>ϼ<EFBFBD><CFBC><EFBFBD>');
document.pms.cp_depart.value = '';
document.pms.cp_depart.focus();
return false;
}
document.pms.cp_depart.value = document.pms.cp_depart.value.trim();
document.pms.action = 'cp_new_ok.asp?p_cli_code='+a;
document.pms.submit();
}
</script>
</head>
<meta http-equiv="refresh" content="300;url=onfile.asp">
<body>
<form name="pms" method="post">
<input type="hidden" name="p_cli_code" value="<%=p_cli_code%>">
<table border="1" cellspacing="0" cellpadding="0" width="335" bgcolor="white" bordercolordark="gray" bordercolorlight="white">
<tr align="center" height="20">
<td><font color="blue"><b>Client <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></font></td>
<td>
<input class="input" type="text" size="20" name="cp_name">
</td>
</tr>
<tr align="center">
<td><font color="blue"><b>Client <20>μ<EFBFBD></b></font></td>
<td>
<input class="input" type="text" size="20" name="cp_depart">
</td>
</tr>
<tr align="center">
<td><font color="blue"><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ȭ</b></font></td>
<td>
<input class="input" type="text" size="20" name="cp_tel">
</td>
</tr>
<tr align="center">
<td><font color="blue"><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ڵ<EFBFBD><DAB5><EFBFBD></b></font></td>
<td>
<input class="input" type="text" size="20" name="cp_mobile">
</td>
</tr>
<tr align="center">
<td><font color="blue"><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></b></font></td>
<td>
<input class="input" type="text" size="20" name="cp_email">
</td>
</tr>
<tr align="center">
<td><font color="blue"><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></b></font></td>
<td>
<input class="input" type="text" size="20" name="cp_position">
</td>
</tr>
<tr align="center">
<td><font color="blue"><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20≯<EFBFBD></b></font></td>
<td>
<input class="input" type="text" size="20" name="cp_master">
</td>
</tr>
<tr align="center">
<td><font color="blue"><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></b></font></td>
<td>
<input class="input" type="text" size="20" name="cp_mposition">
</td>
</tr>
</table>
<br>
<table border="0" cellspacing="0" cellpadding="0" width="335" bgcolor="white">
<tr align="center">
<td colspan="99">
<input type="button" value="<22><> <20><>" id=button1 name=button1 onClick="newit('<%=p_cli_code%>')">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="button" value="<22><> <20><>" id=button2 name=button2 onClick="cancelit()">
</td>
</tr>
</table>
<%
rsc.Close
set rsc = nothing
%>

66
project/cp_new_ok.asp Normal file
View File

@@ -0,0 +1,66 @@
<!-- #include virtual = "lib/config.asp" -->
<%
p_cli_code = request("p_cli_code") '<27≯<EFBFBD> <20>˻<EFBFBD><CBBB><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Client code
cp_name = request("cp_name") '<27><><EFBFBD><EFBFBD> <20>߰<EFBFBD><DFB0><EFBFBD> Client <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
cp_depart = request("cp_depart") '<27><><EFBFBD><EFBFBD> <20>߰<EFBFBD><DFB0><EFBFBD> Client <20>μ<EFBFBD>
cp_tel = request("cp_tel")
cp_mobile = request("cp_mobile")
cp_email = request("cp_email")
cp_position = request("cp_position")
cp_master = request("cp_master")
cp_mposition= request("cp_mposition")
query = "SELECT MAX(cp_code) as cp_code "
query = query & "FROM Client_People "
query = query & "WHERE c_code = '" & p_cli_code & "' "
rsc.Open query, adoConn, 1
if rsc("cp_code") = "" or isnull(rsc("cp_code")) then
tmp_cpcode = 1
else
tmp_cpcode = int(rsc("cp_code")) + 1
end if
rsc.Close
query = "INSERT INTO Client_People "
query = query & "(cp_code, c_code, cp_name, cp_depart, cp_tel, cp_mobile, cp_email, cp_position, cp_master, cp_mposition) "
query = query & "VALUES "
query = query & "('" & tmp_cpcode & "', "
query = query & "'" & p_cli_code & "', "
query = query & "'" & cp_name & "', "
query = query & "'" & cp_depart & "', "
query = query & "'" & cp_tel & "', "
query = query & "'" & cp_mobile & "', "
query = query & "'" & cp_email & "', "
query = query & "'" & cp_position & "', "
query = query & "'" & cp_master & "', "
query = query & "'" & cp_mposition & "')"
'Response.Write query
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="/lib/text.css">
<title>
Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>߰<EFBFBD>
</title>
<script language=javascript>
function goit(a) {
document.pms.action = 'cp_search.asp?v=1';
document.pms.submit();
}
</script>
</head>
<body onLoad="goit()">
<form name="pms" method="post">
<input type="hidden" name="p_cli_code" value="<%=p_cli_code%>">
<%
set rsc = nothing
%>

View File

@@ -0,0 +1,49 @@
<!-- #include virtual = "lib/config.asp" -->
<%
p_cli_company_cd = request("p_cli_company_cd") '<27≯<EFBFBD> <20>˻<EFBFBD><CBBB><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Client code
p_cli_depart = request("p_cli_depart") '<27><><EFBFBD><EFBFBD> <20>߰<EFBFBD><DFB0><EFBFBD> Client <20>μ<EFBFBD>
p_cli_per_nm = request("p_cli_per_nm") '<27><><EFBFBD><EFBFBD> <20>߰<EFBFBD><DFB0><EFBFBD> Client <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
p_cli_per_com_tel = request("p_cli_per_com_tel") '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ȸ<><C8B8> <20><>ȣ
p_cli_per_tel = request("p_cli_per_tel") '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>޴<EFBFBD><DEB4><EFBFBD> <20><>ȣ
p_cli_per_email = request("p_cli_per_email") '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20≯<EFBFBD><CCB8><EFBFBD>
query = "INSERT INTO T_CLIENT_PERSON "
query = query & "(p_cli_company_cd, p_cli_depart, p_cli_per_nm, p_cli_per_com_tel, p_cli_per_tel, p_cli_per_email) "
query = query & "VALUES "
query = query & "('" & p_cli_company_cd & "', "
query = query & "'" & p_cli_depart & "', "
query = query & "'" & p_cli_per_nm & "', "
query = query & "'" & p_cli_per_com_tel & "', "
query = query & "'" & p_cli_per_tel & "', "
query = query & "'" & p_cli_per_email & "')"
Response.Write p_cli_company_cd & "<BR>"
'Response.Write query
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="/lib/text.css">
<title>
Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>߰<EFBFBD>
</title>
<script language=javascript>
function goit() {
alert("<22>߰<EFBFBD><DFB0>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>");
document.pms.action = 'cp_search_2014.asp?v=1';
document.pms.submit();
}
</script>
</head>
<body onLoad="goit()">
<form name="pms" method="post">
<input type="hidden" name="p_cli_company_cd" value="<%=p_cli_company_cd%>">

142
project/cp_search.asp Normal file
View File

@@ -0,0 +1,142 @@
<!-- #include virtual = "lib/config.asp" -->
<%
v = request("v")
p_cli_code = request("p_cli_code")
if p_cli_code = "" then
alert4 "Client<6E><74> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ʾҰų<D2B0> DB<44><42><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>"
else
query = "SELECT * "
query = query & "FROM Client_People "
query = query & "WHERE c_code = '" & p_cli_code & "' "
query = query & "ORDER BY cp_name "
rsc.Open query, adoConn, 1
%>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<LINK rel="stylesheet" type="text/css" href="/lib/text.css">
<title>
Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ã<><C3A3>
</title>
<script language=javascript>
function sltit(z,y,x,w) {
//z:cp_code, y:cp_name, x:cp_depart, w:page(1=modi, 2.3.4=search)
if (w == 1) {
opener.document.pms.cp_code.value = z;
opener.document.pms.p_cli_name.value = y;
opener.document.pms.p_cli_depart.value = x;
}
self.close();
}
function search_cli() {
//if (document.pms.cli_name.value.trim() == '') {
// alert('Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD> <20>ۼ<EFBFBD><DBBC><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>');
// document.pms.cli_name.value = '';
// document.pms.cli_name.focus();
// return false;
//}
document.pms.cli_name.value = document.pms.cli_name.value.trim();
//document.pms.action = 'search_cli.asp';
document.pms.submit();
}
function modit(z, x) {
var tmp_ok = 0;
if (z >= 2)
{
for (i = 1; i <= z; i++) {
if (document.pms.mod_cli[i-1].checked == true) {
tmp_ok = 1;
}
}
}
else
{
if (document.pms.mod_cli.checked == true)
{
tmp_ok = 1;
}
}
if (tmp_ok != 1) {
alert('Client <20><><EFBFBD><EFBFBD><EFBFBD>ڸ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>');
document.pms.mod_cli[0].focus();
return false;
}
document.pms.action = 'cp_modi.asp?p_cli_code='+x;
document.pms.submit();
}
function newit(a) {
document.pms.action = 'cp_new.asp?p_cli_code='+a;
document.pms.submit();
}
</script>
</head>
<body>
<form name="pms" method="post">
<div style="position: absolute; left: 10px; top: 4px; z-index: 10;">
<table border="0" cellspacing="0" cellpadding="0" width="335" bgcolor="white">
<tr align="right">
<td>
<input type="button" value="<22>߰<EFBFBD>" onClick="newit('<%=p_cli_code%>')">
&nbsp;
<input type="button" value="<22><><EFBFBD><EFBFBD>" onClick="modit('<%=rsc.RecordCount%>','<%=p_cli_code%>')">
</td>
</tr>
</table>
</div>
<div style="position: absolute; left: 10px; top: 34px; z-index: 10;">
<table border="1" cellspacing="0" cellpadding="0" width="335" bgcolor="white">
<tr align="center" height="20">
<td width="20">&nbsp;</td>
<td><font color="blue"><b>Client <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></font></td>
<td width="80"><font color="blue"><b><3E>μ<EFBFBD><CEBC><EFBFBD></b></font></td>
</tr>
</table>
</div>
<br>
<div style="width: 335px; height: 250px; overflow-y: auto;">
<table border="1" cellspacing="0" cellpadding="0" width="335">
<tr align="center" height="20">
<td width="20">&nbsp;</td>
<td><font color="blue"><b>Client <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></font></td>
<td width="80"><font color="blue"><b><3E>μ<EFBFBD><CEBC><EFBFBD></b></font></td>
</tr>
<%
for i = 1 to rsc.RecordCount
%>
<tr align="center">
<td><input type="radio" name="mod_cli" value="<%=rsc("cp_code")%>"></td>
<td>&nbsp;<a href="javascript:sltit('<%=rsc("cp_code")%>','<%=rsc("cp_name")%>','<%=rsc("cp_depart")%>','<%=v%>')"><font color="blue"><%=rsc("cp_name")%></font></a></td>
<td align="center"><%=rsc("cp_depart")%></td>
</tr>
<%
rsc.MoveNext
next
%>
</table>
</div>
<br>
<font color="red">*</font> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <font color="red"><3E><><EFBFBD><EFBFBD></font><3E>Ϸ<EFBFBD><CFB7><EFBFBD> Client <20>ڵ<EFBFBD><DAB5><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ư<EFBFBD><C6B0> <20><><EFBFBD><EFBFBD><EFBFBD>ϰ<EFBFBD> <br>&nbsp;&nbsp;&nbsp;<3B><><EFBFBD><EFBFBD> <20><>ư<EFBFBD><C6B0> <20><><EFBFBD><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>.
<%
rsc.Close
end if 'if p_cli_code = "" then
set rsc = nothing
%>

143
project/cp_search_2014.asp Normal file
View File

@@ -0,0 +1,143 @@
<!-- #include virtual = "lib/config.asp" -->
<%
v = request("v")
p_cli_company_cd = request("p_cli_company_cd")
if p_cli_company_cd = "" then
alert4 "Client<6E><74> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ʾҰų<D2B0> DB<44><42><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>"
else
query = "SELECT * "
query = query & "FROM V_CLIENT_PERSON "
query = query & "WHERE p_cli_company_cd = '" & p_cli_company_cd & "' "
rsc.Open query, adoConn, 1
%>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<LINK rel="stylesheet" type="text/css" href="/lib/text.css">
<title>
Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ã<><C3A3>
</title>
<script language=javascript>
function sltit(code,depart,name,com_tel,tel,email,v) {
//code:cp_code, name:cp_name, x:cp_depart, w:page(1=modi, 2.3.4=search)
if (v = 1) {
opener.document.pms.p_cli_per_cd.value = code;
opener.document.pms.p_cli_depart.value = depart;
opener.document.pms.p_cli_per_nm.value = name;
opener.document.pms.p_cli_per_com_tel.value = com_tel;
opener.document.pms.p_cli_per_tel.value = tel;
opener.document.pms.p_cli_per_email.value = email;
if (email == "" && (tel == "" || com_tel == "")) {
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȹ<EFBFBD><C8B9><EFBFBD><EFBFBD> <20><>ȯ <20>ÿ<EFBFBD><C3BF><EFBFBD> Client <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> \nEmail<69><6C> <20>޴<EFBFBD><DEB4><EFBFBD><EFBFBD><EFBFBD>ȣ <20>Ǵ<EFBFBD> ȸ<><C8B8> <20><>ȭ<EFBFBD><C8AD>ȣ<EFBFBD><C8A3> <20>ʼ<EFBFBD><CABC>̹Ƿ<CCB9> \n<><6E><EFBFBD><EFBFBD><EFBFBD>Ͻñ<CFBD> <20>ٶ<EFBFBD><D9B6>ϴ<EFBFBD>.");
}
}
self.close();
}
function search_cli() {
//if (document.pms.cli_name.value.trim() == '') {
// alert('Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD> <20>ۼ<EFBFBD><DBBC><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>');
// document.pms.cli_name.value = '';
// document.pms.cli_name.focus();
// return false;
//}
document.pms.cli_name.value = document.pms.cli_name.value.trim();
//document.pms.action = 'search_cli.asp';
document.pms.submit();
}
function modit(count) {
var p_cli_per_cd = "";
if (count >= 2)
{
for (i = 1; i <= count; i++) {
if (document.pms.mod_cli[i - 1].checked == true) {
p_cli_per_cd = document.pms.mod_cli[i - 1].value;
}
}
}
else
{
if (document.pms.mod_cli.checked == true)
{
p_cli_per_cd = document.pms.mod_cli.value;
}
}
if (p_cli_per_cd == "") {
alert('Client <20><><EFBFBD><EFBFBD><EFBFBD>ڸ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>');
document.pms.mod_cli[0].focus();
return false;
}
document.pms.action = 'cp_modi_2014.asp?p_cli_per_cd=' + p_cli_per_cd;
document.pms.submit();
}
function newit() {
document.pms.action = 'cp_modi_2014.asp';
document.pms.submit();
}
</script>
</head>
<body>
<form name="pms" method="post">
<input type="hidden" name="p_cli_company_cd" value="<%=p_cli_company_cd%>">
<div style="position: absolute; left: 10px; top: 4px; z-index: 10;">
<table border="0" cellspacing="0" cellpadding="0" width="335" bgcolor="white">
<tr align="right">
<td>
<input type="button" value="<22>߰<EFBFBD>" onClick="newit()">
&nbsp;
<input type="button" value="<22><><EFBFBD><EFBFBD>" onClick="modit('<%=rsc.RecordCount%>')">
</td>
</tr>
</table>
</div>
<br>
<div style="width: 335px; height: 250px; overflow-y: auto;">
<table border="1" cellspacing="0" cellpadding="0" width="335">
<tr align="center" height="20">
<td width="20">&nbsp;</td>
<td><font color="blue"><b>Client <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></font></td>
<td width="80"><font color="blue"><b><3E>μ<EFBFBD><CEBC><EFBFBD></b></font></td>
</tr>
<%
for i = 1 to rsc.RecordCount
%>
<tr align="center">
<td><input type="radio" name="mod_cli" value="<%=rsc("p_cli_per_cd")%>">
<input type="hidden" name="mod_cli_email" value="<%=rsc("p_cli_per_email") %>" />
</td>
<td>&nbsp;
<a href="javascript:sltit('<%=rsc("p_cli_per_cd")%>','<%=rsc("p_cli_depart")%>','<%=rsc("p_cli_per_nm")%>','<%=rsc("p_cli_per_com_tel")%>','<%=rsc("p_cli_per_tel")%>','<%=rsc("p_cli_per_email")%>','<%=v%>')">
<font color="blue"><%=rsc("p_cli_per_nm")%></font></a></td>
<td align="center"><%=rsc("p_cli_depart")%></td>
</tr>
<%
rsc.MoveNext
next
%>
</table>
</div>
<br>
<font color="red">*</font> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <font color="red"><3E><><EFBFBD><EFBFBD></font><3E>Ϸ<EFBFBD><CFB7><EFBFBD> Client <20>ڵ<EFBFBD><DAB5><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ư<EFBFBD><C6B0> <20><><EFBFBD><EFBFBD><EFBFBD>ϰ<EFBFBD> <br>&nbsp;&nbsp;&nbsp;<3B><><EFBFBD><EFBFBD> <20><>ư<EFBFBD><C6B0> <20><><EFBFBD><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>.
<%
rsc.Close
end if 'if p_cli_company_cd = "" then
set rsc = nothing
%>

431
project/fcs_input_data.asp Normal file
View File

@@ -0,0 +1,431 @@
<%
'-- fcs<63><73> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>̰<EFBFBD>
sql=""
sql=sql&" SET NOCOUNT ON; "&vbCrLf
sql=sql&" DECLARE @pn_cd varchar(30) "&vbCrLf
sql=sql&" DECLARE @pu_type varchar(5) "&vbCrLf
sql=sql&" DECLARE @fcs_type varchar(5) "&vbCrLf
sql=sql&" DECLARE @fcs_area varchar(50) "&vbCrLf
sql=sql&" DECLARE @ss int "&vbCrLf
sql=sql&" DECLARE @ee int "&vbCrLf
sql=sql&" DECLARE @ckday varchar(10) "&vbCrLf
sql=sql&" set @pn_cd='"&pn_cd&"' "&vbCrLf
sql=sql&" set @pu_type='"&pu_prjcode_type&"' "&vbCrLf
sql=sql&" set @fcs_type='"&pu_fcs_type&"' "&vbCrLf
sql=sql&" set @fcs_area='"&pu_prjcode_area&"' "&vbCrLf
sql=sql&" set @ss='"&fcs_type__ss&"' "&vbCrLf
sql=sql&" set @ee='"&fcs_type__ee&"' "&vbCrLf
sql=sql&" set @ckday='"&ckday&"' "&vbCrLf
'-- (1) <20><><EFBFBD>ϵ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>ٸ<EFBFBD> <20><><EFBFBD><EFBFBD>
sql=sql&" if not EXISTS(select id from [project2].[dbo].[T_QC_CONFIG] where p_sn=@pn_cd and s_area=@fcs_area and use_yn='Y') "&vbCrLf
sql=sql&" Begin "&vbCrLf
'-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> (Default <20><> insert )
sql=sql&" insert into [project2].[dbo].[T_QC_CONFIG] "&vbCrLf
sql=sql&" (p_sn,s_area,qc_rate,error_rate,qc_date,no_call_time,no_call_limit,use_yn,sIdStart,sIdEnd,input_dt,input_user) "&vbCrLf
sql=sql&" values "&vbCrLf
sql=sql&" (@pn_cd,@fcs_area,'30','50','5','2','6','Y','0','0','"&date()&"','"&Session("User_Number")&"') "&vbCrLf
sql=sql&" end "&vbCrLf
'-- (2) <20><><EFBFBD>ϵ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ִ<EFBFBD><D6B4><EFBFBD> üũ
sql=sql&" if not EXISTS(select id from [dbo].[T_AREA_SID] where p_sn=@pn_cd and s_area=@fcs_area and s_type=@fcs_type and del_yn='N' ) "&vbCrLf
'-- <20><><EFBFBD>ϵ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>ٸ<EFBFBD> insert
sql=sql&" Begin "&vbCrLf
sql=sql&" insert into [project2].[dbo].[T_AREA_SID] "&vbCrLf
sql=sql&" (p_sn,s_area,s_type,sIdStart,sIdEnd,del_yn,input_date) "&vbCrLf
sql=sql&" values "&vbCrLf
sql=sql&" (@pn_cd,@fcs_area,@fcs_type,@ss,@ee,'N','"&date()&"') "&vbCrLf
sql=sql&" end "&vbCrLf
sql=sql&" else "&vbCrLf
'-- <20><><EFBFBD>ϵ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ִٸ<D6B4> update
sql=sql&" Begin "&vbCrLf
sql=sql&" update [project2].[dbo].[T_AREA_SID] set "&vbCrLf
sql=sql&" sIdStart=@ss "&vbCrLf
sql=sql&" ,sIdEnd=@ee "&vbCrLf
sql=sql&" where p_sn=@pn_cd "&vbCrLf
sql=sql&" and s_area=@fcs_area "&vbCrLf
sql=sql&" and s_type=@fcs_type "&vbCrLf
sql=sql&" and del_yn='N' "&vbCrLf
sql=sql&" end "&vbCrLf
'-- (3) <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
'#################################################
'-- <20><><EFBFBD><EFBFBD> <20><><EFBFBD>ϵ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ִٸ<D6B4> <20><><EFBFBD><EFBFBD>(del_) ó<><C3B3><EFBFBD><EFBFBD> -----
sql=sql&" update [project2].[dbo].[T_RES_SQ] set "&vbCrLf
sql=sql&" p_sn='del_'+p_sn "&vbCrLf
sql=sql&" ,p_child_sn='del_'+p_child_sn "&vbCrLf
sql=sql&" where p_child_sn=@pn_cd "&vbCrLf&vbCrLf
'#################################################
'-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
sql=sql&" DECLARE @<40><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> varchar(30) "&vbCrLf
sql=sql&" DECLARE @SQL varchar(max) "&vbCrLf
sql=sql&" DECLARE @SQL1 varchar(max) "&vbCrLf
sql=sql&" DECLARE @SQL2 varchar(max) "&vbCrLf
sql=sql&" DECLARE @SQL1_1 varchar(max) "&vbCrLf
sql=sql&" DECLARE @SQL2_1 varchar(max) "&vbCrLf
sql=sql&" DECLARE @tcnt int "&vbCrLf
sql=sql&" set @tcnt=0 "&vbCrLf
sql=sql&" set @SQL='' "&vbCrLf
sql=sql&" set @SQL1='' "&vbCrLf
sql=sql&" set @SQL2='' "&vbCrLf
sql=sql&" set @SQL1_1='' "&vbCrLf
sql=sql&" set @SQL2_1='' "&vbCrLf
sql=sql&" DECLARE cur_step1 CURSOR FOR "&vbCrLf
sql=sql&" select pu_que from [dbo].[T_RES_SQ_QUE_LAB] "&vbCrLf
sql=sql&" where ting='1' "&vbCrLf
sql=sql&" and pu_child_sn=@pn_cd "&vbCrLf
sql=sql&" and pu_type=@pu_type "&vbCrLf
'-- fcs<63><73><EFBFBD><EFBFBD> sql=sql&" and fcs_area=@fcs_area "&vbCrLf
sql=sql&" and pu_que_type='0' "&vbCrLf
sql=sql&" order by id asc "&vbCrLf
sql=sql&" OPEN cur_step1 "&vbCrLf
sql=sql&" FETCH NEXT FROM cur_step1 INTO @<40><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> "&vbCrLf
sql=sql&" WHILE @@FETCH_STATUS = 0 "&vbCrLf
sql=sql&" BEGIN "&vbCrLf
sql=sql&" set @tcnt=@tcnt+1 "&vbCrLf
sql=sql&" set @SQL1=@SQL1+'sq'+convert(varchar(5),@tcnt)+',' "&vbCrLf
sql=sql&" set @SQL2=@SQL2+''''+@<40><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>+''',' "&vbCrLf '-- SQ<53><51><EFBFBD><EFBFBD><EFBFBD><EFBFBD> sql=sql&" set @SQL2=@SQL2+'''SQ_'+@<40><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>+''',' "&vbCrLf
sql=sql&" set @SQL1_1=@SQL1_1+'as'+convert(varchar(5),@tcnt)+',' "&vbCrLf
sql=sql&" set @SQL2_1=@SQL2_1+' ['+@<40><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>+'] as [as'+convert(varchar(5),@tcnt)+'], ' "&vbCrLf
sql=sql&" FETCH NEXT FROM cur_step1 INTO @<40><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> "&vbCrLf
sql=sql&" END "&vbCrLf
sql=sql&" CLOSE cur_step1 "&vbCrLf
sql=sql&" DEALLOCATE cur_step1 "&vbCrLf
sql=sql&" set @SQL=' insert into [project2].[dbo].[T_RES_SQ] (p_sn,p_child_sn,'+@SQL1+' s_area,s_type,duplication_date) values (substring('''+@pn_cd+''',1,7),'''+@pn_cd+''','+@SQL2+' '''+@fcs_area+''','''+@fcs_type+''',''"&date()&"'') ' "&vbCrLf
sql=sql&" exec(@SQL) "&vbCrLf
'-- (4) FCS <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
sql=sql&" DECLARE @r_name varchar(50) "&vbCrLf
sql=sql&" DECLARE @r_tel varchar(50) "&vbCrLf
sql=sql&" DECLARE @r_phone varchar(50) "&vbCrLf
sql=sql&" set @r_name='' "&vbCrLf
sql=sql&" set @r_tel='' "&vbCrLf
sql=sql&" set @r_phone='' "&vbCrLf
'-----------------------------------------------------------------------------------
' <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20≯<EFBFBD>
sql=sql&" select top 1 @r_name=pu_que from [dbo].[T_RES_SQ_QUE_LAB] with(nolock) "&vbCrLf
sql=sql&" where ting='1' "&vbCrLf
sql=sql&" and pu_child_sn='"&pn_cd&"' "&vbCrLf
sql=sql&" and pu_type='"&pu_prjcode_type&"' "&vbCrLf
'-- fcs <20><><EFBFBD><EFBFBD> sql=sql&" and fcs_area='"&pu_prjcode_area&"' "&vbCrLf
sql=sql&" and pu_que_type in ('2','3') "&vbCrLf
sql=sql&" and len(tuser_name)>0 "&vbCrLf
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ȭ<EFBFBD><C8AD>ȣ
sql=sql&" select top 1 @r_tel=replace(replace(pu_que,'-',''),' ','') from [dbo].[T_RES_SQ_QUE_LAB] with(nolock) "&vbCrLf
sql=sql&" where ting='1' "&vbCrLf
sql=sql&" and pu_child_sn='"&pn_cd&"' "&vbCrLf
sql=sql&" and pu_type='"&pu_prjcode_type&"' "&vbCrLf
'-- fcs <20><><EFBFBD><EFBFBD> sql=sql&" and fcs_area='"&pu_prjcode_area&"' "&vbCrLf
sql=sql&" and pu_que_type in ('2','3') "&vbCrLf
sql=sql&" and len(tphone_2)>0 "&vbCrLf
' <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>޴<EFBFBD><DEB4><EFBFBD><EFBFBD><EFBFBD>ȣ
sql=sql&" select top 1 @r_phone=replace(replace(pu_que,'-',''),' ','') from [dbo].[T_RES_SQ_QUE_LAB] with(nolock) "&vbCrLf
sql=sql&" where ting='1' "&vbCrLf
sql=sql&" and pu_child_sn='"&pn_cd&"' "&vbCrLf
sql=sql&" and pu_type='"&pu_prjcode_type&"' "&vbCrLf
'-- fcs <20><><EFBFBD><EFBFBD> sql=sql&" and fcs_area='"&pu_prjcode_area&"' "&vbCrLf
sql=sql&" and pu_que_type in ('2','3') "&vbCrLf
sql=sql&" and len(tphone_1)>0 "&vbCrLf
'-----------------------------------------------------------------------------------
'-- (4) FCS <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> insert
sql=sql&" set @SQL=' insert into [project2].[dbo].[res] ' "&vbCrLf
sql=sql&" set @SQL=@SQL+' (chasu, r_name, r_tel, r_phone, r_date, p_sn, m_name, m_no, r_sv, DelGubun, v_warning_cnt, s_id, '+@SQL1_1+' input_dt, s_type, s_area ) ' "&vbCrLf
sql=sql&" set @SQL=@SQL+' ' "&vbCrLf
sql=sql&" set @SQL=@SQL+' select '"&vbCrLf
sql=sql&" set @SQL=@SQL+' ''1'' as chasu, '"&vbCrLf
'-----------------------------------------------------------------
sql=sql&" if @r_name<>'' "&vbCrLf
sql=sql&" begin "&vbCrLf
sql=sql&" set @SQL=@SQL+' A.'+@r_name+' as r_name, ' "&vbCrLf
sql=sql&" end "&vbCrLf
sql=sql&" else "&vbCrLf
sql=sql&" begin "&vbCrLf
sql=sql&" set @SQL=@SQL+' '''' as r_name, ' "&vbCrLf
sql=sql&" end "&vbCrLf
'-----------------------------------------------------------------
sql=sql&" if @r_tel<>'' "&vbCrLf
sql=sql&" begin "&vbCrLf
sql=sql&" set @SQL=@SQL+' A.'+@r_tel+' as r_tel, '"&vbCrLf
sql=sql&" end "&vbCrLf
sql=sql&" else "&vbCrLf
sql=sql&" begin "&vbCrLf
sql=sql&" set @SQL=@SQL+' '''' as r_tel, '"&vbCrLf
sql=sql&" end "&vbCrLf
'-----------------------------------------------------------------
sql=sql&" if @r_phone<>'' "&vbCrLf
sql=sql&" begin "&vbCrLf
sql=sql&" set @SQL=@SQL+' A.'+@r_phone+' as r_phone, ' "&vbCrLf
sql=sql&" end "&vbCrLf
sql=sql&" else "&vbCrLf
sql=sql&" begin "&vbCrLf
sql=sql&" set @SQL=@SQL+' '''' as r_phone, ' "&vbCrLf
sql=sql&" end "&vbCrLf
'-----------------------------------------------------------------
' sql=sql&" set @SQL=@SQL+' ''"&ckday&"'' as r_date, ' "&vbCrLf
sql=sql&" set @SQL=@SQL+' convert(varchar(10),getdate(),120) as r_date, ' "&vbCrLf '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
sql=sql&" set @SQL=@SQL+' '''+@pn_cd+''' as p_sn, ' "&vbCrLf
sql=sql&" set @SQL=@SQL+' B.m_name as m_name, ' "&vbCrLf
sql=sql&" set @SQL=@SQL+' B.new_id as m_no, ' "&vbCrLf
sql=sql&" set @SQL=@SQL+' ''"&Session("User_Number")&"'' as r_sv, ' "&vbCrLf
sql=sql&" set @SQL=@SQL+' ''N'' as DelGubun, ' "&vbCrLf '-- <20><><EFBFBD><EFBFBD>(N)
sql=sql&" set @SQL=@SQL+' ''0'' as v_warning_cnt, ' "&vbCrLf
sql=sql&" set @SQL=@SQL+' A.ffid as s_id, '+@SQL2_1+' getdate() as input_dt, ''"&pu_fcs_type&"'' as s_type, ''"&pu_prjcode_area&"'' as s_area from ' "&vbCrLf
sql=sql&" set @SQL=@SQL+' ( ' "&vbCrLf
sql=sql&" set @SQL=@SQL+' select ' "&vbCrLf
sql=sql&" set @SQL=@SQL+' (isnull(r_error,''0'')+isnull(m_error,''0'')+isnull(s_error,''0'')+isnull(q_error,''0'')) as t, ' "&vbCrLf
sql=sql&" set @SQL=@SQL+' case when left(ffusercode,2)=''1-'' then ffusercode else ''1-''+ffusercode end as ff, ' "&vbCrLf
sql=sql&" set @SQL=@SQL+' * ' "&vbCrLf
sql=sql&" set @SQL=@SQL+' from "&co_table&" ' "&vbCrLf
sql=sql&" set @SQL=@SQL+' ) A ' "&vbCrLf
sql=sql&" set @SQL=@SQL+' left join ' "&vbCrLf
sql=sql&" set @SQL=@SQL+' ( ' "&vbCrLf
sql=sql&" set @SQL=@SQL+' select new_id, m_name, left(m_jumin,6) as m_jumin from [project2].[dbo].[man] with(nolock) ' "&vbCrLf
sql=sql&" set @SQL=@SQL+' where m_activity=''Ȱ<><C8B0>'' ' "&vbCrLf
sql=sql&" set @SQL=@SQL+' and left(new_id,2)=''1-'' ' "&vbCrLf
sql=sql&" set @SQL=@SQL+' ) B ' "&vbCrLf
sql=sql&" set @SQL=@SQL+' on A.ff=B.new_id ' "&vbCrLf
sql=sql&" set @SQL=@SQL+' left join ' "&vbCrLf
sql=sql&" set @SQL=@SQL+' ( ' "&vbCrLf
sql=sql&" set @SQL=@SQL+' select s_id, s_type, s_area from project2.dbo.res ' "&vbCrLf
sql=sql&" set @SQL=@SQL+' where p_sn = '''+@pn_cd+''' ' "&vbCrLf
sql=sql&" set @SQL=@SQL+' and DelGubun=''N'' ' "&vbCrLf
sql=sql&" set @SQL=@SQL+' ) C ' "&vbCrLf
sql=sql&" set @SQL=@SQL+' on A.ffid = C.s_id ' "&vbCrLf
sql=sql&" set @SQL=@SQL+' where A.t=0 ' "&vbCrLf
sql=sql&" set @SQL=@SQL+' and C.s_id is null ' "&vbCrLf
sql=sql&" set @SQL=@SQL+' order by A.ffid asc ' "&vbCrLf
sql=sql&" exec(@SQL) "&vbCrLf
response.Write sql
'-- <20><><EFBFBD><EFBFBD>Ű(num) ó<><C3B3>
sql=sql&" set @SQL=' update [project2].[dbo].[RES] set ' "&vbCrLf
sql=sql&" set @SQL=@SQL+' r_sn=num ' "&vbCrLf
sql=sql&" set @SQL=@SQL+' where p_sn='''+@pn_cd+''' ' "&vbCrLf
sql=sql&" set @SQL=@SQL+' and s_area='''+@fcs_area+''' ' "&vbCrLf
sql=sql&" set @SQL=@SQL+' and DelGubun=''N'' ' "&vbCrLf '-- <20><><EFBFBD><EFBFBD>(N)
sql=sql&" set @SQL=@SQL+' and cast(chasu as int)=1 ' "&vbCrLf
sql=sql&" exec(@SQL) "&vbCrLf
'-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (rp_sn) ó<><C3B3>
sql=sql&" DECLARE @rp_sn bigint "&vbCrLf
sql=sql&" select @rp_sn=isnull(max(rp_sn),0) from [project2].[dbo].[RES] "&vbCrLf
sql=sql&" where p_sn='"&pn_cd&"' "&vbCrLf
sql=sql&" and cast(chasu as int)=1 "&vbCrLf
sql=sql&" update [project2].[dbo].[RES] set "&vbCrLf
sql=sql&" rp_sn=B.tno "&vbCrLf
sql=sql&" from [project2].[dbo].[RES] as A "&vbCrLf
sql=sql&" inner join "&vbCrLf
sql=sql&" ( "&vbCrLf
sql=sql&" select ROW_NUMBER() OVER(ORDER BY num ASC)+@rp_sn AS tno, "&vbCrLf
sql=sql&" p_sn,s_area,s_id from [project2].[dbo].[RES] with(nolock) "&vbCrLf
sql=sql&" where p_sn='"&pn_cd&"' "&vbCrLf
sql=sql&" and s_area='"&pu_prjcode_area&"' "&vbCrLf
sql=sql&" and DelGubun='N' "&vbCrLf '-- <20><><EFBFBD><EFBFBD>(N)
sql=sql&" and cast(chasu as int)=1 "&vbCrLf
sql=sql&" and rp_sn is null "&vbCrLf
sql=sql&" ) B "&vbCrLf
sql=sql&" on A.p_sn=B.p_sn "&vbCrLf
sql=sql&" and A.s_area=B.s_area "&vbCrLf
sql=sql&" and A.s_id=B.s_id "&vbCrLf
sql=sql&" where A.p_sn='"&pn_cd&"' "&vbCrLf
sql=sql&" and A.s_area='"&pu_prjcode_area&"' "&vbCrLf
sql=sql&" and A.DelGubun='N' "&vbCrLf '-- <20><><EFBFBD><EFBFBD>(N)
sql=sql&" and cast(A.chasu as int)=1 "&vbCrLf
sql=sql&" and A.rp_sn is null "&vbCrLf
'-- '-- <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20>ִ°<D6B4><C2B0><EFBFBD> : <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> DelGubun='Y' ó<><C3B3>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> s_id <20><> <20>ߺ<EFBFBD>üũ<C3BC>Ͽ<EFBFBD> ó<><C3B3>) <20><> [dbo].[T_INSPECTION_RES] <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>Ʈ(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>) <20><><EFBFBD>̵<EFBFBD><CCB5><EFBFBD> q_error <20><> ó<><C3B3><EFBFBD>Ǿ<EFBFBD> <20>Ѿ<EFBFBD><D1BE><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
'-- sql=sql&" set @SQL=' update [project2].[dbo].[RES] set ' "&vbCrLf
'-- sql=sql&" set @SQL=@SQL+' DelGubun=''Y'' ' "&vbCrLf '-- <20>̻<EFBFBD><CCBB><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ͷ<EFBFBD> ó<><C3B3><EFBFBD><EFBFBD>
'-- sql=sql&" set @SQL=@SQL+' where p_sn='''+@pn_cd+''' ' "&vbCrLf
'-- '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> sql=sql&" set @SQL=@SQL+' and s_area='''+@fcs_area+''' ' "&vbCrLf
'-- sql=sql&" set @SQL=@SQL+' and DelGubun=''N'' ' "&vbCrLf '-- <20><><EFBFBD><EFBFBD>(N)
'-- sql=sql&" set @SQL=@SQL+' and cast(chasu as int)=1 ' "&vbCrLf
'-- sql=sql&" set @SQL=@SQL+' and s_id in ( ' "&vbCrLf
'-- sql=sql&" set @SQL=@SQL+' select s_id from [project2].[dbo].[RES] ' "&vbCrLf
'-- sql=sql&" set @SQL=@SQL+' where p_sn='''+@pn_cd+''' ' "&vbCrLf
'-- sql=sql&" set @SQL=@SQL+' and DelGubun=''N'' ' "&vbCrLf '-- <20><><EFBFBD><EFBFBD>(N)
'-- sql=sql&" set @SQL=@SQL+' and s_area='''+@fcs_area+''' ' "&vbCrLf
'-- sql=sql&" set @SQL=@SQL+' and cast(chasu as int)=1 ' "&vbCrLf
'-- sql=sql&" set @SQL=@SQL+' ) ' "&vbCrLf
'-- sql=sql&" exec(@SQL) "&vbCrLf
'-- <20><><EFBFBD>ε<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ִ°<D6B4><C2B0><EFBFBD> ó<><C3B3><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>[dbo].[T_QC_CONFIG] <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>̹Ƿ<CCB9> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><>)
'sql=sql&" set @SQL=' update [project2].[dbo].[RES] set ' "&vbCrLf
'sql=sql&" set @SQL=@SQL+' chasu=A2.new_chasu ' "&vbCrLf
'sql=sql&" set @SQL=@SQL+' from [project2].[dbo].[RES] as A1 ' "&vbCrLf
'sql=sql&" set @SQL=@SQL+' inner join ' "&vbCrLf
''--------------------------------------------------------------------------------------------
'sql=sql&" set @SQL=@SQL+' ( ' "&vbCrLf
' sql=sql&" set @SQL=@SQL+' select C.p_sn, C.m_no, C.s_area, C.new_chasu from ( ' "&vbCrLf
' sql=sql&" set @SQL=@SQL+' select ' "&vbCrLf
' sql=sql&" set @SQL=@SQL+' case when B.qc_stat is null then ''1'' else cast(A.chasu as int)+1 end as new_chasu, ' "&vbCrLf
' sql=sql&" set @SQL=@SQL+' A.chasu,A.r_sn, A.p_sn, A.m_no, A.s_type, A.s_area, ' "&vbCrLf
' sql=sql&" set @SQL=@SQL+' B.pass_stat,B.qc_stat from ' "&vbCrLf
' sql=sql&" set @SQL=@SQL+' ( ' "&vbCrLf
' sql=sql&" set @SQL=@SQL+' select * from [project2].[dbo].[RES] with(nolock) ' "&vbCrLf
' sql=sql&" set @SQL=@SQL+' where p_sn='''+@pn_cd+''' ' "&vbCrLf
' sql=sql&" set @SQL=@SQL+' and s_area='''+@fcs_area+''' ' "&vbCrLf
' sql=sql&" set @SQL=@SQL+' and cast(chasu as int)<999 ' "&vbCrLf
' sql=sql&" set @SQL=@SQL+' ) A ' "&vbCrLf
' sql=sql&" set @SQL=@SQL+' left join ' "&vbCrLf
' sql=sql&" set @SQL=@SQL+' ( ' "&vbCrLf
' sql=sql&" set @SQL=@SQL+' select r_sn, m_no, s_id , pass_stat, qc_stat from [project2].[dbo].[T_INSPECTION_RES] with(nolock) ' "&vbCrLf
' sql=sql&" set @SQL=@SQL+' where num in ( ' "&vbCrLf
' sql=sql&" set @SQL=@SQL+' select max(num) from [project2].[dbo].[T_INSPECTION_RES] with(nolock) ' "&vbCrLf
' sql=sql&" set @SQL=@SQL+' where p_sn='''+@pn_cd+''' ' "&vbCrLf
' sql=sql&" set @SQL=@SQL+' and s_area='''+@fcs_area+''' ' "&vbCrLf
' sql=sql&" set @SQL=@SQL+' group by p_sn, s_area, m_no ' "&vbCrLf
' sql=sql&" set @SQL=@SQL+' ) ' "&vbCrLf
' sql=sql&" set @SQL=@SQL+' ) B ' "&vbCrLf
' sql=sql&" set @SQL=@SQL+' on A.r_sn=B.r_sn ' "&vbCrLf
' sql=sql&" set @SQL=@SQL+' where B.qc_stat is not null ' "&vbCrLf
' sql=sql&" set @SQL=@SQL+' ) C ' "&vbCrLf
' sql=sql&" set @SQL=@SQL+' group by C.p_sn, C.m_no, C.s_area, C.new_chasu ' "&vbCrLf
'sql=sql&" set @SQL=@SQL+' ) A2 ' "&vbCrLf
''--------------------------------------------------------------------------------------------
'sql=sql&" set @SQL=@SQL+' on A1.p_sn=A2.p_sn ' "&vbCrLf
'sql=sql&" set @SQL=@SQL+' and A1.s_area=A2.s_area ' "&vbCrLf
'sql=sql&" set @SQL=@SQL+' and A1.m_no=A2.m_no ' "&vbCrLf
'sql=sql&" set @SQL=@SQL+' where A1.p_sn='''+@pn_cd+''' ' "&vbCrLf
'sql=sql&" set @SQL=@SQL+' and A1.DelGubun=''N'' ' "&vbCrLf '-- <20><><EFBFBD><EFBFBD>(N)
'sql=sql&" set @SQL=@SQL+' and A1.s_area='''+@fcs_area+''' ' "&vbCrLf
'sql=sql&" set @SQL=@SQL+' and cast(A1.chasu as int)=999 ' "&vbCrLf
'sql=sql&" exec(@SQL) "&vbCrLf
'-- <20>߰<EFBFBD><DFB0><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>°<EFBFBD><C2B0><EFBFBD> 1<><31><EFBFBD><EFBFBD> ó<><C3B3><EFBFBD><EFBFBD>
sql=sql&" update [project2].[dbo].[RES] set "&vbCrLf
sql=sql&" chasu='1' "&vbCrLf
sql=sql&" where p_sn=@pn_cd "&vbCrLf
sql=sql&" and s_area=@fcs_area "&vbCrLf
sql=sql&" and DelGubun='N' "&vbCrLf
sql=sql&" and cast(chasu as int)=1 "&vbCrLf
'-- <20>׽<EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD> sql <09><>------------------------------
'-- <20>ӽ<EFBFBD><D3BD><EFBFBD><EFBFBD>̺<EFBFBD> <20><><EFBFBD><EFBFBD>
'-- sql=sql&" drop table "&co_table&" "
'--
'-- sql=sql&" SET NOCOUNT OFF; "&vbCrLf
'-- rsp.Open sql, adoConn, 1
'-- <20>׽<EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD> sql <09><>------------------------------
'########## <20><>ĪDB ó<><C3B3> <20><><EFBFBD><EFBFBD> #####################################
'-- (5) <20><>Ī<EFBFBD><C4AA><EFBFBD><EFBFBD> - <20>ҷ<EFBFBD><D2B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(12) ó<><C3B3>
sql=sql&" set @SQL='' "&vbCrLf
sql=sql&" set @SQL=@SQL+' update [punching].[dbo].[tb_response] set ' "&vbCrLf
sql=sql&" set @SQL=@SQL+' ting=''12'' ' "&vbCrLf '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(12) ó<><C3B3>
sql=sql&" set @SQL=@SQL+' from [punching].[dbo].[tb_response] as A1 ' "&vbCrLf
sql=sql&" set @SQL=@SQL+' inner join ' "&vbCrLf
sql=sql&" set @SQL=@SQL+' ( select ffid from "&co_table&" where (isnull(r_error,''0'')+isnull(m_error,''0'')+isnull(s_error,''0'')+isnull(q_error,''0''))>0) A2 ' "&vbCrLf
sql=sql&" set @SQL=@SQL+' on A1.ttelnum=A2.ffid ' "&vbCrLf
sql=sql&" set @SQL=@SQL+' where A1.ting=''19'' ' "&vbCrLf '-- <20><><EFBFBD><EFBFBD><EFBFBD>̰<EFBFBD>(19)
sql=sql&" set @SQL=@SQL+' and A1.tprocode=''"&pn_cd&"'' ' "&vbCrLf
sql=sql&" set @SQL=@SQL+' and char(A1.ttype+65)=''"&pu_prjcode_type&"'' ' "&vbCrLf
sql=sql&" exec(@SQL) "&vbCrLf
'-- <20><>Ī <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
sql=sql&" insert into [project2].[dbo].[punching_data_log] "&vbCrLf
sql=sql&" (tid, pc_prjcode, pc_prjcode_sub1, pc_prjcode_sub2, ffusercode, ffid, ffque, ffans, ffinsert, fcs_user, fcs_insert, ff_ing) "&vbCrLf
sql=sql&" select "&vbCrLf
sql=sql&" tid, pc_prjcode, pc_prjcode_sub1, pc_prjcode_sub2, ffusercode, ffid, ffque, ffans, ffinsert, "&vbCrLf
sql=sql&" '"&Session("User_Number")&"' as fcs_user, getdate() as fcs_insert, ff_ing "&vbCrLf
sql=sql&" from [project2].[dbo].[punching_data] "&vbCrLf
sql=sql&" where pc_prjcode=@pn_cd "&vbCrLf
sql=sql&" and pc_prjcode_sub1=@pu_type "&vbCrLf
'-- <20><>Ī <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>ó<EFBFBD><C3B3>
sql=sql&" delete from [project2].[dbo].[punching_data] "
sql=sql&" where pc_prjcode=@pn_cd "
sql=sql&" and pc_prjcode_sub1=@pu_type "
'-- <20>ӽ<EFBFBD><D3BD><EFBFBD><EFBFBD>̺<EFBFBD> <20><><EFBFBD><EFBFBD>
sql=sql&" drop table "&co_table&" "
sql=sql&" SET NOCOUNT OFF; "&vbCrLf
xprint = "1"
if xprint="1" then response.write sql&"<br><br>"
'-- SQL <20><><EFBFBD><EFBFBD>
'--response.End
rsp.Open sql, adoConn, 1
%>

137
project/krc_search.asp Normal file
View File

@@ -0,0 +1,137 @@
<!-- #include virtual = "lib/config.asp" -->
<%
Dim nm_obj, cd_obj 'opener<65><72><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><>ü
nm_obj = request("nm_obj")
cd_obj = request("cd_obj")
if nm_obj = "" or cd_obj = "" then
alert4 "<22>߸<EFBFBD><DFB8><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>."
else
query = ""
query = query & " SELECT p_team_name as team_name, p_no, p_name "
query = query & " FROM V_person P LEFT OUTER JOIN N_Rank R ON P.p_rank_now = R.R_Code AND flag = 1"
query = query & " WHERE p_resign='0' AND krc_in_date IS NOT NULL"
query = query & " ORDER BY p_depart_now, p_team_now, CASE WHEN R.ID = 12 THEN 19 ELSE R.ID END, krc_in_date"
rsc.Open query, adoConn, 1
%>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<LINK rel="stylesheet" type="text/css" href="/lib/text.css">
<style>
td, input[type='text']{
-webkit-touch-callout: none; /* iOS Safari */
-webkit-user-select: none; /* Safari */
-khtml-user-select: none; /* Konqueror HTML */
-moz-user-select: none; /* Firefox */
-ms-user-select: none; /* Internet Explorer/Edge */
user-select: none; /* Non-prefixed version, currently
supported by Chrome and Opera */
}
</style>
<title>
KRI <20>ο<EFBFBD> <20><><EFBFBD><EFBFBD>
</title>
<script type="text/javascript" language="javascript">
function sel_person(p_no, p_name) {
var f = document.per_sel;
if (f.per_nm_list.value == "") {
f.per_nm_list.value = p_name;
f.per_cd_list.value = p_no;
} else {
f.per_nm_list.value = f.per_nm_list.value + "," + p_name;
f.per_cd_list.value = f.per_cd_list.value + "," + p_no;
}
document.getElementById(p_no).innerHTML = "&nbsp;";
}
function complete_sel() {
if (document.per_sel.per_cd_list.value != "") {
opener.document.<%=nm_obj %>.value = document.per_sel.per_nm_list.value;
opener.document.<%=cd_obj %>.value = document.per_sel.per_cd_list.value;
self.close();
} else {
alert("<22>ο<EFBFBD><CEBF><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>");
}
}
function delete_sel() {
location.href = "./krc_search.asp?nm_obj=<%= nm_obj%>&cd_obj=<%= cd_obj%>";
}
function clear_form() {
var f = document.per_sel;
f.per_nm_list.value = "";
f.per_cd_list.value = "";
}
</script>
</head>
<body onload="clear_form();">
<table border="0" cellspacing="0" cellpadding="0" style="margin: 10 0 0 10;width:895px;">
<tr><td align="center" style="font-family:'malgun gothic'; font-size:14px;font-weight:bold;background-color:#F2F2F2;padding:3px 10px;">KRI <20>ο<EFBFBD> <20><><EFBFBD><EFBFBD></td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="0" style="margin: 10 0 0 10;width:895px;">
<tr>
<td style="vertical-align:top;">
<table border="0" cellspacing="1" cellpadding="0">
<tr>
<td align="center" style="font-weight:bold;border:1px solid gray;width:100px;color:#08298A;">
<%=rsc("team_name") %>
</td>
<%
Dim depart_name
depart_name = ""
depart_name = rsc("team_name")
Do While Not rsc.Eof
if depart_name <> rsc("team_name") then
depart_name = rsc("team_name")
%>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table border="0" cellspacing="1" cellpadding="0">
<tr>
<td align="center" style="font-weight:bold;border:1px solid gray;width:100px;color:#08298A;">
<%=rsc("team_name") %>
</td>
<%
end if
%>
<td align="center" style="font-weight:bold;padding:2 2 2 2;border:1px solid gray;width:60px;" id="<%=rsc("p_no") %>">
<a href="javascript:sel_person('<%=rsc("p_no") %>', '<%=rsc("p_name") %>');"><%=rsc("p_name") %></a>
</td>
<%
rsc.MoveNext
Loop
rsc.Close
set rsc = nothing
%>
</tr>
</table>
</td>
</tr>
</table>
<br />
<form name="per_sel" method="post">
<table border="0" cellspacing="0" cellpadding="0" style="margin: 10 0 0 10;width:895px;">
<tr>
<td align="center">
<input type="text" value="" name="per_nm_list" id="per_nm_list" style="width:90%;cursor:plain;" readonly onFocus="this.blur();" />
<input type="hidden" value="" name="per_cd_list" id="per_cd_list" /><br />
</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td align="center">
<input type="button" value="<22><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD>" onclick="complete_sel();" style="background-color:White;font-family:'malgun gothic';color:black;font-weight:bold;" />&nbsp; &nbsp; &nbsp; &nbsp;
<input type="button" value="<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>" onclick="delete_sel();" style="background-color:White;font-family:'malgun gothic';color:black;font-weight:bold;" />
</td>
</tr>
</table>
</form>
</body>
</html>
<%
end if
%>

View File

@@ -0,0 +1,106 @@
<!-- #include virtual = "lib/config.asp" -->
<%
Response.CharSet="euc-kr"
Response.AddHeader "Pragma","no-cache"
Response.AddHeader "cache-control", "no-staff"
Response.Expires = -1
set dbin = server.CreateObject("ADODB.CONNECTION")
flag = request("flag")
p_sn = request("p_sn")'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ<EFBFBD>
p_cli_company_cd = request("p_cli_company_cd")'Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ ȸ<><C8B8><EFBFBD>ڵ<EFBFBD>
p_cli_per_cd = request("p_cli_per_cd")'Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ ȸ<><C8B8> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ڵ<EFBFBD>
p_client_type_cd = request("p_client_type_cd")'<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
cli_depart = unescape(request("cli_depart"))'<27>ű<EFBFBD> Ŭ<><C5AC> <20>μ<EFBFBD>
cli_nm = unescape(request("cli_nm"))'<27>ű<EFBFBD> Ŭ<><C5AC>
cli_tel = request("cli_tel")'<27>ű<EFBFBD> Ŭ<><C5AC> <20><><EFBFBD><EFBFBD>
cli_phone = request("cli_phone")'<27>ű<EFBFBD> Ŭ<><C5AC> <20>ڵ<EFBFBD><DAB5><EFBFBD>
cli_email = request("cli_email")'<27>ű<EFBFBD> Ŭ<><C5AC> <20><><EFBFBD><EFBFBD>
Dim html
select case flag
case "CliInfo"
query = "select * from project2.dbo.V_CLIENT_PERSON where p_cli_per_cd = '"&p_cli_per_cd&"'"
rsc.Open query, adoConn, 1
if not rsc.eof Then
Response.write clie_info(rsc("p_cli_per_cd"), rsc("p_cli_depart"), rsc("p_cli_per_nm"), rsc("p_cli_per_com_tel"), rsc("p_cli_per_tel"), rsc("p_cli_per_email"))
else
Response.write clie_info("", "", "", "", "", "")
End If
rsc.Close
case "CliPerson"
query = ""
query = query &" insert into project2.dbo.T_CLIENT_PERSON (p_cli_company_cd, p_cli_depart, p_cli_per_nm, p_cli_per_com_tel, p_cli_per_tel, p_cli_per_email, p_input_dt, p_input_user) "&VbCrlf
query = query &" values ('"&p_cli_company_cd&"', '"&cli_depart&"', '"&cli_nm&"', '"&cli_tel&"', '"&cli_phone&"', '"&cli_email&"', GETDATE(), '"&Session("User_Number")&"'); "&VbCrlf
dbin.Open adoConn
dbin.Execute query
dbin.Close
case "CliEdit"
query = ""
query = query &" Update project2.dbo.T_CLIENT_PERSON set "&VbCrlf
query = query &" p_cli_depart = '"&cli_depart&"', "&VbCrlf
query = query &" p_cli_per_nm = '"&cli_nm&"', "&VbCrlf
query = query &" p_cli_per_com_tel = '"&cli_tel&"', "&VbCrlf
query = query &" p_cli_per_tel = '"&cli_phone&"', "&VbCrlf
query = query &" p_cli_per_email = '"&cli_email&"', "&VbCrlf
query = query &" p_input_dt = GETDATE(), "&VbCrlf
query = query &" p_input_user = '"&Session("User_Number")&"' "&VbCrlf
query = query &" where p_cli_per_cd = '"&p_cli_per_cd&"' "&VbCrlf
dbin.Open adoConn
dbin.Execute query
dbin.Close
case else
End Select
Function clie_info(cli_per_cd, cli_per_depart, cli_per_nm, cli_per_tel, cli_per_phone, cli_per_email)
Dim html
html = ""
html = html & "<legend class='cnm2'></legend>"
html = html & " <table class='PerAdd'>"
html = html & " <tbody class='ui-widget-content'>"
html = html & " <tr>"
html = html & " <th><3E>μ<EFBFBD></th>"
html = html & " <td><input type='hidden' name='cli_per_cd' id='cli_per_cd' value='"&cli_per_cd&"' />"
html = html & " <input type='text' name='cli_depart' id='cli_depart' value='"&cli_per_depart&"' /></td>"
html = html & " </tr>"
html = html & " <tr>"
html = html & " <th><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20≯<EFBFBD></th>"
html = html & " <td><input type='text' name='cli_nm' id='cli_nm' value='"&cli_per_nm&"' /></td>"
html = html & " </tr>"
html = html & " <tr>"
html = html & " <th>ȸ<><C8B8> <20><>ȭ<EFBFBD><C8AD>ȣ</th>"
html = html & " <td><input type='text' name='cli_tel' id='cli_tel' value='"&cli_per_tel&"' /></td>"
html = html & " </tr>"
html = html & " <tr>"
html = html & " <th><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ڵ<EFBFBD><DAB5><EFBFBD><EFBFBD><EFBFBD>ȣ</th>"
html = html & " <td><input type='number' name='cli_phone' id='cli_phone' value='"&cli_per_phone&"' /></td>"
html = html & " </tr>"
html = html & " <tr>"
html = html & " <th><3E≯<EFBFBD><CCB8><EFBFBD></th>"
html = html & " <td><input type='text' name='cli_email' id='cli_email' value='"&cli_per_email&"' /></td>"
html = html & " </tr>"
html = html & " </tbody>"
html = html & " <tfoot>"
html = html & " <tr>"
html = html & " <td colspan='2'><button type='button' id='addOk'' style='width:100%;background-color:#ffffff;' class='ui-button ui-widget ui-corner-all'><3E><><EFBFBD><EFBFBD></button></td>"
html = html & " </tr>"
html = html & " </tfoot>"
html = html & " </table>"
clie_info = html
End Function
%>

View File

@@ -0,0 +1,20 @@
<!-- #include virtual = "lib/config.asp" -->
<%
Response.CharSet="euc-kr"
Response.AddHeader "Pragma","no-cache"
Response.AddHeader "cache-control", "no-staff"
Response.Expires = -1
Dim Flag, p_sn
Flag = request("flag")
p_sn = request("p_sn")
'Response.write p_sn
filename = request("filename")
filepath = "http://"&request.servervariables("HTTP_HOST") &"\FileFolder\data\"&Left(p_sn,2)&"\"&p_sn
'<27>ٿ<EFBFBD><D9BF>ε<EFBFBD> <20><>ü<EFBFBD><C3BC><EFBFBD><EFBFBD>
Set objDownload = Server.CreateObject("DEXT.FileDownload")
'objDownload.Download(filepath, <20><><EFBFBD><EFBFBD><EFBFBD≯<EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(True:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>), <20>̾<EFBFBD><CCBE>ޱ<EFBFBD> <20><><EFBFBD><EFBFBD>(True:<3A>̾<EFBFBD><CCBE>ޱ<EFBFBD>))
objDownload.Download filepath, "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_Performance_Review.xlsx", false, false
Set objDownload = Nothing
%>

View File

@@ -0,0 +1,49 @@
<!-- #include virtual = "lib/config.asp" -->
<%
Response.CharSet="euc-kr"
Response.AddHeader "Pragma","no-cache"
Response.AddHeader "cache-control", "no-staff"
Response.Expires = -1
Dim Flag, p_sn
Set uploadform = Server.CreateObject ("DEXT.FileUpload")
uploadform.AutoMakeFolder = True
Dim File : File = uploadform("file")
Dim FileName : FileName = uploadform("file").FileName
Dim FileByte : FileByte = uploadform("file").FileLen
Dim FileExt : FileExt = uploadform("file").FileExtension
p_sn = uploadform("p_sn")
Dim FilePath : FilePath = "D:\project_db\data\"&Left(p_sn,2)&"\"&p_sn
query = ""
query = query&" IF EXISTS "
query = query&" ( "
query = query&" select * from project2.dbo.T_SYSTEM_ATTACH where f_p_sn='"&p_sn&"' and f_work_type='"&uploadform("f_work_type")&"' and f_kind='"&uploadform("f_kind")&"' and f_use_yn='Y' "
query = query&" ) "
query = query&" BEGIN "
query = query&" Update project2.dbo.T_SYSTEM_ATTACH SET f_use_yn='N' where f_p_sn='"&p_sn&"' and f_work_type='"&uploadform("f_work_type")&"' and f_kind='"&uploadform("f_kind")&"' and f_use_yn='Y'; "
query = query&" Insert Into project2.dbo.T_SYSTEM_ATTACH "
query = query&" (f_work_type, f_kind, f_attach_date, f_p_sn, f_file_name, f_save_name, f_extension, f_size, f_use_yn, f_input_dt, f_input_user) "
query = query&" values "
query = query&" ('"&uploadform("f_work_type")&"','"&uploadform("f_kind")&"',getdate(),'"&p_sn&"','"&FileName&"','"&FileName&"','"&FileExt&"','"&FileByte&"','Y',getdate(),'"&Session("User_Number")&"'); "
query = query&" End "
query = query&" ELSE "
query = query&" BEGIN "
query = query&" Insert Into project2.dbo.T_SYSTEM_ATTACH "
query = query&" (f_work_type, f_kind, f_attach_date, f_p_sn, f_file_name, f_save_name, f_extension, f_size, f_use_yn, f_input_dt, f_input_user) "
query = query&" values "
query = query&" ('"&uploadform("f_work_type")&"','"&uploadform("f_kind")&"',getdate(),'"&p_sn&"','"&FileName&"','"&FileName&"','"&FileExt&"','"&FileByte&"','Y',getdate(),'"&Session("User_Number")&"'); "
query = query&" END "
adoconn.Execute query
'Response.write query
uploadform.DefaultPath = FilePath
uploadform("file").Save
Set uploadform = Nothing
%>

View File

@@ -0,0 +1,208 @@
<!-- #include virtual = "lib/config.asp" -->
<%
Response.CharSet="euc-kr"
Response.AddHeader "Pragma","no-cache"
Response.AddHeader "cache-control", "no-staff"
Response.Expires = -1
set dbin = server.CreateObject("ADODB.CONNECTION")
p_sn = request("p_sn")'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ<EFBFBD>
p_subject = unescape(request("p_subject"))'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE>
p_contactor = request("p_contactor")'<27>߻<EFBFBD><DFBB><EFBFBD><EFBFBD><EFBFBD>
p_cli_company_cd = request("p_cli_company_cd")'Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ ȸ<><C8B8><EFBFBD>ڵ<EFBFBD>
p_cli_per_cd = request("p_cli_per_cd")'Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ ȸ<><C8B8> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ڵ<EFBFBD>
p_client_type_cd = request("p_client_type_cd")'<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
p_method_cd = request("p_method_cd")'<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
p_total_cost = replace(request("p_total_cost"),",", "")'<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
p_cont_cost = replace(request("p_cont_cost"),",", "")'<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
p_cost_rate = request("p_cost_rate")'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
p_decide_date = request("p_decide_date")'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
p_memo = unescape(request("p_memo"))'<27><><EFBFBD><EFBFBD>
p_state = replace(unescape(request("p_state"))," ","")
p_project_type_cd = request("p_project_type_cd")'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD> <20>ڵ<EFBFBD> KRi KRC
p_project_nation_cd = request("p_project_nation_cd")'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD>籹<EFBFBD><E7B1B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ڵ<EFBFBD> ko fn
select case p_state
case "<22><><EFBFBD><EFBFBD>"
query = ""
query = query&" UPDATE Project2.dbo.T_PROJECT_BASE Set "&VBScript
query = query&" p_subject = '"&p_subject&"', "&VBScript
query = query&" p_contactor = '"&p_contactor&"', "&VBScript
query = query&" p_cli_company_cd = '"&p_cli_company_cd&"', "&VBScript
query = query&" p_cli_per_cd = '"&p_cli_per_cd&"', "&VBScript
query = query&" p_client_type_cd = '"&p_client_type_cd&"', "&VBScript
query = query&" p_methodCd = '"&p_method_cd&"', "&VBScript
if p_total_cost <> "" and p_total_cost <> "0" Then
query = query&" p_total_cost = '"&p_total_cost&"', "&VBScript
End If
query = query&" p_cont_cost = '"&p_cont_cost&"', "&VBScript
query = query&" p_cost_rate = '"&p_cost_rate&"', "&VBScript
query = query&" p_decide_date = '"&p_decide_date&"', "&VBScript
query = query&" p_memo = '"&p_memo&"', "&VBScript
query = query&" p_project_type_cd = '"&p_project_type_cd&"', "&VBScript
query = query&" p_project_nation_cd = '"&p_project_nation_cd&"', "&VBScript
IF Session("User_Number") = "20191201" THEN ' 20240408 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><>û<EFBFBD><C3BB><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>󹫴<EFBFBD><F3B9ABB4><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 5<>׷<EFBFBD><D7B7><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
query = query&" p_Team_N = '705', "&VBScript
query = query&" p_Depart_N = 'R', "&VBScript
ELSE
query = query&" p_Team_N = '"&Session("N_team")&"', "&VBScript
query = query&" p_Depart_N = '"&Session("N_depart")&"', "&VBScript
END IF
query = query&" p_update_date = GetDate() "&VBScript
query = query&" where p_sn = '"&p_sn&"' "&VBScript
'Response.write query
dbin.Open adoConn
dbin.Execute query
dbin.Close
case "<22><><EFBFBD><EFBFBD>"
query = ""
query = query&" UPDATE Project2.dbo.T_PROJECT_BASE Set "&VBScript
query = query&" p_subject = '"&p_subject&"', "&VBScript
query = query&" p_contactor = '"&p_contactor&"', "&VBScript
query = query&" p_cli_company_cd = '"&p_cli_company_cd&"', "&VBScript
query = query&" p_cli_per_cd = '"&p_cli_per_cd&"', "&VBScript
query = query&" p_client_type_cd = '"&p_client_type_cd&"', "&VBScript
query = query&" p_methodCd = '"&p_method_cd&"', "&VBScript
query = query&" p_cont_cost = '"&p_cont_cost&"', "&VBScript
query = query&" p_obtain_cost = '"&p_cont_cost&"', "&VBScript
query = query&" p_cost_rate = '"&p_cost_rate&"', "&VBScript
query = query&" p_decide_date = '"&p_decide_date&"', "&VBScript
query = query&" p_memo = '"&p_memo&"', "&VBScript
query = query&" p_project_type_cd = '"&p_project_type_cd&"', "&VBScript
query = query&" p_project_nation_cd = '"&p_project_nation_cd&"', "&VBScript
query = query&" p_state = 'K', "&VBScript
IF Session("User_Number") = "20191201" THEN ' 20240408 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><>û<EFBFBD><C3BB><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>󹫴<EFBFBD><F3B9ABB4><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 5<>׷<EFBFBD><D7B7><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
query = query&" p_Team_N = '705', "&VBScript
query = query&" p_Depart_N = 'R', "&VBScript
ELSE
query = query&" p_Team_N = '"&Session("N_team")&"', "&VBScript
query = query&" p_Depart_N = '"&Session("N_depart")&"', "&VBScript
END IF
query = query&" p_update_date = GetDate() "&VBScript
query = query&" where p_sn = '"&p_sn&"' "&VBScript
'Response.write query
dbin.Open adoConn
dbin.Execute query
dbin.Close
case "<22><><EFBFBD><EFBFBD>", "<22><><EFBFBD><EFBFBD>", "Ż<><C5BB>"
query = ""
query = query&" UPDATE Project2.dbo.T_PROJECT_BASE Set "&VBScript
query = query&" p_subject = '"&p_subject&"', "&VBScript
query = query&" p_contactor = '"&p_contactor&"', "&VBScript
query = query&" p_cli_company_cd = '"&p_cli_company_cd&"', "&VBScript
query = query&" p_cli_per_cd = '"&p_cli_per_cd&"', "&VBScript
query = query&" p_client_type_cd = '"&p_client_type_cd&"', "&VBScript
query = query&" p_methodCd = '"&p_method_cd&"', "&VBScript
query = query&" p_total_cost = '"&p_total_cost&"', "&VBScript
query = query&" p_cont_cost = '"&p_cont_cost&"', "&VBScript
query = query&" p_obtain_cost = '"&p_cont_cost&"', "&VBScript
query = query&" p_cost_rate = '"&p_cost_rate&"', "&VBScript
query = query&" p_decide_date = '"&p_decide_date&"', "&VBScript
query = query&" p_memo = '"&p_memo&"', "&VBScript
query = query&" p_project_type_cd = '"&p_project_type_cd&"', "&VBScript
query = query&" p_project_nation_cd = '"&p_project_nation_cd&"', "&VBScript
If p_state = "<22><><EFBFBD><EFBFBD>" Then
query = query&" p_state = 'P', "&VBScript
elseIf p_state = "<22><><EFBFBD><EFBFBD>" Then
query = query&" p_state = 'D', "&VBScript
elseIf p_state = "Ż<><C5BB>" Then
query = query&" p_state = 'X', "&VBScript
End If
IF Session("User_Number") = "20191201" THEN ' 20240408 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><>û<EFBFBD><C3BB><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>󹫴<EFBFBD><F3B9ABB4><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 5<>׷<EFBFBD><D7B7><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
query = query&" p_Team_N = '705', "&VBScript
query = query&" p_Depart_N = 'R', "&VBScript
ELSE
query = query&" p_Team_N = '"&Session("N_team")&"', "&VBScript
query = query&" p_Depart_N = '"&Session("N_depart")&"', "&VBScript
END IF
query = query&" p_update_date = GetDate() "&VBScript
query = query&" where p_sn = '"&p_sn&"'; "&VBScript
dbin.Open adoConn
dbin.Execute query
dbin.Close
If p_state = "<22><><EFBFBD><EFBFBD>" Then
p_method_cd = split(replace(p_method_cd," ",""),",")
dim child_sn
query = " Delete from T_PROJECT_METHOD where p_child_sn is null and p_sn ='"&p_sn&"'"
dbin.Open adoConn
dbin.Execute query
dbin.Close
For iCnt = LBOUND(p_method_cd) to UBOUND(p_method_cd)
if iCnt+1 < 10 then
child_sn = "C0"&iCnt+1
Else
child_sn = "C"&iCnt+1
End If
query =""
query = query&" INSERT INTO T_PROJECT_METHOD "&VBScript
query = query&" ( "&VBScript
query = query&" p_sn, p_child_sn, p_subject, p_method_cd, p_cli_company_cd, p_client_type_cd, p_sub_type, p_cont_cost, p_progress_status, p_input_dt, p_input_complete, p_progress_flag, "&VBScript
query = query&" p_rsch_1_a, p_rsch_2_a, p_rsch_3_a, p_rsch_4_a, p_rsch_1_b, p_rsch_2_b, p_rsch_3_b, p_rsch_4_b, p_rsch_1_c, p_rsch_2_c, p_rsch_3_c, p_rsch_4_c, "&VBScript
query = query&" p_sv_1, p_sv_2, p_sv_3, p_sv_4, p_code_1, p_code_2, p_code_3, p_code_4, p_verify_1, p_verify_2, p_verify_3, p_verify_4, p_punch_1, p_punch_2, p_punch_3, p_punch_4, "&VBScript
query = query&" p_dp_1, p_dp_2, p_dp_3, p_dp_4, p_it_1, p_it_2, p_it_3, p_it_4 "&VBScript
query = query&" ) "&VBScript
query = query&" VALUES "&VBScript
query = query&" ( "&VBScript
query = query&" '" & p_sn & "', '"&p_sn&"_"&child_sn&"', '" & p_subject & "', '" & p_method_cd(iCnt) & "', '" & p_cli_company_cd & "', '" & p_client_type_cd & "' ,'C', '0', '001', "&VBScript
query = query&" getdate(), 'xxx', 'xxx', '','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','' "&VBScript
query = query&" ) "&VBScript
dbin.Open adoConn
dbin.Execute query
dbin.Close
NEXT
End If
'Response.write query
case else
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><> <20><><EFBFBD>̺<EFBFBD> <20><><EFBFBD><EFBFBD>
'---------------------------------------
if p_sn <> "" then
query = ""
query = query&" INSERT INTO Project2.dbo.T_PROJECT_BASE ( "&VBScript
query = query&" p_sn, p_subject, p_contactor, p_cli_company_cd, p_cli_per_cd, p_client_type_cd, p_methodCd, "&VBScript
query = query&" p_obtain_cost, p_cont_cost, p_cost_rate, p_decide_date, p_memo, p_state, "&VBScript
query = query&" p_project_type_cd, "&VBScript
query = query&" p_project_nation_cd, "&VBScript
query = query&" p_depart_dep, p_depart_team, p_Depart_N, p_Team_N, p_input_dt, p_input_user "&VBScript
query = query&" ) VALUES ( "&VBScript
query = query&" '"&p_sn&"', '"&p_subject&"', '"&p_contactor&"', '"&p_cli_company_cd&"', '"&p_cli_per_cd&"', '"&p_client_type_cd&"', '"&p_method_cd&"', "&VBScript
query = query&" '"&p_cont_cost&"', '"&p_cont_cost&"', '"&p_cost_rate&"', '"&p_decide_date&"', '"&p_memo&"', 'E', "&VBScript
query = query&" '"&p_project_type_cd&"', "&VBScript
query = query&" '"&p_project_nation_cd&"', "&VBScript
IF Session("User_Number") = "20191201" THEN ' 20240408 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><>û<EFBFBD><C3BB><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>󹫴<EFBFBD><F3B9ABB4><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 5<>׷<EFBFBD><D7B7><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
query = query&" '"&Session("Depart_Code")&"', '"&Session("teamcode")&"', 'R', '705', Getdate(), '"&Session("User_Number")&"') "&VBScript
ELSE
query = query&" '"&Session("Depart_Code")&"', '"&Session("teamcode")&"', '"&Session("N_depart")&"', '"&Session("N_team")&"', Getdate(), '"&Session("User_Number")&"') "&VBScript
END IF
'Response.write query
dbin.Open adoConn
dbin.Execute query
dbin.Close
End If
End Select
%>

View File

@@ -0,0 +1,399 @@
<!-- #include virtual = "lib/config.asp" -->
<!-- #include virtual = "include/JSON_2.0.4.asp" -->
<%
Response.CharSet="euc-kr"
Response.AddHeader "Pragma","no-cache"
Response.AddHeader "cache-control", "no-staff"
Response.Expires = -1
Dim Flag : Flag = Request("Flag")
Dim Search : Search = unescape(Request("Search"))
Dim Depart : Depart = Request("Depart")
Dim DivHtml
Select case Flag
Case "CompanyList"
query = "select * from project2.dbo.V_CLIENT_COMP where p_cli_company_nm like '%"&Search&"%' ORDER BY p_cli_company_nm"
rsc.Open query, adoConn, 1
DivHtml=""
If not rsc.eof Then
while not rsc.eof
DivHtml =+ DivHtml&"<div class='ComList'>"&rsc("p_cli_company_nm")&"<input type='hidden' name='ComCode' value='"&rsc("p_cli_company_cd")&"'/></div>"
rsc.movenext
wend
end If
rsc.close
DivHtml =+ DivHtml&"<div class='ComAdd'>"
DivHtml =+ DivHtml&"<input type='text' id='ComAddName' style='width:59%;display:none;' value='' /> "
DivHtml =+ DivHtml&"<button type='button' id='ComAddBtn' style='width:100%;background-color:#ffffff;' class='ui-button ui-widget ui-corner-all'><3E>߰<EFBFBD></button>"
DivHtml =+ DivHtml&"<button type='button' id='ComAddCancleBtn' style='width:20%;background-color:#ffffff;display:none;' class='ui-button ui-widget ui-corner-all'><3E><><EFBFBD><EFBFBD></button>"
DivHtml =+ DivHtml&"</div>"
response.write DivHtml
case "CompanyPerson"
query = "select * from project2.dbo.V_CLIENT_PERSON where p_cli_company_cd = '"&Search&"' ORDER BY p_cli_per_nm "
'response.write query
rsc.Open query, adoConn, 1
DivHtml = "<legend class='Cnm'></legend>"
DivHtml =+ DivHtml&"<table class='PerList'>"
DivHtml =+ DivHtml&"<thead class='ui-widget-header'>"
DivHtml =+ DivHtml&"<tr>"
DivHtml =+ DivHtml&"<th>Client</th>"
DivHtml =+ DivHtml&"<th><3E>μ<EFBFBD><CEBC><EFBFBD></th>"
DivHtml =+ DivHtml&"<th></th>"
DivHtml =+ DivHtml&"</tr>"
DivHtml =+ DivHtml&"</thead>"
DivHtml =+ DivHtml&"<tbody class='ui-widget-content'>"
If not rsc.eof Then
while not rsc.eof
DivHtml =+ DivHtml&"<tr>"
DivHtml =+ DivHtml&"<input type='hidden' name='PerDepart' value='"&rsc("p_cli_depart")&"'/>"
DivHtml =+ DivHtml&"<input type='hidden' name='PerCode' value='"&rsc("p_cli_per_cd")&"'/>"
DivHtml =+ DivHtml&"<input type='hidden' name='PerName' value='"&rsc("p_cli_per_nm")&"'/>"
DivHtml =+ DivHtml&"<input type='hidden' name='PerTel' value='"&rsc("p_cli_per_com_tel")&"'/>"
DivHtml =+ DivHtml&"<input type='hidden' name='PerPhone' value='"&rsc("p_cli_per_tel")&"'/>"
DivHtml =+ DivHtml&"<input type='hidden' name='PerEmail' value='"&rsc("p_cli_per_email")&"'/>"
DivHtml =+ DivHtml&"<td>"&rsc("p_cli_per_nm")&"</td>"
DivHtml =+ DivHtml&"<td>"&rsc("p_cli_depart")&"</td>"
DivHtml =+ DivHtml&"<td><button type='button' class='ui-button ui-widget ui-corner-all' name='CliEdit'><3E><><EFBFBD><EFBFBD></button></td>"
DivHtml =+ DivHtml&"</tr>"
rsc.movenext
wend
end If
DivHtml =+ DivHtml&"<tr>"
DivHtml =+ DivHtml&"<td colspan='3' style='text-align:center;'><3E><><EFBFBD><EFBFBD>(Click!)</td>"
DivHtml =+ DivHtml&"</tr>"
DivHtml =+ DivHtml&"</tbody>"
DivHtml =+ DivHtml&"<tfoot>"
DivHtml =+ DivHtml&"<tr>"
DivHtml =+ DivHtml&"<td colspan='3'><button type='button' id='add' style='width:100%;background-color:#ffffff;' class='ui-button ui-widget ui-corner-all'><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>߰<EFBFBD><DFB0>ϱ<EFBFBD></button></td>"
DivHtml =+ DivHtml&"</tr>"
DivHtml =+ DivHtml&"</tfoot>"
DivHtml =+ DivHtml&"</table>"
rsc.close
response.write DivHtml
case "DetailList"
Dim sdate : sdate = Request("sdate")
Dim edate : edate = Request("edate")
query = ""
query = query&" select p_sn, p_subject, a.p_cli_company_cd, b.p_cli_company_nm, a.p_cli_per_cd, c.p_cli_per_nm, "&VbScript
query = query&" a.p_client_type_cd, d.p_client_type_nm, p_memo, isnull(p_total_cost,0) p_total_cost, isnull(p_obtain_cost,0) p_obtain_cost, "&VbScript
query = query&" p_cont_cost, p_decide_date, convert(varchar(10),a.p_input_dt,23) as p_input_dt, a.p_input_user, e.p_name, "&VbScript
query = query&" case p_state "&VbScript
query = query&" when 'E' then '<27><><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD>)' "&VbScript
query = query&" when 'K' then '<27><><EFBFBD><EFBFBD>' "&VbScript
query = query&" when 'D' then '<27><><EFBFBD><EFBFBD>' "&VbScript
query = query&" when 'X' then 'Ż<><C5BB>' "&VbScript
query = query&" when 'P' then '<27><><EFBFBD><EFBFBD>' "&VbScript
query = query&" when 'C' then '<27><><EFBFBD><EFBFBD>' "&VbScript
query = query&" when 'F' then '<27>Ϸ<EFBFBD>' end p_state, "&VbScript
query = query&" p_Depart_N, p_Team_N, f.D_Name, f.T_Name "&VbScript
query = query&" from T_PROJECT_BASE a "&VbScript
query = query&" left join project2.dbo.V_CLIENT_COMP b on a.p_cli_company_cd=b.p_cli_company_cd "&VbScript
query = query&" left join project2.dbo.V_CLIENT_PERSON c on a.p_cli_per_cd=c.p_cli_per_cd and a.p_cli_company_cd=c.p_cli_company_cd "&VbScript
query = query&" left join project2.dbo.T_CLIENT_TYPE_CD d on a.p_client_type_cd=d.p_client_type_cd "&VbScript
query = query&" left join project2.dbo.V_Person e on a.p_input_user = e.p_no "&VbScript
query = query&" left join project2.dbo.v_Department f on a.p_Depart_N+a.p_Team_N=f.Code "&VbScript
If sdate = "" Then
query = query&" where convert(varchar(7),a.p_input_dt,23)='"&Year(Now())&"-0"&Month(Now())&"' "&Vbscript
Else
query = query&" where a.p_input_dt between '"&sdate&"' and '"&edate&"'"&VbScript
End If
query = query&" order by p_sn desc "&VbScript
'response.write query
rsc.Open query, adoConn, 1
set json = jsObject()
Redim data(rsc.recordcount-1)
iCnt = 0
if not rsc.eof then
while not rsc.eof
set Contact = jsObject()
Contact("p_sn") = rsc("p_sn")
Contact("p_subject") = rsc("p_subject")
Contact("p_state") = rsc("p_state")
Contact("p_cli_company_nm") = rsc("p_cli_company_nm")
Contact("p_total_cost") = Cdbl(rsc("p_total_cost"))
Contact("p_cont_cost") = Cdbl(rsc("p_cont_cost"))
Contact("p_name") = rsc("p_name")
Contact("p_input_dt") = rsc("p_input_dt")
set data(iCnt) = Contact
iCnt = iCnt + 1
rsc.movenext
wend
json("data") = data
Else
json("data") = ""
End If
rsc.close
response.write toJSON(json)
Case "ContactList"
sdate = Request("sdate")
edate = Request("edate")
query = ""
query = query &"select * from"&VbCrlf
query = query &" ("&VbCrlf
query = query &" select"&VbCrlf
query = query &" isnull(PCode,'') PCode, isnull(PTeam,'') PTeam, p_sn, p_subject, p_cli_company_nm, '' as p_method, ''as p_sample ,"&VbCrlf
query = query &" p_cont_cost, isnull(p_total_cost,0) as p_total_cost, '' as pc_con_cost, '' as sum_est, '' as rate_est, '' as sum_act, '' as rate_act, "&VbCrlf
query = query &" '' as r_est, '' as r_act, '' as f_est, '' as f_act, convert(varchar(10), p_decide_date,23) p_decide_date,"&VbCrlf
query = query &" '' as p_con_date_st, '' as p_con_date_end, p_state, '' as r_user, '' as f_user, p_input_user, p_name, convert(varchar(10), p_input_dt,23) p_input_dt, '' as p_input_progress from"&VbCrlf
query = query &" ("&VbCrlf
query = query &" select f.Code as PCode, f.T_Name as PTeam,T.* from"&VbCrlf
query = query &" ("&VbCrlf
query = query &" select p_sn, p_subject, a.p_cli_company_cd, b.p_cli_company_nm, p_total_cost, p_obtain_cost,"&VbCrlf
query = query &" p_cont_cost, p_decide_date, a.p_input_dt, a.p_input_user, e.p_name,"&VbCrlf
query = query &" case p_state"&VbCrlf
query = query &" when 'E' then '<27><><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD>)'"&VbCrlf
query = query &" when 'K' then '<27><><EFBFBD><EFBFBD>'"&VbCrlf
query = query &" when 'D' then '<27><><EFBFBD><EFBFBD>'"&VbCrlf
query = query &" when 'X' then 'Ż<><C5BB>'"&VbCrlf
query = query &" when 'P' then '<27><><EFBFBD><EFBFBD>'"&VbCrlf
query = query &" when 'C' then '<27><><EFBFBD><EFBFBD>'"&VbCrlf
query = query &" when 'F' then '<27>Ϸ<EFBFBD>' end p_state,"&VbCrlf
query = query &" Case "&VbCrlf
query = query &" When p_Depart_N is null then cast(p_depart_dep as varchar)"&VbCrlf
query = query &" Else p_Depart_N+p_Team_N"&VbCrlf
query = query &" End Team"&VbCrlf
query = query &" from project2.dbo.T_PROJECT_BASE a"&VbCrlf
query = query &" left join project2.dbo.V_CLIENT_COMP b on a.p_cli_company_cd=b.p_cli_company_cd"&VbCrlf
query = query &" left join project2.dbo.V_Person e on a.p_input_user = e.p_no"&VbCrlf
query = query &" ) T"&VbCrlf
query = query &" left join project2.dbo.v_Department f on T.Team=f.Code or T.Team=f.before_t_cd1"&VbCrlf
query = query &" ) as A"&VbCrlf
query = query &" union all"&VbCrlf
query = query &" "&VbCrlf
query = query &" select"&VbCrlf
query = query &" isnull(Tcode,'') Tcode, isnull(depart_name,'') depart_name, p_child_sn as p_sn, p_subject, p_cli_company_nm, p_method_nm, isnull(p_sample,'') p_sample, p_cont_cost, p_total_cost, isnull(pc_cont_cost,0) pc_cont_cost,"&VbCrlf
query = query &" sum_est, case when pc_cont_cost = 0 or isnull(pc_cont_cost,0) = 0 then 0 else (isnull(sum_est,0)*100)/pc_cont_cost end as rate_est,"&VbCrlf
query = query &" sum_act, case when pc_cont_cost = 0 or isnull(pc_cont_cost,0) = 0 then 0 else (isnull(sum_act,0)*100)/pc_cont_cost end as rate_act,"&VbCrlf
query = query &" r_est, r_act, f_est, f_act, '', "&VbCrlf
query = query &" isnull(p_con_date_st,'') p_con_date_st, isnull(p_con_date_end,'') p_con_date_end, p_state, isnull(r_user, '') as r_user, isnull(f_user, '') as f_user, p_input_user, isnull(p_name,'') p_name, convert(varchar(10), p_input_dt,23) p_input_dt, "&VbCrlf
query = query &" CASE WHEN left(p_input_complete, 1) = 'x' THEN '<27><><EFBFBD><EFBFBD> ' ELSE '' END + "&VbCrLf
query = query &" CASE WHEN substring(p_input_complete, 2, 1) = 'x' THEN '<27>ǻ<EFBFBD>' + "&VbCrLf
query = query &" CASE WHEN p_field_dept = '8' THEN "&VbCrLf
query = query &" CASE WHEN ISNULL(qc_prog, '') = '' THEN '(QC) ' ELSE '' END "&VbCrLf
query = query &" WHEN p_field_dept = '9' THEN "&VbCrLf
query = query &" CASE WHEN ISNULL(SV_prog, '') = '' THEN '(SV) ' ELSE '' END "&VbCrLf
query = query &" ELSE "&VbCrLf
query = query &" CASE WHEN ISNULL(SV_prog, '') = '' THEN "&VbCrLf
query = query &" '(SV' + "&VbCrLf
query = query &" CASE WHEN ISNULL(qc_prog, '') = '' THEN ', QC) ' ELSE ') ' END "&VbCrLf
query = query &" ELSE "&VbCrLf
query = query &" CASE WHEN ISNULL(qc_prog, '') = '' THEN '(QC) ' ELSE '' END "&VbCrLf
query = query &" END "&VbCrLf
query = query &" END "&VbCrLf
query = query &" ELSE '' "&VbCrLf
query = query &" END + "&VbCrLf
query = query &" CASE WHEN left(p_input_complete, 1) = 'x' OR substring(p_input_complete, 2, 1) = 'x' THEN '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>Է<EFBFBD>' ELSE '' END AS p_input_progress "&VbCrLf
query = query &" from"&VbCrlf
query = query &" ("&VbCrlf
query = query &" SELECT p_field_dept, p_is_dept,"&VbCrlf
query = query &" TPB.p_Depart_N+TPB.p_Team_N as Tcode,"&VbCrlf
query = query &" ISNULL(ISNULL(DRE.depart_name, DFI.depart_name), DDE.depart_name) AS depart_name,"&VbCrlf
query = query &" TPM.p_child_sn, TPM.p_subject,"&VbCrlf
query = query &" VCC.p_cli_company_nm,"&VbCrlf
query = query &" TPM.p_method_cd,"&VbCrlf
query = query &" TPMC.p_method_nm,"&VbCrlf
query = query &" TPM.p_sample, --ǥ<><C7A5>"&VbCrlf
query = query &" TPB.p_cont_cost, --<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"&VbCrlf
query = query &" TPB.p_total_cost, --<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"&VbCrlf
query = query &" TPM.p_cont_cost as pc_cont_cost, --<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"&VbCrlf
query = query &" ISNULL(DC.sum_est, 0) AS sum_est, --<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"&VbCrlf
query = query &" (ISNULL(DC.sum_act, 0) + ISNULL(MC.marketing_cost, 0) + ISNULL(JC.job_money, 0)) AS sum_act, --<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"&VbCrlf
query = query &" ISNULL(DC.sum_act, 0) AS sum_act_tmp,"&VbCrlf
query = query &" ISNULL(DC.r_est, 0) AS r_est,"&VbCrlf
query = query &" ISNULL(DC.r_act, 0) AS r_act,"&VbCrlf
query = query &" ISNULL(DC.f_est, 0) AS f_est,"&VbCrlf
query = query &" ISNULL(DC.f_act, 0) AS f_act,"&VbCrlf
query = query &" TPM.p_con_date_st,"&VbCrlf
query = query &" TPM.p_con_date_end,"&VbCrlf
query = query &" TPM.p_progress_status,"&VbCrlf
query = query &" TPM.p_input_complete,"&VbCrlf
query = query &" DCF.sv_prog,"&VbCrlf
query = query &" DCF.qc_prog,"&VbCrlf
query = query &" ISNULL(TPM.p_research_complete, 0) AS p_research_complete,"&VbCrlf
query = query &" ISNULL(TPM.p_field_complete, 0) AS p_field_complete,"&VbCrlf
query = query &" ISNULL(TPM.p_dp_complete, 0) AS p_dp_complete,"&VbCrlf
query = query &" TPM.p_sn, RU.p_name as r_user, FU.p_name as f_user, VP.p_name, TPB.p_input_user, TPM.p_input_dt,"&VbCrlf
query = query &" case p_progress_status when '008' then case when p_research_complete='1' and p_field_complete='1' and p_dp_complete='1' then '<27>Ϸ<EFBFBD>' else '<27><><EFBFBD><EFBFBD>' end else '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' end p_state"&VbCrlf
query = query &" FROM project2.dbo.T_PROJECT_METHOD TPM LEFT JOIN"&VbCrlf
query = query &" project2.dbo.T_PROJECT_BASE TPB on TPM.p_sn = TPB.p_sn LEFT JOIN"&VbCrlf
query = query &" project2.dbo.T_PROJECT_METHOD_CD TPMC ON TPM.p_method_cd = TPMC.p_method_cd LEFT JOIN"&VbCrlf
query = query &" project2.dbo.V_Person VP ON TPB.p_input_user = VP.p_no LEFT JOIN"&VbCrlf
query = query &" project2.dbo.V_Person RU ON TPM.p_rsch_1_a = RU.p_no LEFT JOIN"&VbCrlf
query = query &" project2.dbo.V_Person FU ON TPM.p_sv_1 = FU.p_no LEFT JOIN"&VbCrlf
query = query &" project2.dbo.V_CLIENT_COMP VCC ON TPM.p_cli_company_cd = VCC.p_cli_company_cd LEFT JOIN"&VbCrlf
query = query &" project2.dbo.direct_cost_field DCF ON TPM.p_child_sn = DCF.p_child_sn AND DCF.del_yn = 'n' LEFT JOIN"&VbCrlf
query = query &" ("&VbCrlf
query = query &" SELECT DISTINCT LEFT(CASE WHEN D_Code = 'S' AND before_t_cd1 IN (17, 18, 19) THEN 'Ű<><C5B0><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' ELSE T_Name END, 8) AS depart_name, "&VbCrlf
query = query &" before_t_cd1 AS depart_code "&VbCrlf
query = query &" FROM project2.dbo.v_Department"&VbCrlf
query = query &" WHERE before_t_cd1 NOT IN ('0', '18')"&VbCrlf
query = query &" ) DDE ON TPB.p_depart_dep = DDE.depart_code LEFT JOIN"&VbCrlf
query = query &" ("&VbCrlf
query = query &" SELECT DISTINCT LEFT(T_Name, 8) AS depart_name, before_t_cd1 AS depart_code"&VbCrlf
query = query &" FROM project2.dbo.v_Department"&VbCrlf
query = query &" WHERE before_t_cd1 NOT IN ('17', '18', '0')"&VbCrlf
query = query &" ) DRE ON TPM.p_rsch_dept = DRE.depart_code LEFT JOIN"&VbCrlf
query = query &" ("&VbCrlf
query = query &" SELECT DISTINCT LEFT(T_Name, 8) AS depart_name, before_t_cd1 AS depart_code"&VbCrlf
query = query &" FROM project2.dbo.v_Department"&VbCrlf
query = query &" WHERE before_t_cd1 NOT IN ('17', '18', '0')"&VbCrlf
query = query &" ) DFI ON TPM.p_field_dept = DFI.depart_code LEFT JOIN"&VbCrlf
query = query &" ("&VbCrlf
query = query &" SELECT p_child_sn,"&VbCrlf
query = query &" sum(CONVERT(money, est_money)) AS sum_est,"&VbCrlf
query = query &" sum(CONVERT(money, act_money)) AS sum_act,"&VbCrlf
query = query &" sum(case when cost_type = 'research' then CONVERT(money, est_money) else 0 end) AS r_est,"&VbCrlf
query = query &" sum(case when cost_type = 'research' then CONVERT(money, act_money) else 0 end) AS r_act,"&VbCrlf
query = query &" sum(case when cost_type = 'field' then CONVERT(money, est_money) else 0 end) AS f_est,"&VbCrlf
query = query &" sum(case when cost_type = 'field' then CONVERT(money, act_money) else 0 end) AS f_act"&VbCrlf
query = query &" FROM project2.dbo.direct_cost"&VbCrlf
query = query &" WHERE p_child_sn > '17' AND del_yes_no = 'no'"&VbCrlf
query = query &" GROUP BY p_child_sn"&VbCrlf
query = query &" ) DC ON TPM.p_child_sn = DC.p_child_sn LEFT JOIN"&VbCrlf
query = query &" ("&VbCrlf
query = query &" SELECT M.p_sn, SUM(CONVERT(money, REPLACE(CONVERT(varchar(100), M.target6), ',', ''))) AS marketing_cost"&VbCrlf
query = query &" FROM project2.dbo.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> M LEFT JOIN project2.dbo.Document D ON M.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = D.d_no"&VbCrlf
query = query &" WHERE M.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> = '<27><><EFBFBD><EFBFBD><EFBFBD>񺸰<EFBFBD><F1BAB8B0><EFBFBD>' AND M.del_yes_no = 'no'"&VbCrlf
query = query &" AND D.d_order_cnt = '77'"&VbCrlf
query = query &" GROUP BY M.p_sn"&VbCrlf
query = query &" ) MC ON TPM.p_child_sn = MC.p_sn LEFT JOIN"&VbCrlf
query = query &" ("&VbCrlf
query = query &" SELECT CA.p_sn, SUM(CA.cost_money) AS job_money"&VbCrlf
query = query &" FROM project2.dbo.cost_account CA LEFT JOIN project2.dbo.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> M ON CA.d_no = M.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ"&VbCrlf
query = query &" LEFT JOIN project2.dbo.Document D ON M.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = D.d_no"&VbCrlf
query = query &" WHERE CA.cost_money > 0 AND CA.approval = 'yes'"&VbCrlf
query = query &" AND M.del_yes_no = 'no' AND D.d_order_cnt = '77'"&VbCrlf
query = query &" GROUP BY CA.p_sn"&VbCrlf
query = query &" ) JC ON TPM.p_child_sn = JC.p_sn"&VbCrlf
query = query &" where TPM.p_child_sn is not null"&VbCrlf
query = query &" ) as A"&VbCrlf
query = query &" ) AA"&VbCrlf
query = query& " where p_input_dt between '"&sdate&"' and '"&edate&"' and p_state <> '<27><><EFBFBD><EFBFBD>'"&VBCrlf
if Depart <> "1" Then
if cint(session("Depart_Code")) >= 20 Then
query = query & " AND (PCode = '" & Session("N_depart") & Session("N_team") &"' " & vbCrLf
' if session("depart_code") = 64 Then
' query = query & " OR PCode = 'R601' " & vbCrLf
' End IF
if session("depart_code") = 63 Then
query = query & " OR PCode = 'R602' " & vbCrLf
End IF
if session("User_Number") = "20200302" Then '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
query = query & " OR PCode in ('R701', 'R702') " & vbCrLf
End IF
query = query & " ) "
End if
if session("User_Number") = "20000201" Then '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
query = query & " AND PCode in ('R601', 'R602', 'R603','R604','R605','R606') " & vbCrLf
End IF
if session("User_Number") = "20190601" Then '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
query = query & " AND PCode in ('R701', 'R702', 'R501') " & vbCrLf
End IF
if session("User_Number") = "20210105" Then '<27><><EFBFBD>ٽ<EFBFBD>
query = query & " AND PCode in ('R703', 'R704') " & vbCrLf
End IF
if session("User_Number") = "20160205" Then '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
'query = query & " and PCode in ('R604','R605','R606', 'A101') " & vbCrLf
query = query & " AND PCode in ('R601','R602','R603') " & vbCrLf
End IF
if session("User_Number") = "20210107" Then '<27>Ż<EFBFBD><C5BB><EFBFBD>
'query = query & " and PCode in ('R604','R605','R606', 'A101') " & vbCrLf
query = query & " AND PCode in ('R604','R605','R606') " & vbCrLf
End IF
End If
query = query&" ORDER BY p_sn"&VbCrlf
'response.write query &" ---------------------------------<br>"
rsc.Open query, adoConn, 1
set json = jsObject()
Redim data(rsc.recordcount-1)
iCnt = 0
if not rsc.eof then
while not rsc.eof
set Contact = jsObject()
if rsc("PTeam") = "" Then
Contact("Team") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
Else
Contact("Team") = rsc("PTeam")
End If
Contact("p_sn") = rsc("p_sn")
Contact("p_subject") = replace(rsc("p_subject"), """", "&quot;")
Contact("p_cli_company_nm") = rsc("p_cli_company_nm")
If rsc("p_method") = "" Then
Contact("p_method") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
Else
Contact("p_method") = rsc("p_method")
End If
Contact("p_sample") = Cdbl(rsc("p_sample"))
Contact("p_cont_cost") = Cdbl(rsc("p_cont_cost"))
Contact("p_total_cost") = Cdbl(rsc("p_total_cost"))
Contact("pc_con_cost") = Cdbl(rsc("pc_con_cost"))
Contact("sum_est") = Cdbl(rsc("sum_est"))
Contact("rate_est") = Round(Cdbl(rsc("rate_est")),2)
Contact("sum_act") = Cdbl(rsc("sum_act"))
Contact("rate_act") = Round(Cdbl(rsc("rate_act")),2)
Contact("r_est") = Cdbl(rsc("r_est"))
Contact("r_act") = Cdbl(rsc("r_act"))
Contact("f_est") = Cdbl(rsc("f_est"))
Contact("f_act") = Cdbl(rsc("f_act"))
Contact("p_decide_date") = rsc("p_decide_date")
Contact("p_con_date_st") = rsc("p_con_date_st")
Contact("p_con_date_end") = rsc("p_con_date_end")
Contact("p_state") = rsc("p_state")
If rsc("p_name") = "" then
Contact("p_input_user") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
Else
Contact("p_input_user") = rsc("p_name")
End If
If rsc("r_user") = "" then
Contact("r_user") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
Else
Contact("r_user") = rsc("r_user")
End If
If rsc("f_user") = "" then
Contact("f_user") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
Else
Contact("f_user") = rsc("f_user")
End If
Contact("p_input_dt") = rsc("p_input_dt")
Contact("p_input_progress") = rsc("p_input_progress")
set data(iCnt) = Contact
iCnt = iCnt + 1
rsc.movenext
wend
json("data") = data
Else
json("data") = ""
End If
rsc.close
response.write toJSON(json)
End Select
%>

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,406 @@
<!-- #include virtual = "include/header.asp" -->
<!-- #include virtual = "include/left.asp" -->
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<style>
.txt{
font-size: 13px;
letter-spacing: 0px;
}
tbody th.t_label{
vertical-align:middle;
}
.ui-datepicker-trigger{
cursor: pointer;
}
.hasDatepicker{
cursor: pointer;
}
#ContactList tbody tr{
cursor:pointer;
font-size: 13px;
letter-spacing: 0px;
}
.DTFC_Cloned tbody{
cursor:pointer
}
.buttons-columnVisibility{
background: #fff !important;
}
.buttons-columnVisibility.active{
box-shadow: none !important;
background: #313131 !important;
color: #fff;
}
.buttons-columnVisibility.active > span{
font-weight:400;
}
.dataTables_wrapper .dataTables_filter input{
background:#fff;
}
.dataTables_scrollBody > table.dataTable{
margin-left:0;
}
.DTFC_LeftBodyLiner > table.dataTable{
width: calc(100% - 2px) !important;
}
.DTFC_ScrollWrapper{
overflow-x: auto;
height:536px !important;
}
.ContactList_filterSelect{
width:220px !important;
display:inline-block;
}
</style>
<!-- Content Header (Page header) -->
<div class="content-header">
<h1><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><>Ȳ</h1>
</div>
<!-- /.content-header -->
<!-- Main content -->
<div class="content-body">
<div class="content">
<div class="container-fluid">
<div class="row">
<div class="col-12" onclick="javascript:try{if(winObj.window.focus()){}}catch(exception){}" ondblclick="javascript:try{if(winObj.window.focus()){}}catch(exception){}">
<table class='table table-sm table-bordered table-headline nowrap' id="ContactList">
<thead>
<tr>
<th class="t_label select-filter"><3E>μ<EFBFBD></th>
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></th>
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ<EFBFBD></th>
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><></th>
<th class="t_label select-filter">Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ <20><></th>
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></th>
<th class="t_label select-filter">ǥ<><C7A5><EFBFBD><EFBFBD></th>
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></th>
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></th>
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></th>
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></th>
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></th>
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></th>
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></th>
<!--
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></th>
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></th>
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD> <20>ǻ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></th>
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD> <20>ǻ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></th>
-->
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></th>
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></th>
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></th>
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></th>
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></th>
<th class="t_label select-filter"><3E>ǻ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></th>
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></th>
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></th>
</tr>
</thead>
</table>
<input type="hidden" name="DepartAll" id="DepartAll" />
</div>
</div>
</div>
</div>
</div>
<!-- /.content -->
<!-- REQUIRED SCRIPTS -->
<script>
function numberPad(n, width) {
n = n + '';
return n.length >= width ? n : new Array(width - n.length + 1).join('0') + n;
}
var ColArr=[];
$(document).ready(function(){
if ($.cookie("p_column") != undefined){
var p_column = $.cookie("p_column").split(',');
for(var i=0; i<p_column.length; i++){
ColArr.push(parseInt(p_column[i]));
}
}else{
//ColArr = [14, 15, 16, 17];
}
var hh="";
//hh += "<div style='display: inline-block;'>";
//hh += " <button type='button' class='ui-button ui-widget ui-corner-all' id='depart'><3E><><EFBFBD><EFBFBD> <20>μ<EFBFBD> <20><><EFBFBD><EFBFBD></button>&nbsp;&nbsp;";
//hh += "</div>";
hh += "<div style='display: inline-block;float: right;'>";
hh += " <label><3E><><EFBFBD><EFBFBD>:&nbsp;</label>";
hh += " <input type='text' class='date text-center' name='p_sdate' id='p_sdate' readonly='readonly' />";
hh += " ~";
hh += " <input type='text' class='date text-center' name='p_edate' id='p_edate' readonly='readonly' />";
hh += "</div>";
var lang_kor = {
"decimal" : "",
"emptyTable" : "<22><><EFBFBD>ϵ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>.",
"info" : "_START_ - _END_ (<28><> _TOTAL_ <20><>)",
"infoEmpty" : "0<><30>",
"infoFiltered" : "(<28><>ü _MAX_ <20><> <20><> <20>˻<EFBFBD><CBBB><EFBFBD><EFBFBD><EFBFBD>)",
"infoPostFix" : "",
"thousands" : ",",
"lengthMenu" : "_MENU_ <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>",
"loadingRecords" : "<22>ε<EFBFBD><CEB5><EFBFBD>...",
"processing" : "ó<><C3B3><EFBFBD><EFBFBD>...",
"search" : "<22>˻<EFBFBD> : ",
"zeroRecords" : "<22>˻<EFBFBD><CBBB><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>.",
"paginate" : {
"first" : "ù <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
"last" : "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
"next" : "<22><><EFBFBD><EFBFBD>",
"previous" : "<22><><EFBFBD><EFBFBD>"
},
"aria" : {
"sortAscending" : " : <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>",
"sortDescending" : " : <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>"
},
"buttons":{
"colvisRestore": "<22>ʱ<EFBFBD>ȭ",
"copyTitle": "Ŭ<><C5AC><EFBFBD><EFBFBD><EFBFBD>忡 <20><><EFBFBD><EFBFBD><EFBFBD>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.",
"copySuccess": "%d <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>"
}
};
var now = new Date();
var month = now.getMonth()+1;
month = numberPad(month,2);
var colNum = function(data, type, row, meta){
return commify(data);
};
var colNumCost = function(data, type, row, meta){
return type !== "sort" ? commify(data) + (data != "" ? " <20><>": "") : data;
};
var colNumRate = function(data, type, row, meta){
return commify(data, true) + (data != "" ? " %": "");
};
var table = $('#ContactList').DataTable({
ajax:{
"type": "POST",
"url": "project_AjaxSelect.asp",
"dataType": "JSON",
"data":{
"Flag":"ContactList",
sdate: function(){ if($("#p_sdate").val() !=undefined){return $("#p_sdate").val()}else{ return now.getFullYear()+"-"+month+"-01" }},
edate: function(){ if($("#p_edate").val() !=undefined){return $("#p_edate").val()}else{ return ( new Date( now.getFullYear(), now.getMonth()+1, 0) ).getDate() }},
Depart: function(){return $("#DepartAll").val() }
},
},
columns:[
{"data": "Team", "class":"txt dt-body-center details-control"},
{"data": "p_state", "class":"txt dt-body-center"},
{"data": "p_sn", "class":"txt dt-body-center"},
{"data": "p_subject", "class":"txt dt-body-left"},
{"data": "p_cli_company_nm", "class":"txt dt-body-center"},
{"data": "p_method", "class":"txt dt-body-center"},
{"data": "p_sample", "class":"txt dt-body-center", "type":"num-fmt", "render":colNum},
{"data": "p_cont_cost", "class":"txt dt-body-center", "type":"num-fmt", "render":colNumCost},
{"data": "p_total_cost", "class":"txt dt-body-center", "type":"num-fmt", "render":colNumCost},
{"data": "pc_con_cost", "class":"txt dt-body-center", "type":"num-fmt", "render":colNumCost},
{"data": "sum_est", "class":"txt dt-body-center", "type":"num-fmt", "render":colNumCost},
{"data": "rate_est", "class":"txt dt-body-center", "type":"num-fmt", "render":colNumRate},
{"data": "sum_act", "class":"txt dt-body-center", "type":"num-fmt", "render":colNumCost},
{"data": "rate_act", "class":"txt dt-body-center", "type":"num-fmt", "render":colNumRate},
//{"data": "r_est", "class":"txt dt-body-center", "type":"num-fmt", "render":colNumCost},
//{"data": "r_act", "class":"txt dt-body-center", "type":"num-fmt", "render":colNumCost},
//{"data": "f_est", "class":"txt dt-body-center", "type":"num-fmt", "render":colNumCost},
//{"data": "f_act", "class":"txt dt-body-center", "type":"num-fmt", "render":colNumCost},
{"data": "p_decide_date", "class":"txt dt-body-center"},
{"data": "p_con_date_st", "class":"txt dt-body-center"},
{"data": "p_con_date_end", "class":"txt dt-body-center"},
{"data": "p_input_progress", "class":"txt dt-body-center"},
{"data": "r_user", "class":"txt dt-body-center"},
{"data": "f_user", "class":"txt dt-body-center"},
{"data": "p_input_user", "class":"txt dt-body-center"},
{"data": "p_input_dt", "class":"txt dt-body-center"},
],
columnDefs: [
{"className": "dt-head-center dt-body-center psn", "targets": "_all"},
{"visible": false, "targets": ColArr}
],
createRow: function(row, data, index){
$(row).addClass('hov');
},
fixedColumns: {
leftColumns: 3
},
dom:'lBfrtip',
scrollX: true,
scrollY: 480,
fixedHeader: true,
language:lang_kor,
paging:false,
pageLength: 50,
order: [[ 2, "asc" ]],
cache: false,
buttons: [
{
extend: 'copy',
text: 'List Copy',
},
{
extend: 'excel',
text: 'Excel Down',
title: '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><>Ȳ'
},
{
extend: 'colvis',
text: 'Column',
postfixButtons: [ 'colvisRestore' ]
},
],
filterDropDown: {
columns: [
{
idx: 0
},
{
idx: 1
},
{
idx: 5
}
],
},
initComplete: function () {
}
});
$("#ContactList_filterWrapper").append(hh);
$(document).off("click", ".buttons-columnVisibility").on("click", ".buttons-columnVisibility", function(e){
if($(this).hasClass("active")){
var idx = ColArr.indexOf($(this).index());
if(idx != -1){
ColArr.splice(idx,1);
}
}else{
ColArr.push($(this).index());
}
$.cookie("p_column",ColArr);
});
$(document).off("click", ".buttons-colvisRestore").on("click", ".buttons-colvisRestore", function(){
if(confirm("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>÷<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ʱ<EFBFBD>ȭ <20>˴ϴ<CBB4>.")){
$.removeCookie("p_column");
for(var i=0; i<$(".buttons-columnVisibility").length; i++){
if(!$(".buttons-columnVisibility").eq(i).hasClass("ui-state-active")){
$(".buttons-columnVisibility").eq(i).trigger("click");
}
}
}else{
return false;
}
});
$("#p_sdate").val($.datepicker.formatDate('yy-mm-dd', new Date(now.getFullYear(), now.getMonth(), 1)));
$("#p_edate").val($.datepicker.formatDate('yy-mm-dd', new Date(now.getFullYear(), now.getMonth()+1, 0)));
$.datepicker.regional['ko']={
closeText: '<27>ݱ<EFBFBD>',
changeYear: true,
changeMonth: true,
prevText: '<27><><EFBFBD><EFBFBD> <20><>',
nextText: '<27><><EFBFBD><EFBFBD> <20><>',
yearRange: '1990:+10',
dateFormat: "yy-mm-dd",
monthNames: ['1<><31>', '2<><32>', '3<><33>', '4<><34>', '5<><35>', '6<><36>', '7<><37>', '8<><38>', '9<><39>', '10<31><30>', '11<31><31>', '12<31><32>'],
monthNamesShort: ['1<><31>', '2<><32>', '3<><33>', '4<><34>', '5<><35>', '6<><36>', '7<><37>', '8<><38>', '9<><39>', '10<31><30>', '11<31><31>', '12<31><32>'],
dayNames: ['<27><>','<27><>','ȭ','<27><>','<27><>','<27><>','<27><>'],
dayNamesShort: ['<27><>','<27><>','ȭ','<27><>','<27><>','<27><>','<27><>'],
dayNamesMin: ['<27><>','<27><>','ȭ','<27><>','<27><>','<27><>','<27><>'],
showMonthAfterYear: true,
yearSuffix: '<27><>'
};
$.datepicker.setDefaults($.datepicker.regional['ko']);
table.on('draw', function () {
table.columns('.dt-filter').every( function ( ) {
var thisColumn = this;
} );
});
table.on('preXhr.dt', function(e, settings, data){
$(this).dataTable().api().clear();
settings.iDraw = 0; //set to 0, which means "initial draw" which with a clear table will show "loading..." again.
$(this).dataTable().api().draw();
});
table.on('xhr', function (e) {
setTimeout(function(){
TableFilter();
}, 0);
});
$(document).off("mouseover", "tbody > tr[role=row]").on("mouseover", "tbody > tr[role=row]", function(e){
$(".DTFC_Cloned tbody > tr[role=row]").eq($(this).index()).css("background-color","#e9e9e9");
$("tbody > tr[role=row]").eq($(this).index()).css("background-color","#e9e9e9");
});
$(document).off("mouseout", "tbody > tr[role=row]").on("mouseout", "tbody > tr[role=row]", function(){
$(".DTFC_Cloned tbody > tr[role=row]").eq($(this).index()).css("background-color","#ffffff");
$("tbody > tr[role=row]").eq($(this).index()).css("background-color","#ffffff");
});
$("#p_sdate").datepicker();
$("#p_sdate").datepicker("option", "maxDate", $("#p_edate").val());
$("#p_sdate").datepicker("option", "onClose", function(selectedDate){
$("#p_edate").datepicker("option", "minDate", selectedDate);
});
$("#p_sdate").datepicker("option", "onSelect", function(selectedDate){
table.ajax.reload();
});
$("#p_edate").datepicker();
$("#p_edate").datepicker("option", "minDate", $("#p_sdate").val());
$("#p_edate").datepicker("option", "onClose", function(selectedDate){
$("#p_edate").datepicker("option", "maxDate", selectedDate);
});
$("#p_edate").datepicker("option", "onSelect", function(selectedDate){
table.ajax.reload();
});
function TableFilter(){
$("#ContactList_filterSelect0").empty();
$("#ContactList_filterSelect1").empty();
$("#ContactList_filterSelect5").empty();
$("#ContactList_filterSelect0").append("<option value=''><3E>μ<EFBFBD></option>");
$.each(unique($.map(table.ajax.json().data, function(o){ return o.Team; })).sort(), function(i, o){
$("#ContactList_filterSelect0").append("<option value='"+o+"'>"+o+"</option>");
});
$("#ContactList_filterSelect1").append("<option value=''><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></option>");
$.each(unique($.map(table.ajax.json().data, function(o){ return o.p_state; })).sort(), function(i, o){
$("#ContactList_filterSelect1").append("<option value='"+o+"'>"+o+"</option>");
});
$("#ContactList_filterSelect5").append("<option value=''><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></option>");
$.each(unique($.map(table.ajax.json().data, function(o){ return o.p_method; })).sort(), function(i, o){
$("#ContactList_filterSelect5").append("<option value='"+o+"'>"+o+"</option>");
});
}
$('#ContactList tbody').on('click', 'tr', function () {
var data = table.row(this).data();
var p_sn = data.p_sn;
if(p_sn.indexOf("_") != -1){
var sn = p_sn.split('_');
winObj = window.open("project_list2_dep_2014.asp?p_sn="+sn[0]+"&p_sub_type=C&p_child_sn="+p_sn,"_blank","left=0,top=0,width=1400,height=800,scrollbars=yes,resizeable=yes",true);
}else{
winObj = window.open("project_ContactInfo.asp?p_sn="+p_sn,"_blank","left=0,top=0,width=1050,height=940,scrollbars=yes,resizeable=yes",true);
}
});
});
</script>
</div>
<!-- /.content-wrapper -->
<!-- #include virtual = "include/footer.asp" -->

View File

@@ -0,0 +1,483 @@
<%@ codepage="949" language="VBScript" %>
<!--METADATA TYPE = "typelib" NAME="ADODB Type Library" FILE="C:\Program Files\Common Files\SYSTEM\ADO\msado15.dll" -->
<OBJECT RUNAT=Server PROGID=ADODB.Connection id=adoConn></OBJECT>
<OBJECT RUNAT=Server PROGID=ADODB.Recordset id=Rs></OBJECT>
<OBJECT RUNAT=Server PROGID=ADODB.Recordset id=rsc></OBJECT>
<OBJECT RUNAT=Server PROGID=ADODB.Recordset id=adors></OBJECT>
<!-- #include file = "../lib/function.asp" -->
<%
'####################################################################################################
''???@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Dim sel_logo
sel_logo = "kri"
''@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
adoConn.CommandTimeout = 0
adoConn.ConnectionTimeout = 6000
Dim clientIp: clientIp = Request.ServerVariables("REMOTE_ADDR"): 'Response.Write clientIp
GNB_TITLE = "Korea Research Intranet"
Dim DevNode : DevNode = "real"
'DevNode = "TEST"
If DevNode = "TEST" Then
GNB_TITLE = "[" & DevNode & "] " & GNB_TITLE
End If
''//============
If( DevNode = "real" )Then
session("db_connect") = "Provider=SQLNCLI10.1;Password=krco#51304;Persist Security Info=True;User ID=sa;Initial Catalog=project2;Data Source=10.10.11.6;"
Else
session("db_connect") = "Provider=SQLOLEDB.1;Password=krco#51304;Persist Security Info=True;User ID=sa;Initial Catalog=project2;Data Source=10.10.15.177,1313"
End if
adoConn.open session("db_connect")
If split(request.servervariables("HTTP_url"), "/")(1) <> "login.asp" _
And split(split(request.servervariables("HTTP_url"), "/")(1), "?")(0) <> "login_ok.asp" _
And split(request.servervariables("HTTP_url"), "/")(1) <> "nk" Then
'response.write " IP check "
'call Time_Check(Session("Login_Check"))
End If
response.write "<br>"& Request.ServerVariables("REMOTE_ADDR")
'response.write "<br>"& replace(replace(Request.ServerVariables("REMOTE_ADDR"), "10.10.20.", "10.10.13."), "10.10.17.", "10.10.13.")
'response.write "<br>"& left(replace(replace(Request.ServerVariables("REMOTE_ADDR"), "10.10.20.", "10.10.13."), "10.10.17.", "10.10.13."),9)
if( left(replace(replace(Request.ServerVariables("REMOTE_ADDR"), "10.10.20.", "10.10.13."), "10.10.17.", "10.10.13."),9) <> "10.10.13." )then
response.write Request.ServerVariables("REMOTE_ADDR")
response.end
end if
%>
<!-- #include virtual = "ess/0config_ess.asp" -->
<!-- #include virtual = "lib/logger.asp" -->
<%
Response.Charset = "EUC-KR"
Response.codePage = "949"
Response.ContentType="text/html;charset=euc-kr"
%>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="euc-kr">
<meta name="viewport" content="width=1800">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
<title><%=GNB_TITLE%></title>
<% If Request("dialog") <> "1" Then %>
<% If Request("command") <> "excel" Then %>
<!-- Font Awesome Icons -->
<link rel="stylesheet" href="/css/all.min.css">
<!-- Template style -->
<link rel="stylesheet" href="/css/AdminLTE.css">
<!-- kiwi style -->
<link rel="stylesheet" href="/css/koin.css">
<!-- jQuery Ui -->
<link rel="stylesheet" href="/css/jquery-ui.min.css">
<!-- jQuery Confirm -->
<link rel="stylesheet" href="/css/jquery-confirm.min.css">
<!-- Bootstrap Select -->
<link rel="stylesheet" href="/css/bootstrap-select.min.css"/>
<!-- chartjs -->
<link rel="stylesheet" href="/css/Chart.min.css">
<!-- datatables -->
<link rel="stylesheet" href="/css/datatables.min.css"/>
<!-- tree js -->
<link rel="stylesheet" href="/css/treejs.min.css">
<!-- common style -->
<link rel="stylesheet" href="/css/main-common.css?ver=<%=date_time() %>">
<% End If %>
<!-- jQuery -->
<script src="/js/jquery.min.js"></script>
<!-- jQuery Pjax -->
<script src="/js/jquery.pjax.min.js"></script>
<!-- Bootstrap 4 -->
<script src="/js/bootstrap.bundle.min.js"></script>
<!-- AdminLTE App -->
<script src="/js/adminlte.min.js"></script>
<!-- jQuery Ui -->
<script src="/js/jquery-ui.min.js"></script>
<!-- jQuery Cookie -->
<script src="/js/jquery.cookie.js"></script>
<!-- jQuery Dialog Extend -->
<script src="/js/jquery.dialogextend.js"></script>
<!-- jQuery Confirm -->
<script src="/js/jquery-confirm.min.js"></script>
<!-- jQuery Form -->
<script src="/js/jquery.form.min.js"></script>
<!-- jQuery AjaxCall -->
<script src="/js/jquery-ajax-call.js"></script>
<!-- jQuery table2excel -->
<script src="/js/jquery.table2excel.js?v=1"></script>
<!-- Bootstrap Select -->
<script src="/js/bootstrap-select.min.js"></script>
<!-- Moment -->
<script src="/js/moment.js"></script>
<!-- chartjs -->
<script src="/js/Chart.js"></script>
<!-- datatables -->
<script src="/js/datatables.min.js"></script>
<!-- filterDropDown -->
<script src="/js/filterDropDown.js"></script>
<!-- Pagination Js -->
<script src="/js/pagination.js"></script>
<!-- FileSaver -->
<script src="/js/FileSaver.min.js"></script>
<!-- tree js -->
<script src="/js/tree.min.js"></script>
<!-- sort js -->
<script src="/js/sort-table.js"></script>
<!-- pdf js -->
<script src="/js/pdf.js"></script>
<script src="/js/pdf.worker.js"></script>
<!-- common -->
<script src="/js/common.js?ver=<%=date_time() %>"></script>
<% End If %>
<div class="content-body">
<div class="content">
<div class="container-fluid">
<div class="row">
<div class="col-12" >
<table class='table table-sm table-bordered table-headline nowrap' id="ContactList">
<thead>
<tr>
<th class=" "><3E>μ<EFBFBD></th>
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></th>
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ<EFBFBD></th>
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><></th>
<th class="t_label select-filter">Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ <20><></th>
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></th>
<th class="t_label select-filter">ǥ<><C7A5><EFBFBD><EFBFBD></th>
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></th>
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></th>
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></th>
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></th>
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></th>
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></th>
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></th>
<!--
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></th>
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></th>
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD> <20>ǻ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></th>
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD> <20>ǻ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></th>
-->
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></th>
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></th>
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></th>
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></th>
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></th>
<th class="t_label select-filter"><3E>ǻ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></th>
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></th>
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></th>
</tr>
</thead>
<%
Dim sdate : sdate = Request("sdate")
Dim edate : edate = Request("edate")
sdate = "2022-01-01"
edate = Date()
query = ""
query = query &"select * from"&VbCrlf
query = query &" ("&VbCrlf
query = query &" select"&VbCrlf
query = query &" isnull(PCode,'') PCode, isnull(PTeam,'') PTeam, p_sn, p_subject, p_cli_company_nm, '' as p_method, ''as p_sample ,"&VbCrlf
query = query &" p_cont_cost, isnull(p_total_cost,0) as p_total_cost, '' as pc_con_cost, '' as sum_est, '' as rate_est, '' as sum_act, '' as rate_act, "&VbCrlf
query = query &" '' as r_est, '' as r_act, '' as f_est, '' as f_act, convert(varchar(10), p_decide_date,23) p_decide_date,"&VbCrlf
query = query &" '' as p_con_date_st, '' as p_con_date_end, p_state, '' as r_user, '' as f_user, p_input_user, p_name, convert(varchar(10), p_input_dt,23) p_input_dt, '' as p_input_progress from"&VbCrlf
query = query &" ("&VbCrlf
query = query &" select f.Code as PCode, f.T_Name as PTeam,T.* from"&VbCrlf
query = query &" ("&VbCrlf
query = query &" select p_sn, p_subject, a.p_cli_company_cd, b.p_cli_company_nm, p_total_cost, p_obtain_cost,"&VbCrlf
query = query &" p_cont_cost, p_decide_date, a.p_input_dt, a.p_input_user, e.p_name,"&VbCrlf
query = query &" case p_state"&VbCrlf
query = query &" when 'E' then '<27><><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD>)'"&VbCrlf
query = query &" when 'K' then '<27><><EFBFBD><EFBFBD>'"&VbCrlf
query = query &" when 'D' then '<27><><EFBFBD><EFBFBD>'"&VbCrlf
query = query &" when 'X' then 'Ż<><C5BB>'"&VbCrlf
query = query &" when 'P' then '<27><><EFBFBD><EFBFBD>'"&VbCrlf
query = query &" when 'C' then '<27><><EFBFBD><EFBFBD>'"&VbCrlf
query = query &" when 'F' then '<27>Ϸ<EFBFBD>' end p_state,"&VbCrlf
query = query &" Case "&VbCrlf
query = query &" When p_Depart_N is null then cast(p_depart_dep as varchar)"&VbCrlf
query = query &" Else p_Depart_N+p_Team_N"&VbCrlf
query = query &" End Team"&VbCrlf
query = query &" from project2.dbo.T_PROJECT_BASE a with(nolock) "&VbCrlf
query = query &" left join project2.dbo.V_CLIENT_COMP b with(nolock) on a.p_cli_company_cd=b.p_cli_company_cd"&VbCrlf
query = query &" left join project2.dbo.V_Person e with(nolock) on a.p_input_user = e.p_no"&VbCrlf
query = query &" ) T"&VbCrlf
query = query &" left join project2.dbo.v_Department f with(nolock) on T.Team=f.Code or T.Team=f.before_t_cd1"&VbCrlf
query = query &" ) as A"&VbCrlf
query = query &" union all"&VbCrlf
query = query &" "&VbCrlf
query = query &" select"&VbCrlf
query = query &" isnull(Tcode,'') Tcode, isnull(depart_name,'') depart_name, p_child_sn as p_sn, p_subject, p_cli_company_nm, p_method_nm, isnull(p_sample,'') p_sample, p_cont_cost, p_total_cost, isnull(pc_cont_cost,0) pc_cont_cost,"&VbCrlf
query = query &" sum_est, case when pc_cont_cost = 0 or isnull(pc_cont_cost,0) = 0 then 0 else (isnull(sum_est,0)*100)/pc_cont_cost end as rate_est,"&VbCrlf
query = query &" sum_act, case when pc_cont_cost = 0 or isnull(pc_cont_cost,0) = 0 then 0 else (isnull(sum_act,0)*100)/pc_cont_cost end as rate_act,"&VbCrlf
query = query &" r_est, r_act, f_est, f_act, '', "&VbCrlf
query = query &" isnull(p_con_date_st,'') p_con_date_st, isnull(p_con_date_end,'') p_con_date_end, p_state, isnull(r_user, '') as r_user, isnull(f_user, '') as f_user, p_input_user, isnull(p_name,'') p_name, convert(varchar(10), p_input_dt,23) p_input_dt, "&VbCrlf
query = query &" CASE WHEN left(p_input_complete, 1) = 'x' THEN '<27><><EFBFBD><EFBFBD> ' ELSE '' END + "&VbCrLf
query = query &" CASE WHEN substring(p_input_complete, 2, 1) = 'x' THEN '<27>ǻ<EFBFBD>' + "&VbCrLf
query = query &" CASE WHEN p_field_dept = '8' THEN "&VbCrLf
query = query &" CASE WHEN ISNULL(qc_prog, '') = '' THEN '(QC) ' ELSE '' END "&VbCrLf
query = query &" WHEN p_field_dept = '9' THEN "&VbCrLf
query = query &" CASE WHEN ISNULL(SV_prog, '') = '' THEN '(SV) ' ELSE '' END "&VbCrLf
query = query &" ELSE "&VbCrLf
query = query &" CASE WHEN ISNULL(SV_prog, '') = '' THEN "&VbCrLf
query = query &" '(SV' + "&VbCrLf
query = query &" CASE WHEN ISNULL(qc_prog, '') = '' THEN ', QC) ' ELSE ') ' END "&VbCrLf
query = query &" ELSE "&VbCrLf
query = query &" CASE WHEN ISNULL(qc_prog, '') = '' THEN '(QC) ' ELSE '' END "&VbCrLf
query = query &" END "&VbCrLf
query = query &" END "&VbCrLf
query = query &" ELSE '' "&VbCrLf
query = query &" END + "&VbCrLf
query = query &" CASE WHEN left(p_input_complete, 1) = 'x' OR substring(p_input_complete, 2, 1) = 'x' THEN '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>Է<EFBFBD>' ELSE '' END AS p_input_progress "&VbCrLf
query = query &" from"&VbCrlf
query = query &" ("&VbCrlf
query = query &" SELECT p_field_dept, p_is_dept,"&VbCrlf
query = query &" TPB.p_Depart_N+TPB.p_Team_N as Tcode,"&VbCrlf
query = query &" ISNULL(ISNULL(DRE.depart_name, DFI.depart_name), DDE.depart_name) AS depart_name,"&VbCrlf
query = query &" TPM.p_child_sn, TPM.p_subject,"&VbCrlf
query = query &" VCC.p_cli_company_nm,"&VbCrlf
query = query &" TPM.p_method_cd,"&VbCrlf
query = query &" TPMC.p_method_nm,"&VbCrlf
query = query &" TPM.p_sample, --ǥ<><C7A5>"&VbCrlf
query = query &" TPB.p_cont_cost, --<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"&VbCrlf
query = query &" TPB.p_total_cost, --<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"&VbCrlf
query = query &" TPM.p_cont_cost as pc_cont_cost, --<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"&VbCrlf
query = query &" ISNULL(DC.sum_est, 0) AS sum_est, --<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"&VbCrlf
query = query &" (ISNULL(DC.sum_act, 0) + ISNULL(MC.marketing_cost, 0) + ISNULL(JC.job_money, 0)) AS sum_act, --<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"&VbCrlf
query = query &" ISNULL(DC.sum_act, 0) AS sum_act_tmp,"&VbCrlf
query = query &" ISNULL(DC.r_est, 0) AS r_est,"&VbCrlf
query = query &" ISNULL(DC.r_act, 0) AS r_act,"&VbCrlf
query = query &" ISNULL(DC.f_est, 0) AS f_est,"&VbCrlf
query = query &" ISNULL(DC.f_act, 0) AS f_act,"&VbCrlf
query = query &" TPM.p_con_date_st,"&VbCrlf
query = query &" TPM.p_con_date_end,"&VbCrlf
query = query &" TPM.p_progress_status,"&VbCrlf
query = query &" TPM.p_input_complete,"&VbCrlf
query = query &" DCF.sv_prog,"&VbCrlf
query = query &" DCF.qc_prog,"&VbCrlf
query = query &" ISNULL(TPM.p_research_complete, 0) AS p_research_complete,"&VbCrlf
query = query &" ISNULL(TPM.p_field_complete, 0) AS p_field_complete,"&VbCrlf
query = query &" ISNULL(TPM.p_dp_complete, 0) AS p_dp_complete,"&VbCrlf
query = query &" TPM.p_sn, RU.p_name as r_user, FU.p_name as f_user, VP.p_name, TPB.p_input_user, TPM.p_input_dt,"&VbCrlf
query = query &" case p_progress_status when '008' then case when p_research_complete='1' and p_field_complete='1' and p_dp_complete='1' then '<27>Ϸ<EFBFBD>' else '<27><><EFBFBD><EFBFBD>' end else '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' end p_state"&VbCrlf
query = query &" FROM project2.dbo.T_PROJECT_METHOD TPM with(nolock) LEFT JOIN"&VbCrlf
query = query &" project2.dbo.T_PROJECT_BASE TPB with(nolock) on TPM.p_sn = TPB.p_sn LEFT JOIN"&VbCrlf
query = query &" project2.dbo.T_PROJECT_METHOD_CD TPMC with(nolock) ON TPM.p_method_cd = TPMC.p_method_cd LEFT JOIN"&VbCrlf
query = query &" project2.dbo.V_Person VP with(nolock) ON TPB.p_input_user = VP.p_no LEFT JOIN"&VbCrlf
query = query &" project2.dbo.V_Person RU with(nolock) ON TPM.p_rsch_1_a = RU.p_no LEFT JOIN"&VbCrlf
query = query &" project2.dbo.V_Person FU with(nolock) ON TPM.p_sv_1 = FU.p_no LEFT JOIN"&VbCrlf
query = query &" project2.dbo.V_CLIENT_COMP VCC with(nolock) ON TPM.p_cli_company_cd = VCC.p_cli_company_cd LEFT JOIN"&VbCrlf
query = query &" project2.dbo.direct_cost_field DCF with(nolock) ON TPM.p_child_sn = DCF.p_child_sn AND DCF.del_yn = 'n' LEFT JOIN"&VbCrlf
query = query &" ("&VbCrlf
query = query &" SELECT DISTINCT LEFT(CASE WHEN D_Code = 'S' AND before_t_cd1 IN (17, 18, 19) THEN 'DCO' ELSE T_Name END, 8) AS depart_name, "&VbCrlf
query = query &" before_t_cd1 AS depart_code "&VbCrlf
query = query &" FROM project2.dbo.v_Department with(nolock) "&VbCrlf
query = query &" WHERE before_t_cd1 NOT IN ('0', '18')"&VbCrlf
query = query &" ) DDE ON TPB.p_depart_dep = DDE.depart_code LEFT JOIN"&VbCrlf
query = query &" ("&VbCrlf
query = query &" SELECT DISTINCT LEFT(T_Name, 8) AS depart_name, before_t_cd1 AS depart_code"&VbCrlf
query = query &" FROM project2.dbo.v_Department with(nolock) "&VbCrlf
query = query &" WHERE before_t_cd1 NOT IN ('17', '18', '0')"&VbCrlf
query = query &" ) DRE ON TPM.p_rsch_dept = DRE.depart_code LEFT JOIN"&VbCrlf
query = query &" ("&VbCrlf
query = query &" SELECT DISTINCT LEFT(T_Name, 8) AS depart_name, before_t_cd1 AS depart_code"&VbCrlf
query = query &" FROM project2.dbo.v_Department with(nolock) "&VbCrlf
query = query &" WHERE before_t_cd1 NOT IN ('17', '18', '0')"&VbCrlf
query = query &" ) DFI ON TPM.p_field_dept = DFI.depart_code LEFT JOIN"&VbCrlf
query = query &" ("&VbCrlf
query = query &" SELECT p_child_sn,"&VbCrlf
query = query &" sum(CONVERT(money, est_money)) AS sum_est,"&VbCrlf
query = query &" sum(CONVERT(money, act_money)) AS sum_act,"&VbCrlf
query = query &" sum(case when cost_type = 'research' then CONVERT(money, est_money) else 0 end) AS r_est,"&VbCrlf
query = query &" sum(case when cost_type = 'research' then CONVERT(money, act_money) else 0 end) AS r_act,"&VbCrlf
query = query &" sum(case when cost_type = 'field' then CONVERT(money, est_money) else 0 end) AS f_est,"&VbCrlf
query = query &" sum(case when cost_type = 'field' then CONVERT(money, act_money) else 0 end) AS f_act"&VbCrlf
query = query &" FROM project2.dbo.direct_cost with(nolock) "&VbCrlf
query = query &" WHERE p_child_sn > '17' AND del_yes_no = 'no'"&VbCrlf
query = query &" GROUP BY p_child_sn"&VbCrlf
query = query &" ) DC ON TPM.p_child_sn = DC.p_child_sn LEFT JOIN"&VbCrlf
query = query &" ("&VbCrlf
query = query &" SELECT M.p_sn, SUM(CONVERT(money, REPLACE(CONVERT(varchar(100), M.target6), ',', ''))) AS marketing_cost"&VbCrlf
query = query &" FROM project2.dbo.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> M with(nolock) LEFT JOIN project2.dbo.Document D with(nolock) ON M.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = D.d_no"&VbCrlf
query = query &" WHERE M.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> = '<27><><EFBFBD><EFBFBD><EFBFBD>񺸰<EFBFBD><F1BAB8B0><EFBFBD>' AND M.del_yes_no = 'no'"&VbCrlf
query = query &" AND D.d_order_cnt = '77'"&VbCrlf
query = query &" GROUP BY M.p_sn"&VbCrlf
query = query &" ) MC ON TPM.p_child_sn = MC.p_sn LEFT JOIN"&VbCrlf
query = query &" ("&VbCrlf
query = query &" SELECT CA.p_sn, SUM(CA.cost_money) AS job_money"&VbCrlf
query = query &" FROM project2.dbo.cost_account CA with(nolock) LEFT JOIN project2.dbo.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> M with(nolock) ON CA.d_no = M.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ"&VbCrlf
query = query &" LEFT JOIN project2.dbo.Document D with(nolock) ON M.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = D.d_no"&VbCrlf
query = query &" WHERE CA.cost_money > 0 AND CA.approval = 'yes'"&VbCrlf
query = query &" AND M.del_yes_no = 'no' AND D.d_order_cnt = '77'"&VbCrlf
query = query &" GROUP BY CA.p_sn"&VbCrlf
query = query &" ) JC ON TPM.p_child_sn = JC.p_sn"&VbCrlf
query = query &" where TPM.p_child_sn is not null"&VbCrlf
query = query &" ) as A"&VbCrlf
query = query &" ) AA"&VbCrlf
query = query&" where p_input_dt between '"&sdate&"' and '"&edate&"' and p_state <> '<27><><EFBFBD><EFBFBD>'"&VBCrlf
if Depart <> "1" Then
if cint(session("Depart_Code")) >= 20 Then
query = query & " AND (PCode = '" & Session("N_depart") & Session("N_team") &"' " & vbCrLf
if session("depart_code") = 64 Then
query = query & " OR PCode = 'R601' " & vbCrLf
End IF
if session("depart_code") = 63 Then
query = query & " OR PCode = 'R602' " & vbCrLf
End IF
query = query & " ) "
End if
if session("User_Number") = "20000201" Then
query = query & " AND PCode in ('R601', 'R602', 'R603','R604') " & vbCrLf
End IF
if session("User_Number") = "20190601" Then
query = query & " AND PCode in ('R701', 'R702', 'R501') " & vbCrLf
End IF
if session("User_Number") = "20190301" Then '<27><><EFBFBD><EFBFBD>ö - 2024-06-17 M3<4D>׷<EFBFBD> (20210105)<29><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>븮
query = query & " AND PCode in ('R703', 'R704') " & vbCrLf
End IF
End If
query = query&" ORDER BY p_sn"&VbCrlf
'response.write query
rsc.Open query, adoConn, 1
Redim data(rsc.recordcount-1)
iCnt = 0
if not rsc.eof then
while not rsc.eof
'if rsc("PTeam") = "" Then
' Contact("Team") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
'Else
' Contact("Team") = rsc("PTeam")
'End If
'Contact("p_sn") = rsc("p_sn")
'Contact("p_subject") = replace(rsc("p_subject"), """", "&quot;")
'Contact("p_cli_company_nm") = rsc("p_cli_company_nm")
'If rsc("p_method") = "" Then
' Contact("p_method") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
'Else
' Contact("p_method") = rsc("p_method")
'End If
'Contact("p_sample") = Cdbl(rsc("p_sample"))
'Contact("p_cont_cost") = Cdbl(rsc("p_cont_cost"))
'Contact("p_total_cost") = Cdbl(rsc("p_total_cost"))
'Contact("pc_con_cost") = Cdbl(rsc("pc_con_cost"))
'Contact("sum_est") = Cdbl(rsc("sum_est"))
'Contact("rate_est") = Round(Cdbl(rsc("rate_est")),2)
'Contact("sum_act") = Cdbl(rsc("sum_act"))
'Contact("rate_act") = Round(Cdbl(rsc("rate_act")),2)
'Contact("r_est") = Cdbl(rsc("r_est"))
'Contact("r_act") = Cdbl(rsc("r_act"))
'Contact("f_est") = Cdbl(rsc("f_est"))
'Contact("f_act") = Cdbl(rsc("f_act"))
'Contact("p_decide_date") = rsc("p_decide_date")
'Contact("p_con_date_st") = rsc("p_con_date_st")
'Contact("p_con_date_end") = rsc("p_con_date_end")
'Contact("p_state") = rsc("p_state")
'If rsc("p_name") = "" then
' Contact("p_input_user") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
'Else
' Contact("p_input_user") = rsc("p_name")
'End If
'If rsc("r_user") = "" then
' Contact("r_user") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
'Else
' Contact("r_user") = rsc("r_user")
'End If
'If rsc("f_user") = "" then
' Contact("f_user") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
'Else
' Contact("f_user") = rsc("f_user")
'End If
'Contact("p_input_dt") = rsc("p_input_dt")
'Contact("p_input_progress") = rsc("p_input_progress")
iCnt = iCnt + 1
response.write "<tr>"
response.write "<td >"& rsc("PTeam") &"</td>"
response.write "<td >"&rsc("p_state") &"</td>"
response.write "<td >"&rsc("p_sn") &"</td>"
response.write "<td >"&rsc("p_subject") &"</td>"
response.write "<td >"&rsc("p_cli_company_nm") &"</td>"
response.write "<td >"&rsc("p_method") &"</td>"
response.write "<td >"&rsc("p_sample") &"</td>"
response.write "<td >"&rsc("p_cont_cost") &"</td>"
response.write "<td >"&rsc("p_total_cost") &"</td>"
response.write "<td >"&rsc("pc_con_cost") &"</td>"
response.write "<td >"&rsc("sum_est") &"</td>"
response.write "<td >"&rsc("rate_est") &"</td>"
response.write "<td >"&rsc("sum_act") &"</td>"
response.write "<td >"&rsc("rate_act") &"</td>"
response.write "<td >"&rsc("p_decide_date") &"</td>"
response.write "<td >"&rsc("p_con_date_st") &"</td>"
response.write "<td >"&rsc("p_con_date_end") &"</td>"
response.write "<td >"&rsc("p_input_progress") &"</td>"
response.write "<td >"&rsc("r_user") &"</td>"
response.write "<td >"&rsc("f_user") &"</td>"
response.write "<td >"&rsc("p_input_user") &"</td>"
response.write "<td >"&rsc("p_input_dt") &"</td>"
response.write "</tr>"
rsc.movenext
wend
End If
rsc.close
%>
</table>
<input type="hidden" name="DepartAll" id="DepartAll" />
</div>
</div>
</div>
</div>
</div>
<!-- /.content -->
<!-- REQUIRED SCRIPTS -->
<script>
function numberPad(n, width) {
n = n + '';
return n.length >= width ? n : new Array(width - n.length + 1).join('0') + n;
}
var ColArr=[];
$(document).ready(function(){
$(".main-header").remove(); //-- <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
$("#ContactList_filterWrapper").remove() //-- <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
});
</script>
</div>

View File

@@ -0,0 +1,746 @@
<!-- #include virtual = "include/header.asp" -->
<!-- #include virtual = "include/left.asp" -->
<%
Dim p_sn
project_document_flag = Request("project_document_flag")
'---------------------------------------
'p_sn<73><6E><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
if request("p_sn") <> "" then
p_sn = request("p_sn")
Else
query = " SELECT isnull(max(cast(p_sn as int)),'0') as p_sn FROM T_PROJECT_BASE WHERE substring(p_sn, 0, 5) = CONVERT(CHAR(4), getdate(), 12) "&VbCrlf
Rs.Open query, adoConn, 1
if Rs.RecordCount > 0 then
If Rs("p_sn") = "0" Then
p_sn = right("0" & year(date()), 2) & right("0" & month(date()), 2) & "001"
Else
p_sn = Cdbl(Rs("p_sn"))+1
End IF
else
p_sn = right("0" & year(date()), 2) & right("0" & month(date()), 2) & "001"
end if
Rs.Close
End If
%>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<style>
table.contact {
width:1000px;
border:1px solid #dddddd;
border-spacing:1px;
border-collapse:collapse;
}
.contact td, th{
border:1px solid #dddddd;
}
tbody th.t_label{
width:100px;
text-align:center;
vertical-align:middle;
background-color:#eaeaea;
}
.ComList{
border:1px solid #dddddd;
cursor:pointer;
}
.ComList:hover{
background-color:#fed600;
}
.PerList{
width:100%;
border:1px solid #dddddd;
border-spacing:1px;
border-collapse:collapse;
}
.PerList tbody tr:hover{
background-color:#fed600;
cursor:pointer;
}
.PerAdd{
width:100%;
border:1px solid #dddddd;
border-spacing:1px;
border-collapse:collapse;
}
textarea{
width:100%;
height:300px;
resize: none;
}
input{
vertical-align: middle;
margin-right: -4px;
font-size: 12px;
outline:none;
}
select{
vertical-align: middle;
/*margin-right: -4px;*/
font-size: 12px;
outline:none;
}
.inputBtn{
border-bottom-left-radius: 0px;
border-top-left-radius: 0px;
font-size: 6px;
vertical-align: middle;
}
.InputUnit{
background:#f6f6f6;
border: 1px solid #c5c5c5;
border-bottom-left-radius: 0px;
border-top-left-radius: 0px;
vertical-align: middle;
padding: .1em 1em;
display: inline-block;
position: relative;
margin-left:3px;
}
.InputNumber{
text-align:right;
}
legend{
font-weight:bold;
font-size:14px;
}
fieldset > label {
margin: 3px 3px;
}
.SaveWarp{
width:100%;
margin: 15px 0px;
}
.SaveContainer{
width:1000px;
text-align:center;
font-size: 14px;
}
.SaveContainer button{
margin: 0px 5px;
}
#p_subject{
width:100%;
}
.ClientAdd {
display:none;
}
label{
margin-bottom:0;
}
input[type=text], input[type=number], textarea, select{
border:1px solid #c5c5c5;
}
</style>
<!-- Content Header (Page header) -->
<div class="content-header">
<h1><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD></h1>
</div>
<!-- /.content-header -->
<!-- Main content -->
<div class="content-body">
<div class="content">
<div class="container-fluid">
<div class="row">
<div class="col-12">
<div id="dialog-form" title="Client Search">
<input type="hidden" name="CompanyCode" id="CompanyCode" />
<input type="hidden" name="CompanyName" id="CompanyName" />
<fieldset>
<input type="text" name="SearchText" id="SearchText" value="" placeholder="ȸ<><C8B8><EFBFBD><EFBFBD>"/>
<label>
<button type="button" class="ui-button ui-widget ui-corner-all" id="Search"><span class="ui-icon ui-icon-search" ></span></button>
</label>
</fieldset>
<fieldset class="ClientList">
</fieldset>
<fieldset class="ClientAdd">
</fieldset>
</div>
<form id="proposalForm" name="pms" method="post">
<table class='contact'>
<tbody class="ui-widget-content">
<tr>
<th class="t_label" colspan="2"><3E><><EFBFBD>ȸ<EFBFBD></th>
<td>
<input type='hidden' name='p_sn' id= 'p_sn' value='<%=p_sn %>' />
<input type='text' class='txt-md' name='p_subject' id='p_subject' value=''/>
</td>
</tr>
<tr>
<th class="t_label" colspan="2"><3E>߻<EFBFBD> <20><><EFBFBD><EFBFBD></th>
<td colspan="2">
<select name="p_contactor" id="p_contactor">
<option value=""><3E><><EFBFBD><EFBFBD></option>
<option value="001"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></option>
<option value="002"><3E><><EFBFBD>Ȱ<EFBFBD><C8B0><EFBFBD></option>
<option value="003"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></option>
<option value="004"><3E><><EFBFBD>ǰ<EFBFBD><C7B0><EFBFBD></option>
</select>
</td>
</tr>
<tr>
<th class="t_label" rowspan='6'>Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ</th>
<th class="t_label">ȸ<><C8B8></th>
<td>
<input type='hidden' name='p_cli_company_cd' id='p_cli_company_cd'/>
<input type='text' name='p_cli_company_nm' id='p_cli_company_nm' readonly="readonly"/>
<button type="button" class="ui-button ui-widget ui-corner-all inputBtn" id="ClientSearch"><span class="ui-icon ui-icon-search"></span></button>
</td>
</tr>
<tr>
<th class="t_label"><3E>μ<EFBFBD></th>
<td>
<input type='text' class='Client' name='p_cli_depart' id='p_cli_depart' readonly="readOnly"/>
</td>
</tr>
<tr>
<th class="t_label"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20≯<EFBFBD></th>
<td>
<input type='hidden' class='Client' name='p_cli_per_cd' id='p_cli_per_cd' readonly="readOnly"/>
<input type='text' class='Client' name='p_cli_per_nm' id='p_cli_per_nm' readonly="readOnly"/>
</td>
</tr>
<tr>
<th class="t_label">ȸ<><C8B8> <20><>ȭ<EFBFBD><C8AD>ȣ</th>
<td>
<input type='text' class='Client' name='p_cli_per_com_tel' id='p_cli_per_com_tel' readonly="readOnly"/>
</td>
</tr>
<tr>
<th class="t_label"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>޴<EFBFBD><DEB4><EFBFBD></th>
<td>
<input type='text' class='Client' name='p_cli_per_tel' id='p_cli_per_tel' readonly="readOnly"/>
</td>
</tr>
<tr>
<th class="t_label"><3E≯<EFBFBD><CCB8><EFBFBD></th>
<td>
<input type='text' class='Client' name='p_cli_per_email' id='p_cli_per_email' readonly="readOnly"/>
</td>
</tr>
<tr>
<th class="t_label" colspan="2">KRi or KRC or KRD</th>
<td>
<input type="radio" name="p_project_type_cd" class="p_project_type_cd" value="kri" checked> &nbsp; KRi
&nbsp;&nbsp;&nbsp;
<input type="radio" name="p_project_type_cd" class="p_project_type_cd" value="krc" > &nbsp; KRC
&nbsp;&nbsp;&nbsp;
<input type="radio" name="p_project_type_cd" class="p_project_type_cd" value="krd" > &nbsp; KRD
</td>
</tr>
<tr>
<th class="t_label" colspan="2"><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></th>
<td>
<input type="radio" name="p_project_nation_cd" class="p_project_nation_cd" value="ko" checked> &nbsp; <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
&nbsp;&nbsp;&nbsp;
<input type="radio" name="p_project_nation_cd" class="p_project_nation_cd" value="fn" > &nbsp; <20>ؿ<EFBFBD> <20><><EFBFBD><EFBFBD>
</td>
</tr>
<tr>
<th class="t_label" colspan="2"><3E><><EFBFBD><EFBFBD></th>
<td>
<select name="p_client_type_cd" id="p_client_type_cd">
<option value=""><3E><><EFBFBD><EFBFBD></option>
<%
query = " select p_client_type_cd, p_client_type_nm from project2.dbo.T_CLIENT_TYPE_CD where p_client_type_yn='y' "
Rs.Open query, adoConn, 1
if not Rs.eof Then
while not Rs.eof
Response.Write "<option value='"&Rs("p_client_type_cd")&"'>"&Rs("p_client_type_nm")&"</option>"
Rs.movenext
wend
End If
Rs.close
%>
</select>
</td>
</tr>
<tr>
<th class="t_label" colspan="2"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></th>
<td>
<input type='text' class='InputNumber' name='p_cont_cost' id='p_cont_cost' value=''/><label class="ui-widget ui-corner-all InputUnit"><3E><></label>(Vat<61><74><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
</td>
</tr>
<tr>
<th class="t_label" colspan="2"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></th>
<td>
<input type='number' class='InputNumber' name='p_cost_rate' id='p_cost_rate' value=''/><label class="ui-widget ui-corner-all InputUnit">%</label>
</td>
</tr>
<tr>
<th class="t_label" colspan="2"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></th>
<td>
<input type='text' class='txt-xsm' name='p_decide_date' id='p_decide_date' value='' readOnly="readOnly"/>
</td>
</tr>
<tr>
<th class="t_label" colspan="2"><3E><><EFBFBD><EFBFBD></th>
<td>
<textarea class='txt-lg' name="p_memo" id="p_memo"></textarea>
</td>
</tr>
</tbody>
</table>
<div class="SaveWarp">
<div class="SaveContainer" style="width: 1000px;">
<button type='button' class="ui-button ui-widget ui-corner-all" name="ContactSave" id="ContactSave"><3E><><EFBFBD><EFBFBD></button>
</div>
</div>
<% if p_state = "X" then %>
<div style="z-index:10;position:absolute; top:120px; left:720px;;width:340px;height:320px;background-color:#F8E0E0;">
<div style="z-index:100;position:absolute; top:5px; left:5px;width:330px;height:310px;background-color:#FFFFFF;">
<table style="z-index:150;position:absolute; top:25px; left:25px;;width:280px;height:260px;background-color:#E6E6E6;" cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="center" style="font-family:'malgun gothic';"><font color="red" size="3"><b>Ż<><C5BB> <20><><EFBFBD><EFBFBD></b></font></td>
</tr>
<tr height="180px">
<td align="LEFT" style="font-family:'malgun gothic';">
<div style="z-index:200;position:absolute; top:60px; left:3px;width:250px;height:170px;background-color:#FFFFFF;margin:15px;overflow:auto;">
<%=replace(p_drop_reason, chr(13), "<br>") %>
</div>
</td>
</tr>
</table>
</div>
</div>
<% end if %>
</form>
</div>
</div>
</div>
</div>
</div>
<!-- /.content -->
<!-- REQUIRED SCRIPTS -->
<script>
// <20>Ѿ<EFBFBD><D1BE><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> üũ<C3BC>մϴ<D5B4>.
// !value <20>ϸ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϱ<EFBFBD> <20><><EFBFBD><EFBFBD>
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> value == <20><><EFBFBD><EFBFBD>
// [], {} <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ó<><C3B3>
var isEmpty = function(value){
if( value == "" || value == null || value == undefined || ( value != null && typeof value == "object" && !Object.keys(value).length ) ){
return true
}else{
return false
}
};
$(document).ready(function(){
$("input[type='text']").attr("autocomplete","off");
$(".widget").find("input").checkboxradio();
//Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ Dialog
var dialog = $("#dialog-form").dialog({
autoOpen: false,
height: 400,
width: 350,
modal: true,
beforeClose: function() {
$("#dialog-form").find("input").val("");
$(".ClientList").empty();
$(".ClientAdd").empty();
$(".ClientAdd").css("display","none");
},
buttons: {
Cancel: function() {
$("#dialog-form").find("input").val("");
$(".ClientList").empty();
$(".ClientAdd").empty();
$(".ClientAdd").css("display","none");
dialog.dialog( "close" );
}
},
close: function() {
}
});
//Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ <20>˻<EFBFBD>
$("#ClientSearch").button().on("click", function() {
dialog.dialog( "open" );
});
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>߰<EFBFBD>
$(document).off('click', "#add").on('click', "#add",function(){
ClientAjax("CliInfo");
});
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD>
$(document).off("click", "#addOk").on("click", "#addOk", function(){
if($("#cli_nm").val() == ""){
alert("<22><><EFBFBD><EFBFBD><EFBFBD>ڸ<EFBFBD><DAB8><EFBFBD> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
$("#cli_nm").focus();
return false;
}
var p_flag;
if($("#cli_per_cd").val() == ""){
p_flag="CliPerson";
}else{
p_flag="CliEdit";
}
$.ajax({
url:"project_AjaxCliSave.asp",
type:"POST",
async:false,
data:{
"flag" : p_flag,
"p_cli_company_cd": $("#CompanyCode").val(),
"p_cli_per_cd": $("#cli_per_cd").val(),
"cli_depart": escape($("#cli_depart").val()),
"cli_nm": escape($("#cli_nm").val()),
"cli_tel": $("#cli_tel").val(),
"cli_phone": $("#cli_phone").val(),
"cli_email": $("#cli_email").val(),
},
success:function(res){
alert("<22><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD>");
},
error:function(err){
alert("System Error\n<><6E><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>");
console.log(err);
return false
}
});
CompanyAjax("CompanyPerson", $("#CompanyCode").val());
$(".cnm").text($(".cnm2").text());
$(".ClientAdd").empty();
$(".ClientAdd").css("display", "none");
});
//Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ <20>˻<EFBFBD>
$("#p_cli_company_nm").on("click",function(){
$("#ClientSearch").trigger("click");
});
//Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ <20>˻<EFBFBD>
$("#SearchText").keypress(function (e) {
if (e.which == 13){
$("#Search").trigger("click");
}
});
//Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ <20>˻<EFBFBD>
$("#Search").on("click",function(){
var flag = "CompanyList";
var SearchText = $("#SearchText").val();
if(SearchText == ""){
alert("<22>˻<EFBFBD><CBBB><20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
$("#SearchText").focus();
return false;
}
CompanyAjax(flag, SearchText);
$(".ClientAdd").empty();
});
//Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ<EFBFBD><C6AE>
$(document).off("click",".ComList").on("click",".ComList",function(){
var flag = "CompanyPerson";
var CompanyCode = $(this).find("input").val();
var CompanyName = $(this).text();
$("#CompanyCode").val(CompanyCode);
$("#CompanyName").val(CompanyName);
if (CompanyName == ""){
alert("ȸ<><C8B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Ŭ<><C5AC><EFBFBD>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
return false;
}
CompanyAjax(flag, CompanyCode);
$(".Cnm").text(CompanyName);
});
$(document).off("click","#ComAddBtn").on("click","#ComAddBtn",function(){
if($("#ComAddCancleBtn").is(":visible")){
if($("#ComAddName").val().trim() == ""){
alert("<22>߰<EFBFBD><DFB0>Ͻ<EFBFBD> Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ ȸ<><C8B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>.");
return false;
}
$.ajax({
url:"cli_new_ok_2014.asp",
type:"POST",
data:{"comp_name" : escape($("#ComAddName").val())},
success:function(res){
if(res == "1"){
alert("Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ <20>߰<EFBFBD> <20>Ϸ<EFBFBD><CFB7>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
$("#SearchText").val($("#ComAddName").val());
$("#Search").click();
}else if(res == "2"){
alert("<22>̹<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD> Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ <20>Դϴ<D4B4>.");
}else{
alert("System Error\n<><6E><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>");
}
},
error:function(err){
alert("System Error\n<><6E><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>");
console.log(err);
return false
},
complete:function(){
$("#ComAddCancleBtn").hide();
$("#ComAddName").hide();
$("#ComAddBtn").css("width", "100%");
}
});
}else{
$("#ComAddCancleBtn").show();
$("#ComAddName").show();
$(this).css("width", "20%");
$("#ComAddName").focus();
}
});
$(document).off("click","#ComAddCancleBtn").on("click","#ComAddCancleBtn",function(){
$("#ComAddCancleBtn").hide();
$("#ComAddName").hide();
$("#ComAddBtn").css("width", "100%");
});
//Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ <20><><EFBFBD><EFBFBD> or <20><><EFBFBD><EFBFBD>
$(document).off("click",".PerList tbody > tr").on("click",".PerList tbody > tr", function(e){
//console.log(e.target.tagName);
if(e.target.tagName == 'BUTTON'){
ClientAjax("CliInfo",$(this).find("input[name=PerCode]").val());
}else{
$("#p_cli_company_cd").val($("#CompanyCode").val());
$("#p_cli_company_nm").val($("#CompanyName").val());
if ($(this).find("input").length == 0){
$(".Client").val("");
$('#dialog-form').dialog('close');
}else{
$(this).find("input").each(function(e){
$(".Client").eq(e).val($(this).val());
});
$('#dialog-form').dialog('close');
}
}
});
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
$("#p_cont_cost").on("keyup", function() {
$(this).val(addCommas($(this).val().replace(/[^0-9]/g,"")));
});
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
$("#p_cost_rate").on("keyup", function() {
$(this).val(addCommas($(this).val().replace(/[^0-9]/g,"")));
});
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
$("#p_decide_date").datepicker({
changeYear: true,
changeMonth: true,
prevText: '<27><><EFBFBD><EFBFBD> <20><>',
nextText: '<27><><EFBFBD><EFBFBD> <20><>',
yearRange: '1900:+10',
dateFormat: "yy-mm-dd",
monthNames: ['1<><31>', '2<><32>', '3<><33>', '4<><34>', '5<><35>', '6<><36>', '7<><37>', '8<><38>', '9<><39>', '10<31><30>', '11<31><31>', '12<31><32>'],
monthNamesShort: ['1<><31>', '2<><32>', '3<><33>', '4<><34>', '5<><35>', '6<><36>', '7<><37>', '8<><38>', '9<><39>', '10<31><30>', '11<31><31>', '12<31><32>'],
showMonthAfterYear: true,
yearSuffix: '<27><>'
});
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD>
$("#ContactSave").on("click", function(){
if($("#p_sn").val() == ""){
alert("<22><><EFBFBD>ȹ<EFBFBD>ȣ <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>\n(<28><><EFBFBD>ΰ<EFBFBD>ħ <20><>)ó<><C3B3> <20><><EFBFBD><EFBFBD> <20>ٽ<EFBFBD> <20>Է<EFBFBD> <20>Ͽ<EFBFBD><CFBF>ֽʽÿ<CABD>.");
return false;
}
if($("#p_subject").val() == ""){
alert("<22><><EFBFBD>ȸ<EFBFBD><C8B8><EFBFBD> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
return false;
}
if($("#p_contactor").val() == ""){
alert("<22>߻<EFBFBD> <20><><EFBFBD>θ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
return false;
}
if($("#p_cli_company_cd").val() == "" || $("#p_cli_company_nm").val() == ""){
alert("Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ<EFBFBD><C6AE> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
return false;
}
if( isEmpty($('input[class=p_project_type_cd]:checked').val()) ){
alert("KRi <20>Ǵ<EFBFBD> KRC<52><43> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
return false;
}
if( isEmpty($('input[class=p_project_nation_cd]:checked').val()) ){
alert("<22><><EFBFBD>籹<EFBFBD><E7B1B9><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
return false;
}
if($("#p_client_type_cd").val() == ""){
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
return false;
}
if($("#p_cont_cost").val() == ""){
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
return false;
}
if($("#p_cost_rate").val() == "" || $("#p_cost_rate").val() == 0 ){
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>.");
return false;
}
//console.log("-------- test"); return false;
if($("#p_decide_date").val() == ""){
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
return false;
}
$("#p_subject").val(escape($("#p_subject").val()));
$("#p_memo").val(escape($("#p_memo").val()));
$("#p_cli_company_nm").val(escape($("#p_cli_company_nm").val()));
$("#p_cli_depart").val(escape($("#p_cli_depart").val()));
$("#p_cli_per_nm").val(escape($("#p_cli_per_nm").val()));
$("#proposalForm").ajaxSubmit({
type:"POST",
url:"project_AjaxSave.asp",
success:function(data){
$("#p_subject").val(unescape($("#p_subject").val()));
$("#p_memo").val(unescape($("#p_memo").val()));
$("#p_cli_company_nm").val(unescape($("#p_cli_company_nm").val()));
$("#p_cli_depart").val(unescape($("#p_cli_depart").val()));
$("#p_cli_per_nm").val(unescape($("#p_cli_per_nm").val()));
alert("<22><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD>");
location.href="project_ContactList.asp";
},
error:function(err){
$("#p_subject").val(unescape($("#p_subject").val()));
$("#p_memo").val(unescape($("#p_memo").val()));
$("#p_cli_company_nm").val(unescape($("#p_cli_company_nm").val()));
$("#p_cli_depart").val(unescape($("#p_cli_depart").val()));
$("#p_cli_per_nm").val(unescape($("#p_cli_per_nm").val()));
alert("System Error\n<><6E><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>");
return false;
}
});
});
function CompanyAjax(flag, Search){
$.ajax({
url:"project_AjaxSelect.asp",
method:"POST",
data:{"Flag":flag, "Search":escape(Search)},
contentType:"application/x-www-form-urlencoded; charset=euc-kr",
async:false,
success:function(res){
$(".ClientList").html(res);
},
error:function(err){
alert("System Error");
return false;
}
});
}
function ClientAjax(flag,p_cli_per_cd){
$.ajax({
url:"project_AjaxCliSave.asp",
method:"POST",
data:{
"p_cli_per_cd":p_cli_per_cd,
"p_client_type_cd":$("#p_client_type_cd").val(),
"cli_depart":$("#cli_depart").val(),
"cli_nm":$("#cli_nm").val(),
"cli_tel":$("#cli_tel").val(),
"cli_phone":$("#cli_phone").val(),
"cli_email":$("#cli_email").val(),
"flag":flag
},
contentType:"application/x-www-form-urlencoded; charset=euc-kr",
async:false,
success:function(res){
$(".ClientAdd").append(res);
$(".cnm2").text($(".cnm").text());
$(".ClientList").empty();
$(".ClientAdd").css("display", "block");
},
error:function(err){
alert("System Error");
return false;
}
});
}
function addCommas(x) {
return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
}
function FileExtCheck(data){
var FileExt = data.split('.').pop().toString();
if($.inArray(FileExt,['xls',"xlsx","doc","docx","ppt","pptx","hwp"]) == -1){
alert("<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD>, <20>Ŀ<EFBFBD><C4BF><EFBFBD><EFBFBD><EFBFBD>Ʈ, <20>ѱ<EFBFBD><D1B1><EFBFBD> <20>ƴ<EFBFBD> <20><><EFBFBD><EFBFBD> ÷<><C3B7> <20>Ұ<EFBFBD> <20>մϴ<D5B4>.");
return false;
}
}
function FileUpload(kind,data){
var FileData = data;
var f_kind = parseInt(kind)+1;
var formData = new FormData();
formData.append("f_work_type","001");
formData.append("f_kind","00"+f_kind);
formData.append("p_sn",$("#p_sn").val());
formData.append("File",FileData);
var flag = false;
$.ajax({
url: 'project_AjaxFileSave.asp',
processData:false,
contentType:false,
data:formData,
async:false,
type:'POST',
success:function(result){
flag = true;
},
error:function(err){
alert("system Error\n<><6E><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>");
return false
}
});
return flag;
}
});
</script>
</div>
<!-- /.content-wrapper -->
<!-- #include virtual = "include/footer.asp" -->

View File

@@ -0,0 +1,33 @@
<!-- #include virtual = "lib/config.asp" -->
<OBJECT RUNAT=Server PROGID=ADODB.Recordset id=rsc></OBJECT>
<%'
'p_sn<73><6E><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
query = "SELECT top 1 p_sn "
query = query & "FROM T_PROJECT_BASE "
query = query & "WHERE substring(p_sn, 0, 5) = '" & right("0" & year(date()), 2) & right("0" & month(date()), 2) & "' "
query = query & " AND substring(p_sn, 5, 3) <> '000' "
query = query & " AND substring(p_sn, 8, 1) <> '_' " '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ö<EFBFBD><C3B6><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
query = query & "ORDER BY sn DESC, p_sn DESC "
rsc.Open query, adoConn, 1
if rsc.RecordCount > 0 then
if instr(1, rsc("p_sn"), "_") then
p_sn = right("0" & year(date()), 2) & right("0" & month(date()), 2) & right("000" & int(left(right(rsc("p_sn"), 5), 3)) + 1, 3)
else
p_sn = right("0" & year(date()), 2) & right("0" & month(date()), 2) & right("000" & int(right(rsc("p_sn"), 3)) + 1, 3)
end if
else
p_sn = right("0" & year(date()), 2) & right("0" & month(date()), 2) & "001"
end if
rsc.Close
Response.CharSet = "EUC-KR" '<27>ѱ<EFBFBD>
Response.AddHeader "Pragma","no-cache"
Response.AddHeader "cache-control", "no-staff"
Response.Expires = -1
response.write p_sn
%>

294
project/project_contact.asp Normal file
View File

@@ -0,0 +1,294 @@
<!-- #include virtual = "lib/config.asp" -->
<!-- #include file = "../include/top_menu.asp" -->
<%
query = "SELECT * "
query = query & "FROM depart "
query = query & "WHERE d_code = '" & Session("Depart_Code") & "' "
rsc.Open query, adoConn, 1
if rsc.RecordCount > 0 then
tmp_team = rsc("d_mcode")
else
tmp_team = 9
end if
rsc.Close
query = "SELECT * "
query = query & "FROM project2_pre "
query = query & "WHERE write_date >= '" & year(now()) & "-01-01' "
'query = query & " AND p_depart = '" & tmp_team & "' "
query = query & "ORDER BY CAST(p_sn_tmp AS INT) DESC "
rsc.Open query, adoConn, 1
if rsc.RecordCount > 0 then
tmp_sn = int(rsc("p_sn_tmp")) + 1
else
tmp_sn = 1
end if
rsc.Close
%>
<script language=javascript>
function search(theURL,winName,features) {
if (features == 'x') {
var width_size = screen.width - 770;
var height_size= screen.height;
features = "left=" + width_size + " top=5 width=770 height=500 scrollbars=yes statbar=no";
}
window.open(theURL,winName,features);
}
function subit() {
var f = document.pms;
var m_Sp = /[$\\@\\\#%\^\&\*\[\]\+\{\}\`\~\=\|\:\/\,\;\"\']/;
var m_val = document.pms.p_subject_tmp.value;
var strLen = m_val.length;
var m_char
for (i = 0; i <= strLen; i++)
{
m_char = m_val.charAt(i);
if(m_char.search(m_Sp) != -1) {
alert("Ư<><C6AF><EFBFBD><EFBFBD><EFBFBD>ڰ<EFBFBD> <20>ԷµǾ<C2B5><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
document.pms.p_subject_tmp.focus();
return;
}
}
if (f.p_subject_tmp.value == "")
{
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD> <20>ۼ<EFBFBD><DBBC><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>");
f.p_subject_tmp.value = "";
f.p_subject_tmp.focus();
return false;
}
f.p_subject_tmp.value = f.p_subject_tmp.value.trim();
if (f.p_contactor.value == "")
{
alert("<22>߻<EFBFBD><DFBB><EFBFBD><EFBFBD>θ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>");
f.p_contactor.focus();
return false;
}
if (f.p_contact_date.value == "")
{
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>");
return false;
}
if (f.p_cli_class.value == "")
{
alert("Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>");
f.p_cli_class.focus();
return false;
}
if ((f.p_cli_company.value == "") || (f.p_cli_code.value == "") || (f.p_cli_type.value == ""))
{
alert("Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>");
return false;
}
if (f.p_cli_name.value.trim() == "")
{
alert("Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD>ڸ<EFBFBD> <20>ۼ<EFBFBD><DBBC><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>");
f.p_cli_name.value = "";
f.p_cli_name.focus();
return false;
}
if (f.p_cli_depart.value.trim() == "")
{
alert("Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ <20>μ<EFBFBD><CEBC><EFBFBD> <20>ۼ<EFBFBD><DBBC><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>");
f.p_cli_depart.value = "";
f.p_cli_depart.focus();
return false;
}
/*
if (f.p_contact_place.value.trim() == "")
{
alert("ȸ<><C8B8> <20><><EFBFBD>Ҹ<EFBFBD> <20>ۼ<EFBFBD><DBBC><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>");
f.p_contact_place.value = "";
f.p_contact_place.focus();
return false;
}
if (f.p_contact_content.value.trim() == "")
{
alert("ȸ<><C8B8> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ۼ<EFBFBD><DBBC><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>");
f.p_contact_content.value = "";
f.p_contact_content.focus();
return false;
}
*/
f.action = 'project_contact_ok.asp';
//alert('ok');
f.submit();
}
function clsit() {
document.pms.action = 'project_contact.asp';
document.pms.submit();
}
</script>
<script src="/lib/function.js" type="text/javascript1.3"></script>
<form name="pms" method="post">
<td width="100%" valign="top">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<!-- Ȯ<><C8AE> -->
</tr>
<tr>
<td colspan="2" style="padding:20;">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td style="padding:5 0 0 0;">
<table width="850" cellpadding="3" cellspacing="0" border="0" style="border-collapse:collapse;">
<tr>
<td colspan="4" height="4" ></td>
</tr>
<tr>
<td width="15%" align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ӽù<D3BD>ȣ</td>
<td width="85%" >
<font class="tahoma_blue"><%=tmp_sn%></font>
</td>
</tr>
<tr>
<td align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><></td>
<td >
<input type="text" style="width:300;" name="p_subject_tmp">
<font class="k_darkorange">* Ư<><C6AF><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ұ<EFBFBD><font color=black>(<28>ѱ<EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><>ȣ, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD>ٸ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͻñ<CFBD> <20>ٶ<EFBFBD><D9B6>ϴ<EFBFBD>)</font> </font>
</td>
</tr>
<tr>
<td align="center" ><3E>߻<EFBFBD><DFBB><EFBFBD><EFBFBD><EFBFBD></td>
<td >
<select name="p_contactor">
<option value=""><3E><><EFBFBD><EFBFBD></option>
<%
query = "SELECT * "
query = query & "FROM person "
query = query & "WHERE (p_depart <= 10 or (p_depart >= 20 and p_depart <= 49)) and p_admin = 1 and p_resign = 0 "
query = query & "ORDER BY p_order "
rsc.Open query, adoConn, 1
for i = 1 to rsc.RecordCount
%>
<option value="<%=rsc("p_no")%>"><%=rsc("p_name")%></option>
<%
rsc.MoveNext
next
rsc.Close
%>
</select>
</td>
</tr>
<tr>
<td align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td >
<input type="text" style="width:150;" name="p_contact_date" readonly style="text-align:right;">
<img src="/images/common/btn_calendar.jpg" align="absmiddle" onClick="winopn('/include/calendar.html?actval=p_contact_date')" style="cursor:pointer">
</td>
</tr>
<tr>
<td align="center" >Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ <20><><EFBFBD><EFBFBD></td>
<td >
<select name="p_cli_class">
<option value=""><3E><><EFBFBD><EFBFBD></option>
<option value="<22>ű<EFBFBD>"><3E>ű<EFBFBD></option>
<option value="<22><><EFBFBD><EFBFBD>"><3E><><EFBFBD><EFBFBD></option>
</select>
</td>
</tr>
<tr>
<td align="center" >Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ <20><></td>
<td >
<input type="text" style="width:250;" name="p_cli_company" readonly onClick="search('./cli_search.asp?v=1','ClientSearch','width=390,height=381,left=100,top=50,scrollbars=yes')" style="cursor:pointer">
<input type="hidden" name="p_cli_code">
</td>
</tr>
<tr>
<td align="center" >Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ Ÿ<><C5B8></td>
<td >
<select name="p_cli_type2" disabled>
<option value=""><3E>ڵ<EFBFBD><DAB5><EFBFBD><EFBFBD><EFBFBD></option>
<%
query = "SELECT * "
query = query & "FROM Client_Type "
rsc.Open query, adoConn, 1
for i = 1 to rsc.RecordCount
%>
<option value="<%=rsc("c_type_code")%>"><%=rsc("c_type_name")%></option>
<%
rsc.MoveNext
next
rsc.Close
%>
</select>
<input type="hidden" name="p_cli_type">
</td>
</tr>
<tr>
<td align="center" >Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td >
<input type="text" style="width:200;" name="p_cli_name" readonly onClick="search('cp_search.asp?p_cli_code='+document.pms.p_cli_code.value+'&v=1','ClientPeopleSearch','width=390,height=381,left=100,top=50,scrollbars=yes')" style="cursor:pointer">
<input type="hidden" name="cp_code">
</td>
</tr>
<tr>
<td align="center" >Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ <20>μ<EFBFBD></td>
<td >
<input type="text" style="width:200;" name="p_cli_depart" readonly>
</td>
</tr>
<!--tr>
<td align="center" >ȸ<><C8B8> <20><><EFBFBD><EFBFBD></td>
<td >
<input type="text" style="width:200;" name="p_contact_place">
</td>
</tr>
<tr>
<td align="center" >ȸ<><C8B8> <20><><EFBFBD><EFBFBD></td>
<td >
<textarea style="width:99%;height:60;" name="p_contact_content"></textarea>
</td>
</tr-->
<tr>
<td align="center" ><3E><><EFBFBD><EFBFBD></td>
<td >
<textarea style="width:99%;height:60;" name="p_memo"></textarea>
</td>
</tr>
<tr>
<td align="center" colspan="2" style="padding:10 0 0 0">
<img src="/images/common/btn_input.jpg" align="absmiddle" style="cursor:pointer" onClick="subit()">
<img src="/images/common/btn_cancel.jpg" align="absmiddle" style="cursor:pointer" onClick="clsit()">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</form>

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,50 @@
<!-- #include virtual = "lib/config.asp" -->
<%
set rsp = server.CreateObject("ADODB.RECORDSET")
set dbin = server.CreateObject("ADODB.CONNECTION")
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
p_sn = request("p_sn") '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ<EFBFBD>
state = request("state") '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD>(3:<3A><><EFBFBD><EFBFBD>, 4:<3A><><EFBFBD><EFBFBD>, 5:Ż<><C5BB>)
Response.Write "p_sn : " & request("p_sn")
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><> <20><><EFBFBD>̺<EFBFBD> <20><><EFBFBD><EFBFBD>
'---------------------------------------
query = " UPDATE T_PROJECT_BASE "
query = query & " SET p_state = '"& state &"'"
query = query & " WHERE p_sn = '"& p_sn &"'"
set dbin = server.CreateObject("ADODB.CONNECTION")
dbin.Open adoConn
dbin.Execute query
dbin.Close
%>
<html>
<script>
function goit(state) {
if (state == 'P') {
alert('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD>ֵǾ<D6B5><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>');
} else if (state == 'D') {
alert('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>');
} else if (state == 'X') {
alert('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ Ż<><C5BB><EFBFBD>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>');
}
location.href = "project_contactlist_2014.asp";
// history.back();
}
</script>
<body onLoad="goit('<%= state %>')">
<form name="pms" method="post">
</form>
</body>
</html>

View File

@@ -0,0 +1,10 @@
<%@ Language=VBScript EnableSessionState="False"%>
<%
filepath = Server.MapPath("/") & "\upload\contact_report\"
filename = request("filename")
'<27>ٿ<EFBFBD><D9BF>ε<EFBFBD> <20><>ü<EFBFBD><C3BC><EFBFBD><EFBFBD>
Set objDownload = Server.CreateObject("DEXT.FileDownload")
'objDownload.Download(filepath, <20><><EFBFBD><EFBFBD><EFBFBD≯<EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(True:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>), <20>̾<EFBFBD><CCBE>ޱ<EFBFBD> <20><><EFBFBD><EFBFBD>(True:<3A>̾<EFBFBD><CCBE>ޱ<EFBFBD>))
objDownload.Download filepath & filename, filename, true, false
Set objDownload = Nothing
%>

View File

@@ -0,0 +1,77 @@
<!-- #include virtual = "lib/config.asp" -->
<%
p_sn = request("p_sn")
state = request("state")
drop_reason = request("drop_reason")
if drop_reason <> "" then
query = ""
query = query & " UPDATE T_PROJECT_BASE "
query = query & " SET p_drop_reason = '" & CheckWord(drop_reason) & "' "
query = query & " WHERE p_sn = '" & p_sn & "' "
adoConn.execute query
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">
<script src="/lib/function.js" type="text/javascript1.3"></script>
<title>
Ż<><C5BB> <20><><EFBFBD><EFBFBD> <20>Է<EFBFBD>
</title>
<script language=javascript>
function clsit() {
self.close();
}
function upit() {
if (document.p_drop.drop_reason.value == "") {
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>.");
return false;
}
document.p_drop.action = "./project_contact_drop_reason.asp";
document.p_drop.submit();
}
function focusit() {
document.p_drop.drop_reason.focus();
}
function stateit() {
opener.document.pms.action = 'project_contact_change_2014.asp?state=X';
opener.document.pms.submit();
self.close();
}
</script>
</head>
<body <%if drop_reason <> "" then %> onLoad="stateit();" <% else %> onLoad="focusit()" <%end if %>>
<form name="p_drop" method="post">
<input type="hidden" name="state" value="<%=state%>">
<input type="hidden" name="p_sn" value="<%=p_sn%>">
<table border="0" cellspacing="1" cellpadding="5" width="380">
<tr>
<td align="center"><b>Ż<><C5BB> <20><><EFBFBD><EFBFBD> <20>Է<EFBFBD></b></td>
</tr>
<tr align="center" height="35">
<td>
<textarea name="drop_reason" cols="50" rows="18"></textarea>
</td>
</tr>
</table>
<p style="margin-top:2.0pt;margin-bottom:3.0pt;"></p>
<center><font color=red><3E><> Ż<><C5BB> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>!</font></center>
<p style="margin-top:2.0pt;margin-bottom:3.0pt;"></p>
<table border="0" cellspacing="0" cellpadding="0" width="380" bgcolor="white">
<tr align="center">
<td colspan="99">
<img src="/images/common/btn_write.jpg" border="0" onClick="upit();" style="CURSOR:pointer;">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<img src="/images/common/btn_cancel2.jpg" border="0" onClick="clsit();" style="CURSOR:pointer;">
</td>
</tr>
</table>

View File

@@ -0,0 +1,128 @@
<!-- #include virtual = "lib/config.asp" -->
<%
set rsp = server.CreateObject("ADODB.RECORDSET")
'p_subject_tmp = replace(request("p_subject_tmp"), " ", "")
p_subject_tmp = request("p_subject_tmp")
p_contactor = request("p_contactor")
p_contact_date = request("p_contact_date")
p_cli_class = request("p_cli_class")
p_cli_company = request("p_cli_company")
p_cli_code = request("p_cli_code")
p_cli_type = request("p_cli_type")
p_cp_code = request("cp_code")
p_cli_name = request("p_cli_name")
p_cli_depart = request("p_cli_depart")
p_contact_place = request("p_contact_place")
p_contact_content = CheckWord(request("p_contact_content"))
p_memo = CheckWord(request("p_memo"))
'-------------------------------------------------------------------------------
'2012.08.22 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD>̺<EFBFBD><CCBA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ߺ<EFBFBD>üũ (project_pre <20><><EFBFBD>̺<EFBFBD> <20>Ӹ<EFBFBD> <20>ƴ϶<C6B4>)
' <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>߰<EFBFBD> (_add <20><><EFBFBD><EFBFBD> <20>߰<EFBFBD><DFB0><EFBFBD> <20><><EFBFBD><EFBFBD> project_pre <20><><EFBFBD>̺<EFBFBD><CCBA><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>)
query = "SELECT * "
query = query & "FROM [project] "
query = query & "WHERE p_reg_date >= '" & year(now()) & "-01-01' "
query = query & " AND p_subject = '" & p_subject_tmp & "' "
rsp.Open query, adoConn, 1
rsp_rc = rsp.RecordCount
rsp.Close
'-------------------------------------------------------------------------------
query = "SELECT * "
query = query & "FROM [project2_pre] "
query = query & "WHERE write_date >= '" & year(now()) & "-01-01' "
query = query & " AND p_subject_tmp = '" & p_subject_tmp & "' "
rsp.Open query, adoConn, 1
tmp_rspcnt = rsp.RecordCount
if rsp.RecordCount > 0 then
tmp_subject = rsp("p_subject_tmp")
end if
rsp.Close
if tmp_rspcnt > 0 OR rsp_rc > 0 then
alert2 "<22>̹<EFBFBD> <20><><EFBFBD>ϵ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD>Դϴ<D4B4>. Ȯ<><C8AE><EFBFBD><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>"
elseif lcase(tmp_subject) = lcase(p_subject_tmp) then
alert2 "<22>̹<EFBFBD> <20><><EFBFBD>ϵ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD>Դϴ<D4B4>. Ȯ<><C8AE><EFBFBD><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>"
else
'tmp_team = Session("Depart_Code")
query = "SELECT * "
query = query & "FROM depart "
query = query & "WHERE d_code = '" & Session("Depart_Code") & "' "
rsp.Open query, adoConn, 1
if rsp.RecordCount > 0 then
tmp_team = rsp("d_mcode")
else
tmp_team = 9
end if
rsp.Close
query = "SELECT * "
query = query & "FROM project2_pre "
query = query & "WHERE write_date >= '" & year(now()) & "-01-01' "
'query = query & " AND p_depart = '" & tmp_team & "' "
query = query & "ORDER BY cast(p_sn_tmp as int) DESC "
rsp.Open query, adoConn, 1
if rsp.RecordCount > 0 then
tmp_sn = int(rsp("p_sn_tmp")) + 1
else
tmp_sn = 1
end if
rsp.Close
query = "INSERT INTO "
query = query & "project2_pre "
'query = query & "(p_sn_tmp, p_depart, p_cli_company, p_cli_depart, p_cli_name, p_cli_type, p_cli_class, p_contactor, p_contact_date, p_contact_place, p_contact_content, p_memo, write_date) "
query = query & "(p_sn_tmp, p_depart, p_depart_dep, p_depart_team, p_subject_tmp, p_cli_company, p_cp_code, p_cli_type, p_cli_class, p_contactor, p_contact_date, p_contact_place, p_contact_content, p_memo, "
query = query & " p_input_user_no, p_input_user_name, p_input_user_ip,write_date) "
query = query & "VALUES "
query = query & "('" & tmp_sn & "', "
query = query & "'" & tmp_team & "', "
query = query & "'" & Session("Depart_Code") & "', "
query = query & "'" & Session("teamcode") & "', "
query = query & "'" & p_subject_tmp & "', "
query = query & "'" & p_cli_code & "', "
query = query & "'" & p_cp_code & "', "
'query = query & "'" & p_cli_depart & "', "
'query = query & "'" & p_cli_name & "', "
query = query & "'" & p_cli_type & "', "
query = query & "'" & p_cli_class & "', "
query = query & "'" & p_contactor & "', "
query = query & "'" & p_contact_date & "', "
query = query & "'" & p_contact_place & "', "
query = query & "'" & p_contact_content & "', "
query = query & "'" & p_memo & "', "
query = query & "'" & Session("User_Number") & "', "
query = query & "'" & Session("loginuser") & "', "
query = query & "'" & Request.ServerVariables("REMOTE_ADDR") & "', "
query = query & "'" & date() & "') "
if Request.ServerVariables("REMOTE_ADDR") = session("admin_ip") then
'Response.Write query & "<BR>"
end if
set dbin = server.CreateObject("ADODB.CONNECTION")
dbin.Open adoConn
dbin.Execute query
dbin.Close
%>
<html>
<script>
function goit() {
alert('<27>ԷµǾ<C2B5><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>');
document.pms.action = 'project_contact.asp';
document.pms.submit();
}
</script>
<body onLoad="goit()">
<form name="pms" method="post">
</form>
</body>
</html>
<%
end if
%>

View File

@@ -0,0 +1,166 @@
<!-- #include virtual = "lib/config.asp" -->
<%
set rsp = server.CreateObject("ADODB.RECORDSET")
set dbin = server.CreateObject("ADODB.CONNECTION")
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
If request("p_sn") = "" Or IsNull(request("p_sn")) then
'project<63><74><EFBFBD>̺<EFBFBD> <20>Է<EFBFBD>
'---------------------------------------
'p_sn<73><6E><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
query = "SELECT top 1 p_sn "
query = query & "FROM T_PROJECT_BASE "
query = query & "WHERE substring(p_sn, 0, 5) = '" & right("0" & year(date()), 2) & right("0" & month(date()), 2) & "' "
query = query & " AND substring(p_sn, 5, 3) <> '000' "
query = query & " AND substring(p_sn, 8, 1) <> '_' " '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ö<EFBFBD><C3B6><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
query = query & "ORDER BY sn DESC, p_sn DESC "
rsc.Open query, adoConn, 1
if rsc.RecordCount > 0 then
if instr(1, rsc("p_sn"), "_") then
p_sn = right("0" & year(date()), 2) & right("0" & month(date()), 2) & right("000" & int(left(right(rsc("p_sn"), 5), 3)) + 1, 3)
else
p_sn = right("0" & year(date()), 2) & right("0" & month(date()), 2) & right("000" & int(right(rsc("p_sn"), 3)) + 1, 3)
end if
else
p_sn = right("0" & year(date()), 2) & right("0" & month(date()), 2) & "001"
end if
rsc.Close
Else
p_sn = request("p_sn") '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ<EFBFBD>
End if
p_subject = request("p_subject") '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE>
p_contactor = request("p_contactor") '<27>߻<EFBFBD><DFBB><EFBFBD><EFBFBD><EFBFBD>
direct_input_company= request("direct_input_company") 'Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Է<EFBFBD> <20><><EFBFBD><EFBFBD>
p_cli_company_cd = request("p_cli_company_cd") 'Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ ȸ<><C8B8><EFBFBD>ڵ<EFBFBD>
p_cli_company_nm = request("p_cli_company_nm") 'Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ ȸ<><C8B8><EFBFBD><EFBFBD>
p_cli_per_cd = request("p_cli_per_cd") 'Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ ȸ<><C8B8> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ڵ<EFBFBD>
p_cli_depart = request("p_cli_depart") 'Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ ȸ<><C8B8> <20>μ<EFBFBD> <20>ڵ<EFBFBD>
p_cli_per_nm = request("p_cli_per_nm") 'Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ ȸ<><C8B8> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20≯<EFBFBD>
p_cli_per_tel = request("p_cli_per_tel") 'Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ ȸ<><C8B8> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ȭ<EFBFBD><C8AD>ȣ
p_cli_per_email = request("p_cli_per_email") 'Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ ȸ<><C8B8> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20≯<EFBFBD><CCB8><EFBFBD>
p_client_type_cd = request("p_client_type_cd") '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
p_cont_cost = replace(request("p_cont_cost"),",", "") '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
p_decide_date = request("p_decide_date") '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
p_memo = request("p_memo") '<27><><EFBFBD><EFBFBD>
p_cost_rate = request("p_cost_rate") ' <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
p_method_cd = request("p_method_cd") '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
'(2014-07-03)üũ<C3BC>ڽ<EFBFBD><DABD><EFBFBD> üũ<C3BC>Ǿ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> TEXT<58>ڽ<EFBFBD><DABD><EFBFBD> <20>Էµ<D4B7> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> T_CLIENT_COMP, T_CLIENT_PERSON<4F><4E> <20><><EFBFBD><EFBFBD><EFBFBD>Ѵ<EFBFBD>.
if direct_input_company = "true" then
'ȸ<><C8B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ִ<EFBFBD><D6B4><EFBFBD> <20><><EFBFBD><EFBFBD> <20>˻<EFBFBD><CBBB>Ѵ<EFBFBD>.
query = " SELECT * "
query = query & " FROM V_CLIENT_COMP "
query = query & " WHERE p_cli_company_nm = '"& p_cli_company_nm &"' "
rsp.Open query, adoconn, 1
'ȸ<><C8B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>ٸ<EFBFBD> T_CLIENT_COMP<4D><50> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ѵ<EFBFBD>.
if rsp.recordcount = 0 then
query = " INSERT T_CLIENT_COMP "
query = query & " VALUES('"& p_cli_company_nm &"','N',CONVERT(varchar(30), GETDATE(),112)) "
dbin.Open adoConn
dbin.Execute query
dbin.Close
end if
'p_cli_company_cd<63><64> <20>˾Ƴ<CBBE><C6B3><EFBFBD> <20><><EFBFBD><EFBFBD> <20>˻<EFBFBD><CBBB><EFBFBD> <20>Ѵ<EFBFBD>. T_CLIENT_PERSON<4F><4E> <20><><EFBFBD><EFBFBD> <20>ֱ<EFBFBD> <20><><EFBFBD><EFBFBD> <20>˻<EFBFBD>
query = " SELECT p_cli_company_cd "
query = query & " FROM V_CLIENT_COMP "
query = query & " WHERE p_cli_company_nm = '"& p_cli_company_nm &"' "
rsc.Open query, adoconn, 1
p_cli_company_cd = rsc("p_cli_company_cd")
rsc.Close
'PERSON<4F><4E><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>Ѵ<EFBFBD>.
query = " INSERT T_CLIENT_PERSON "
query = query & " VALUES('"& p_cli_company_cd &"','"& p_cli_depart &"','"& p_cli_per_nm &"','"& p_cli_per_com_tel &"','"& p_cli_per_tel &"','"& p_cli_per_email &"',GETDATE(),'"& Session("User_Number") &"') "
Response.Write query & "<BR>"
dbin.Open adoConn
dbin.Execute query
dbin.Close
query = " SELECT p_cli_per_cd "
query = query & " FROM V_CLIENT_PERSON "
query = query & " WHERE p_cli_company_cd = '"& p_cli_company_cd &"' "
query = query & " ANd p_input_user = '"& Session("User_Number") &"' "
Response.Write query & "<BR>"
rsc.Open query, adoconn, 1
p_cli_per_cd = rsc("p_cli_per_cd")
rsc.Close
rsp.close
end if
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><> <20><><EFBFBD>̺<EFBFBD> <20><><EFBFBD><EFBFBD>
'---------------------------------------
query = "INSERT INTO "
query = query & " T_PROJECT_BASE "
query = query & "(p_sn, p_subject, p_cli_company_cd, p_cli_per_cd, p_client_type_cd, "
query = query & "p_depart_dep, p_depart_team, p_obtain_cost, p_cont_cost, p_decide_date, "
query = query & "p_memo, p_input_dt, p_state, p_input_user, p_contactor, p_cost_rate) "
query = query & "VALUES "
query = query & "('" & p_sn & "', '" & p_subject & "', '" & p_cli_company_cd & "', '" & p_cli_per_cd & "', '" & p_client_type_cd & " ', "
if Session("User_Number") = "20160603" then
query = query & " '30' "
else
query = query & " '" & Session("Depart_Code") & "' "
end if
query = query & " , '" & Session("teamcode")& "', '" & p_cont_cost & "', '" & p_cont_cost & "', '" & p_decide_date & "', "
query = query & "'" & p_memo & " ', GETDATE(), 'K', '"& Session("User_Number") &"', '" & p_contactor & "', ' " & p_cost_rate & " ') "
dbin.Open adoConn
dbin.Execute query
dbin.Close
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
for i=1 to Request("p_method_cd").count
query = "INSERT INTO "
query = query & " T_PROJECT_METHOD "
query = query & "( p_sn, p_method_cd, p_cli_company_cd, p_client_type_cd, p_input_dt, p_input_complete, "
query = query & " p_rsch_1_a, p_rsch_2_a, p_rsch_3_a, p_rsch_4_a, p_rsch_1_b, p_rsch_2_b, p_rsch_3_b, p_rsch_4_b, p_rsch_1_c, p_rsch_2_c, p_rsch_3_c, p_rsch_4_c, "
query = query & " p_sv_1, p_sv_2, p_sv_3, p_sv_4, p_code_1, p_code_2, p_code_3, p_code_4, p_verify_1, p_verify_2, p_verify_3, p_verify_4, p_punch_1, p_punch_2, p_punch_3, p_punch_4, "
query = query & " p_dp_1, p_dp_2, p_dp_3, p_dp_4, p_it_1, p_it_2, p_it_3, p_it_4 ) "
query = query & "VALUES "
query = query & "('" & p_sn & "', '" & Request("p_method_cd")(i) & "', '" & p_cli_company_cd & "', '" & p_client_type_cd & " ', GETDATE(), 'xxx', "
query = query & " '','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','') "
dbin.Open adoConn
dbin.Execute query
dbin.Close
NEXT
%>
<html>
<script>
function goit() {
alert('<27><><EFBFBD>ϵǾ<CFB5><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>');
location.href = "project_contactlist_2014.asp";
<%
if request("cutmenu") = "1" then
%>
opener.document.forms[0].action = "./business_list.ASP";
opener.document.forms[0].submit();
window.open("about:blank","_self").close();
<%
end if
%>
}
</script>
<body onLoad="goit()">
<form name="pms" method="post">
</form>
</body>
</html>

View File

@@ -0,0 +1,658 @@
<!-- #include virtual = "lib/config.asp" -->
<!-- #include file = "../include/top_menu.asp" -->
<%
set rsp = server.CreateObject("ADODB.RECORDSET")
set rsd = server.CreateObject("ADODB.RECORDSET")
dim ATTACH_FILENAME(0)
'project<63><74><EFBFBD>̺<EFBFBD> <20>Է<EFBFBD>
'---------------------------------------
p_sn = ""
if request("p_sn") <> "" then
p_sn = request("p_sn")
end if
work_out = request("work_out")
if work_out = "" then
work_out = "N"
end if
'<27>ʱⰪ <20><><EFBFBD><EFBFBD>
p_subject_pre = ""
p_contact_date = request("condate")
p_contact_date_time = ""
p_contact_place = ""
p_contact_people = ""
p_input_user = session("loginuser")
p_contact_discuss = ""
p_contact_schedule = ""
p_dapart = ""
ATTACH_FILENAME(0) = ""
'<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>Ʈ <20>⺻ <20><><EFBFBD><EFBFBD>
query = "SELECT PP.p_sn, p_subject_pre, PP.p_contact_date, p_contact_date_time, PP.p_contact_place, "
query = query & " p_contact_people, p_contact_people_krc, p_contact_people_cli, PP.p_input_user, P.p_name as p_name, PP.p_input_dt as p_input_dt, p.p_depart as p_dapart, "
query = query & " p_contact_discuss, p_contact_schedule, Attribute01, Attribute02, Attribute03, Attribute04, list_view_yn, TPB.p_subject "
query = query & "FROM T_PROJECT_PRE PP INNER JOIN person P ON PP.p_input_user = P.P_NO "
query = query & "LEFT OUTER JOIN T_PROJECT_BASE TPB ON PP.Attribute02 = TPB.p_sn "
query = query & "WHERE PP.p_sn = '" & p_sn & "' "
query = query & " and PP.list_del='Y' "
rsp.Open query, adoConn, 1
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
query = " SELECT * "
query = query & " FROM T_SYSTEM_ATTACH "
query = query & " WHERE f_p_sn = '"&p_sn& "'"
query = query & " AND f_work_type = '001' "
query = query & " AND f_use_yn = 'Y' "
query = query & " AND f_kind = '099' "
'query = query & " and f_exist_check = '1' "
rsc.Open query, adoConn, 1
'Response.Write query & "<BR>"
if rsp.recordcount > 0 then
p_subject_pre = rsp("p_subject_pre")
p_contact_date = rsp("p_contact_date")
p_contact_date_time = rsp("p_contact_date_time")
if p_contact_date_time <> "" then '09:30~12:00
p_contact_date_time_sh = left(p_contact_date_time, 2)
p_contact_date_time_sm = right(left(p_contact_date_time, 5), 2)
p_contact_date_time_eh = left(right(p_contact_date_time, 5), 2)
p_contact_date_time_em = right(p_contact_date_time, 2)
end if
p_contact_place = rsp("p_contact_place")
p_contact_people = rsp("p_contact_people") ' 170223 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
p_contact_people_krc = rsp("p_contact_people_krc")
p_contact_people_cli = rsp("p_contact_people_cli")
p_contact_people_krc_nm = ""
if p_contact_people_krc <> "" then
query = " SELECT STUFF((SELECT ',' + p_name FROM person WHERE p_no in ('" & replace(p_contact_people_krc, ",", "','") & "') FOR XML PATH ('')),1,1,'') as p_contact_people_krc_nm "
rsd.Open query, adoConn, 1
if rsd.recordCount > 0 then
p_contact_people_krc_nm = rsd("p_contact_people_krc_nm")
end if
rsd.Close
end if
p_contact_people_cli_nm = ""
if p_contact_people_cli <> "" then
query = " SELECT STUFF((SELECT ',' + p_cli_company_nm + '_' + p_cli_per_nm "
query = query & " FROM V_CLIENT_COMP VCC LEFT OUTER JOIN V_CLIENT_PERSON VCP ON VCC.p_cli_company_cd = VCP.p_cli_company_cd "
query = query & " WHERE convert(varchar, VCC.p_cli_company_cd)+'_'+convert(varchar, VCP.p_cli_per_cd) in ('" & replace(p_contact_people_cli, ",", "','") & "') FOR XML PATH ('')),1,1,'') as p_contact_people_cli_nm "
rsd.Open query, adoConn, 1
if rsd.recordCount > 0 then
p_contact_people_cli_nm = rsd("p_contact_people_cli_nm")
end if
rsd.Close
end if
p_input_user = rsp("p_name")
p_contact_discuss = rsp("p_contact_discuss")
p_contact_schedule = rsp("p_contact_schedule")
p_dapart = rsp("p_dapart")
p_contact = rsp("Attribute01")
c_project_cd = rsp("Attribute02")
list_view_yn = rsp("list_view_yn")
if c_project_cd <> "" then
p_subject = "["&rsp("Attribute02")&"] "&rsp("p_subject")
end If
f_path=rsp("Attribute03") '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
f_id=rsp("Attribute04") '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><>
end if
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ʱⰪ
' if rsc.recordCount > 0 then
' f_id = rsp("f_id")
' ATTACH_FILENAME(0) = rsc("f_file_name")
' end if
rsc.close
rsp.close
prj_div = request("prj_div")
prj_code = request("prj_code")
if prj_code <> "" then
c_project_cd = prj_code
query = " SELECT p_subject FROM T_PROJECT_METHOD WHERE p_child_sn = '" & prj_code & "' "
rsd.Open query, adoConn, 1
p_subject = "[" & prj_code & "]" & rsd("p_subject")
rsd.Close
end if
%>
<script language=javascript>
function clsit(){
history.go(-1);
}
function subit(x, cli_chk) {
var f = document.pms;
var tmp_int_s = 0;
var tmp_int_e = 0;
if (f.p_subject_pre.value == "") {
alert("<22>Ȱ<EFBFBD><C8B0><EFBFBD> <20>ۼ<EFBFBD><DBBC><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>");
f.p_subject_pre.value = "";
f.p_subject_pre.focus();
return false;
}
if (f.p_contact_date.value == "") {
alert("<22>Ͻø<CFBD> <20>Է<EFBFBD><D4B7><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>");
return false;
}
if(f.p_contact_date_time_sh.value == "" || f.p_contact_date_time_eh.value == ""){
alert("<22>ð<EFBFBD><C3B0><EFBFBD> <20><>Ȯ<EFBFBD><C8AE> <20>Է<EFBFBD><D4B7><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>");
return false;
}
tmp_int_s = f.p_contact_date_time_sh.value.length;
tmp_int_e = f.p_contact_date_time_eh.value.length;
f.p_contact_date_time_sh.value = ("0"+f.p_contact_date_time_sh.value).substring(tmp_int_s - 1, tmp_int_s + 1);
f.p_contact_date_time_eh.value = ("0"+f.p_contact_date_time_eh.value).substring(tmp_int_e - 1, tmp_int_e + 1);
if (f.p_contact_date_time_sh.value + "" + f.p_contact_date_time_sm.value >= f.p_contact_date_time_eh.value + "" + f.p_contact_date_time_em.value){
alert("<22>ð<EFBFBD><C3B0><EFBFBD> <20><>Ȯ<EFBFBD><C8AE> <20>Է<EFBFBD><D4B7><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>\n(<28><><EFBFBD>۽ð<DBBD><C3B0><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ð<EFBFBD><C3B0><EFBFBD><EFBFBD><EFBFBD> <20>۾ƾ<DBBE><C6BE>մϴ<D5B4>)");
return false;
}
f.p_contact_date_time.value = f.p_contact_date_time_sh.value + ":" + f.p_contact_date_time_sm.value + "~" + f.p_contact_date_time_eh.value + ":" + f.p_contact_date_time_em.value;
if (f.p_contact_place.value == "") {
alert("<22><><EFBFBD>Ҹ<EFBFBD> <20>Է<EFBFBD><D4B7><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>");
f.p_contact_place.focus();
return false;
}
if (f.p_contact.value == ""){
alert("<22><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>");
f.p_contact.focus();
return false;
}
if (f.p_contact_people.value == "" && (f.p_contact_people_krc.value == "" && f.p_contact_people_cli.value == "")) {
alert("<22><><EFBFBD><EFBFBD><EFBFBD>ڸ<EFBFBD> <20>Է<EFBFBD><D4B7><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>");
return false;
}
if (f.p_contact_discuss.value == "") {
alert("<22><><EFBFBD>dz<EFBFBD><C7B3><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>");
f.p_contact_discuss.focus();
return false;
}
if (f.p_contact.value == "002" && f.c_project_cd.value == "") {
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϼ̽<CFBC><CCBD>ϴ<EFBFBD>. \n<><6E><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20>ݵ<EFBFBD><DDB5><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20>ֽñ<D6BD> <20>ٶ<EFBFBD><D9B6>ϴ<EFBFBD>.");
return false;
}
if (f.p_contact_people.value == "" && (f.p_contact_people_cli.value == "" && f.p_contact.value != "004")){
alert("<22><><EFBFBD><EFBFBD><EFBFBD>ڸ<EFBFBD> <20>Է<EFBFBD><D4B7><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>");
return false;
}
if (f.p_contact.value != "004" && cli_chk != "1"){
alert("Client <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>մϴ<D5B4>\n<><6E><EFBFBD><EFBFBD> <20>߰<EFBFBD> <20><> <20>̿<EFBFBD><CCBF>ϼ<EFBFBD><CFBC><EFBFBD>\n(<28><>- <20≯<EFBFBD><CCB8><EFBFBD>, <20><>ȭ<EFBFBD><C8AD>ȣ <20><>)");
return false;
}
var fileCount = 0;
var fileAttachCcount = 0;
$("input:file").each(function (index) {
var uploadpath = $(this).val();
fileCount++;
if (uploadpath.length > 0) {
fileAttachCcount++;
var fileExtension = uploadpath.substring(uploadpath.lastIndexOf(".") + 1, uploadpath.length);
if (fileExtension.toLowerCase() == "zip" || fileExtension.toLowerCase() == "rar" || fileExtension.toLowerCase() == "arj" || fileExtension.toLowerCase() == "egg") {
alert("<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>ε<EFBFBD> <20><> <20><> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
return false;
}
}
});
document.pms.fileCount.value = fileCount;
if (document.pms.fie_pro_exist.value!="")
{
if(document.pms.txtFileName.value==""){
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ÷<>ε<EFBFBD> <20><><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD>÷<EFBFBD>θ<EFBFBD> <20>ٽ<EFBFBD> <20>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>. ");
return false;
}
}
if (confirm("<22><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD> <20>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?")) {
document.pms.modi.value=x;
document.pms.enctype = "multipart/form-data";
document.pms.encoding = "multipart/form-data";
document.pms.action = 'project_contact_tmp_reg_2014.asp';
document.pms.submit();
// save(x, fileAttachCcount);
} else {
return;
}
}
function save(x, f_count) {
var saveValidFlag = false;
if (f_count > 0) {
saveValidFlag = true;
}
if (saveValidFlag) {
var tempSampleCount = 0;
/*//2017-12-20 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> : <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
document.pms.action = jPath + "system/uploadFiles";
document.pms.enctype = "multipart/form-data";
document.pms.encoding = "multipart/form-data";
document.charset = "UTF-8";
*/
$("#contact_pre_Form").ajaxForm({
enctype: "multipart/form-data",
encoding: "multipart/form-data",
ontentType: false,
processData: false,
success: function (response, textStatus, jqXHR) {
if (response == "{'success':true}") {
formDataSave(x);
} else {
//alert("<22><><EFBFBD>α׷<CEB1> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>...");
///return;
//2017-12-20 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> : <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
document.pms.enctype = "application/x-www-form-urlencoded";
document.pms.encoding = "application/x-www-form-urlencoded";
document.charset = "EUC-KR";
document.pms.action = 'project_contact_tmp_reg_2014.asp';
document.pms.submit();
/*//2017-12-20 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> : <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
saveFail();
*/
}
},
error: function (request,status,error) {
saveFail();
},
complete: function () {
},
dataType: "text"
}).submit();
} else {
formDataSave(x);
}
}
function formDataSave(x) {
document.pms.enctype = "application/x-www-form-urlencoded";
document.pms.encoding = "application/x-www-form-urlencoded";
document.charset = "EUC-KR";
if (x == 1) {
document.pms.action = 'project_contact_tmp_reg_2014.asp';
} else if (x == 2) {
document.pms.action = 'project_contact_tmp_update_2014.asp';
}
<%
if request("enter") = "1" then
%>
document.pms.action = 'project_contact_tmp_reg_enter.asp';
<%
end if
%>
document.pms.submit();
}
function saveFail() {
alert("÷<><C3B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>߻<EFBFBD> <20>Ͽ<EFBFBD><CFBF><EFBFBD><EFBFBD>ϴ<EFBFBD>.\n<><6E><EFBFBD><EFBFBD><EFBFBD>ڿ<EFBFBD><DABF><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ٶ<EFBFBD><D9B6>ϴ<EFBFBD>.");
}
function download(f_id) {
// 2017-12-20 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> : <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
location.href="project_contact_downloads.asp?filename=<%=f_id %>"
/*
url = jPath + "download";
var p_sn = document.pms.p_sn.value;
var param = "?p_sn=" + p_sn + "&f_id=" + f_id;
//<2F><><EFBFBD><EFBFBD> <20>ٿ<EFBFBD><D9BF>ε<EFBFBD> <20>α<EFBFBD>
ajaxCallJson("/include/download_log.asp", { "f_id": f_id }, null, "POST");
$(location).attr("href", url + param);
*/
}
function delete_file(f_id, login_user) {
if (f_id == null) {
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>");
return false;
}
if (login_user != document.pms.p_input_user.value) {
alert("÷<><C3B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ۼ<EFBFBD><DBBC>ڸ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>.");
return false;
}
if (confirm("<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>??") == true) { //Ȯ<><C8AE>
var url = jPath + "system/deleteFiles";
var p_sn = document.pms.p_sn.value;
document.pms.action = url;
document.pms.enctype = "multipart/form-data";
document.pms.encoding = "multipart/form-data";
document.pms.del_f_id.value = f_id;
$("#contact_pre_Form").ajaxForm({
success: function (data) {
deleteComplete(data)
},
error: function (jqXHR, exception) {
alert("<22><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20>߻<EFBFBD>~!");
},
complete: function () {
},
dataType: "text"
}).submit();
} else { //<2F><><EFBFBD><EFBFBD>
return;
}
}
function deleteComplete(data) {
if (data == "{'success':true}") {
var p_sn = document.pms.p_sn.value;
alert("<22>ش<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
document.pms.action = 'project_contact_tmp_2014.asp?p_sn=' + p_sn;
document.pms.submit();
} else {
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ʾҽ<CABE><D2BD>ϴ<EFBFBD>. \n <20><><EFBFBD><EFBFBD><EFBFBD>ڿ<EFBFBD><DABF><EFBFBD> <20><><EFBFBD>ǹٶ<C7B9><D9B6>ϴ<EFBFBD>. ");
}
}
function num_chk_h(obj){
if(isNaN(obj.value)){
alert("<22><><EFBFBD>ڸ<EFBFBD> <20>Է°<D4B7><C2B0><EFBFBD><EFBFBD>մϴ<D5B4>.");
obj.value = "";
return false;
}else{
if(obj.value * 1 > 23 || obj.value * 1 < 0){
alert("0~23 <20><> <20><><EFBFBD>ڸ<EFBFBD> <20>Է°<D4B7><C2B0><EFBFBD><EFBFBD>մϴ<D5B4>.");
obj.value = "";
return false;
}
}
}
function search_project() {
var f = document.pms;
var p_contact = f.p_contact.value;
if (p_contact == ""){
alert("<22><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>");
return false;
}
if(p_contact == "001"){
if (!confirm("<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> - [<5B><>]\n<><6E><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȹ<EFBFBD><C8B9> - [<5B>ƴϿ<C6B4>]\n<><6E> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>")){
p_contact = "002";
}
}
var url = "contact_project_search_2014.asp?p_contact=" + p_contact;
window.open(url, 'projectSearch', 'width=1000,height=550,left=100,top=50,scrollbars=yes');
}
function search_krc(nm_obj, cd_obj) {
window.open("./krc_search.asp?nm_obj="+nm_obj + "&cd_obj="+cd_obj, "krc_search","left=10,top=5,width=930,height=500,scrollbars=yes,statbar=no");
}
function delete_krc(nm_obj, cd_obj) {
eval('document.'+nm_obj+'.value = ""');
eval('document.'+cd_obj+'.value = ""');
}
function search_cli(nm_obj, cd_obj) {
window.open("./client_search.asp?nm_obj="+nm_obj + "&cd_obj="+cd_obj, "cli_search","left=10,top=5,width=650,height=500,scrollbars=yes,statbar=no");
}
function delete_cli(nm_obj, cd_obj) {
eval('document.'+nm_obj+'.value = ""');
eval('document.'+cd_obj+'.value = ""');
}
function p_contact_change(){
var f = document.pms;
f.c_project_cd.value = "";
f.c_project_nm.value = "";
}
function check_client_info(div_val){
var param = { cli_list : document.pms.p_contact_people_cli.value, p_contact : document.pms.p_contact.value };
ajaxCallJson("check_client_ajax.asp", param, null, "post", "check_client_result('" + div_val + "')", "", "");
}
function check_client_result(div_val){
subit(div_val, ajaxResponse)
}
function list_view(p_sn, chk_obj){
var chk_val = "y";
if(chk_obj.checked == false){
chk_val = "n";
if(!confirm("<22>ش<EFBFBD> <20><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD> <20><><EFBFBD>ܽ<EFBFBD>Ű<EFBFBD>ڽ<EFBFBD><DABD>ϱ<EFBFBD>?")){
chk_obj.checked = true;
return;
}
}else{
chk_val = "y";
if(!confirm("<22>ش<EFBFBD> <20><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD>Խ<EFBFBD>Ű<EFBFBD>ڽ<EFBFBD><DABD>ϱ<EFBFBD>?")){
chk_obj.checked = false;
return;
}
}
ajaxCallJson("check_list_view_ajax.asp", { p_sn : p_sn, chk_val : chk_val }, null, "post", "list_view_complete()", "", "");
}
function list_view_complete(){
alert("<22><><EFBFBD><EFBFBD><EFBFBD>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
}
</script>
<script src="/lib/function.js" type="text/javascript1.3"></script>
<meta http-equiv="content-type" content="text/html; charset=EUC-KR">
<form id="contact_pre_Form" name="pms" method="post">
<input type="hidden" name="modi" value="" />
<input type="hidden" name="p_sn" value="<%=p_sn %>"/>
<input type="hidden" name="user_no" value="<%=Session("User_Number")%>"/>
<input type="hidden" name="f_work_type" value="001"/>
<input type="hidden" name="del_f_id" value=""/>
<input type="hidden" name="fileCount" value=""/>
<td width="100%" valign="top">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<!-- Ȯ<><C8AE> -->
</tr>
<tr>
<td colspan="2" style="padding:20;">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td style="padding:5 0 0 0;">
<table width="850" cellpadding="3" cellspacing="0" border="0" style="border-collapse:collapse;">
<tr>
<td colspan="2" height="4" align="center" style="font-size:13px;font-weight:bold;font-family:'malgun gothic;'"><3E><><EFBFBD><EFBFBD> / <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>Ʈ</td>
</tr>
<tr>
<td align="center" ><3E><> <20><></td>
<td >
<input type="text" style="width:300px;" name="p_subject_pre" value="<%=p_subject_pre %>" <% if (p_dapart <> "" and Session("Depart_Code") <> p_dapart) or request("modi")="1" then %> readonly <%end if %>>
<!--<font class="k_darkorange">* Ư<><C6AF><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ұ<EFBFBD><font color=black>(<28>ѱ<EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><>ȣ, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD>ٸ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͻñ<CFBD> <20>ٶ<EFBFBD><D9B6>ϴ<EFBFBD>)</font></font>-->
<% if p_input_user = session("Loginuser") Then %>
<div style="width:420px;display:inline; text-align:right;">
<20><><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> ǥ<><C7A5> <20><><EFBFBD><EFBFBD>(Check=ǥ<><C7A5>) &nbsp;<input type="checkbox" onclick="list_view('<%=p_sn %>', this)" id="list_view_yn" <%if list_view_yn = "y" then %> checked <%end if %> value="y" />
</div>
<% end if %>
</td>
</tr>
<tr>
<td align="center" ><3E>Ͻ<EFBFBD></td>
<td >
<%
if request("cutmenu") = "1" then
%>
<input type="text" style="width:150;text-align:right;" name="p_contact_date" readonly value="<%=p_contact_date %>" > &nbsp&nbsp&nbsp&nbsp&nbsp
<%
else
%>
<input type="text" style="width:150;text-align:right;cursor:pointer;" name="p_contact_date" readonly value="<%=p_contact_date %>" onClick="winopn('/include/calendar.html?actval=p_contact_date')" >
<img src="/images/common/btn_calendar.jpg" align="absmiddle" onClick="winopn('/include/calendar.html?actval=p_contact_date')" style="cursor:pointer">
<%
end if
%>
<20><> <20><> :
<input type="number" name="p_contact_date_time_sh" style="text-align:right;width:30px;" value="<%=p_contact_date_time_sh %>" onkeyup="num_chk_h(this);" onblur="num_chk_h(this);" <% if p_dapart <> "" and Session("Depart_Code") <> p_dapart then %> readonly <%end if %> /><3E><>
<select name="p_contact_date_time_sm" <% if p_dapart <> "" and Session("Depart_Code") <> p_dapart then %> readonly <%end if %> style="width:40px;">
<option value="00" <%if p_contact_date_time_sm = "00" then %> selected <%end if %>>00</option>
<option value="30" <%if p_contact_date_time_sm = "30" then %> selected <%end if %>>30</option>
</select><3E><> <20><><EFBFBD><EFBFBD>
<input type="number" name="p_contact_date_time_eh" style="text-align:right;width:30px;" value="<%=p_contact_date_time_eh %>" onkeyup="num_chk_h(this);" onblur="num_chk_h(this);" <% if p_dapart <> "" and Session("Depart_Code") <> p_dapart then %> readonly <%end if %> /><3E><>
<select name="p_contact_date_time_em" <% if p_dapart <> "" and Session("Depart_Code") <> p_dapart then %> readonly <%end if %> style="width:40px;">
<option value="00" <%if p_contact_date_time_em = "00" then %> selected <%end if %>>00</option>
<option value="30" <%if p_contact_date_time_em = "30" then %> selected <%end if %>>30</option>
</select><3E><> <20><><EFBFBD><EFBFBD>
<input type="hidden" name="p_contact_date_time" value="<%=p_contact_date_time %>" />
</td>
</tr>
<tr>
<td align="center" ><3E><> <20><></td>
<td >
<input type="text" style="width:300;" name="p_contact_place" value="<%=p_contact_place %>" <% if p_dapart <> "" and Session("Depart_Code") <> p_dapart then %> readonly <%end if %>>
</td>
</tr>
<tr>
<td align="center" ><3E><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></td>
<td >
<select name="p_contact" onchange="p_contact_change();">
<option value=""><3E><><EFBFBD><EFBFBD></option>
<%
if prj_div <> "3" then
%>
<option value="003" <% if p_contact = "003" then %> selected <% end if %>><3E><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></option>
<%
End if
if prj_div <> "1" AND prj_div <> "3" Then
%>
<option value="004" <% if p_contact = "004" then %> selected <% end if %>><3E><><EFBFBD>ȼ<EFBFBD> <20><><EFBFBD><EFBFBD>(<28>湮<EFBFBD><E6B9AE><EFBFBD><EFBFBD>/PT)</option>
<%
End if
if prj_div <> "1" AND prj_div <> "2" then
%>
<option value="002" <% if p_contact = "002" OR prj_div ="3" then %> selected <% end if %>><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></option>
<%
End if
%>
<%
if work_out <> "Y" then
%>
<option value="001" <% if p_contact = "001" then %> selected <% end if %>><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȭ</option>
<%
End if
%>
</select>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
<20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ :
<input type="hidden" name="c_project_cd" value="<%=c_project_cd %>" />
<input type="text" name="c_project_nm" value="<%=p_subject %>" readonly style="width:335px;" />
<img src="/images/common/btn_smallsrch.gif" align="absmiddle" onclick="search_project()" style='cursor:pointer' >
</td>
</tr>
<tr <% if p_contact_people = "" then %> style="display:none;" <% end if %>>
<td align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td >
<input type="text" value="<%=p_contact_people %>" name="p_contact_people" id="p_contact_people" style="width:300px;"/>
</td>
</tr>
<tr <% if p_contact_people <> "" then %> style="display:none;" <% end if %>>
<td align="center" rowspan="2"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td >
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="10%">
KRI <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
</td>
<td>
<input type="text" style="width:75%;" name="p_contact_people_krc_nm" value="<%=p_contact_people_krc_nm %>" readonly />
<input type="hidden" name="p_contact_people_krc" value="<%=p_contact_people_krc %>" />
<img src='/images/common/btn_smallsrch.gif' align="absmiddle" style='cursor:pointer;' onclick="search_krc('pms.p_contact_people_krc_nm', 'pms.p_contact_people_krc');" title ='ã<><C3A3>' />
<img src='/images/common/btn_smalldelete.gif' align="absmiddle" style='cursor:pointer;' onclick="delete_krc('pms.p_contact_people_krc_nm', 'pms.p_contact_people_krc');" title ='<27><><EFBFBD><EFBFBD>' />
</td>
</tr>
</table>
</td>
</tr>
<tr <% if p_contact_people <> "" then %> style="display:none;" <% end if %>>
<td >
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="10%">
Client <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
</td>
<td>
<input type="text" style="width:75%;" name="p_contact_people_cli_nm" value="<%=p_contact_people_cli_nm %>" readonly />
<input type="hidden" name="p_contact_people_cli" value="<%=p_contact_people_cli %>" />
<img src='/images/common/btn_smallsrch.gif' align="absmiddle" style='cursor:pointer;' onclick="search_cli('pms.p_contact_people_cli_nm', 'pms.p_contact_people_cli');" title ='ã<><C3A3>' />
<img src='/images/common/btn_smalldelete.gif' align="absmiddle" style='cursor:pointer;' onclick="delete_cli('pms.p_contact_people_cli_nm', 'pms.p_contact_people_cli');" title ='<27><><EFBFBD><EFBFBD>' />
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="center" ><3E>ۼ<EFBFBD><DBBC><EFBFBD></td>
<td >
<input type="text" style="width:300;" name="p_input_user" value="<%=p_input_user %>" readonly>
</td>
</tr>
<tr>
<td align="center" ><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></td>
<td >
<textarea style="width:99%;height:300;" name="p_contact_discuss" <% if (p_dapart <> "" and Session("Depart_Code") <> p_dapart) and request("modi") <> "1" then %> readonly <%end if %>><%=p_contact_discuss %></textarea>
</td>
</tr>
<tr>
<td align="center" ><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></td>
<td >
<textarea style="width:99%;height:100;" name="p_contact_schedule" <% if (p_dapart <> "" and Session("Depart_Code") <> p_dapart) and request("modi") <> "1" then %> readonly <%end if %>><%=p_contact_schedule %></textarea>
</td>
</tr>
<tr>
<td align="center" >÷<><C3B7> <20><><EFBFBD><EFBFBD></td>
<td >
<input type="hidden" name="f_id[0]" value="<%=f_id%>" />
<input type="hidden" name="f_kind[0]" value="099"/>
<input type="file" class="uploadFile_btn" name="txtFileName" id="txtFileName" maxlength="1" style="width:300;" />
&nbsp;&nbsp;&nbsp;&nbsp;
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> :
<input type="text" class="uploadFile_btn" name="fie_pro_exist"
<%if f_id <> "" then %>
onclick="javascript:download('<%=f_id %>');" style="width:220; color:blue; CURSOR:pointer;"
<% end if %>
value = "<%=f_id %>" readonly/>
<%if f_id <> "" then %>
<br>
<b style="color:red;">* <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> : ÷<><C3B7> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><>-> <20><><EFBFBD><EFBFBD><EFBFBD>ϱ<EFBFBD> <20><>ư Ŭ<><C5AC></b>
<!--<button type="button" style="width:100;" value="<22><><EFBFBD><EFBFBD>" onclick="delete_file('<%=f_id %>','<%= Session("loginuser") %>')"><3E><><EFBFBD><EFBFBD></button>-->
<% end if %>
</td>
</tr>
<tr>
<td align="center" colspan="2" style="padding:10 0 0 0">
<% if Request("p_sn") = "" then %>
<img src="/images/project/btn_save.jpg" align="absmiddle" style="cursor:pointer" onClick="check_client_info(1)"> <!-- <20><><EFBFBD><EFBFBD><EFBFBD>ϱ<EFBFBD> -->
<% else %>
<% if Session("Depart_Code") = p_dapart or request("modi")="1" then %>
<!-- <img src="/images/project/btn_modify2.jpg" align="absmiddle" style="cursor:pointer" onClick="check_client_info(2)"> <20><><EFBFBD><EFBFBD><EFBFBD>ϱ<EFBFBD> -->
<img src="/images/project/btn_modify2.jpg" align="absmiddle" style="cursor:pointer" onClick="check_client_info(2)"> <!-- <20><><EFBFBD><EFBFBD><EFBFBD>ϱ<EFBFBD> -->
<% end if %>
<% end if %>
<% if p_sn <> "" And request("modi") <> "1" Then %>
<img src="/images/common/btn_list.jpg" align="absmiddle" style="cursor:pointer" onClick="clsit()">
<% End if %>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<input type="hidden" name="cutmenu" value="<%=request("cutmenu") %>" />
<%
Dim topage : topage=request("topage")
if request("enter") = "1" Then topage="enter"
%>
<input type="hidden" name="topage" value="<%=topage%>" />
</form>

View File

@@ -0,0 +1,218 @@
<!-- #include virtual = "lib/config.asp" -->
<%
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
'p_sn<73><6E><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
query = "SELECT p_sn "
query = query & "FROM T_PROJECT_PRE "
query = query & "WHERE substring(p_sn, 0, 7) = '" & year(date()) & right("0" & month(date()), 2) & "' "
query = query & " AND substring(p_sn, 7, 3) <> '000' "
query = query & "ORDER BY p_sn DESC "
rsc.Open query, adoConn, 1
if rsc.RecordCount > 0 then
if instr(1, rsc("p_sn"), "_") then
p_sn = year(date()) & right("0" & month(date()), 2) & right("000" & int(left(right(rsc("p_sn"), 5), 3)) + 1, 3)
else
p_sn = year(date()) & right("0" & month(date()), 2) & right("000" & int(right(rsc("p_sn"), 3)) + 1, 3)
end if
else
p_sn = year(date()) & right("0" & month(date()), 2) & "001"
end if
rsc.Close
'############################(2017-12-20 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> : <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)####################################
'<27><><EFBFBD>ε<EFBFBD><CEB5><EFBFBD> <20><>ü<EFBFBD><C3BC> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD> <20>κ<EFBFBD><CEBA>Դϴ<D4B4>.
Set xup = Server.CreateObject("SiteGalaxyUpload.Form")
' <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>⺻ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD> <20>κ<EFBFBD><CEBA>Դϴ<D4B4>.
set fso = server.createobject("scripting.filesystemobject")
'<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> request<73><74> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD><EFBFBD>ÿ<EFBFBD><C3BF><EFBFBD> <20>Ʒ<EFBFBD><C6B7><EFBFBD> <20><><EFBFBD><EFBFBD> <20>޾ƾ<DEBE> <20>մϴ<D5B4>.
'$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
'p_sn = request("p_sn") '<27>ӽ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ<EFBFBD>
p_subject_pre = TransSTR(xup("p_subject_pre")) '<27>Ȱ<EFBFBD>
p_contact_date = TransSTR(xup("p_contact_date")) '<27>Ͻ<EFBFBD>
p_contact_date_time = TransSTR(xup("p_contact_date_time")) '<27>Ͻ<EFBFBD> <20>ð<EFBFBD>
p_contact_place = TransSTR(xup("p_contact_place")) '<27><><EFBFBD><EFBFBD>
p_contact_people = TransSTR(xup("p_contact_people")) '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
p_contact_people_krc = TransSTR(xup("p_contact_people_krc"))
p_contact_people_cli = TransSTR(xup("p_contact_people_cli"))
p_contact_discuss = TransSTR(replace(xup("p_contact_discuss"),"'","")) '<27><><EFBFBD>dz<EFBFBD><C7B3><EFBFBD>
p_contact_schedule = TransSTR(replace(xup("p_contact_schedule"),"'","")) '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
p_contact = TransSTR(xup("p_contact")) '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
c_project_cd = TransSTR(xup("c_project_cd")) '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ
c_cutmenu = TransSTR(xup("cutmenu")) '<27><><EFBFBD><EFBFBD>
topage =TransSTR(xup("topage"))
pre_p_sn = xup("p_sn") '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ<EFBFBD>
p_modi = xup("modi") '<27><><EFBFBD><EFBFBD>
'Response.write "["&p_modi&"]"
'Response.End
'############### <20><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ###############
'-- Dim SQLcK : SQLcK="0"
If p_modi = "2" Then '-- <20>Ⱥ<EFBFBD><C8BA>̰<EFBFBD> ó<><C3B3>
query = "Update T_PROJECT_PRE set list_del='n' where p_sn ='"&pre_p_sn&"'"
set dbin = server.CreateObject("ADODB.CONNECTION")
dbin.Open adoConn
dbin.Execute query
dbin.Close
'----- SQLcK="2" '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ(2)
End If
'$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
FileSizeCheck = 1 '<27><><EFBFBD>ε<EFBFBD><CEB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ũ<>Ⱑ <20>ϴ<EFBFBD><CFB4><EFBFBD> 5Mbyte<74><65><EFBFBD>϶<EFBFBD><CFB6><EFBFBD> <20><><EFBFBD><EFBFBD>
' <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>ε<EFBFBD><CEB5><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>.
fileattach = xup("txtFileName")
If fileattach <> "" then
' <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>丮<EFBFBD>Դϴ<D4B4>. nt<6E><74><EFBFBD><EFBFBD><EFBFBD>̶<EFBFBD><CCB6><EFBFBD> <20><><EFBFBD><EFBFBD> everyone <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> write <20>۹̼<DBB9><CCBC><EFBFBD> <20>־<EFBFBD><D6BE><EFBFBD> <20><><EFBFBD><EFBFBD>...^^
upd = Server.MapPath("/") & "\upload\contact_report\"
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
If (fso.FolderExists(upd)) Then
else
' <20>ش<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
fso.CreateFolder(upd)
End If
attach_file = fileattach.FilePath
' <20>ø<EFBFBD><C3B8><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD≯<EFBFBD><CCB8><EFBFBD> <20>̾Ƴ<CCBE><C6B3><EFBFBD> <20>κ<EFBFBD><CEBA>Դϴ<D4B4>. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ߺ<EFBFBD><DFBA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ó<><C3B3><EFBFBD><EFBFBD> <20><><EFBFBD>ؼ<EFBFBD><D8BC><EFBFBD>...^^
filename = Mid(attach_file, instrRev(attach_file, "\") + 1)
filename = "("&p_sn&") "&filename
' <20><><EFBFBD><EFBFBD> <20≯<EFBFBD><CCB8><EFBFBD> <20><><EFBFBD>մϴ<D5B4>.
file = Mid(filename, 1, instr(filename, ".") - 1)
' <20><><EFBFBD><EFBFBD> Ȯ<><C8AE><EFBFBD>ڸ<EFBFBD> <20><><EFBFBD>մϴ<D5B4>.
ext = Mid(filename, instr(filename, ".") + 1)
' <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20≯<EFBFBD><CCB8><EFBFBD> <20>ӽ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>մϴ<D5B4>.
fileNameTemp = upd & filename
bExist = True
' <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>, <20≯<EFBFBD> <20>ڿ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>Դϴ<D4B4>. <20>ܼ<EFBFBD><DCBC><EFBFBD> 0<><30><EFBFBD><EFBFBD> 1<><31> <20><><EFBFBD><EFBFBD><EFBFBD>մϴ<D5B4>.
countfilename = 0
While bExist
' <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ͼ<EFBFBD> <20><><EFBFBD><EFBFBD> <20≯<EFBFBD><CCB8><EFBFBD> <20><><EFBFBD>ڸ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>ο<EFBFBD> <20><><EFBFBD><EFBFBD> <20≯<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>մϴ<D5B4>.
If (fso.FileExists(fileNameTemp)) Then
countfilename = countfilename + 1
fileNameTemp = upd & file & "_v" & countfilename & "." & ext
filename = file & "_v" & countfilename & "." & ext
' <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
Else
bExist = False
End if
Wend
' FileSystemObject<63><74> <20>ݾ<EFBFBD><DDBE>ݴϴ<DDB4>.
'Set fso = nothing
' <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ũ<>⸦ <20><><EFBFBD>մϴ<D5B4>.
filesize = fileattach.Size
'204800 = 200kb
'5 * 200kb = 1mb
'204800 * 5 = 1024000(1Mbyte)
if filesize > 20480000 then '20Mbyte
FileSizeCheck = 0
else
FileSizeCheck = 1
' <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>ε<EFBFBD> <20>޽<EFBFBD><DEBD>ϴ<EFBFBD>.
fileattach.SaveAs fileNameTemp
end if
' <20><><EFBFBD><EFBFBD> <20><><EFBFBD>ε带 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>.
Else '' If fileattach <> "" then
filesize = 0
filename = ""
End if
If fileattach <> "" Then
Upload_Filename = filename
End If
'############################(2017-12-20 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> : <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)####################################
'Response.Write "c_project_cd " & c_project_cd
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><> <20><><EFBFBD>̺<EFBFBD> <20><><EFBFBD><EFBFBD>
'---------------------------------------
'-- If SQLcK="0" Then
If pre_p_sn<>"" Then p_sn=pre_p_sn '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
query = "INSERT INTO "
query = query & " T_PROJECT_PRE "
query = query & "(p_sn, p_subject_pre, p_contact_date, p_contact_date_time, "
query = query & "p_contact_place, p_contact_people, p_contact_people_krc, p_contact_people_cli, p_contact_discuss, p_contact_schedule, p_input_user, p_input_dt, Attribute01, Attribute02, Attribute03, Attribute04,list_del) "
query = query & "VALUES "
query = query & "('" & p_sn &"', '"& p_subject_pre & "', '" & p_contact_date & "', '" & p_contact_date_time & "', "
query = query & " '" & p_contact_place & "', '" & p_contact_people & "', '" & p_contact_people_krc & "', '" & p_contact_people_cli & "', '" & p_contact_discuss & "', '" & p_contact_schedule & "', '" & Session("User_Number") & " ', GETDATE(), '"& p_contact &"', '"& c_project_cd &"','"&upd&"','"&Upload_Filename&"','Y' ) "
set dbin = server.CreateObject("ADODB.CONNECTION")
dbin.Open adoConn
dbin.Execute query
dbin.Close
'-- End If
%>
<html>
<script>
function goit() {
<% select case topage
case "appr"
%>
//------------------------------------------------
alert('<27><><EFBFBD>ϵǾ<CFB5><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>');
window.open("about:blank","_self").close();
//------------------------------------------------
<%
case "enter"
%>
//------------------------------------------------
alert('<27><><EFBFBD>ϵǾ<CFB5><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>');
opener.document.forms[0].txt_con_name.value = "<%=p_subject_pre %>";
opener.document.forms[0].txt_con_sn.value = "<%=p_sn %>";
window.open("about:blank","_self").close();
//------------------------------------------------
<%
case else
%>
//------------------------------------------------
alert('<27><><EFBFBD>ϵǾ<CFB5><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>');
location.href = "project_contactlist_tmp_2014.asp";
<%
if c_cutmenu = "1" and topage="" then
%>
opener.document.forms[0].action = "./business_list.ASP";
opener.document.forms[0].submit();
window.open("about:blank","_self").close();
<%
end if
%>
//------------------------------------------------
<%end select %>
}
</script>
<body onLoad="goit()">
<form name="pms" method="post">
</form>
</body>
</html>

View File

@@ -0,0 +1,70 @@
<!-- #include virtual = "lib/config.asp" -->
<%
set rsp = server.CreateObject("ADODB.RECORDSET")
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
query = "SELECT p_sn "
query = query & "FROM T_PROJECT_PRE "
query = query & "WHERE substring(p_sn, 0, 7) = '" & year(date()) & right("0" & month(date()), 2) & "' "
query = query & " AND substring(p_sn, 7, 3) <> '000' "
query = query & "ORDER BY p_sn DESC "
rsp.Open query, adoConn, 1
if rsp.RecordCount > 0 then
if instr(1, rsp("p_sn"), "_") then
p_sn = year(date()) & right("0" & month(date()), 2) & right("000" & int(left(right(rsp("p_sn"), 5), 3)) + 1, 3)
else
p_sn = year(date()) & right("0" & month(date()), 2) & right("000" & int(right(rsp("p_sn"), 3)) + 1, 3)
end if
else
p_sn = year(date()) & right("0" & month(date()), 2) & "001"
end if
rsp.Close
'p_sn = request("p_sn") '<27>ӽ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ<EFBFBD>
p_subject_pre = request("p_subject_pre") '<27>Ȱ<EFBFBD>
p_contact_date = request("p_contact_date") '<27>Ͻ<EFBFBD>
p_contact_date_time = request("p_contact_date_time") '<27>Ͻ<EFBFBD> <20>ð<EFBFBD>
p_contact_place = request("p_contact_place") '<27><><EFBFBD><EFBFBD>
p_contact_people = request("p_contact_people") '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
p_contact_people_krc = request("p_contact_people_krc")
p_contact_people_cli = request("p_contact_people_cli")
p_contact_discuss = replace(request("p_contact_discuss"),"'","") '<27><><EFBFBD>dz<EFBFBD><C7B3><EFBFBD>
p_contact_schedule = replace(request("p_contact_schedule"),"'","") '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
p_contact = request("p_contact") '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
c_project_cd = request("c_project_cd") '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><> <20><><EFBFBD>̺<EFBFBD> <20><><EFBFBD><EFBFBD>
'---------------------------------------
query = "INSERT INTO "
query = query & " T_PROJECT_PRE "
query = query & "(p_sn, p_subject_pre, p_contact_date, p_contact_date_time, "
query = query & "p_contact_place, p_contact_people, p_contact_people_krc, p_contact_people_cli, p_contact_discuss, p_contact_schedule, p_input_user, p_input_dt, Attribute01, Attribute02) "
query = query & "VALUES "
query = query & "('" & p_sn &"', '"& p_subject_pre & "', '" & p_contact_date & "', '" & p_contact_date_time & "', "
query = query & " '" & p_contact_place & "', '" & p_contact_people & "', '" & p_contact_people_krc & "', '" & p_contact_people_cli & "', '" & p_contact_discuss & "', '" & p_contact_schedule & "', '" & Session("User_Number") & " ', GETDATE(), '"& p_contact &"', '"& c_project_cd &"' ) "
set dbin = server.CreateObject("ADODB.CONNECTION")
dbin.Open adoConn
dbin.Execute query
dbin.Close
%>
<html>
<script>
function goit() {
alert('<27><><EFBFBD>ϵǾ<CFB5><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>');
opener.document.forms[0].txt_con_name.value = "<%=p_subject_pre %>";
opener.document.forms[0].txt_con_sn.value = "<%=p_sn %>";
window.open("about:blank","_self").close();
}
</script>
<body onLoad="goit()">
<form name="pms" method="post">
</form>
</body>
</html>

View File

@@ -0,0 +1,55 @@
<!-- #include virtual = "lib/config.asp" -->
<%
set rsp = server.CreateObject("ADODB.RECORDSET")
set dbin = server.CreateObject("ADODB.CONNECTION")
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
p_sn = request("p_sn") '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ<EFBFBD>
p_subject_pre = request("p_subject_pre")
p_contact_date = request("p_contact_date")
p_contact_date_time = request("p_contact_date_time")
p_contact_place = request("p_contact_place")
p_contact_people = request("p_contact_people")
p_contact_people_krc = request("p_contact_people_krc")
p_contact_people_cli = request("p_contact_people_cli")
p_contact_discuss = request("p_contact_discuss")
p_contact_schedule = request("p_contact_schedule")
p_contact = request("p_contact") '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
c_project_cd = request("c_project_cd") '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><> <20><><EFBFBD>̺<EFBFBD> <20><><EFBFBD><EFBFBD>
'---------------------------------------
query = " UPDATE T_PROJECT_PRE "
query = query & " SET p_subject_pre = '"& p_subject_pre &"', p_contact_date = '"& p_contact_date &"', p_contact_date_time = '"& p_contact_date_time &"', "
query = query & " p_contact_place = '"& p_contact_place &"', p_contact_people = '"& p_contact_people &"', p_contact_people_krc = '"& p_contact_people_krc &"', p_contact_people_cli = '"& p_contact_people_cli &"', "
query = query & " Attribute01 = '"& p_contact &"', Attribute02 = '"& c_project_cd &"', p_contact_discuss = '"& p_contact_discuss &"', p_contact_schedule = '"& p_contact_schedule &"'"
query = query & " WHERE p_sn = '"& p_sn &"'"
set dbin = server.CreateObject("ADODB.CONNECTION")
dbin.Open adoConn
dbin.Execute query
dbin.Close
%>
<html>
<script>
function goit() {
var p_sn = "<%=p_sn%>";
alert('<27><><EFBFBD><EFBFBD><EFBFBD>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>');
document.pms.action = 'project_contact_tmp_2014.asp?p_sn=' + p_sn;
document.pms.submit();
<%
if request("cutmenu") = "1" then
%>
window.open("about:blank","_self").close();
<%
end if
%>
}
</script>
<body onLoad="goit()">
<form name="pms" method="post">
</form>
</body>
</html>

View File

@@ -0,0 +1,146 @@
<!-- #include virtual = "lib/config.asp" -->
<%
set rsp = server.CreateObject("ADODB.RECORDSET")
set dbin = server.CreateObject("ADODB.CONNECTION")
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
project_document_flag = request("project_document_flag")
p_sn = request("p_sn") '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ<EFBFBD>
p_subject = request("p_subject") '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE>
p_contactor = request("p_contactor") '<27>߻<EFBFBD><DFBB><EFBFBD><EFBFBD><EFBFBD>
direct_input_company= request("direct_input_company") 'Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Է<EFBFBD> <20><><EFBFBD><EFBFBD>
p_cli_company_cd = request("p_cli_company_cd") 'Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ ȸ<><C8B8><EFBFBD>ڵ<EFBFBD>
p_cli_company_nm = request("p_cli_company_nm") 'Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ ȸ<><C8B8><EFBFBD><EFBFBD>
p_cli_per_cd = request("p_cli_per_cd") 'Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ ȸ<><C8B8> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ڵ<EFBFBD>
p_cli_depart = request("p_cli_depart") 'Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ ȸ<><C8B8> <20>μ<EFBFBD> <20>ڵ<EFBFBD>
p_cli_per_nm = request("p_cli_per_nm") 'Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ ȸ<><C8B8> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20≯<EFBFBD>
p_cli_per_com_tel = request("p_cli_per_com_tel") 'Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ ȸ<><C8B8> <20><>ȭ<EFBFBD><C8AD>ȣ
p_cli_per_tel = request("p_cli_per_tel") 'Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ ȸ<><C8B8> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ȭ<EFBFBD><C8AD>ȣ
p_cli_per_email = request("p_cli_per_email") 'Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ ȸ<><C8B8> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20≯<EFBFBD><CCB8><EFBFBD>
p_client_type_cd = request("p_client_type_cd") '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
p_cont_cost = replace(request("p_cont_cost"),",", "") '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
p_decide_date = request("p_decide_date") '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
p_memo = request("p_memo") '<27><><EFBFBD><EFBFBD>
p_method_cd = request("p_method_cd") '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
p_cost_rate = request("p_cost_rate") ' <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
p_sub_type = request("p_sub_type") '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ Ÿ<><C5B8>
p_progress_status = request("p_progress_status") '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
'(2014-07-03)üũ<C3BC>ڽ<EFBFBD><DABD><EFBFBD> üũ<C3BC>Ǿ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> TEXT<58>ڽ<EFBFBD><DABD><EFBFBD> <20>Էµ<D4B7> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> T_CLIENT_COMP, T_CLIENT_PERSON<4F><4E> <20><><EFBFBD><EFBFBD><EFBFBD>Ѵ<EFBFBD>.
if direct_input_company = "true" then
'ȸ<><C8B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ִ<EFBFBD><D6B4><EFBFBD> <20><><EFBFBD><EFBFBD> <20>˻<EFBFBD><CBBB>Ѵ<EFBFBD>.
query = " SELECT * "
query = query & " FROM V_CLIENT_COMP "
query = query & " WHERE p_cli_company_nm = '"& p_cli_company_nm &"' "
rsp.Open query, adoconn, 1
'ȸ<><C8B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>ٸ<EFBFBD> T_CLIENT_COMP<4D><50> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ѵ<EFBFBD>.
if rsp.recordcount = 0 then
query = " INSERT T_CLIENT_COMP "
query = query & " VALUES('"& p_cli_company_nm &"','N',CONVERT(varchar(30), GETDATE(),112)) "
dbin.Open adoConn
dbin.Execute query
dbin.Close
end if
'p_cli_company_cd<63><64> <20>˾Ƴ<CBBE><C6B3><EFBFBD> <20><><EFBFBD><EFBFBD> <20>˻<EFBFBD><CBBB><EFBFBD> <20>Ѵ<EFBFBD>. T_CLIENT_PERSON<4F><4E> <20><><EFBFBD><EFBFBD> <20>ֱ<EFBFBD> <20><><EFBFBD><EFBFBD> <20>˻<EFBFBD>
query = " SELECT p_cli_company_cd "
query = query & " FROM V_CLIENT_COMP "
query = query & " WHERE p_cli_company_nm = '"& p_cli_company_nm &"' "
rsc.Open query, adoconn, 1
p_cli_company_cd = rsc("p_cli_company_cd")
rsc.Close
'PERSON<4F><4E><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>Ѵ<EFBFBD>.
query = " INSERT T_CLIENT_PERSON "
query = query & " VALUES('"& p_cli_company_cd &"','"& p_cli_depart &"','"& p_cli_per_nm &"','"& p_cli_per_com_tel &"','"& p_cli_per_tel &"','"& p_cli_per_email &"',GETDATE(),'"& Session("User_Number") &"') "
dbin.Open adoConn
dbin.Execute query
dbin.Close
query = " SELECT MAX(p_cli_per_cd) AS p_cli_per_cd "
query = query & " FROM V_CLIENT_PERSON "
query = query & " WHERE p_cli_company_cd = '"& p_cli_company_cd &"' "
query = query & " AND p_input_user = '"& Session("User_Number") &"' "
rsc.Open query, adoconn, 1
p_cli_per_cd = rsc("p_cli_per_cd")
rsc.Close
rsp.close
end if
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> (<28>ش<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ(p_sn)<29><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20>ٽ<EFBFBD> INSERT
query = " DELETE T_PROJECT_METHOD "
query = query & " WHERE p_sn = '"& p_sn &"'"
dbin.Open adoConn
dbin.Execute query
dbin.Close
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><> <20><><EFBFBD>̺<EFBFBD> <20><><EFBFBD><EFBFBD>
'---------------------------------------
query = " UPDATE T_PROJECT_BASE "
query = query & " SET p_subject = '"& p_subject &"', p_cli_company_cd = '"& p_cli_company_cd &"', p_cli_per_cd = '"& p_cli_per_cd &"', "
query = query & " p_client_type_cd = '"& p_client_type_cd &"', p_obtain_cost = '"& p_cont_cost &"', p_cont_cost = '"& p_cont_cost &"', "
query = query & " p_decide_date = '"& p_decide_date &"', p_memo = '"& p_memo &"', p_contactor = '"& p_contactor &"', p_cost_rate = '" & p_cost_rate & "' "
query = query & " WHERE p_sn = '"& p_sn &"'"
set dbin = server.CreateObject("ADODB.CONNECTION")
dbin.Open adoConn
dbin.Execute query
dbin.Close
for i=1 to Request("p_method_cd").count
query = " INSERT INTO "
query = query & " T_PROJECT_METHOD "
query = query & " (p_sn, p_subject, p_method_cd, p_cli_company_cd, p_client_type_cd "
If project_document_flag = "project_processing" then
query = query & " ,p_sub_type ,p_progress_status "
End if
query = query & " , p_input_dt, p_input_complete, p_progress_flag, "
query = query & " p_rsch_1_a, p_rsch_2_a, p_rsch_3_a, p_rsch_4_a, p_rsch_1_b, p_rsch_2_b, p_rsch_3_b, p_rsch_4_b, p_rsch_1_c, p_rsch_2_c, p_rsch_3_c, p_rsch_4_c, "
query = query & " p_sv_1, p_sv_2, p_sv_3, p_sv_4, p_code_1, p_code_2, p_code_3, p_code_4, p_verify_1, p_verify_2, p_verify_3, p_verify_4, p_punch_1, p_punch_2, p_punch_3, p_punch_4, "
query = query & " p_dp_1, p_dp_2, p_dp_3, p_dp_4, p_it_1, p_it_2, p_it_3, p_it_4 ) "
query = query & " VALUES "
query = query & " ('" & p_sn & "', '" & p_subject & "', '" & Request("p_method_cd")(i) & "', '" & p_cli_company_cd & "', '" & p_client_type_cd & " ' "
If project_document_flag = "project_processing" then
query = query & " ,'', '' "
End if
query = query & " , getdate(), 'xxx', 'xxx', '','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','')"
dbin.Open adoConn
dbin.Execute query
dbin.Close
NEXT
%>
<html>
<script>
function goit() {
var p_sn = "<%=p_sn%>";
alert('<27><><EFBFBD><EFBFBD><EFBFBD>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>');
document.pms.action = 'project_contact_2014.asp?p_sn='+p_sn;
document.pms.submit();
}
</script>
<body onLoad="goit()">
<form name="pms" method="post">
<input type="hidden" name="project_document_flag" value="<%=project_document_flag%>"/>
</form>
</body>
</html>

View File

@@ -0,0 +1,203 @@
<!-- #include virtual = "include/header.asp" -->
<!-- #include virtual = "include/left.asp" -->
<%
p_depart = request("p_depart")
tmp_month = request("tmp_month")
tmp_year = request("tmp_year")
if tmp_year="" then tmp_year=year(date())
if request("chkPsn") <> "" then
set dbin = server.CreateObject("ADODB.CONNECTION")
query = " UPDATE T_PROJECT_BASE "
query = query & " SET p_cost_rate_chk = 'Ȯ<><C8AE>' "
query = query & " WHERE p_sn = '" & request("chkPsn") & "' and p_cost_rate_chk is null "
dbin.Open adoConn
dbin.Execute query, i
dbin.Close
if i>0 then
Alert "Ȯ<><C8AE> ó<><C3B3> <20>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>."
end if
end if
%>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<div class="content-header">
<h1><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Ȯ<><C8AE></h1>
</div>
<!-- /.content-header -->
<!-- Main content -->
<div class="content-body">
<div class="content">
<div class="container-fluid">
<div class="row">
<div class="col-12">
<form name="pms" method="post">
<input type="hidden" name="chkPsn" value="" />
<table class="table table-sm table-sm2">
<tr>
<td colspan="2">
<09>˻<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>.
</td>
</tr>
<tr>
<td>
<09><><EFBFBD><EFBFBD> <20><>/<2F><> :
<select name="tmp_year">
<option value="" <% if tmp_year = "" then %> selected <% end if %>><3E><>ü</option>
<%
for i = year(date()) to 2017 step -1
%>
<option value="<%=i%>" <% if trim(tmp_year) = trim(cstr(i)) then %> selected <% end if %>><%=i%></option>
<%
next
%>
</select><3E><> /
<select name="tmp_month">
<option value="" <% if tmp_month = "" then %> selected <% end if %>><3E><>ü</option>
<%
for i = 1 to 12
%>
<option value="<%=i%>" <% if tmp_month = cstr(i) then %> selected <% end if %>><%=i%></option>
<%
next
%>
</select> <20><>
</td>
<td align="right">
<button type="button" class='btn btn-sm btn-primary mr-1' onclick='subit();'><3E><> <20><></button>
</td>
</tr>
<tr>
<td colspan="2">
<!-- loop start -->
<%
query = ""
query = query & " SELECT PB.p_sn, PB.p_subject, E.p_cli_company_nm, " & vbCrLf
query = query & " CP.p_cli_depart, CP.p_cli_per_nm, " & vbCrLf
query = query & " case when p_contactor = '001' then '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' " & vbCrLf
query = query & " when p_contactor = '002' then '<27><><EFBFBD>Ȱ<EFBFBD><C8B0><EFBFBD>' " & vbCrLf
query = query & " when p_contactor = '003' then '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' " & vbCrLf
query = query & " when p_contactor = '004' then '<27><><EFBFBD>ǰ<EFBFBD><C7B0><EFBFBD>' " & vbCrLf
query = query & " else '' end as p_contactor_label, " & vbCrLf
query = query & " CT.p_client_type_nm, " & vbCrLf
query = query & " ISNULL(STUFF(( SELECT ',' + p_method_nm FROM T_PROJECT_METHOD TPM LEFT OUTER JOIN " & vbCrLf
query = query & " T_PROJECT_METHOD_CD TPMC ON TPM.p_method_cd = TPMC.p_method_cd AND TPMC.p_method_yn='y' " & vbCrLf
query = query & " WHERE p_sn = PB.p_sn " & vbCrLf
query = query & " ORDER BY TPMC.p_method_cd " & vbCrLf
query = query & " FOR XML PATH ('')),1,1,''), '') AS p_method_str, " & vbCrLf
query = query & " PB.p_cont_cost, ISNULL(PB.p_cost_rate, 0) AS p_cost_rate, isnull(p_cost_rate_chk, '<27><>Ȯ<EFBFBD><C8AE>') AS p_cost_rate_chk, PB.p_decide_date, " & vbCrLf
query = query & " PB.p_input_dt, p_state, PB.p_input_user, p_depart_dep, d.T_Name AS p_depart_nm, " & vbCrLf
query = query & " p.p_name as p_name " & vbCrLf
query = query & " FROM T_PROJECT_BASE PB LEFT JOIN T_PROJECT_METHOD TPM ON PB.p_sn = TPM.p_sn " & vbCrLf
query = query & " INNER JOIN V_person P ON PB.p_input_user = P.P_NO " & vbCrLf
query = query & " INNER JOIN V_Department D ON PB.p_depart_dep = d.before_t_cd1 " & vbCrLf
query = query & " left outer join V_CLIENT_COMP as E on PB.p_cli_company_cd = E.p_cli_company_cd " & vbCrLf
query = query & " left outer join V_CLIENT_PERSON as CP on PB.p_cli_company_cd = CP.p_cli_company_cd AND PB.p_cli_per_cd = CP.p_cli_per_cd " & vbCrLf
query = query & " left outer join T_CLIENT_TYPE_CD as CT on PB.p_client_type_cd = CT.p_client_type_cd " & vbCrLf
query = query & " WHERE PB.p_sn IS NOT NULL AND TPM.p_progress_status IS NULL AND p_state NOT IN ('X', 'D') " & vbCrLf
query = query & " AND ISNULL(PB.p_cost_rate, 0) >= 55 and PB.p_cost_rate_chk is null " & vbCrLf
'------------------------------------------------------
'<27><> <20>ɼ<EFBFBD>
if tmp_year <> "0" and tmp_year <> "" then
query = query & " AND YEAR(PB.p_input_dt) = '" & tmp_year & "' " & vbCrLf
end if
'------------------------------------------------------
'<27><> <20>ɼ<EFBFBD>
if tmp_month <> "0" and tmp_month <> "" then
query = query & " AND MONTH(PB.p_input_dt) = '" & right("0" & tmp_month, 2) & "' " & vbCrLf
end if
'------------------------------------------------------
query = query & " GROUP BY PB.p_sn, PB.p_subject, E.p_cli_company_nm, CP.p_cli_depart, CP.p_cli_per_nm, "
query = query & " case when p_contactor = '001' then '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' "
query = query & " when p_contactor = '002' then '<27><><EFBFBD>Ȱ<EFBFBD><C8B0><EFBFBD>' "
query = query & " when p_contactor = '003' then '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' "
query = query & " when p_contactor = '004' then '<27><><EFBFBD>ǰ<EFBFBD><C7B0><EFBFBD>' "
query = query & " else '' end, "
query = query & " CT.p_client_type_nm, PB.p_cont_cost, ISNULL(PB.p_cost_rate, 0), ISNULL(p_cost_rate_chk, '<27><>Ȯ<EFBFBD><C8AE>'), PB.p_decide_date, "
query = query & " PB.p_input_dt, p_state, PB.p_input_user, p_depart_dep, d.T_Name, p.p_name"
'Response.Write query & "<BR>"
Rs.Open query, adoConn, 1
%>
<table class="table table-sm table-sm2 table-bordered table-head tr-colors">
<tr>
<td align="center" ><3E><><EFBFBD>ȹ<EFBFBD>ȣ</td>
<td align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE></td>
<td align="center" >Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ<EFBFBD><C6AE></td>
<td align="center" ><3E>߻<EFBFBD><DFBB><EFBFBD><EFBFBD><EFBFBD></td>
<td align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28><>)</td>
<td align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><br><3E><><EFBFBD><EFBFBD>(%)</td>
<td align="center" ><3E><><EFBFBD><EFBFBD></td>
<td align="center" ><3E><><EFBFBD>ʵ<EFBFBD><CAB5><EFBFBD><EFBFBD><EFBFBD></td>
<td align="center" >Ȯ<><C8AE></td>
</tr>
<%
if Rs.RecordCount > 0 then
for i = 1 to Rs.RecordCount
%>
<tr>
<td align="center"><%=Rs("p_sn")%></td>
<td align="left"><a href="javascript:openit('<%=Rs("p_sn")%>')" class="blue"><%=Rs("p_subject")%></td>
<td align="center"><%=Rs("p_cli_company_nm")%> (<%=Rs("p_cli_per_nm")%>)</td>
<td align="center"><%=Rs("p_contactor_label") %></td>
<td align="center"><%=Rs("p_method_str")%></td>
<td align="center"><%=FormatNumber(Rs("p_cont_cost"), 0)%></td>
<td align="center"><%=Rs("p_cost_rate")%></td>
<td align="center"><%=Rs("p_depart_nm")%> (<%=Rs("p_name")%>)</td>
<td align="center" ><%=Left(Rs("p_input_dt"), 10)%></td>
<td align="center"><input type="button" value="Ȯ<><C8AE>" style="cursor:pointer;" onclick="chkCost('<%=Rs("p_sn")%>');"/></td>
</tr>
<%
Rs.MoveNext
next
else
%>
<tr>
<td align="center" colspan="10">
- <20><><EFBFBD>ϵ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD> -
</td>
</tr>
<%
end if
Rs.Close
%>
<!-- loop end -->
</table>
</td>
</tr>
</table>
</form>
</div>
</div>
</div>
</div>
</div>
<!-- /.content -->
<!-- REQUIRED SCRIPTS -->
<script>
function openit(a) {
var url = "project_contactinfo.asp?cutmenu=1&p_sn=" + a;
var tmp_width = 1050;
var tmp_height = 880;
window.open(url, '', 'left=0,top=0,width=' + tmp_width + ',height=' + tmp_height + ',scrollbars=yes,resizable=yes');
}
function subit() {
if((pms.tmp_month.value!="0")&&(pms.tmp_year.value=="0")){
alert("[<5B><>] <20><><EFBFBD>ýÿ<C3BD><C3BF><EFBFBD> [<5B>⵵]<5D><> <20><><EFBFBD><EFBFBD> <20>Ͽ<EFBFBD><CFBF><EFBFBD> <20>մϴ<D5B4>. ");
return false;
}
document.pms.action = "project_contactlist_rate_chk.asp";
document.pms.submit();
}
function chkCost(psn){
document.pms.chkPsn.value = psn;
document.pms.action = "project_contactlist_rate_chk.asp";
document.pms.submit();
}
</script>
</div>
<!-- /.content-wrapper -->
<!-- #include virtual = "include/footer.asp" -->

View File

@@ -0,0 +1,26 @@
<!-- #include virtual = "lib/config.asp" -->
<OBJECT RUNAT=Server PROGID=ADODB.Recordset id=rsc></OBJECT>
<%'
p_sn = request("p_sn")
cost = request("cost")
query = " UPDATE T_PROJECT_BASE "
query = query & " SET p_obtain_cost = '" & cost & "', p_cont_cost = '" & cost & "' "
query = query & " WHERE p_sn = '" & p_sn & "' "
set dbin = server.CreateObject("ADODB.CONNECTION")
dbin.Open adoConn
dbin.Execute query
dbin.Close
' Session.CodePage = 65001 '<27>ѱ<EFBFBD>
Response.CharSet = "EUC-KR" '<27>ѱ<EFBFBD>
Response.AddHeader "Pragma","no-cache"
Response.AddHeader "cache-control", "no-staff"
Response.Expires = -1
response.write formatnumber(cost, 0)
%>

View File

@@ -0,0 +1,89 @@
<!-- #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><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> (<28>ֱ<EFBFBD> 3<><33><EFBFBD><EFBFBD> <20>̳<EFBFBD> <20>ۼ<EFBFBD> <20><><EFBFBD><EFBFBD>)</h1>
</div>
<!-- /.content-header -->
<!-- Main content -->
<div class="content-body">
<div class="content">
<div class="container-fluid">
<div class="row">
<div class="col-12" onclick="javascript:try{if(winObj.window.focus()){}}catch(exception){}" ondblclick="javascript:try{if(winObj.window.focus()){}}catch(exception){}">
<form method='post' id='xform' name='xform'>
<table class="table table-sm table-bordered" style="font-size:13px;">
<thead>
<tr>
<td align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD>ڵ<EFBFBD></td>
<td align="center" width="430px"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE></td>
<td align="center"><3E>ۼ<EFBFBD><DBBC><EFBFBD></td>
<td align="center"><3E>ۼ<EFBFBD><DBBC><EFBFBD><EFBFBD><EFBFBD></td>
<td align="center" colspan='2'><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td align="center" colspan='2'><3E><><EFBFBD><EFBFBD> <20><>ü<EFBFBD><C3BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20><>ü<EFBFBD><C3BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td align="center" width="430px"><3E><><EFBFBD><EFBFBD></td>
</tr>
</thead>
<tbody id="tbody01">
<%
sql=""&VbCrlf
sql=sql&" SELECT M.p_sn, p_subject, p_method_cd, d_write_name AS p_name, d_write_date, "&VbCrlf
sql=sql&" target3 AS o_child_cost, target1 AS c_child_cost, "&VbCrlf
sql=sql&" target4 AS o_cost, target5 AS c_cost, "&VbCrlf
sql=sql&" target2 AS reason "&VbCrlf
sql=sql&" FROM <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> M LEFT JOIN Document D ON M.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = D.d_no "&VbCrlf
sql=sql&" LEFT JOIN T_PROJECT_METHOD P ON M.p_sn = P.p_child_sn "&VbCrlf
sql=sql&" WHERE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD><EFBFBD>׼<EFBFBD><D7BC><EFBFBD>' "&VbCrlf
sql=sql&" AND d_order_cnt = '77' AND del_yes_no = 'no' "&VbCrlf
sql=sql&" AND d_write_date >= CONVERT(varchar(10), DATEADD(MONTH, -3, getdate()), 120) "&VbCrlf
sql=sql&" ORDER BY d_write_date DESC "&VbCrlf
Rs.Open sql, adoConn, 1
While Not Rs.Eof
%>
<tr style="height:25px;">
<td style="text-align:center;" ><a href="javascript:openit('','<%=left(Rs("p_sn"),7)%>','<%=mid(Rs("p_sn"),9,1)%>','<%=Rs("p_method_cd")%>','<%=Rs("p_sn")%>');"><%=Rs("p_sn")%></a></td>
<td style="text-align:left;word-break:keep-all;" ><a href="javascript:openit('','<%=left(Rs("p_sn"),7)%>','<%=mid(Rs("p_sn"),9,1)%>','<%=Rs("p_method_cd")%>','<%=Rs("p_sn")%>');"><%=Rs("p_subject")%></a></td>
<td style="text-align:center;" ><%=Rs("p_name")%></td>
<td style="text-align:center;" ><%=Rs("d_write_date")%></td>
<td style="text-align:center;" ><%if Rs("o_child_cost") <> Rs("c_child_cost") then %><%=formatnumber(Rs("o_child_cost"), 0)%><% end if %></td>
<td style="text-align:center;" ><%if Rs("o_child_cost") <> Rs("c_child_cost") then %><%=formatnumber(Rs("c_child_cost"), 0)%><% end if %></td>
<td style="text-align:center;" ><%if Rs("o_cost") <> Rs("c_cost") then %><%=formatnumber(Rs("o_cost"), 0)%><% end if %></td>
<td style="text-align:center;" ><%if Rs("o_cost") <> Rs("c_cost") then %><%=formatnumber(Rs("c_cost"), 0)%><% end if %></td>
<td style="text-align:left;word-break:keep-all;" ><%=Rs("reason")%></td>
</tr>
<%
Rs.movenext
Wend
Rs.Close
%>
</tbody>
</table>
</form>
</div>
</div>
</div>
</div>
</div>
<!-- /.content -->
<!-- REQUIRED SCRIPTS -->
<script>
function openit(a, z, x, y, v) {
var url = 'project_list2_dep_2014.asp?p_sn=' + z;
var tmp_width = 1400;
var tmp_height = 800;
if (v != "") {
url = url + "&p_sub_type=" + x + "&p_method_cd=" + y + "&p_child_sn=" + v;
} else {
url = url + "&p_sub_type=" + x + "&p_method_cd=" + y;
}
winObj=window.open(url, '', 'left=0,top=0,width=' + tmp_width + ',height=' + tmp_height + ',scrollbars=yes,resizable=yes')
}
</script>
</div>
<!-- /.content-wrapper -->
<!-- #include virtual = "include/footer.asp" -->

View File

@@ -0,0 +1,307 @@
<!-- #include virtual = "include/header.asp" -->
<!-- #include virtual = "include/left.asp" -->
<%
'-- ~<7E><><EFBFBD><EFBFBD>
dim s_date_st
if request.form("s_date_st")="" then
s_date_st=left(date(),7)&"-01"
else
s_date_st=request.form("s_date_st")
end if
'-- ~<7E><><EFBFBD><EFBFBD>
dim s_date_end
if request.form("s_date_end")="" then
s_date_end=left(date(),7)&"-31"
else
s_date_end=request.form("s_date_end")
end if
dim ttgubn
if request.form("ttgubn")="" then
ttgubn="<22>ǻ<EFBFBD><C7BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
else
ttgubn=request.form("ttgubn")
end if
%>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<div class="content-header">
<h1><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></h1>
</div>
<!-- /.content-header -->
<!-- Main content -->
<div class="content-body">
<div class="content">
<div class="container-fluid">
<div class="row">
<div class="col-12" onclick="javascript:try{if(winObj.window.focus()){}}catch(exception){}" ondblclick="javascript:try{if(winObj.window.focus()){}}catch(exception){}">
<form method='post' id='xform' name='xform'>
<table class='w-100'>
<tr>
<td></td>
<td align="right">
<select name="ttgubn" >
<option value="<22>ǻ<EFBFBD><C7BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" <%if ttgubn="<22>ǻ<EFBFBD><C7BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" then %> selected <%end if %> ><3E>ǻ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></option>
<option value="DP<44><50><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" <%if ttgubn="DP<44><50><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" then %> selected <%end if %> >DP <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></option>
<option value="OT<4F><54>" <%if ttgubn="OT<4F><54>" then %> selected <%end if %> >OT <20><></option>
</select>&nbsp;
<input type="text" style="width:120;text-align:center;CURSOR: pointer;" value="<%=s_date_st%>" name="s_date_st" readonly OnClick="winopn_two('../include/calendar.html?actval=s_date_st')">
<img src="/images/common/btn_calendar.jpg" align="absmiddle" OnClick="winopn_two('../include/calendar.html?actval=s_date_st')" style="cursor:pointer;" >
~
<input type="text" style="width:120;text-align:center;CURSOR: pointer;" value="<%=s_date_end%>" name="s_date_end" readonly OnClick="winopn_two('../include/calendar.html?actval=s_date_end')">
<img src="/images/common/btn_calendar.jpg" align="absmiddle" OnClick="winopn_two('../include/calendar.html?actval=s_date_end')" style="cursor:pointer;">
&nbsp;&nbsp;&nbsp;<a href="javascript:search_go(xform);"><img src="/images/common/btn_smallsrch.gif" /></a>
&nbsp;&nbsp;<a href="javascript:excel_go(xform);"><img src="/images/common/btn_smallexcel.gif" /></a>
</td>
</tr>
</table>
<table class="table table-sm table-bordered" style='font-size:13px;'>
<thead>
<tr>
<td onclick="gwanshic(tbody01,0);" class="text-center" style="cursor:pointer">No</td>
<td onclick="gwanshic(tbody01,1);" class="text-center" style="cursor:pointer"><3E><>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD><br><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ</td>
<td onclick="gwanshic(tbody01,3);" class="text-center" style="cursor:pointer"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE></td>
<td onclick="gwanshic(tbody01,4);" class="text-center" style="cursor:pointer"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȳ</td>
<td onclick="gwanshic(tbody01,5);" class="text-center" style="cursor:pointer"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td onclick="gwanshic(tbody01,6);" class="text-center" style="cursor:pointer"><3E><><EFBFBD><EFBFBD><br><3E><><EFBFBD><EFBFBD></td>
<td onclick="gwanshic(tbody01,7);" class="text-center" style="cursor:pointer"><3E>ǻ<EFBFBD><br><3E><><EFBFBD><EFBFBD></td>
<td onclick="gwanshic(tbody01,8);" class="text-center" style="cursor:pointer"><3E>ڵ<EFBFBD><br><3E><><EFBFBD><EFBFBD></td>
<td onclick="gwanshic(tbody01,9);" class="text-center" style="cursor:pointer"><3E><>ġ<br><3E><><EFBFBD><EFBFBD></td>
<td onclick="gwanshic(tbody01,10);" class="text-center" style="cursor:pointer">DP<br><3E><><EFBFBD><EFBFBD></td>
<td onclick="gwanshic(tbody01,11);" class="text-center" style="cursor:pointer">ǥ<><C7A5><EFBFBD><EFBFBD></td>
<td onclick="gwanshic(tbody01,12);" class="text-center" style="cursor:pointer">OT<4F><54></td>
<td onclick="gwanshic(tbody01,13);" class="text-center" style="cursor:pointer"><3E>ǻ<EFBFBD><br><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td onclick="gwanshic(tbody01,14);" class="text-center" style="cursor:pointer">DP<br><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
</tr>
</thead>
<tbody id="tbody01">
<%
sql=""&VbCrlf
sql=sql&" select AAA.* from "&VbCrlf
sql=sql&" ( "&VbCrlf
sql=sql&" select "&VbCrlf
sql=sql&" C5.team_name, "&VbCrlf
sql=sql&" C0.p_rsch_name, "&VbCrlf
sql=sql&" C1.p_sv_name, "&VbCrlf
sql=sql&" C2.p_code_name, "&VbCrlf
sql=sql&" C3.p_punch_name, "&VbCrlf
sql=sql&" C4.p_dp_name, "&VbCrlf
sql=sql&" AA.* "&VbCrlf
sql=sql&" from "&VbCrlf
sql=sql&" ( "&VbCrlf
sql=sql&" select "&VbCrlf
sql=sql&" A.p_child_sn as <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD>ڵ<EFBFBD>, "&VbCrlf
sql=sql&" A.p_subject as <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE>, "&VbCrlf
sql=sql&" A.p_method_cd, "&VbCrlf
sql=sql&" B.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, "&VbCrlf
sql=sql&" case when A.p_rsch_1_a<>'' then A.p_rsch_1_a "&VbCrlf
sql=sql&" when A.p_rsch_2_a<>'' then A.p_rsch_2_a "&VbCrlf
sql=sql&" when A.p_rsch_3_a<>'' then A.p_rsch_3_a "&VbCrlf
sql=sql&" when A.p_rsch_4_a<>'' then A.p_rsch_4_a else '' end as p_rsch, "&VbCrlf
sql=sql&" case when A.p_sv_1<>'' then A.p_sv_1 "&VbCrlf
sql=sql&" when A.p_sv_2<>'' then A.p_sv_2 "&VbCrlf
sql=sql&" when A.p_sv_3<>'' then A.p_sv_3 "&VbCrlf
sql=sql&" when A.p_sv_4<>'' then A.p_sv_4 else '' end as p_sv, "&VbCrlf
sql=sql&" case when A.p_code_1<>'' then A.p_code_1 "&VbCrlf
sql=sql&" when A.p_code_2<>'' then A.p_code_2 "&VbCrlf
sql=sql&" when A.p_code_3<>'' then A.p_code_3 "&VbCrlf
sql=sql&" when A.p_code_4<>'' then A.p_code_4 else '' end as p_code, "&VbCrlf
sql=sql&" case when A.p_punch_1<>'' then A.p_punch_1 "&VbCrlf
sql=sql&" when A.p_punch_2<>'' then A.p_punch_2 "&VbCrlf
sql=sql&" when A.p_punch_3<>'' then A.p_punch_3 "&VbCrlf
sql=sql&" when A.p_punch_4<>'' then A.p_punch_4 else '' end as p_punch, "&VbCrlf
sql=sql&" case when A.p_dp_1<>'' then A.p_dp_1 "&VbCrlf
sql=sql&" when A.p_dp_2<>'' then A.p_dp_2 "&VbCrlf
sql=sql&" when A.p_dp_3<>'' then A.p_dp_3 "&VbCrlf
sql=sql&" when A.p_dp_4<>'' then A.p_dp_4 else '' end as p_dp, "&VbCrlf
sql=sql&" A.p_sample as ǥ<><C7A5><EFBFBD><EFBFBD>, "&VbCrlf
sql=sql&" A.p_ot_date as OT<4F><54>, "&VbCrlf
sql=sql&" A.p_field_date_end as <20>ǻ<EFBFBD><C7BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, "&VbCrlf
sql=sql&" A.p_dp_date_end as DP<44><50><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, "&VbCrlf
sql=sql&" A.p_rsch_dept as <20><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD>, "&VbCrlf
sql=sql&" A.p_progress_status as <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȳ "&VbCrlf
' sql=sql&" -- ,A.* "
sql=sql&" from "&VbCrlf
sql=sql&" ( "&VbCrlf
sql=sql&" select * from [dbo].[T_PROJECT_METHOD] "&VbCrlf
sql=sql&" where p_complete_date is null "&VbCrlf
sql=sql&" ) A "&VbCrlf
sql=sql&" left join "&VbCrlf
sql=sql&" (select p_method_cd, p_method_nm as <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> from [dbo].[T_PROJECT_METHOD_CD]) B "&VbCrlf
sql=sql&" on A.p_method_cd=B.p_method_cd "&VbCrlf
sql=sql&" ) AA "&VbCrlf
sql=sql&" left join " &VbCrlf
sql=sql&" (select p_no, p_name as p_rsch_name from person) C0 "&VbCrlf'##### <20><><EFBFBD><EFBFBD>
sql=sql&" on AA.p_rsch=C0.p_no "&VbCrlf
sql=sql&" left join "&VbCrlf
sql=sql&" (select p_no, p_name as p_sv_name from person) C1 "&VbCrlf'##### <20>ǻ<EFBFBD>
sql=sql&" on AA.p_sv=C1.p_no "&VbCrlf
sql=sql&" left join "&VbCrlf
sql=sql&" (select p_no, p_name as p_code_name from person) C2 "&VbCrlf '##### <20>ڵ<EFBFBD>
sql=sql&" on AA.p_code=C2.p_no "&VbCrlf
sql=sql&" left join "&VbCrlf
sql=sql&" (select p_no, p_name as p_punch_name from person) C3 "&VbCrlf '##### <20><>ġ
sql=sql&" on AA.p_code=C3.p_no "&VbCrlf
sql=sql&" left join "&VbCrlf
sql=sql&" (select p_no, p_name as p_dp_name from person) C4 "&VbCrlf '##### dp
sql=sql&" on AA.p_dp=C4.p_no "&VbCrlf
sql=sql&" left join "&VbCrlf
sql=sql&" (select team_cd,team_name from TEAM_GROUP) C5 "&VbCrlf
sql=sql&" on AA.<2E><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD>=C5.team_cd "&VbCrlf
sql=sql&" ) AAA "&VbCrlf
'-- sql=sql&" where AAA.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD>ڵ<EFBFBD><>'' "
sql=sql&" where len(isnull(AAA.OT<4F><54>,''))+len(isnull(AAA.<2E>ǻ<EFBFBD><C7BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,''))+len(isnull(AAA.DP<44><50><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,''))>0 "&VbCrlf
sql=sql&" and left(AAA."&ttgubn&",10) between '"&s_date_st&"' and '"&s_date_end&"' "&VbCrlf
select case ttgubn
case "<22>ǻ<EFBFBD><C7BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" : sql=sql&" order by AAA.<2E>ǻ<EFBFBD><C7BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> asc "&VbCrlf
case "DP<44><50><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" : sql=sql&" order by AAA.DP<44><50><EFBFBD><EFBFBD><EFBFBD><EFBFBD> asc "&VbCrlf
case "OT<4F><54>" : sql=sql&" order by AAA.OT<4F><54> asc "&VbCrlf
end select
Rs.Open sql, adoConn, 1
dim acnt : acnt=1
dim pro
dim pro_style
while not Rs.Eof
Select case Rs("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȳ")
case "006"
pro="<22>μ<EFBFBD><CEBC><EFBFBD><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7><EFBFBD>"
pro_style=""
case "007"
pro="<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
pro_style=""
case "008"
pro="<22><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD>"
pro_style="color:red;"
End Select
%>
<tr>
<td style="text-align:center;" ><%=acnt%></td>
<td style="text-align:center;" ><%=Rs("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD>ڵ<EFBFBD>")%></td>
<td style="text-align:left;" ><% if Rs("<22><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD>") = session("depart_code") OR Cint(session("depart_code")) < 20 then %>&nbsp;
<a href="javascript:openit('','<%=left(Rs("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD>ڵ<EFBFBD>"),7)%>','<%=mid(Rs("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD>ڵ<EFBFBD>"),9,1)%>','<%=Rs("p_method_cd")%>','<%=Rs("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD>ڵ<EFBFBD>")%>');" ><%=Rs("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE>")%></a><%else
%><%=Rs("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE>")%><%End IF%>
</td>
<td style="text-align:center;<%=pro_style %>" ><%=pro%></td>
<td style="text-align:center;" ><%=Rs("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")%></td>
<td style="text-align:center;" ><%=Rs("p_rsch_name")%></td>
<td style="text-align:center;" ><%=Rs("p_sv_name")%></td>
<td style="text-align:center;" ><%=Rs("p_code_name")%></td>
<td style="text-align:center;" ><%=Rs("p_punch_name")%></td>
<td style="text-align:center;" ><%=Rs("p_dp_name")%></td>
<% If isnull(Rs("ǥ<><C7A5><EFBFBD><EFBFBD>")) Then %>
<td style="text-align:right;" >--&nbsp;&nbsp;</td>
<% Else %>
<td style="text-align:right;" ><%=formatnumber(Rs("ǥ<><C7A5><EFBFBD><EFBFBD>"),0)%>&nbsp;&nbsp;</td>
<% End If %>
<td style="text-align:center;" ><%=left(Rs("OT<4F><54>"),10)%></td>
<td style="text-align:center;" ><%=left(Rs("<22>ǻ<EFBFBD><C7BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"),10)%></td>
<td style="text-align:center;" ><%=left(Rs("DP<44><50><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"),10)%></td>
</tr>
<%
acnt=acnt+1
Rs.movenext
Wend
Rs.Close
%>
</tbody>
</table>
</form>
</div>
</div>
</div>
</div>
</div>
<!-- /.content -->
<!-- REQUIRED SCRIPTS -->
<script>
function openit(a, z, x, y, v) {
var url = 'project_list2_dep_2014.asp?p_sn=' + z;
var tmp_width = 1400;
var tmp_height = 800;
if (v != "") {
url = url + "&p_sub_type=" + x + "&p_method_cd=" + y + "&p_child_sn=" + v;
} else {
url = url + "&p_sub_type=" + x + "&p_method_cd=" + y;
}
winObj=window.open(url, '', 'left=0,top=0,width=' + tmp_width + ',height=' + tmp_height + ',scrollbars=yes,resizable=yes');
}
function winopn_two(urlstr) {
var pwidth=250;
var pheight=300;
var tleft=(screen.width-pwidth)/2;
var ttop=(screen.height-pheight)/2;
winObj=window.open(urlstr, "wins2", "left="+tleft+", top="+ttop+", menubar=no, location=no, status=no, toolbar=no, width="+pwidth+", height="+pheight+", scrollbars=yes ,resizable=no");
winObj.focus();
}
function search_go(x){
x.target="";
x.action="project_ing_info.asp";
x.submit();
}
function excel_go(x){
x.target="";
x.action="project_ing_info_excel.asp";
x.submit();
}
var index;
var toggleBool;
function gwanshic(tbody, index){
this.index = index;
if(toggleBool){toggleBool = false;}
else{toggleBool = true;}
var datas= new Array();
var tbodyLength = tbody.rows.length;
for(var i=0; i<tbodyLength; i++){datas[i] = tbody.rows[i];}
datas.sort(compareCells);
for(var i=0; i<tbody.rows.length; i++){tbody.appendChild(datas[i]);}
}
function compareCells(a,b) {
var aVal = a.cells[index].innerText;
var bVal = b.cells[index].innerText;
aVal = aVal.replace(/\,/g, '');
bVal = bVal.replace(/\,/g, '');
if(toggleBool){
var temp = aVal;
aVal = bVal;
bVal = temp;
}
if(aVal.match(/^[0-9]+$/) && bVal.match(/^[0-9]+$/)){
return parseFloat(aVal) - parseFloat(bVal);
}else{
if (aVal < bVal){ return -1;}
else if (aVal > bVal){ return 1;}
else{return 0;}
}
}
</script>
</div>
<!-- /.content-wrapper -->
<!-- #include virtual = "include/footer.asp" -->

View File

@@ -0,0 +1,159 @@
<!-- #include virtual = "lib/config.asp" -->
<%
'-- ~<7E><><EFBFBD><EFBFBD>
dim s_date_st
if request.form("s_date_st")="" then
s_date_st=left(date(),7)&"-01"
else
s_date_st=request.form("s_date_st")
end if
'-- ~<7E><><EFBFBD><EFBFBD>
dim s_date_end
if request.form("s_date_end")="" then
s_date_end=left(date(),7)&"-31"
else
s_date_end=request.form("s_date_end")
end if
dim excel_title : excel_title="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>("&s_date_st&")("&s_date_end&")"
Response.Expires = 0
Response.ContentType = "application/vnd.ms-excel"
Response.ContentType = "application/unkown"
Response.Buffer = TRUE
Response.AddHeader "Content-Disposition","attachment; filename="&excel_title&".xls"
SET rsa = server.CreateObject("ADODB.RECORDSET")
SET rsp = server.CreateObject("ADODB.RECORDSET")
dim ttgubn
if request.form("ttgubn")="" then
ttgubn="<22>ǻ<EFBFBD><C7BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
else
ttgubn=request.form("ttgubn")
end if
%>
<table class="t_table" cellpadding="1" cellspacing="0" border="0">
<tr style="height:25px;" class="t_head">
<td align="center" style="width:40px;" >No</td>
<td align="center" style="width:100px;" ><3E><>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ</td>
<td align="center" style="width:430px;" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE></td>
<td align="center" style="width:120px;" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td align="center" style="width:80px;" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td align="center" style="width:80px;" ><3E>ǻ<EFBFBD><C7BB><EFBFBD><EFBFBD><EFBFBD></td>
<td align="center" style="width:80px;" ><3E>м<EFBFBD><D0BC><EFBFBD><EFBFBD><EFBFBD></td>
<td align="center" style="width:77px;" >ǥ<><C7A5><EFBFBD><EFBFBD></td>
<td align="center" style="width:90px;" >OT<4F><54></td>
<td align="center" style="width:90px;" ><3E>ǻ<EFBFBD><C7BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td align="center" style="width:90px;" >DP<44><50><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
</tr>
<%
sql=" select AAA.* from "
sql=sql&" ( "
sql=sql&" select "
sql=sql&" C3.team_name, "
sql=sql&" C0.p_rsch_name, "
sql=sql&" C1.p_sv_name, "
sql=sql&" C2.p_dp_name, "
sql=sql&" AA.* "
sql=sql&" from "
sql=sql&" ( "
sql=sql&" select "
sql=sql&" A.p_child_sn as <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD>ڵ<EFBFBD>, "
sql=sql&" A.p_subject as <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE>, "
sql=sql&" A.p_method_cd, "
sql=sql&" B.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, "
sql=sql&" case when A.p_rsch_1_a<>'' then A.p_rsch_1_a "
sql=sql&" when A.p_rsch_2_a<>'' then A.p_rsch_2_a "
sql=sql&" when A.p_rsch_3_a<>'' then A.p_rsch_3_a "
sql=sql&" when A.p_rsch_4_a<>'' then A.p_rsch_4_a else '' end as p_rsch, "
sql=sql&" case when A.p_sv_1<>'' then A.p_sv_1 "
sql=sql&" when A.p_sv_2<>'' then A.p_sv_2 "
sql=sql&" when A.p_sv_3<>'' then A.p_sv_3 "
sql=sql&" when A.p_sv_4<>'' then A.p_sv_4 else '' end as p_sv, "
sql=sql&" case when A.p_dp_1<>'' then A.p_dp_1 "
sql=sql&" when A.p_dp_2<>'' then A.p_dp_2 "
sql=sql&" when A.p_dp_3<>'' then A.p_dp_3 "
sql=sql&" when A.p_dp_4<>'' then A.p_dp_4 else '' end as p_dp, "
sql=sql&" A.p_sample as ǥ<><C7A5><EFBFBD><EFBFBD>, "
sql=sql&" A.p_ot_date as OT<4F><54>, "
sql=sql&" A.p_field_date_end as <20>ǻ<EFBFBD><C7BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, "
sql=sql&" A.p_dp_date_end as DP<44><50><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, "
sql=sql&" A.p_rsch_dept as <20><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD> "
' sql=sql&" -- ,A.* "
sql=sql&" from "
sql=sql&" ( "
sql=sql&" select * from [dbo].[T_PROJECT_METHOD] "
sql=sql&" where p_complete_date is null "
sql=sql&" ) A "
sql=sql&" left join "
sql=sql&" (select p_method_cd, p_method_nm as <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> from [dbo].[T_PROJECT_METHOD_CD]) B "
sql=sql&" on A.p_method_cd=B.p_method_cd "
sql=sql&" ) AA "
sql=sql&" left join "
sql=sql&" (select p_no, p_name as p_rsch_name from person) C0 "
sql=sql&" on AA.p_rsch=C0.p_no "
sql=sql&" left join "
sql=sql&" (select p_no, p_name as p_sv_name from person) C1 "
sql=sql&" on AA.p_sv=C1.p_no "
sql=sql&" left join "
sql=sql&" (select p_no, p_name as p_dp_name from person) C2 "
sql=sql&" on AA.p_dp=C2.p_no "
sql=sql&" left join "
sql=sql&" (select team_cd,team_name from TEAM_GROUP) C3 "
sql=sql&" on AA.<2E><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD>=C3.team_cd "
sql=sql&" ) AAA "
sql=sql&" where len(isnull(AAA.OT<4F><54>,''))+len(isnull(AAA.<2E>ǻ<EFBFBD><C7BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,''))+len(isnull(AAA.DP<44><50><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,''))>0 "
sql=sql&" and left(AAA."&ttgubn&",10) between '"&s_date_st&"' and '"&s_date_end&"' "
select case ttgubn
case "<22>ǻ<EFBFBD><C7BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" : sql=sql&" order by AAA.<2E>ǻ<EFBFBD><C7BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> asc "
case "DP<44><50><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" : sql=sql&" order by AAA.DP<44><50><EFBFBD><EFBFBD><EFBFBD><EFBFBD> asc "
case "OT<4F><54>" : sql=sql&" order by AAA.OT<4F><54> asc "
end select
rsa.Open sql, adoConn, 1
dim acnt : acnt=1
while not rsa.Eof
%>
<tr style="height:25px;" >
<td align="center" ><%=acnt%></td>
<td align="center" ><%=rsa("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD>ڵ<EFBFBD>")%></td>
<td align="left" ><%=rsa("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE>")%></td>
<td align="center" ><%=rsa("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")%></td>
<td align="center" ><%=rsa("p_rsch_name")%></td>
<td align="center" ><%=rsa("p_sv_name")%></td>
<td align="center" ><%=rsa("p_dp_name")%></td>
<td align="right" ><%=formatnumber(rsa("ǥ<><C7A5><EFBFBD><EFBFBD>"),0)%></td>
<td align="center" ><%=left(rsa("OT<4F><54>"),10)%></td>
<td align="center" ><%=left(rsa("<22>ǻ<EFBFBD><C7BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"),10)%></td>
<td align="center" ><%=left(rsa("DP<44><50><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"),10)%></td>
</tr>
<%
acnt=acnt+1
rsa.movenext
Wend
rsa.Close
%>
</table>

View File

@@ -0,0 +1,452 @@
<!-- #include virtual = "include/header.asp" -->
<OBJECT RUNAT=Server PROGID=ADODB.Recordset id=rsp></OBJECT>
<OBJECT RUNAT=Server PROGID=ADODB.Recordset id=rsa></OBJECT>
<!-- #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">
<!-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD><C3BB> <20>˾<EFBFBD> üũ -->
<%
''' response.write request("p_sn") & ", " & request("p_sub_type") & "<br>"
p_sub_type = request("p_sub_type")
'project<63><74><EFBFBD>̺<EFBFBD> <20>Է<EFBFBD>
'---------------------------------------
'p_sn<73><6E><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
query = "SELECT p_sn "
query = query & "FROM T_PROJECT_BASE "
query = query & "WHERE substring(p_sn, 0, 5) = '" & right("0" & year(date()), 2) & right("0" & month(date()), 2) & "' "
query = query & " AND substring(p_sn, 5, 3) <> '000' "
query = query & " AND substring(p_sn, 8, 1) <> '_' " '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ö<EFBFBD><C3B6><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
query = query & "ORDER BY p_sn DESC "
rsc.Open query, adoConn, 1
if rsc.RecordCount > 0 then
if instr(1, rsc("p_sn"), "_") then
p_sn = right("0" & year(date()), 2) & right("0" & month(date()), 2) & right("000" & int(left(right(rsc("p_sn"), 5), 3)) + 1, 3)
else
p_sn = right("0" & year(date()), 2) & right("0" & month(date()), 2) & right("000" & int(right(rsc("p_sn"), 3)) + 1, 3)
end if
else
p_sn = right("0" & year(date()), 2) & right("0" & month(date()), 2) & "001"
end if
rsc.Close
if request("p_sn") <> "" then
p_sn = request("p_sn")
end if
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>⺻ <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
query = " SELECT p_sn, PB.p_cli_company_cd as p_cli_company_cd, PB.p_cli_per_cd as p_cli_per_cd, "
query = query & " p_state, p_subject, p_cli_company_nm, CP.p_cli_depart as p_cli_depart, "
query = query & " p_cli_per_nm, p_cli_per_com_tel, p_cli_per_tel, p_cli_per_email, "
query = query & " PB.p_client_type_cd as p_client_type_cd, p_cont_cost, p_decide_date, p_memo, p_state, pb.p_depart_dep as p_depart_dep "
query = query & " FROM "
query = query & " T_PROJECT_BASE PB INNER JOIN V_CLIENT_COMP CC ON PB.p_cli_company_cd = CC.p_cli_company_cd "
query = query & " INNER JOIN V_CLIENT_PERSON CP ON PB.P_CLI_PER_CD = CP.P_CLI_PER_CD "
query = query & " INNER JOIN T_CLIENT_TYPE_CD CTC ON PB.p_client_type_cd = CTC.p_client_type_cd "
query = query & " WHERE p_sn = '"&p_sn& "'"
rsc.Open query, adoConn, 1
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
query = " SELECT PMC.p_method_cd, p_method_nm, p_intention, p_child_sn, p_progress_status "
query = query & " FROM T_PROJECT_METHOD PM INNER JOIN T_PROJECT_METHOD_CD PMC ON PM.p_method_cd = PMC.p_method_cd "
query = query & " WHERE p_method_yn = 'y' "
query = query & " AND p_sn = '" & p_sn & "'"
query = query & " AND p_sub_type = '" & p_sub_type & "'"
rsa.Open query, adoConn, 1
'ȭ<><C8AD> <20>ʱⰪ <20><><EFBFBD><EFBFBD>.
'------------------------------------------------------------------------------------
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>÷<EFBFBD><C3B7><EFBFBD><EFBFBD><EFBFBD> <20>ʱⰪ
p_cli_company_cd = "" 'ȸ<><C8B8> <20>ڵ<EFBFBD>
p_cli_per_cd = "" '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ڵ<EFBFBD>
p_state = "" '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
p_subject = "" '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE>
p_cli_company_nm = "" 'ȸ<><C8B8><EFBFBD><EFBFBD>
p_cli_depart = "" '<27>μ<EFBFBD><CEBC><EFBFBD>
p_cli_per_nm = "" '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20≯<EFBFBD>
p_cli_per_com_tel = "" '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ȭ<EFBFBD><C8AD>ȣ
p_cli_per_tel = "" '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ȭ<EFBFBD><C8AD>ȣ
p_cli_per_email = "" '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20≯<EFBFBD><CCB8><EFBFBD>
p_client_type_cd = "" '<27><><EFBFBD><EFBFBD>
p_cont_cost = "" '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
p_decide_date = "" '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
p_memo = "" '<27>޸<EFBFBD>
p_depart_dep = "" '<27>Է<EFBFBD><D4B7><EFBFBD> <20>μ<EFBFBD>
p_method_count = 0
if rsc.RecordCount > 0 Then
p_method_count = rsc.RecordCount
if rsc("p_state") <> "" then
p_cli_company_cd = rsc("p_cli_company_cd")
p_cli_per_cd = rsc("p_cli_per_cd")
p_state = rsc("p_state")
p_subject = rsc("p_subject")
p_cli_company_nm = rsc("p_cli_company_nm")
p_cli_depart = rsc("p_cli_depart")
p_cli_per_nm = rsc("p_cli_per_nm")
p_cli_per_com_tel = rsc("p_cli_per_com_tel")
p_cli_per_tel = rsc("p_cli_per_tel")
p_cli_per_email = rsc("p_cli_per_email")
p_client_type_cd = rsc("p_client_type_cd")
p_depart_dep = rsc("p_depart_dep")
'<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ,<2C><><EFBFBD><EFBFBD>
if rsc("p_cont_cost") <> "" then
tmp_len = len(rsc("p_cont_cost"))
for i = 1 to int(tmp_len)
if i mod 3 = 1 and i <> 1 then
p_cont_cost = "," & p_cont_cost
end if
p_cont_cost = left(right(rsc("p_cont_cost"),i), 1) & p_cont_cost
next
end if
if int(p_cont_cost) = 0 then
p_cont_cost=1
end if
p_decide_date = rsc("p_decide_date")
p_memo = rsc("p_memo")
end if
end if
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ʱⰪ
' 2023-06-07 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>߰<EFBFBD><DFB0><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ŭ p_method_cd() <20>迭 <20>ο<EFBFBD>
Dim p_method_cd()
Dim p_child_sn()
Dim p_progress_status
ReDim p_method_cd(rsa.recordCount)
ReDim p_child_sn(rsa.recordCount)
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ƹ<EFBFBD><C6B9>͵<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
if rsa.recordCount > 0 then
'<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
for i=1 to rsa.recordCount
p_method_cd(i) = rsa("p_method_cd")
p_child_sn(i) = rsa("p_child_sn")
If i = 1 Then
p_method_cd_str = rsa("p_method_cd")
Else
p_method_cd_str = p_method_cd_str & "," & rsa("p_method_cd")
End if
p_progress_status = rsa("p_progress_status")
rsa.MoveNext
next
else
p_method_cd(1) = "0"
p_progress_status = "000"
end if
rsa.close
rsc.close
%>
<form id="proposalForm" name="pms" method="post">
<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_str%>"/>
<% If p_sub_type = "C" Then %>
<input type="hidden" name="p_child_sn" value="<%=p_child_sn(1)%>"/>
<% End If %>
<input type="hidden" name="p_progress_status" value="<%=p_progress_status%>"/>
<input type="hidden" name="state" value="<%=p_state %>"/>
<input type="hidden" name="user_no" value="<%=Session("User_Number")%>"/>
<input type="hidden" name="f_work_type" value="001"/>
<input type="hidden" name="current_p_sub_type" value=""/>
<input type="hidden" name="current_p_method_cd" value=""/>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr height="26">
<td colspan="5" style="padding: 0 0 0 0;">
<div style="position:relative; padding: 0px; margin: 0px;">
<img src="/images/main/bubble_1num.png" style="">
<span style="position:absolute; top: 1px; left: 27px; font-size: 12pt; font-weight:bold;"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>߰<EFBFBD></span>
</div>
</td>
</tr>
<tr>
<td style="padding:5 0 0 0;">
<table width="870" class="table table-sm table-sm2 table-bordered table-head tr-colors">
<tr>
<td colspan="2" width="15%" class='tit2' align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><>ȣ</td>
<td width="35%" class='tit7' >
<input type="text" style="width:300;" name="p_sn_show" value="<%=p_sn %>" readonly>
</td>
<td colspan="2" align="center" class='tit2'><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><></td>
<td width="35%" class='tit7' >
<input type="text" style="width:300;" id="p_subject" name="p_subject" value="<%=p_subject %>">
</td>
</tr>
<tr>
<td colspan="2" align="center" class='tit2'><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td colspan="4" class='tit7'>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<%
q = "SELECT * "
q = q & "FROM T_PROJECT_METHOD_CD "
rsp.Open q, adoConn, 1
i=0
j=1
do while not rsp.eof
i=i+1
If p_sub_type = "C" Then
If rsp("p_method_cd") = p_method_cd(1) Then
p_method_nm = rsp("p_method_nm")
End if
End if
%>
<td><input type="checkbox" class="none" name="current_p_method_cd" value="<%=rsp("p_method_cd") %>" onClick="chkboxSum(this)"><%=rsp("p_method_nm") %></input></td>
<% if i mod 5 = 0 then %>
</tr><tr>
<% end if
rsp.movenext
loop
rsp.close
%>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2" align="center" class='tit2'><3E><><EFBFBD>系<EFBFBD><E7B3BB></td>
<td colspan="4" class='tit7'>
<input type="text" name="p_intention" value="" style="width:660;" />
</td>
</tr>
<tr id="tr_p_sub_type">
<td colspan="6" style="position:relative; padding: 0px 0px 0px 10px; margin: 0px;">
<span id="p_sub_type_comment"></span>
&nbsp;&nbsp;&nbsp;<input type="radio" name="p_sub_type_change" value="Y" onclick="select_p_sub_type('<%=p_sn%>','<%=p_sub_type%>')" style="display:none;"/>
&nbsp;&nbsp;&nbsp;<input type="radio" name="p_sub_type_change" value="N" onclick="select_p_sub_type('<%=p_sn%>','<%=p_sub_type%>')" checked style="display:none;"/>
<img src='/images/common/Bottom_down.png' style="cursor:pointer; width:20px; position:absolute; top: 0px; right: 0px; display:none; "
onclick="">
</td>
</tr>
<tr class="tr_p_client" style="display: none;">
<td rowspan="7" class="tit2">Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ</td>
</tr>
<tr class="tr_p_client" style="display: none;">
<td align="center" class="tit2">ȸ<><C8B8></td>
<td class="tit5" colspan="4">
<input type="text" style="width:200;" name="p_cli_company_nm" value="<%=p_cli_company_nm %>" readonly onClick="search('./cli_search_2014.asp','ClientSearch','width=390,height=381,left=100,top=50,scrollbars=yes')" style="cursor:pointer">
<input type="hidden" name="p_cli_company_cd" value="<%=p_cli_company_cd %>" />
<input type="hidden" name="p_cli_per_cd" value="<%=p_cli_per_cd %>" />
</td>
</tr>
<tr class="tr_p_client" style="display: none;">
<td align="center" class="tit2"><3E>μ<EFBFBD></td>
<td class="tit5" colspan="4">
<input type="text" style="width:300;" name="p_cli_depart" value="<%=p_cli_depart %>" readonly>
</td>
</tr>
<tr class="tr_p_client" style="display: none;">
<td align="center" class="tit2"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20≯<EFBFBD></td>
<td class="tit5" colspan="4">
<input type="text" style="width:300;" name="p_cli_per_nm" value="<%=p_cli_per_nm %>" readonly>
</td>
</tr>
<tr class="tr_p_client" style="display: none;">
<td align="center" class="tit2">ȸ<><C8B8> <20><>ȣ</td>
<td class="tit5" colspan="4">
<input type="text" style="width:300;" name="p_cli_per_com_tel" value="<%=p_cli_per_com_tel %>" readonly>
</td>
</tr>
<tr class="tr_p_client" style="display: none;">
<td align="center" class="tit2"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><br /> <20>޴<EFBFBD><DEB4><EFBFBD></td>
<td class="tit5" colspan="4">
<input type="text" style="width:300;" name="p_cli_per_tel" value="<%=p_cli_per_tel %>" readonly>
</td>
</tr>
<tr class="tr_p_client" style="display: none;">
<td align="center" class="tit2"><3E≯<EFBFBD><CCB8><EFBFBD></td>
<td class="tit5" colspan="4">
<input type="text" style="width:300;" name="p_cli_per_email" value="<%=p_cli_per_email %>" readonly>
</td>
</tr>
<tr><td colspan="6"></td></tr>
<tr class="tr_p_detail" style="display: none;">
<td colspan="2" align="center" class="tit2 tit_right"> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td class="tit5" colspan="4">
<input class="input" type="text" name="p_decide_date" size="10" value="<%=p_decide_date %>" readonly>
</td>
</tr>
<tr class="tr_p_detail" style="display: none;">
<td colspan="2" align="center" class="tit2"><3E><><EFBFBD><EFBFBD></td>
<td class="tit5" colspan="4">
<select name="p_client_type_cd">
<option value=""><3E><><EFBFBD><EFBFBD></option>
<%
q = "SELECT * "
q = q & "FROM T_CLIENT_TYPE_CD "
rsp.Open q, adoConn, 1
if rsp.RecordCount > 0 then
for i = 1 to rsp.RecordCount
%>
<option value="<%=rsp("p_client_type_cd")%>" <% if p_client_type_cd = rsp("p_client_type_cd") then %> selected <% end if %>> <%=rsp("p_client_type_nm")%></option>
<%
rsp.MoveNext
next
end if
rsp.Close
%>
</select>
</td>
</tr>
<tr><td colspan="6"></td></tr>
<tr class="tr_p_detail" style="display: none;">
<td colspan="2" align="center" class="tit2"><3E><><EFBFBD><EFBFBD></td>
<td class="tit5" colspan="4">
<textarea style="width:99%;height:60;" name="p_memo"><%=p_memo %></textarea>
</td>
</tr>
<tr height="20px;"><td colspan="6"></td></tr>
<td align="center" colspan="6" style="padding:10 0 0 0">
<img src="/images/project/btn_save.jpg" align="absmiddle" style="cursor:pointer" onClick="subit('<%=p_sn %>','<%=p_sub_type%>')">
<img src="/images/common/btn_cancel2.jpg" align="absmiddle" style="cursor:pointer" onClick="clsit()">
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</div>
</div>
</div>
</div>
</div>
<!-- /.content -->
<!-- REQUIRED SCRIPTS -->
<script>
var project_subject = "";
var current_p_sub_type = "";
var current_p_method_cd = "";
var add_p_cont_cost_flag = false;
$(document).ready(function () {
cutmenu();
var pms = document.pms;
project_subject = pms.p_subject.value;
$("#tr_p_sub_type").hide();
select_p_sub_type('<%=p_sn%>', '<%=p_sub_type%>');
});
function chkboxSum(chk) {
var pms = document.pms;
checkSum = 0;
for (i = 0; i < pms.current_p_method_cd.length; i++) {
if (pms.current_p_method_cd[i].checked == true) {
current_p_method_cd = pms.current_p_method_cd[i].value;
checkSum++;
}
}
if (checkSum > 1) {
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 1<><31><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>մϴ<D5B4>.");
chk.checked = false;
return;
}
}
function select_p_sub_type(p_sn, p_sub_type){
var pms = document.pms;
var checkValue;
checkSum = 0;
for (i = 0; i < pms.p_sub_type_change.length; i++) {
if (pms.p_sub_type_change[i].checked == true) {
checkValue = pms.p_sub_type_change[i].value;
checkSum++;
}
}
if(checkSum > 0){
if(checkValue == "Y"){
$("#p_subject").val(project_subject);
current_p_sub_type = "M"
}else{
current_p_sub_type = "C"
$("#p_subject").val("");
}
}else{
alert("<22>߰<EFBFBD><DFB0><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>Ͻʽÿ<CABD>.");
}
}
function subit(p_sn, p_sub_type){
var form = document.pms;
if(current_p_method_cd == ""){
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20>߰<EFBFBD><DFB0><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>.");
return false;
}if(form.p_intention.value == ""){
alert("<22>߰<EFBFBD><DFB0><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>ϼ<EFBFBD><CFBC><EFBFBD>.");
return false;
}else if(form.p_subject.value == ""){
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>ϼ<EFBFBD><CFBC><EFBFBD>.");
form.p_subject.focus();
return false;
}else{
}
if (confirm("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD> <20>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?")) {
save(p_sn, p_sub_type);
} else {
return;
}
}
function save(p_sn, p_sub_type) {
document.pms.enctype = "application/x-www-form-urlencoded";
document.pms.encoding = "application/x-www-form-urlencoded";
document.pms.action = 'project_list2_add_ok_2014.asp';
document.pms.current_p_sub_type.value = current_p_sub_type;
document.pms.current_p_method_cd.value = current_p_method_cd;
document.pms.submit();
}
function clsit() {
window.close();
}
</script>
</div>
<!-- /.content-wrapper -->
<!-- #include virtual = "include/footer.asp" -->

View File

@@ -0,0 +1,254 @@
<!-- #include virtual = "lib/config.asp" -->
<%
set rsp = server.CreateObject("ADODB.RECORDSET")
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
p_sn = request("p_sn") '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ<EFBFBD>
p_subject = request("p_subject") '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE>
p_sub_type = request("p_sub_type") '<27>ű<EFBFBD><C5B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ Ÿ<><C5B8>
p_child_sn = request("p_child_sn") '<27>ڽ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><>ȣ
p_intention = request("p_intention") '<27><><EFBFBD>系<EFBFBD><E7B3BB>
p_cli_company_cd = request("p_cli_company_cd") 'Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ ȸ<><C8B8><EFBFBD>ڵ<EFBFBD>
p_cli_company_nm = request("p_cli_company_nm") 'Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ ȸ<><C8B8><EFBFBD><EFBFBD>
p_cli_per_cd = request("p_cli_per_cd") 'Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ ȸ<><C8B8> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ڵ<EFBFBD>
p_cli_depart = request("p_cli_depart") 'Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ ȸ<><C8B8> <20>μ<EFBFBD> <20>ڵ<EFBFBD>
p_cli_per_nm = request("p_cli_per_nm") 'Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ ȸ<><C8B8> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20≯<EFBFBD>
p_cli_per_tel = request("p_cli_per_tel") 'Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ ȸ<><C8B8> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ȭ<EFBFBD><C8AD>ȣ
p_cli_per_email = request("p_cli_per_email") 'Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ ȸ<><C8B8> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20≯<EFBFBD><CCB8><EFBFBD>
p_client_type_cd = request("p_client_type_cd") '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
p_cont_cost = replace(request("p_cont_cost"),",", "") '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
p_decide_date = request("p_decide_date") '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
p_memo = request("p_memo") '<27><><EFBFBD><EFBFBD>
p_method_cd = Split(request("p_method_cd"), ",") '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
current_p_sub_type = request("current_p_sub_type") '<27>ű<EFBFBD><C5B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ Ÿ<><C5B8>
current_p_method_cd = Trim(Replace(request("current_p_method_cd"), ",", "")) '<27>ű<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
add_p_cont_cost = Trim(Replace(request("add_p_cont_cost"), ",", "")) '<27>߰<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
If CInt(current_p_method_cd) < 10 Then
tmp_method_cd = "0" & current_p_method_cd
Else
tmp_method_cd = current_p_method_cd
End If
If UBound(p_method_cd) > 0 Then
If UBound(p_method_cd) = 1 Then
'response.write "p_method_cd : " & p_method_cd(0) & "<br>"
Else
For i = 0 To UBound(p_method_cd) Step 1
'response.write "p_method_cd : " & p_method_cd(i) & "<br>"
next
End If
Else
'response.write "p_method_cd : " & p_method_cd(0) & "<br>"
End If
'p_method_cd <20>̰<EFBFBD> M<><4D> <20><><EFBFBD><EFBFBD> split ","<22><> <20>ɰ<EFBFBD><C9B0><EFBFBD> ubound<6E><64> ī<><C4AB><EFBFBD><EFBFBD><EFBFBD>Ѵ<EFBFBD>.
'response.write "UBound(p_method_cd) + 2 : " & UBound(p_method_cd) + 2 & "<br>"
tmp_method_count = UBound(p_method_cd) + 2
If tmp_method_count < 10 Then
tmp_method_count = "0" & tmp_method_count
End If
'response.write "p_sn : " & p_sn & "<br>"
'response.write "p_subject : " & p_subject & "<br>"
'response.write "p_sub_type : " & p_sub_type & "<br>"
'response.write "p_child_sn : " & p_child_sn & "<br>"
'response.write "p_intention : " & p_intention & "<br>"
'response.write "current_p_sub_type : " & current_p_sub_type & "<br>"
'response.write "current_p_method_cd : " & current_p_method_cd & "<br>"
'response.write "add_p_cont_cost : " & add_p_cont_cost & "<br>"
'response.write "current_p_child_sn : " & p_sn & "_" & current_p_sub_type & tmp_method_cd & tmp_method_count & "<br>"
'current_p_child_sn = p_sn & "_" & current_p_sub_type & tmp_method_cd & tmp_method_count
current_p_child_sn = p_sn & "_" & current_p_sub_type & tmp_method_count
'response.write "current_p_child_sn : " & current_p_child_sn & "<br>"
'response.write "p_cli_company_cd : " & p_cli_company_cd & "<br>"
'response.write "p_cli_company_nm : " & p_cli_company_nm & "<br>"
'response.write "p_cli_per_cd : " & p_cli_per_cd & "<br>"
'response.write "p_cli_depart : " & p_cli_depart & "<br>"
'response.write "p_cli_per_nm : " & p_cli_per_nm & "<br>"
'response.write "p_cli_per_tel : " & p_cli_per_tel & "<br>"
'response.write "p_cli_per_email : " & p_cli_per_email & "<br>"
'response.write "p_client_type_cd : " & p_client_type_cd & "<br>"
'response.write "p_cont_cost : " & p_cont_cost & "<br>"
'response.write "p_decide_date : " & p_decide_date & "<br>"
'response.write "p_memo : " & p_memo & "<br>"
''' 1 : <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> C<><43> <20><><EFBFBD><EFBFBD> M<><4D><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϸ鼭 <20><><EFBFBD>縦 <20>߰<EFBFBD> <20><> <20><><EFBFBD>̳<EFBFBD>? <20>׳<EFBFBD> C<><43> <20>߰<EFBFBD> <20><> <20><><EFBFBD>̳<EFBFBD>?
''' <09><><EFBFBD><EFBFBD><EFBFBD>ݾ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> M<>ϰ<EFBFBD><CFB0><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ݾ׿<DDBE> <20>߰<EFBFBD><DFB0><EFBFBD> <20><><EFBFBD>ϰ<EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȹ<EFBFBD><C8B9> <20><><EFBFBD><EFBFBD> <20>ٽ<EFBFBD> <20>޾ƾ<DEBE> <20><>, C<><43> <20><><EFBFBD><EFBFBD> <20>߰<EFBFBD><DFB0><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20>߰<EFBFBD>
''' 2 : <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> M<><4D> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>縦 <20>߰<EFBFBD> <20><> <20><><EFBFBD>̳<EFBFBD>? <20>׳<EFBFBD> C<><43> <20>߰<EFBFBD> <20><> <20><><EFBFBD>̳<EFBFBD>?
''' <09><><EFBFBD><EFBFBD><EFBFBD>ݾ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> M<>ϰ<EFBFBD><CFB0><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ݾ׿<DDBE> <20>߰<EFBFBD><DFB0><EFBFBD> <20><><EFBFBD>ϰ<EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȹ<EFBFBD><C8B9> <20><><EFBFBD><EFBFBD> <20>ٽ<EFBFBD> <20>޾ƾ<DEBE> <20><>, C<><43> <20><><EFBFBD><EFBFBD> <20>߰<EFBFBD><DFB0><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20>߰<EFBFBD>
set dbin = server.CreateObject("ADODB.CONNECTION")
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȹ<EFBFBD><C8B9> <20>ڵ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>߰<EFBFBD>
query = "select top 1 * from T_Project_method where p_sn='"&p_sn&"' order by p_child_sn desc"
rsp.Open query, adoConn, 1
if not rsp.eof then
if current_p_child_sn = rsp("p_child_sn") Then
child_count = Cint(mid(rsp("p_child_sn"),10,11))+1
current_p_child_sn = p_sn & "_" & current_p_sub_type & child_count
End If
End IF
rsp.Close
'<27>ű<EFBFBD> T_Project_BASE<53><45> P_Method_Cd üũ <20><>, <20>߰<EFBFBD><DFB0><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ڵ尡 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>߰<EFBFBD>'
query = " select isnull(p_methodCd, '') as p_methodCd from project2.dbo.T_PROJECT_BASE where p_sn='"&p_sn&"' "
rsp.Open query, adoConn, 1
method_cd = False
if not rsp.eof then
Base_p_method_Cd = split(rsp("p_methodCd"),",")
For iCnt = LBOUND(Base_p_method_Cd) to UBOUND(Base_p_method_Cd)
If Cstr(Base_p_method_Cd(iCnt)) = Cstr(current_p_method_cd) Then
method_cd = True
End IF
NEXT
End IF
rsp.Close
If method_cd = False then
query=" Update project2.dbo.T_PROJECT_BASE set p_methodCd=p_methodCd+','+'"&current_p_method_cd&"' where p_sn='"&p_sn&"' "
dbin.Open adoConn
dbin.Execute query
dbin.Close
End IF
sql_from = "INSERT INTO "
sql_from = sql_from & " T_PROJECT_METHOD "
sql_from = sql_from & "(p_sn, p_sub_type, p_method_cd, p_subject, p_intention, p_child_sn, p_progress_status, p_cli_company_cd, p_client_type_cd, p_input_dt, p_input_complete, p_progress_flag, "
sql_from = sql_from & " p_rsch_1_a, p_rsch_2_a, p_rsch_3_a, p_rsch_4_a, p_rsch_1_b, p_rsch_2_b, p_rsch_3_b, p_rsch_4_b, p_rsch_1_c, p_rsch_2_c, p_rsch_3_c, p_rsch_4_c, "
sql_from = sql_from & " p_sv_1, p_sv_2, p_sv_3, p_sv_4, p_code_1, p_code_2, p_code_3, p_code_4, p_verify_1, p_verify_2, p_verify_3, p_verify_4, p_punch_1, p_punch_2, p_punch_3, p_punch_4, "
sql_from = sql_from & " p_dp_1, p_dp_2, p_dp_3, p_dp_4, p_it_1, p_it_2, p_it_3, p_it_4 "
sql_values = " ) VALUES ( "
sql_insertValue = "'" & p_sn & "', '" & current_p_sub_type & "', '" & current_p_method_cd & "', '" & p_subject & "', '" & p_intention & "', '" & current_p_child_sn & "', '" & "001" & "', '" & p_cli_company_cd & "', '" & p_client_type_cd & " ', GETDATE(), 'xxx', 'xxx', "
sql_insertValue = sql_insertValue & " '','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','' "
sql_end = " ) "
project_M_type_exist = False
project_workflow = false
If p_sub_type = "M" Then
'''<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> M<><4D> <20><><EFBFBD><EFBFBD>
If current_p_sub_type = "M" Then '''<27><><EFBFBD>縦 M<><4D><EFBFBD><EFBFBD> <20>߰<EFBFBD> <20><> <20><><EFBFBD><EFBFBD>
If add_p_cont_cost <> "0" Or add_p_cont_cost <> "" Then
'''T_PROJECT_BASE<53><45> p_cont_cost<73><74> add_p_cont_cost<73><74> <20>ջ<EFBFBD><D5BB>Ѵ<EFBFBD>. (<28>Ѱ<EFBFBD><D1B0><EFBFBD> p_sn<73><6E> M<><4D><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20>Ѱ<EFBFBD> <20>̹Ƿ<CCB9> T_PROJECT_BASE <20><><EFBFBD>̺<EFBFBD><CCBA><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>Ѵ<EFBFBD>.
query = "update T_PROJECT_BASE set p_cont_cost = '" & (CLng(p_cont_cost) + CLng(add_p_cont_cost)) & "' where p_sn = '" & p_sn & "' "
dbin.Open adoConn
dbin.Execute query
dbin.Close
End If
query = "select COUNT(p_sub_type) as p_sub_type_cnt, p_progress_status from V_PROJECT_METHOD where p_sn = '" & p_sn & "' and p_sub_type = 'M' group by p_progress_status "
rsp.Open query, adoConn, 1
if rsp.RecordCount = 1 Then
Response.Write "rsp.RecordCount : " & rsp.RecordCount & "<BR>"
If CInt(rsp("p_progress_status")) > 6 Then
project_workflow = true
'''<27><><EFBFBD><EFBFBD> p_progress_status<75><73> 007<30>̰ų<CCB0>, 008<30><38> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȹ<EFBFBD><C8B9><EFBFBD><EFBFBD> <20><><EFBFBD>簡 <20><><EFBFBD>ҵǰų<C7B0>, <20>̹<EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20>κ<EFBFBD><CEBA><EFBFBD> <20>ݷ<EFBFBD> ó<><C3B3> <20>Ǿ<EFBFBD><C7BE><EFBFBD> <20>Ѵ<EFBFBD>.
'''(p_progress_status = 001, p_state = 'K', Document <20><><EFBFBD>̺<EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>̺<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>...
'''T_PROJECT_METHOD<4F><44> child_sn<73><6E> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> p_progress_status <20><> 001<30><31> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>Ѵ<EFBFBD>.
Else
'''T_PROJECT_METHOD<4F><44> child_sn<73><6E> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> p_progress_status <20><> 001<30><31> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>Ѵ<EFBFBD>.
query = "update T_PROJECT_METHOD set p_progress_status = '001' where p_sn = '" & p_sn & "' and p_sub_type = 'M' "
dbin.Open adoConn
dbin.Execute query
dbin.Close
End if
End If
rsp.close
Else
'''<27><><EFBFBD>縦 C<><43> <20>߰<EFBFBD> <20><> <20><><EFBFBD><EFBFBD> - C-C<>߰<EFBFBD> <20>Ϸ<EFBFBD>
If add_p_cont_cost <> "0" Or add_p_cont_cost <> "" Then
sql_from = sql_from & ", p_cont_cost"
sql_insertValue = sql_insertValue & ", '" & add_p_cont_cost & "' "
End If
End If
Else
'''<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> C<><43> <20><><EFBFBD><EFBFBD>
If current_p_sub_type = "M" Then '''<27><><EFBFBD>縦 M<><4D><EFBFBD><EFBFBD> <20>߰<EFBFBD> <20><> <20><><EFBFBD><EFBFBD>
'''<27>̹<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> p_sub_type<70><65> M<><4D> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>쿡<EFBFBD><ECBFA1> <20>߰<EFBFBD> <20>Ұ<EFBFBD><D2B0><EFBFBD>~!!! (2014-06-29 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><>Ƽ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> 1<><31><EFBFBD><EFBFBD> <20>ʰ<EFBFBD> <20>Ҽ<EFBFBD> <20><><EFBFBD><EFBFBD>...)
query = "select COUNT(p_sub_type) as cnt from T_PROJECT_METHOD where p_sn = '" & p_sn & "' and p_sub_type = 'M' "
rsp.Open query, adoConn, 1
if rsp.RecordCount > 0 Then
'Response.Write "rsp.RecordCount : " & rsp.RecordCount & "<BR>"
'Response.Write "rsp('cnt') : " & rsp("cnt") & "<BR>"
If rsp("cnt") > 0 Then
project_M_type_exist = True
End if
End if
rsp.close
If Not project_M_type_exist Then
'''<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> Method Table<6C><65> p_sub_type<70><65> M, p_child_sn<73><6E> C<><43> M<><4D><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>Ѵ<EFBFBD>.
tmp_change_p_child_sn = Replace(p_child_sn, "C", "M")
'''T_PROJECT_METHOD<4F><44> child_sn<73><6E> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> p_progress_status <20><> 001<30><31> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>Ѵ<EFBFBD>.
query = "update T_PROJECT_METHOD set p_progress_status = '001', p_sub_type = 'M', p_child_sn = '" & tmp_change_p_child_sn & "' where p_sn = '" & p_sn & "' and p_sub_type = 'C' and p_child_sn = '" & p_child_sn & "' "
'Response.Write "query : " & query & "<BR>"
dbin.Open adoConn
dbin.Execute query
dbin.Close
End if
'''<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>, <20>뿪<EFBFBD><EBBFAA><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE>, <20><><EFBFBD>系<EFBFBD><E7B3BB> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Method Table<6C><65> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>Ѵ<EFBFBD>.
'''T_PROJECT_BASE<53><45> p_cont_cost<73><74> add_p_cont_cost<73><74> <20>ջ<EFBFBD><D5BB>Ѵ<EFBFBD>.
'''<27><><EFBFBD><EFBFBD> p_progress_status<75><73> 007<30>̰ų<CCB0>, 008<30><38> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȹ<EFBFBD><C8B9><EFBFBD><EFBFBD> <20><><EFBFBD>簡 <20><><EFBFBD>ҵǰų<C7B0>, <20>̹<EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20>κ<EFBFBD><CEBA><EFBFBD> <20>ݷ<EFBFBD> ó<><C3B3> <20>Ǿ<EFBFBD><C7BE><EFBFBD> <20>Ѵ<EFBFBD>.
Else
'''<27><><EFBFBD>縦 C<><43> <20>߰<EFBFBD> <20><> <20><><EFBFBD><EFBFBD> - C-C<>߰<EFBFBD> <20>Ϸ<EFBFBD>
If add_p_cont_cost <> "0" Or add_p_cont_cost <> "" Then
sql_from = sql_from & ", p_cont_cost"
sql_insertValue = sql_insertValue & ", '" & add_p_cont_cost & "' "
End If
End If
query = sql_from & sql_values & sql_insertValue & sql_end
End If
query = sql_from & sql_values & sql_insertValue & sql_end
dbin.Open adoConn
If project_M_type_exist Or project_workflow Then
Response.Write "<22><><EFBFBD>ܷ<EFBFBD> <20><><EFBFBD><EFBFBD> ó<><C3B3> <20><><EFBFBD><EFBFBD><BR>"
Else
dbin.Execute query
End if
dbin.Close
%>
<html>
<script>
function goit() {
var form = document.pms;
if(form.project_M_type_exist.value == "true"){
alert("<22>θ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20>̹<EFBFBD> Multi Project<63><74> <20><><EFBFBD><EFBFBD> <20>մϴ<D5B4>.\n<><6E><EFBFBD><EFBFBD><EFBFBD>ڿ<EFBFBD><DABF><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ϼ<EFBFBD><CFBC><EFBFBD>.");
}else if(form.project_workflow.value == "true"){
alert("<22>θ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȹ<EFBFBD><C8B9><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>̰ų<CCB0>, <20><><EFBFBD>簡 <20>Ϸ<EFBFBD> <20>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.\n<><6E><EFBFBD><EFBFBD><EFBFBD>ڿ<EFBFBD><DABF><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ϼ<EFBFBD><CFBC><EFBFBD>.");
}else{
alert('<27><><EFBFBD>ϵǾ<CFB5><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>');
}
window.opener.opener.location.reload();
window.opener.close();
window.close();
}
</script>
<body onLoad="goit()">
<form name="pms" method="post">
<input type="hidden" name="project_M_type_exist" value="<%=project_M_type_exist%>"/>
<input type="hidden" name="project_workflow" value="<%=project_workflow%>"/>
</form>
</body>
</html>

View File

@@ -0,0 +1,228 @@
<!-- #include virtual = "lib/config.asp" -->
<%
set rsp = server.CreateObject("ADODB.RECORDSET")
p_sn = request("p_sn")
teamname = request("teamname")
'Response.Write today & "<BR>"
query = "SELECT * "
query = query & "FROM project "
query = query & "WHERE p_sn='" & p_sn & "' "
rsc.Open query, adoConn, 1
if rsc.RecordCount > 0 then
p_view_grade = rsc("p_view_grade")
query = "SELECT * "
query = query & "FROM depart "
query = query & "WHERE d_code = '" & Session("Depart_Code") & "' "
rsp.Open query, adoConn, 1
if rsp.RecordCount > 0 then
tmp_login_code = rsp("d_mcode") '<27>ش<EFBFBD><D8B4>μ<EFBFBD><CEBC><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
else
tmp_login_code = "99"
end if
rsp.Close
query = "SELECT * "
query = query & "FROM person "
query = query & "WHERE p_no = '" & Session("User_Number") & "' "
rsp.Open query, adoConn, 1
if rsp.RecordCount > 0 then
tmp_job_part = rsp("p_job_part") '<27>ӿ<EFBFBD>(+<2B><>ȫ<EFBFBD><C8AB>)<29><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ǵ<EFBFBD>
else
tmp_job_part = "99"
end if
rsp.Close
'----------------------------------------------------------------------------
tmp_view_allow = "0" '(0 : <20><><EFBFBD><EFBFBD><EFBFBD>Ұ<EFBFBD>, 1 : <20><><EFBFBD>డ<EFBFBD><E0B0A1>)
if p_view_grade = "1" then '<27><>ü <20><> <20><><EFBFBD><EFBFBD>
tmp_view_allow = "1"
elseif p_view_grade = "2" then '<27><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD> <20><><EFBFBD><EFBFBD>
if int(tmp_login_code) <= 2 or tmp_admin_chk = "1" then
tmp_view_allow = "1"
else
tmp_view_allow = "0"
end if
elseif p_view_grade = "3" then '<27>ش<EFBFBD><D8B4>μ<EFBFBD> <20><><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
if rsc("p_depart") = tmp_login_code or tmp_admin_chk = "1" then
tmp_view_allow = "1"
else
tmp_view_allow = "0"
end if
elseif p_view_grade = "4" then '<27>μ<EFBFBD><CEBC><EFBFBD> <20><><EFBFBD><EFBFBD>
if Session("admin_Code") = "1" or tmp_admin_chk = "1" then
tmp_view_allow = "1"
else
tmp_view_allow = "0"
end if
elseif p_view_grade = "5" then '<27>ӿ<EFBFBD> <20><><EFBFBD><EFBFBD>
if tmp_job_part = "00" or tmp_admin_chk = "1" then
tmp_view_allow = "1"
else
tmp_view_allow = "0"
end if
end if
'----------------------------------------------------------------------------
'----------------------------------------------------------------------------
'<27><><EFBFBD><EFBFBD>Ȯ<EFBFBD><C8AE>(<28>濵<EFBFBD><E6BFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD><CFB7><EFBFBD><EFBFBD>°<EFBFBD> <20>ƴ϶<C6B4><CFB6><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
if rsc("p_reg_mana") = "0" then
tmp_view_allow = "1"
end if
'----------------------------------------------------------------------------
'----------------------------------------------------------------------------
'Ư<><C6AF><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<28><><EFBFBD><EFBFBD><EFBFBD>м<EFBFBD><D0BC>δ<EFBFBD> <20>׳<EFBFBD> view <20><><EFBFBD><EFBFBD>, <20>Ǵ<EFBFBD> p_view_grade<64><65> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ʴ´ٸ<C2B4> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ϼ<EFBFBD><CFBC><EFBFBD> <20>ƴϹǷ<CFB9> <20>׳<EFBFBD> <20><> <20><><EFBFBD><EFBFBD>)
if tmp_login_code = "11" or p_view_grade = "" or isnull(p_view_grade) then
'tmp_view_allow = "1"
end if
'----------------------------------------------------------------------------
'----------------------------------------------------------------------------
'Ư<><C6AF><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<28>濵<EFBFBD><E6BFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>׳<EFBFBD> view <20><><EFBFBD><EFBFBD>)
if tmp_login_code = "13" then
tmp_view_allow = "1"
end if
'----------------------------------------------------------------------------
'----------------------------------------------------------------------------
'tmp_view_allow = "0"<22><> <20><> <20><><EFBFBD>డ<EFBFBD><E0B0A1> <20>㰡<EFBFBD><E3B0A1> <20>þҴ<C3BE><D2B4><EFBFBD> üũ
if tmp_view_allow = "0" then
query = "SELECT * "
query = query & "FROM view_allow "
query = query & "WHERE p_sn = '" & p_sn & "' "
query = query & " AND p_no = '" & Session("User_Number") & "' "
query = query & " AND flag <> 'N' "
query = query & "ORDER BY limit_date DESC "
rsp.Open query, adoConn, 1
if rsp.RecordCount > 0 then
if not isnull(rsp("limit_date")) and date() <= rsp("limit_date") then
tmp_view_allow = "1"
end if
tmp_flag = rsp("flag")
else
tmp_flag = ""
end if
rsp.Close
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">
<script src="/lib/function.js" type="text/javascript1.3"></script>
<title>
<09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ ǥ<><C7A5>
</title>
<script language=javascript>
function goit(z,x,c)
{
if (c == 1)
{
document.pms.action = 'project_list2_dep.asp?p_sn=' + z + '&teamname=' + x;
document.pms.submit();
}
}
function clsit()
{
self.close();
}
function reqit(a)
{
document.pms.action = "project_list2_chk_req.asp?p_sn=" + a;
document.pms.submit();
}
</script>
</head>
<body onLoad="goit('<%=p_sn%>','<%=tmp_teamname%>','<%=tmp_view_allow%>')">
<form name="pms" method="post">
<%
if tmp_flag = "R" then
tmp_txt = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>û<EFBFBD><C3BB> <20>Դϴ<D4B4>"
else
tmp_txt = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>û<EFBFBD>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?"
end if
if tmp_view_allow = "0" then
%>
<table border="0" cellspacing="0" cellpadding="0" width="350" align="center">
<tr>
<td bgcolor="#B8B0A9" height="2">
</td>
</tr>
<tr bgcolor="#E6FFBB" align="center" height="35">
<td>
<p style="">
<09><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>. <%=tmp_txt%>
</p>
</td>
</tr>
<tr height="1">
<td colspan="4" bgcolor="#85DF66">
</tr>
<tr bgcolor="" align="center" height="30">
<td>
<%
if tmp_flag <> "R" then
%>
<input type="button" value="<22><> û" onClick="reqit('<%=p_sn%>')">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<%
end if
%>
<input type="button" value="<22><> <20><>" onClick="clsit()">
</td>
</tr>
<tr>
<td bgcolor="#B8B0A9" height="2">
</td>
</tr>
</table>
<%
end if
%>
</form>
</body>
</html>
<%
else
alert2 "DB<44><42><EFBFBD><EFBFBD> <20>Դϴ<D4B4>. <20><><EFBFBD><EFBFBD><EFBFBD>ڿ<EFBFBD><DABF><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>"
end if 'if rsc.RecordCount > 0 then
rsc.Close
%>

View File

@@ -0,0 +1,68 @@
<!-- #include virtual = "lib/config.asp" -->
<%
set rsp = server.CreateObject("ADODB.RECORDSET")
p_sn = request("p_sn")
'Response.Write today & "<BR>"
query = "SELECT * "
query = query & "FROM view_allow "
query = query & "WHERE p_sn='" & p_sn & "' "
query = query & "AND p_no='" & Session("User_Number") & "' "
query = query & "AND (flag='R' or flag='Y') "
rsc.Open query, adoConn, 1
if rsc.RecordCount > 0 then
%>
<script>
alert('<27>̹<EFBFBD> <20><>û<EFBFBD>߿<EFBFBD> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>');
history.back();
</script>
<%
else
query = "SELECT * "
query = query & "FROM project "
query = query & "WHERE p_sn = '" & p_sn & "' "
rsp.Open query, adoConn, 1
if rsp.RecordCount > 0 then
p_subject = rsp("p_subject")
else
p_subject = "DB<44><42><EFBFBD><EFBFBD>"
end if
rsp.Close
query = "INSERT into view_allow "
query = query & "(p_sn, p_subject, request_date, flag, name, p_no) "
query = query & "VALUES "
query = query & "('" & p_sn & "', "
query = query & "'" & p_subject & "', "
query = query & "'" & now() & "', "
query = query & "'R', "
query = query & "'" & Session("loginuser") & "', "
query = query & "'" & Session("User_Number") & "') "
'Response.Write query
set dbin = server.CreateObject("ADODB.CONNECTION")
dbin.Open adoConn
dbin.Execute query
dbin.Close
end if
rsc.Close
%>
<html>
<script>
function clsit()
{
alert("<22><><EFBFBD><EFBFBD> <20><>û<EFBFBD><C3BB> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>")
self.close();
}
</script>
<body onLoad="clsit()">
<form name="pms" method="post">
<input type="hidden" name="p_sn" value="<%=p_sn%>">
</form>
</body>
</html>

View File

@@ -0,0 +1,162 @@
<!-- #include virtual = "lib/config.asp" -->
<%
set rsp = server.CreateObject("ADODB.RECORDSET")
p_sn = request("p_sn")
del_chk = "0" '<27><><EFBFBD><EFBFBD> 1<>̶<EFBFBD><CCB6><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD>
'===========================================================
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>̺<EFBFBD><CCBA><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ִ<EFBFBD><D6B4><EFBFBD> <20>Ǻ<EFBFBD>, <20>ִٸ<D6B4> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD>
'-----------------------------------------------------------
query = "SELECT * "
query = query & "FROM <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> "
query = query & "WHERE p_sn like '%" & p_sn & "%' "
query = query & " AND del_yes_no = 'no' "
if tmp_admin_chk = "1" then
Response.Write query & "<BR>"
end if
rsp.Open query, adoConn, 1
if rsp.RecordCount > 0 then
if instr(1, rsp("p_sn"), ",") then
tmp_txt = split(replace(rsp("p_sn"), " ", ""))
for i = 0 to UBOUND(tmp_txt)
if p_sn = tmp_txt(i) then
del_chk = "1"
end if
next
else
if p_sn = replace(rsp("p_sn"), " ", "") then
del_chk = "1"
end if
end if
end if
rsp.Close
'job <20><><EFBFBD>̺<EFBFBD><CCBA><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ִ<EFBFBD><D6B4><EFBFBD> <20>Ǻ<EFBFBD>, <20>ִٸ<D6B4> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD>
'-----------------------------------------------------------
query = "SELECT * "
query = query & "FROM job "
query = query & "WHERE j_p_sn = '" & p_sn & "' "
if tmp_admin_chk = "1" then
Response.Write query & "<BR>"
end if
rsp.Open query, adoConn, 1
if rsp.RecordCount > 0 then
del_chk = "2"
end if
rsp.Close
if del_chk = "0" then
'<27>α׻<CEB1><D7BB><EFBFBD>(p_sn, p_subject, p_budget, user)
query = "SELECT * "
query = query & "FROM project "
query = query & "WHERE p_sn = '" & p_sn & "' "
if tmp_admin_chk = "1" then
Response.Write query & "<BR>"
end if
rsp.Open query, adoConn, 1
if rsp.RecordCount > 0 then
p_subject = rsp("p_subject")
p_budget = rsp("p_budget")
end if
rsp.Close
query = "INSERT INTO project_log "
query = query & "(p_sn, p_subject, p_budget, p_log, p_date, p_time, p_user, p_user_name, p_user_ip) "
query = query & "VALUES "
query = query & "('" & p_sn & "', "
query = query & "'" & p_subject & "', "
query = query & "'" & p_budget & "', "
query = query & "'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD>', "
query = query & "'" & year(date) & "-" & zeroformat(month(date),2) & "-" & zeroformat(day(date),2) & "', "
query = query & "'" & time() & "', "
query = query & "'" & Session("User_Number") & "', "
query = query & "'" & Session("loginuser") & "', "
query = query & "'" & Session("USERIP") & "')"
if tmp_admin_chk = "1" then
Response.Write query & "<BR>"
end if
adoconn.execute query
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD>̺<EFBFBD><CCBA><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
query = "DELETE "
query = query & "FROM project "
query = query & "WHERE p_sn = '" & p_sn & "' "
if tmp_admin_chk = "1" then
Response.Write query & "<BR>"
end if
adoconn.execute query
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>̺<EFBFBD><CCBA><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
query = "DELETE "
query = query & "FROM project_pre "
query = query & "WHERE p_sn = '" & p_sn & "' "
if tmp_admin_chk = "1" then
Response.Write query & "<BR>"
end if
adoconn.execute query
end if
'===========================================================
%>
<html>
<script>
function goit(x) {
if (x == 0)
{
alert('<27><><EFBFBD><EFBFBD><EFBFBD>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>');
self.close();
}
else if (x == 1)
{
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>. <20>ٽ<EFBFBD> Ȯ<><C8AE><EFBFBD><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>");
history.back();
}
else if (x == 2)
{
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>. <20>ٽ<EFBFBD> Ȯ<><C8AE><EFBFBD><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>");
history.back();
}
}
</script>
<body onLoad="goit('<%=del_chk%>')">
<form name="pms" method="post">
<input type="hidden" name="p_sn" value="<%=p_sn%>">
</form>
</body>
</html>

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,37 @@
<!-- #include virtual = "lib/config.asp" -->
<OBJECT RUNAT=Server PROGID=ADODB.Recordset id=rsp></OBJECT>
<%'
' Session.CodePage = 65001 '<27>ѱ<EFBFBD>
Response.CharSet = "EUC-KR" '<27>ѱ<EFBFBD>
Response.AddHeader "Pragma","no-cache"
Response.AddHeader "cache-control", "no-staff"
Response.Expires = -1
if request("dep") = "" then
response.write "<option value=""""><3E><><EFBFBD><EFBFBD></option>"
response.write "<option value=""20160205"">(<28><>)<29><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></option>"
response.write "<option value=""20210107"">(<28><>)<29>Ż<EFBFBD><C5BB><EFBFBD></option>"
response.write "<option value=""20190601"">(<28><>)<29><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></option>"
response.write "<option value=""20210801"">(<28><>)<29><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></option>"
response.write "<option value=""20190301"">(<28><>)<29><><EFBFBD><EFBFBD>ö</option>"
query = " select p_no, p_name, p_team_name as p_depart from v_person "
query = query & " where p_resign = 0 "
query = query & " and (p_depart between '20' and '93' OR p_depart = '93') and p_depart <> '34' "
query = query & " and p_job_name = '<27><><EFBFBD><EFBFBD>' "
query = query & " order by p_depart, p_no "
rsp.Open query, adoConn, 1
Do while not rsp.Eof
response.write "<option value=""" & rsp("p_no") & """>(" & left(rsp("p_depart"),2) & ")" & rsp("p_name") & "</option>"
rsp.MoveNext
Loop
rsp.Close
else
query = " UPDATE T_PROJECT_METHOD SET p_" & request("dep") & "_complete = null WHERE p_child_sn = '" & request("p_child_sn") & "' "
adoConn.execute query
response.write "1"
end if
%>

View File

@@ -0,0 +1,17 @@
<!-- #include virtual = "lib/config.asp" -->
<OBJECT RUNAT=Server PROGID=ADODB.Recordset id=rsp></OBJECT>
<%'
' Session.CodePage = 65001 '<27>ѱ<EFBFBD>
Response.CharSet = "EUC-KR" '<27>ѱ<EFBFBD>
Response.AddHeader "Pragma","no-cache"
Response.AddHeader "cache-control", "no-staff"
Response.Expires = -1
if request("method_cd") <> "" then
query = " UPDATE T_PROJECT_METHOD SET p_method_cd = '" & request("method_cd") & "' WHERE p_child_sn = '" & request("p_child_sn") & "' "
adoConn.execute query
response.write "1"
end if
%>

View File

@@ -0,0 +1,913 @@
<!-- #include virtual = "lib/config.asp" -->
<%
set rsp = server.CreateObject("ADODB.RECORDSET")
set beforeRs = server.CreateObject("ADODB.RECORDSET")
set afterRs = server.CreateObject("ADODB.RECORDSET")
dim alarmQuery
'==========================================<3D>˸<EFBFBD><CBB8><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> Data<74><61> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>==========================================
' request("p_child_sn1") <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ MŸ<4D><C5B8><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ʱ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> p_child_sn1 <20><> <20><><EFBFBD><EFBFBD><EFBFBD>ϸ<EFBFBD> <20><>.
' <20>ҷ<EFBFBD><D2B7><EFBFBD> <20><><EFBFBD><EFBFBD>.
' <09><><EFBFBD><EFBFBD><EFBFBD>Ⱓ st, end p_con_date_st p_con_date_end
' <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> p_decide_date
' <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> p_cont_cost
' <09>뿪<EFBFBD><EBBFAA><EFBFBD><EFBFBD> 001<30><31><EFBFBD>̺<EFBFBD> 002<30><32><EFBFBD><EFBFBD><EFBFBD><EFBFBD> p_export_range
' <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> p_sur_area
' <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> p_sur_target
' ǥ<><C7A5><EFBFBD><EFBFBD> p_sample
' <09><><EFBFBD><EFBFBD><EFBFBD>Ⱓ st, end p_research_date_st p_research_date_end
' <09><><EFBFBD><EFBFBD><EFBFBD>з<EFBFBD> p_sur_part
' <09>ǻ<EFBFBD><C7BB><EFBFBD><EFBFBD><EFBFBD> p_field_process
' <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> p_inspection_rate
' <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> p_rsch_1_a p_rsch_2_a p_rsch_3_a p_rsch_4_a p_rsch_1_b p_rsch_2_b p_rsch_3_b p_rsch_4_b p_rsch_1_c p_rsch_2_c p_rsch_3_c p_rsch_4_c
' p_sv_1 p_sv_2 p_sv_3 p_sv_4 p_code_1 p_code_2 p_code_3 p_code_4 p_verify_1 p_verify_2 p_verify_3 p_verify_4
' p_dp_1 p_dp_2 p_dp_3 p_dp_4 p_it_1 p_it_2 p_it_3 p_it_4 p_supp_1 p_supp_2 p_supp_3 p_supp_4
' <09><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD> <20><><EFBFBD><EFBFBD> st, end p_rsch_date_st p_rsch_date_end
' <09>ǻ<EFBFBD><C7BB><EFBFBD><EFBFBD><EFBFBD> st, end p_field_date_st p_field_date_end
' <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> st, end p_verify_date_st p_verify_date_end
' <09>ڵ<EFBFBD><DAB5><EFBFBD>ġ<EFBFBD><C4A1><EFBFBD><EFBFBD> st, end p_code_date_st p_code_date_end
' <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> st, end p_dp_date_st p_dp_date_end
' IT<49><54><EFBFBD><EFBFBD> st, end p_it_date_st p_it_date_end
' <09><><EFBFBD>ι<EFBFBD><CEB9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ð<EFBFBD> <20><><EFBFBD><EFBFBD> p_premeet_date p_premeet_time p_premeet_place
' <09>ǻ<EFBFBD><C7BB><EFBFBD>Ƽ<EFBFBD><C6BC><EFBFBD><EFBFBD> <20>ð<EFBFBD> <20><><EFBFBD><EFBFBD> p_ot_date p_ot_time p_ot_place
' <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȹ<EFBFBD><C8B9> <20><><EFBFBD>°<EFBFBD> p_progress_status
' <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD> <20><><EFBFBD>°<EFBFBD> p_input_complete
Dim alarmMap
Set alarmMap = Server.CreateObject("Scripting.Dictionary")
alarmMap.Add "p_con_date","<22><><EFBFBD><EFBFBD><EFBFBD>Ⱓ"
alarmMap.Add "p_decide_date","<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
alarmMap.Add "p_cont_cost","<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
'alarmMap.Add "p_export_range","<22>뿪<EFBFBD><EBBFAA><EFBFBD><EFBFBD>"
'alarmMap.Add "p_sur_area","<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
'alarmMap.Add "p_sur_target","<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
alarmMap.Add "p_sample","ǥ<><C7A5><EFBFBD><EFBFBD>"
alarmMap.Add "p_research_date","<22><><EFBFBD><EFBFBD><EFBFBD>Ⱓ"
'alarmMap.Add "p_field_process","<22>ǻ<EFBFBD><C7BB><EFBFBD><EFBFBD><EFBFBD>"
'alarmMap.Add "p_inspection_rate","<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
'alarmMap.Add "p_rsch_a","<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȹ<EFBFBD><C8B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
'alarmMap.Add "p_rsch_b","<22><><EFBFBD><EFBFBD><EFBFBD>ǻ<EFBFBD><C7BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
'alarmMap.Add "p_rsch_c","<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
'alarmMap.Add "p_sv","<22>ǻ<EFBFBD><C7BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
'alarmMap.Add "p_code","<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
'alarmMap.Add "p_verify","<22>ڵ<EFBFBD><DAB5><EFBFBD>ġ<EFBFBD><C4A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
'alarmMap.Add "p_dp","DP<44><50><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
'alarmMap.Add "p_it","IT<49><54><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
alarmMap.Add "p_rsch_date","<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
alarmMap.Add "p_field_date","<22>ǻ缼<C7BB><E7BCBC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
alarmMap.Add "p_verify_date","<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
alarmMap.Add "p_punch_date","<22><>ġ<EFBFBD><C4A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
alarmMap.Add "p_code_date","<22>ڵ<EFBFBD><DAB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
alarmMap.Add "p_dp_date","DP<44><50><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
alarmMap.Add "p_it_date","IT<49><54><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
alarmMap.Add "p_premeet","<22><><EFBFBD>ι<EFBFBD><CEB9>ü<EFBFBD><C3BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
alarmMap.Add "p_ot","<22>ǻ<EFBFBD>OT<4F><54><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
'alarmMap.Add "p_progress_status","<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȹ<EFBFBD><C8B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ܰ<EFBFBD>"
'alarmMap.Add "p_input_complete","<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Է¿ϷῩ<CFB7><E1BFA9>"
alarmQuery = ""
alarmQuery = alarmQuery & " select isnull(p_con_date_st + '~' + p_con_date_end, '') as p_con_date, isnull(p_decide_date, '') as p_decide_date, isnull(p_cont_cost, '') as p_cont_cost, "
alarmQuery = alarmQuery & " isnull(p_export_range, '') as p_export_range, isnull(p_sur_area, '') as p_sur_area, isnull(p_sur_target, '') as p_sur_target, isnull(p_sample, '') as p_sample, "
alarmQuery = alarmQuery & " isnull(p_research_date_st + '~' + p_research_date_end, '') as p_research_date, isnull(p_sur_part, '') as p_sur_part, isnull(p_field_process, '') as p_field_process, isnull(p_inspection_rate, '') as p_inspection_rate, "
alarmQuery = alarmQuery & " isnull(p_rsch_1_a, '') + ',' + isnull(p_rsch_2_a, '') + ',' + isnull(p_rsch_3_a, '') + ',' + isnull(p_rsch_4_a, '') as p_rsch_a, "
alarmQuery = alarmQuery & " isnull(p_rsch_1_b, '') + ',' + isnull(p_rsch_2_b, '') + ',' + isnull(p_rsch_3_b, '') + ',' + isnull(p_rsch_4_b, '') as p_rsch_b, "
alarmQuery = alarmQuery & " isnull(p_rsch_1_c, '') + ',' + isnull(p_rsch_2_c, '') + ',' + isnull(p_rsch_3_c, '') + ',' + isnull(p_rsch_4_c, '') as p_rsch_c, "
alarmQuery = alarmQuery & " isnull(p_sv_1, '') + ',' + isnull(p_sv_2, '') + ',' + isnull(p_sv_3, '') + ',' + isnull(p_sv_4, '') as p_sv , "
alarmQuery = alarmQuery & " isnull(p_punch_1, '') + ',' + isnull(p_punch_2, '') + ',' + isnull(p_punch_3, '') + ',' + isnull(p_punch_4, '') as p_punch , "
alarmQuery = alarmQuery & " isnull(p_verify_1, '') + ',' + isnull(p_verify_2, '') + ',' + isnull(p_verify_3, '') + ',' + isnull(p_verify_4, '') as p_verify, "
alarmQuery = alarmQuery & " isnull(p_code_1, '') + ',' + isnull(p_code_2, '') + ',' + isnull(p_code_3, '') + ',' + isnull(p_code_4, '') as p_code , "
alarmQuery = alarmQuery & " isnull(p_dp_1, '') + ',' + isnull(p_dp_2, '') + ',' + isnull(p_dp_3, '') + ',' + isnull(p_dp_4, '') as p_dp , "
alarmQuery = alarmQuery & " isnull(p_it_1, '') + ',' + isnull(p_it_2, '') + ',' + isnull(p_it_3, '') + ',' + isnull(p_it_4, '') as p_it , "
alarmQuery = alarmQuery & " isnull(p_rsch_date_st + '~' + p_rsch_date_end, '') as p_rsch_date, isnull(p_field_date_st + '~' + p_field_date_end, '') as p_field_date, isnull(p_verify_date_st + '~' + p_verify_date_end, '') as p_verify_date, "
alarmQuery = alarmQuery & " isnull(p_code_date_st + '~' + p_code_date_end, '') as p_code_date, isnull(p_dp_date_st + '~' + p_dp_date_end, '') as p_dp_date, isnull(p_it_date_st + '~' + p_it_date_end, '') as p_it_date, "
alarmQuery = alarmQuery & " isnull(p_premeet_date + ' ' + p_premeet_time + ' ' + p_premeet_place, '') as p_premeet, isnull(p_ot_date + ' ' + p_ot_time + ' ' + p_ot_place, '') as p_ot, p_progress_status, p_input_complete "
alarmQuery = alarmQuery & " from T_PROJECT_METHOD "
alarmQuery = alarmQuery & " where p_child_sn = '" & request("p_child_sn1") & "' "
'response.Write alarmQuery
beforeRs.Open alarmQuery, adoConn, 3
'response.Write beforeRs("p_rsch_date")
'===============================================================================================================================
Dim p_input_complete()
Dim p_progress_flag()
Dim p_field_dept()
Dim p_rsch_dept()
Dim p_is_dept()
Dim p_it_dept()
Dim templ_p_input_com
Dim templ_p_progress_flag
p_sn = request("p_sn")
p_sub_type = request("p_sub_type")
p_cli_company_cd = request("p_cli_company_cd")
p_cli_per_cd = request("p_cli_per_cd")
p_state = request("p_state")
p_subject = request("p_subject")
p_cli_company_nm = request("p_cli_company_nm")
p_cli_depart = request("p_cli_depart")
p_cli_per_nm = request("p_cli_per_nm")
p_cli_per_com_tel = request("p_cli_per_com_tel")
p_cli_per_tel = request("p_cli_per_tel")
p_cli_per_email = request("p_cli_per_email")
p_client_type_cd = request("p_client_type_cd")
p_depart_dep = request("p_depart_dep")
p_con_date_st = request("p_con_date_st")
if isEmpty(request("p_con_date_st")) = true then
p_con_date_st = "null"
end if
p_con_date_end = request("p_con_date_end")
if isEmpty(request("p_con_date_end")) = true then
p_con_date_end = "null"
end if
p_decide_date = request("p_decide_date")
if isEmpty(request("p_decide_date")) = true then
p_decide_date = "null"
end if
p_cont_cost = replace(request("p_cont_cost"), ",", "")
if isEmpty(request("p_cont_cost")) = true then
p_cont_cost = "null"
end if
p_export_range = request("p_export_range")
if isEmpty(request("p_export_range")) = true then
p_export_range = "null"
end if
p_category = request("p_category")
if isEmpty(request("p_category")) = true then
p_category = "null"
end if
research_count = request("research_count")
p_memo = request("p_memo")
p_index = ""
p_progress_status = "001"
If p_sub_type = "M" then
query = " UPDATE [project2].[dbo].[T_PROJECT_BASE] "
query = query & " SET p_subject = '" & p_subject & "' "
if p_con_date_st <> "null" then
query = query & " ,p_con_date_st = '" & p_con_date_st & "' "
end if
if p_con_date_end <> "null" then
query = query & " ,p_con_date_end = '" & p_con_date_end & "' "
end if
if p_decide_date <> "null" then
query = query & " ,p_decide_date = '" & p_decide_date & "' "
end if
if p_cont_cost <> "null" then
query = query & " ,p_cont_cost = " & p_cont_cost & " "
end if
if p_export_range <> "null" then
query = query & " ,p_export_range = '" & p_export_range & "' "
end if
if p_category <> "null" then
query = query & " ,p_category = ' " & p_category & ",' "
end if
if p_con_date_end <> "null" then
if year(p_con_date_end) > 2019 then
query = query & " ,p_statistics = '" & year(dateAdd("m", -3, p_con_date_end)) & "' "
else
query = query & " ,p_statistics = '" & year(p_con_date_end) & "' "
end if
end if
query = query & " WHERE p_sn = '" & p_sn & "' "
adoconn.Execute query
'response.write "query : " & query & "<br/>"
Else
For i = 1 To research_count Step 1
query = " UPDATE [project2].[dbo].[T_PROJECT_METHOD] "
query = query & " SET p_subject = '" & p_subject & "' "
if p_con_date_st <> "null" then
query = query & " ,p_con_date_st = '" & p_con_date_st & "' "
end if
if p_con_date_end <> "null" then
query = query & " ,p_con_date_end = '" & p_con_date_end & "' "
end if
if p_decide_date <> "null" then
query = query & " ,p_decide_date = '" & p_decide_date & "' "
end if
if p_cont_cost <> "null" then
query = query & " ,p_cont_cost = " & p_cont_cost & " "
end if
if p_export_range <> "null" then
query = query & " ,p_export_range = '" & p_export_range & "' "
end if
if p_category <> "null" then
query = query & " ,p_category = ' " & p_category & ",' "
end if
if p_con_date_end <> "null" then
if year(p_con_date_end) > 2019 then
query = query & " ,p_statistics = '" & year(dateAdd("m", -3, p_con_date_end)) & "' "
else
query = query & " ,p_statistics = '" & year(p_con_date_end) & "' "
end if
end if
query = query & " WHERE p_sn = '" & p_sn & "' "
query = query & " AND p_method_cd = " & request("p_method_cd" & i) & " "
query = query & " AND p_child_sn = '" & request("p_child_sn" & i) & "' "
' response.write "query : " & query & "<br/>"
adoconn.Execute query
Next
End if
reDim p_input_complete(research_count)
reDim p_field_dept(research_count)
reDim p_rsch_dept(research_count)
reDim p_is_dept(research_count)
reDim p_it_dept(research_count)
reDim p_progress_flag(research_count)
For i = 1 To research_count Step 1
query = " SELECT p_index, PMC.p_method_cd, p_method_nm, p_intention, p_child_sn, p_sur_area, p_sur_target, p_sample, p_inspection_rate, p_research_date_st, p_research_date_end, p_sur_part, p_field_process "
query = query & " ,isnull(p_rsch_dept,'') as p_rsch_dept, isnull(p_field_dept,'') as p_field_dept "
query = query & " , isnull(p_is_dept,'') as p_is_dept "
query = query & " , isnull(p_it_dept,'') as p_it_dept "
query = query & " , p_supp_dept "
query = query & " ,p_rsch_1_a, p_rsch_2_a, p_rsch_3_a, p_rsch_4_a "
query = query & " ,p_rsch_1_b, p_rsch_2_b, p_rsch_3_b, p_rsch_4_b "
query = query & " ,p_rsch_1_c, p_rsch_2_c, p_rsch_3_c, p_rsch_4_c "
query = query & " ,p_sv_1, p_sv_2, p_sv_3, p_sv_4 "
query = query & " ,p_punch_1, p_punch_2, p_punch_3, p_punch_4 "
query = query & " ,p_verify_1, p_verify_2, p_verify_3, p_verify_4 "
query = query & " ,p_code_1, p_code_2, p_code_3, p_code_4 "
query = query & " ,p_dp_1, p_dp_2, p_dp_3, p_dp_4 "
query = query & " ,p_it_1, p_it_2, p_it_3, p_it_4 "
query = query & " ,p_supp_1, p_supp_2, p_supp_3, p_supp_4 "
query = query & " ,p_rsch_date_st, p_rsch_date_end, p_field_date_st, p_field_date_end, p_code_date_st, p_code_date_end "
query = query & " ,p_verify_date_st, p_verify_date_end, p_dp_date_st, p_dp_date_end, p_it_date_st, p_it_date_end "
query = query & " ,p_premeet_date, p_premeet_time, p_premeet_place "
query = query & " ,p_ot_date, p_ot_time, p_ot_place, p_sur_memo, p_memo, p_progress_flag, p_progress_status, p_input_complete "
query = query & " FROM T_PROJECT_METHOD PM INNER JOIN T_PROJECT_METHOD_CD PMC ON PM.p_method_cd = PMC.p_method_cd "
query = query & " WHERE p_method_yn = 'y' "
query = query & " AND p_sn = '" & p_sn & "'"
query = query & " AND p_sub_type = '" & p_sub_type & "'"
If p_sub_type = "C" Then
query = query & " AND PM.p_method_cd = '" & Request("p_method_cd") & "'"
if Request("p_child_sn" & i) <> "" then
query = query & " AND PM.p_child_sn = '" & Request("p_child_sn" & i) & "' "
End if
End If
'Response.Write query
rsp.Open query, adoConn, 1
p_input_complete(i) = rsp("p_input_complete")
p_field_dept(i) = rsp("p_field_dept")
p_rsch_dept(i) = rsp("p_rsch_dept")
p_is_dept(i) = rsp("p_is_dept")
p_it_dept(i) = rsp("p_it_dept")
p_progress_flag(i) = request("p_progress_flag" & i)
rsp.moveNext
rsp.Close
next
For i = 1 To research_count Step 1
If p_sub_type = "C" Then
p_method_cd = request("p_method_cd" & i)
End if
If request("p_rsch_dept" & i) = "900" then
p_input_complete(i) = "o" + right(p_input_complete(i), 2)
p_progress_flag(i) = "o" + right(p_progress_flag(i), 2)
end If
If request("p_field_dept" & i) = "900" then
p_input_complete(i) = left(p_input_complete(i), 1) + "oo"
p_progress_flag(i) = left(p_progress_flag(i), 1) + "o" + right(p_progress_flag(i), 1)
end If
if request("p_is_dept" & i) = "900" then '##### DP
p_progress_flag(i) = left(p_progress_flag(i), 2) + "o"
end if
If cstr(p_field_dept(i)) <> cstr(request("p_field_dept" & i)) then
'if cstr(request("p_field_dept" & i)) = "8" then
' 'p_input_complete(i) = left(p_input_complete(i), 1) + "ox"
' p_input_complete(i) = left(p_input_complete(i), 1) + "xo"' qc<71><63> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD> -_- (qc<71><63> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>ϵ<EFBFBD><CFB5><EFBFBD> <20>ϱ<EFBFBD> <20><><EFBFBD><EFBFBD>)
'elseif cstr(request("p_field_dept" & i)) = "9" then
' p_input_complete(i) = left(p_input_complete(i), 1) + "xo"
'elseif cstr(request("p_field_dept" & i)) = "12" then
' 'p_input_complete(i) = left(p_input_complete(i), 1) + "xx"
' p_input_complete(i) = left(p_input_complete(i), 1) + "xo"' qc<71><63> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD> -_- (qc<71><63> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>ϵ<EFBFBD><CFB5><EFBFBD> <20>ϱ<EFBFBD> <20><><EFBFBD><EFBFBD>)
'end if
if p_field_dept(i) = "0" Then
p_input_complete(i) = left(p_input_complete(i), 1) + "xo"
End If
if p_field_dept(i) = "900" then
p_input_complete(i) = left(p_input_complete(i), 1) + "xo"
p_progress_flag(i) = left(p_progress_flag(i), 1) + "x" + right(p_progress_flag(i), 1)
end if
end If
If cstr(p_rsch_dept(i)) <> cstr(request("p_rsch_dept" & i)) then
If p_rsch_dept(i) = "900" then
p_input_complete(i) = "x" + right(p_input_complete(i), 2)
p_progress_flag(i) = "x" + right(p_progress_flag(i), 2)
end If
end If
If cstr(p_is_dept(i)) <> cstr(request("p_is_dept" & i)) then
If p_is_dept(i) = "900" then
p_progress_flag(i) = left(p_progress_flag(i), 2) + "x"
end If
end If
'Response.write p_input_complete(i)
query = "UPDATE [project2].[dbo].[T_PROJECT_METHOD] "&VbCrlf
query = query & "SET p_child_sn = '" & request("p_child_sn" & i) & "' "&VbCrlf
query = query & " ,p_sub_type = '" & request("p_sub_type") & "' "&VbCrlf
if isEmpty(request("p_intention" & i)) = false then
query = query & " ,p_intention = '" & request("p_intention" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_sur_area" & i)) = false then
query = query & " ,p_sur_area = '" & request("p_sur_area" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_sur_target" & i)) = false then
query = query & " ,p_sur_target = '" & request("p_sur_target" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_sample" & i)) = false then
If request("p_sample" & i) <> "" Then
query = query & " ,p_sample = " & request("p_sample" & i) & " "&VbCrlf
Else
query = query & " ,p_sample = 0 "&VbCrlf
End If
end if
if isEmpty(request("p_inspection_rate" & i)) = false then
query = query & " ,p_inspection_rate = '" & request("p_inspection_rate" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_research_date_st" & i)) = false then
query = query & " ,p_research_date_st = '" & request("p_research_date_st" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_research_date_end" & i)) = false then
query = query & " ,p_research_date_end = '" & request("p_research_date_end" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_sur_part" & i)) = false then
query = query & " ,p_sur_part = '" & request("p_sur_part" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_field_process" & i)) = false then
query = query & " ,p_field_process = '" & request("p_field_process" & i) & "' "&VbCrlf
end if
query = query & " ,p_rsch_dept = " & request("p_rsch_dept" & i) & " "&VbCrlf
query = query & " ,p_field_dept = " & request("p_field_dept" & i) & " "&VbCrlf
query = query & " ,p_is_dept = " & request("p_is_dept" & i) & " "&VbCrlf
query = query & " ,p_it_dept = " & request("p_it_dept" & i) & " "&VbCrlf
if isEmpty(request("p_rsch_1_a" & i)) = false then
query = query & " ,p_rsch_1_a = '" & request("p_rsch_1_a" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_rsch_2_a" & i)) = false then
query = query & " ,p_rsch_2_a = '" & request("p_rsch_2_a" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_rsch_3_a" & i)) = false then
query = query & " ,p_rsch_3_a = '" & request("p_rsch_3_a" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_rsch_4_a" & i)) = false then
query = query & " ,p_rsch_4_a = '" & request("p_rsch_4_a" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_rsch_1_b" & i)) = false then
query = query & " ,p_rsch_1_b = '" & request("p_rsch_1_b" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_rsch_2_b" & i)) = false then
query = query & " ,p_rsch_2_b = '" & request("p_rsch_2_b" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_rsch_3_b" & i)) = false then
query = query & " ,p_rsch_3_b = '" & request("p_rsch_3_b" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_rsch_4_b" & i)) = false then
query = query & " ,p_rsch_4_b = '" & request("p_rsch_4_b" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_rsch_1_c" & i)) = false then
query = query & " ,p_rsch_1_c = '" & request("p_rsch_1_c" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_rsch_2_c" & i)) = false then
query = query & " ,p_rsch_2_c = '" & request("p_rsch_2_c" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_rsch_3_c" & i)) = false then
query = query & " ,p_rsch_3_c = '" & request("p_rsch_3_c" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_rsch_4_c" & i)) = false then
query = query & " ,p_rsch_4_c = '" & request("p_rsch_4_c" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_sv_1" & i)) = false then
query = query & " ,p_sv_1 = '" & request("p_sv_1" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_sv_2" & i)) = false then
query = query & " ,p_sv_2 = '" & request("p_sv_2" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_sv_3" & i)) = false then
query = query & " ,p_sv_3 = '" & request("p_sv_3" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_sv_4" & i)) = false then
query = query & " ,p_sv_4 = '" & request("p_sv_4" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_punch_1" & i)) = false then
query = query & " ,p_punch_1 = '" & request("p_punch_1" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_punch_2" & i)) = false then
query = query & " ,p_punch_2 = '" & request("p_punch_2" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_punch_3" & i)) = false then
query = query & " ,p_punch_3 = '" & request("p_punch_3" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_punch_4" & i)) = false then
query = query & " ,p_punch_4 = '" & request("p_punch_4" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_verify_1" & i)) = false then
query = query & " ,p_verify_1 = '" & request("p_verify_1" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_verify_2" & i)) = false then
query = query & " ,p_verify_2 = '" & request("p_verify_2" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_verify_3" & i)) = false then
query = query & " ,p_verify_3 = '" & request("p_verify_3" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_verify_4" & i)) = false then
query = query & " ,p_verify_4 = '" & request("p_verify_4" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_code_1" & i)) = false then
query = query & " ,p_code_1 = '" & request("p_code_1" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_code_2" & i)) = false then
query = query & " ,p_code_2 = '" & request("p_code_2" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_code_3" & i)) = false then
query = query & " ,p_code_3 = '" & request("p_code_3" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_code_4" & i)) = false then
query = query & " ,p_code_4 = '" & request("p_code_4" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_dp_1" & i)) = false then
query = query & " ,p_dp_1 = '" & request("p_dp_1" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_dp_2" & i)) = false then
query = query & " ,p_dp_2 = '" & request("p_dp_2" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_dp_3" & i)) = false then
query = query & " ,p_dp_3 = '" & request("p_dp_3" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_dp_4" & i)) = false then
query = query & " ,p_dp_4 = '" & request("p_dp_4" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_it_1" & i)) = false then
query = query & " ,p_it_1 = '" & request("p_it_1" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_it_2" & i)) = false then
query = query & " ,p_it_2 = '" & request("p_it_2" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_it_3" & i)) = false then
query = query & " ,p_it_3 = '" & request("p_it_3" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_it_4" & i)) = false then
query = query & " ,p_it_4 = '" & request("p_it_4" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_rsch_date_st" & i)) = false then
query = query & " ,p_rsch_date_st = '" & request("p_rsch_date_st" & i)
if request("p_rsch_date_st" & i) <> "" then
query = query & " " & request("p_rsch_date_time_st" & i) & ":00:00"
end if
query = query & "' "&VbCrlf
end if
if isEmpty(request("p_rsch_date_end" & i)) = false then
query = query & " ,p_rsch_date_end = '" & request("p_rsch_date_end" & i)
if request("p_rsch_date_end" & i) <> "" then
query = query & " " & request("p_rsch_date_time_end" & i) & ":00:00"
end if
query = query & "' "&VbCrlf
end if
if isEmpty(request("p_field_date_st" & i)) = false then
query = query & " ,p_field_date_st = '" & request("p_field_date_st" & i)
if request("p_field_date_st" & i) <> "" then
query = query & " " & request("p_field_date_time_st" & i) & ":00:00"
end if
query = query & "' "&VbCrlf
end if
if isEmpty(request("p_field_date_end" & i)) = false then
query = query & " ,p_field_date_end = '" & request("p_field_date_end" & i)
if request("p_field_date_end" & i) <> "" then
query = query & " " & request("p_field_date_time_end" & i) & ":00:00"
end if
query = query & "' "&VbCrlf
end if
if isEmpty(request("p_punch_date_st" & i)) = false then
query = query & " ,p_punch_date_st = '" & request("p_punch_date_st" & i)
if request("p_punch_date_st" & i) <> "" then
query = query & " " & request("p_punch_date_time_st" & i) & ":00:00"
end if
query = query & "' "&VbCrlf
end if
if isEmpty(request("p_punch_date_end" & i)) = false then
query = query & " ,p_punch_date_end = '" & request("p_punch_date_end" & i)
if request("p_punch_date_end" & i) <> "" then
query = query & " " & request("p_punch_date_time_end" & i) & ":00:00"
end if
query = query & "' "&VbCrlf
end if
if isEmpty(request("p_verify_date_st" & i)) = false then
query = query & " ,p_verify_date_st = '" & request("p_verify_date_st" & i)
if request("p_verify_date_st" & i) <> "" then
query = query & " " & request("p_verify_date_time_st" & i) & ":00:00"
end if
query = query & "' "&VbCrlf
end if
if isEmpty(request("p_verify_date_end" & i)) = false then
query = query & " ,p_verify_date_end = '" & request("p_verify_date_end" & i)
if request("p_verify_date_end" & i) <> "" then
query = query & " " & request("p_verify_date_time_end" & i) & ":00:00"
end if
query = query & "' "&VbCrlf
end if
if isEmpty(request("p_code_date_st" & i)) = false then
query = query & " ,p_code_date_st = '" & request("p_code_date_st" & i)
if request("p_code_date_st" & i) <> "" then
query = query & " " & request("p_code_date_time_st" & i) & ":00:00"
end if
query = query & "' "&VbCrlf
end if
if isEmpty(request("p_code_date_end" & i)) = false then
query = query & " ,p_code_date_end = '" & request("p_code_date_end" & i)
if request("p_code_date_end" & i) <> "" then
query = query & " " & request("p_code_date_time_end" & i) & ":00:00"
end if
query = query & "' "&VbCrlf
end if
if isEmpty(request("p_dp_date_st" & i)) = false then
query = query & " ,p_dp_date_st = '" & request("p_dp_date_st" & i)
if request("p_dp_date_st" & i) <> "" then
query = query & " " & request("p_dp_date_time_st" & i) & ":00:00"
end if
query = query & "' "&VbCrlf
end if
if isEmpty(request("p_dp_date_end" & i)) = false then
query = query & " ,p_dp_date_end = '" & request("p_dp_date_end" & i)
if request("p_dp_date_end" & i) <> "" then
query = query & " " & request("p_dp_date_time_end" & i) & ":00:00"
end if
query = query & "' "&VbCrlf
end if
if isEmpty(request("p_it_date_st" & i)) = false then
query = query & " ,p_it_date_st = '" & request("p_it_date_st" & i)
if request("p_it_date_st" & i) <> "" then
query = query & " " & request("p_it_date_time_st" & i) & ":00:00"
end if
query = query & "' "&VbCrlf
end if
if isEmpty(request("p_it_date_end" & i)) = false then
query = query & " ,p_it_date_end = '" & request("p_it_date_end" & i)
if request("p_it_date_end" & i) <> "" then
query = query & " " & request("p_it_date_time_end" & i) & ":00:00"
end if
query = query & "' "&VbCrlf
end if
if isEmpty(request("p_premeet_date" & i)) = false then
query = query & " ,p_premeet_date = '" & request("p_premeet_date" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_premeet_time" & i)) = false then
query = query & " ,p_premeet_time = '" & request("p_premeet_time" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_premeet_place" & i)) = false then
query = query & " ,p_premeet_place = '" & request("p_premeet_place" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_ot_date" & i)) = false then
query = query & " ,p_ot_date = '" & request("p_ot_date" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_ot_time" & i)) = false then
query = query & " ,p_ot_time = '" & request("p_ot_time" & i) & "' "&VbCrlf
end if
if isEmpty(request("p_ot_place" & i)) = false then
query = query & " ,p_ot_place = '" & request("p_ot_place" & i) & "' "&VbCrlf
end if
query = query & " ,p_sur_memo = '" & request("p_sur_memo" & i) & "' "&VbCrlf
query = query & " ,p_progress_status = '" & request("p_progress_status" & i) & "' "&VbCrlf
query = query & " ,p_progress_flag = '" & p_progress_flag(i) & "' "&VbCrlf
query = query & " ,p_input_complete = '" & p_input_complete(i) & "' "&VbCrlf
query = query & "WHERE p_sn = '" & p_sn & "' and p_method_cd = " & request("p_method_cd" & i)&VbCrlf
query = query & "AND p_index = " & request("p_index" & i) & " "&VbCrlf
' response.write "query : " & query & "<br/>"
adoconn.Execute query
query = " DELETE T_PROJECT_INVOLVE_RATE "
query = query & " WHERE p_sn = '"& p_sn &"' and p_child_sn = '"& request("p_child_sn" & i) &"' "
adoconn.Execute query
' response.write "query : " & query & "<br/>"
query = "INSERT INTO [project2].[dbo].[T_PROJECT_INVOLVE_RATE] "
query = query & " ([p_sn],[p_child_sn] "
query = query & " ,[involve_1_a],[involve_1_b],[involve_1_c] "
query = query & " ,[involve_2_a],[involve_2_b],[involve_2_c] "
query = query & " ,[involve_3_a],[involve_3_b],[involve_3_c] "
query = query & " ,[involve_4_a],[involve_4_b],[involve_4_c] "
query = query & " ,[input_dt]) "
query = query & " VALUES ( "
query = query & " '" & p_sn & "', '" & request("p_child_sn" & i) & "' "
query = query & " ,30, 30, 40 "
query = query & " ,30, 30, 40 "
query = query & " ,30, 30, 40 "
query = query & " ,30, 30, 40, getdate() )"
adoconn.Execute query
' response.write "query : " & query & "<br/>"
if request("p_sub_type") = "M" then
p_child_sn = "Multi"
end if
if request("p_rsch_1_a" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_rsch_1_a" & i ) &"','auto','1','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_rsch_2_a" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_rsch_2_a" & i ) &"','auto','2','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_rsch_3_a" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_rsch_3_a" & i ) &"','auto','3','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_rsch_4_a" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_rsch_4_a" & i ) &"','auto','4','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_rsch_1_b" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_rsch_1_b" & i ) &"','auto','5','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_rsch_2_b" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_rsch_2_b" & i ) &"','auto','6','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_rsch_3_b" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_rsch_3_b" & i ) &"','auto','7','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_rsch_4_b" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_rsch_4_b" & i ) &"','auto','8','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_rsch_1_c" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_rsch_1_c" & i ) &"','auto','9','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_rsch_2_c" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_rsch_2_c" & i ) &"','auto','10','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_rsch_3_c" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_rsch_3_c" & i ) &"','auto','11','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_rsch_4_c" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_rsch_4_c" & i ) &"','auto','12','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_sv_1" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_sv_1" & i ) &"','auto','13','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_sv_2" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_sv_2" & i ) &"','auto','14','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_sv_3" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_sv_3" & i ) &"','auto','15','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_sv_4" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_sv_4" & i ) &"','auto','16','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_punch_1" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_punch_1" & i ) &"','auto','33','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_punch_2" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_punch_2" & i ) &"','auto','34','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_punch_3" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_punch_3" & i ) &"','auto','35','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_punch_4" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_punch_4" & i ) &"','auto','36','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_verify_1" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_verify_1" & i ) &"','auto','21','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_verify_2" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_verify_2" & i ) &"','auto','22','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_verify_3" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_verify_3" & i ) &"','auto','23','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_verify_4" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_verify_4" & i ) &"','auto','24','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_code_1" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_code_1" & i ) &"','auto','17','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_code_2" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_code_2" & i ) &"','auto','18','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_code_3" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_code_3" & i ) &"','auto','19','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_code_4" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_code_4" & i ) &"','auto','20','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_dp_1" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_dp_1" & i ) &"','auto','25','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_dp_2" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_dp_2" & i ) &"','auto','26','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_dp_3" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_dp_3" & i ) &"','auto','27','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_dp_4" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_dp_4" & i ) &"','auto','28','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_it_1" & i) <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_it_1" & i ) &"','auto','29','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_it_2") <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_it_2" & i ) &"','auto','30','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_it_3") <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_it_3" & i ) &"','auto','31','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
if request("p_it_4") <> "" then
query = " INSERT INTO Job_ProjectList values "
query = query & " ('"& p_sn &"','"&p_subject&"','"& request("p_it_4" & i ) &"','auto','32','"&p_intention&"','"&request("p_child_sn" & i)&"') "
adoconn.Execute query
end if
'response.Write query
'job_projectlist <20>ߺ<EFBFBD><DFBA><EFBFBD><EFBFBD><EFBFBD>
query = " delete from Job_ProjectList "
query = query & " where p_sn = '"& p_sn &"' "
query = query & " and p_child_sn = '"&request("p_child_sn" & i)&"' "
query = query & " and p_pre_sn in ( "
query = query & " select jp1.p_pre_sn "
query = query & " from Job_ProjectList jp1 inner join ( "
query = query & " select MAX(p_pre_sn) as p_pre_sn, p_user "
query = query & " from Job_ProjectList "
query = query & " where p_sn = '"& p_sn &"' "
query = query & " and p_child_sn = '"&request("p_child_sn" & i)&"' "
query = query & " group by p_user "
query = query & " having COUNT(*) > 1 "
query = query & " ) jp2 on jp1.p_user = jp2.p_user and jp1.p_pre_sn <> jp2.p_pre_sn "
query = query & " where p_sn = '"& p_sn &"' "
query = query & " and p_child_sn = '"&request("p_child_sn" & i)&"' "
query = query & " ) "
adoconn.Execute query
Next
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ڵ<EFBFBD> <20><><EFBFBD>ν<EFBFBD><CEBD><EFBFBD><EFBFBD>ִ<EFBFBD> <20><><EFBFBD><EFBFBD> (2015-04-24)
'response.Write "p_sn : " & p_sn & "<BR>"
'response.Write "p_child_sn : " & p_child_sn & "<BR>"
'response.Write "p_method_cd : " & p_method_cd & "<BR>"
'==========================================<3D>˸<EFBFBD><CBB8><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> Data<74><61> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>==========================================
afterRs.Open alarmQuery, adoConn, 3
'========================================== <20><> <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>=====================================================================
'response.Write beforeRs.fields.count '<27>ʵ<EFBFBD> <20><><EFBFBD><EFBFBD>
'response.Write beforeRs.fields(i).Name '<27>ʵ<EFBFBD> <20><>
for i = 0 To beforeRs.fields.count - 1
'response.Write beforeRs.fields(i)
'response.Write "//"
'response.Write afterRs.fields(i)
'response.Write "<br />"
'response.Write alarmMap.Item(beforeRs.fields(i).Name)
if cstr(beforeRs.fields(i)) <> cstr(afterRs.fields(i)) and alarmMap.Item(beforeRs.fields(i).Name) <> "" then
query = ""
query = query & " insert into Intranet_Alarm Values "
query = query & " ( "
query = query & " '" & request("p_child_sn1") & "', "
query = query & " '" & beforeRs.fields(i).Name & "', "
query = query & " '" & alarmMap.Item(beforeRs.fields(i).Name) & "', "
query = query & " '" & beforeRs.fields(i) & "', "
query = query & " '" & afterRs.fields(i) & "', "
query = query & " '" & replace(afterRs.fields("p_rsch_a") & "," & afterRs.fields("p_rsch_b") & "," & afterRs.fields("p_rsch_c") & "," & afterRs.fields("p_sv") & "," & afterRs.fields("p_punch") & "," & afterRs.fields("p_verify") & "," & afterRs.fields("p_code") & "," & afterRs.fields("p_dp") & "," & afterRs.fields("p_it"), session("User_Number"), "") & "' "
query = query & " ) "
'response.Write query
adoconn.Execute query
end if
Next
beforeRs.close
afterRs.close
'===============================================================================================================================
%>
<html>
<script>
function goit() {
var p_sn = "<%=p_sn%>";
// alert('<27><><EFBFBD><EFBFBD><EFBFBD>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.' + "//" + document.pms.p_sub_type.value);
alert('<27><><EFBFBD><EFBFBD><EFBFBD>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.');
// if (x == 1)
// {
// alert('<%=edit_reason%><3E><> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD><CFBF><EFBFBD><EFBFBD>Ƿ<EFBFBD> <20><><EFBFBD>ຸ<EFBFBD><E0BAB8><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>簡 <20><><EFBFBD>ҵ˴ϴ<CBB4>.\n\n<>ٽ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ͻñ<CFBD> <20>ٶ<EFBFBD><D9B6>ϴ<EFBFBD>.\n\n<><6E><EFBFBD><EFBFBD>SV<53><56><EFBFBD><EFBFBD> <20>̻<EFBFBD><CCBB><EFBFBD><EFBFBD><EFBFBD> <20>뺸<EFBFBD>Ͽ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>縦 <20>ٽ<EFBFBD> <20>޾ƾ<DEBE> <20>մϴ<D5B4>.');
// //alert('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD><CFBF><EFBFBD><EFBFBD>Ƿ<EFBFBD> <20><><EFBFBD>ຸ<EFBFBD><E0BAB8><EFBFBD><EFBFBD> <20><><EFBFBD>簡 <20><><EFBFBD>ҵ˴ϴ<CBB4>.\n\n<>ٽ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ͻñ<CFBD> <20>ٶ<EFBFBD><D9B6>ϴ<EFBFBD>.');
// }
// if (c == 1)
// {
// alert('<27>ش<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ԷµǾ<C2B5> <20><><EFBFBD><EFBFBD><EFBFBD>Ƿ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ⱓ<EFBFBD><E2B0A3> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ʽ<EFBFBD><CABD>ϴ<EFBFBD>.');
// }
document.pms.action = 'project_list2_dep_2014.asp';
document.pms.submit();
}
</script>
<body onLoad="goit()">
<form name="pms" method="post">
<input type="hidden" name="p_sn" value="<%=p_sn%>">
<input type="hidden" name="teamname" value="<%=tmp_teamname%>">
<input type="hidden" name="p_sub_type" value="<%=p_sub_type%>">
<% If p_sub_type = "C" Then %>
<input type="hidden" name="p_child_sn" style="width:150;" value="<%=Request("p_child_sn1") %>">
<input type="hidden" name="p_method_cd" style="width:150;" value="<%=Request("p_method_cd1")%>">
<% End If %>
</form>
</body>
</html>

View File

@@ -0,0 +1,528 @@
<!-- #include virtual = "lib/config.asp" -->
<OBJECT RUNAT=Server PROGID=ADODB.Recordset id=rsp></OBJECT>
<OBJECT RUNAT=Server PROGID=ADODB.Recordset id=rsa></OBJECT>
<!-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD><C3BB> <20>˾<EFBFBD> üũ -->
<meta http-equiv="Content-Type" content="application/vnd.ms-excel;charset=euc-kr">
<script language="javascript" src="/js/common.js"></script>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><%=GNB_TITLE%></title>
<link rel="stylesheet" type="text/css" href="../css/basic.css">
<script src="/js/jquery.min.js"></script>
<script src="/js/jquery-ajax-call.js"></script>
<script src="/js/jquery.form.min.js"></script>
<script>
var jPath = "http://<%= split(Request.ServerVariables("HTTP_HOST"), ":")(0) %>:8088/krc_module/";
function fileadd() {
var attach_count = 1;
$(".file_id").each(function (index) {
attach_count++;
});
var temp_html = '<tr>' +
'<td align="center" >' + attach_count + '</td>' +
'<td align="center" >' +
'<select name="f_kind[' + (attach_count - 1) + ']">' +
'<option value=""><3E><><EFBFBD><EFBFBD></option>' +
'<option value="001">RFP</option>' +
'<option value="002"><3E><><EFBFBD>ȼ<EFBFBD></option>' +
'<option value="003"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></option>' +
'<option value="004"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></option>' +
'<option value="005"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></option>' +
'<option value="006"><3E><><EFBFBD>̵<EFBFBD></option>' +
'<option value="007"><3E><>Ÿ<EFBFBD>ڷ<EFBFBD></option>' +
'<option value="008"><3E>ǻ<EFBFBD>(Field)</option>' +
'<option value="009"><3E><><EFBFBD><EFBFBD>(DP)</option>' +
'</select>' +
'</td>' +
'<td align="center" >' +
'<input type="hidden" name="f_id[' + (attach_count - 1) + ']" value="" class="file_id"/>' +
'<input type="file" class="uploadFile_btn appendFile" name="ATTACH_FILENAME[' + (attach_count - 1) + ']" maxlength="1" style="width:565;" />' +
'</td>' +
'<td align="center" ></td>' +
'<td align="center" ></td>' +
'</tr>';
$("#attach_table").append(temp_html);
}
function download(f_id) {
url = jPath + "download";
var p_sn = document.pms.p_sn.value;
var param = "?p_sn=" + p_sn + "&f_id=" + f_id;
//<2F><><EFBFBD><EFBFBD> <20>ٿ<EFBFBD><D9BF>ε<EFBFBD> <20>α<EFBFBD>
ajaxCallJson("/include/download_log.asp", { "f_id" : f_id }, null, "POST");
$(location).attr("href", url + param);
}
function delete_file(f_id, login_user) {
if (f_id == null) {
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>");
return false;
}
if (login_user != document.pms.user_no.value) {
alert("÷<><C3B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ڸ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>.");
return false;
}
if (confirm("<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?") == true) { //Ȯ<><C8AE>
var url = jPath + "system/deleteFiles";
var p_sn = document.pms.p_sn.value;
//ajaxCall(url, {"p_sn": p_sn, "f_id":f_id}, null, "post", deleteComplete());
document.pms.enctype = "application/x-www-form-urlencoded";
document.pms.encoding = "application/x-www-form-urlencoded";
document.pms.action = url;
//document.pms.enctype = "multipart/form-data";
//document.pms.encoding = "multipart/form-data";
// document.charset = "UTF-8";
//document.pms.del_f_id.value = f_id;
//alert(url + "//" + p_sn + "//" + f_id);
$("#pms").ajaxForm({
data: { "del_f_id": f_id },
success: function (data) {
//deleteComplete(data)
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD><CFB7>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>");
location.reload(true);
},
error: function (jqXHR, exception) {
if (jqXHR.status === 0) {
//alert('Not connect.\n Verify Network.');
} else if (jqXHR.status == 404) {
//alert('Requested page not found. [404]');
} else if (jqXHR.status == 500) {
//alert('Internal Server Error [500].');
} else if (exception === 'parsererror') {
//alert('Requested JSON parse failed.');
} else if (exception === 'timeout') {
//alert('Time out error.');
} else if (exception === 'abort') {
//alert('Ajax request aborted.');
} else {
//alert('Uncaught Error.\n' + jqXHR.responseText);
}
alert("<22><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20>߻<EFBFBD>!\n <20><><EFBFBD><EFBFBD><EFBFBD>ڿ<EFBFBD><DABF><EFBFBD> <20><><EFBFBD>ǹٶ<C7B9><D9B6>ϴ<EFBFBD>. ");
},
complete: function () {
},
dataType: "text"
}).submit();
//var form = document.pms;
//param = $(form).serializeArray();
//ajaxCall(jPath + "system/deleteFiles2", param, null, "post", deleteComplete());
} else { //<2F><><EFBFBD><EFBFBD>
return;
}
}
function save(p_sn) {
var fileCount = 0;
var fileAttachCcount = 0;
var upload_Flag = true;
var depart_no = document.pms.depart_no.value;
$("input:file").each(function (index) {
var uploadpath = $(this).val();
fileCount++;
//console.log(index+"//uploadpath.length : "+uploadpath.length);
if (uploadpath.length > 0) {
fileAttachCcount++;
//alert($(this).attr("name") + "//" + $(this).val());
var fileExtension = uploadpath.substring(uploadpath.lastIndexOf(".") + 1, uploadpath.length);
if (depart_no != "17") {
if (fileExtension.toLowerCase() == "zip" || fileExtension.toLowerCase() == "rar" || fileExtension.toLowerCase() == "arj" || fileExtension.toLowerCase() == "egg") {
//write code for success
alert("<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>ε<EFBFBD> <20><> <20><> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
upload_Flag = false;
return false;
}
}
if ($("select[name*='f_kind[" + index + "]']").val() == "") {
alert((index + 1) + "<22><> ÷<><C3B7> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ī<>װ<EFBFBD><D7B0><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͻʽÿ<CABD>.");
upload_Flag = false;
return false;
}
}
});
//console.log("fileAttachCcount : "+fileAttachCcount);
document.pms.fileCount.value = fileCount;
//alert(upload_Flag);
if (upload_Flag) {
//if (confirm("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD> <20>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?")) {
//alert("p_sn : " + p_sn + "fileAttachCcount : " + fileAttachCcount);
fileInfo_save(p_sn, fileAttachCcount);
//} else {
// return;
//}
}
}
function fileInfo_save(p_sn, f_count) {
var rowCount = 0;
var saveValidFlag = false;
if (f_count > 0) {
saveValidFlag = true;
}
if (saveValidFlag) {
var tempSampleCount = 0;
//msg = "<22><><EFBFBD><EFBFBD> <20>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?";
/* if(confirm(msg)!=0) {
return true;
} */
document.pms.action = jPath + "system/uploadFiles";
document.pms.enctype = "multipart/form-data";
document.pms.encoding = "multipart/form-data";
document.pms.method = "POST";
document.charset = "UTF-8";
//alert(document.pms.action);
//alert("p_sn : " + p_sn + "fileAttachCcount : " + f_count);
$("#pms").ajaxForm({
success: function (response, textStatus, jqXHR) {
//alert("textStatus: "+textStatus+"\n jqXHR : "+jqXHR+"\n response : "+response);
if (response == "{'success':true}") {
formDataSave(x, p_sn);
} else {
saveFail();
}
},
error: function () {
saveFail();
},
complete: function () {
},
dataType: "text"
}).submit();
//IE8 <20><><EFBFBD><EFBFBD> Formdata <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> ==============================================================================================================================
/*
var form = document.pms;
var formdata = false;
if(window.FormData !== undefined){ // for HTML5 browsers
formdata = new FormData(form);
$("input[type=file]").each(function(index){
if($(this).val() != ""){
var fileIndex = $(this).attr("name").replace("ATTACH_FILENAME[", "");
fileIndex = fileIndex.replace("]", "");
}
});
$.ajax({
url: jPath + "system/uploadFiles",
type: "POST",
enctype: "multipart/form-data",
encoding: "multipart/form-data",
data: formdata,
contentType: false,
processData: false,
beforeSubmit: showRequest,
success: function(response, textStatus, jqXHR){
//alert("textStatus: "+textStatus+"\n jqXHR : "+jqXHR+"\n response : "+response);
if (response == "{'success':true}") {
formDataSave();
}else{
saveFail();
}
},
error: function () {
saveFail();
},
complete: function () {
}
});
}else{
alert("IE8 <20>ù<EFBFBD>");
//generate a random id
var iframeId = 'unique' + (new Date().getTime());
//create an empty iframe
var iframe = $('<iframe src="javascript:false;" name="'+iframeId+'" />');
//hide it
iframe.hide();
//set form target to iframe
$(form).attr('target',iframeId);
//Add iframe to body
iframe.appendTo('body');
iframe.load(function(e){
var doc = getDoc(iframe[0]); //get iframe Document
var docRoot = doc.body ? doc.body : doc.documentElement;
var data = docRoot.innerHTML;
//data is returned from server.
});
$("#pms").submit();
}
*/
//IE8 <20><><EFBFBD><EFBFBD> Formdata <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> ==============================================================================================================================
} else {
//document.pms.enctype = "application/x-www-form-urlencoded";
formDataSave();
//alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͱ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
}
}
function saveFail() {
alert("÷<><C3B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>߻<EFBFBD> <20>Ͽ<EFBFBD><CFBF><EFBFBD><EFBFBD>ϴ<EFBFBD>.\n<><6E><EFBFBD><EFBFBD><EFBFBD>ڿ<EFBFBD><DABF><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ٶ<EFBFBD><D9B6>ϴ<EFBFBD>.");
}
function formDataSave() {
document.pms.enctype = "application/x-www-form-urlencoded";
document.pms.encoding = "application/x-www-form-urlencoded";
document.charset = "EUC-KR";
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD><CFB7>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>");
location.reload(true);
//document.pms.action = 'project_list2_dep_ok_2014.asp';
//document.pms.submit();
}
</script>
<%
p_sn = Request("p_sn")
%>
</head>
<body topmargin="10" leftmargin="15">
<form id="pms" name="pms" method="post">
<input type="hidden" name="p_sn" value="<%=p_sn %>"/>
<input type="hidden" name="fileCount" value=""/>
<input type="hidden" name="f_work_type" value="001"/>
<input type="hidden" name="user_no" value="<%=Session("User_Number")%>"/>
<input type="hidden" name="depart_no" value="<%=Session("Depart_Code")%>"/>
<table border="0" cellspacing="0" cellpadding="4" width="1000" style="border-collapse=collapse;">
<tr height="26">
<td colspan="5" style="padding: 25px 0 0 0;">
<div style="position:relative; padding: 0px; margin: 0px;">
<img src="/images/main/bubble_1num.png" style="">
<span style="position:absolute; top: 1px; left: 27px; font-size: 12pt; font-weight:bold;">÷<>ι<EFBFBD><CEB9><EFBFBD></span>
<img src="/images/project/btn_cost3.jpg" onClick="fileadd()" style='CURSOR:pointer; position:absolute; top: 1px; right: 0px;' align="absmiddle">
</div>
</td>
</tr>
<tr>
<td style="padding:0px;" colspan="5">
<table width="100%" cellpadding="3" cellspacing="0" border="0" style="border-collapse:collapse;">
<tr>
<td style="padding:0px 0 5px 0;">
<table id="attach_table" width="100%" cellpadding="3" cellspacing="0" border="0" style="border-collapse:collapse;">
<tr height="30px;">
<td align="center" width="6%"><3E><><EFBFBD><EFBFBD></td>
<td align="center" width="8%"><3E>ڷ<EFBFBD>ī<EFBFBD>װ<EFBFBD><D7B0><EFBFBD></td>
<td align="center" width="58%">÷<>ι<EFBFBD><CEB9><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϸ<EFBFBD></td>
<td align="center" width="10%"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td align="center" class="tit_left tit_right" width="16%">÷<><C3B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<!-- <td align="center" class="tit_left tit_right" width="15%"><3E><>Ÿ</td> -->
</tr>
<%
query = " SELECT f_id, f_kind, f_p_sn, f_file_name, f_save_name, f_input_dt, f_input_user, p_name "
query = query & " FROM T_SYSTEM_ATTACH as TSA "
query = query & " LEFT OUTER JOIN person as P "
query = query & " ON TSA.f_input_user = P.p_no "
query = query & " WHERE f_p_sn = '"&p_sn& "' "
query = query & " AND f_use_yn = 'Y' "
query = query & " AND f_work_type = '001' and f_kind <> '099' "
query = query & " order by f_kind, f_id "
rsp.Open query, adoConn, 1
attach_file_count = rsp.recordCount
'If attach_file_count < 4 Then
' attach_file_count = 3
'End if
dim f_attach_info()
redim f_attach_info(attach_file_count, 6)
Dim f_attach_index
f_attach_index = 1
select_kind_code_flag = True
other_kind_code_falg = True
default_kind_code_flag = false
kind_code = ""
'response.write "query : " & query & "<br>"
i = 1
row_cnt = 1
Do While i < 10
kind_code = "00" & CStr(i)
If attach_file_count > 0 then
''' response.write "i : " & i & ", kind_code : " & kind_code & ", rsp('f_kind') : " & rsp("f_kind") & "<br>"
If default_kind_code_flag Then
select_kind_code_flag = true
Else
If kind_code = rsp("f_kind") Then
select_kind_code_flag = False
other_kind_code_falg = False
f_attach_info(f_attach_index, 0) = rsp("f_id")
f_attach_info(f_attach_index, 1) = rsp("f_kind")
f_attach_info(f_attach_index, 2) = rsp("f_file_name")
f_attach_info(f_attach_index, 3) = rsp("p_name")
f_attach_info(f_attach_index, 4) = rsp("f_input_dt")
f_attach_info(f_attach_index, 5) = rsp("f_input_user")
Else
select_kind_code_flag = True
End If
End If
If select_kind_code_flag Then
If other_kind_code_falg then
%>
<tr>
<td align="center" ><%=row_cnt%></td>
<td align="center" >
<input type="hidden" name="f_id[<%=row_cnt-1%>]" value="" class="file_id"/>
<select name="f_kind[<%=row_cnt-1%>]">
<option value=""><3E><><EFBFBD><EFBFBD></option>
<% query = "select c_common_code, c_code_name from T_COMMON_CODE_DETAIL where c_kind_code = '001' and c_common_code <> '099' "
rsa.Open query, adoConn, 1
if rsa.RecordCount > 0 then
for j = 1 to rsa.RecordCount %>
<option value="<%=rsa("c_common_code")%>" <% if rsa("c_common_code") = kind_code then %> selected <% end if %>> <%=rsa("c_code_name")%></option>
<% rsa.MoveNext
next
end if
rsa.Close
%>
</select>
</td>
<td align="center" >
<input type="file" class="uploadFile_btn " name="ATTACH_FILENAME[<%=row_cnt-1%>]" maxlength="1" style="width:565;" />
</td>
<td align="center" ></td>
<td align="center" ></td>
</tr>
<%
row_cnt = row_cnt + 1
other_kind_code_falg = false
End if
i = i + 1
other_kind_code_falg = true
Else
%>
<tr>
<td align="center" ><%=row_cnt%></td>
<td align="center" >
<input type="hidden" name="f_id[<%=row_cnt-1%>]" value="<%=f_attach_info(f_attach_index, 0)%>" class="file_id"/>
<% query = "select c_common_code, c_code_name from T_COMMON_CODE_DETAIL where c_kind_code = '001' and c_common_code <> '099' "
rsa.Open query, adoConn, 1
if rsa.RecordCount > 0 then
for j = 1 to rsa.RecordCount
if rsa("c_common_code") = kind_code Then
%>
<input type="hidden" name="f_kind[<%=row_cnt-1%>]" value="<%=rsa("c_common_code")%>"/>
<input type="text" value="<%=rsa("c_code_name")%>" readonly style="border: 0px none0; text-align: center;"/>
<%
end if
rsa.MoveNext
next
end if
rsa.Close
%>
</td>
<td align="center" >
<input type="file" class="uploadFile_btn" name="ATTACH_FILENAME[<%=row_cnt-1%>]" maxlength="1" style="width:200;" />
<input type="text" onclick="download(<%=f_attach_info(f_attach_index, 0)%>)" style="width:360; color:blue; CURSOR:pointer;" value = "<%=f_attach_info(f_attach_index, 2)%>" readonly/>
<!--<button type="button" style="width:60;" value="<22><><EFBFBD><EFBFBD>" onclick="delete_file('<%=f_attach_info(f_attach_index, 0)%>', '<%=f_attach_info(f_attach_index, 5)%>')"><3E><><EFBFBD><EFBFBD></button> -->
</td>
<td align="center" ><%=f_attach_info(f_attach_index, 3)%></td>
<td align="center" ><%=f_attach_info(f_attach_index, 4)%></td>
</tr>
<%
f_attach_index = f_attach_index + 1
row_cnt = row_cnt + 1
If f_attach_index <= attach_file_count Then
rsp.MoveNext
Else
If kind_code <> "009" Then
default_kind_code_flag = true
else
Exit do
End if
End if
End If
Else
%>
<tr>
<td align="center" ><%=row_cnt%></td>
<td align="center" >
<input type="hidden" name="f_id[<%=row_cnt-1%>]" value="" class="file_id"/>
<select name="f_kind[<%=row_cnt-1%>]" >
<option value=""><3E><><EFBFBD><EFBFBD></option>
<% query = "select c_common_code, c_code_name from T_COMMON_CODE_DETAIL where c_kind_code = '001' and c_common_code <> '099' "
rsa.Open query, adoConn, 1
if rsa.RecordCount > 0 then
for j = 1 to rsa.RecordCount %>
<option value="<%=rsa("c_common_code")%>" <% if rsa("c_common_code") = ("00"&CStr(row_cnt)) then %> selected <% end if %>> <%=rsa("c_code_name")%></option>
<% rsa.MoveNext
next
end if
rsa.Close
%>
</select>
</td>
<td align="center" >
<input type="file" class="uploadFile_btn" name="ATTACH_FILENAME[<%=row_cnt-1%>]" maxlength="1" style="width:565;" />
</td>
<td align="center" ></td>
<td align="center" ></td>
</tr>
<%
row_cnt = row_cnt + 1
i = i + 1
End if
Loop
rsp.Close
%>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="6" height="1" bgcolor="#cecece"></td>
</tr>
<tr>
<td align="center" colspan="6" style="padding:10 0 0 0; position:relative;">
<img src="/images/project/btn_save.jpg" align="absmiddle" style="cursor:pointer" onclick="save('<%=p_sn%>')">
<img src="/images/common/btn_cancel2.jpg" align="absmiddle" style="cursor:pointer" onclick="window.close();"> <!-- <20><><EFBFBD><EFBFBD><EFBFBD>ϱ<EFBFBD> -->
</td>
</tr>
</table>
</form>
</body>
</html>

View File

@@ -0,0 +1,620 @@
<!-- #include virtual = "include/header.asp" -->
<!-- #include virtual = "include/left.asp" -->
<%
dim prj_list(20 , 25)
x = request("x")
z = request("z") '1<><31> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȹ, 2<><32> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD>, 3<><33> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD>
p_depart = request("p_depart")
p_team = request("p_team")
flag = request("flag") 'my_menu.asp<73><70><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> (tmp_stat_flag<61><67> <20><><EFBFBD><EFBFBD>)
If request("tmp_sort") <> "" Then
tmp_sort = request("tmp_sort")
Else
tmp_sort = "0"
End if
tmp_month = request("tmp_month")
tmp_year = request("tmp_year")
p_team_people = request("p_team_people")
p_subject = request("p_subject")
p_method_nm = request("p_method_nm")
p_method_cd = request("p_method_cd")
chk = request("chk") '<27>μ<EFBFBD><CEBC><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ǹ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><>ü<EFBFBD><C3BC> <20>ʱ<EFBFBD>ȭ <20><>
if request("gotopage") <> "" then
tmp_currentpage = request("gotopage")
else
tmp_currentpage = 1
end if
If p_depart = "" Then
p_depart = Session("Depart_Code")
End if
if p_depart = "all" then
p_depart = ""
end if
'-- <20><EFBFBD>μ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD>("ok")(20170720 <20>߰<EFBFBD>)
org_mgr_team = request("org_mgr_team")
if org_mgr_team="ok" then p_depart = ""
'page config
tmp_colspan = 9
if tmp_year = "" then
tmp_year = cstr(year(date()))
end if
if tmp_month = "" then
tmp_month = cstr(month(date()))
end if
%>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<div class="content-header">
<h1><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></h1>
</div>
<!-- /.content-header -->
<!-- Main content -->
<div class="content-body">
<div class="content">
<div class="container-fluid">
<div class="row">
<div class="col-12">
<form name="pms" method="post">
<input type="hidden" name="z" style="width:150;" value="<%=z%>">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td><3E>˻<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>.</td>
</tr>
<tr>
<td style="padding:5 0 0 0">
<table width="100%" height="37" cellpadding="0" cellspacing="1" border="0" bgcolor="#c0c0c0">
<tr>
<td bgcolor="#DFDFDF" style="padding:0 0 0 10;">
<%if p_depart <> "" then %>
<!-- <20>μ<EFBFBD>&nbsp; -->
<09>μ<EFBFBD>&nbsp;
<%
query = ""
query = query & " SELECT DISTINCT before_t_cd1 as d_code, LEFT(T_Name, 8) as d_name "
query = query & " FROM project2.dbo.v_Department "
query = query & " WHERE (before_t_cd1 in (12, 17, 18, 90) or before_t_cd1 between 20 and 99) "
query = query & " order by LEFT(T_Name, 8)"
adors.Open query, adoconn,adOpenStatic,adLockReadOnly
%>
<select name=p_depart>
<option value="0"<% if cint(p_depart) = 0 then %> selected <% end if %>><3E><>ü</option>
<%for i=1 to adors.recordcount %>
<option value="<%=adors("d_code")%>"<% if cint(p_depart) = cint(adors("d_code")) then %> selected <% end if %>><%=adors("d_name")%></option>
<%
adors.movenext
next%>
</select>&nbsp;&nbsp;
<% adors.close %>
<%end if%>
<09><><EFBFBD><EFBFBD>&nbsp;
<select name="tmp_sort">
<option value="" <% if tmp_sort = "0" then %> selected <% end if %>><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE></option>
<option value="1" <% if tmp_sort = "1" then %> selected <% end if %>><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD>ڵ<EFBFBD></option>
<option value="2" <% if tmp_sort = "2" then %> selected <% end if %>><3E><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD></option>
<option value="3" <% if tmp_sort = "3" then %> selected <% end if %>><3E><><EFBFBD><EFBFBD><EFBFBD>Ͻ<EFBFBD></option>
</select>
&nbsp;&nbsp;
<09>⵵&nbsp;
<select name="tmp_year" >
<%for i = year(date()) to 2009 step -1
%><option value="<%=i%>" <% if tmp_year = cstr(i) then %> selected <% end if %>><%=i%><3E><></option><%
next%>
</select>
&nbsp;&nbsp;
<09><>&nbsp;
<select name="tmp_month" >
<option value="0" <% if tmp_month = "0" then %> selected <% end if %>><3E><>ü</option>
<%
if cstr(tmp_year) = cstr(year(date())) OR tmp_year = "" then
tmp_i = month(date())
else
tmp_i = 12
end if
for i = 1 to tmp_i
%>
<option value="<%=i%>" <% if tmp_month = cstr(i) then %> selected <% end if %>><%=i%><3E><></option>
<%
next
%>
&nbsp;&nbsp;&nbsp;&nbsp;
</select>
<09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><> : &nbsp;
<input type="text" style="width:200" name="p_subject" maxlength=20 style='ime-mode:inactive;' value='<%=p_subject%>'>&nbsp;&nbsp;
<!-- <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> : &nbsp; -->
<select name="p_method_cd" style="display:none; ">
<option value="" <% if p_method_cd = "" then %> selected <% end if %>><3E><>ü</option>
<option value="0" <% if p_method_cd = "0" then %> selected <% end if %>>Multi</option>
<%
query = " SELECT * "
query = query & " FROM T_PROJECT_METHOD_CD "
Rs.Open query, adoConn, 1
for i=1 to Rs.recordcount
%>
<option value="<%=Rs("p_method_cd")%>" <% if trim(Rs("p_method_cd")) = p_method_cd then %> selected <% end if %>><%=Rs("p_method_nm")%></option>
<%
Rs.MoveNext
next
Rs.close
%>
&nbsp;&nbsp;&nbsp;&nbsp;
</select>
<img src="/images/common/btn_smallsrch.gif" align="absmiddle" onclick="subit()" style='cursor:pointer' >
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="checkbox" class="none" name="org_mgr_team" value="ok" onclick="subit()" <%if org_mgr_team="ok" then %> checked <%end if%>><3E><EFBFBD>μ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD></input>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td style="padding:10 0 0 0">
<div id="popdiv_obj1" style="position:absolute; background-color:FFFFDD;color:black;border-color:black;border-width:20; display:none; left:25px; top:100px; z-index:10" onmouseover="overdiv=10;" onmouseout="overdiv=0;setTimeout('hideLayer()',1000)">asdf</div>
<table width="100%" cellpadding="3" cellspacing="0" border="0" style="border-collapse:collapse;">
<tr>
<td align="center" style="width: 4%">No.</td>
<td align="center" style="width: 10%"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD>ڵ<EFBFBD></td>
<td align="center" style="width: 24%"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE></td>
<td align="center" style="width: 15%"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td align="center" style="width: 15%"><3E><><EFBFBD>系<EFBFBD><E7B3BB></td>
<td align="center" style="width: 11%"><3E><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD></td>
<td align="center" style="width: 8%"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td align="center" style="width: 5%"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td align="center" class="tit_left tit_right" style="width: 8%"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
</tr>
<!-- loop start -->
<%
query = "SELECT * "
query = query & "FROM ( " & vbCrLf
query = query & " SELECT TPB.p_sn " & vbCrLf
query = query & " ,TPB.p_cli_company "
query = query & " ,TPB.p_cli_type "
query = query & " ,TPM.p_subject "
query = query & " ,TPM.p_intention "
query = query & " ,TPB.p_cp_code "
query = query & " ,TPB.p_memo "
query = query & " ,TPM.p_cont_cost "
query = query & " ,TPM.p_decide_date "
query = query & " ,TPM.p_con_date_st "
query = query & " ,TPM.p_con_date_end "
query = query & " ,TPM.p_export_range "
query = query & " ,TPM.p_category "
query = query & " ,TPB.p_state "
query = query & " ,TPB.p_input_user "
query = query & " ,TPB.p_depart "
query = query & " ,TPB.p_depart_dep "
query = query & " ,TPB.p_depart_team "
query = query & " ,TPM.p_method_cd "
query = query & " ,TPM.p_index "
query = query & " ,TPM.p_sub_type "
query = query & " ,TPM.p_child_sn "
query = query & " ,TPM.p_sur_area "
query = query & " ,TPM.p_sur_target "
query = query & " ,TPM.p_sample "
query = query & " ,TPM.p_research_date_st "
query = query & " ,TPM.p_research_date_end "
query = query & " ,TPM.p_sur_part "
query = query & " ,TPM.p_field_process "
query = query & " ,TPM.p_rsch_dept "
query = query & " ,TPM.p_field_dept "
query = query & " ,TPM.p_is_dept "
query = query & " ,TPM.p_supp_dept "
query = query & " ,TPM.p_rsch_1_a "
query = query & " ,TPM.p_rsch_2_a "
query = query & " ,TPM.p_rsch_3_a "
query = query & " ,TPM.p_rsch_4_a "
query = query & " ,TPM.p_rsch_1_b "
query = query & " ,TPM.p_rsch_2_b "
query = query & " ,TPM.p_rsch_3_b "
query = query & " ,TPM.p_rsch_4_b "
query = query & " ,TPM.p_rsch_1_c "
query = query & " ,TPM.p_rsch_2_c "
query = query & " ,TPM.p_rsch_3_c "
query = query & " ,TPM.p_rsch_4_c "
query = query & " ,TPM.p_sv_1 "
query = query & " ,TPM.p_sv_2 "
query = query & " ,TPM.p_sv_3 "
query = query & " ,TPM.p_sv_4 "
query = query & " ,TPM.p_code_1 "
query = query & " ,TPM.p_code_2 "
query = query & " ,TPM.p_code_3 "
query = query & " ,TPM.p_code_4 "
query = query & " ,TPM.p_verify_1 "
query = query & " ,TPM.p_verify_2 "
query = query & " ,TPM.p_verify_3 "
query = query & " ,TPM.p_verify_4 "
query = query & " ,TPM.p_dp_1 "
query = query & " ,TPM.p_dp_2 "
query = query & " ,TPM.p_dp_3 "
query = query & " ,TPM.p_dp_4 "
query = query & " ,TPM.p_it_1 "
query = query & " ,TPM.p_it_2 "
query = query & " ,TPM.p_it_3 "
query = query & " ,TPM.p_it_4 "
query = query & " ,TPM.p_supp_1 "
query = query & " ,TPM.p_supp_2 "
query = query & " ,TPM.p_supp_3 "
query = query & " ,TPM.p_supp_4 "
query = query & " ,TPM.p_rsch_date_st "
query = query & " ,TPM.p_rsch_date_end "
query = query & " ,TPM.p_field_date_st "
query = query & " ,TPM.p_field_date_end "
query = query & " ,TPM.p_code_date_st "
query = query & " ,TPM.p_code_date_end "
query = query & " ,TPM.p_verify_date_st "
query = query & " ,TPM.p_verify_date_end "
query = query & " ,TPM.p_dp_date_st "
query = query & " ,TPM.p_dp_date_end "
query = query & " ,TPM.p_it_date_st "
query = query & " ,TPM.p_it_date_end "
query = query & " ,TPM.p_premeet_date "
query = query & " ,TPM.p_premeet_time "
query = query & " ,TPM.p_premeet_place "
query = query & " ,TPM.p_ot_date "
query = query & " ,TPM.p_ot_time "
query = query & " ,TPM.p_ot_place "
query = query & " ,TPM.p_sur_memo "
query = query & " ,TPM.p_progress_status "
query = query & " ,TPM.p_input_dt " & vbCrLf
query = query & " FROM V_PROJECT as TPB " & vbCrLf
query = query & " INNER JOIN V_PROJECT_METHOD as TPM " & vbCrLf
query = query & " ON TPB.p_sn = TPM.p_sn " & vbCrLf
query = query & " AND TPM.p_progress_status is not null " & vbCrLf
query = query & " AND TPM.p_sub_type = 'C' " & vbCrLf
if p_depart="" and org_mgr_team="ok" then
query = query & " WHERE p_depart_dep in ( " & vbCrLf
query = query & " select team_cd from [dbo].[TEAM_GROUP] where group1='2' " & vbCrLf '-- group1 (<28><EFBFBD>μ<EFBFBD>:2)
query = query & " ) " & vbCrLf
else
if p_depart <> "0" AND p_depart <> "" then
If p_depart = 17 Or p_depart = 18 then
query = query & " WHERE (p_depart_dep <= 10 or (p_depart_dep >= 20 and p_depart_dep <=99) or (p_depart_dep >= 17 and p_depart_dep <=18)) " & vbCrLf
elseif p_depart = 13 then
query = query & " WHERE p_depart_dep = 12 " & vbCrLf
Else
query = query & " WHERE ( /* p_depart_dep = " & p_depart & " or */ " & vbCrLf
query = query & " p_rsch_dept = " & p_depart & " or " & vbCrLf
query = query & " p_field_dept = " & p_depart & " or " & vbCrLf
query = query & " p_is_dept = " & p_depart & " or " & vbCrLf
query = query & " p_supp_dept = " & p_depart & " " & vbCrLf
query = query & " ) " & vbCrLf
End if
else
query = query & " WHERE (p_depart_dep <= 10 or (p_depart_dep >= 20 and p_depart_dep <=99)) " & vbCrLf
end If
end if
query = query & " ) as T " & vbCrLf
'z<>ɼ<EFBFBD>
if z = 1 then
query = query & " WHERE p_progress_status <= '007' " & vbCrLf
elseif z = 2 Then
query = query & " WHERE p_progress_status > '007' and p_progress_status <> '999' " & vbCrLf
else
query = query & " WHERE p_progress_status < '014' " & vbCrLf
end if
'------------------------------------------------------
'<27><> <20>ɼ<EFBFBD>
if tmp_year <> "0" and tmp_year <> "" then
query = query & " AND SUBSTRING(convert(varchar(30), p_input_dt, 112), 1, 4) = '" & tmp_year & "' " & vbCrLf
else
query = query & " AND SUBSTRING(convert(varchar(30), p_input_dt, 112), 1, 4) = '" & year(date()) & "' " & vbCrLf
end if
'------------------------------------------------------
'<27><> <20>ɼ<EFBFBD>
if tmp_month <> "0" and tmp_month <> "" then
query = query & " AND SUBSTRING(convert(varchar(30), p_input_dt, 112), 5, 2) = '" & right("0" & tmp_month, 2) & "' " & vbCrLf
end if
'------------------------------------------------------
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><> <20>˻<EFBFBD> <20>ɼ<EFBFBD>
if p_subject <> "" then
query = query & " AND p_subject LIKE '%"&p_subject&"%' " & vbCrLf
end if
'------------------------------------------------------
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><> <20>˻<EFBFBD> <20>ɼ<EFBFBD>
if p_method_cd <> "" then
query = query & " AND p_method_cd = '"&p_method_cd&"' " & vbCrLf
end if
'------------------------------------------------------
'<27><EFBFBD>μ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD>
if org_mgr_team="ok" then
query = query & " AND p_rsch_dept='900' " & vbCrLf
end if
'------------------------------------------------------
'<27><><EFBFBD><EFBFBD> <20>ɼ<EFBFBD>
if tmp_sort = "0" Then
query = query & "ORDER BY p_subject " & vbCrLf
ElseIf tmp_sort = "1" Then
query = query & "ORDER BY p_sn DESC " & vbCrLf
ElseIf tmp_sort = "2" Then
query = query & "ORDER BY p_depart_dep " & vbCrLf
else
query = query & "ORDER BY p_input_dt " & vbCrLf
end If
'------------------------------------------------------
'response.write query
Rs.Open query, adoConn, 1
if Rs.RecordCount > 0 then
Rs.PageSize = 20
PageCount = Rs.PageCount
Rs.absolutepage = tmp_Currentpage
tmp_total_record = Rs.RecordCount
tmp_for = Cint(tmp_total_record) - ((Cint(tmp_Currentpage) - 1) * Rs.PageSize)
if Rs.PageSize <= tmp_for then
if Rs.RecordCount <= Rs.PageSize then
tmp_for = Rs.recordcount
else
tmp_for = Rs.PageSize
end if
else
tmp_for = tmp_for
end if
for i = 1 to tmp_for
if Cint(tmp_Currentpage)=1 then
Num=Cint(tmp_total_record)- i+1
else
Num=Cint(tmp_total_record) - ((Cint(tmp_Currentpage) - 1) * Rs.PageSize) - i +1
end if
prj_list(i, 0) = Rs("p_sn")
prj_list(i, 1) = Rs("p_subject")
if Cint(tmp_Currentpage)=1 then
Num=Cint(tmp_total_record)- i+1
else
Num=Cint(tmp_total_record) - ((Cint(tmp_Currentpage) - 1) * Rs.PageSize) - i +1
end if
tmp_view = "0"
if flag <> "" then '#### my_menu<6E><75><EFBFBD><EFBFBD> <20>񱳰<EFBFBD><F1B1B3B0><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20>񱳰<EFBFBD><F1B1B3B0><EFBFBD> <20><><EFBFBD>缭 <20><><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD>
if tmp_stat_flag_process = flag OR tmp_stat_flag_date = flag then '#### <20>񱳰<EFBFBD><F1B1B3B0><EFBFBD> <20><><EFBFBD>ٸ<EFBFBD> <20><>ü<EFBFBD><C3BC> <20><><EFBFBD><EFBFBD>
tmp_view = "1"
else
tmp_veiw = "0"
end if
else
tmp_view = "1"
end if
if tmp_view = "1" then
if i mod 2 = 0 then
tmp_bgcolor="#dbe9f2"
else
tmp_bgcolor=""
end if
%>
<tr bgcolor="<%=tmp_bgcolor%>" id='row<%=i%>'>
<td align="center" ><%=Num%></td>
<td align="center" ><a href="javascript:openit('1','<%=Rs("p_sn")%>','<%=Rs("p_sub_type")%>','<%=Rs("p_method_cd")%>','<%=Rs("p_child_sn")%>')" class="blue">
<!-- <%=Rs("p_state")%><%=Rs("p_sn")%> -->
<%
If Rs("p_sub_type") = "M" Then
%>
<%=Rs("p_sn")%>_M01
<% Else
If Rs("p_child_sn") = "" Then
%>
<%=Rs("p_sn")%>_C01
<% Else %>
<%=Rs("p_child_sn")%>
<% End If
End If
%>
</a></td>
<td align="left" ><a href="javascript:openit('1','<%=Rs("p_sn")%>','<%=Rs("p_sub_type")%>','<%=Rs("p_method_cd")%>','<%=Rs("p_child_sn")%>')" class="blue">&nbsp;<%=Rs("p_subject")%></a></td>
<td align="center" >
<%
If Rs("p_sub_type") = "M" Then
%>
Multi
<%
Else
If Rs("p_method_cd") <> "" then
q = "select p_method_cd, p_method_nm from T_PROJECT_METHOD_CD where p_method_cd = " & Rs("p_method_cd")
adors.Open q, adoConn, 1
if adors.RecordCount > 0 Then
%>
<%=adors("p_method_nm")%>
<%
end if
adors.Close
Else
%>
<%
End if
End if
%>
</td>
<td align="left" >&nbsp;<%=Rs("p_intention")%></td>
<td align="center" ><!-- <20><>Ȯ<EFBFBD>ο<EFBFBD> [<%= Rs("p_depart_dep")%>] -->
<%
'##### <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>(2019)
q = "Select T_name from V_department where before_t_cd1 = '"& Rs("p_rsch_dept") &"' "
adors.Open q, adoConn, 1
Dim owner_depart_name
Dim owner_emp_name_1 '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
Dim owner_emp_name_2 'SV
if adors.RecordCount > 0 Then
If (Instr(adors("T_name"),"<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>") <> 0) or (Instr(adors("T_name"),"<22><><EFBFBD><EFBFBD>") <> 0) Then
owner_depart_name = Right(adors("T_name"),2)
Else
owner_depart_name = adors("T_name")
End If
Else
owner_depart_name = "<22><><EFBFBD><EFBFBD><EFBFBD>ȵ<EFBFBD>"
end if
adors.Close
q = "select p_no, p_name from person where p_no = '" & Rs("p_input_user") & "' "
adors.Open q, adoConn, 1
if adors.RecordCount > 0 Then
owner_emp_name_1 = adors("p_name")
end if
adors.Close
q = "select p_no, p_name from person where p_no = '" & Rs("p_sv_1") & "' "
adors.Open q, adoConn, 1
if adors.RecordCount > 0 Then
owner_emp_name_2 = adors("p_name")
Else
owner_emp_name_2 = "<22><><EFBFBD><EFBFBD><EFBFBD>ȵ<EFBFBD>"
end if
adors.Close
%>
<%=owner_depart_name%><br>(<%=owner_emp_name_1%>/<%=owner_emp_name_2%>)
</td>
<td align="center" >
<%
q = "select c_common_code, c_code_name from T_COMMON_CODE_DETAIL where c_kind_code = '010' and c_common_code = '" & Rs("p_progress_status") & "' "
adors.Open q, adoConn, 1
Dim project_complete
project_complete = false
if adors.RecordCount > 0 Then
If CInt(adors("c_common_code")) < 8 Then
%><font style="color: orange; font-weight: bold;"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></font><%
Else
yyyy = year(cdate(now))
mm = TransFormat(month(cdate(now)))
dd = TransFormat(day(cdate(now)))
temp_today = yyyy & "-" & mm & "-" & dd
If Trim(Rs("p_field_date_end")) = "" or isnull(Rs("p_field_date_end")) = true Then
If Trim(Rs("p_sub_type")) = "M" Then
Else
%><font style="color: orange; font-weight: bold;"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></font> <%
End if
elseIf CLng(Replace(temp_today, "-", "")) < CLng(Replace(left(Rs("p_field_date_end"), 10), "-", ""))Then
%><font style="color: orange; font-weight: bold;"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></font> <%
Else
project_complete = true
%><font style="color: blue; font-weight: bold;"><3E><><EFBFBD><EFBFBD><EFBFBD>Ϸ<EFBFBD></font> <%
End if
End if
end if
adors.Close
%>
</td>
<td align="center" >
<%
'If project_complete Then
Dim temp_p_sn
If Rs("p_sub_type") = "M" Then
temp_p_sn = Rs("p_sn")&"_M01"
Else
If Rs("p_child_sn") = "" Then
temp_p_sn = Rs("p_sn")&"_C01"
Else
temp_p_sn = Rs("p_child_sn")
End If
End If
%>
<a href="javascript:link_direct_cost('<%=temp_p_sn%>', '<%=Rs("p_sub_type")%>','<%=Rs("p_method_cd")%>');"><3E><><EFBFBD><EFBFBD></a>
<%
'End If
%>
</td>
<td align="center" ><%=Left(Rs("p_input_dt"), 10)%></td>
</tr>
<%
end if
Rs.MoveNext
next
end if
Rs.Close
%>
<!-- loop end -->
<tr>
<td colspan="12" bgcolor="#d5d5d5" height="1"></td>
</tr>
<tr>
<td colspan="12" style="padding:10 0 0 0">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="100%" align="center">
<!--- Paging Start --->
<%=Pagelist("project_list2_support_2014.asp",tmp_currentpage ,tmp_bcolor , "", pagecount, "&x=" & x & "&chk=" & chk & "&p_depart=" & p_depart & "&p_team=" & p_team & "&flag=" & flag & "&tmp_sort=" & tmp_sort & "&tmp_month=" & tmp_month & "&tmp_year=" & tmp_year & "&p_team_people=" & p_team_people & "&z=" & z)%>
<!--- Paging End --->
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</div>
</div>
</div>
</div>
</div>
<!-- /.content -->
<!-- REQUIRED SCRIPTS -->
<script>
function openit(a, z, x, y, v) {
if (a == 1) {
if (new_project_2014(z) == 1) {
var url = 'project_list2_dep.asp?p_sn=' + z;
} else {
var url = 'project_list2_dep_2014.asp?p_sn=' + z;
}
var tmp_width = 1400;
var tmp_height = 800;
if (v != "") {
url = url + "&p_sub_type=" + x + "&p_method_cd=" + y + "&p_child_sn=" + v;
} else {
url = url + "&p_sub_type=" + x + "&p_method_cd=" + y;
}
}
window.open(url, '', 'left=0,top=0,width=' + tmp_width + ',height=' + tmp_height + ',scrollbars=yes,resizable=yes')
}
function subit() {
document.pms.action = "project_list2_support_2014.asp?z=<%=z %>";
document.pms.submit();
}
function link_direct_cost(a, b, c) {
var p_sn = "1407030_C01";
var p_sub_type = "C";
var p_year = "2014";
url = "/ess/direct_cost_print_2014.asp?p_sn=" + a + "@" + b;
url = url + "&p_method_cd=" + c;
url = url + "&tmp_year=" + p_year;
url = url + "&tmp_month=" + 0;
url = url + "&p_depart=" + 0;
url = url + "&sc_name=" + "";
url = url + "&sc_method=" + 100;
url = url + "&view_chk=2";
url = url + "&cost_type=" + "all";
window.open(url, "", "width=1000, height=900");
}
</script>
</div>
<!-- /.content-wrapper -->
<!-- #include virtual = "include/footer.asp" -->

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,72 @@
<!-- #include virtual = "lib/config.asp" -->
<OBJECT RUNAT=Server PROGID=ADODB.Recordset id=rsp></OBJECT>
<%'
p_child_sn = request("p_child_sn")
depart_type = request("depart_type")
' Session.CodePage = 65001 '<27>ѱ<EFBFBD>
Response.CharSet = "EUC-KR" '<27>ѱ<EFBFBD>
Response.AddHeader "Pragma","no-cache"
Response.AddHeader "cache-control", "no-staff"
Response.Expires = -1
if depart_type = "2" then ' <20>ǻ<EFBFBD><C7BB><EFBFBD> <20>׳<EFBFBD> <20>н<EFBFBD>
response.Write "1"
response.end
end if
query = "" ' export_range <- <20>뿪<EFBFBD><EBBFAA><EFBFBD><EFBFBD>, a_cnt <- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ǵ<EFBFBD> <20><><EFBFBD>ȼ<EFBFBD>, b_cnt <- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, c_cnt <- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, d_cnt <- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(DP)
query = query & " SELECT isnull(isnull(isnull(a.p_export_range, b.p_export_range), c.p_export_range), d.p_export_range) as export_range , isnull(a.a_CNT, 0) as a_cnt, isnull(b.b_CNT, 0) as b_cnt, isnull(c.c_CNT, 0) as c_cnt, isnull(d.d_CNT, 0) as d_cnt FROM "
query = query & " ( "
query = query & " SELECT p_export_range, count(*) as a_CNT FROM "
query = query & " (SELECT p_export_range FROM V_PROJECT_METHOD WHERE p_child_sn = '" & p_child_sn & "') A, "
query = query & " (SELECT f_kind FROM T_SYSTEM_ATTACH WHERE f_p_sn = '" & LEFT(p_child_sn, 7) & "' AND f_use_yn = 'Y' AND f_kind IN ('002', '003') GROUP BY f_kind) B "
query = query & " GROUP BY p_export_range "
query = query & " ) A full outer join "
query = query & " ( "
query = query & " SELECT p_export_range, count(*) as b_CNT FROM "
query = query & " (SELECT p_export_range FROM V_PROJECT_METHOD WHERE p_child_sn = '" & p_child_sn & "') A, "
query = query & " (SELECT f_kind FROM T_SYSTEM_ATTACH WHERE f_p_sn = '" & LEFT(p_child_sn, 7) & "' AND f_use_yn = 'Y' AND f_kind IN ('004') GROUP BY f_kind) B "
query = query & " GROUP BY p_export_range "
query = query & " ) B on 1=1 full outer join "
query = query & " ( "
query = query & " SELECT p_export_range, count(*) as c_CNT FROM "
query = query & " (SELECT p_export_range FROM V_PROJECT_METHOD WHERE p_child_sn = '" & p_child_sn & "') A, "
query = query & " (SELECT f_kind FROM T_SYSTEM_ATTACH WHERE f_p_sn = '" & LEFT(p_child_sn, 7) & "' AND f_use_yn = 'Y' AND f_kind IN ('005', '006') GROUP BY f_kind) B "
query = query & " GROUP BY p_export_range "
query = query & " ) C on 1=1 full outer join "
query = query & " ( "
query = query & " SELECT p_export_range, count(*) as d_CNT FROM "
query = query & " (SELECT p_export_range FROM V_PROJECT_METHOD WHERE p_child_sn = '" & p_child_sn & "') A, "
query = query & " (SELECT f_kind FROM T_SYSTEM_ATTACH WHERE f_p_sn = '" & LEFT(p_child_sn, 7) & "' AND f_use_yn = 'Y' AND f_kind IN ('009') GROUP BY f_kind) B "
query = query & " GROUP BY p_export_range "
query = query & " ) D on 1=1 "
rsp.Open query, adoConn, 1
'response.write query & "<br>"
ret_val = "0"
if rsp.recordCount > 0 then
if depart_type = "1" then
if rsp("export_range") = "001" then '<27>뿪<EFBFBD><EBBFAA><EFBFBD><EFBFBD> - <20><><EFBFBD>̺<EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD>
if cint(rsp("a_cnt")) >= 1 and cint(rsp("c_cnt")) >= 1 then ' <20><><EFBFBD>ȼ<EFBFBD> <20>Ǵ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ְ<EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,
ret_val = "1"
end if
else '<27>뿪<EFBFBD><EBBFAA><EFBFBD><EFBFBD> - <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, Top-line/Brief <20><><EFBFBD><EFBFBD>
if cint(rsp("a_cnt")) >= 1 and cint(rsp("b_cnt")) >= 1 and cint(rsp("c_cnt")) >= 1 then ' <20><><EFBFBD>ȼ<EFBFBD> <20>Ǵ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ְ<EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><>,
ret_val = "1"
end if
end if
elseif depart_type = "3" then
if cint(rsp("d_cnt")) >= 1 then ' <20><><EFBFBD><EFBFBD>(DP)<29><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
ret_val = "1"
end if
end if
end if
response.Write ret_val
rsp.close
%>

View File

@@ -0,0 +1,27 @@
<!-- #include virtual = "lib/config.asp" -->
<%
search_depart = request("search_depart")
Response.CharSet = "EUC-KR" '<27>ѱ<EFBFBD>
Response.AddHeader "Pragma","no-cache"
Response.AddHeader "cache-control", "no-staff"
Response.Expires = -1
response.write "<option value=" & "><3E><> ü</option>" & "<br>"
query = " SELECT p_no, p_name "
query = query & " FROM v_person "
query = query & " WHERE p_resign = '0' "
query = query & " AND p_depart = '" & search_depart & "' "
if( search_depart = "18" )then
query = query & " AND p_job_now = '08' "
end if
query = query & " ORDER BY p_name "
Rs.Open query, adoConn, 1
for i=1 to Rs.recordCount
response.write "<option value='"& Rs("p_no")&"'>"&Rs("p_name")&"</option>" & "<br>"
Rs.movenext
next
Rs.close
%>

View File

@@ -0,0 +1,130 @@
<!-- #include virtual = "lib/config.asp" -->
<OBJECT RUNAT=Server PROGID=ADODB.Recordset id=rsp></OBJECT>
<%
Dim paramType
Dim p_child_sn
paramType = CInt(request("type"))
p_child_sn = request("p_child_sn")
query = " update "
If CLng(Left(p_child_sn, 4)) < 1407 Then
query = query & "project set "
Else
query = query & "t_project_method set "
End If
select_query = "select p_sn, p_child_sn, p_sub_type, p_subject, p_rsch_dept, p_field_dept, p_is_dept from T_PROJECT_METHOD where p_child_sn = '"& p_child_sn & "' "
rsp.Open select_query, adoConn, 1
If paramType = 1 Then
query = query & "p_research_complete = 1 "
If rsp("p_field_dept") = "900" Then
query = query & ", p_field_complete = 1 "
end if
If rsp("p_is_dept") = "900" then
query = query & ", p_dp_complete = 1 "
End if
ElseIf paramType = 2 Then
If rsp("p_rsch_dept") = "900" Then
query = query & "p_research_complete = 1, "
end if
If rsp("p_is_dept") = "900" then
query = query & "p_dp_complete = 1, "
End if
query = query & "p_field_complete = 1, p_field_complete_date = convert(varchar(16), getdate(), 120) "
ElseIf paramType = 3 Then
query = query & "p_dp_complete = 1 "
If rsp("p_rsch_dept") = "900" Then
query = query & ", p_research_complete = 1 "
end if
If rsp("p_field_dept") = "900" Then
query = query & ", p_field_complete = 1 "
end if
ElseIf paramType = 4 Then
query = query & "p_support_complete = 1 "
ElseIf paramType = 5 Then ''//--- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
query = query & "p_it_complete = 1 "
End If
rsp.Close
If CLng(Left(p_child_sn, 4)) < 1407 Then
query = query & " WHERE p_sn = '"& p_child_sn & "' "
Else
if mid(p_child_sn,9,1) = "M" then
query = query & " WHERE p_child_sn like '"& mid(p_child_sn,1,9) & "%' "
else
query = query & " WHERE p_child_sn = '"& p_child_sn & "' "
end if
End If
adoConn.execute query
'response.write query & "<br>"
if mid(p_child_sn,9,1) = "M" then
p_child_sn = "Multi"
end if
query = " delete Job_ProjectList "
query = query & " where p_sn = '"&left(p_child_sn,7)&"' "
query = query & " and p_child_sn = '"& p_child_sn &"' "
query = query & " and p_user IN ( "
query = query & " select p_user "
query = query & " from Job_ProjectList jp left outer join person p on jp.p_user = p.p_no "
query = query & " where p_sn = '"& left(p_child_sn,7) &"' "
query = query & " and p_child_sn = '"& p_child_sn &"' "
query = query & " and p_depart = '"&Session("Depart_Code")&"' "
query = query & " ) "
adoConn.execute query
query = " update "
If CLng(Left(p_child_sn, 4)) < 1407 Then
query = query & "project set "
Else
query = query & "t_project_method set "
End If
query = query & " p_complete_date = convert(varchar(16), getdate(), 120) "
If CLng(Left(p_child_sn, 4)) < 1407 Then
query = query & " WHERE p_sn = '"& p_child_sn & "' "
Else
if mid(p_child_sn,9,1) = "M" then
query = query & " WHERE p_child_sn like '"& mid(p_child_sn,1,9) & "%' "
else
query = query & " WHERE p_child_sn = '"& p_child_sn & "' "
end if
End If
query = query & " and p_research_complete = 1 and p_field_complete = 1 and p_dp_complete = 1 "
adoConn.execute query
' Session.CodePage = 65001 '<27>ѱ<EFBFBD>
Response.CharSet = "EUC-KR" '<27>ѱ<EFBFBD>
Response.AddHeader "Pragma","no-cache"
Response.AddHeader "cache-control", "no-staff"
Response.Expires = -1
response.write("success")
%>

View File

@@ -0,0 +1,962 @@
<!-- #include virtual = "lib/config.asp" -->
<!-- #include file = "../include/top_menu.asp" -->
<%
SET rsp = server.CreateObject("ADODB.RECORDSET")
dim prj_list(20 , 25)
x = request("x")
p_depart = request("p_depart")
p_team = request("p_team")
flag = request("flag") 'my_menu.asp<73><70><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> (tmp_stat_flag<61><67> <20><><EFBFBD><EFBFBD>)
tmp_sort = request("tmp_sort")
tmp_month = request("tmp_month")
tmp_year = request("tmp_year")
p_team_people = request("p_team_people")
chk = request("chk") '<27>μ<EFBFBD><CEBC><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ǹ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><>ü<EFBFBD><C3BC> <20>ʱ<EFBFBD>ȭ <20><>
if request("gotopage") <> "" then
tmp_currentpage = request("gotopage")
else
tmp_currentpage = 1
end if
'page config
tmp_colspan = 9
'---------------------------------------------------------------------------------------
'### 20100203 <20><><EFBFBD><EFBFBD> : person <20><><EFBFBD>̺<EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Ȱ<><C8B0><EFBFBD>Ͽ<EFBFBD> <20>α<EFBFBD><CEB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>ް<EFBFBD> <20><><EFBFBD>ѵ<EFBFBD><D1B5><EFBFBD> <20><><EFBFBD><EFBFBD>
'### <20><><EFBFBD><EFBFBD><EFBFBD>̳<EFBFBD> <20><EFBFBD><EEBFB5><EFBFBD>ζ<EFBFBD><CEB6><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>ο<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD> view_depart = "", view_team = ""
'### <20><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD><CEBC><EFBFBD><EFBFBD><EFBFBD> <20>ҼӺ<D2BC><D3BA><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD>
'### <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̶<EFBFBD><CCB6><EFBFBD> <20>ش<EFBFBD> <20>μ<EFBFBD><CEBC><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD>
if Session("teamplace") >= 6 then '<27><><EFBFBD><EFBFBD> <20>̻<EFBFBD><CCBB≯<EFBFBD> <20><><EFBFBD><EFBFBD> <20><>
view_depart = ""
view_team = ""
view_team_people= ""
elseif Session("Depart_Code") < 10 or (Session("Depart_Code") >= 20 and Session("Depart_Code") =< 49) then '<27><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD><CEBC>ΰ<EFBFBD>?
if Session("Depart_Code") = 0 then
view_depart = Session("job_view")
else
view_depart = Session("Depart_Code")
end if
if Session("teamcode") > 0 then '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ°<CFB4>?
view_team = ""
if p_team = "" then
p_team = Session("teamcode")
end if
else
view_team = ""
end if
else '<27><EFBFBD><EEBFB5><EFBFBD><EFBFBD><EFBFBD>ΰ<EFBFBD>?
view_depart = ""
view_team = ""
view_team_people= ""
end if
tmp_txt = split(view_depart, ",")
view_depart = ""
for i = 0 to ubound(tmp_txt)
if cint(tmp_txt(i)) < 10 or (cint(tmp_txt(i)) >=20 and cint(tmp_txt(i)) <= 49) then
view_depart = view_depart & tmp_txt(i) & ","
end if
next
'---------------------------------------------------------------------------------------
if p_depart = "" then
if instr(1, view_depart, ",") then
p_depart = cstr(trim(tmp_txt(0)))
else
p_depart = view_depart
end if
end if
if p_depart = "" then
p_depart= 0
end if
if chk = "1" then '<27>μ<EFBFBD><CEBC><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20>ٲٸ<D9B2> <20><><EFBFBD><EFBFBD> <20>ʱ<EFBFBD>ȭ <20><><EFBFBD><EFBFBD>.
p_team = ""
p_team_people = ""
elseif chk = "2" then '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20>ٲٸ<D9B2> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ʱ<EFBFBD>ȭ <20><><EFBFBD><EFBFBD>.
p_team_people = ""
end if
if tmp_year = "" then
tmp_year = cstr(year(date()))
end if
if tmp_month = "" then
tmp_month = cstr(month(date()))
end if
%>
<script language=javascript>
function openit(a,z,x) {
if (a == 1)
{
var url = 'project_list2_chk.asp?p_sn=' + z + '&teamname=' + x;
var tmp_width = 850;
var tmp_height = 800;
}
window.open(url,'','left=0,top=0,width='+tmp_width+',height='+tmp_height+',scrollbars=yes,resizable=yes')
}
function subit(b) {
document.pms.action = "project_list2_withdate.asp?x=7&chk="+b;
document.pms.submit();
}
</script>
<form name="pms" method="post">
<td width="100%" valign="top">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<!-- Ȯ<><C8AE> -->
</tr>
<tr>
<td colspan="2" style="padding:20;">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td>
<font class="brown"><3E>˻<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>.</font>
</font>
</td>
</tr>
<tr>
<td style="padding:5 0 0 0">
<table width="100%" height="37" cellpadding="0" cellspacing="1" border="0" bgcolor="#c0c0c0">
<tr>
<td bgcolor="#DFDFDF" style="padding:0 0 0 10">
<09>μ<EFBFBD>&nbsp;
<select name="p_depart" onChange="subit('1')">
<%
if view_depart = "" then
%>
<option value="0" <% if p_depart = "0" then %> selected <% end if %>><3E><>ü</option>
<%
end if
query = "SELECT * " & _
"FROM depart " & _
"WHERE d_yes_no = 'Y' " & _
" AND (" & _
" (d_code > 0 AND d_code < 11) " & _
" or " & _
" (d_code >= 20 AND d_code <= 49) " & _
")"
rsc.Open query, adoConn, 1
if rsc.RecordCount > 0 then
for i = 1 to rsc.RecordCount
'if view_depart = rsc("d_code") OR instr(1, view_depart, rsc("d_code")) OR view_depart = "" then
if cint(Session("Depart_Code")) = cint(rsc("d_mcode")) OR view_depart = "" then
%>
<option value="<%=rsc("d_code")%>" <% if cstr(p_depart) = cstr(rsc("d_code")) then %> selected <% end if %>><%=rsc("d_name")%></option>
<%
end if
rsc.MoveNext
next
end if
rsc.Close
if cint(tmp_year) < 2013 then
if cint(Session("Depart_Code")) >= 31 and cint(Session("Depart_Code")) <= 34 then
%>
<option value="1" <% if cint(p_depart) = 1 then %> selected <% end if %>><3E><>ȸ<EFBFBD><C8B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>纻<EFBFBD><E7BABB></option>
<%
elseif cint(Session("Depart_Code")) >= 35 and cint(Session("Depart_Code")) <= 38 then
%>
<option value="2"<% if cint(p_depart) = 2 then %> selected <% end if %> ><3E><><EFBFBD><EFBFBD><EFBFBD>ú<EFBFBD><C3BA><EFBFBD></option>
<%
else
%>
<option value="1" <% if cint(p_depart) = 1 then %> selected <% end if %>><3E><>ȸ<EFBFBD><C8B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>纻<EFBFBD><E7BABB></option>
<option value="2"<% if cint(p_depart) = 2 then %> selected <% end if %> ><3E><><EFBFBD><EFBFBD><EFBFBD>ú<EFBFBD><C3BA><EFBFBD></option>
<%
end if
end if
%>
</select>
&nbsp;&nbsp;
<%
if p_depart <> "" AND p_depart <> "0" then
%>
<09><>&nbsp;
<select name="p_team" onChange="subit('2')">
<%
if view_team = "" then
%>
<option value="0" <% if p_team = "0" then %> selected <% end if %>><3E><>ü</option>
<%
end if
query = "SELECT Distinct p_team " & _
"FROM person " & _
"WHERE p_resign = '0' " & _
" AND p_team <> '0' " & _
" AND p_depart = '" & p_depart & "' "
if view_team <> "" AND view_team <> "0" then
query = query & " AND p_team = '" & view_team & "' "
end if
Response.Write query & "<BR>"
rsc.Open query, adoConn, 1
if rsc.RecordCount > 0 then
for i = 1 to rsc.RecordCount
%>
<option value="<%=rsc("p_team")%>" <% if cstr(p_team) = cstr(rsc("p_team")) then %> selected <% end if %>><%=rsc("p_team")%> <20><></option>
<%
rsc.MoveNext
next
end if
rsc.Close
%>
</select>
&nbsp;&nbsp;
<%
end if
%>
<%
if p_depart <> "" AND p_depart <> "0" then
%>
<09><><EFBFBD><EFBFBD>&nbsp;
<select name="p_team_people" onChange="subit()">
<%
if view_team_people = "" then
%>
<option value="0" <% if p_team_people = "0" then %> selected <% end if %>><3E><>ü</option>
<%
end if
query = "SELECT * "
query = query & "FROM person "
query = query & "WHERE p_resign = '0' "
query = query & " AND p_depart = '" & p_depart & "' "
if p_team <> "" AND p_team <> "0" then
query = query & " AND p_team = '" & p_team & "' "
end if
query = query & " AND p_job_view_depart < 10 "
query = query & "ORDER BY p_admin DESC, p_pos, p_team_place DESC "
rsc.Open query, adoConn, 1
if rsc.RecordCount > 0 then
for i = 1 to rsc.RecordCount
%>
<option value="<%=rsc("p_no")%>" <% if cstr(p_team_people) = cstr(rsc("p_no")) then %> selected <% end if %>><%=rsc("p_name")%></option>
<%
rsc.MoveNext
next
end if
rsc.Close
%>
</select>
&nbsp;&nbsp;
<%
end if
%>
<%
if tmp_admin_chk = "1" then
%>
<09><><EFBFBD><EFBFBD>&nbsp;
<select name="tmp_sort" onChange="subit()">
<option value="" <% if tmp_sort = "" then %> selected <% end if %>><3E≯<EFBFBD><CCB8><EFBFBD></option>
<option value="1" <% if tmp_sort = "1" then %> selected <% end if %>><3E><><EFBFBD>ü<EFBFBD></option>
</select>
&nbsp;&nbsp;
<%
end if
%>
<09>⵵&nbsp;
<select name="tmp_year" onChange="subit();">
<%
for i = year(date()) to 2009 step -1
%>
<option value="<%=i%>" <% if tmp_year = cstr(i) then %> selected <% end if %>><%=i%><3E><></option>
<%
next
%>
</select>
&nbsp;&nbsp;
<09><>&nbsp;
<select name="tmp_month" onChange="subit()">
<option value="0" <% if tmp_month = "0" then %> selected <% end if %>><3E><>ü</option>
<%
if cstr(tmp_year) = cstr(year(date())) OR tmp_year = "" then
tmp_i = month(date())
else
tmp_i = 12
end if
for i = 1 to tmp_i
%>
<option value="<%=i%>" <% if tmp_month = cstr(i) then %> selected <% end if %>><%=i%><3E><></option>
<%
next
%>
</select>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td style="padding:10 0 0 0">
<div id="popdiv_obj1" style="position:absolute; background-color:FFFFDD;color:black;border-color:black;border-width:20; display:none; left:25px; top:100px; z-index:10" onmouseover="overdiv=10;" onmouseout="overdiv=0;setTimeout('hideLayer()',1000)">asdf</div>
<table width="100%" cellpadding="3" cellspacing="0" border="0" style="border-collapse:collapse;">
<tr>
<td align="center" >No.</td>
<td align="center" ><3E><><EFBFBD><EFBFBD></td>
<td align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD>ڵ<EFBFBD></td>
<td align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE></td>
<td align="center" >Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ<EFBFBD><C6AE></td>
<td align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td align="center" >DP</td>
<td align="center" >SV</td>
<td align="center" ><3E><><EFBFBD><EFBFBD>(<28>Է<EFBFBD>)</td>
<td align="center" ><3E><><EFBFBD><EFBFBD>(<28><>¥)</td>
<td align="center" ><3E><><EFBFBD><EFBFBD></td>
<td align="center" ><3E>ǻ<EFBFBD></td>
<td align="center" ><3E><><EFBFBD><EFBFBD></td>
</tr>
<!-- loop start -->
<%
query = "SELECT * "
query = query & "FROM project as a "
query = query & " INNER JOIN Client as b "
query = query & " ON a.p_cli_company = b.c_code "
'<27><>ȸ <20>ɼ<EFBFBD>
if p_depart <> "0" AND p_depart <> "" then
query = query & " AND p_depart_dep = '" & p_depart & "' "
else
query = query & " AND (p_depart <= '10' or (p_depart >= 20 and p_depart <= 95)) "
end if
if p_team <> "0" AND p_team <> "" then
query = query & " AND p_depart_team = '" & p_team & "' "
else
end if
if p_team_people <> "0" AND p_team_people <> "" then
query = query & " AND (p_rsch_1 = '" & p_team_people & "' "
query = query &" OR p_rsch_2 = '" & p_team_people & "' "
query = query &" OR p_rsch_3 = '" & p_team_people & "' "
query = query &" OR p_rsch_4 = '" & p_team_people & "') "
end if
'------------------------------------------------------
'<27><> <20>ɼ<EFBFBD>
if tmp_year <> "0" and tmp_year <> "" then
query = query & " AND SUBSTRING(p_reg_date,1,4) = '" & tmp_year & "' "
else
query = query & " AND SUBSTRING(p_reg_date,1,4) = '" & year(date()) & "' "
end if
'------------------------------------------------------
'<27><> <20>ɼ<EFBFBD>
if tmp_month <> "0" and tmp_month <> "" then
query = query & " AND SUBSTRING(p_reg_date,6,2) = '" & right("0" & tmp_month, 2) & "' "
end if
'------------------------------------------------------
'<27><><EFBFBD><EFBFBD> <20>ɼ<EFBFBD>
if tmp_sort = "1" then
query = query & "ORDER BY a.p_contact_date DESC "
else
query = query & "ORDER BY a.p_subject "
end if
'------------------------------------------------------
rsp.Open query, adoConn, 1
if rsp.RecordCount > 0 then
rsp.PageSize = 20
PageCount = rsp.PageCount
rsp.absolutepage = tmp_Currentpage
tmp_total_record = rsp.RecordCount
tmp_for = Cint(tmp_total_record) - ((Cint(tmp_Currentpage) - 1) * rsp.PageSize)
if rsp.PageSize <= tmp_for then
if rsp.RecordCount <= rsp.PageSize then
tmp_for = rsp.recordcount
else
tmp_for = rsp.PageSize
end if
else
tmp_for = tmp_for
end if
for i = 1 to tmp_for
if Cint(tmp_Currentpage)=1 then
Num=Cint(tmp_total_record)- i+1
else
Num=Cint(tmp_total_record) - ((Cint(tmp_Currentpage) - 1) * rsc.PageSize) - i +1
end if
prj_list(i, 0) = rsp("p_sn")
prj_list(i, 25) = rsp("p_intention")
prj_list(i, 1) = rsp("p_subject")
for j=1 to 4
tmpstr = "p_rsch_" & j
prj_list(j, j+1) = rsp(tmpstr)
' Response.Write rsp(tmpstr) & "<Br>"
next
prj_list(i, 6) = rsp("p_dper")
prj_list(i, 7) = rsp("p_dper2")
prj_list(i, 8) = rsp("p_dper3")
prj_list(i, 9) = rsp("p_dper4")
prj_list(i, 10) = rsp("p_sv")
prj_list(i, 11) = rsp("p_coder")
prj_list(i, 12) = rsp("p_verify")
prj_list(i, 13) = rsp("p_it")
prj_list(i, 14) = formatnumber(rsp("p_budget"),0) '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
prj_list(0, 14) = cdbl(prj_list(0, 14)) + cdbl(rsp("p_budget"))
prj_list(i, 15) = formatnumber(rsp("p_esti_cost"), 0) '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
prj_list(0, 15) = cdbl(prj_list(0, 15)) + cdbl(rsp("p_esti_cost")) '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
if clng(prj_list(i, 14)) > 0 then
prj_list(i, 16) = formatnumber(prj_list(i, 15) / prj_list(i, 14) * 100,2) '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> : <20><><EFBFBD><EFBFBD><EFBFBD>ױ<EFBFBD><D7B1><EFBFBD>
else
prj_list(i, 16) = "0"
end if
prj_list(i, 17) = formatnumber(rsp("p_real_cost"), 0) '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
prj_list(0, 17) = cdbl(prj_list(0, 17)) + cdbl(rsp("p_real_cost")) '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
if clng(prj_list(i, 14)) > 0 then
prj_list(i, 18) = formatnumber(prj_list(i, 17) / prj_list(i, 14) * 100,2) '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> : <20><><EFBFBD><EFBFBD><EFBFBD>ױ<EFBFBD><D7B1><EFBFBD>
else
prj_list(i, 18) = "0"
end if
if Cint(tmp_Currentpage)=1 then
Num=Cint(tmp_total_record)- i+1
else
Num=Cint(tmp_total_record) - ((Cint(tmp_Currentpage) - 1) * rsp.PageSize) - i +1
end if
query = "SELECT * "
query = query & "FROM Depart "
query = query & "WHERE d_code='" & rsp("p_depart_dep") & "' "
rsc.Open query, adoConn, 1
if rsc.RecordCount > 0 then
tmp_depart = rsc("d_mname_shot")
end if
rsc.Close
query = "SELECT * "
query = query & "FROM [Client] "
query = query & "WHERE c_code='" & rsp("p_cli_company") & "' "
rsc.Open query, adoConn, 1
if rsc.RecordCount > 0 then
tmp_cli_company = rsc("c_name")
end if
rsc.Close
query = "SELECT * "
query = query & "FROM p_method "
query = query & "WHERE code1 = '" & rsp("p_method") & "' "
rsc.Open query, adoConn, 1
if rsc.RecordCount > 0 then
tmp_method = rsc("code1")
tmp_method_name = rsc("name1")
end if
rsc.Close
tmp_rsch_name = ""
tmp_dp_name = ""
tmp_sv_name = ""
for j = 1 to 4
query = "SELECT * "
query = query & "FROM person "
query = query & "WHERE p_no = '" & rsp("p_rsch_" & j) & "' "
rsc.Open query, adoConn, 1
if rsc.RecordCount > 0 then
if j > 1 then
tmp_rsch_name = tmp_rsch_name & ","
end if
tmp_rsch_name = tmp_rsch_name & rsc("p_name")
end if
rsc.Close
next
for j = 1 to 2
if j = 1 then
tmp_j = ""
else
tmp_j = j
end if
query = "SELECT * "
query = query & "FROM person "
query = query & "WHERE p_no = '" & rsp("p_dper" & tmp_j) & "' "
rsc.Open query, adoConn, 1
if rsc.RecordCount > 0 then
if j > 1 then
tmp_dp_name = tmp_dp_name & ","
end if
tmp_dp_name = tmp_dp_name & rsc("p_name")
end if
rsc.Close
next
query = "SELECT * "
query = query & "FROM person "
query = query & "WHERE p_no = '" & rsp("p_sv") & "' "
rsc.Open query, adoConn, 1
if rsc.RecordCount > 0 then
tmp_sv_name = tmp_sv_name & rsc("p_name")
end if
rsc.Close
'-----------------------------------------------------------------
research_file = "0"
fieldwork_file = "0"
computer_file = "0"
research_file_txt = "N"
fieldwork_file_txt = "N"
computer_file_txt = "N"
query = "SELECT * "
query = query & "FROM file_log "
query = query & "WHERE p_sn = '" & rsp("p_sn") & "' "
rsc.Open query, adoConn, 1
if rsc.RecordCount > 0 then
if rsc("research") = "1" then
research_file = "1"
research_file_txt = "<font color='blue'><b>Y</b></font>"
end if
if rsc("fieldwork") = "1" then
fieldwork_file = "1"
fieldwork_file_txt = "<font color='blue'><b>Y</b></font>"
end if
if rsc("computer") = "1" then
computer_file = "1"
computer_file_txt = "<font color='blue'><b>Y</b></font>"
end if
end if
rsc.Close
'------------------------------------------------------------------
'<27><><EFBFBD>¿<EFBFBD> <20><><EFBFBD><EFBFBD> ó<><C3B3> (tmp_stat), <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ġ (tmp_stat_flag)
tmp_stat = ""
tmp_stat_flag = "0"
'1. <20><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD> <20>̵<EFBFBD><CCB5><EFBFBD>
'2_0. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>̵<EFBFBD><CCB5><EFBFBD>
'2. <20>ǻ<EFBFBD><C7BB>μ<EFBFBD> <20>̵<EFBFBD><CCB5><EFBFBD>
'3. <20><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD> <20>̵<EFBFBD><CCB5><EFBFBD>
'4. <20><><EFBFBD>ຸ<EFBFBD><E0BAB8><EFBFBD><EFBFBD> <20>̵<EFBFBD><CCB5><EFBFBD>
'5. <20><><EFBFBD>⵵ <20><>å<EFBFBD><C3A5>
'6. <20><><EFBFBD><EFBFBD><EFBFBD>Ⱓ <20><><EFBFBD>Է<EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
'7. <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
'8. <20><><EFBFBD><EFBFBD><EFBFBD>Ϸ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
'1. <20><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD> <20>̵<EFBFBD><CCB5><EFBFBD>
if tmp_stat = "" then
if isnull(rsp("p_rsch_1")) or rsp("p_rsch_1") = "" then
tmp_stat = "<22><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD> <20>̵<EFBFBD><CCB5><EFBFBD>"
tmp_stat_flag = "1"
else
tmp_stat = ""
tmp_stat_flag = ""
end if
end if
'2_0. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>̵<EFBFBD><CCB5><EFBFBD>
if tmp_stat = "" then
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 = '" & rsp("p_sn") & "' "
query = "select * from direct_cost where p_sn = '" & rsp("p_sn") & "' " & _
" and del_yes_no = 'no' "
rsc.Open query, adoConn, 1
if rsc.RecordCount > 0 then
tmp_stat = ""
tmp_stat_flag = ""
else
tmp_stat = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>̵<EFBFBD><CCB5><EFBFBD>"
tmp_stat_flag = "2_0"
end if
rsc.Close
end if
'2. <20>ǻ<EFBFBD><C7BB>μ<EFBFBD> <20>̵<EFBFBD><CCB5><EFBFBD>
if tmp_stat = "" then
if isnull(rsp("p_sv")) or rsp("p_sv") = "" then
tmp_stat = "<22>ǻ<EFBFBD><C7BB>μ<EFBFBD> <20>̵<EFBFBD><CCB5><EFBFBD>"
tmp_stat_flag = "2"
else
tmp_stat = ""
tmp_stat_flag = ""
end if
end if
'3. <20><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD> <20>̵<EFBFBD><CCB5><EFBFBD>
if tmp_stat = "" then
if isnull(rsp("p_dper")) or rsp("p_dper") = "" then
tmp_stat = "<22><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD> <20>̵<EFBFBD><CCB5><EFBFBD>"
tmp_stat_flag = "3"
else
tmp_stat = ""
tmp_stat_flag = ""
end if
end if
'4. <20><><EFBFBD>ຸ<EFBFBD><E0BAB8><EFBFBD><EFBFBD> <20>̵<EFBFBD><CCB5><EFBFBD>
if tmp_stat = "" then
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>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȹ<EFBFBD><C8B9>' "
query = query & " AND b.p_sn = '" & rsp("p_sn") & "' "
rsc.Open query, adoConn, 1
if rsc.RecordCount > 0 then
tmp_stat = ""
tmp_stat_flag = ""
else
tmp_stat = "<22><><EFBFBD>ຸ<EFBFBD><E0BAB8><EFBFBD><EFBFBD> <20>̵<EFBFBD><CCB5><EFBFBD>"
tmp_stat_flag = "4"
end if
rsc.Close
end if
'5. <20><><EFBFBD>⵵ <20><>å<EFBFBD><C3A5>
if tmp_stat = "" then
if rsp("p_rsch_1p") = "" AND isnull(rsp("p_rsch_1p")) then
tmp_stat = "<22><><EFBFBD>⵵ <20><>å<EFBFBD><C3A5>"
tmp_stat_flag = "5"
else
tmp_stat = ""
tmp_stat_flag = ""
end if
end if
'6. <20><><EFBFBD><EFBFBD><EFBFBD>Ⱓ <20><><EFBFBD>Է<EFBFBD>
if tmp_stat = "" then
if rsp("p_convdate_st") <> "" AND NOT isnull(rsp("p_convdate_st")) then
if rsp("p_convdate_st2") = "" AND isnull(rsp("p_convdate_st2")) then
tmp_stat = "<22><><EFBFBD><EFBFBD><EFBFBD>Ⱓ <20><><EFBFBD>Է<EFBFBD>(<28><><EFBFBD><EFBFBD>)"
tmp_stat_flag = "6"
else
tmp_stat = ""
tmp_stat_flag = ""
end if
else
tmp_stat = ""
tmp_stat_flag = ""
end if
end if
'6. <20><><EFBFBD><EFBFBD><EFBFBD>Ⱓ <20><><EFBFBD>Է<EFBFBD>
if tmp_stat = "" then
if rsp("p_field_st") <> "" AND NOT isnull(rsp("p_field_st")) then
if rsp("p_field_st2") = "" AND isnull(rsp("p_field_st2")) then
tmp_stat = "<22><><EFBFBD><EFBFBD><EFBFBD>Ⱓ <20><><EFBFBD>Է<EFBFBD>(<28>ǻ<EFBFBD>)"
tmp_stat_flag = "6"
else
tmp_stat = ""
tmp_stat_flag = ""
end if
else
tmp_stat = ""
tmp_stat_flag = ""
end if
end if
'6. <20><><EFBFBD><EFBFBD><EFBFBD>Ⱓ <20><><EFBFBD>Է<EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
if tmp_stat = "" then
if rsp("p_dp_st") <> "" AND NOT isnull(rsp("p_dp_st")) then
if rsp("p_dp_st2") = "" AND isnull(rsp("p_dp_st2")) then
tmp_stat = "<22><><EFBFBD><EFBFBD><EFBFBD>Ⱓ <20><><EFBFBD>Է<EFBFBD>(<28><><EFBFBD><EFBFBD>)"
tmp_stat_flag = "6"
else
tmp_stat = ""
tmp_stat_flag = ""
end if
else
tmp_stat = ""
tmp_stat_flag = ""
end if
tmp_stat = ""
end if
'7. <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
if tmp_stat = "" then
tmp_chk = ""
if research_file = "0" then
tmp_chk = "<22><><EFBFBD><EFBFBD>"
end if
if fieldwork_file = "0" then
if tmp_chk <> "" then
tmp_chk = tmp_chk & ","
end if
tmp_chk = tmp_chk & "<22>ǻ<EFBFBD>"
end if
if computer_file = "0" then
if tmp_chk <> "" then
tmp_chk = tmp_chk & ","
end if
tmp_chk = tmp_chk & "<22><><EFBFBD><EFBFBD>"
end if
if tmp_chk <> "" then
tmp_stat = "<font color='red'><b><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>(" & tmp_chk & ")</b></font>"
tmp_stat_flag = "7"
end if
end if
'8. <20><><EFBFBD><EFBFBD><EFBFBD>Ϸ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
if tmp_stat = "" then
tmp_stat = "<22><><EFBFBD><EFBFBD><EFBFBD>Ϸ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
tmp_stat_flag = "8"
end if
tmp_stat_process = tmp_stat
tmp_stat_flag_process = tmp_stat_flag
'------------------------------------------------------------------
tmp_stat = ""
tmp_stat_flag = "0"
'1. <20><><EFBFBD><EFBFBD><EFBFBD>Ⱓ <20><><EFBFBD><EFBFBD>
'2. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ۼ<EFBFBD><DBBC><EFBFBD>
'3. D/P <20>۾<EFBFBD><DBBE><EFBFBD>
'4. <20><>ġ<EFBFBD><C4A1>
'5. <20>ǻ<EFBFBD><C7BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
'6. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> OT<4F><54>
'7. <20><><EFBFBD>ι<EFBFBD><CEB9><EFBFBD><EFBFBD><EFBFBD>
'8. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
'1. <20><><EFBFBD><EFBFBD><EFBFBD>Ⱓ <20><><EFBFBD><EFBFBD>
if tmp_stat = "" then
if rsp("p_convdate_st2") <> "" AND NOT isnull(rsp("p_convdate_st2")) then
if cdate(rsp("p_convdate_end2")) < date() then
tmp_stat = "<22><><EFBFBD><EFBFBD><EFBFBD>Ⱓ <20><><EFBFBD><EFBFBD>"
tmp_stat_flag = "1"
else
tmp_stat = ""
tmp_stat_flag = "0"
end if
else
tmp_stat = ""
tmp_stat_flag = "0"
end if
end if
'2. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ۼ<EFBFBD><DBBC><EFBFBD>
if tmp_stat = "" then
if rsp("p_report_st2") <> "" AND NOT isnull(rsp("p_report_st2")) then
if cdate(rsp("p_report_st2")) <= date() AND cdate(rsp("p_report_end2")) >= date() then
tmp_stat = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ۼ<EFBFBD><DBBC><EFBFBD>"
tmp_stat_flag = "2"
else
tmp_stat = ""
tmp_stat_flag = "0"
end if
else
tmp_stat = ""
tmp_stat_flag = "0"
end if
end if
'3. D/P <20>۾<EFBFBD><DBBE><EFBFBD>
if tmp_stat = "" then
if rsp("p_dp_st2") <> "" AND NOT isnull(rsp("p_dp_st2")) then
if cdate(rsp("p_dp_st2")) <= date() AND cdate(rsp("p_dp_end2")) >= date() then
tmp_stat = "D/P <20>۾<EFBFBD><DBBE><EFBFBD>"
tmp_stat_flag = "3"
else
tmp_stat = ""
tmp_stat_flag = "0"
end if
else
tmp_stat = ""
tmp_stat_flag = "0"
end if
end if
'4. <20><>ġ<EFBFBD><C4A1>
if tmp_stat = "" then
if rsp("p_punch_st2") <> "" AND NOT isnull(rsp("p_punch_st2")) then
if cdate(rsp("p_punch_st2")) <= date() AND cdate(rsp("p_punch_end2")) >= date() then
tmp_stat = "<22><>ġ<EFBFBD><C4A1>"
tmp_stat_flag = "4"
else
tmp_stat = ""
tmp_stat_flag = "0"
end if
else
tmp_stat = ""
tmp_stat_flag = "0"
end if
end if
'5. <20>ǻ<EFBFBD><C7BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
if tmp_stat = "" then
if rsp("p_field_st2") <> "" AND NOT isnull(rsp("p_field_st2")) then
if cdate(rsp("p_field_st2")) <= date() AND cdate(rsp("p_field_end2")) >= date() then
tmp_stat = "<22>ǻ<EFBFBD><C7BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
tmp_stat_flag = "5"
else
tmp_stat = ""
tmp_stat_flag = "0"
end if
else
tmp_stat = ""
tmp_stat_flag = "0"
end if
end if
'6. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> OT<4F><54>
if tmp_stat = "" then
if rsp("p_ot_date2") <> "" AND NOT isnull(rsp("p_ot_date2")) then
if cdate(rsp("p_ot_date2")) = date() then
tmp_stat = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> OT<4F><54>"
tmp_stat_flag = "6"
else
tmp_stat = ""
tmp_stat_flag = "0"
end if
else
tmp_stat = ""
tmp_stat_flag = "0"
end if
end if
'7. <20><><EFBFBD>ι<EFBFBD><CEB9><EFBFBD><EFBFBD><EFBFBD>
if tmp_stat = "" then
if rsp("p_premeet_date2") <> "" AND NOT isnull(rsp("p_premeet_date2")) then
if cdate(rsp("p_premeet_date2")) = date() then
tmp_stat = "<22><><EFBFBD>ι<EFBFBD><CEB9><EFBFBD><EFBFBD><EFBFBD>"
tmp_stat_flag = "7"
else
tmp_stat = ""
tmp_stat_flag = "0"
end if
else
tmp_stat = ""
tmp_stat_flag = "0"
end if
end if
'8. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
if tmp_stat = "" then
tmp_stat = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
tmp_stat_flag = "8"
end if
tmp_stat_date = tmp_stat
tmp_stat_flag_date = tmp_stat_flag
'------------------------------------------------------------------
tmp_view = "0"
if flag <> "" then '#### my_menu<6E><75><EFBFBD><EFBFBD> <20>񱳰<EFBFBD><F1B1B3B0><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20>񱳰<EFBFBD><F1B1B3B0><EFBFBD> <20><><EFBFBD>缭 <20><><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD>
if tmp_stat_flag_process = flag OR tmp_stat_flag_date = flag then '#### <20>񱳰<EFBFBD><F1B1B3B0><EFBFBD> <20><><EFBFBD>ٸ<EFBFBD> <20><>ü<EFBFBD><C3BC> <20><><EFBFBD><EFBFBD>
tmp_view = "1"
else
tmp_veiw = "0"
end if
else
tmp_view = "1"
end if
if tmp_view = "1" then
if i mod 2 = 0 then
tmp_bgcolor="#dbe9f2"
else
tmp_bgcolor=""
end if
%>
<tr bgcolor="<%=tmp_bgcolor%>" id='row<%=i%>' onmouseover="MultiRowSelection('row<%=i%>',0,'on');popLayer('<27><><EFBFBD>系<EFBFBD><E7B3BB> : <%=rsp("p_intention")%>');" onmouseout="MultiRowSelection('row<%=i%>',0,'off','<%=tmp_bgcolor%>');hideLayer();">
<td align="center" ><%=Num%></td>
<td align="center"><%=tmp_depart%></td>
<td align="center" ><%=rsp("p_sn")%></td>
<td align="center"><a href="javascript:openit('1','<%=rsp("p_sn")%>')" class="blue"><%=rsp("p_subject")%></a></td>
<td align="center"><%=tmp_cli_company%></td>
<td align="center" ><%=tmp_method_name%></td>
<td align="center"><%=tmp_rsch_name%></td>
<td align="center"><%=tmp_dp_name%></td>
<td align="center"><%=tmp_sv_name%></td>
<td align="center" ><%=tmp_stat_process%></td>
<td align="center" ><%=tmp_stat_date%></td>
<td align="center" ><%=research_file_txt%></td>
<td align="center" ><%=fieldwork_file_txt%></td>
<td align="center" ><%=computer_file_txt%></td>
</tr>
<%
end if
rsp.MoveNext
next
end if
rsp.Close
%>
<!-- loop end -->
<tr>
<td colspan="12" bgcolor="#d5d5d5" height="1"></td>
</tr>
<tr>
<td colspan="12" style="padding:10 0 0 0">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="100%" align="center">
<!--- Paging Start --->
<%=Pagelist("project_list2_withdate.asp",tmp_currentpage ,tmp_bcolor , "", pagecount, "&x=" & x & "&chk=" & chk & "&p_depart=" & p_depart & "&p_team=" & p_team & "&flag=" & flag & "&tmp_sort=" & tmp_sort & "&tmp_month=" & tmp_month & "&tmp_year=" & tmp_year & "&p_team_people=" & p_team_people)%>
<!--- Paging End --->
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</form>

View File

@@ -0,0 +1,966 @@
<!-- #include virtual = "lib/config.asp" -->
<!-- #include file = "../include/top_menu.asp" -->
<%
''///==============================================
''///==============================================
''2014<31><34> 1<><31> 23<32><33> <20>η<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
'' <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>縦 <20><><EFBFBD><EFBFBD> <20>ʱ⿡ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է¿<D4B7><C2BF>δ<EFBFBD> direct_cost <20><><EFBFBD>̺<EFBFBD><CCBA><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ֳ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ǵ<EFBFBD>..
''///==============================================
''///==============================================
''///==============================================
SET rsp = server.CreateObject("ADODB.RECORDSET")
SET rsa = server.CreateObject("ADODB.RECORDSET")
dim prj_list(20 , 25)
Dim tmp_input_complete()
x = request("x")
z = request("z") '1<><31> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȹ, 2<><32> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD>, 3<><33> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD>
p_depart = request("p_depart")
p_team = request("p_team")
flag = request("flag") 'my_menu.asp<73><70><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> (tmp_stat_flag<61><67> <20><><EFBFBD><EFBFBD>)
If request("tmp_sort") <> "" Then
tmp_sort = request("tmp_sort")
Else
tmp_sort = "0"
End if
tmp_month = request("tmp_month")
tmp_year = request("tmp_year")
p_team_people = request("p_team_people")
p_subject = request("p_subject")
p_method_nm = request("p_method_nm")
p_method_cd = request("p_method_cd")
chk = request("chk") '<27>μ<EFBFBD><CEBC><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ǹ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><>ü<EFBFBD><C3BC> <20>ʱ<EFBFBD>ȭ <20><>
if request("gotopage") <> "" then
tmp_currentpage = request("gotopage")
else
tmp_currentpage = 1
end if
If p_depart = "" Then
p_depart = Session("Depart_Code")
End if
'page config
tmp_colspan = 9
if tmp_year = "" then
tmp_year = cstr(year(date()))
end if
if tmp_month = "" then
tmp_month = cstr(month(date()))
end if
%>
<script language=javascript>
function openit(a,z,x,y,v) {
if (a == 1)
{
if (new_project_2014(z) == 1)
{
var url = 'project_list2_dep.asp?p_sn=' + z;
}else{
var url = 'project_list2_dep_2014.asp?p_sn=' + z;
}
var tmp_width = 1400;
var tmp_height = 800;
if(v != ""){
url = url + "&p_sub_type=" + x + "&p_method_cd=" + y + "&p_child_sn=" + v;
}else{
url = url + "&p_sub_type=" + x + "&p_method_cd=" + y;
}
}
window.open(url,'','left=0,top=0,width='+tmp_width+',height='+tmp_height+',scrollbars=yes,resizable=yes')
}
function subit() {
document.pms.action = "project_list2_withdate_2014.asp?z=<%=z %>";
document.pms.submit();
}
</script>
<form name="pms" method="post">
<input type="hidden" name="z" style="width:150;" value="<%=z%>">
<td width="100%" valign="top">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<!-- Ȯ<><C8AE> -->
</tr>
<tr>
<td colspan="2" style="padding:20;">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td style="padding: 0 0 5 0;">
<% If CInt(z) = 1 Then %>
<span style="font-size: 12pt; font-weight: bold;"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȹ<EFBFBD><C8B9> <20>ۼ<EFBFBD></span>
<% ElseIf CInt(z) = 2 Then %>
<span style="font-size: 12pt; font-weight: bold;"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></span>
<% ElseIf CInt(z) = 3 Then %>
<span style="font-size: 12pt; font-weight: bold;"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>Ϸ<EFBFBD> <20><><EFBFBD><EFBFBD></span>
<% Else %>
<span style="font-size: 12pt; font-weight: bold;"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></span>
<% End If %>
</td>
</tr>
<tr>
<td>
<font class="brown"><3E>˻<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>.</font>
</font>
</td>
</tr>
<tr>
<td style="padding:5 0 0 0">
<table width="100%" height="37" cellpadding="0" cellspacing="1" border="0" bgcolor="#c0c0c0">
<tr>
<td bgcolor="#DFDFDF" style="padding:0 0 0 10;">
<!-- &nbsp;&nbsp; -->
<09><><EFBFBD><EFBFBD>
<select name="tmp_sort">
<option value="" <% if tmp_sort = "0" then %> selected <% end if %>><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE></option>
<option value="1" <% if tmp_sort = "1" then %> selected <% end if %>><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD>ڵ<EFBFBD></option>
<option value="2" <% if tmp_sort = "2" then %> selected <% end if %>><3E><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD></option>
<option value="3" <% if tmp_sort = "3" then %> selected <% end if %>><3E><><EFBFBD><EFBFBD><EFBFBD>Ͻ<EFBFBD></option>
</select>
&nbsp;&nbsp;
<09>⵵
<select name="tmp_year" >
<%
for i = year(date()) to 2009 step -1
%>
<option value="<%=i%>" <% if tmp_year = cstr(i) then %> selected <% end if %>><%=i%><3E><></option>
<%
next
%>
</select>
&nbsp;&nbsp;
<09><>
<select name="tmp_month" >
<option value="0" <% if tmp_month = "0" then %> selected <% end if %>><3E><>ü</option>
<%
tmp_i = 12
for i = 1 to tmp_i
%>
<option value="<%=i%>" <% if tmp_month = cstr(i) then %> selected <% end if %>><%=i%><3E><></option>
<%
next
%>
</select>&nbsp;&nbsp;&nbsp;&nbsp;
<20>μ<EFBFBD> :
<select name="p_depart" <% if Cint(Session("Depart_Code")) >= 20 AND Cint(Session("Depart_Code")) < 40 then %> style="display:none" <% end if %>>
<%
if view_depart = "" then
%>
<option value="0" <% if p_depart = "0" then %> selected <% end if %>><3E><>ü</option>
<%
end if
query = ""
query = query & " SELECT DISTINCT before_t_cd1 as d_code, LEFT(T_Name, 8) as d_name "
query = query & " FROM project2.dbo.v_Department "
query = query & " WHERE (before_t_cd1 between 20 and 99 OR before_t_cd1 IN (90))"
query = query & " order by LEFT(T_Name, 8) "
rsc.Open query, adoConn, 1
if rsc.RecordCount > 0 then
for i = 1 to rsc.RecordCount
if cint(p_depart) = cint(rsc("d_code")) OR view_depart = "" then
%>
<option value="<%=rsc("d_code")%>" <% if cstr(p_depart) = cstr(rsc("d_code")) then %> selected <% end if %>><%=rsc("d_name")%></option>
<%
end if
rsc.MoveNext
next
end if
rsc.Close
%>
</select>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><> :
<input type="text" style="width:120px" name="p_subject" maxlength=20 style='ime-mode:inactive;' value='<%=p_subject%>'>&nbsp;&nbsp;
<20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> :
<select name="p_method_cd" style="width:100px">
<option value="" <% if p_method_cd = "" then %> selected <% end if %>><3E><>ü</option>
<option value="0" <% if p_method_cd = "0" then %> selected <% end if %>>Multi</option>
<%
query = " SELECT * "
query = query & " FROM T_PROJECT_METHOD_CD "
rsc.Open query, adoConn, 1
for i=1 to rsc.recordcount
%>
<option value="<%=rsc("p_method_cd")%>" <% if trim(rsc("p_method_cd")) = p_method_cd then %> selected <% end if %>><%=rsc("p_method_nm")%></option>
<%
rsc.MoveNext
next
rsc.close
%>
</select>
&nbsp;&nbsp;
<img src="/images/common/btn_smallsrch.gif" align="absmiddle" onclick="subit()" style='cursor:pointer' >
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td style="padding:10 0 0 0">
<div id="popdiv_obj1" style="position:absolute; background-color:FFFFDD;color:black;border-color:black;border-width:20; display:none; left:25px; top:100px; z-index:10" onmouseover="overdiv=10;" onmouseout="overdiv=0;setTimeout('hideLayer()',1000)">asdf</div>
<table width="100%" cellpadding="3" cellspacing="0" border="0" style="border-collapse:collapse;">
<tr>
<td align="center" width="20px">No.</td>
<td align="center" width="70px"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD>ڵ<EFBFBD></td>
<td align="center" width="38%"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE></td>
<td align="center" width="12%"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td align="center" width="12%"><3E><><EFBFBD>系<EFBFBD><E7B3BB></td>
<td align="center" width="35px"><3E><><EFBFBD><EFBFBD></td>
<td align="center" width="12%"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td align="center" class="tit_left tit_right" width="60px"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
</tr>
<!-- loop start -->
<%
query = "SELECT * "
query = query & "FROM ( "
query = query & " SELECT TPB.p_sn "
query = query & " ,TPB.p_cli_company "
query = query & " ,TPB.p_cli_type "
query = query & " ,TPB.p_subject "
'query = query & " ,TPB.p_intention "
query = query & " ,'Multi' as p_intention "
query = query & " ,TPB.p_cp_code "
query = query & " ,'' as p_memo "
query = query & " ,TPB.p_budget as p_cont_cost"
query = query & " ,TPB.p_decide_date "
query = query & " ,TPB.p_con_date_st "
query = query & " ,TPB.p_con_date_end "
query = query & " ,TPB.p_export_range "
query = query & " ,TPB.p_category "
query = query & " ,TPB.p_state "
query = query & " ,TPB.p_input_user "
query = query & " ,TPB.p_depart "
query = query & " ,TPB.p_depart_dep "
query = query & " ,TPB.p_depart_team "
query = query & " ,'' as p_method_cd "
query = query & " ,'' as p_index "
query = query & " ,TPM.p_sub_type "
query = query & " ,'' as p_child_sn "
query = query & " ,'' as p_sur_area "
query = query & " ,'' as p_sur_target "
query = query & " ,'' as p_sample "
query = query & " ,'' as p_research_date_st "
query = query & " ,'' as p_research_date_end "
query = query & " ,'' as p_sur_part "
query = query & " ,'' as p_field_process "
query = query & " ,'' as p_rsch_dept "
query = query & " ,'' as p_field_dept "
query = query & " ,'' as p_is_dept "
query = query & " ,'' as p_supp_dept "
query = query & " ,'' as p_rsch_1_a "
query = query & " ,'' as p_rsch_2_a "
query = query & " ,'' as p_rsch_3_a "
query = query & " ,'' as p_rsch_4_a "
query = query & " ,'' as p_rsch_1_b "
query = query & " ,'' as p_rsch_2_b "
query = query & " ,'' as p_rsch_3_b "
query = query & " ,'' as p_rsch_4_b "
query = query & " ,'' as p_rsch_1_c "
query = query & " ,'' as p_rsch_2_c "
query = query & " ,'' as p_rsch_3_c "
query = query & " ,'' as p_rsch_4_c "
query = query & " ,'' as p_sv_1 "
query = query & " ,'' as p_sv_2 "
query = query & " ,'' as p_sv_3 "
query = query & " ,'' as p_sv_4 "
query = query & " ,'' as p_code_1 "
query = query & " ,'' as p_code_2 "
query = query & " ,'' as p_code_3 "
query = query & " ,'' as p_code_4 "
query = query & " ,'' as p_verify_1 "
query = query & " ,'' as p_verify_2 "
query = query & " ,'' as p_verify_3 "
query = query & " ,'' as p_verify_4 "
query = query & " ,'' as p_dp_1 "
query = query & " ,'' as p_dp_2 "
query = query & " ,'' as p_dp_3 "
query = query & " ,'' as p_dp_4 "
query = query & " ,'' as p_it_1 "
query = query & " ,'' as p_it_2 "
query = query & " ,'' as p_it_3 "
query = query & " ,'' as p_it_4 "
query = query & " ,'' as p_supp_1 "
query = query & " ,'' as p_supp_2 "
query = query & " ,'' as p_supp_3 "
query = query & " ,'' as p_supp_4 "
query = query & " ,'' as p_rsch_date_st "
query = query & " ,'' as p_rsch_date_end "
query = query & " ,'' as p_field_date_st "
query = query & " ,'' as p_field_date_end "
query = query & " ,'' as p_code_date_st "
query = query & " ,'' as p_code_date_end "
query = query & " ,'' as p_verify_date_st "
query = query & " ,'' as p_verify_date_end "
query = query & " ,'' as p_dp_date_st "
query = query & " ,'' as p_dp_date_end "
query = query & " ,'' as p_it_date_st "
query = query & " ,'' as p_it_date_end "
query = query & " ,'' as p_premeet_date "
query = query & " ,'' as p_premeet_time "
query = query & " ,'' as p_premeet_place "
query = query & " ,'' as p_ot_date "
query = query & " ,'' as p_ot_time "
query = query & " ,'' as p_ot_place "
query = query & " ,'' as p_sur_memo "
query = query & " ,TPM.p_progress_status "
query = query & " ,TPB.p_input_dt "
query = query & " ,max(isnull(TPM.p_research_complete,0)) as p_research_complete "
query = query & " ,max(isnull(TPM.p_field_complete,0)) as p_field_complete "
query = query & " ,max(isnull(TPM.p_dp_complete ,0)) as p_dp_complete "
query = query & " FROM V_PROJECT as TPB "
query = query & " INNER JOIN V_PROJECT_METHOD as TPM "
query = query & " ON TPB.p_sn = TPM.p_sn "
query = query & " AND TPM.p_progress_status is not null "
query = query & " AND TPM.p_sub_type = 'M' "
if p_depart <> "0" AND p_depart <> "" then
If p_depart >= 20 and p_depart < 40 then
query = query & " WHERE p_depart_dep = " & p_depart & " "
Else
' query = query & " WHERE ( p_depart_dep = " & p_depart & " "
' query = query & " or p_rsch_dept = " & p_depart & " "
' query = query & " or p_field_dept = " & p_depart & " "
' query = query & " or p_is_dept = " & p_depart & " "
' query = query & " or p_supp_dept = " & p_depart & " "
' query = query & " ) "
End if
End if
query = query & " GROUP BY TPB.p_sn "
query = query & " ,TPB.p_cli_company "
query = query & " ,TPB.p_cli_type "
query = query & " ,TPB.p_subject "
query = query & " ,TPB.p_intention "
query = query & " ,TPB.p_cp_code "
' query = query & " --,TPB.p_memo "
query = query & " ,TPB.p_budget"
query = query & " ,TPB.p_decide_date "
query = query & " ,TPB.p_con_date_st "
query = query & " ,TPB.p_con_date_end "
query = query & " ,TPB.p_export_range "
query = query & " ,TPB.p_category "
query = query & " ,TPB.p_state "
query = query & " ,TPB.p_input_user "
query = query & " ,TPB.p_depart "
query = query & " ,TPB.p_depart_dep "
query = query & " ,TPB.p_depart_team "
' query = query & " --,TPM.p_method_cd "
' query = query & " --,TPM.p_index "
query = query & " ,TPM.p_sub_type "
' query = query & " --,TPM.p_child_sn "
' query = query & " --,TPM.p_sur_area "
' query = query & " --,TPM.p_sur_target "
' query = query & " --,TPM.p_sample "
' query = query & " --,TPM.p_research_date_st "
' query = query & " --,TPM.p_research_date_end "
' query = query & " --,TPM.p_sur_part "
' query = query & " --,TPM.p_field_process "
' query = query & " --,TPM.p_rsch_dept "
' query = query & " --,TPM.p_field_dept "
' query = query & " --,TPM.p_is_dept "
' query = query & " --,TPM.p_supp_dept "
' query = query & " --,TPM.p_rsch_1_a "
' query = query & " --,TPM.p_rsch_2_a "
' query = query & " --,TPM.p_rsch_3_a "
' query = query & " --,TPM.p_rsch_4_a "
' query = query & " --,TPM.p_rsch_1_b "
' query = query & " --,TPM.p_rsch_2_b "
' query = query & " --,TPM.p_rsch_3_b "
' query = query & " --,TPM.p_rsch_4_b "
' query = query & " --,TPM.p_rsch_1_c "
' query = query & " --,TPM.p_rsch_2_c "
' query = query & " --,TPM.p_rsch_3_c "
' query = query & " --,TPM.p_rsch_4_c "
' query = query & " --,TPM.p_sv_1 "
' query = query & " --,TPM.p_sv_2 "
' query = query & " --,TPM.p_sv_3 "
' query = query & " --,TPM.p_sv_4 "
' query = query & " --,TPM.p_code_1 "
' query = query & " --,TPM.p_code_2 "
' query = query & " --,TPM.p_code_3 "
' query = query & " --,TPM.p_code_4 "
' query = query & " --,TPM.p_verify_1 "
' query = query & " --,TPM.p_verify_2 "
' query = query & " --,TPM.p_verify_3 "
' query = query & " --,TPM.p_verify_4 "
' query = query & " --,TPM.p_dp_1 "
' query = query & " --,TPM.p_dp_2 "
' query = query & " --,TPM.p_dp_3 "
' query = query & " --,TPM.p_dp_4 "
' query = query & " --,TPM.p_it_1 "
' query = query & " --,TPM.p_it_2 "
' query = query & " --,TPM.p_it_3 "
' query = query & " --,TPM.p_it_4 "
' query = query & " --,TPM.p_supp_1 "
' query = query & " --,TPM.p_supp_2 "
' query = query & " --,TPM.p_supp_3 "
' query = query & " --,TPM.p_supp_4 "
' query = query & " --,TPM.p_rsch_date_st "
' query = query & " --,TPM.p_rsch_date_end "
' query = query & " --,TPM.p_field_date_st "
' query = query & " --,TPM.p_field_date_end "
' query = query & " --,TPM.p_code_date_st "
' query = query & " --,TPM.p_code_date_end "
' query = query & " --,TPM.p_verify_date_st "
' query = query & " --,TPM.p_verify_date_end "
' query = query & " --,TPM.p_dp_date_st "
' query = query & " --,TPM.p_dp_date_end "
' query = query & " --,TPM.p_it_date_st "
' query = query & " --,TPM.p_it_date_end "
' query = query & " --,TPM.p_premeet_date "
' query = query & " --,TPM.p_premeet_time "
' query = query & " --,TPM.p_premeet_place "
' query = query & " --,TPM.p_ot_date "
' query = query & " --,TPM.p_ot_time "
' query = query & " --,TPM.p_ot_place "
' query = query & " --,TPM.p_sur_memo "
query = query & " ,TPM.p_progress_status "
query = query & " ,TPB.p_input_dt "
query = query & " "
query = query & " UNION ALL "
query = query & " "
query = query & " SELECT TPB.p_sn "
query = query & " ,TPB.p_cli_company "
query = query & " ,TPB.p_cli_type "
query = query & " ,TPM.p_subject "
query = query & " ,TPM.p_intention "
query = query & " ,TPB.p_cp_code "
query = query & " ,TPB.p_memo "
query = query & " ,TPM.p_cont_cost "
query = query & " ,TPM.p_decide_date "
query = query & " ,TPM.p_con_date_st "
query = query & " ,TPM.p_con_date_end "
query = query & " ,TPM.p_export_range "
query = query & " ,TPM.p_category "
query = query & " ,TPB.p_state "
query = query & " ,TPB.p_input_user "
query = query & " ,TPB.p_depart "
query = query & " ,TPB.p_depart_dep "
query = query & " ,TPB.p_depart_team "
query = query & " ,TPM.p_method_cd "
query = query & " ,TPM.p_index "
query = query & " ,TPM.p_sub_type "
query = query & " ,TPM.p_child_sn "
query = query & " ,TPM.p_sur_area "
query = query & " ,TPM.p_sur_target "
query = query & " ,TPM.p_sample "
query = query & " ,TPM.p_research_date_st "
query = query & " ,TPM.p_research_date_end "
query = query & " ,TPM.p_sur_part "
query = query & " ,TPM.p_field_process "
query = query & " ,TPM.p_rsch_dept "
query = query & " ,TPM.p_field_dept "
query = query & " ,TPM.p_is_dept "
query = query & " ,TPM.p_supp_dept "
query = query & " ,TPM.p_rsch_1_a "
query = query & " ,TPM.p_rsch_2_a "
query = query & " ,TPM.p_rsch_3_a "
query = query & " ,TPM.p_rsch_4_a "
query = query & " ,TPM.p_rsch_1_b "
query = query & " ,TPM.p_rsch_2_b "
query = query & " ,TPM.p_rsch_3_b "
query = query & " ,TPM.p_rsch_4_b "
query = query & " ,TPM.p_rsch_1_c "
query = query & " ,TPM.p_rsch_2_c "
query = query & " ,TPM.p_rsch_3_c "
query = query & " ,TPM.p_rsch_4_c "
query = query & " ,TPM.p_sv_1 "
query = query & " ,TPM.p_sv_2 "
query = query & " ,TPM.p_sv_3 "
query = query & " ,TPM.p_sv_4 "
query = query & " ,TPM.p_code_1 "
query = query & " ,TPM.p_code_2 "
query = query & " ,TPM.p_code_3 "
query = query & " ,TPM.p_code_4 "
query = query & " ,TPM.p_verify_1 "
query = query & " ,TPM.p_verify_2 "
query = query & " ,TPM.p_verify_3 "
query = query & " ,TPM.p_verify_4 "
query = query & " ,TPM.p_dp_1 "
query = query & " ,TPM.p_dp_2 "
query = query & " ,TPM.p_dp_3 "
query = query & " ,TPM.p_dp_4 "
query = query & " ,TPM.p_it_1 "
query = query & " ,TPM.p_it_2 "
query = query & " ,TPM.p_it_3 "
query = query & " ,TPM.p_it_4 "
query = query & " ,TPM.p_supp_1 "
query = query & " ,TPM.p_supp_2 "
query = query & " ,TPM.p_supp_3 "
query = query & " ,TPM.p_supp_4 "
query = query & " ,TPM.p_rsch_date_st "
query = query & " ,TPM.p_rsch_date_end "
query = query & " ,TPM.p_field_date_st "
query = query & " ,TPM.p_field_date_end "
query = query & " ,TPM.p_code_date_st "
query = query & " ,TPM.p_code_date_end "
query = query & " ,TPM.p_verify_date_st "
query = query & " ,TPM.p_verify_date_end "
query = query & " ,TPM.p_dp_date_st "
query = query & " ,TPM.p_dp_date_end "
query = query & " ,TPM.p_it_date_st "
query = query & " ,TPM.p_it_date_end "
query = query & " ,TPM.p_premeet_date "
query = query & " ,TPM.p_premeet_time "
query = query & " ,TPM.p_premeet_place "
query = query & " ,TPM.p_ot_date "
query = query & " ,TPM.p_ot_time "
query = query & " ,TPM.p_ot_place "
query = query & " ,TPM.p_sur_memo "
query = query & " ,TPM.p_progress_status "
query = query & " ,TPM.p_input_dt "
query = query & " ,TPM.p_research_complete "
query = query & " ,TPM.p_field_complete "
query = query & " ,TPM.p_dp_complete "
query = query & " FROM V_PROJECT as TPB "
query = query & " INNER JOIN V_PROJECT_METHOD as TPM "
query = query & " ON TPB.p_sn = TPM.p_sn "
query = query & " AND TPM.p_progress_status is not null "
query = query & " AND TPM.p_sub_type = 'C' "
''' response.write p_depart & "//" & p_depart
'<27><>ȸ <20>ɼ<EFBFBD>
if p_depart <> "0" AND p_depart <> "" then
If p_depart = 17 Or p_depart = 18 then
query = query & " WHERE (p_depart_dep <= 10 or (p_depart_dep >= 20 and p_depart_dep <=60) or (p_depart_dep >= 17 and p_depart_dep <=18) or p_rsch_dept = 90) "
Else
query = query & " WHERE ( p_depart_dep = " & p_depart & " "
query = query & " or p_rsch_dept = " & p_depart & " "
query = query & " or (p_rsch_dept = 90 and (TPM.p_rsch_1_a = '"& Session("User_Number") &"' or TPM.p_rsch_2_a = '"& Session("User_Number") &"' or TPM.p_rsch_3_a = '"& Session("User_Number") &"' or TPM.p_rsch_4_a = '"& Session("User_Number") &"' "
query = query & " or TPM.p_rsch_1_b = '"& Session("User_Number") &"' or TPM.p_rsch_2_b = '"& Session("User_Number") &"' or TPM.p_rsch_3_b = '"& Session("User_Number") &"' or TPM.p_rsch_4_b = '"& Session("User_Number") &"' "
query = query & " or TPM.p_rsch_1_c = '"& Session("User_Number") &"' or TPM.p_rsch_2_c = '"& Session("User_Number") &"' or TPM.p_rsch_3_c = '"& Session("User_Number") &"' or TPM.p_rsch_4_c = '"& Session("User_Number") &"' ))"
if p_depart = 12 then
query = query & " or p_field_dept = 8 "
query = query & " or p_field_dept = 9 "
query = query & " or p_field_dept = 12 "
end if
query = query & " or p_field_dept = " & p_depart & " "
query = query & " or p_is_dept = " & p_depart & " "
query = query & " or p_supp_dept = " & p_depart & " "
query = query & " ) "
End if
else
query = query & " WHERE (p_depart_dep <= 10 or (p_depart_dep >= 20 and p_depart_dep <=60) "
query = query & " or (p_rsch_dept = 90 and (TPM.p_rsch_1_a = '"& Session("User_Number") &"' or TPM.p_rsch_2_a = '"& Session("User_Number") &"' or TPM.p_rsch_3_a = '"& Session("User_Number") &"' or TPM.p_rsch_4_a = '"& Session("User_Number") &"' "
query = query & " or TPM.p_rsch_1_b = '"& Session("User_Number") &"' or TPM.p_rsch_2_b = '"& Session("User_Number") &"' or TPM.p_rsch_3_b = '"& Session("User_Number") &"' or TPM.p_rsch_4_b = '"& Session("User_Number") &"' "
query = query & " or TPM.p_rsch_1_c = '"& Session("User_Number") &"' or TPM.p_rsch_2_c = '"& Session("User_Number") &"' or TPM.p_rsch_3_c = '"& Session("User_Number") &"' or TPM.p_rsch_4_c = '"& Session("User_Number") &"' )))"
end If
query = query & " ) as T "
'------------------------------------------------------
'z<>ɼ<EFBFBD>
if z = 1 then
query = query & " WHERE p_progress_status <= '007' "
elseif z = 2 Then
query = query & " WHERE p_progress_status > '007' and p_progress_status <> '999' "
If CInt(p_depart) = 0 Or (CInt(p_depart) >= 20 And CInt(p_depart) <= 40) Then
query = query & " and ( isnull(p_research_complete,0) = 0 ) "
ElseIf p_depart = 12 Then
query = query & " and ( isnull(p_field_complete,0) = 0 ) "
ElseIf p_depart = 17 Then
query = query & " and ( isnull(p_dp_complete,0) = 0 ) "
Else
query = query & " and ( isnull(p_research_complete,0) = 0 and isnull(p_field_complete,0) = 0 and isnull(p_dp_complete,0) = 0 ) "
End If
elseif z = 3 Then
query = query & " WHERE p_progress_status > '007' "
If CInt(p_depart) = 0 Or (CInt(p_depart) >= 20 And CInt(p_depart) <= 40) Then
query = query & " and ( p_research_complete = 1 ) "
ElseIf p_depart = 12 Then
query = query & " and ( p_field_complete = 1 ) "
ElseIf p_depart = 17 Then
query = query & " and ( p_dp_complete = 1 ) "
Else
query = query & " and ( p_research_complete = 1 or p_field_complete = 1 or p_dp_complete = 1 ) "
End If
else
query = query & " WHERE p_progress_status < '014' "
end if
'------------------------------------------------------
'<27><> <20>ɼ<EFBFBD>
if tmp_year <> "0" and tmp_year <> "" then
query = query & " AND SUBSTRING(convert(varchar(30), p_input_dt, 112), 1, 4) = '" & tmp_year & "' "
else
query = query & " AND SUBSTRING(convert(varchar(30), p_input_dt, 112), 1, 4) = '" & year(date()) & "' "
end if
'------------------------------------------------------
'<27><> <20>ɼ<EFBFBD>
if tmp_month <> "0" and tmp_month <> "" then
query = query & " AND SUBSTRING(convert(varchar(30), p_input_dt, 112), 5, 2) = '" & right("0" & tmp_month, 2) & "' "
end if
'------------------------------------------------------
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><> <20>˻<EFBFBD> <20>ɼ<EFBFBD>
if p_subject <> "" then
query = query & " AND p_subject LIKE '%"&p_subject&"%' "
end if
'------------------------------------------------------
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><> <20>˻<EFBFBD> <20>ɼ<EFBFBD>
if p_method_cd <> "" then
query = query & " AND p_method_cd = '"&p_method_cd&"' "
end if
'------------------------------------------------------
'------------------------------------------------------
'<27><><EFBFBD><EFBFBD> <20>ɼ<EFBFBD>
if tmp_sort = "0" Then
query = query & "ORDER BY p_subject "
ElseIf tmp_sort = "1" Then
query = query & "ORDER BY p_sn DESC "
ElseIf tmp_sort = "2" Then
query = query & "ORDER BY p_depart_dep "
else
query = query & "ORDER BY p_input_dt "
end If
'------------------------------------------------------
rsp.Open query, adoConn, 1
if rsp.RecordCount > 0 then
rsp.PageSize = 20
PageCount = rsp.PageCount
rsp.absolutepage = tmp_Currentpage
tmp_total_record = rsp.RecordCount
tmp_for = Cint(tmp_total_record) - ((Cint(tmp_Currentpage) - 1) * rsp.PageSize)
if rsp.PageSize <= tmp_for then
if rsp.RecordCount <= rsp.PageSize then
tmp_for = rsp.recordcount
else
tmp_for = rsp.PageSize
end if
else
tmp_for = tmp_for
end if
for i = 1 to tmp_for
if Cint(tmp_Currentpage)=1 then
Num=Cint(tmp_total_record)- i+1
else
Num=Cint(tmp_total_record) - ((Cint(tmp_Currentpage) - 1) * rsc.PageSize) - i +1
end if
prj_list(i, 0) = rsp("p_sn")
prj_list(i, 1) = rsp("p_subject")
if Cint(tmp_Currentpage)=1 then
Num=Cint(tmp_total_record)- i+1
else
Num=Cint(tmp_total_record) - ((Cint(tmp_Currentpage) - 1) * rsp.PageSize) - i +1
end if
'------------------------------------------------------------------
tmp_view = "0"
if flag <> "" then '#### my_menu<6E><75><EFBFBD><EFBFBD> <20>񱳰<EFBFBD><F1B1B3B0><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20>񱳰<EFBFBD><F1B1B3B0><EFBFBD> <20><><EFBFBD>缭 <20><><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD>
if tmp_stat_flag_process = flag OR tmp_stat_flag_date = flag then '#### <20>񱳰<EFBFBD><F1B1B3B0><EFBFBD> <20><><EFBFBD>ٸ<EFBFBD> <20><>ü<EFBFBD><C3BC> <20><><EFBFBD><EFBFBD>
tmp_view = "1"
else
tmp_veiw = "0"
end if
else
tmp_view = "1"
end if
if tmp_view = "1" then
if i mod 2 = 0 then
tmp_bgcolor="#dbe9f2"
else
tmp_bgcolor=""
end if
%>
<tr bgcolor="<%=tmp_bgcolor%>" id='row<%=i%>'>
<td align="center" ><%=Num%></td>
<td align="center" ><a href="javascript:openit('1','<%=rsp("p_sn")%>','<%=rsp("p_sub_type")%>','<%=rsp("p_method_cd")%>','<%=rsp("p_child_sn")%>')" class="blue">
<!-- <%=rsp("p_state")%><%=rsp("p_sn")%> -->
<%
If rsp("p_sub_type") = "M" Then
%>
<%=rsp("p_sn")%>_M01
<% Else
If rsp("p_child_sn") = "" Then
%>
<%=rsp("p_sn")%>_C01
<% Else %>
<%=rsp("p_child_sn")%>
<% End If
End If
%>
</a></td>
<td align="left" >
<a href="javascript:openit('1','<%=rsp("p_sn")%>','<%=rsp("p_sub_type")%>','<%=rsp("p_method_cd")%>','<%=rsp("p_child_sn")%>')" class="blue">&nbsp;
<% If Len(rsp("p_subject")) > 35 Then %>
<%=Left(rsp("p_subject"), 35) & "..."%>
<% Else %>
<%=rsp("p_subject")%>
<% End If %>
</a>
</td>
<td align="center" >
<% If rsp("p_sub_type") = "M" Then %>
Multi
<% Else
If rsp("p_method_cd") <> "" then
q = "select p_method_cd, p_method_nm from T_PROJECT_METHOD_CD where p_method_cd = " & rsp("p_method_cd")
rsc.Open q, adoConn, 1
if rsc.RecordCount > 0 Then
If Len(rsc("p_method_nm")) > 6 Then
%>
<%=Left(rsc("p_method_nm"), 6) & "..."%>
<%
Else
%>
<%=rsc("p_method_nm")%>
<%
End if
end if
rsc.Close
Else
%>
<%
End if
End If %>
</td>
<td align="left" >&nbsp;
<% If Len(rsp("p_intention")) > 6 Then %>
<%=Left(rsp("p_intention"), 6) & "..."%>
<% Else %>
<%=rsp("p_intention")%>
<% End If %>
</td>
<td align="center" >
<%
'##### <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>(2019)
'q = "select d_code, d_name from Depart where d_yes_no = 'Y' and d_code = '" & rsp("p_rsch_dept") & "' "
'rsc.Open q, adoConn, 1
dim t_name
q = "Select T_name from V_department where before_t_cd1 = '"& rsp("p_rsch_dept") &"' "
rsc.Open q, adoConn, 1
If rsc.RecordCount > 0 Then
If (Instr(rsc("T_name"),"<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>") <> 0) or (Instr(rsc("T_name"),"<22><><EFBFBD><EFBFBD>") <> 0) Then
t_name = Right(rsc("T_name"),2)
Else
t_name = rsc("T_name")
End If
%>
<%=t_name%>
<%
end if
rsc.Close
%>
</td>
<td align="center" >
<%
q = "select c_common_code, c_code_name from T_COMMON_CODE_DETAIL where c_kind_code = '010' and c_common_code = '" & rsp("p_progress_status") & "' "
rsc.Open q, adoConn, 1
if rsc.RecordCount > 0 Then
If rsc("c_code_name") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7><EFBFBD>" Then
query = "select p_progress_flag, p_input_complete from T_PROJECT_METHOD where p_sn = '"&rsp("p_sn")&"' and p_sub_type = '"&rsp("p_sub_type")&"' "
If rsp("p_sub_type") = "C" Then
query = query + " and p_child_sn = '"&rsp("p_child_sn")&"' "
End if
'response.Write query
Dim direct_cost_depart
ReDim tmp_input_complete(3)
ReDim tmp_progress_flag(3)
direct_cost_depart = ""
rsa.Open query, adoConn, 1
if rsa.RecordCount > 0 Then
If rsp("p_sub_type") = "C" Then
if rsa("p_progress_flag") = "ooo" then
if rsa("p_input_complete") = "ooo" Or rsa("p_input_complete") = "oooo" then
direct_cost_depart = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD> <20>Ϸ<EFBFBD>"
else
if mid(rsa("p_input_complete"),1,1) = "x" then
direct_cost_depart = "<22><><EFBFBD><EFBFBD> "
end if
if mid(rsa("p_input_complete"),2,1) = "x" then
if direct_cost_depart <> "" then
direct_cost_depart = direct_cost_depart & ", "
End if
direct_cost_depart = direct_cost_depart & "<22>ǻ<EFBFBD> "
end If
If rsa("p_input_complete") = "ooo" Then
if mid(rsa("p_input_complete"),3,1) = "x" then
if direct_cost_depart <> "" then
direct_cost_depart = direct_cost_depart & ", "
End If
End if
direct_cost_depart = direct_cost_depart & "QC "
ElseIf rsa("p_input_complete") = "oooo" Then
if mid(rsa("p_input_complete"),4,1) = "x" then
if direct_cost_depart <> "" then
direct_cost_depart = direct_cost_depart & ", "
End if
direct_cost_depart = direct_cost_depart & "DP "
end if
End If
direct_cost_depart = direct_cost_depart & "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD> <20><>"
end if
else
if mid(rsa("p_progress_flag"),1,1) = "x" then
direct_cost_depart = "<22><><EFBFBD><EFBFBD> "
end if
if mid(rsa("p_progress_flag"),2,1) = "x" then
if direct_cost_depart <> "" then
direct_cost_depart = direct_cost_depart & ", "
End if
direct_cost_depart = direct_cost_depart & "<22>ǻ<EFBFBD> "
end if
if mid(rsa("p_progress_flag"),3,1) = "x" then
if direct_cost_depart <> "" then
direct_cost_depart = direct_cost_depart & ", "
End if
direct_cost_depart = direct_cost_depart & "DP "
end if
direct_cost_depart = direct_cost_depart & "<22><><EFBFBD><EFBFBD> <20>Է<EFBFBD> <20><>"
end if
Else
Do while Not rsa.Eof
if mid(rsa("p_input_complete"),1,1) = "x" then
tmp_input_complete(0) = "x"
end if
if mid(rsa("p_input_complete"),2,1) = "x" then
tmp_input_complete(1) = "x"
end if
if mid(rsa("p_input_complete"),3,1) = "x" then
tmp_input_complete(2) = "x"
end if
if mid(rsa("p_progress_flag"),1,1) = "x" then
tmp_progress_flag(0) = "x"
end if
if mid(rsa("p_progress_flag"),2,1) = "x" then
tmp_progress_flag(1) = "x"
end if
if mid(rsa("p_progress_flag"),3,1) = "x" then
tmp_progress_flag(2) = "x"
end if
rsa.MoveNext
loop
if tmp_progress_flag(0) <> "x" and tmp_progress_flag(1) <> "x" and tmp_progress_flag(2) <> "x" then
if tmp_input_complete(0) = "x" then
direct_cost_depart = "<22><><EFBFBD><EFBFBD> "
End if
if tmp_input_complete(1) = "x" then
if direct_cost_depart <> "" then
direct_cost_depart = direct_cost_depart & ", "
End if
direct_cost_depart = direct_cost_depart & "<22>ǻ<EFBFBD> "
End if
if tmp_input_complete(2) = "x" then
if direct_cost_depart <> "" then
direct_cost_depart = direct_cost_depart & ", "
End if
direct_cost_depart = direct_cost_depart & "QC "
End if
direct_cost_depart = direct_cost_depart & "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD> <20><>"
else
if tmp_progress_flag(0) = "x" then
direct_cost_depart = "<22><><EFBFBD><EFBFBD> "
End if
if tmp_progress_flag(1) = "x" then
if direct_cost_depart <> "" then
direct_cost_depart = direct_cost_depart & ", "
End if
direct_cost_depart = direct_cost_depart & "<22>ǻ<EFBFBD> "
End if
if tmp_progress_flag(2) = "x" then
if direct_cost_depart <> "" then
direct_cost_depart = direct_cost_depart & ", "
End if
direct_cost_depart = direct_cost_depart & "DP "
End if
direct_cost_depart = direct_cost_depart & "<22><><EFBFBD><EFBFBD> <20>Է<EFBFBD> <20><>"
end if
End if
end if
rsa.Close
%>
<%=direct_cost_depart%>
<%
else
%>
<%=Replace(rsc("c_code_name"), "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȹ<EFBFBD><C8B9> ", "<22><>ȹ<EFBFBD><C8B9> ")%>
<%
End if
end if
rsc.Close
%>
</td>
<td align="center" ><%=Left(rsp("p_input_dt"), 10)%></td>
</tr>
<%
end if
rsp.MoveNext
next
end if
rsp.Close
%>
<!-- loop end -->
<tr>
<td colspan="12" bgcolor="#d5d5d5" height="1"></td>
</tr>
<tr>
<td colspan="12" style="padding:10 0 0 0">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="100%" align="center">
<!--- Paging Start --->
<%=Pagelist("project_list2_withdate_2014.asp?z=" & z & "&",tmp_currentpage ,tmp_bcolor , "", pagecount, "&x=" & x & "&chk=" & chk & "&p_depart=" & p_depart & "&p_team=" & p_team & "&flag=" & flag & "&tmp_sort=" & tmp_sort & "&tmp_month=" & tmp_month & "&tmp_year=" & tmp_year & "&p_team_people=" & p_team_people)%>
<!--- Paging End --->
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</form>

View File

@@ -0,0 +1,956 @@
<!-- #include virtual = "lib/config.asp" -->
<%
set rsp = server.CreateObject("ADODB.RECORDSET")
set rsa = server.CreateObject("ADODB.RECORDSET")
set rsm = server.CreateObject("ADODB.RECORDSET")
p_sn = request("p_sn")
p_sub_type = request("p_sub_type")
tmp_teamname = ""
x = "1"
'============================================================================
'2010/11/16 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̰ų<CCB0> <20><><EFBFBD><EFBFBD><EFBFBD>Ϸ<EFBFBD><CFB7><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ִٸ<D6B4> <20>ø<EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>
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><EFBFBD><EFBFBD> = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȹ<EFBFBD><C8B9>' "
query = query & " AND a.del_yes_no = 'no' "
If p_sub_type = "M" then
query = query & " AND a.p_sn = '" & p_sn & "' and p_child_sn like '" & p_sn & "_M%' "
else
query = query & " AND a.p_child_sn = '" & p_child_sn & "' "
end if
rsp.Open query, adoConn, 1
if rsp.RecordCount > 0 then
if rsp("d_order_cnt") = "77" then
alert4 "[<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> : " & rsp("d_write_name") & "] <20>̹<EFBFBD> <20><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD><CFB7>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>."
else
alert4 "[<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> : " & rsp("d_write_name") & "] <20>̹<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>."
end if
end if
rsp.Close
'============================================================================
Dim research_count
research_count = 0
''' Response.Write p_sub_type & "<BR>"
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>⺻ <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
If p_sub_type = "M" then
query = " SELECT p_sn, p_sn+'_M' as p_child_sn, PB.p_cli_company_cd as p_cli_company_cd, PB.p_cli_per_cd as p_cli_per_cd, "
query = query & " p_state, p_subject, p_cli_company_nm, CP.p_cli_depart as p_cli_depart, "
query = query & " p_cli_per_nm, p_cli_per_com_tel, p_cli_per_tel, p_cli_per_email, "
query = query & " PB.p_client_type_cd as p_client_type_cd, p_cont_cost, p_decide_date, "
query = query & " p_con_date_st, p_con_date_end, p_export_range, p_category, "
query = query & " p_memo, pb.p_depart_dep as p_depart_dep, PB.p_input_user "
query = query & " FROM "
query = query & " T_PROJECT_BASE PB INNER JOIN V_CLIENT_COMP CC ON PB.p_cli_company_cd = CC.p_cli_company_cd "
query = query & " INNER JOIN V_CLIENT_PERSON CP ON PB.p_cli_company_cd = CP.p_cli_company_cd AND PB.P_CLI_PER_CD = CP.P_CLI_PER_CD "
query = query & " INNER JOIN T_CLIENT_TYPE_CD CTC ON PB.p_client_type_cd = CTC.p_client_type_cd "
query = query & " WHERE p_sn = '"&p_sn& "' "
else
query = " SELECT PB.p_sn, PM.p_child_sn "
query = query & " , PB.p_cli_company_cd as p_cli_company_cd "
query = query & " , PB.p_cli_per_cd as p_cli_per_cd "
query = query & " , p_state "
query = query & " , PM.p_subject "
query = query & " , PM.p_rsch_dept "
query = query & " , p_cli_company_nm "
query = query & " , CP.p_cli_depart as p_cli_depart "
query = query & " , p_cli_per_nm "
query = query & " , p_cli_per_com_tel "
query = query & " , p_cli_per_tel "
query = query & " , p_cli_per_email "
query = query & " , PB.p_client_type_cd as p_client_type_cd "
query = query & " , PM.p_cont_cost "
query = query & " , PM.p_decide_date "
query = query & " , PM.p_con_date_st "
query = query & " , PM.p_con_date_end "
query = query & " , PM.p_export_range "
query = query & " , PM.p_category "
query = query & " , PB.p_memo "
query = query & " , pb.p_depart_dep as p_depart_dep "
query = query & " , PB.p_input_user "
query = query & " FROM T_PROJECT_BASE PB "
query = query & " left outer JOIN T_PROJECT_METHOD PM "
query = query & " ON PB.p_sn = PM.p_sn "
query = query & " AND PM.p_method_cd = " & Request("p_method_cd") & " "
query = query & " left outer JOIN V_CLIENT_COMP CC "
query = query & " ON PB.p_cli_company_cd = CC.p_cli_company_cd "
query = query & " left outer JOIN V_CLIENT_PERSON CP "
query = query & " ON PB.p_cli_company_cd = CP.p_cli_company_cd "
query = query & " AND PB.P_CLI_PER_CD = CP.P_CLI_PER_CD "
query = query & " left outer JOIN T_CLIENT_TYPE_CD CTC "
query = query & " ON PB.p_client_type_cd = CTC.p_client_type_cd "
query = query & " WHERE PB.p_sn = '" & p_sn & "' "
query = query & " AND PM.p_sub_type = 'C' "
query = query & " AND PM.p_child_sn = '"& Request("p_child_sn") &"' "
End if
rsc.Open query, adoConn, 1
if rsc.RecordCount > 0 Then
p_sn = rsc("p_sn")
p_child_sn_tmp = rsc("p_child_sn")
p_cli_company_cd = rsc("p_cli_company_cd")
p_cli_per_cd = rsc("p_cli_per_cd")
p_state = rsc("p_state")
p_subject = rsc("p_subject")
p_cli_company_nm = rsc("p_cli_company_nm")
p_cli_depart = rsc("p_cli_depart")
p_cli_per_nm = rsc("p_cli_per_nm")
p_cli_per_com_tel = rsc("p_cli_per_com_tel")
p_cli_per_tel = rsc("p_cli_per_tel")
p_cli_per_email = rsc("p_cli_per_email")
p_client_type_cd = rsc("p_client_type_cd")
p_depart_dep = rsc("p_depart_dep")
p_decide_date = rsc("p_decide_date")
p_con_date_st = rsc("p_con_date_st")
p_con_date_end = rsc("p_con_date_end")
p_export_range = rsc("p_export_range")
p_category = rsc("p_category")
p_memo = rsc("p_memo")
rschname = rsc("p_rsch_dept")
'<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ,<2C><><EFBFBD><EFBFBD>
if rsc("p_cont_cost") <> "" Then
budget = rsc("p_cont_cost")
tmp_len = len(rsc("p_cont_cost"))
for i = 1 to int(tmp_len)
if i mod 3 = 1 and i <> 1 then
p_cont_cost = "," & p_cont_cost
end if
p_cont_cost = left(right(rsc("p_cont_cost"),i), 1) & p_cont_cost
next
Else
p_cont_cost = 0
budget = 0
end If
Dim p_category_arr(19)
If p_category <> "" Then
temp_category_arr = Split(p_category, ",")
If UBound(temp_category_arr)-1 > 0 Then
For i = 0 To UBound(temp_category_arr)-1 Step 1
p_category_arr(temp_category_arr(i)-1) = temp_category_arr(i)
Next
Else
If UBound(temp_category_arr) = 1 Then
If Trim(temp_category_arr(0)) <> "" Then
p_category_arr(temp_category_arr(0)-1) = temp_category_arr(0)
End if
End if
End if
End If
end If
rsc.close
%>
<html>
<head>
<title><%=GNB_TITLE%></title>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<link rel="stylesheet" type="text/css" href="/css/basic.css">
<script src="/js/jquery.min.js"></script>
<script src="/js/jquery-ajax-call.js"></script>
<script src="/js/jquery.form.min.js"></script>
</head>
<script>
function viewit(a)
{
$("table .tab").each(function (index){
var tableObj = $(this);
var tableId = $(this).attr("id");
if(tableId == ("table"+a)){
//alert("a : "+a+"//index : "+index+"//tableId : "+tableId);
$(this).css("display", "");
$('#Image'+(index+1)+'on').css("display", "");
$('#Image'+(index+1)+'off').css("display", "none");
}else{
$(this).css("display", "none");
$('#Image'+(index+1)+'on').css("display", "none");
$('#Image'+(index+1)+'off').css("display", "");
}
});
}
function clsit() {
self.close();
}
function subit()
{
document.pms.action = "project_report_ok_2014.asp";
document.pms.submit();
}
function openit(z)
{
var url = '/ess/direct_cost_print.asp?p_sn=' + z;
var tmp_height = 800;
var tmp_width = 950;
window.open(url,'','left=0,top=0,width='+tmp_width+',height='+tmp_height+',scrollbars=yes,resizable=yes')
}
</script>
<body topmargin="10" leftmargin="10">
<form name="pms" method="post">
<input type="hidden" name="p_sn" value="<%=p_sn%>">
<input type="hidden" name="teamname" value="<%=tmp_teamname%>">
<input type="hidden" name="rschname" value="<%=rschname%>">
<input type="hidden" name="budget" value="<%=budget%>">
<input type="hidden" name="x" value="<%=x%>">
<input type="hidden" name="l" value="<%=l%>">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td >
<table cellpadding="0" cellspacing="0" border="0">
<%if x = "1" then %>
<tr class="ProjectActionPlanBtn">
<td style="padding:0 0 5 0;">
<img src="/images/common/btn_approve.jpg" onClick="subit()" style="CURSOR:pointer;" title = "<22><><EFBFBD><EFBFBD>">
<img src="/images/common/btn_cancel.jpg" onClick="clsit();" style="CURSOR:pointer;" title = "<22><><EFBFBD><EFBFBD>">
</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="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_stit17.jpg"></td>
<td>
<%if cdate(formatdatetime(date,2)) > "2014-01-07" then
tmp_title = "<22><>ǥ<EFBFBD>̻<EFBFBD>"
else
tmp_title = "<22><>ȸ<EFBFBD><C8B8>"
end if
'### <20>ϷẸ<CFB7><E1BAB8><EFBFBD><EFBFBD>(x=2)<29><> <20><> <20><><EFBFBD>縦 <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
if x = "1" then
%>
<table width="100%" cellpadding="0" cellspacing="1" border="0" style="border-collapse:collapse;" bgcolor="#d8d8d8">
<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"><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>
<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>
<%
'my_pos = "3"
'Response.Write "my_pos : " & my_pos & "<BR>"
'tmp_txt = "<p style='line-height:11pt;font-size:9pt;'>" & Session("loginuser") & "<BR>" & replace(date(), "-","") & "<BR>" & FormatDateTime(time,4)
tmp_txt = Session("loginuser") & "<BR>" & replace(date(), "-","") & "<BR>" & Session("User_Number")
'tmp_txt = "<img src='/images/sign/" & Session("loginuser") & "_" & Session("User_Number") & ".jpg' border=0 width=80 height=80>"
if my_pos = 5 then '<27>ӿ<EFBFBD>
tmp_txt1 = "<22><><EFBFBD><EFBFBD>"
tmp_txt2 = "<22><><EFBFBD><EFBFBD>"
tmp_txt3 = "<22><><EFBFBD><EFBFBD>"
tmp_txt4 = tmp_txt
tmp_txt5 = " "
tmp_txt6 = "/"
tmp_txt7 = "/"
tmp_txt8 = "/"
tmp_txt9 = month(now()) & " / " & day(now())
tmp_txt10 = "/"
elseif my_pos = 3 or my_pos = 4 then '<27>μ<EFBFBD><CEBC><EFBFBD>
tmp_txt1 = "<22><><EFBFBD><EFBFBD>"
tmp_txt2 = "<22><><EFBFBD><EFBFBD>"
tmp_txt3 = tmp_txt
tmp_txt4 = " "
tmp_txt5 = " "
tmp_txt6 = "/"
tmp_txt7 = "/"
tmp_txt8 = month(now()) & " / " & day(now())
tmp_txt9 = "/"
tmp_txt10 = "/"
elseif my_pos = 2 then '<27><><EFBFBD><EFBFBD>
tmp_txt1 = tmp_txt
tmp_txt2 = " "
tmp_txt3 = " "
tmp_txt4 = " "
tmp_txt5 = " "
tmp_txt6 = month(now()) & " / " & day(now())
tmp_txt7 = "/"
tmp_txt8 = "/"
tmp_txt9 = "/"
tmp_txt10 = "/"
elseif my_pos = 1 then '<27><> <20><><EFBFBD><EFBFBD>
tmp_txt1 = tmp_txt
tmp_txt2 = " "
tmp_txt3 = " "
tmp_txt4 = " "
tmp_txt5 = " "
tmp_txt6 = month(now()) & " / " & day(now())
tmp_txt7 = "/"
tmp_txt8 = "/"
tmp_txt9 = "/"
tmp_txt10 = "/"
else '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
tmp_txt1 = tmp_txt
tmp_txt2 = "<22><><EFBFBD><EFBFBD>"
tmp_txt3 = " "
tmp_txt4 = " "
tmp_txt5 = " "
tmp_txt6 = month(now()) & " / " & day(now())
tmp_txt7 = "/"
tmp_txt8 = "/"
tmp_txt9 = "/"
tmp_txt10 = "/"
end if
%>
<input type="hidden" name="tmp_txt1" value="<%=tmp_txt1%>">
<input type="hidden" name="tmp_txt2" value="<%=tmp_txt2%>">
<input type="hidden" name="tmp_txt3" value="<%=tmp_txt3%>">
<input type="hidden" name="tmp_txt4" value="<%=tmp_txt4%>">
<input type="hidden" name="tmp_txt5" value="<%=tmp_txt5%>">
<input type="hidden" name="tmp_txt6" value="<%=tmp_txt6%>">
<input type="hidden" name="tmp_txt7" value="<%=tmp_txt7%>">
<input type="hidden" name="tmp_txt8" value="<%=tmp_txt8%>">
<input type="hidden" name="tmp_txt9" value="<%=tmp_txt9%>">
<input type="hidden" name="tmp_txt10" value="<%=tmp_txt10%>">
<tr height="35">
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt1%>&nbsp;</td>
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt2%>&nbsp;</td>
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt3%>&nbsp;</td>
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt4%>&nbsp;</td>
<td bgcolor="#FFFFFF" align="center" class="k_small"><%=tmp_txt5%>&nbsp;</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="18">
<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>
</table>
<%
end if
%>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="5" bgcolor="#d8d8d8" height="1"></td>
</tr>
<%
query = "SELECT T_Name as d_name "
query = query & "FROM v_Department "
query = query & "WHERE before_t_cd1 = '" & p_depart_dep & "' "
rsp.Open query, adoConn, 1
if rsp.RecordCount > 0 then
tmp_teamname = rsp("d_name")
end if
rsp.Close
%>
<input type="hidden" name="depart" value="<%=tmp_teamname%>">
<input type="hidden" name="writedate" value="<%=year(now()) & "<22><> " & month(now()) & "<22><> " & day(now()) & "<22><>"%>">
<tr>
<td colspan="2" width="50%" style="padding:7 0 7 20"><b><3E>μ<EFBFBD><CEBC><EFBFBD> : <%=tmp_teamname%></b></td>
<td></td>
<td colspan="2" width="50%" class="tahoma" align="right"><3E>ۼ<EFBFBD><DBBC><EFBFBD><EFBFBD><EFBFBD> : <%=year(now()) & "<22><> " & month(now()) & "<22><> " & day(now()) & "<22><> "%></td>
</tr>
<tr>
<td colspan="5" bgcolor="#d8d8d8" height="1"></td>
</tr>
<tr>
<td colspan="5" height="10"></td>
</tr>
<tr height="26">
<td width="28%" align="center" class='tit2' style="line-height: 26px; border-bottom: 0px;"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><>ȣ</td>
<td width="72%" colspan="4" class='tit7' style="padding-left: 10px; border-bottom: 0px;">
<b class="tahoma_blue"><%=p_child_sn_tmp%></b>&nbsp;
<!-- <img src="/images/approval/btn_directcost_view.jpg" align="absmiddle" onClick="openit('<%=p_sn%>')" style="CURSOR:pointer;"> -->
<input type="hidden" name="p_sub_type" style="width:150;" value="<%=p_sub_type %>">
<input type="hidden" name="p_state" style="width:150;" value="<%=p_state %>">
<input type="hidden" name="p_depart_dep" style="width:150;" value="<%=p_depart_dep %>">
<input type="hidden" name="p_memo" style="width:150;" value="<%=p_memo %>">
</td>
</tr>
<tr>
<td align="center" class='tit2' style="line-height: 26px; border-bottom: 0px;"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><></td>
<td colspan="4" class='tit7' style="padding-left: 10px; border-bottom: 0px;">
<%=p_subject%>
</td>
</tr>
<tr>
<td align="center" class='tit2' style="line-height: 26px; border-bottom: 0px;">Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ ȸ<><C8B8></td>
<td colspan="4" class='tit7' style="padding-left: 10px; border-bottom: 0px;">
<%=p_cli_company_nm%>
</td>
</tr>
<tr>
<td align="center" class='tit2' style="line-height: 26px; border-bottom: 0px;"><3E><><EFBFBD><EFBFBD> <20>Ⱓ</td>
<td colspan="4" class='tit7' style="padding-left: 10px; border-bottom: 0px;">
<%=p_con_date_st%> ~ <%=p_con_date_end%>
</td>
</tr>
<tr>
<td align="center" class='tit2' style="line-height: 26px; border-bottom: 0px;"><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></td>
<td colspan="4" class='tit7' style="padding-left: 10px; border-bottom: 0px;">
<%=p_decide_date%>
</td>
</tr>
<tr>
<td align="center" class='tit2' style="line-height: 26px; border-bottom: 0px;"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td colspan="4" class='tit7' style="padding-left: 10px; border-bottom: 0px;">
<b class="tahoma"><%=p_cont_cost%><3E><></b> (<font class="tahoma_red">VAT <20><><EFBFBD><EFBFBD></font>)
</td>
</tr>
<tr>
<td align="center" class='tit2' style="line-height: 26px; border-bottom: 0px;"><3E><>ü<EFBFBD><C3BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD>+<2B>ǻ<EFBFBD>) <20><><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD>)</td>
<td colspan="4" class='tit7' style="padding-left: 10px; border-bottom: 0px;">
<%
q = " select sum(T.total_money) as total_money "
q = q + " from( "
q = q + " select sum(convert(money, est_money)) as total_money from direct_cost "
q = q + " where p_sn like '" & p_sn & "' and cost_type = 'research' and del_yes_no = 'no' "
If p_sub_type = "C" Then
q = q + " and p_child_sn = '" & Request("p_child_sn") & "' "
Else
q = q + " and p_child_sn like '" & p_sn & "_M%' "
End if
q = q + " union all "
q = q + " select sum(convert(money, est_money)) as total_money from direct_cost "
q = q + " where p_sn like '" & p_sn & "' and cost_type = 'field' and del_yes_no = 'no' "
If p_sub_type = "C" Then
q = q + " and p_child_sn = '" & Request("p_child_sn") & "' "
Else
q = q + " and p_child_sn like '" & p_sn & "_M%' "
End if
q = q + " ) as T "
rsp.Open q, adoConn, 1
tmp_total_money = ""
tmp_total_rate = ""
if rsp.RecordCount = 1 Then
if rsp("total_money") <> "" then
tmp_len = len(rsp("total_money"))
for i = 1 to int(tmp_len)
if i mod 3 = 1 and i <> 1 then
tmp_total_money = "," & tmp_total_money
end if
tmp_total_money = left(right(rsp("total_money"),i), 1) & tmp_total_money
Next
tmp_total_rate = formatnumber((tmp_total_money / p_cont_cost) * 100, 2)
Else
tmp_total_money = "0"
tmp_total_rate = "0"
end If
%>
<b class="tahoma"><%=tmp_total_money%><3E><></b> (<font class="tahoma_red">VAT <20><><EFBFBD><EFBFBD></font>), <20><><EFBFBD><EFBFBD> : <b class="tahoma_blue"> <%=tmp_total_rate%>%</b>
<input type="hidden" name="esticostprop" value="<%=tmp_total_rate%>">
<%
end if
rsp.Close
%>
</td>
</tr>
<tr>
<td align="center" class='tit2' style="line-height: 26px; border-bottom: 0px;"><3E>뿪<EFBFBD><EBBFAA><EFBFBD><EFBFBD></td>
<td colspan="4" class='tit7' style="padding-left: 10px;">
<% q = "SELECT c_kind_code, c_common_code, c_code_name FROM T_COMMON_CODE_DETAIL WHERE c_kind_code = '011' "
rsp.Open q, adoConn, 1
if rsp.RecordCount > 0 then
for i = 1 to rsp.RecordCount
if p_export_range = rsp("c_common_code") then
%>
<%=rsp("c_code_name")%>
<input type="hidden" name="p_export_range" value="<%=rsp("c_common_code")%>">
<%
end if
rsp.MoveNext
next
end if
rsp.Close %>
</td>
</tr>
<tr>
<td colspan="5" height="20"></td>
</tr>
<tr>
<td style="padding:0px;" colspan="5">
<table width="100%" cellpadding="3" cellspacing="0" border="0" style="border-collapse:collapse;">
<tr height="30px;">
<td align="center" class='tit2' width=100><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<!-- <td align="center" ><3E>ǻ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></td>-->
<td align="center" class='tit2'><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td align="center" class='tit2'><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td align="center" class='tit2'>ǥ<><C7A5><EFBFBD><EFBFBD></td>
<td align="center" class='tit2'><3E><><EFBFBD><EFBFBD><EFBFBD>Ⱓ</td>
<td align="center" class='tit2'><3E><><EFBFBD><EFBFBD><EFBFBD>з<EFBFBD></td>
<td align="center" class='tit2'><3E>ǻ<EFBFBD><C7BB><EFBFBD><EFBFBD><EFBFBD></td>
</tr>
<!-- loop start -->
<%
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
query = " SELECT PMC.p_method_cd, p_method_nm, p_sur_area, p_sur_target, p_sample, p_research_date_st, p_research_date_end, p_sur_part, p_field_process, p_child_sn "
query = query & " ,p_rsch_dept, p_field_dept, p_is_dept, p_supp_dept "
query = query & " ,p_rsch_1_a, p_rsch_2_a, p_rsch_3_a, p_rsch_4_a "
query = query & " ,p_rsch_1_b, p_rsch_2_b, p_rsch_3_b, p_rsch_4_b "
query = query & " ,p_rsch_1_c, p_rsch_2_c, p_rsch_3_c, p_rsch_4_c "
query = query & " ,p_sv_1, p_sv_2, p_sv_3, p_sv_4 "
query = query & " ,p_code_1, p_code_2, p_code_3, p_code_4 "
query = query & " ,p_verify_1, p_verify_2, p_verify_3, p_verify_4 "
query = query & " ,p_dp_1, p_dp_2, p_dp_3, p_dp_4 "
query = query & " ,p_it_1, p_it_2, p_it_3, p_it_4 "
query = query & " ,p_supp_1, p_supp_2, p_supp_3, p_supp_4 "
query = query & " ,p_rsch_date_st, p_rsch_date_end, p_field_date_st, p_field_date_end, p_code_date_st, p_code_date_end "
query = query & " ,p_verify_date_st, p_verify_date_end, p_dp_date_st, p_dp_date_end, p_it_date_st, p_it_date_end "
query = query & " ,p_premeet_date, p_premeet_time, p_premeet_place "
query = query & " ,p_ot_date, p_ot_time, p_ot_place, p_sur_memo, p_memo, p_progress_status "
query = query & " FROM T_PROJECT_METHOD PM INNER JOIN T_PROJECT_METHOD_CD PMC ON PM.p_method_cd = PMC.p_method_cd "
query = query & " WHERE p_method_yn = 'y' "
query = query & " AND p_sn = '" & p_sn & "'"
If p_sub_type = "C" Then
query = query & " AND PM.p_sub_type = 'C' "
query = query & " AND PM.p_method_cd = '" & Request("p_method_cd") & "' "
query = query & " AND PM.p_child_sn = '" & Request("p_child_sn") & "' "
Else
query = query & " AND PM.p_sub_type = 'M' "
End If
rsa.Open query, adoConn, 1
research_count = rsa.RecordCount
%>
<input type="hidden" name="research_count" style="width:150;" value="<%=research_count %>">
<%
Dim p_method_cd()
Dim p_child_sn()
p_index = ""
Dim p_sur_area()
Dim p_sur_target()
Dim p_sample()
Dim p_research_date_st()
Dim p_research_date_end()
Dim p_sur_part()
Dim p_field_process()
Dim p_rsch_dept()
Dim p_field_dept()
Dim p_is_dept()
Dim p_supp_dept()
Dim p_rsch_1_a()
Dim p_rsch_2_a()
Dim p_rsch_3_a()
Dim p_rsch_4_a()
Dim p_rsch_1_b()
Dim p_rsch_2_b()
Dim p_rsch_3_b()
Dim p_rsch_4_b()
Dim p_rsch_1_c()
Dim p_rsch_2_c()
Dim p_rsch_3_c()
Dim p_rsch_4_c()
Dim p_sv_1()
Dim p_sv_2()
Dim p_sv_3()
Dim p_sv_4()
Dim p_code_1()
Dim p_code_2()
Dim p_code_3()
Dim p_code_4()
Dim p_verify_1()
Dim p_verify_2()
Dim p_verify_3()
Dim p_verify_4()
Dim p_dp_1()
Dim p_dp_2()
Dim p_dp_3()
Dim p_dp_4()
Dim p_it_1()
Dim p_it_2()
Dim p_it_3()
Dim p_it_4()
Dim p_supp_1()
Dim p_supp_2()
Dim p_supp_3()
Dim p_supp_4()
Dim p_rsch_date_st()
Dim p_rsch_date_end()
Dim p_field_date_st()
Dim p_field_date_end()
Dim p_code_date_st()
Dim p_code_date_end()
Dim p_verify_date_st()
Dim p_verify_date_end()
Dim p_dp_date_st()
Dim p_dp_date_end()
Dim p_it_date_st()
Dim p_it_date_end()
Dim p_premeet_date()
Dim p_premeet_time()
Dim p_premeet_place()
Dim p_ot_date()
Dim p_ot_time()
Dim p_ot_place()
Dim p_progress_status()
Dim p_sur_memo()
ReDim p_method_cd(research_count, 2)
ReDim p_child_sn(research_count)
ReDim p_sur_area(research_count)
ReDim p_sur_target(research_count)
ReDim p_sample(research_count)
ReDim p_research_date_st(research_count)
ReDim p_research_date_end(research_count)
ReDim p_sur_part(research_count)
ReDim p_field_process(research_count)
ReDim p_rsch_dept(research_count)
ReDim p_field_dept(research_count)
ReDim p_is_dept(research_count)
ReDim p_supp_dept(research_count)
ReDim p_rsch_1_a(research_count)
ReDim p_rsch_2_a(research_count)
ReDim p_rsch_3_a(research_count)
ReDim p_rsch_4_a(research_count)
ReDim p_rsch_1_b(research_count)
ReDim p_rsch_2_b(research_count)
ReDim p_rsch_3_b(research_count)
ReDim p_rsch_4_b(research_count)
ReDim p_rsch_1_c(research_count)
ReDim p_rsch_2_c(research_count)
ReDim p_rsch_3_c(research_count)
ReDim p_rsch_4_c(research_count)
ReDim p_sv_1(research_count)
ReDim p_sv_2(research_count)
ReDim p_sv_3(research_count)
ReDim p_sv_4(research_count)
ReDim p_code_1(research_count)
ReDim p_code_2(research_count)
ReDim p_code_3(research_count)
ReDim p_code_4(research_count)
ReDim p_verify_1(research_count)
ReDim p_verify_2(research_count)
ReDim p_verify_3(research_count)
ReDim p_verify_4(research_count)
ReDim p_dp_1(research_count)
ReDim p_dp_2(research_count)
ReDim p_dp_3(research_count)
ReDim p_dp_4(research_count)
ReDim p_it_1(research_count)
ReDim p_it_2(research_count)
ReDim p_it_3(research_count)
ReDim p_it_4(research_count)
ReDim p_supp_1(research_count)
ReDim p_supp_2(research_count)
ReDim p_supp_3(research_count)
ReDim p_supp_4(research_count)
ReDim p_rsch_date_st(research_count)
ReDim p_rsch_date_end(research_count)
ReDim p_field_date_st(research_count)
ReDim p_field_date_end(research_count)
ReDim p_code_date_st(research_count)
ReDim p_code_date_end(research_count)
ReDim p_verify_date_st(research_count)
ReDim p_verify_date_end(research_count)
ReDim p_dp_date_st(research_count)
ReDim p_dp_date_end(research_count)
ReDim p_it_date_st(research_count)
ReDim p_it_date_end(research_count)
ReDim p_premeet_date(research_count)
ReDim p_premeet_time(research_count)
ReDim p_premeet_place(research_count)
ReDim p_ot_date(research_count)
ReDim p_ot_time(research_count)
ReDim p_ot_place(research_count)
ReDim p_progress_status(research_count)
ReDim p_sur_memo(research_count)
if research_count > 0 then
for i = 1 to research_count
'p_sub_type
'p_child_sn
p_method_cd(i, 1) = rsa("p_method_cd")
p_method_cd(i, 2) = rsa("p_method_nm")
p_child_sn(i) = rsa("p_child_sn")
p_sur_area(i) = rsa("p_sur_area")
p_sur_target(i) = rsa("p_sur_target")
p_sample(i) = rsa("p_sample")
p_research_date_st(i) = rsa("p_research_date_st")
p_research_date_end(i) = rsa("p_research_date_end")
p_sur_part(i) = rsa("p_sur_part")
p_field_process(i) = rsa("p_field_process")
p_rsch_dept(i) = rsa("p_rsch_dept")
p_field_dept(i) = rsa("p_field_dept")
p_is_dept(i) = rsa("p_is_dept")
p_supp_dept(i) = rsa("p_supp_dept")
p_rsch_1_a(i) = rsa("p_rsch_1_a")
p_rsch_2_a(i) = rsa("p_rsch_2_a")
p_rsch_3_a(i) = rsa("p_rsch_3_a")
p_rsch_4_a(i) = rsa("p_rsch_4_a")
p_rsch_1_b(i) = rsa("p_rsch_1_b")
p_rsch_2_b(i) = rsa("p_rsch_2_b")
p_rsch_3_b(i) = rsa("p_rsch_3_b")
p_rsch_4_b(i) = rsa("p_rsch_4_b")
p_rsch_1_c(i) = rsa("p_rsch_1_c")
p_rsch_2_c(i) = rsa("p_rsch_2_c")
p_rsch_3_c(i) = rsa("p_rsch_3_c")
p_rsch_4_c(i) = rsa("p_rsch_4_c")
p_sv_1(i) = rsa("p_sv_1")
p_sv_2(i) = rsa("p_sv_2")
p_sv_3(i) = rsa("p_sv_3")
p_sv_4(i) = rsa("p_sv_4")
p_code_1(i) = rsa("p_code_1")
p_code_2(i) = rsa("p_code_2")
p_code_3(i) = rsa("p_code_3")
p_code_4(i) = rsa("p_code_4")
p_verify_1(i) = rsa("p_verify_1")
p_verify_2(i) = rsa("p_verify_2")
p_verify_3(i) = rsa("p_verify_3")
p_verify_4(i) = rsa("p_verify_4")
p_dp_1(i) = rsa("p_dp_1")
p_dp_2(i) = rsa("p_dp_2")
p_dp_3(i) = rsa("p_dp_3")
p_dp_4(i) = rsa("p_dp_4")
p_it_1(i) = rsa("p_it_1")
p_it_2(i) = rsa("p_it_2")
p_it_3(i) = rsa("p_it_3")
p_it_4(i) = rsa("p_it_4")
p_supp_1(i) = rsa("p_supp_1")
p_supp_2(i) = rsa("p_supp_2")
p_supp_3(i) = rsa("p_supp_3")
p_supp_4(i) = rsa("p_supp_4")
p_rsch_date_st(i) = rsa("p_rsch_date_st")
p_rsch_date_end(i) = rsa("p_rsch_date_end")
p_field_date_st(i) = rsa("p_field_date_st")
p_field_date_end(i) = rsa("p_field_date_end")
p_code_date_st(i) = rsa("p_code_date_st")
p_code_date_end(i) = rsa("p_code_date_end")
p_verify_date_st(i) = rsa("p_verify_date_st")
p_verify_date_end(i) = rsa("p_verify_date_end")
p_dp_date_st(i) = rsa("p_dp_date_st")
p_dp_date_end(i) = rsa("p_dp_date_end")
p_it_date_st(i) = rsa("p_it_date_st")
p_it_date_end(i) = rsa("p_it_date_end")
p_premeet_date(i) = rsa("p_premeet_date")
p_premeet_time(i) = rsa("p_premeet_time")
p_premeet_place(i) = rsa("p_premeet_place")
p_ot_date(i) = rsa("p_ot_date")
p_ot_time(i) = rsa("p_ot_time")
p_ot_place(i) = rsa("p_ot_place")
p_sur_memo(i) = rsa("p_sur_memo")
If rsa("p_progress_status") <> "" Then
p_progress_status(i) = rsa("p_progress_status")
Else
p_progress_status(i) = "001"
End if
%>
<tr bgcolor="<%=tmp_bgcolor%>">
<td align="left" style="padding-left: 10px;" class='tit7'> <!-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> -->
<%=rsa("p_method_nm")%>
<input type="hidden" name="p_method_cd<%=i %>" style="width:80;" value="<%=p_method_cd(i, 1)%>" readonly>
<input type="hidden" name="p_child_sn<%=i %>" style="width:80;" value="<%=p_child_sn(i)%>" readonly>
<input type="hidden" name="p_progress_status<%=i %>" style="width:150;" value="<%=p_progress_status(i)%>">
</td>
<td align="center" style="display:none;"> <!-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> -->
<%
q = " select sum(convert(money, est_money)) as total_money from direct_cost "
q = q + " where p_sn like '" & p_sn & "' and cost_type = 'field' and del_yes_no = 'no' and p_child_sn = '" & p_child_sn(i) & "' "
rsp.Open q, adoConn, 1
tmp_total_money = ""
if rsp.RecordCount = 1 Then
if rsp("total_money") <> "" then
tmp_len = len(rsp("total_money"))
for j = 1 to int(tmp_len)
if j mod 3 = 1 and j <> 1 then
tmp_total_money = "," & tmp_total_money
end if
tmp_total_money = left(right(rsp("total_money"),j), 1) & tmp_total_money
Next
Else
tmp_total_money = "0"
end If
%>
<b class="tahoma"><%=tmp_total_money%><3E><></b>
<%
end if
rsp.Close
%>
</td>
<td align="center" class='tit7'> <!-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> -->
<% q = "SELECT c_kind_code, c_common_code, c_code_name FROM T_COMMON_CODE_DETAIL WHERE c_kind_code = '012' "
rsp.Open q, adoConn, 1
if rsp.RecordCount > 0 then
for j = 1 to rsp.RecordCount
if p_sur_area(i) = rsp("c_common_code") then
%>
<%=rsp("c_code_name")%>
<%
end if
rsp.MoveNext
next
end if
rsp.Close %>
</td>
<td align="center" class='tit7'> <!-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> -->
<% q = "SELECT c_kind_code, c_common_code, c_code_name FROM T_COMMON_CODE_DETAIL WHERE c_kind_code = '013' "
rsp.Open q, adoConn, 1
if rsp.RecordCount > 0 then
for j = 1 to rsp.RecordCount
if p_sur_target(i) = rsp("c_common_code") then
%>
<%=rsp("c_code_name")%>
<%
end If
rsp.MoveNext
next
end if
rsp.Close %>
</td>
<td align="center" class='tit7'> <!-- ǥ<><C7A5><EFBFBD><EFBFBD> -->
<%
tmp_sample_cnt = ""
if p_sample(i) <> "" then
tmp_len = len(p_sample(i))
for j = 1 to int(tmp_len)
if j mod 3 = 1 and j <> 1 then
tmp_sample_cnt = "," & tmp_sample_cnt
end if
tmp_sample_cnt = left(right(p_sample(i),j), 1) & tmp_sample_cnt
Next
Else
tmp_sample_cnt = "0"
end If
%>
<%=tmp_sample_cnt%>
</td>
<td align="center" class='tit7'> <!-- <20><><EFBFBD><EFBFBD><EFBFBD>Ⱓ -->
<%=p_research_date_st(i)%> ~ <%=p_research_date_end(i)%>
</td>
<td align="center" class='tit7'> <!-- <20><><EFBFBD><EFBFBD><EFBFBD>з<EFBFBD> -->
<% q = "SELECT c_kind_code, c_common_code, c_code_name FROM T_COMMON_CODE_DETAIL WHERE c_kind_code = '014' "
rsp.Open q, adoConn, 1
if rsp.RecordCount > 0 then
for j = 1 to rsp.RecordCount
if p_sur_part(i) = rsp("c_common_code") then
%>
<%=rsp("c_code_name")%>
<%
end If
rsp.MoveNext
next
end if
rsp.Close %>
</td>
<td align="center" class='tit7'> <!-- <20>ǻ<EFBFBD><C7BB><EFBFBD><EFBFBD><EFBFBD> -->
<% q = "SELECT c_kind_code, c_common_code, c_code_name FROM T_COMMON_CODE_DETAIL WHERE c_kind_code = '015' "
rsp.Open q, adoConn, 1
if rsp.RecordCount > 0 then
for j = 1 to rsp.RecordCount
if p_field_process(i) = rsp("c_common_code") then
%>
<%=rsp("c_code_name")%>
<%
end if
rsp.MoveNext
next
end if
rsp.Close %>
</td>
</tr>
<%
rsa.MoveNext
next
end if
rsa.Close
%>
<!-- loop end -->
</table>
</td>
</tr>
<tr>
<td colspan="5" height="20"></td>
</tr>
<tr>
<td align="center" class='tit2'><3E><><EFBFBD><EFBFBD></td>
<td colspan="4" class='tit7' >
<textarea style="width:99%;height:60;" name="p_memo_etc"></textarea>
</td>
</tr>
<!--tr>
<td colspan="2" style="padding:20 0 0 0" align="center">
<09><>) <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ΰ<EFBFBD><CEB0><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ݾ<EFBFBD><DDBE><EFBFBD>
</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 src="/images/approval/docbg_btm.jpg"></td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</body>
</html>

View File

@@ -0,0 +1,224 @@
<!-- #include virtual = "lib/config.asp" -->
<%
dim doc_type : doc_type = "project_report"
'''<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȹ<EFBFBD><C8B9> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
''<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ӿ<EFBFBD><D3BF><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>(2013-03<30><33>)
set rsp = server.CreateObject("ADODB.RECORDSET")
set rsm = server.CreateObject("ADODB.RECORDSET")
p_sn = request("p_sn")
x = request("x")
l = request("l")
p_memo_etc = request("p_memo_etc")
tmp_txt1 = request("tmp_txt1")
tmp_txt2 = request("tmp_txt2")
tmp_txt3 = request("tmp_txt3")
tmp_txt4 = request("tmp_txt4")
tmp_txt5 = request("tmp_txt5")
tmp_txt6 = request("tmp_txt6")
tmp_txt7 = request("tmp_txt7")
tmp_txt8 = request("tmp_txt8")
tmp_txt9 = request("tmp_txt9")
tmp_txt10 = request("tmp_txt10")
depart = request("depart")
writedate = request("writedate")
subject = request("subject")
client = request("client")
cliname = request("cliname")
budget = request("budget")
vat = request("vat")
esticost = request("esticost")
esticostprop = request("esticostprop")
rschname = request("rschname")
sv = request("sv")
dp = request("dp")
extract = request("extract")
intention = request("intention")
surveycnt = request("surveycnt")
method = request("method")
sample = request("sample")
contactor = request("contactor")
cliclass = request("cliclass")
target = request("target")
area = request("area")
convdate = request("convdate")
convterm = request("convterm")
report = request("report")
premeet = request("premeet")
ot = request("ot")
fielddate = request("fielddate")
punchdate = request("punchdate")
dpdate = request("dpdate")
p_export_range = request("p_export_range")
p_sub_type = request("p_sub_type")
if x = "2" then
realcost = request("realcost")
realcostprop = request("realcostprop")
convterm2 = request("convterm2")
report2 = request("report2")
premeet2 = request("premeet2")
ot2 = request("ot2")
fielddate2 = request("fielddate2")
punchdate2 = request("punchdate2")
dpdate2 = request("dpdate2")
end if
'--------------------------------------------------------------------
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
query = "SELECT * "
query = query & "FROM Document "
query = query & "WHERE d_no LIKE 'KRC-" & year(date()) & "-V-%' "
query = query & "ORDER BY d_sn DESC "
'Response.Write query & "<BR>"
rsc.Open query, adoConn, 1
if rsc.RecordCount > 0 then
tmp_cnt = right("0000" & int(right(rsc("d_no"), 5)) + 1, 5)
else
tmp_cnt = "00001"
end if
rsc.Close
tmp_document_cnt = "KRC-" & year(date()) & "-V-" & tmp_cnt
'Response.Write tmp_document_cnt & "<BR>"
'--------------------------------------------------------------------
esticostprop = Replace(esticostprop, "," ,"")
%>
<!-- #include file = "../approval/inc_payapproval.asp" -->
<!-- #include file = "../approval/inc_payapproval_line.asp" -->
<!-- #include file = "../approval/inc_preapproval.asp" -->
<%
'====================================================================
'Document table<6C><65> <20><><EFBFBD><EFBFBD>
query = "INSERT INTO Document "
query = query & " (d_no, d_name, d_write_name, d_write_date, d_flag, d_type, "
query = query & " d_order_cnt, d_orders,"
query = query & " d_order1, d_order2, d_order3, d_order4, d_order5, "
query = query & " d_order6, d_order7, d_order8, d_order9, d_order10, "
query = query & " d_view, d_delok) "
query = query & "VALUES "
query = query & " ('" & tmp_document_cnt & "', '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȹ<EFBFBD><C8B9>', '" & Session("loginuser") & "', '" & date() & "', '2', '" & d_type & "', "
query = query & " '" & d_order_cnt & "', '" & d_orders & "', "
query = query & " '" & d_order1 & "', '" & d_order2 & "', '" & d_order3 & "', '" & d_order4 & "', '" & d_order5 & "', "
query = query & " '" & d_order6 & "', '" & d_order7 & "', '" & d_order8 & "', '" & d_order9 & "', '" & d_order10 & "', "
query = query & " 'Y', 'N') "
set dbin = server.CreateObject("ADODB.CONNECTION")
dbin.Open adoConn
dbin.Execute query
dbin.Close
'====================================================================
'====================================================================
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> table <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
target99 = tmp_txt1 & "^^" & tmp_txt2 & "^^" & tmp_txt3 & "^^" & tmp_txt4 & "^^" & tmp_txt5 & "^^ ^^"
target100 = tmp_txt6 & "^^" & tmp_txt7 & "^^" & tmp_txt8 & "^^" & tmp_txt9 & "^^" & tmp_txt10 & "^^ ^^"
if x = "1" then
target1 = "Project <20><><EFBFBD>ຸ<EFBFBD><E0BAB8><EFBFBD><EFBFBD>"
realcost = " "
realcostprop= " "
tmp_p_child_sn = ""
If p_sub_type = "C" Then
tmp_p_child_sn = request("p_child_sn1")
Else
tmp_p_child_sn = p_sn & "_M01"
End if
elseif x = "2" then
target1 = "Project <20>ϷẸ<CFB7><E1BAB8><EFBFBD><EFBFBD>"
end if
target2 = depart & "^^" & writedate & "^^" & subject & "^^" & client & "^^" & cliname
target3 = budget & "^^" & vat & "^^" & esticost & "^^" & esticostprop & "^^" & realcost & "^^" & realcostprop
target4 = rschname & "^^" & sv & "^^" & dp & "^^" & extract & "^^" & intention & "^^" & surveycnt & "^^" & method & "^^" & sample
target5 = contactor & "^^" & cliclass & "^^" & target & "^^" & area
target6 = convdate & "^^" & convterm & "^^" & report & "^^" & premeet & "^^" & ot & "^^" & fielddate & "^^" & punchdate & "^^" & dpdate
target7 = convdate & "^^" & convterm2 & "^^" & report2 & "^^" & premeet2 & "^^" & ot2 & "^^" & fielddate2 & "^^" & punchdate2 & "^^" & dpdate2
'--------------------------------------------------------------------
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> table<6C><65> <20><><EFBFBD><EFBFBD>
query = "INSERT INTO <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> "
query = query & " (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20>߱<EFBFBD><DFB1><EFBFBD>, <20>߱޽ð<DEBD>, login_p_no, login_<6E≯<EFBFBD>, login_ip, del_yes_no, "
query = query & " target1, target2, target3, target4, target5, target6, target7, target10, target99, target100, p_sn, p_child_sn) "
query = query & "VALUES "
query = query & " ('" & tmp_document_cnt & "', '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȹ<EFBFBD><C8B9>', '" & date() & "', '" & time() & "', '" & Session("User_Number") & "', '" & Session("loginuser") & "', '" & Request.ServerVariables("REMOTE_ADDR") & "', 'no', "
query = query & " '" & target1 & "', '" & target2 & "', '" & target3 & "', '" & target4 & "', '" & target5 & "', '" & target6 & "', '" & target7 & "', '" & p_memo_etc & "', '" & target99 & "', '" & target100 & "', '" & p_sn & "', '" & tmp_p_child_sn & "') "
dbin.Open adoConn
dbin.Execute query
dbin.Close
query = "UPDATE [project2].[dbo].[T_PROJECT_METHOD] "
query = query & "SET p_progress_status = '007' "
query = query & "WHERE p_sn = '" & p_sn & "' "
query = query & "and p_sub_type = '" & p_sub_type & "' "
If p_sub_type = "C" Then
query = query & " and p_child_sn = '" & tmp_p_child_sn & "' "
End if
adoconn.Execute query
'====================================================================
'<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 = '" & p_sn & "' "
query = query & "and p_sub_type = '" & p_sub_type & "' "
If request("p_sub_type") = "C" Then
query = query & " and p_child_sn = '" & tmp_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 = '" & 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 & "'" & tmp_document_cnt & "', "
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 & "'" & Session("USERIP") & "')"
adoconn.execute query
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(x) {
<% if d_order_cnt = 77 then %>
alert('<27><><EFBFBD><EFBFBD><EFBFBD>Ϸ<EFBFBD> <20>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>');
<% else %>
alert('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>û <20>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>');
<% end if %>
self.close();
}
</script>
</head>
<body onLoad="goit('<%=l%>')">
<form name="pms" method="post">
<input type="hidden" name="p_sn" value="<%=p_sn%>">
</body>
</html>

1204
project/project_search.asp Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,463 @@
<!-- #include virtual = "lib/config.asp" -->
<%
p_sn = Request("p_sn")
' p_subject = request("p_subject")
' p_depart = request("p_depart")
' p_method = request("p_method")
' p_cli_company = request("p_cli_company")
' p_category = request("p_category")
' p_target_part = request("p_target_part")
' p_area_part = request("p_area_part")
' p_survey_part = request("p_survey_part")
' p_field_process = request("p_field_process")
' p_decide_date_st = request("p_decide_date_st")
' p_decide_date_ed = request("p_decide_date_ed")
' c_common_code = request("c_common_code") '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
' f_file_name = request("f_file_name")
' p_client_type_cd = request("p_client_type_cd")
' p_types1 = request("p_types1")
' p_types2 = request("p_types2")
' p_types3 = request("p_types3")
' project_old_new = request("project_old_new")
' p_export_range = request("p_export_range") '<27>뿪<EFBFBD><EBBFAA><EFBFBD><EFBFBD>
' p_sample_st = request("p_sample_st") 'ǥ<><C7A5><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
' p_sample_ed = request("p_sample_ed") 'ǥ<><C7A5><EFBFBD><EFBFBD> <20><>
' p_intention= replace(replace(request("p_intention"),"'",""),"""","") '<27><><EFBFBD>系<EFBFBD><E7B3BB>
' p_user=replace(replace(request("p_user"),"'",""),"""","") '<27><><EFBFBD><EFBFBD><EFBFBD>η<EFBFBD>
' print_gubn = request("print_gubn") '-- <20><><EFBFBD>±<EFBFBD><C2B1><EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȹ<EFBFBD><C8B9> , <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>) : <20>߰<EFBFBD> 20170721
'-- <20><><EFBFBD><EFBFBD><EFBFBD>η<EFBFBD> <20>˻<EFBFBD>
if p_user<>"" then
w_sql = " select p_no from dbo.person "
w_sql = w_sql & " where p_name='"&p_user&"' "
w_sql = w_sql & " order by p_no desc "
rs.Open w_sql, adoConn, 1
if rs.recordCount>0 then p_user_ck="1" '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
new_p="" : old_p=""
for i = 1 to rs.recordCount
'-- <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ
if cint(i)>1 then new_p = new_p & " or "
new_p = new_p & " TPM.p_rsch_1_a='[krc_id]' or "
new_p = new_p & " TPM.p_rsch_2_a='[krc_id]' or "
new_p = new_p & " TPM.p_rsch_3_a='[krc_id]' or "
new_p = new_p & " TPM.p_rsch_4_a='[krc_id]' or "
new_p = new_p & " TPM.p_rsch_1_b='[krc_id]' or "
new_p = new_p & " TPM.p_rsch_2_b='[krc_id]' or "
new_p = new_p & " TPM.p_rsch_3_b='[krc_id]' or "
new_p = new_p & " TPM.p_rsch_4_b='[krc_id]' or "
new_p = new_p & " TPM.p_rsch_1_c='[krc_id]' or "
new_p = new_p & " TPM.p_rsch_2_c='[krc_id]' or "
new_p = new_p & " TPM.p_rsch_3_c='[krc_id]' or "
new_p = new_p & " TPM.p_rsch_4_c='[krc_id]' or "
new_p = new_p & " TPM.p_sv_1='[krc_id]' or "
new_p = new_p & " TPM.p_sv_2='[krc_id]' or "
new_p = new_p & " TPM.p_sv_3='[krc_id]' or "
new_p = new_p & " TPM.p_sv_4='[krc_id]' or "
new_p = new_p & " TPM.p_code_1='[krc_id]' or "
new_p = new_p & " TPM.p_code_2='[krc_id]' or "
new_p = new_p & " TPM.p_code_3='[krc_id]' or "
new_p = new_p & " TPM.p_code_4='[krc_id]' or "
new_p = new_p & " TPM.p_verify_1='[krc_id]' or "
new_p = new_p & " TPM.p_verify_2='[krc_id]' or "
new_p = new_p & " TPM.p_verify_3='[krc_id]' or "
new_p = new_p & " TPM.p_verify_4='[krc_id]' or "
new_p = new_p & " TPM.p_dp_1='[krc_id]' or "
new_p = new_p & " TPM.p_dp_2='[krc_id]' or "
new_p = new_p & " TPM.p_dp_3='[krc_id]' or "
new_p = new_p & " TPM.p_dp_4='[krc_id]' or "
new_p = new_p & " TPM.p_it_1='[krc_id]' or "
new_p = new_p & " TPM.p_it_2='[krc_id]' or "
new_p = new_p & " TPM.p_it_3='[krc_id]' or "
new_p = new_p & " TPM.p_it_4='[krc_id]' or "
new_p = new_p & " TPM.p_supp_1='[krc_id]' or "
new_p = new_p & " TPM.p_supp_2='[krc_id]' or "
new_p = new_p & " TPM.p_supp_3='[krc_id]' or "
new_p = new_p & " TPM.p_supp_4='[krc_id]' "
new_p=replace(new_p,"[krc_id]",rs(0))
'-- <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ
if cint(i)>1 then old_p = old_p & " or "
old_p = old_p & " p.p_rsch_1='[krc_id]' or "
old_p = old_p & " p.p_rsch_2='[krc_id]' or "
old_p = old_p & " p.p_rsch_3='[krc_id]' or "
old_p = old_p & " p.p_rsch_4='[krc_id]' or "
old_p = old_p & " p.p_rsch_5='[krc_id]' or "
old_p = old_p & " p.p_rsch_6='[krc_id]' "
old_p=replace(old_p,"[krc_id]",rs(0))
rs.movenext
next
rs.close
'-- <20><><EFBFBD><EFBFBD> ---------------------------------------
if len(new_p)>0 then new_p = " and ( " & new_p & ")"
if len(old_p)>0 then old_p = " and ( " & old_p & ")"
'----------------------------------------------
end if
s = request("s")
%>
<head>
<title><%=GNB_TITLE%></title>
<link rel="stylesheet" type="text/css" href="../css/basic.css">
<script language="javascript" src="../js/common.js"></script>
<script src="/js/jquery.min.js"></script>
<script src="/js/jquery-ajax-call.js"></script>
<script src="/js/jquery.form.min.js"></script>
<script language="javascript">
function chkit(txt) {
var f = document.pms;
var url = "project_search_2014.asp";
/*
if((f.p_sn.value=="")&&(f.p_subject.value=="")){
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD>ڵ<EFBFBD> <20>Ǵ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7><EFBFBD> <20>ּž<D6BC> <20>˻<EFBFBD><CBBB><EFBFBD> <20><><EFBFBD><EFBFBD> <20>մϴ<D5B4> ");
return false;
}
*/
if (txt == "1") {
url = url + '?s=1';
}
else {
url = url + '?s=1&command=excel';
}
// if (confirm('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ä<><C3A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>˻<EFBFBD><CBBB>ð<EFBFBD><C3B0><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ɸ<EFBFBD> <20><> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>')) {
// alert(url);
f.action = url;
f.submit();
// }
}
function download(p_sn,f_id) {
url = jPath + "download";
var param = "?p_sn=" + p_sn + "&f_id=" + f_id;
$(location).attr("href", url + param);
}
function openit(a, z, x, y, v) {
if (a == 1) {
//<2F><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD> Ȯ<><C8AE>
if (new_project_2014(z) == 1) {
var url = 'project_list2_dep.asp?p_sn=' + z;
} else {
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȹ<EFBFBD><C8B9> <20>Ǵ<EFBFBD>(p_subtype<70><65> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȹ<EFBFBD><C8B9><EFBFBD><EFBFBD> <20><><EFBFBD>ٰ<EFBFBD> <20>Ǵ<EFBFBD>)
if (x != '') {
var url = 'project_list2_dep_2014.asp?p_sn=' + z;
} else {
if(confirm("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȹ<EFBFBD><C8B9> <20>ۼ<EFBFBD><DBBC><EFBFBD><EFBFBD><EFBFBD> <20>ʾҽ<CABE><D2BD>ϴ<EFBFBD>.\n<><6E><EFBFBD>ȵ<EFBFBD><C8B5><EFBFBD> ȭ<><C8AD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>̵<EFBFBD><CCB5>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?")){
var url = 'project_contact_2014.asp?p_sn=' + z;
}else{
return;
}
}
}
var tmp_width = 1400;
var tmp_height = 800;
if (v != "") {
url = url + "&p_sub_type=" + x + "&p_method_cd=" + y + "&p_child_sn=" + v;
} else {
url = url + "&p_sub_type=" + x + "&p_method_cd=" + y;
}
}
winObj=window.open(url, '', 'left=0,top=0,width=' + tmp_width + ',height=' + tmp_height + ',scrollbars=yes,resizable=yes')
}
function excel_export() {
document.pms.action = "project_search_2014.asp?s=1&command=excel";
document.pms.submit();
}
</script>
</head>
<body topmargin="0" leftmargin="0" onclick="javascript:try{if(winObj.window.focus()){}}catch(exception){}" ondblclick="javascript:try{if(winObj.window.focus()){}}catch(exception){}" >
<form name="pms" method="post">
<input type="hidden" name="project_old_new_check" id= "project_old_new_check" value="<%=project_old_new %>">
<input type="hidden" name="p_types1_check" id= "p_types1_check" value="<%=p_types1%>">
<input type="hidden" name="p_types2_check" id= "p_types2_check" value="<%=p_types2%>">
<input type="hidden" name="p_types3_check" id= "p_types3_check" value="<%=p_types3%>">
<input type="hidden" id="tprint_gubn" value="<%=print_gubn%>" />
<td width="100%" align="center" valign="top">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td>
<% '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>˻<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
if request("s") = 1 then
'======================================================
'<27>ű<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>˻<EFBFBD>
query = " select p_sn, p_subject, isnull(p_depart,'') as p_depart, p_method, p_cli_company, p_conv_date, c_code_name, "
query = query & " count(f_id) as f_id, convert(varchar(10),count(f_file_name))+'<27><>' as f_file_name, "
query = query & " '' as p_name, '' as f_attach_date, p_sub_type, p_method_cd, p_child_sn, p_con_date_end, p_cont_cost, p_sample "
query = query & " FROM ( "
query = query & " SELECT TPB.p_sn as p_sn, TPB.p_subject as p_subject, isnull(D.d_name, '') as p_depart, TPMC.p_method_nm as p_method, TCC.p_cli_company_nm as p_cli_company, "
query = query & " TPM.p_decide_date as p_conv_date, '' as c_code_name, TSA.f_id as f_id, TSA.f_file_name as f_file_name, TSA.f_input_user as f_input_user, per.p_name as p_name, "
query = query & " TSA.f_attach_date as f_attach_date, TPM.p_sub_type, TPM.p_method_cd, isnull(TPM.p_child_sn,tpb.p_sn) as p_child_sn, TPM.p_con_date_end, isnull(TPM.p_cont_cost, '0') as p_cont_cost, ISNULL(TPM.p_sample, '0') as p_sample "
query = query & " FROM T_PROJECT_BASE TPB "
query = query & " LEFT OUTER JOIN T_PROJECT_METHOD TPM ON TPM.p_sn = TPB.p_sn /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> */ "
query = query & " LEFT OUTER JOIN T_PROJECT_METHOD_CD TPMC ON TPM.p_method_cd = TPMC.p_method_cd /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20≯<EFBFBD> <20><><EFBFBD><EFBFBD> */ "
query = query & " LEFT OUTER JOIN Depart D ON TPM.p_rsch_dept = D.d_code /* <20>μ<EFBFBD><CEBC>ڵ<EFBFBD> */ "
query = query & " LEFT OUTER JOIN V_CLIENT_COMP TCC ON TPB.p_cli_company_cd = TCC.p_cli_company_cd /* ȸ<><C8B8><EFBFBD>ڵ<EFBFBD> <20><><EFBFBD><EFBFBD> */ "
query = query & " LEFT OUTER JOIN T_SYSTEM_ATTACH TSA ON TPB.p_sn = TSA.f_p_sn AND f_use_yn = 'y' "
query = query & " LEFT OUTER JOIN T_COMMON_CODE_DETAIL TCCD ON TSA.f_work_type = TCCD.c_kind_code AND TSA.f_kind = TCCD.c_common_code /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> */ "
query = query & " LEFT OUTER JOIN person PER ON TSA.f_input_user = PER.P_NO "
query = query & " WHERE TPB.p_sn='"&p_sn&"' "
query = query & " UNION ALL "
'<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>˻<EFBFBD>
query = query & " SELECT p.p_sn as p_sn, p.p_subject as p_subject, isnull(d.d_name, '') as p_depart, pm.name1 as p_method, C.c_name as p_cli_company, "
query = query & " p.p_conv_date as p_conv_date, TCCD.c_code_name as c_code_name, TSA.f_id as f_id, TSA.f_file_name as f_file_name, "
query = query & " TSA.f_input_user as f_input_user, per.p_name as p_name, TSA.f_attach_date as f_attach_date, '' as p_sub_type, '' as p_method_cd, '' as p_child_sn ,p.p_convdate_end as p_con_date_end, p.p_budget as p_cont_cost, ISNULL(P.p_sample, '0') as p_sample "
query = query & " FROM project P LEFT OUTER JOIN Depart D ON p.p_depart = d.d_code /* <20>μ<EFBFBD><CEBC>ڵ<EFBFBD> <20><><EFBFBD><EFBFBD> */ "
query = query & " LEFT OUTER JOIN p_method pm ON p.p_method = pm.code1 /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> */ "
query = query & " LEFT OUTER JOIN Client C ON p.p_cli_company = C.c_code /* ȸ<><C8B8><EFBFBD≯<EFBFBD> <20><><EFBFBD><EFBFBD> */ "
query = query & " LEFT OUTER JOIN T_SYSTEM_ATTACH TSA ON p.p_sn = TSA.f_p_sn AND TSA.f_use_yn = 'Y' /* ÷<><C3B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> */ "
query = query & " LEFT OUTER JOIN T_COMMON_CODE_DETAIL TCCD ON TSA.f_work_type = TCCD.c_kind_code AND TSA.f_kind = TCCD.c_common_code /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> */ "
query = query & " LEFT OUTER JOIN person PER ON TSA.f_input_user = PER.P_NO /* <20><><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7><EFBFBD> <20≯<EFBFBD> */ "
query = query & " WHERE p_sn='"&p_sn&"' "
query = query & " ) T "
query = query & " where p_depart<>'' "
query = query & " group by p_sn, p_subject, p_depart, p_method, p_cli_company, p_conv_date, c_code_name, p_sub_type, p_method_cd, p_child_sn, p_con_date_end, p_cont_cost, p_sample "
query = query & " order by left(p_sn,7) desc, right(p_sn,2) desc "
rs.Open query, adoConn, 1
%>
<div id = "resultTable" >
<table width="900px" cellpadding="0" cellspacing="0" border="0" align="center" >
<tr>
<td width="35" align="center" height="24" ><3E><><EFBFBD><EFBFBD></td>
<td width="80" align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD>ڵ<EFBFBD></td>
<td width="250" align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE></td>
<td width="50" align="center" height="24" ><3E>μ<EFBFBD></td>
<td width="100" align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td width="120" align="center" height="24" >Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ</td>
<td width="65" align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td width="65" align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td width="65" align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td width="45" align="center" height="24" ><3E><><EFBFBD>ü<EFBFBD></td>
<!-- <td width="60" align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td> -->
<td width="80" align="center" height="24" ><3E><><EFBFBD><EFBFBD></td>
<!-- <td width="55" align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td width="45" align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td> -->
</tr>
<% if rs.recordCount = 0 then %>
<tr height="70" bgcolor="#dbe9f2">
<td width="" colspan="11" align="center" valign="center" style="height:160px"><font color="blue" ><3E><><EFBFBD>ϵ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD></font></td>
</tr>
<% end if
for i = 1 to rs.recordCount
if i mod 2 = 0 then
tmp_bgcolor = "#dbe9f2"
else
tmp_bgcolor = "#ffffff"
end if
p_sn = rs("p_sn")
p_cont_cost=""
if rs("p_cont_cost") <> "" then
tmp_len = len(rs("p_cont_cost"))
for j = 1 to int(tmp_len)
if j mod 3 = 1 and j <> 1 then
p_cont_cost = "," & p_cont_cost
end if
p_cont_cost = left(right(rs("p_cont_cost"),j), 1) & p_cont_cost
next
end If
%>
<tr height="24" bgcolor="<%=tmp_bgcolor%>">
<td width="" align="center" ><%= i %></td>
<td width="" align="center" >
<% If rs("p_child_sn") = "" Then %>
<%=rs("p_sn")%>
<% Else %>
<%=rs("p_child_sn")%>
<% End If %>
</td>
<td width="" align="center" ><a href="javascript:openit('1','<%=rs("p_sn")%>','<%=rs("p_sub_type")%>','<%=rs("p_method_cd")%>','<%=rs("p_child_sn")%>')" class="blue"><%=rs("p_subject") %></a></td>
<td width="" align="center" ><%= Replace(rs("p_depart"), "<22><><EFBFBD><EFBFBD> ", "") %></td>
<td width="" align="center" ><%= rs("p_method") %></td>
<td width="" align="center" ><%= rs("p_cli_company") %></td>
<td width="" align="center" ><%= rs("p_conv_date") %></td>
<td width="" align="center" ><%= rs("p_con_date_end") %></td>
<td width="" align="center" ><%= p_cont_cost %></td>
<td width="" align="center" ><%= rs("p_sample") %></td>
<!-- <td width="" align="center" ><%= rs("c_code_name") %></td> -->
<% if c_common_code <> "" then %>
<td width="" align="center" >
<% If Session("teamplace") <> 10 Then %>
<a href="javascript:download('<%=rs("p_sn")%>','<%=rs("f_id")%>')" class="blue"><%= rs("f_file_name") %></a>
<% else %>
<%= rs("f_file_name") %>
<%end if%>
</td>
<% else %>
<td width="" align="center" ><%= rs("f_file_name") %></td>
<% end if %>
<!-- <td width="" align="center" ><%= rs("p_name") %></td>
<td width="" align="center" ><%= rs("f_attach_date") %></td> -->
</tr>
<%
rs.movenext
next
end if
%>
</table>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</form>
<body>
<script language="javascript">
/*
$(document).ready(function () {
// if ($('#p_client_type_cd').val() == "") {
// $('#p_client_type_cd').css("display", "none");
// }
// if ($('#p_types1').val() == "") {
// $('#p_types1').css("display", "none");
// }
// if ($('#p_types2').val() == "") {
// $('#p_types2').css("display", "none");
// }
// if ($('#p_types3').val() == "") {
// $('#p_types3').css("display", "none");
// }
//alert($('#project_old_new_check').val());
if ($('#project_old_new_check').val() == "") {
$('#project_old_new_check').css("display", "none");
} else if ($('#project_old_new_check').val() == "new") {
$('#p_client_type_cd').css("display", "");
$('#p_types1').css("display", "none");
$('#p_types2').css("display", "none");
$('#p_types3').css("display", "none");
} else if ($('#project_old_new_check').val() == "old") {
$('#p_client_type_cd').css("display", "none");
$('#p_types1').css("display", "");
if ($('#p_types1_check').val() != "") {
$('#p_types2').css("display", "");
ajaxCallJson("project_search_ajax_type2_2014.asp", { p_types1: $('#p_types1_check').val(), p_types2: $('#p_types2_check').val() }, null, "post", "type1ReturnFunc()");
}
if ($('#p_types2_check').val() != "") {
$('#p_types3').css("display", "");
ajaxCallJson("project_search_ajax_type3_2014.asp", { p_types1: $('#p_types1_check').val(), p_types2: $('#p_types2_check').val(), p_types3: $('#p_types3_check').val() }, null, "post", "type2ReturnFunc()");
}
}
});
$("#searchHide").click(function () {
if ($(this).is(':checked')) {
$("#searchTable").hide();
$("#resultTable").height("800px");
} else {
$("#searchTable").show();
$("#resultTable").height("400px");
}
});
function old_new_change() {
var temp = $(':radio[name="project_old_new"]:checked').val();
//alert(temp);
if (temp == "") {
$('#p_client_type_cd').css("display", "none");
$('#p_types1').css("display", "none");
$('#p_types2').css("display", "none");
$('#p_types3').css("display", "none");
$('#p_client_type_cd').val("");
$('#p_types1').val("");
$('#p_types2').val("");
$('#p_types3').val("");
}else if (temp == "old") {
//alert(temp);
$('#p_client_type_cd').css("display", "none");
$('#p_types1').css("display", "");
$('#p_client_type_cd').val("");
} else if (temp == "new") {
$('#p_client_type_cd').css("display", "");
$('#p_types1').css("display", "none");
$('#p_types2').css("display", "none");
$('#p_types3').css("display", "none");
$('#p_types1').val("");
$('#p_types2').val("");
$('#p_types3').val("");
}
}
// function type_change(level) {
// if ($('#p_types1').val() != "") {
// $('#p_types2').css("display", "");
// } else {
// $('#p_types2').css("display", "");
// }
// }
$('#p_types1').change(function () {
$('#p_types3').css("display", "none");
if ($('#p_types1').val() != "") {
$('#p_types2').css("display", "");
ajaxCallJson("project_search_ajax_type2_2014.asp", { p_types1: $('#p_types1').val() }, null, "post", "type1ReturnFunc()");
} else {
$('#p_types2').css("display", "none");
$('#p_types3').css("display", "none");
}
});
$('#p_types2').change(function () {
if ($('#p_types2').val() != "") {
$('#p_types3').css("display", "");
ajaxCallJson("project_search_ajax_type3_2014.asp", { p_types1: $('#p_types1').val(), p_types2: $('#p_types2').val() }, null, "post", "type2ReturnFunc()");
} else {
$('#p_types3').css("display", "none");
}
});
function type1ReturnFunc() {
$("#p_types2 option").remove();
$("#p_types2").append(ajaxResponse);
}
function type2ReturnFunc() {
$("#p_types3 option").remove();
$("#p_types3").append(ajaxResponse);
}
*/
</script>

View File

@@ -0,0 +1,40 @@
<!-- #include virtual = "lib/config.asp" -->
<OBJECT RUNAT=Server PROGID=ADODB.Recordset id=rsp></OBJECT>
<%'
p_types1 = request("p_types1")
p_types2 = request("p_types2")
' Session.CodePage = 65001 '<27>ѱ<EFBFBD>
Response.CharSet = "EUC-KR" '<27>ѱ<EFBFBD>
Response.AddHeader "Pragma","no-cache"
Response.AddHeader "cache-control", "no-staff"
Response.Expires = -1
response.write "<option value=" & "><3E><> <20><></option>" & "<br>"
query = " SELECT * "
query = query & " FROM p_types "
query = query & " WHERE t_type = '2' "
query = query & " AND t_code1 = '" & p_types1 & "' "
query = query & " ORDER BY t_sn "
rsp.Open query, adoConn, 1
'response.write query & "<br>"
for i=1 to rsp.recordCount
response.write "<option value='"& rsp("t_code2")&"' "
if p_types2 = trim(rsp("t_code2")) then
response.write " selected "
end if
response.write ">"&rsp("t_name")&"</option>" & "<br>"
rsp.movenext
next
rsp.close
%>

View File

@@ -0,0 +1,44 @@
<!-- #include virtual = "lib/config.asp" -->
<OBJECT RUNAT=Server PROGID=ADODB.Recordset id=rsp></OBJECT>
<%'
p_types1 = request("p_types1")
p_types2 = request("p_types2")
p_types3 = request("p_types3")
' Session.CodePage = 65001 '<27>ѱ<EFBFBD>
Response.CharSet = "EUC-KR" '<27>ѱ<EFBFBD>
Response.AddHeader "Pragma","no-cache"
Response.AddHeader "cache-control", "no-staff"
Response.Expires = -1
response.write "<option value=" & "><3E><> <20><></option>" & "<br>"
query = " SELECT * "
query = query & " FROM p_types "
query = query & " WHERE t_type = '3' "
query = query & " AND t_code1 = '" & p_types1 & "' "
query = query & " AND t_code2 = '" & p_types2 & "' "
query = query & " ORDER BY t_sn "
'response.write query & "<br>"
rsp.Open query, adoConn, 1
for i=1 to rsp.recordCount
response.write "<option value='"& rsp("t_code3")&"' "
if p_types3 = trim(rsp("t_code3")) then
response.write " selected "
end if
response.write ">"&rsp("t_name")&"</option>" & "<br>"
rsp.movenext
next
rsp.close
%>

View File

@@ -0,0 +1,568 @@
<!-- #include virtual = "lib/config.asp" -->
<!-- #include file = "../include/top_menu.asp" -->
<%
set rsf = server.CreateObject("ADODB.RECORDSET")
y = request("y")
p_depart_dep = request("p_depart_dep")
p_cli_company = request("p_cli_company")
p_cli_code = request("p_cli_code")
p_category = request("p_category")
p_prop_date_st = request("p_prop_date_st")
p_prop_date_ed = request("p_prop_date_ed")
p_subject_tmp = request("p_subject_tmp")
p_types1 = request("p_types1")
p_types2 = request("p_types2")
p_types3 = request("p_types3")
today = request("today")
toyear = request("toyear")
s = request("s") 'ã<><C3A3><EFBFBD>ɼ<EFBFBD>
if request("p_types1") <> "" then
p_types1 = request("p_types1")
else
p_types1 = "0"
end if
if request("p_types2") <> "" then
p_types2 = request("p_types2")
else
p_types2 = "0"
end if
if request("p_types3") <> "" then
p_types3 = request("p_types3")
else
p_types3 = "0"
end if
if y = "1" then
p_types2 = "0"
p_types3 = "0"
elseif y = "2" then
p_types3 = "0"
end if
'------------------------------------------------------
'<27><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD> list<73><74><EFBFBD><EFBFBD>
q = "SELECT max(d_mcode) as max_code "
q = q & "FROM Depart "
rsc.Open q, adoConn, 1
tmp_max = rsc("max_code")
rsc.Close
query = "SELECT * "
query = query & "FROM Depart "
query = query & "WHERE d_mcode>='0' "
'query = query & " AND d_yes_no='Y' "
query = query & "ORDER BY d_mcode ASC "
rsc.open query, adoConn, 1
redim tmp_depart(int(tmp_max),2)
for i = 1 to int(rsc.RecordCount)
tmp_depart(int(rsc("d_code")),1) = rsc("d_code")
tmp_depart(int(rsc("d_code")),2) = rsc("d_name")
rsc.MoveNext
next
rsc.close
'------------------------------------------------------
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
query = "select * from p_Method order by code1 "
rsc.Open query, adoConn, 1
i = rsc.RecordCount
redim method(i,2)
i=0
method(0,0) = request("p_method") '<27><><EFBFBD>õ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
method(0,1) = "0"
method(0,2) = "<22><> ü"
do while not rsc.EOF
i = i + 1
method(i,1) = rsc("code1")
method(i,2) = rsc("name1")
rsc.MoveNext
loop
rsc.Close
'------------------------------------------------------
'category list
query = "SELECT * "
query = query & "FROM p_category "
query = query & "ORDER BY sort_key "
rsc.Open query, adoConn, 1
redim category(int(rsc.RecordCount), 2)
for i = 1 to rsc.RecordCount
category(i,1) = rsc("code1")
category(i,2) = rsc("name1")
rsc.MoveNext
next
rsc.Close
'------------------------------------------------------
'======================================================
'<27>˻<EFBFBD> query <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
if s = "1" then 'ã<><C3A3> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
'======================================================
query = "SELECT * "
query = query & "FROM project2_pre "
'query = query & "WHERE p_sn <> '' "
query = query & "WHERE p_delok = 'Y' "
'<27>μ<EFBFBD>--------------------------------------------------
if p_depart_dep <> "" then
query = query & " AND p_depart_dep = '" & p_depart_dep & "' "
end if
'Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ<EFBFBD><C6AE>------------------------------------------
if p_cli_code <> "" then
query = query & " AND p_cli_company = '" & p_cli_code & "' "
end if
'<27><><EFBFBD>ȱⰣ----------------------------------------------
if p_prop_date_st <> "" AND p_prop_date_ed <> "" then
'<27><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>¥ <20><><EFBFBD>ϱ<EFBFBD>
if cint(right(p_prop_date_ed,2)) > 11 then
edate = cstr(cint(left(p_prop_date_ed,4)) + 1) & "-01-01"
else
if cint(right(p_prop_date_ed,2)) > 8 then
edate = cstr(left(p_prop_date_ed,4)) & "-" & cstr(cint(right(p_prop_date_ed,2)) + 1) & "-01"
else
edate = cstr(left(p_prop_date_ed,4)) & "-0" & cstr(cint(right(p_prop_date_ed,2)) + 1) & "-01"
end if
end if
sdate = p_prop_date_st & "-01"
edate = cdate(edate) - 1
query = query & " AND p_prop_date Between '" & sdate & "' AND '" & edate & "' "
end if
'------------------------------------------------------
if p_types1 <> "0" then
query = query & "AND ("
query = query & " p_types1 = '" & p_types1 & "' "
if p_types2 <> "0" then
query = query & " AND p_types2 = '" & p_types2 & "' "
end if
if p_types3 <> "0" then
query = query & " AND p_types3 = '" & p_types3 & "' "
end if
query = query & ") "
end if
'------------------------------------------------------
query = query & "ORDER BY p_prop_date DESC, p_sn_tmp DESC "
'------------------------------------------------------
tmp_search_query = query
end if'if s = "1" then
'======================================================
%>
<script language=javascript>
function modit(z,x) {
var url = 'project_search_fail_dep.asp?sn=' + z + '&teamname=' + x;
window.open(url,'','left=0,top=0,width=850,height=800,scrollbars=yes,resizable=yes')
}
function search(theURL,winName,features) {
if (features == 'x') {
var width_size = screen.width - 770;
var height_size= screen.height;
features = "left=" + width_size + " top=5 width=770 height=500 scrollbars=yes statbar=no";
}
window.open(theURL,winName,features);
}
function autoday(txt) {
today = new Date();
if (txt == "day")
{
if (document.pms.today.checked == true) {
document.pms.toyear.checked = false;
month = today.getMonth() + 1;
if (month < 10) {
month = '0' + month;
} else {
month = month;
}
document.pms.p_prop_date_st.value = document.pms.p_prop_date_ed.value = today.getYear() + '-' + month;
}
else {
document.pms.p_prop_date_st.value = '';
document.pms.p_prop_date_ed.value = '';
}
}else{
if (document.pms.toyear.checked == true) {
document.pms.today.checked = false;
document.pms.p_prop_date_st.value = today.getYear() + '-' + '01'
document.pms.p_prop_date_ed.value = today.getYear() + '-' + '12';
}
else {
document.pms.p_prop_date_st.value = '';
document.pms.p_prop_date_ed.value = '';
}
}
}
function clsit(a) {
if (a == 1)
{
document.pms.p_prop_date_st.value = '';
document.pms.p_prop_date_ed.value = '';
document.pms.today.checked = false;
document.pms.toyear.checked = false;
}
else if (a == 2)
{
document.pms.p_cli_code.value = '';
document.pms.p_cli_company.value = '';
}
}
function reloadit(a)
{
if (a == 1 || a == 2)
{
document.pms.action = "project_search_fail.asp?y="+a;
document.pms.submit();
}
else
{
location.href = "project_search_fail.asp";
}
}
function chkit(txt) {
var f = document.pms;
if ((f.p_prop_date_st.value != '') || (f.p_prop_date_ed.value != '')) {
if ((f.p_prop_date_st.value == '') || (f.p_prop_date_ed.value == '')) {
alert('<27>Ⱓ<EFBFBD><E2B0A3> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ֽʽÿ<CABD>');
return false;
}
if (f.p_prop_date_st.value > f.p_prop_date_ed.value) {
alert('<27>Ⱓ<EFBFBD><E2B0A3> <20>߸<EFBFBD> <20><><EFBFBD><EFBFBD> <20>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>');
f.p_prop_date_ed.value = '';
return false;
}
}
if (txt == "1")
{
f.action = 'project_search_fail.asp?s=1';
}
else
{
f.action = 'search.asp?w=1&command=excel';
}
if (confirm('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ä<><C3A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>˻<EFBFBD><CBBB>ð<EFBFBD><C3B0><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ɸ<EFBFBD> <20><> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>')) {
f.submit();
}
}
function go_view(url)
{
window.open(url,'','left=0,top=0,width=800,height=800,scrollbars=yes,resizable=yes')
}
</script>
<form name="pms" method="post">
<td width="100%" valign="top">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<!-- Ȯ<><C8AE> -->
</tr>
<tr>
<td colspan="2" style="padding:20;">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td>
<font class="brown"><3E>˻<EFBFBD><CBBB><EFBFBD> <20><><EFBFBD>Ͻô<CFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͻð<CFBD>, ã<><C3A3> <20><>ư<EFBFBD><C6B0> Ŭ<><C5AC><EFBFBD><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>.</font>
</td>
</tr>
<tr>
<td style="padding:5 0 0 0;">
<table width="850" cellpadding="3" cellspacing="0" border="0" style="border-collapse:collapse;">
<tr>
<td colspan="2" height="4" ></td>
</tr>
<tr>
<td width="15%" align="center" ><3E>μ<EFBFBD></td>
<td width="85%" >
<select name="p_depart_dep">
<option value=""><3E><>ü</option>
<%
for i = 1 to int(ubound(tmp_depart))
if ((tmp_depart(i,1) > 0 and tmp_depart(i,1) < 10) or (tmp_depart(i,1) >= 20 and tmp_depart(i,1) <= 49)) and tmp_depart(i,1) <> 3 then '<27><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD>
%>
<option value="<%=tmp_depart(i,1)%>" <% if p_depart_dep = cstr(tmp_depart(i,1)) then %> selected <% end if %>><%=tmp_depart(i,2)%></option>
<%
end if
next
%>
</select>
</td>
</tr>
<tr>
<td align="center" >Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ<EFBFBD><C6AE></td>
<td >
<input type="text" style="width:120;" name="p_cli_company" readonly value="<%=p_cli_company%>" onClick="search('cli_search.asp?v=2','ClientSearch','width=390,height=381,left=100,top=50,scrollbars=yes')" style="cursor:pointer">
<input type="hidden" name="p_cli_code" value="<%=p_cli_code%>">
<img src="/images/project/btn_delete.jpg" align="absmiddle" onClick="clsit('2')">
</td>
</tr>
<tr>
<td align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ⱓ</td>
<td >
<input type="text" style="width:120;" name="p_prop_date_st" readonly value="<%=request("p_prop_date_st")%>" onClick="search('/lib/cal2.asp?x=4','DateSearch','left=500,top=100,width=400,height=200,scrollbars=yes')" style="cursor:pointer"> -
<input type="text" style="width:120;" name="p_prop_date_ed" readonly value="<%=request("p_prop_date_ed")%>" onClick="search('/lib/cal2.asp?x=5','DateSearch','left=500,top=100,width=400,height=200,scrollbars=yes')" style="cursor:pointer">
<input type="checkbox" class="none" name="today" onClick="autoday('day')" <% if today = "on" then %> checked <% end if %>><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<input type="checkbox" class="none" name="toyear" onClick="autoday('year')" <% if toyear = "on" then %> checked <% end if %>><3E><><EFBFBD><EFBFBD><EFBFBD>⵵
<img src="/images/project/btn_delete.jpg" align="absmiddle" onClick="clsit('1')" style="CURSOR:pointer;">
</td>
</tr>
<tr>
<td align="center" ><3E><><EFBFBD><EFBFBD></td>
<td >
<select name="p_types1" onChange="reloadit('1')">
<option value=""><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>.</option>
<%
q = "SELECT * "
q = q & "FROM p_types "
q = q & "WHERE t_type = '1' "
q = q & "ORDER BY t_sn "
rsc.Open q, adoConn, 1
if rsc.RecordCount > 0 then
for i = 1 to rsc.RecordCount
%>
<option value="<%=rsc("t_code1")%>" <% if int(rsc("t_code1")) = int(p_types1) then %> selected <% end if %>><%=rsc("t_name")%></option>
<%
rsc.MoveNext
next
end if
rsc.Close
%>
</select>
<%
if p_types1 <> "" then
%>
&nbsp;&nbsp;&nbsp;
<select name="p_types2" onChange="reloadit('2')">
<option value=""><3E><><EFBFBD><EFBFBD></option>
<%
q = "SELECT * "
q = q & "FROM p_types "
q = q & "WHERE t_type = '2' "
q = q & " AND t_code1 = '" & p_types1 & "' "
q = q & "ORDER BY t_sn "
rsc.Open q, adoConn, 1
if rsc.RecordCount > 0 then
for i = 1 to rsc.RecordCount
%>
<option value="<%=rsc("t_code2")%>" <% if int(rsc("t_code2")) = int(p_types2) then %> selected <% end if %>><%=rsc("t_name")%></option>
<%
rsc.MoveNext
next
end if
rsc.Close
%>
</select>
<%
if p_types2 <> "" and p_types2 <> "0" then
%>
&nbsp;&nbsp;&nbsp;
<select name="p_types3">
<option value=""><3E><><EFBFBD><EFBFBD></option>
<%
q = "SELECT * "
q = q & "FROM p_types "
q = q & "WHERE t_type = '3' "
q = q & " AND t_code1 = '" & p_types1 & "' "
q = q & " AND t_code2 = '" & p_types2 & "' "
q = q & "ORDER BY t_sn "
rsc.Open q, adoConn, 1
if rsc.RecordCount > 0 then
for i = 1 to rsc.RecordCount
%>
<option value="<%=rsc("t_code3")%>" <% if int(rsc("t_code3")) = int(p_types3) then %> selected <% end if %>><%=rsc("t_name")%></option>
<%
rsc.MoveNext
next
end if
rsc.Close
%>
</select>
<%
end if 'if p_types2 <> "" then
%>
<%
end if 'if p_types1 <> "" then
%>
</td>
</tr>
<tr>
<td align="center" colspan="2" style="padding:10 0 0 0">
<img src="/images/common/btn_search.jpg" align="absmiddle" style="cursor:pointer" onClick="chkit('1')">
<img src="/images/common/btn_cancel.jpg" align="absmiddle" style="cursor:pointer" onClick="reloadit()">
</td>
</tr>
<% if request("s") = 1 then %>
<tr>
<td style="padding:10 0 0 0;" colspan="2">
<div style="overflow-x:hidden;overflow-y:scroll;height:24px;width:100%;border:none;">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="20%" align="center" height="24" ><3E><><EFBFBD><EFBFBD></td>
<td width="5%" align="center" height="24" ><3E>⵵</td>
<td width="25%" align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE></td>
<td width="30%" align="center" height="24" colspan="3"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td width="20%" align="center" height="24" >Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ<EFBFBD><C6AE></td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td style="padding:0 0 0 0;" colspan="2">
<div style="overflow-x:hidden;overflow-y:scroll;height:450px;width:100%;border:none;">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<!-- loop start -->
<%
'Response.Write query & "<BR>"
rsc.Open tmp_search_query, adoConn, 1
if rsc.RecordCount > 0 then
for i = 1 to rsc.RecordCount
if i mod 2 = 0 then
tmp_bgcolor="#dbe9f2"
else
tmp_bgcolor=""
end if
%>
<tr height="24" bgcolor="<%=tmp_bgcolor%>" title="<%=rsc("p_subject_tmp")%> - <%=rsc("p_intention")%>">
<td width="20%" align="center">
<%
for j = 1 to ubound(tmp_depart)
if tmp_depart(j,1) = rsc("p_depart_dep") then
Response.Write trim(tmp_depart(j,2))
tmp_teamname = tmp_depart(j,2)
end if
next
%>
</td>
<td width="5%" align="center" ><%=mid(rsc("p_contact_date"),3,2)%><3E><></td>
<td width="25%" align="center" style="CURSOR:pointer;" onclick="modit('<%=rsc("sn")%>','<%=tmp_teamname%>')"><%=rsc("p_subject_tmp")%></td>
<%
p_method = "<22><><EFBFBD><EFBFBD>" '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
for j = 0 to int(ubound(method))
if trim(method(j,1)) = trim(rsc("p_method1")) then
p_method = method(j,2)
exit for
end if
next
%>
<td width="10%" align="center">
<%if p_method = "<22><><EFBFBD><EFBFBD>" then%>
<font color=red><b><%=p_method%></b></font>
<%else%>
<%=p_method%>
<%end if%>
</td>
<%
p_method = "<22><><EFBFBD><EFBFBD>" '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
for j = 0 to int(ubound(method))
if trim(method(j,1)) = trim(rsc("p_method2")) then
p_method = method(j,2)
exit for
end if
next
%>
<td width="10%" align="center">
<%if p_method = "<22><><EFBFBD><EFBFBD>" then%>
<font color=red><b><%=p_method%></b></font>
<%else%>
<%=p_method%>
<%end if%>
</td>
<%
p_method = "<22><><EFBFBD><EFBFBD>" '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
for j = 0 to int(ubound(method))
if trim(method(j,1)) = trim(rsc("p_method3")) then
p_method = method(j,2)
exit for
end if
next
%>
<td width="10%" align="center">
<%if p_method = "<22><><EFBFBD><EFBFBD>" then%>
<font color=red><b><%=p_method%></b></font>
<%else%>
<%=p_method%>
<%end if%>
</td>
<%
tmpstr="&nbsp;"'"Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ <20><>"
query = "SELECT * "
query = query & "FROM [Client] "
query = query & "WHERE c_code='" & rsc("p_cli_company") & "' "
rsf.Open query, adoConn, 1
if rsf.RecordCount > 0 then
tmpstr = rsf("c_name")
end if
rsf.Close
%>
<td width="20%" align="center"><%=tmpstr%></td>
</tr>
<%
rsc.MoveNext
next
else
%>
<%
end if 'if rsc.RecordCount > 0 then
rsc.Close
%>
</table>
</div>
</td>
</tr>
<tr>
<td colspan="2" bgcolor="#d5d5d5" height="1"></td>
</tr>
<tr>
<td colspan="2">
<font class="k_darkorange">* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD> Ŭ<><C5AC><EFBFBD>Ͻø<CFBD> <20>󼼳<EFBFBD><F3BCBCB3><EFBFBD><EFBFBD><EFBFBD> <20><> <20><> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>.</font>
</td>
</tr>
<% end if ''if request("s") = 1 then %>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</form>

View File

@@ -0,0 +1,950 @@
<!-- #include virtual = "lib/config.asp" -->
<%
set rsp = server.CreateObject("ADODB.RECORDSET")
sn = request("sn")
x = request("x")
y = request("y")
%>
<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>
<style>
<!--
.number
{
BORDER-RIGHT: #7c7c7c 1px solid;
BORDER-TOP: #7c7c7c 1px solid;
FONT-SIZE: 9pt;
IME-MODE: disabled;
BORDER-LEFT: #7c7c7c 1px solid;
COLOR: black;
BORDER-BOTTOM: #7c7c7c 1px solid;
HEIGHT: 18px;
TEXT-ALIGN:right;VERTICAL-ALIGN: middle
}
-->
</style>
<title>
<09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD>
</title>
<script language=javascript>
function check_comma(txt,txt2)
{
txt=allTrim(txt);
for(var i=0;i<txt.length;i++){
txt = txt.replace(',','')
txt = txt.replace(' ','')
}
if(eval(txt2)==1){
document.pms.p_del_cprice_chk.checked = false;
document.pms.p_del_cprice.value = allTrim(commify(txt));
}else{
document.pms.p_del_krcprice.value = allTrim(commify(txt));
}
}
function autofnc()
{
if (document.pms.p_del_cprice_chk.checked == true)
{
document.pms.p_del_cprice.value = "";
}
}
function search(theURL,winName,features) {
if (features == 'x') {
var width_size = screen.width - 770;
var height_size= screen.height;
features = "left=" + width_size + " top=5 width=770 height=500 scrollbars=yes statbar=no";
}
window.open(theURL,winName,features);
}
function openit(a) {
var url = "project_contactlist_file.asp?x=1&sn="+a;
window.open(url,'','left=0,top=0,width=400,height=200,scrollbars=yes,resizable=yes')
}
function chkit() {
var f = document.pms;
if (document.pms.p_del_rcompany.value == "0")
{
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>ȸ<EFBFBD>縦 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>");
document.pms.p_del_rcompany.focus();
return false;
}
if ((document.pms.p_del_cprice.value == "") && (document.pms.p_del_cprice_chk.checked == false))
{
alert("<22><><EFBFBD>󰡸<EFBFBD> <20>ۼ<EFBFBD><DBBC><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>");
document.pms.p_del_cprice.value = "";
document.pms.p_del_cprice.focus();
return false;
}
if (document.pms.p_del_krcprice.value == "")
{
alert("KRC<52><43><EFBFBD>Ȱ<EFBFBD><C8B0><EFBFBD> <20>ۼ<EFBFBD><DBBC><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>");
document.pms.p_del_krcprice.value = "";
document.pms.p_del_krcprice.focus();
return false;
}
if (document.pms.p_del_reason1.value == "0")
{
alert("<22><><EFBFBD><EFBFBD> <20>з<EFBFBD> <20>׸<EFBFBD><D7B8><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>");
document.pms.p_del_reason1.focus();
return false;
}
if (document.pms.p_del_reason2.value.trim() == "")
{
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ۼ<EFBFBD><DBBC><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>");
document.pms.p_del_reason2.value = "";
document.pms.p_del_reason2.focus();
return false;
}
document.pms.p_del_reason2.value = document.pms.p_del_reason2.value.trim();
if (document.pms.p_del_cplan.value.trim() == "")
{
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ۼ<EFBFBD><DBBC><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>");
document.pms.p_del_cplan.value = "";
document.pms.p_del_cplan.focus();
return false;
}
document.pms.p_del_cplan.value = document.pms.p_del_cplan.value.trim();
}
function subit(a)
{
if (chkit() == false)
{
return false;
}
if (confirm("<22><><EFBFBD><EFBFBD><EFBFBD>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?"))
{
document.pms.action = 'project_contactlist_reason_ok.asp?x=1';
document.pms.submit();
}
}
function regit(a)
{
if (chkit() == false)
{
return false;
}
/*
if (document.all('table1').style.display == "")
{
if (document.pms.p_subject.value.trim() == "")
{
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD> <20>ۼ<EFBFBD><DBBC><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>");
document.pms.p_subject.value = "";
document.pms.p_subject.focus();
return false;
}
if (confirm("<22><><EFBFBD><EFBFBD><EFBFBD>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?"))
{
document.pms.action = "2propose_dep_reg.asp";
document.pms.submit();
}
}
else
{
//document.pms.action = "2propose_dep.asp?x=1";
//document.pms.submit();
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD> <20>ۼ<EFBFBD><DBBC><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>");
document.all('table1').style.display = "";
document.pms.p_subject.focus();
}
*/
if (confirm("<22><><EFBFBD><EFBFBD><EFBFBD>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?"))
{
document.pms.action = "project_contactlist_dep_reg.asp";
document.pms.submit();
}
}
function clsit() {
self.close();
}
function reloadit(a)
{
//location.href = "2propose_dep.asp?sn="+a;
document.pms.action = "project_contactlist_dep.asp?y="+a;
document.pms.submit();
}
function delit()
{
<% if request.servervariables("REMOTE_ADDR") = session("admin_ip") then %>
document.pms.action = "2propose_reason.asp";
document.pms.submit();
<% else %>
//if (confirm("<22><><EFBFBD><EFBFBD><EFBFBD>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?"))
if (confirm("<22>غ<EFBFBD><D8BA><EFBFBD><EFBFBD>Դϴ<D4B4>"))
{
document.pms.action = "project_contactlist_del_ok.asp";
//document.pms.submit();
}
<% end if %>
}
</script>
</head>
<body>
<form name="pms" method="post">
<input type="hidden" name="sn" value="<%=sn%>">
<%
query = "SELECT * "
query = query & "FROM project2_pre "
query = query & "WHERE sn='" & sn & "' "
rsc.Open query, adoConn, 1
if rsc.RecordCount > 0 then
'<27><><EFBFBD>Ȱ<EFBFBD><C8B0><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>ϵǾ<CFB5> <20>־<EFBFBD><D6BE>߸<EFBFBD> <20><><EFBFBD>ĵ<EFBFBD><C4B5><EFBFBD><EFBFBD><EFBFBD> <20><> <20><> <20><><EFBFBD><EFBFBD>, <20>׷<EFBFBD><D7B7><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>ε<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>˻<EFBFBD><CBBB><EFBFBD>
query = "SELECT * "
query = query & "FROM file_log "
query = query & "WHERE p_sn_tmp = '" & rsc("p_sn_tmp") & "' "
query = query & " AND p_contact_date = '" & rsc("p_contact_date") & "' "
rsp.Open query, adoConn, 1
if rsp.RecordCount > 0 then
if rsp("propose") = "1" then
tmp_file_chk = 1
else
tmp_file_chk = 0
end if
else
tmp_file_chk = 0
end if
rsp.Close
'#### <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ö<EFBFBD><C3B6><EFBFBD><EFBFBD><EFBFBD> <20>ʾƵ<CABE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20>ֵ<EFBFBD><D6B5><EFBFBD> <20><><EFBFBD><EFBFBD>üũ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>׻<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> ###'
tmp_file_chk = 1
if rsc("p_prop_date") <> "" then
tmp_data_ok = 1
else
tmp_data_ok = 0
end if
if request("p_types1") <> "" then
p_types1 = request("p_types1")
else
p_types1 = rsc("p_types1")
end if
if request("p_types2") <> "" then
p_types2 = request("p_types2")
else
p_types2 = rsc("p_types2")
end if
if request("p_types3") <> "" then
p_types3 = request("p_types3")
else
p_types3 = rsc("p_types3")
end if
if y = "1" then
p_types2 = "0"
p_types3 = "0"
elseif y = "2" then
p_types3 = "0"
end if
'Response.Write "p_types1 : " & p_types1 & "<BR>"
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ư<EFBFBD><C6B0> <20><><EFBFBD>̱<EFBFBD> <20><><EFBFBD>ؼ<EFBFBD> <20><><EFBFBD><EFBFBD> <20>μ<EFBFBD> <20>̾<EFBFBD><CCBE><EFBFBD> <20>Ѵ<EFBFBD>.
if int(Session("Depart_Code")) = int(rsc("p_depart")) OR int(Session("Depart_Code")) = int(rsc("p_depart_dep")) OR tmp_admin_chk = "1" then
tmp_modi = "1"
else
tmp_modi = "0"
end if
%>
<table border="0" cellspacing="0" cellpadding="0" width="800">
<tr>
<td width="20%" bgcolor="#BBCEFD" height="2"></td>
<td width="80%" bgcolor="#B8B0A9" height="2"></td>
</tr>
<tr height="30">
<td align="center" bgcolor="#E8F7F7"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ӽù<D3BD>ȣ</td>
<td>
&nbsp;&nbsp;&nbsp;
<font color="blue"><b><%=rsc("p_sn_tmp")%></b></font>
<input type="hidden" name="p_sn_tmp" value="<%=rsc("p_sn_tmp")%>">
</td>
</tr>
<tr height="1">
<td colspan="2" bgcolor="#E0E0E0">
</tr>
<tr height="30">
<td align="center" bgcolor="#E8F7F7">
<09><>&nbsp;&nbsp;<3B><>&nbsp;&nbsp;<3B><>&nbsp;&nbsp;Ʈ&nbsp;&nbsp;&nbsp;<3B><>
</td>
<td>
&nbsp;&nbsp;&nbsp;
<%=rsc("p_subject_tmp")%>
<input type="hidden" name="p_subject_tmp" value="<%=rsc("p_subject_tmp")%>">
<!--font color="red" style="font-size=10pt;margin-left:20;">
* Ư<><C6AF><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ұ<EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><>ȣ, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD>ٸ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͻñ<CFBD> <20>ٶ<EFBFBD><D9B6>ϴ<EFBFBD>)
</font-->
</td>
</tr>
<!--tr height="1">
<td colspan="2" bgcolor="#E0E0E0">
</tr>
<tr height="30">
<td align="center" bgcolor="#E8F7F7">
<09><>&nbsp;<3B><>&nbsp;<3B><>&nbsp;Ʈ&nbsp;&nbsp;&nbsp;<3B><>&nbsp;<3B><>
</td>
<td>
&nbsp;&nbsp;&nbsp;
<input class="input" type="text" name="p_content_tmp" size="50" maxlength="100" value="">
</td>
</tr-->
<tr height="1">
<td colspan="2" bgcolor="#E0E0E0">
</tr>
<tr height="30">
<td align="center" bgcolor="#E8F7F7">
<09><>&nbsp;&nbsp;&nbsp;&nbsp;<3B><>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<3B><>&nbsp;&nbsp;&nbsp;&nbsp;<3B><>
</td>
<td>
&nbsp;&nbsp;&nbsp;
<%
query = "SELECT * "
query = query & "FROM person "
query = query & "WHERE (p_depart <= 10 or (p_depart >= 20 and p_depart <= 49)) and p_admin = 1 and p_resign = 0 "
query = query & " AND p_no = '" & rsc("p_contactor") & "' "
query = query & "ORDER BY p_order "
rsp.Open query, adoConn, 1
%>
<%=rsp("p_name")%>
<%
rsp.Close
%>
</td>
</tr>
<tr height="1">
<td colspan="2" bgcolor="#E0E0E0">
</tr>
<tr height="30">
<td align="center" bgcolor="#E8F7F7">
<09><>&nbsp;&nbsp;&nbsp;&nbsp;<3B><>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<3B><>&nbsp;&nbsp;&nbsp;&nbsp;<3B><>
</td>
<td>
&nbsp;&nbsp;&nbsp;
<%=rsc("p_contact_date")%>
</td>
</tr>
<tr height="1">
<td colspan="2" bgcolor="#E0E0E0">
</tr>
<tr height="30">
<td align="center" bgcolor="#E8F7F7">
Ŭ&nbsp;<3B><>&nbsp;<3B><>&nbsp;<3B><>&nbsp;Ʈ&nbsp;<3B><><EFBFBD><EFBFBD>
</td>
<td>
&nbsp;&nbsp;&nbsp;
<%=rsc("p_cli_class")%>
</td>
</tr>
<tr height="1">
<td colspan="2" bgcolor="#E0E0E0">
</tr>
<tr height="30">
<td align="center" bgcolor="#E8F7F7">
Ŭ&nbsp;<3B><>&nbsp;<3B><>&nbsp;<3B><>&nbsp;Ʈ&nbsp;&nbsp;&nbsp;<3B><>
</td>
<td>
&nbsp;&nbsp;&nbsp;
<%
query = "SELECT * "
query = query & "FROM client "
query = query & "WHERE c_code = '" & rsc("p_cli_company") & "' "
rsp.Open query, adoConn, 1
%>
<%=rsp("c_name")%>
<%
rsp.Close
%>
</td>
</tr>
<tr height="1">
<td colspan="2" bgcolor="#E0E0E0">
</tr>
<tr height="30">
<td align="center" bgcolor="#E8F7F7">
Ŭ&nbsp;<3B><>&nbsp;<3B><>&nbsp;<3B><>&nbsp;Ʈ&nbsp;Ÿ<><C5B8>
</td>
<td>
&nbsp;&nbsp;&nbsp;
<%
query = "SELECT * "
query = query & "FROM Client_Type "
query = query & "WHERE c_type_code = '" & rsc("p_cli_type") & "' "
rsp.Open query, adoConn, 1
%>
<%=rsp("c_type_name")%>
<%
rsp.Close
%>
<input type="hidden" name="p_cli_type">
</td>
</tr>
<tr height="1">
<td colspan="2" bgcolor="#E0E0E0">
</tr>
<tr height="30">
<td align="center" bgcolor="#E8F7F7">
Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ&nbsp;&nbsp;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
</td>
<td>
&nbsp;&nbsp;&nbsp;
<%
query = "SELECT * "
query = query & "FROM Client_people "
query = query & "WHERE c_code = '" & rsc("p_cli_company") & "' "
query = query & " AND cp_code = '" & rsc("p_cp_code") & "' "
rsp.Open query, adoConn, 1
%>
<%=rsp("cp_name")%>
<%
tmp_cli_depart = rsp("cp_depart")
rsp.Close
%>
</td>
</tr>
<tr height="1">
<td colspan="2" bgcolor="#E0E0E0">
</tr>
<tr height="30">
<td align="center" bgcolor="#E8F7F7">
Ŭ&nbsp;<3B><>&nbsp;<3B><>&nbsp;<3B><>&nbsp;Ʈ&nbsp;<3B>μ<EFBFBD>
</td>
<td>
&nbsp;&nbsp;&nbsp;
<%=tmp_cli_depart%>
</td>
</tr>
<tr height="1">
<td colspan="2" bgcolor="#E0E0E0">
</tr>
<!--tr height="30">
<td align="center" bgcolor="#E8F7F7">
ȸ&nbsp;&nbsp;&nbsp;&nbsp;<3B><>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<3B><>&nbsp;&nbsp;&nbsp;&nbsp;<3B><>
</td>
<td>
&nbsp;&nbsp;&nbsp;
<%=rsc("p_contact_place")%>
</td>
</tr>
<tr height="1">
<td colspan="2" bgcolor="#E0E0E0">
</tr>
<tr height="30">
<td align="center" bgcolor="#E8F7F7">
ȸ&nbsp;&nbsp;&nbsp;&nbsp;<3B><>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<3B><>&nbsp;&nbsp;&nbsp;&nbsp;<3B><>
</td>
<td>
&nbsp;&nbsp;&nbsp;
<%=viewword(rsc("p_contact_content"))%>
</td>
</tr>
<tr height="1">
<td colspan="2" bgcolor="#E0E0E0">
</tr-->
<tr height="30">
<td align="center" bgcolor="#E8F7F7">
<09><>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<3B><>
</td>
<td>
&nbsp;&nbsp;&nbsp;
<%=viewword(rsc("p_memo"))%>
</td>
</tr>
<tr>
<td width="20%" bgcolor="#BBCEFD" height="2"></td>
<td width="80%" bgcolor="#B8B0A9" height="2"></td>
</tr>
</table>
<br>
<table border="0" cellspacing="0" cellpadding="0" width="800">
<tr>
<td width="20%" bgcolor="#BBCEFD" height="2"></td>
<td width="80%" bgcolor="#B8B0A9" height="2"></td>
</tr>
<tr height="30">
<td align="center" bgcolor="#E8F7F7"><3E><>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<3B><></td>
<td>
&nbsp;&nbsp;&nbsp;
<%
q = "SELECT * "
q = q & "FROM p_types "
q = q & "WHERE t_type = '1' "
q = q & " AND t_code1 = '" & p_types1 & "' "
q = q & "ORDER BY t_sn "
rsp.Open q, adoConn, 1
if rsp.RecordCount > 0 then
%>
<%=rsp("t_name")%>
<%
end if
rsp.Close
%>
<%
if p_types1 <> "" then
%>
,&nbsp;&nbsp;&nbsp;
<%
q = "SELECT * "
q = q & "FROM p_types "
q = q & "WHERE t_type = '2' "
q = q & " AND t_code1 = '" & p_types1 & "' "
q = q & " AND t_code2 = '" & p_types2 & "' "
q = q & "ORDER BY t_sn "
rsp.Open q, adoConn, 1
if rsp.RecordCount > 0 then
%>
<%=rsp("t_name")%>
<%
end if
rsp.Close
%>
<%
if p_types2 <> "" and p_types2 <> "0" then
%>
,&nbsp;&nbsp;&nbsp;
<%
q = "SELECT * "
q = q & "FROM p_types "
q = q & "WHERE t_type = '3' "
q = q & " AND t_code1 = '" & p_types1 & "' "
q = q & " AND t_code2 = '" & p_types2 & "' "
q = q & " AND t_code3 = '" & p_types3 & "' "
q = q & "ORDER BY t_sn "
rsp.Open q, adoConn, 1
if rsp.RecordCount > 0 then
%>
<%=rsp("t_name")%>
<%
else
%>
<09><>Ÿ
<%
end if
rsp.Close
%>
<%
end if 'if p_types2 <> "" then
%>
<%
end if 'if p_types1 <> "" then
%>
</td>
</tr>
<tr height="1">
<td colspan="2" bgcolor="#E0E0E0">
</tr>
<tr height="30">
<td align="center" bgcolor="#E8F7F7">
<09><>&nbsp;&nbsp;&nbsp;&nbsp;<3B><>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<3B><>&nbsp;&nbsp;&nbsp;&nbsp;<3B><>
</td>
<td>
&nbsp;&nbsp;&nbsp;
<%=rsc("p_prop_date")%>
</td>
</tr>
<tr height="1">
<td colspan="2" bgcolor="#E0E0E0">
</tr>
<tr height="30">
<td align="center" bgcolor="#E8F7F7">
<09><>&nbsp;&nbsp;&nbsp;&nbsp;<3B><>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<3B><>&nbsp;&nbsp;&nbsp;&nbsp;<3B><>
</td>
<td>
&nbsp;&nbsp;&nbsp;
<%
q = "SELECT * "
q = q & "FROM p_method "
q = q & "WHERE code1 = '" & rsc("p_method1") & "' "
q = q & "ORDER BY name1 "
rsp.Open q, adoConn, 1
%>
<%=rsp("name1")%>
<%
rsp.Close
%>
<%
q = "SELECT * "
q = q & "FROM p_method "
q = q & "WHERE code1 = '" & rsc("p_method2") & "' "
q = q & "ORDER BY name1 "
rsp.Open q, adoConn, 1
if rsp.RecordCount > 0 then
%>
,&nbsp;&nbsp;&nbsp;<%=rsp("name1")%>
<%
end if
rsp.Close
%>
<%
q = "SELECT * "
q = q & "FROM p_method "
q = q & "WHERE code1 = '" & rsc("p_method3") & "' "
q = q & "ORDER BY name1 "
rsp.Open q, adoConn, 1
if rsp.RecordCount > 0 then
%>
,&nbsp;&nbsp;&nbsp;<%=rsp("name1")%>
<%
end if
rsp.Close
%>
</td>
</tr>
<tr height="1">
<td colspan="2" bgcolor="#E0E0E0">
</tr>
<tr height="30">
<td align="center" bgcolor="#E8F7F7">
ǥ&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<3B><>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<3B><>
</td>
<td>
&nbsp;&nbsp;&nbsp;
<%=int(rsc("p_sample"))%>
</td>
</tr>
<tr height="1">
<td colspan="2" bgcolor="#E0E0E0">
</tr>
<tr height="30">
<td align="center" bgcolor="#E8F7F7">
<09><>&nbsp;&nbsp;&nbsp;&nbsp;<3B><>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<3B><>&nbsp;&nbsp;&nbsp;&nbsp;<3B><>
</td>
<td>
&nbsp;&nbsp;&nbsp;
<%=rsc("p_intention")%>
</td>
</tr>
<!--tr height="1">
<td colspan="2" bgcolor="#E0E0E0">
</tr>
<tr height="30">
<td align="center" bgcolor="#E8F7F7">
<09><>&nbsp;&nbsp;<3B><>&nbsp;&nbsp;&nbsp;&nbsp;<3B><>&nbsp;&nbsp;<3B><>&nbsp;&nbsp;<3B><>
</td>
<td>
&nbsp;&nbsp;&nbsp;
<select name="p_upload_flag">
<option value=""><3E><><EFBFBD><EFBFBD></option>
<option value="1"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></option>
<option value="2"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></option>
</select>
<input type="file" name="txtFileName" style="WIDTH: 230px; HEIGHT: 21px" size=10>
</td>
</tr-->
<tr>
<td width="20%" bgcolor="#BBCEFD" height="2"></td>
<td width="80%" bgcolor="#B8B0A9" height="2"></td>
</tr>
</table>
<br>
<table border="0" cellspacing="0" cellpadding="0" width="800">
<tr>
<td width="20%" bgcolor="#BBCEFD" height="2"></td>
<td width="80%" bgcolor="#B8B0A9" height="2"></td>
</tr>
<tr height="30">
<td align="center" bgcolor="#E8F7F7"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>ȸ<EFBFBD><C8B8></td>
<td>
&nbsp;&nbsp;&nbsp;
<select name="p_del_rcompany">
<option value="0"><3E><><EFBFBD><EFBFBD></option>
<%
query = "SELECT * "
query = query & "FROM rcompany "
rsp.Open query, adoConn, 1
if rsp.RecordCount > 0 then
for i = 1 to rsp.RecordCount
%>
<option value="<%=int(rsp("r_code"))%>" <% if rsc("p_del_rcompany") = rsp("r_code") then %> selected <% end if %>><%=rsp("r_name")%></option>
<%
rsp.MoveNext
next
end if
rsp.Close
%>
</select>
</td>
</tr>
<tr height="1">
<td colspan="2" bgcolor="#E0E0E0">
</tr>
<tr height="30">
<td align="center" bgcolor="#E8F7F7"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td>
&nbsp;&nbsp;&nbsp;
<input type="text" name="p_del_cprice" value="<%=rsc("p_del_cprice")%>" size="15" maxlength="15" class="number" OnKeyPress="if (event.keyCode < 48 || event.keyCode > 57) event.returnValue = false;" OnKeyup="check_comma(this.value,'1');"> <20><>
&nbsp;
<input type="checkbox" name="p_del_cprice_chk" <% if rsc("p_del_cprice_chk") = "1" then %> checked <% end if %> onClick="autofnc();"><3E><><EFBFBD><EFBFBD>
</td>
</tr>
<tr height="1">
<td colspan="2" bgcolor="#E0E0E0">
</tr>
<tr height="30">
<td align="center" bgcolor="#E8F7F7">KRC <20><><EFBFBD>Ȱ<EFBFBD></td>
<td>
&nbsp;&nbsp;&nbsp;
<input type="text" name="p_del_krcprice" value="<%=rsc("p_del_krcprice")%>" size="15" maxlength="15" class="number" OnKeyPress="if (event.keyCode < 48 || event.keyCode > 57) event.returnValue = false;" OnKeyup="check_comma(this.value,'2');"> <20><>
</td>
</tr>
<tr height="1">
<td colspan="2" bgcolor="#E0E0E0">
</tr>
<tr height="1">
<td colspan="2" bgcolor="#E0E0E0">
</tr>
<tr height="30">
<td align="center" bgcolor="#E8F7F7"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td>
&nbsp;&nbsp;&nbsp;
<textarea cols="78" rows="3" name="p_del_reason2"><%=viewword(rsc("p_del_reason2"))%></textarea>
</td>
</tr>
<tr height="1">
<td colspan="2" bgcolor="#E0E0E0">
</tr>
<tr height="30">
<td align="center" bgcolor="#E8F7F7"><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></td>
<td>
&nbsp;&nbsp;&nbsp;
<textarea cols="78" rows="3" name="p_del_cplan"><%=viewword(rsc("p_del_cplan"))%></textarea>
</td>
</tr>
<tr>
<td width="20%" bgcolor="#BBCEFD" height="2"></td>
<td width="80%" bgcolor="#B8B0A9" height="2"></td>
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="800" id="table1" style="display:none;">
<br>
<tr>
<td width="20%" bgcolor="#BBCEFD" height="2"></td>
<td width="80%" bgcolor="#B8B0A9" height="2"></td>
</tr>
<tr height="30">
<td align="center" bgcolor="#E8F7F7">
<09><>&nbsp;&nbsp;<3B><>&nbsp;&nbsp;<3B><>&nbsp;&nbsp;Ʈ&nbsp;&nbsp;&nbsp;<3B><>
</td>
<td>
&nbsp;&nbsp;&nbsp;
<input class="input" type="text" name="p_subject" size="20" maxlength="50" value="">
</td>
</tr>
<tr>
<td width="20%" bgcolor="#BBCEFD" height="2"></td>
<td width="80%" bgcolor="#B8B0A9" height="2"></td>
</tr>
</table>
<%
end if
rsc.Close
%>
<br>
<table border="0" cellspacing="0" cellpadding="0" width="735">
<tr>
<td align="center" colspan="4">
<% if tmp_modi = "1" then %>
<img src="/images/project/btn_smodify.gif" title ="<22><><EFBFBD><EFBFBD>" style="cursor:pointer" border="0" onClick="subit()" >
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<img src="/images/project/<2F><><EFBFBD><EFBFBD>.gif" title ="<22><><EFBFBD><EFBFBD>" style="cursor:pointer" border="0" onClick="openit('<%=sn%>')">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<% end if %>
<img src="/images/project/btn_sclose.gif" title ="<22>ݱ<EFBFBD>" style="cursor:pointer" border="0" onClick="clsit()">
</td>
</tr>
</table>
<%
'========================================================
'<27><><EFBFBD>ε<EFBFBD><CEB5><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ֱ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><>ƾ
'Dim RootDir
Dim tmp_folder(6, 50)
Dim tmp_cont(6)
query = "SELECT * "
query = query & "FROM project2_pre "
query = query & "WHERE sn = '" & sn & "' "
'Response.Write query & "<BR>"
rsp.Open query, adoConn, 1
if rsp.RecordCount > 0 then
tmp_y = mid(rsp("p_contact_date"), 3, 2)
p_sn_tmp = rsp("p_sn_tmp")
p_upload_date = rsp("p_upload_date")
p_contact_date = rsp("p_contact_date")
end if
rsp.Close
'Response.Write "p_upload_date : " & p_upload_date & "<BR>"
tmp_cont(1) = "<22><><EFBFBD><EFBFBD><EFBFBD>ڷ<EFBFBD>"
tmp_cont(2) = "<22><><EFBFBD><EFBFBD><EFBFBD>ڷ<EFBFBD>"
tmp_cont(3) = "<22><><EFBFBD><EFBFBD><EFBFBD>ڷ<EFBFBD>"
tmp_cont(4) = "<22>ǻ<EFBFBD><C7BB>ڷ<EFBFBD>"
tmp_cont(5) = "<22><><EFBFBD><EFBFBD><EFBFBD>ڷ<EFBFBD>"
tmp_cont(6) = "<22>濵<EFBFBD>ڷ<EFBFBD>"
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
'<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 = 0
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
RootDir = "D:\project_db\data\" & tmp_y & "\" & p_sn_tmp & "\"
if p_upload_date <> "" then
call getFolder(RootDir, 0, false, true)
end if
'===================================================================
' 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
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
'<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
tmp_folder(int(left(folder.name,1)),0) = sPath & folder.name
i = 1
For Each file in hfiles
tmp_folder(int(left(folder.name,1)),i) = file.name
i = i + 1
Next
'++ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
if bSonFdr then
call getFolder(sPath&"\"&folder.name, iDepth+1, bSonFdr, bShowFile)
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
%>
<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>
<%
for j = 1 to ubound(tmp_folder)
%>
<% if tmp_folder(j,1) <> "" then %>
<br>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td>
<b><%=tmp_cont(j)%></b>
<table border="1" cellspacing="0" cellpadding="5" width="100%">
<tr>
<td>
<%
tmp = 0
for i = 1 to ubound(tmp_folder,2)
if tmp_folder(j,i) <> "" then
tmp_folder(j,0) = replace(tmp_folder(j,0),"\","/")
if tmp_downok = 1 then
Response.Write "<a href=javascript:downit('" & tmp_folder(j,0) & "','" & tmp_folder(j,i) & "')>&nbsp;&nbsp;&nbsp;- " & tmp_folder(j,i) & "</a><BR>"
else
Response.Write "&nbsp;&nbsp;&nbsp;- " & 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
%>
</td>
</tr>
</table>

900
project/project_stat.asp Normal file
View File

@@ -0,0 +1,900 @@
<!-- #include virtual = "lib/config.asp" -->
<!-- #include file = "../include/top_menu.asp" -->
<OBJECT RUNAT=Server PROGID=ADODB.Recordset id=Rs></OBJECT>
<%'####################################################
'<27><>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
'<27><><EFBFBD><EFBFBD><EFBFBD>м<EFBFBD><D0BC><EFBFBD> <20><>ü, <20>ڷ<EFBFBD><DAB7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD>,
' => <20><><EFBFBD>⵵<EFBFBD><E2B5B5> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD>̰<EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD>̰<EFBFBD><CCB0><EFBFBD>
'<27>ڷ<EFBFBD><DAB7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> : chk_admin = "field"
' => <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> : <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20>ڱ<EFBFBD> <20>ڽ<EFBFBD><DABD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD>̱<EFBFBD>
' => <20>ڷ<EFBFBD><DAB7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> : <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Էµ<D4B7> <20><><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD>̱<EFBFBD>
''<27><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD> : chk_admin = "etc_buser1"
' => <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20>ڱ<EFBFBD> <20>ڽ<EFBFBD><DABD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD>̱<EFBFBD>
' => <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><>ü <20><><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD>̱<EFBFBD>
'<27><>Ÿ<EFBFBD>μ<EFBFBD>(<28>濵<EFBFBD><E6BFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>) : chk_admin = "etc_buser2"
' => <20>ƹ<EFBFBD><C6B9>͵<EFBFBD> <20>Ⱥ<EFBFBD><C8BA><EFBFBD>(<28><>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>)
''<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ǹ̴<C7B9> <20><><EFBFBD>ó<EFBFBD>¥<EFBFBD><C2A5><EFBFBD><EFBFBD><EFBFBD>̰<EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ǹ̴<C7B9> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>¥<EFBFBD><C2A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
'####################################################
''2006<30><36> 11<31><31> 1<><31> <20>߰<EFBFBD><DFB0><EFBFBD>
'<27><><EFBFBD><EFBFBD><EFBFBD>Ⱓ<EFBFBD><E2B0A3> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD>Ʈ <20><><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><EFBFBD><EFBFBD> <20>ٸ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD>ý<EFBFBD>
'<27><><EFBFBD><EFBFBD> ȭ<><C8AD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD> url_posi <20>߰<EFBFBD><DFB0><EFBFBD> <20><>)
'####################################################
'ȫ<><C8AB><EFBFBD>׽<EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>α׷<CEB1><D7B7><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD> <20><>ƾ <20><><EFBFBD><EFBFBD>
'<27>ֳ<EFBFBD><D6B3>ϸ<EFBFBD> fgi<67><69><EFBFBD><EFBFBD><EFBFBD><EFBFBD> and substring(p_sn,5,3) <> '000')<29><> <20>ɸ<EFBFBD><C9B8>⿡
%>
<%
'Response.Cookies("krc_username")
'Response.Write "'"
'Response.Write "<font color=red style='FONT-FAMILY: <20><><EFBFBD><EFBFBD>ü;font-size:12px;FONT-WEIGHT: bold;'><3E><>ġ : <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ => <20><><EFBFBD><EFBFBD> <20><>Ȳ</font>"
call Time_Check(Session("Login_Check"))
'Response.Expires = 0
'Response.Buffer = false
Dim Sql
dim i, j
dim u_name
dim ConDate
dim chk_admin
dim sc_year
dim sc_month
dim sc_team
dim sc_name
dim krc_team()
dim krc_team_cnt
dim prj_search_cnt
dim tmpstr
dim method
dim db_p_dp() 'dp <20>迭<EFBFBD><E8BFAD> <20><><EFBFBD><EFBFBD>
dim prj_dp '<27><><EFBFBD><EFBFBD>dp
dim line_cnt
dim dp_rank(3) '<27><><EFBFBD><EFBFBD> <20><><EFBFBD>̵<EFBFBD>
dim db_p_sv() 'sv <20>迭<EFBFBD><E8BFAD> <20><><EFBFBD><EFBFBD>
dim prj_sv '<27><><EFBFBD><EFBFBD>sv
dim max_width
dim sample_cnt '<27><><EFBFBD>ü<EFBFBD>
dim sv_rank(3) '<27>ǻ<EFBFBD> <20><><EFBFBD>̵<EFBFBD>
dim db_p_research() '<27><><EFBFBD><EFBFBD> <20>迭<EFBFBD><E8BFAD> <20><><EFBFBD><EFBFBD>
dp_rank(0) = ""
dp_rank(1) = "<22><>"
dp_rank(2) = "<22><>"
dp_rank(3) = "<22><>"
sv_rank(0) = ""
sv_rank(1) = "<22><>"
sv_rank(2) = "<22><>"
sv_rank(3) = "<22><>"
sc_year = Request.QueryString("sc_year")
sc_month = Request.QueryString("sc_month")
sc_team = Request.QueryString("sc_team")
sc_name = Request.QueryString("sc_name")
if sc_year = "" then
sc_year = year(date)
end if
if sc_month = "" then
sc_month = month(date)
end if
if sc_team = "" then
sc_team="0"
end if
sql = "select * from depart where ((d_code >0 and d_code < 11) or (d_code >= 20 and d_code <=60)) and d_yes_no = 'y' order by d_code"
Rs.open sql, adoconn,adopenstatic, adlockreadonly
krc_team_cnt = Rs.recordcount
redim krc_team(krc_team_cnt,2)
krc_team_cnt = 0
do while not Rs.eof
krc_team_cnt = krc_team_cnt + 1
krc_team(krc_team_cnt,1) = rs("d_code")
krc_team(krc_team_cnt,2) = rs("d_name")
Rs.movenext
loop
Rs.close
''/=========================
''/===========================
''<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
''<27>ڷ<EFBFBD><DAB7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>(<28>μ<EFBFBD>:12), <20><><EFBFBD><EFBFBD><EFBFBD>м<EFBFBD><D0BC><EFBFBD>(<28>μ<EFBFBD>:11), <20>濵<EFBFBD><E6BFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28>μ<EFBFBD>:13),<2C>ӿ<EFBFBD>(<28>μ<EFBFBD> 0<><30> <20>ӿ<EFBFBD>)
''2011<31><31> 1<><31> 7<>Ϸ<EFBFBD> <20>ٽ<EFBFBD> <20><><EFBFBD><EFBFBD>
'<27>ڷ<EFBFBD><DAB7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>(<28>μ<EFBFBD>:12), <20><><EFBFBD><EFBFBD><EFBFBD>ý<EFBFBD><C3BD>ۺ<EFBFBD>(17). <20>濵<EFBFBD><E6BFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28>μ<EFBFBD>:18),<2C>ӿ<EFBFBD>(<28>μ<EFBFBD> 0<><30> <20>ӿ<EFBFBD>)
if ( Session("Depart_Code") = "12" and Session("admin_Code") = "1") or Session("Depart_Code") = "17" or Session("Depart_Code") = "18" or Session("Depart_Code") = "0" then
chk_admin="admin"
max_width = 1000
elseif Session("Depart_Code") = "12" then '<27>ڷ<EFBFBD><DAB7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
chk_admin="field"
max_width = 870
elseif cint(Session("Depart_Code")) <= 10 or (cint(Session("Depart_Code")) >= 20 and cint(Session("Depart_Code")) <=60) then '<27><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD>
chk_admin = "etc_buser1"
max_width = 870
else '<27>濵<EFBFBD><E6BFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
chk_admin = "etc_buser2"
end if
max_width = 1050
''/=========================
''/===========================
ConDate=year(date) & "-" & zeroFormat(month(date),2) & "-" & zeroFormat(day(date),2)
Sql = "select p_name from person where p_no ='" & Session("user_number") & "'"
Rs.open sql, adoconn,adopenstatic, adlockreadonly
u_name = Rs.fields("p_name")
Rs.close
''/===========================
''/===========================
'p_job_part => 0:<3A>ӿ<EFBFBD>, 1:<3A><><EFBFBD><EFBFBD>, 2:<3A><><EFBFBD><EFBFBD>, 3:s/v, 4:<3A><><EFBFBD><EFBFBD>, 5:<3A>ڵ<EFBFBD>, 6:<3A><>ġ, 7:dp, 8:it, 9:ȸ<><C8B8>, 99:<3A><>Ÿ
''/===========================
'Person <20><><EFBFBD>̺<EFBFBD><CCBA><EFBFBD><EFBFBD><EFBFBD> DP <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
sql = "SELECT * "
sql = sql & "FROM Person "
sql = sql & "WHERE (p_depart='17' AND p_resign='0' and p_job_part = '07')" '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> dp
sql = sql & "OR (p_depart='88' AND p_resign='0') " '<27><>Ÿ
sql = sql & "order by p_order "
adoRs.open sql, adoconn,adopenstatic, adlockreadonly
redim db_p_dp(adoRs.recordcount,3)
i=0
db_p_dp(i,1) = "0"
db_p_dp(i,2) = "= <20><><EFBFBD><EFBFBD> ="
do until adoRs.eof
i=i+1
db_p_dp(i,1) = trim(adoRs("p_no"))
db_p_dp(i,2) = trim(adoRs("p_name"))
adoRs.movenext
loop
adoRs.close
''/===========================
'Person <20><><EFBFBD>̺<EFBFBD><CCBA><EFBFBD><EFBFBD><EFBFBD> sv <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
sql = "select * from person "
sql = sql & "where ( p_depart='12' AND p_resign='0')" 'svand p_job_part = '03'
sql = sql & " OR (p_depart='88' AND p_resign='0') " '<27><>Ÿ
sql = sql & " order by p_order "
adoRs.open sql, adoconn,adopenstatic, adlockreadonly
redim db_p_sv(adoRs.recordcount,3)
i=0
db_p_sv(i,1) = "0"
db_p_sv(i,2) = "= <20><><EFBFBD><EFBFBD> ="
do until adoRs.eof
i=i+1
db_p_sv(i,1) = trim(adoRs("p_no"))
db_p_sv(i,2) = trim(adoRs("p_name"))
adoRs.movenext
loop
adoRs.close
''/===========================
'Person <20><><EFBFBD>̺<EFBFBD><CCBA><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>)
sql = "select * from person "
sql = sql & "where ((p_depart <='10' or (p_depart >= 20 and p_depart <= 95)) and p_job_part = '01')" '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
sql = sql & " OR (p_depart='88' ) " '<27><>Ÿ
sql = sql & " order by p_order "
adoRs.open sql, adoconn,adopenstatic, adlockreadonly
redim db_p_research(adoRs.recordcount,3)
i=0
db_p_research(i,1) = "0"
db_p_research(i,2) = "= <20><><EFBFBD><EFBFBD> ="
do until adoRs.eof
i=i+1
db_p_research(i,1) = trim(adoRs("p_no"))
db_p_research(i,2) = trim(adoRs("p_name"))
adoRs.movenext
loop
adoRs.close
%>
<script language=javascript>
function help_open()
{
var width_size = screen.width - 600;
var height_size= screen.height;
window.open ("/help/project_stat_help.htm", "", "left=" + width_size + " top=5 width=600 height=500 scrollbars=yes statbar=no" );
}
function go_search(goPageNum)
{
var sc_year = document.frm_new_main.sc_year.value;
var sc_month = document.frm_new_main.sc_month.value;
var sc_team = document.frm_new_main.sc_team.value;
var sc_name = document.frm_new_main.sc_name.value;
var url;
// var sc_method = document.frm_new_main.sc_method.value;
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> document.frm_new_main.action="new_main.asp?sc_year="+sc_year+"&sc_month="+sc_month+"&sc_team="+sc_team+"&sc_name="+sc_name+"&sc_method="+sc_method+"&curpage="+goPageNum;
url = "project_stat.asp?sc_year="+sc_year+"&sc_month="+sc_month+"&sc_team="+sc_team+"&sc_name="+sc_name+"&curpage="+goPageNum;
document.frm_new_main.action=url;
document.frm_new_main.submit();
// window.open('project_stat.asp?' + url,'_self')
}
function Change_DP(p_sn, line_cnt)
{
//<2F><><EFBFBD><EFBFBD> dp<64><70> <20><><EFBFBD>̵<EFBFBD><CCB5><EFBFBD> <20><><EFBFBD>ÿ<EFBFBD> <20>ٲٱ⸦ <20><>
var x;
var dp = document.all.prj_dp[line_cnt-1].value;
var dp_rank = document.all.prj_dp_rank[line_cnt-1].value;
x = window.showModalDialog('project_dpSave.asp?C_dp='+dp+'&p_sn='+p_sn+'&c_dp_rank='+dp_rank,window,"dialogTop:middle;dialogLeft:middle;dialogWidth:550px;dialogHeight:600px;scroll:1;center:1;");
if (x!="")
{
//window.location.reload();
document.frm_new_main.prj_dp[line_cnt-1].value = x;
alert ("DP <20><> <20><><EFBFBD>̵<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>");
}
else
{
alert ("DP <20><> <20><><EFBFBD>̵<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>");
}
}
function Change_Sv(p_sn, line_cnt)
{
//<2F><><EFBFBD><EFBFBD> sv<73><76> <20>ٲٱ⸦ <20><>
var x;
// var sv = document.all.sel_prj_sv[line_cnt-1].value;
var sv_rank = document.all.prj_sv_rank[line_cnt-1].value;
// x = window.showModalDialog('project_svSave.asp?C_sv='+sv+'&p_sn='+p_sn,window,"dialogTop:middle;dialogLeft:middle;dialogWidth:550px;dialogHeight:600px;scroll:1;center:1;");
x = window.showModalDialog('project_svSave.asp?p_sn='+p_sn+'&c_sv_rank='+sv_rank,window,"dialogTop:middle;dialogLeft:middle;dialogWidth:550px;dialogHeight:600px;scroll:1;center:1;");
if (x!="")
{
//window.location.reload();
// document.frm_new_main.sel_prj_sv[line_cnt-1].value = x;
alert ("<22>ǻ<EFBFBD> <20><><EFBFBD>̵<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>");
}
else
{
alert ("<22>ǻ<EFBFBD> <20><><EFBFBD>̵<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>");
}
}
function openit(p_sn,sc_year,sc_month,sc_team,sc_name) {
var url = 'project_list2_dep.asp?p_sn=' + p_sn + '&teamname=' + sc_team;
var tmp_width = 850;
var tmp_height = 800;
window.open(url,'','left=0,top=0,width='+tmp_width+',height='+tmp_height+',scrollbars=yes,resizable=yes')
}
</script>
<SCRIPT LANGUAGE="JavaScript" SRC="/js/common.js"></SCRIPT>
<form method='post' name='frm_new_main'>
<td width="100%" valign="top">
<%''//================================
''//================================
'<27>ݹ<EFBFBD><DDB9><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD>
sql =""
line_cnt=0
' if chk_admin = "admin" then
%>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<!-- Ȯ<><C8AE> -->
</tr>
<tr>
<td colspan="2" style="padding:20;">
<div id="popdiv_obj1" style="position:absolute; background-color:FFFFDD;color:black;border-color:black;border-width:20; display:none; left:25px; top:100px; z-index:10" onmouseover="overdiv=20;" onmouseout="overdiv=0;setTimeout('hideLayer()',1000)">asdf</div>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td>
<font class="brown"><3E><> <20><><EFBFBD><EFBFBD> <20>Ⱓ<EFBFBD><E2B0A3> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><>ȸ <20><> <20>˻<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>.</font>
</font>
</td>
</tr>
<tr>
<td style="padding:5 0 0 0">
<table width="100%" height="37" cellpadding="3" cellspacing="0" border="0" style="border-collapse:collapse;">
<tr>
<td bgcolor="#DFDFDF" style="padding:0 0 0 10">
<09>⵵<EFBFBD><E2B5B5>:
<SELECT name=sc_year>
<%for i=cint(year(date)) to 2009 step -1 %>
<OPTION value='<%=i%>'
<%if cint(i) = cint(sc_year) then%>
selected
<%end if%>
><%=i%></OPTION>
<%next%>
</SELECT>
&nbsp;&nbsp;
<09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ۿ<EFBFBD>:
<SELECT name=sc_month>
<OPTION value='0'><3E><>ü</OPTION>
<% for i=1 to 12%>
<OPTION value='<%=zeroFormat(i,2)%>'
<%if cint(i) = cint(sc_month) then%>
selected
<%end if%>
><%=i%><3E><></OPTION>
<%next%>
</SELECT>
&nbsp;&nbsp;
<09><><EFBFBD>κ<EFBFBD>:
<SELECT name=sc_team>
<OPTION value='0'><3E><>ü</OPTION>
<%for i=1 to krc_team_cnt%>
<OPTION value='<%=krc_team(i,1)%>'
<%if cint(sc_team) = cint(krc_team(i,1)) then%>
selected
<%end if%>
><%=krc_team(i,2)%></OPTION>
<%next%>
</SELECT>
&nbsp;&nbsp;
<09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> :
<input type=text name=sc_name maxlength=20 size=20 style='ime-mode:inactive;' value = '<%=sc_name%>'>
&nbsp;&nbsp;
&nbsp;<img src='/images/common/btn_smallsrch.gif' style='cursor:pointer' onclick='go_search("1");' title ='ã<><C3A3>' align="absmiddle">
</td>
</tr>
</table>
<%'end if' if chk_admin = "admin" then
sql = "SELECT a.*, "
sql = sql & " b.p_order AS p_order "
sql = sql & "FROM dbo.project a LEFT OUTER JOIN "
if Session("Depart_Code") = "15" or Session("Depart_Code") = "17" then
sql = sql & " dbo.person b ON a.p_dper = b.p_no "
elseif Session("Depart_Code") = "12" or Session("Depart_Code") = "16" then
sql = sql & " dbo.person b ON a.p_sv = b.p_no "
else
sql = "select * from project as a "
end if
sql = sql & "where p_field_end < '" & ConDate & "'" ' and substring(p_field_end,1,7) = '" & mid(condate,1,7) & "'"
' sql = sql & " and substring(p_sn,5,3) <> '000' " 'ȫ<><C8AB><EFBFBD>׽<EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>α׷<CEB1><D7B7><EFBFBD>
if sc_month <> "0" and sc_month <> "" then
'<27><><EFBFBD><EFBFBD>
'2005-09-27 <20>ʵ彺ŸƮ <20><>¥<EFBFBD><C2A5> <20><><EFBFBD><EFBFBD> <20>˻<EFBFBD><CBBB><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>(p_field_st)
sql = sql & " and substring(p_field_end,1,4) = '" & zeroformat(sc_year,4) & "'" '<27>⺰
sql = sql & " and substring(p_field_end,6,2) = '" & zeroformat(sc_month,2) & "'" '<27><><EFBFBD><EFBFBD>
else
sql = sql & " and substring(p_field_end,1,4) = '" & zeroformat(sc_year,4) & "'" '<27>⺰
end if
if sc_team <> "0" and sc_team <> "" then
sql = sql & " and a.p_depart_dep='" & sc_team & "'" '<27><><EFBFBD><EFBFBD>
end if
if sc_name <> "" then
sql = sql & " and a.p_subject like '%" & sc_name & "%'" '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD≯<EFBFBD><CCB8><EFBFBD>
end if
''<27>α<EFBFBD><CEB1><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ں<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ֱ<EFBFBD>..
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ش<EFBFBD> <20>μ<EFBFBD><CEBC><EFBFBD> <20><>ü<EFBFBD><C3BC> <20><>
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ڱ<EFBFBD> <20>ڽ<EFBFBD><DABD><EFBFBD> <20>͸<EFBFBD>
'<27>ڷ<EFBFBD><DAB7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD>м<EFBFBD><D0BC><EFBFBD> <20><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
'<27>ڷ<EFBFBD><DAB7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ڱ<EFBFBD> <20>ڽ<EFBFBD><DABD><EFBFBD> <20>͸<EFBFBD>
'
if chk_admin = "etc_buser1" then '<27><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD>
sql = sql & " and substring(p_sn,5,1) = '" & cint(Session("Depart_Code")) & "' " '<27>ڱ<EFBFBD> <20>μ<EFBFBD><CEBC><EFBFBD>
if Session("admin_Code") <> "True" then '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ƴϸ<C6B4> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ڽ<EFBFBD><DABD><EFBFBD> <20≯<EFBFBD><CCB8><EFBFBD> <20><><EFBFBD><20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ
sql = sql & "and ("
sql = sql & "p_rsch_1 = '" & Session("user_number") & "' or "
sql = sql & "p_rsch_2 = '" & Session("user_number") & "' or "
sql = sql & "p_rsch_3 = '" & Session("user_number") & "' or "
sql = sql & "p_rsch_4 = '" & Session("user_number") & "' or "
sql = sql & "p_rsch_5 = '" & Session("user_number") & "' or "
sql = sql & "p_rsch_6 = '" & Session("user_number") & "' "
sql = sql & ") "
end if
elseif chk_admin = "field" then '<27>ڷ<EFBFBD><DAB7><EFBFBD><EFBFBD><EFBFBD>
end if
sql = sql & " and (substring(p_sn,1,2) <> '08') "
if Session("Depart_Code") = "15" or Session("Depart_Code") = "17" then
sql = sql & " order by p_order, p_field_end, p_subject"' p_dper,p_name, p_field_end"
elseif Session("Depart_Code") = "12" or Session("Depart_Code") = "16" then
sql = sql & " order by p_sv, p_field_end"
else
sql = sql & " order by p_subject "
end if
Rs.open sql, adoconn,adopenstatic, adlockreadonly
prj_search_cnt = Rs.recordcount
tmpstr= sc_year & "<22><> "
if cint(sc_month) > 0 then
tmpstr = tmpstr & sc_month & "<22><> "
end if
if cint(sc_team) > 0 then
for i = 1 to krc_team_cnt
if cint(krc_team(i,1)) = cint(sc_team) then
tmpstr = tmpstr & krc_team(i,2)
exit for
end if
next
end if
%>
<table width="100%" cellpadding="3" cellspacing="0" border="0" style="border-collapse:collapse;">
<tr>
<td>&nbsp;<font color=#000069><3E><> <%=Response.Write (u_name)%><3E><> <%=condate%> <20><> <20><><EFBFBD><EFBFBD> <font size=3 color=red><b>(<28><><EFBFBD><EFBFBD>:<%=tmpstr%>)</b></font> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>.(<%=prj_search_cnt%><3E><>)
</font></td>
</tr>
<tr>
<td colspan="13" bgcolor="#d5d5d5" height="1"></td>
</tr>
</table>
<div style="overflow-x:hidden;overflow-y:scroll;height:37px;100%;border:none;">
<table width="100%" cellpadding="3" cellspacing="0" border="0" style="border-collapse:collapse;">
<tr >
<td align=center width='10%' ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE></td>
<td align=center width='20%' ><3E><><EFBFBD>系<EFBFBD><E7B3BB></td>
<td align=center width='5%' ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td align=center width='5%' ><3E><><EFBFBD>ü<EFBFBD></td>
<td align=center width='5%' ><3E><><EFBFBD>翬<EFBFBD><E7BFAC></td>
<td align=center width='5%' ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td align=center width='5%' ><3E><><EFBFBD><EFBFBD>SV</td>
<td align=center width='10%' ><3E>ǻ<EFBFBD><C7BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td align=center width='10%' ><3E>ǻ<EFBFBD><C7BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td align=center width='10%' ><3E><>ġ<EFBFBD><C4A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td align=center width='5%' ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><br><3E><><EFBFBD><EFBFBD></td>
<td align=center width='10%' ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
</tr>
</table>
</div>
<div style="overflow-x:hidden;overflow-y:scroll;height:400px;100%;border:none;">
<table width="100%" cellpadding="3" cellspacing="0" border="0" style="border-collapse:collapse;">
<% if Rs.recordcount<1 then %>
<tr align=center onmouseover="this.style.background='#FFE3EE'" onmouseout="this.style.background='white'" height=20>
<td colspan=6 align=center> <20><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD><CFB7><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>.</td>
</tr>
<tr height=1>
<td background='/images/dot.gif' colspan=6>
</tr>
<% else
prj_dp = ""
for i=0 to ubound(db_p_dp)
db_p_dp(i,3) = 0
next
for i=0 to ubound(db_p_sv)
db_p_sv(i,3) = 0
next
for i=0 to ubound(db_p_research)
db_p_research(i,3) = 0
next
tmp_bgcolor="#dbe9f2"
do until Rs.EOF
line_cnt = line_cnt + 1
method = Rs("p_method")
sql = "select * from p_method where code1 = '" & method & "'"
' Response.Write sql
' Response.Write RS("p_sn")
AdoRs.open sql, adoconn,adopenstatic, adlockreadonly
method = adors("name1")
AdoRs.close
tmpstr = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> : " & method & "<br>"
tmpstr = tmpstr & "<22><><EFBFBD>系<EFBFBD><E7B3BB> : " & Rs("p_intention")
sample_cnt = rs("p_sample")
if tmp_bgcolor="" then
tmp_bgcolor="#dbe9f2"
else
tmp_bgcolor=""
end if
%>
<tr align=center bgcolor="<%=tmp_bgcolor%>" id='row<%=line_cnt%>' onmouseover="MultiRowSelection('row<%=line_cnt%>',0,'on');popLayer('<%=tmpstr%>');" onmouseout="MultiRowSelection('row<%=line_cnt%>',0,'off','<%=tmp_bgcolor%>');hideLayer();">
<td align=left width='10%' style='cursor:pointer' onclick = 'openit("<%=Rs("p_sn")%>","<%=sc_year%>","<%=sc_month%>","<%=sc_team%>","<%=sc_name%>")' ><%=Rs("p_subject")%></td>
<td align=left width='20%' ><%=replace(csformat(Rs("p_intention"),30),"&nbsp;","")%></td>
<td align=left width='5%' >
<%i = cint(instr(1,method,"("))
if i > 0 then
tmpstr = mid(method,1,i - 1)
else
tmpstr = method
end if
Response.Write tmpstr
%>
</td>
<td align=right width='5%' ><%=formatnumber(sample_cnt,0)%></td>
<%''<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
tmpstr="&nbsp;"
for i=0 to ubound(db_p_research)
if db_p_research(i,1) = rs("p_rsch_1") then
tmpstr = db_p_research(i,2)
db_p_research(i,3) = cint(db_p_research(i,3)) + 1''<27><><EFBFBD><EFBFBD> <20><><EFBFBD>纰 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD> ī<><C4AB><EFBFBD><EFBFBD>
end if
next
if tmpstr="&nbsp;" then '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ã<><C3A3>
sql = "SELECT * "
sql = sql & "FROM Person "
sql = sql & "WHERE ( p_resign='1' )"
sql = sql & " and p_no = '" & rs("p_rsch_1") & "'"
sql = sql & "order by p_order "
AdoRs.Open sql, adoConn, 1%>
<%
if AdoRs.recordcount > 0 then
%>
<%tmpstr = AdoRs("p_name")%>
<%
end if
%>
<%AdoRs.Close
end if%>
<td width='5%' ><%=tmpstr%></td>
<%''<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
tmpstr="&nbsp;"
for i=0 to ubound(db_p_dp)
if db_p_dp(i,1) = rs("p_dper") then
tmpstr = db_p_dp(i,2)
db_p_dp(i,3) = cint(db_p_dp(i,3)) + 1''dp<64><70><EFBFBD>纰 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD> ī<><C4AB><EFBFBD><EFBFBD>
end if
next
if tmpstr="&nbsp;" and trim(rs("p_dper")) <> "" then '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ã<><C3A3>
sql = "SELECT * "
sql = sql & "FROM Person "
' sql = sql & "WHERE ( p_resign='1' )"
sql = sql & "WHERE p_no = '" & rs("p_dper") & "'"
sql = sql & " order by p_order "
AdoRs.Open sql, adoConn, 1
%>
<%prj_dp = AdoRs("p_name")%>
<%AdoRs.Close
else
prj_dp = tmpstr '<27><><EFBFBD><EFBFBD>dp
end if
%>
<td width='5%' ><%=prj_dp%></td>
<%''<27><><EFBFBD><EFBFBD> sv
tmpstr="&nbsp;"
for i=0 to ubound(db_p_sv)
if db_p_sv(i,1) = rs("p_sv") then
tmpstr = db_p_sv(i,2)
db_p_sv(i,3) = cint(db_p_sv(i,3)) + 1''sv <20><><EFBFBD>纰 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD> ī<><C4AB><EFBFBD><EFBFBD>
end if
next
if tmpstr="&nbsp;" and trim(rs("p_sv")) <> "" then '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ã<><C3A3>
sql = "SELECT * "
sql = sql & "FROM Person "
sql = sql & "WHERE ( p_resign='1' )"
sql = sql & " and p_no = '" & rs("p_sv") & "'"
sql = sql & " order by p_order "
AdoRs.Open sql, adoConn, 1
if isnull(AdoRs("p_name")) then
tmpstr = ""
else
tmpstr = AdoRs("p_name")
end if
AdoRs.Close
end if
%>
<td width='5%' ><%=tmpstr%></td>
<td width='10%' ><%=Rs("p_field_st")%></td>
<td width='10%'><%=Rs("p_field_end")%></td>
<td width='10%'><%=Rs("P_punch_end")%></td>
<td width='5%' >
<%
tmpstr = default_path_root & "inspection/project_direct_cost.asp?url_posi=project_stat&p_sn=" & RS("p_sn") & "&p_method=" & Rs("p_method")
if tmpstr = "<22>ش<EFBFBD><D8B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>ϵǾ<CFB5> <20><><EFBFBD><EFBFBD> <20>ʽ<EFBFBD><CABD>ϴ<EFBFBD>" then%>
<a href='javascript:alert("<22>ش<EFBFBD><D8B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>ϵǾ<CFB5> <20><><EFBFBD><EFBFBD> <20>ʽ<EFBFBD><CABD>ϴ<EFBFBD>.\n\n<><6E><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD><CEBC><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><>ȸ<EFBFBD><C8B8><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ؾ<EFBFBD><D8BE>մϴ<D5B4>.");'><3E><> <20><></a>
<%else
if cint(Session("Depart_Code") ) < 11 or (cint(Session("Depart_Code") ) >= 20 and cint(Session("Depart_Code") ) <=60) then '<27><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD><CEBC≯<EFBFBD>
tmpstr = tmpstr & "&printmode=1"%>
<a target=new href = '<%=tmpstr%>'><3E><><EFBFBD><EFBFBD></a>
<%else
' tmpstr = tmpstr & "&url_posi=project_stat"
tmpstr = tmpstr & "&sc_year=" & sc_year
tmpstr = tmpstr & "&sc_month=" & sc_month
tmpstr = tmpstr & "&sc_team=" & sc_team
tmpstr = tmpstr & "&sc_name=" & sc_name%>
<a href = '<%=tmpstr%>'><3E><><EFBFBD><EFBFBD></a>
<%end if
%>
<%end if%>
</td>
<td align=right ><!--<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ݾ<EFBFBD>-->
<%if not isnull(rs("p_esti_cost")) then%>
<%=formatnumber(rs("p_esti_cost"),0)%>
<%end if%>
&nbsp;&nbsp;&nbsp;
</td>
</tr>
<%
Rs.movenext
loop
end if ' if Rs.recordcount<1 then
Rs.Close
%>
</tr>
<tr>
<td colspan=100>
<%'dp<64><70><EFBFBD>纰 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD> ī<><C4AB><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ֱ<EFBFBD>
if ((Session("Depart_Code") = "15" or Session("Depart_Code") = "17") and Session("admin_Code") = "1") then '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> %>
<table border=2 cellspacing=0 cellpadding=0 bordercolor=#000069 width=<%=max_width%>>
<tr bgcolor=#B9E2FA align=center height=30>
<td > <font size=2 color=blue><b><3E><><EFBFBD><EFBFBD> DP <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>常<EFBFBD><E5B8B8><EFBFBD><EFBFBD>)</b></font></td>
<%for i = 1 to ubound(db_p_dp)%>
<td>
<%=db_p_dp(i, 2)%> => <%=db_p_dp(i, 3)%> <20><>
</td>
<%next%>
</tr>
</table>
<%end if%>
</td>
</tr>
<%''//================================
''//================================
''<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD> <20><><EFBFBD>·<EFBFBD> )
''//================================
''//================================
sql = ""
if chk_admin = "admin" then
sql = "SELECT a.*, "
sql = sql & " b.p_order AS p_order "
sql = sql & "FROM dbo.project a LEFT OUTER JOIN "
if Session("Depart_Code") = "15" or Session("Depart_Code") = "17" then
sql = sql & " dbo.person b ON a.p_dper = b.p_no "
elseif Session("Depart_Code") = "12" or Session("Depart_Code") = "16" then
sql = sql & " dbo.person b ON a.p_sv = b.p_no "
else
sql = "select * from project "
end if
sql = sql & "where (( p_field_end >= '" & ConDate & "')"
' sql = sql & " and substring(p_sn,5,3) <> '000') " 'ȫ<><C8AB><EFBFBD>׽<EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>α׷<CEB1><D7B7><EFBFBD>
sql = sql & " or ((p_field_end is null or p_field_end ='') and substring(p_sn,1,2) = '" & mid(year(date),3,2) & "' ) "' and substring(p_sn,5,3) <> '000') " '<27>ǻ<EFBFBD><C7BB>Ⱓ<EFBFBD><E2B0A3> <20><><EFBFBD><EFBFBD> <20><>
sql = sql & " ) "
if Session("Depart_Code") = "15" or Session("Depart_Code") = "17" then
' sql = sql & " order by p_order, a.p_field_end, a.p_subject"' p_dper,p_name, p_field_end"
sql = sql & " order by p_order, a.p_subject, p_field_end"
elseif Session("Depart_Code") = "12" then
sql = sql & " order by p_order, p_subject"
else
sql = sql & " order by p_subject"
end if
elseif chk_admin = "field" then '<27>ڷ<EFBFBD><DAB7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
sql = "select * from project where ((p_sv = '" & Session("user_number") & "' and p_field_end >= '" & ConDate & "') "
sql = sql & " or ((p_field_end is null or p_field_end ='') and substring(p_sn,1,2) = '" & mid(year(date),3,2) & "')"' and substring(p_sn,5,3) <> '000') " '<27>ǻ<EFBFBD><C7BB>Ⱓ<EFBFBD><E2B0A3> <20><><EFBFBD><EFBFBD> <20><>
sql = sql & " ) "
sql = sql & " order by p_subject"
elseif chk_admin = "etc_buser1" then '<27><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD>
if Session("admin_Code") ="True" or Session("admin_Code") = "1" then '<27>μ<EFBFBD><CEBC><EFBFBD><EFBFBD≯<EFBFBD>
sql = "select * "
sql = sql & "from project "
sql = sql & " where (((p_field_end >= '" & ConDate & "')"'
sql = sql & " or ((p_field_end is null or p_field_end ='') and substring(p_sn,1,2) = '" & mid(year(date),3,2) & "'))"'
sql = sql & " and substring(p_sn,5,1) = '" & Session("Depart_Code") & "'"
sql = sql & " ) "
sql = sql & " order by p_subject"
else
sql = "select *"
sql = sql & " from project "
sql = sql & " where ( "
sql = sql & "p_rsch_1 = '" & Session("user_number") & "' or "
sql = sql & "p_rsch_2 = '" & Session("user_number") & "' or "
sql = sql & "p_rsch_3 = '" & Session("user_number") & "' or "
sql = sql & "p_rsch_4 = '" & Session("user_number") & "' or "
sql = sql & "p_rsch_5 = '" & Session("user_number") & "' or "
sql = sql & "p_rsch_6 = '" & Session("user_number") & "' "
sql = sql & ") "
sql = sql & " and ( "
sql = sql & " p_field_end >= '" & ConDate & "'"
' sql = sql & " or ((p_field_end is null or p_field_end ='') and substring(p_sn,1,2) = '" & mid(year(date),3,2) & "') "' and substring(p_sn,5,3) <> '000') " '<27>ǻ<EFBFBD><C7BB>Ⱓ<EFBFBD><E2B0A3> <20><><EFBFBD><EFBFBD> <20><>
sql = sql & " ) "
sql = sql & " order by p_subject"
end if
elseif chk_admin = "etc_buser2" then '<27><><EFBFBD><EFBFBD><EFBFBD>м<EFBFBD><D0BC><EFBFBD>, <20>ڷ<EFBFBD><DAB7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD><CEBC><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><> <20>濵<EFBFBD><E6BFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
alert2("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>")
end if
Rs.open sql, adoconn,adopenstatic, adlockreadonly
prj_search_cnt = Rs.recordcount
if chk_admin <> "etc_buser" then%>
<tr height=50>
<% if chk_admin = "admin" then %>
<td colspan=100 >&nbsp;<font color=#000069><3E><> <%=Response.Write (u_name)%><3E><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>·<EFBFBD> <20>ǻ<EFBFBD><C7BB><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>.
<% else%>
<td colspan=100>&nbsp;<font color=#000069><3E><> <%=Response.Write (u_name)%><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>·<EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>.
<% end if %>
<font color=red size=3><b><3E>ǻ<EFBFBD><C7BB>Ⱓ<EFBFBD><E2B0A3> <20><><EFBFBD>ó<EFBFBD>¥ <20><><EFBFBD><EFBFBD> : <%=prj_search_cnt%><3E><></b></font>(<28>ǻ<EFBFBD><C7BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>)<br>
<font color=red size=3><b>&nbsp;<3B><> <20><><EFBFBD><EFBFBD>SV, <20><><EFBFBD><EFBFBD>DP<44><50> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>Դϴ<D4B4>.</b></font>
</font></td>
</tr>
</tr>
<tr height=45 bgcolor=Yellow>
<td colspan=100> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>ϵ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><> <20>ǻ簡 <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̰ų<CCB0>, <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>.</td>
</tr>
<% if Rs.recordcount<1 then %>
<tr align=center onmouseover="this.style.background='#FFE3EE'" onmouseout="this.style.background='white'" height=20>
<td colspan=6 align=center> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>.</td>
</tr>
<tr height=1>
<td background='/images/dot.gif' colspan=6>
</tr>
<% else %>
<% 'line_cnt = 0
prj_dp = ""
for i=0 to ubound(db_p_dp)
db_p_dp(i,3) = 0
next
for i=0 to ubound(db_p_sv)
db_p_sv(i,3) = 0
next
for i=0 to ubound(db_p_research)
db_p_research(i,3) = 0
next
tmp_bgcolor="#dbe9f2"
do until Rs.EOF
line_cnt = line_cnt + 1
method = Rs("p_method")
if trim(method ) <> "" then
sql = "select * from p_method where code1 = " & method
AdoRs.open sql, adoconn,adopenstatic, adlockreadonly
method = adors("name1")
AdoRs.close
else
method = "&nbsp;"
end if
tmpstr = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> : " & method & "<br>"
tmpstr = tmpstr & "<22><><EFBFBD>系<EFBFBD><E7B3BB> : " & Rs("p_intention")
sample_cnt = rs("p_sample")
if tmp_bgcolor="" then
tmp_bgcolor="#dbe9f2"
else
tmp_bgcolor=""
end if
%>
<tr align=center bgcolor="<%=tmp_bgcolor%>" id='row<%=line_cnt%>' onmouseover="MultiRowSelection('row<%=line_cnt%>',0,'on');popLayer('<%=tmpstr%>');" onmouseout="MultiRowSelection('row<%=line_cnt%>',0,'off','<%=tmp_bgcolor%>');hideLayer();">
<td width = '10%' align=left style='cursor:pointer' onclick = 'openit("<%=Rs("p_sn")%>","<%=sc_year%>","<%=sc_month%>","<%=sc_team%>","<%=sc_name%>")' ><%=Rs("p_subject")%></td>
<td width = '20%' align=left ><%=replace(csformat(Rs("p_intention"),30),"&nbsp;","")%></td>
<td width = '5%' align=left >
<%i = cint(instr(1,method,"("))
if i > 0 then
tmpstr = mid(method,1,i - 1)
else
tmpstr = method
end if
Response.Write tmpstr
%>
</td>
<td width = '5%' align=right ><%=formatnumber(sample_cnt,0)%></td>
<%''<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
tmpstr="&nbsp;"
for i=0 to ubound(db_p_research)
if db_p_research(i,1) = rs("p_rsch_1") then
tmpstr = db_p_research(i,2)
db_p_research(i,3) = cint(db_p_research(i,3)) + 1''<27><><EFBFBD><EFBFBD> <20><><EFBFBD>纰 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD> ī<><C4AB><EFBFBD><EFBFBD>
end if
next%>
<td width = '5%' ><%=tmpstr%></td>
<%''<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
tmpstr="&nbsp;"
for i=0 to ubound(db_p_dp)
if db_p_dp(i,1) = rs("p_dper") then
tmpstr = db_p_dp(i,2)
db_p_dp(i,3) = cint(db_p_dp(i,3)) + 1''dp<64><70><EFBFBD>纰 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD> ī<><C4AB><EFBFBD><EFBFBD>
end if
next
prj_dp = tmpstr '<27><><EFBFBD><EFBFBD>dp
%>
<td width = '5%' ><%=prj_dp%></td>
<%''<27><><EFBFBD><EFBFBD> sv
tmpstr="&nbsp;"
for i=0 to ubound(db_p_sv)
if db_p_sv(i,1) = rs("p_sv") then
tmpstr = db_p_sv(i,2)
db_p_sv(i,3) = cint(db_p_sv(i,3)) + 1''sv <20><><EFBFBD>纰 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD> ī<><C4AB><EFBFBD><EFBFBD>
end if
next
prj_sv = tmpstr
%>
<td width = '5%' ><%=prj_sv%></td>
<td width = '10%' ><%=Rs("p_field_st")%></td>
<td width = '10%' ><%=Rs("p_field_end")%></td>
<td width = '10%' ><%=Rs("P_punch_end")%></td>
<td width = '5%' >
<%
tmpstr = Rs("p_method")
if trim(tmpstr) <> "" then
tmpstr = default_path_root & "inspection/project_direct_cost.asp?url_posi=project_stat&p_sn=" & RS("p_sn") & "&p_method=" & Rs("p_method")
if tmpstr = "<22>ش<EFBFBD><D8B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>ϵǾ<CFB5> <20><><EFBFBD><EFBFBD> <20>ʽ<EFBFBD><CABD>ϴ<EFBFBD>" then%>
<a href='javascript:alert("<22>ش<EFBFBD><D8B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>ϵǾ<CFB5> <20><><EFBFBD><EFBFBD> <20>ʽ<EFBFBD><CABD>ϴ<EFBFBD>.\n\n<><6E><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD><CEBC><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><>ȸ<EFBFBD><C8B8><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ؾ<EFBFBD><D8BE>մϴ<D5B4>.");'><3E><><EFBFBD><EFBFBD></a>
<%else
if cint(Session("Depart_Code") ) < 11 or (cint(Session("Depart_Code") ) >= 20 and cint(Session("Depart_Code") ) <=60) then '<27><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD><CEBC≯<EFBFBD>
tmpstr = tmpstr & "&printmode=1"%>
<a target=new href = '<%=tmpstr%>'><3E><><EFBFBD><EFBFBD></a>
<%else
' tmpstr = tmpstr & "&url_posi=project_stat"
tmpstr = tmpstr & "&sc_year=" & sc_year
tmpstr = tmpstr & "&sc_month=" & sc_month
tmpstr = tmpstr & "&sc_team=" & sc_team
tmpstr = tmpstr & "&sc_name=" & sc_name%>
<a href = '<%=tmpstr%>'><3E><><EFBFBD><EFBFBD></a>
<%end if
%>
<%end if
else%>
<a href='javascript:alert("<22>ش<EFBFBD><D8B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>ϵǾ<CFB5> <20><><EFBFBD><EFBFBD> <20>ʽ<EFBFBD><CABD>ϴ<EFBFBD>.\n\n<><6E><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD><CEBC><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><>ȸ<EFBFBD><C8B8><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ؾ<EFBFBD><D8BE>մϴ<D5B4>.");'><3E><><EFBFBD><EFBFBD></a>
<%end if%>
</td>
<!--
<td width=6%> <a href='<%=Root_Url%><3E>ڷ<EFBFBD><DAB7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>/Recruit/Recruit_condition.asp?prj_code=<%=RS("p_sn")%>&u_name=<%=u_name%>'><3E><> <20><></a></td>
-->
<td width = '10%' align=right ><!--<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ݾ<EFBFBD>-->
<%if not isnull(rs("p_esti_cost")) then%>
<%=formatnumber(rs("p_esti_cost"),0)%>
<%end if%>
&nbsp;&nbsp;&nbsp;
</td>
<%
Rs.movenext
loop
end if 'if Rs.recordcount<1 then
Rs.Close
%>
</table>
<br>
<%'dp<64><70><EFBFBD>纰 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD> ī<><C4AB><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ֱ<EFBFBD>
if ((Session("Depart_Code") = "15" or Session("Depart_Code") = "17") and Session("admin_Code") = "1") then '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> %>
<table border=2 cellspacing=0 cellpadding=0 bordercolor=#000069 width='<%=max_width%>'>
<tr bgcolor=#B9E2FA align=center height=30>
<td > <font size=2 color=blue><b><3E><><EFBFBD><EFBFBD> DP <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>常<EFBFBD><E5B8B8><EFBFBD><EFBFBD>)</b></font></td>
<%for i = 1 to ubound(db_p_dp)%>
<td>
<%=db_p_dp(i, 2)%> => <%=db_p_dp(i, 3)%> <20><>
</td>
<%next%>
</tr>
</table>
<%end if%>
<%end if 'if chk_admin <> "etc_buser" then%>
</table>
</td>
</tr>
</table>
</td>
</form>
<% %>

View File

@@ -0,0 +1,462 @@
<!-- #include virtual = "include/header.asp" -->
<%
dim command
command = Request("command")
if command <> "excel" then
%>
<!-- #include virtual = "include/left.asp" -->
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<div class="content-header">
<h1><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><>Ȳ <20>ٿ<EFBFBD><D9BF>ε<EFBFBD></h1>
</div>
<!-- /.content-header -->
<!-- Main content -->
<div class="content-body">
<div class="content">
<div class="container-fluid">
<div class="row">
<div class="col-12">
<%
End If
p_decide_date_st = Mid(replace(request("p_decide_date_st"),"-",""),3,4)
p_decide_date_ed = Mid(replace(request("p_decide_date_ed"),"-",""),3,4)
s = request("s")
if command = "excel" then
new_end_date = Request.Form("new_end_date")
Response.ContentType = "application/vnd.ms-excel"
Response.AddHeader "Content-Disposition","attachment;filename=<3D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD>Ʈ.xls"
st_date2 = Request.Form("txt_st_date2")
end_date2 = Request.Form("txt_end_date2")
end if
%>
<form name="pms" method="post">
<%if command <> "excel" then 'excel export[3] %>
<table width="1600px" cellpadding="3" cellspacing="0" border="0" style="border-collapse:collapse;">
<tr>
<td width="10%" align="center" ><3E>Է±Ⱓ</td>
<td width="40%">
<input type="text" style="width:100;text-align:right;CURSOR:pointer;" name="p_decide_date_st" readonly onClick="winopn('/include/calendar.html?actval=p_decide_date_st')" value="<%=request("p_decide_date_st") %>">
<img src="/images/common/btn_calendar.jpg" align="absmiddle" onClick="winopn('/include/calendar.html?actval=p_decide_date_st')" style="cursor:pointer">
&nbsp ~ &nbsp
<input type="text" style="width:100;text-align:right;CURSOR:pointer;" name="p_decide_date_ed" readonly onClick="winopn('/include/calendar.html?actval=p_decide_date_ed')" value="<%=request("p_decide_date_ed") %>">
<img src="/images/common/btn_calendar.jpg" align="absmiddle" onClick="winopn('/include/calendar.html?actval=p_decide_date_ed')" style="cursor:pointer">
</td>
<td width="10%" align="center" ><3E>μ<EFBFBD></td>
<td width="40%">
<select name="rsch_dept" style="width:150px;">
<option value=""><3E><>ü</option>
<%
query = ""
query = query & " SELECT DISTINCT before_t_cd1 as team_cd, LEFT(T_Name, 8) as team_name "
query = query & " FROM project2.dbo.v_Department "
query = query & " WHERE (before_t_cd1 in (12, 90) or before_t_cd1 between 20 and 90) "
query = query & " order by LEFT(T_Name, 8) "
adors.open query, adoConn, 1
Do while not adors.Eof
%>
<option value="<%=adors("team_cd") %>" <%if request("rsch_dept") = adors("team_cd") then %> selected <% end if %>><%=adors("team_name") %></option>
<%
adors.moveNext
loop
adors.close
%>
</select>
<img src="/images/common/btn_search.jpg" align="absmiddle" style="cursor:pointer" onClick="chkit('1')">
</td>
</tr>
</table>
<%end if 'excel export[3] %>
<% '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>˻<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
if request("s") = 1 then
'======================================================
query = " SELECT A.*, TSA1.count as file1, TSA2.count as file2, TSA3.count as file3, TSA4.count as file4, TSA5.count as file5, "
query = query & " TSA6.count as file6, TSA7.count as file7, TSA8.count as file8, TSA9.count as file9 "
query = query & " FROM ( "
query = query & " SELECT D.d_name as p_depart, tpm.p_rsch_dept, TPM.p_sn as p_sn, tpm.p_child_sn, TPB.p_subject as p_subject, "
query = query & " TCC.p_cli_company_nm as p_cli_company, TCTC.p_client_type_nm, TPM.p_intention, "
query = query & " CASE "
query = query & " WHEN TPM.p_con_date_st IS NULL THEN CONVERT(VARCHAR(10),TPB.p_con_date_st,23) "
query = query & " WHEN TPM.p_con_date_st = '' THEN CONVERT(VARCHAR(10),TPB.p_con_date_st,23) "
query = query & " ELSE TPM.p_con_date_st "
query = query & " END AS p_con_date_st, "
query = query & " CASE "
query = query & " WHEN TPM.p_con_date_end IS NULL THEN CONVERT(VARCHAR(10),TPB.p_con_date_end,23) "
query = query & " WHEN TPM.p_con_date_end = '' THEN CONVERT(VARCHAR(10),TPB.p_con_date_end,23) "
query = query & " ELSE TPM.p_con_date_end "
query = query & " END AS p_con_date_end, "
query = query & " CASE "
query = query & " WHEN TPM.p_cont_cost IS NULL THEN CONVERT(VARCHAR(10),TPB.p_cont_cost,23) "
query = query & " WHEN TPM.p_cont_cost = '' THEN CONVERT(VARCHAR(10),TPB.p_cont_cost,23) "
query = query & " ELSE TPM.p_cont_cost "
query = query & " END AS p_cont_cost, "
query = query & " CASE "
query = query & " WHEN TPM.p_sub_type = 'M' THEN TCCD1.c_code_name "
query = query & " WHEN TPM.p_sub_type = 'C' THEN TCCD2.c_code_name "
query = query & " END AS p_export_range, "
query = query & " DC1.est_money, "
query = query & " CASE "
query = query & " WHEN TPM.p_sub_type = 'M' THEN ROUND(dc2.est_money/convert(float,TPB.p_cont_cost)*100,2) "
query = query & " WHEN TPM.p_sub_type = 'C' THEN ROUND(dc1.est_money/convert(float,TPM.p_cont_cost)*100,2) "
query = query & " END AS total_rate, "
query = query & " DC1.act_money, TPMC.p_method_nm, TCCD3.c_code_name as p_sur_area, TCCD4.c_code_name as p_sur_target, "
query = query & " TPM.p_sample, p_research_date_st, p_research_date_end, TCCD5.c_code_name as p_sur_part, "
query = query & " p1.p_name as p_rsch_1_a, p2.p_name as p_rsch_2_a, p3.p_name as p_rsch_3_a, p4.p_name as p_rsch_4_a, "
query = query & " p5.p_name as p_rsch_1_b, p6.p_name as p_rsch_2_b, p7.p_name as p_rsch_3_b, p8.p_name as p_rsch_4_b, "
query = query & " p9.p_name as p_rsch_1_c, p10.p_name as p_rsch_2_c, p11.p_name as p_rsch_3_c, p12.p_name as p_rsch_4_c, "
query = query & " p13.p_name as p_sv_1, p14.p_name as p_sv_2, p15.p_name as p_sv_3, p16.p_name as p_sv_4, "
query = query & " p17.p_name as p_verify_1, p18.p_name as p_verify_2, p19.p_name as p_code_1, p20.p_name as p_code_2, "
query = query & " p21.p_name as p_dp_1, p22.p_name as p_dp_2, p23.p_name as p_it_1, p24.p_name as p_it_2, "
query = query & " p_rsch_date_st, p_rsch_date_end, p_field_date_st, p_field_date_end "
query = query & " FROM T_PROJECT_METHOD TPM LEFT OUTER JOIN T_PROJECT_BASE TPB ON TPM.p_sn = TPB.p_sn "
query = query & " LEFT OUTER JOIN Depart D ON TPB.p_depart_dep = D.d_code /* <20>μ<EFBFBD><CEBC>ڵ<EFBFBD> */ "
query = query & " LEFT OUTER JOIN T_PROJECT_METHOD_CD TPMC ON TPM.p_method_cd = TPMC.p_method_cd /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20≯<EFBFBD> <20><><EFBFBD><EFBFBD> */ "
query = query & " LEFT OUTER JOIN V_CLIENT_COMP TCC ON TPB.p_cli_company_cd = TCC.p_cli_company_cd /* ȸ<><C8B8><EFBFBD>ڵ<EFBFBD> <20><><EFBFBD><EFBFBD> */ "
query = query & " LEFT OUTER JOIN T_CLIENT_TYPE_CD TCTC ON TPB.p_client_type_cd = TCTC.p_client_type_cd /* ȸ<><C8B8><EFBFBD>ڵ<EFBFBD> <20><><EFBFBD><EFBFBD> */ "
query = query & " LEFT OUTER JOIN T_COMMON_CODE_DETAIL TCCD1 ON TCCD1.c_kind_code = '011' AND TPB.p_export_range = TCCD1.c_common_code /* <20>뿪<EFBFBD><EBBFAA><EFBFBD><EFBFBD> M<><4D> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> */ "
query = query & " LEFT OUTER JOIN T_COMMON_CODE_DETAIL TCCD2 ON TCCD2.c_kind_code = '011' AND TPM.p_export_range = TCCD2.c_common_code /* <20>뿪<EFBFBD><EBBFAA><EFBFBD><EFBFBD> C<><43> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> */ "
query = query & " LEFT OUTER JOIN ( "
query = query & " SELECT p_child_sn, SUM(convert(float,est_money)) as est_money, SUM(convert(float,act_money)) as act_money "
query = query & " FROM direct_cost "
query = query & " WHERE del_yes_no = 'NO' "
query = query & " AND hangmok NOT IN ('<27>޸<EFBFBD>','<27>޸<EFBFBD>_<EFBFBD>濵<EFBFBD><E6BFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>') "
query = query & " AND p_child_sn IS NOT NULL "
query = query & " GROUP BY p_child_sn "
query = query & " ) DC1 ON TPM.p_child_sn = dc1.p_child_sn /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ջ<EFBFBD><D5BB>ϱ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> */ "
query = query & " LEFT OUTER JOIN ( "
query = query & " SELECT p_sn, SUM(convert(money,est_money)) as est_money, SUM(convert(money,act_money)) as act_money "
query = query & " FROM direct_cost "
query = query & " WHERE del_yes_no = 'NO' "
query = query & " AND hangmok NOT IN ('<27>޸<EFBFBD>','<27>޸<EFBFBD>_<EFBFBD>濵<EFBFBD><E6BFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>') "
query = query & " AND p_child_sn IS NOT NULL "
query = query & " AND p_child_sn LIKE '%M%' "
query = query & " GROUP BY p_sn "
query = query & " ) DC2 ON TPM.p_sn = dc2.p_sn /* M<><4D> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> P_SN<53><4E><EFBFBD><EFBFBD> <20>ջ<EFBFBD><D5BB>ϱ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> */ "
query = query & " LEFT OUTER JOIN T_COMMON_CODE_DETAIL TCCD3 ON TCCD3.c_kind_code = '012' AND TPM.p_sur_area = TCCD3.c_common_code /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> */ "
query = query & " LEFT OUTER JOIN T_COMMON_CODE_DETAIL TCCD4 ON TCCD4.c_kind_code = '013' AND TPM.p_sur_target = TCCD4.c_common_code /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> */ "
query = query & " LEFT OUTER JOIN T_COMMON_CODE_DETAIL TCCD5 ON TCCD5.c_kind_code = '014' AND TPM.p_sur_part = TCCD5.c_common_code /* <20><><EFBFBD><EFBFBD><EFBFBD>з<EFBFBD> <20><><EFBFBD><EFBFBD> */ "
query = query & " LEFT OUTER JOIN person p1 ON TPM.p_rsch_1_a = p1.p_no /* <20><>ȹ1 <20><><EFBFBD><EFBFBD><EFBFBD>ο<EFBFBD> <20><><EFBFBD><EFBFBD> */ "
query = query & " LEFT OUTER JOIN person p2 ON TPM.p_rsch_2_a = p2.p_no /* <20><>ȹ2 <20><><EFBFBD><EFBFBD><EFBFBD>ο<EFBFBD> <20><><EFBFBD><EFBFBD> */ "
query = query & " LEFT OUTER JOIN person p3 ON TPM.p_rsch_3_a = p3.p_no /* <20><>ȹ3 <20><><EFBFBD><EFBFBD><EFBFBD>ο<EFBFBD> <20><><EFBFBD><EFBFBD> */ "
query = query & " LEFT OUTER JOIN person p4 ON TPM.p_rsch_4_a = p4.p_no /* <20><>ȹ4 <20><><EFBFBD><EFBFBD><EFBFBD>ο<EFBFBD> <20><><EFBFBD><EFBFBD> */ "
query = query & " LEFT OUTER JOIN person p5 ON TPM.p_rsch_1_b = p5.p_no /* <20>ǻ<EFBFBD><C7BB><EFBFBD><EFBFBD><EFBFBD>1 <20><><EFBFBD><EFBFBD><EFBFBD>ο<EFBFBD> <20><><EFBFBD><EFBFBD> */ "
query = query & " LEFT OUTER JOIN person p6 ON TPM.p_rsch_2_b = p6.p_no /* <20>ǻ<EFBFBD><C7BB><EFBFBD><EFBFBD><EFBFBD>2 <20><><EFBFBD><EFBFBD><EFBFBD>ο<EFBFBD> <20><><EFBFBD><EFBFBD> */ "
query = query & " LEFT OUTER JOIN person p7 ON TPM.p_rsch_3_b = p7.p_no /* <20>ǻ<EFBFBD><C7BB><EFBFBD><EFBFBD><EFBFBD>3 <20><><EFBFBD><EFBFBD><EFBFBD>ο<EFBFBD> <20><><EFBFBD><EFBFBD> */ "
query = query & " LEFT OUTER JOIN person p8 ON TPM.p_rsch_4_b = p8.p_no /* <20>ǻ<EFBFBD><C7BB><EFBFBD><EFBFBD><EFBFBD>4<EFBFBD><34><EFBFBD><EFBFBD><EFBFBD>ο<EFBFBD> <20><><EFBFBD><EFBFBD> */ "
query = query & " LEFT OUTER JOIN person p9 ON TPM.p_rsch_1_c = p9.p_no /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>1 <20><><EFBFBD><EFBFBD><EFBFBD>ο<EFBFBD> <20><><EFBFBD><EFBFBD> */ "
query = query & " LEFT OUTER JOIN person p10 ON TPM.p_rsch_2_c = p10.p_no /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>2 <20><><EFBFBD><EFBFBD><EFBFBD>ο<EFBFBD> <20><><EFBFBD><EFBFBD> */ "
query = query & " LEFT OUTER JOIN person p11 ON TPM.p_rsch_3_c = p11.p_no /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>3 <20><><EFBFBD><EFBFBD><EFBFBD>ο<EFBFBD> <20><><EFBFBD><EFBFBD> */ "
query = query & " LEFT OUTER JOIN person p12 ON TPM.p_rsch_4_c = p12.p_no /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>4 <20><><EFBFBD><EFBFBD><EFBFBD>ο<EFBFBD> <20><><EFBFBD><EFBFBD> */ "
query = query & " LEFT OUTER JOIN person p13 ON TPM.p_sv_1 = p13.p_no /* <20>ǻ<EFBFBD>1 <20><><EFBFBD><EFBFBD><EFBFBD>ο<EFBFBD> <20><><EFBFBD><EFBFBD> */ "
query = query & " LEFT OUTER JOIN person p14 ON TPM.p_sv_2 = p14.p_no /* <20>ǻ<EFBFBD>2 <20><><EFBFBD><EFBFBD><EFBFBD>ο<EFBFBD> <20><><EFBFBD><EFBFBD> */ "
query = query & " LEFT OUTER JOIN person p15 ON TPM.p_sv_3 = p15.p_no /* <20>ǻ<EFBFBD>3 <20><><EFBFBD><EFBFBD><EFBFBD>ο<EFBFBD> <20><><EFBFBD><EFBFBD> */ "
query = query & " LEFT OUTER JOIN person p16 ON TPM.p_sv_4 = p16.p_no /* <20>ǻ<EFBFBD>4 <20><><EFBFBD><EFBFBD><EFBFBD>ο<EFBFBD> <20><><EFBFBD><EFBFBD> */ "
query = query & " LEFT OUTER JOIN person p17 ON TPM.p_verify_1 = p17.p_no /* <20><><EFBFBD><EFBFBD>1 <20><><EFBFBD><EFBFBD><EFBFBD>ο<EFBFBD> <20><><EFBFBD><EFBFBD> */ "
query = query & " LEFT OUTER JOIN person p18 ON TPM.p_verify_2 = p18.p_no /* <20><><EFBFBD><EFBFBD>2 <20><><EFBFBD><EFBFBD><EFBFBD>ο<EFBFBD> <20><><EFBFBD><EFBFBD> */ "
query = query & " LEFT OUTER JOIN person p19 ON TPM.p_code_1 = p19.p_no /* <20>ڵ<EFBFBD>/<2F><>ġ1 <20><><EFBFBD><EFBFBD><EFBFBD>ο<EFBFBD> <20><><EFBFBD><EFBFBD> */ "
query = query & " LEFT OUTER JOIN person p20 ON TPM.p_code_2 = p20.p_no /* <20>ڵ<EFBFBD>/<2F><>ġ2 <20><><EFBFBD><EFBFBD><EFBFBD>ο<EFBFBD> <20><><EFBFBD><EFBFBD> */ "
query = query & " LEFT OUTER JOIN person p21 ON TPM.p_dp_1 = p21.p_no /* DP1 <20><><EFBFBD><EFBFBD><EFBFBD>ο<EFBFBD> <20><><EFBFBD><EFBFBD> */ "
query = query & " LEFT OUTER JOIN person p22 ON TPM.p_dp_2 = p22.p_no /* DP2 <20><><EFBFBD><EFBFBD><EFBFBD>ο<EFBFBD> <20><><EFBFBD><EFBFBD> */ "
query = query & " LEFT OUTER JOIN person p23 ON TPM.p_it_1 = p23.p_no /* IT1 <20><><EFBFBD><EFBFBD><EFBFBD>ο<EFBFBD> <20><><EFBFBD><EFBFBD> */ "
query = query & " LEFT OUTER JOIN person p24 ON TPM.p_it_2 = p24.p_no /* IT1 <20><><EFBFBD><EFBFBD><EFBFBD>ο<EFBFBD> <20><><EFBFBD><EFBFBD> */ "
query = query & " WHERE p_progress_status > 007 "
query = query & " "
query = query & " UNION "
query = query & " "
query = query & " SELECT D.d_name as p_depart, p.p_depart_dep, p.p_sn, '' as p_child_sn, p.p_subject, c.c_name as c_cli_company, "
query = query & " ct.c_type_name as c_client_type_nm, p_intention, p_convdate_st as p_con_date_st, p_convdate_end as p_con_date_end, "
query = query & " p_budget as p_cont_cost, '' as p_export_range, (p.p_esti_cost + p_esti_cost_research) as est_money, "
query = query & " CASE "
query = query & " WHEN p_budget = '0' THEN 0 "
query = query & " ELSE ROUND((CONVERT(FLOAT,p.p_esti_cost)+p_esti_cost_research)/p_budget*100,2) "
query = query & " END AS total_rate, "
query = query & " p_real_cost, pm.name1 as p_method_nm, "
query = query & " p.p_area as p_sur_area, p.p_target_text as p_sur_target, p.p_sample as p_sample, '' as p_research_date_st, '' as p_research_date_end, "
query = query & " '' as p_sur_part, P1.p_name as p_rsch_1_a, P2.p_name as p_rsch_2_a, P3.p_name as p_rsch_3_a, P4.p_name as p_rsch_4_a, "
query = query & " '' as p_rsch_1_b, '' as p_rsch_2_b, '' as p_rsch_3_b, '' as p_rsch_4_b, "
query = query & " '' as p_rsch_1_c, '' as p_rsch_2_c, '' as p_rsch_3_c, '' as p_rsch_4_c, "
query = query & " P5.p_name as p_sv_1, P6.p_name as p_sv_2, '' as p_sv_3, '' as p_sv_4, P7.p_name as p_verify_1, '' as p_verify_2, "
query = query & " P8.p_name as p_code_1, '' p_code_2, P9.p_name as p_dp_1, P10.p_name as p_dp_2, '' as p_it_1, '' as p_it_2, "
query = query & " p_report_st as p_rsch_date_st, p_report_end as p_rsch_date_end, p_field_st as p_field_date_st, p_field_end as p_field_date_end "
query = query & " FROM project P "
query = query & " LEFT OUTER JOIN Depart D ON p.p_depart = D.d_code "
query = query & " LEFT OUTER JOIN Client C ON p.p_cli_company = C.c_code "
query = query & " LEFT OUTER JOIN Client_Type CT ON C.c_type = CT.c_type_code "
query = query & " LEFT OUTER JOIN p_method PM ON p.p_method = pm.code1 "
query = query & " LEFT OUTER JOIN person P1 ON p.p_rsch_1 = p1.p_no "
query = query & " LEFT OUTER JOIN person P2 ON p.p_rsch_2 = p2.p_no "
query = query & " LEFT OUTER JOIN person P3 ON p.p_rsch_3 = p3.p_no "
query = query & " LEFT OUTER JOIN person P4 ON p.p_rsch_4 = p4.p_no "
query = query & " LEFT OUTER JOIN person P5 ON p.p_sv = p5.p_no "
query = query & " LEFT OUTER JOIN person P6 ON p.p_sv2 = p6.p_no "
query = query & " LEFT OUTER JOIN person P7 ON p.p_verify = p7.p_no "
query = query & " LEFT OUTER JOIN person P8 ON p.p_coder = p8.p_no "
query = query & " LEFT OUTER JOIN person P9 ON p.p_dper = p9.p_no "
query = query & " LEFT OUTER JOIN person P10 ON p.p_dper2 = p10.p_no "
query = query & " LEFT OUTER JOIN person P11 ON p.p_dper3 = p11.p_no "
query = query & " ) A LEFT OUTER JOIN "
query = query & " ( "
query = query & " SELECT f_kind, COUNT(f_kind) as count, f_p_sn "
query = query & " FROM T_SYSTEM_ATTACH "
query = query & " WHERE f_kind = '001' "
query = query & " GROUP BY f_work_type, f_kind, f_p_sn "
query = query & " ) TSA1 ON A.p_sn = TSA1.f_p_sn /* RFP */ "
query = query & " LEFT OUTER JOIN ( "
query = query & " SELECT f_kind, COUNT(f_kind) as count, f_p_sn "
query = query & " FROM T_SYSTEM_ATTACH "
query = query & " WHERE f_kind = '002' "
query = query & " GROUP BY f_work_type, f_kind, f_p_sn "
query = query & " ) TSA2 ON A.p_sn = TSA2.f_p_sn /* <09><><EFBFBD>ȼ<EFBFBD> */ "
query = query & " LEFT OUTER JOIN ( "
query = query & " SELECT f_kind, COUNT(f_kind) as count, f_p_sn "
query = query & " FROM T_SYSTEM_ATTACH "
query = query & " WHERE f_kind = '003' "
query = query & " GROUP BY f_work_type, f_kind, f_p_sn "
query = query & " ) TSA3 ON A.p_sn = TSA3.f_p_sn /* <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */ "
query = query & " LEFT OUTER JOIN ( "
query = query & " SELECT f_kind, COUNT(f_kind) as count, f_p_sn "
query = query & " FROM T_SYSTEM_ATTACH "
query = query & " WHERE f_kind = '004' "
query = query & " GROUP BY f_work_type, f_kind, f_p_sn "
query = query & " ) TSA4 ON A.p_sn = TSA4.f_p_sn /* <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */ "
query = query & " LEFT OUTER JOIN ( "
query = query & " SELECT f_kind, COUNT(f_kind) as count, f_p_sn "
query = query & " FROM T_SYSTEM_ATTACH "
query = query & " WHERE f_kind = '005' "
query = query & " GROUP BY f_work_type, f_kind, f_p_sn "
query = query & " ) TSA5 ON A.p_sn = TSA5.f_p_sn /* <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */ "
query = query & " LEFT OUTER JOIN ( "
query = query & " SELECT f_kind, COUNT(f_kind) as count, f_p_sn "
query = query & " FROM T_SYSTEM_ATTACH "
query = query & " WHERE f_kind = '006' "
query = query & " GROUP BY f_work_type, f_kind, f_p_sn "
query = query & " ) TSA6 ON A.p_sn = TSA6.f_p_sn /* <09><><EFBFBD>̵<EFBFBD> */ "
query = query & " LEFT OUTER JOIN ( "
query = query & " SELECT f_kind, COUNT(f_kind) as count, f_p_sn "
query = query & " FROM T_SYSTEM_ATTACH "
query = query & " WHERE f_kind = '007' "
query = query & " GROUP BY f_work_type, f_kind, f_p_sn "
query = query & " ) TSA7 ON A.p_sn = TSA7.f_p_sn /* <09><>Ÿ<EFBFBD>ڷ<EFBFBD> */ "
query = query & " LEFT OUTER JOIN ( "
query = query & " SELECT f_kind, COUNT(f_kind) as count, f_p_sn "
query = query & " FROM T_SYSTEM_ATTACH "
query = query & " WHERE f_kind = '008' "
query = query & " GROUP BY f_work_type, f_kind, f_p_sn "
query = query & " ) TSA8 ON A.p_sn = TSA8.f_p_sn /* <09>ǻ<EFBFBD>(Field} */ "
query = query & " LEFT OUTER JOIN ( "
query = query & " SELECT f_kind, COUNT(f_kind) as count, f_p_sn "
query = query & " FROM T_SYSTEM_ATTACH "
query = query & " WHERE f_kind = '009' "
query = query & " GROUP BY f_work_type, f_kind, f_p_sn "
query = query & " ) TSA9 ON A.p_sn = TSA9.f_p_sn /* <09><><EFBFBD><EFBFBD>(DP) */ "
query = query & " WHERE LEFT(p_sn, 4) BETWEEN "&p_decide_date_st&" AND "&p_decide_date_ed&" "
if request("rsch_dept") <> "" Then
query = query & " AND p_rsch_dept = '" & request("rsch_dept") & "' "
End If
query = query & " ORDER BY P_SN, p_child_sn "
rs.Open query, adoConn, 1
%>
<% if command <> "excel" Then %>
<p align = "left"><img src="/images/common/btn_smallexcel.gif" onclick='javascript:{excel_export();}' style='CURSOR:pointer;' title ='<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'></p>
<div style="overflow-y:scroll;height:500px;width:100%;border:none;">
<% End if %>
<table width="4000" cellpadding="0" cellspacing="0" border="0" >
<tr>
<td colspan="12" align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD></td>
<td colspan="1" align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȳ</td>
<td colspan="11" align="center" height="24" ><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td colspan="24" align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD>η<EFBFBD></td>
<td colspan="4" align="center" height="24" ><3E><><EFBFBD><EFBFBD></td>
<td colspan="9" align="center" height="24" >÷<>ι<EFBFBD><CEB9><EFBFBD></td>
</tr>
<tr>
<td align="center" height="24" ><3E><></td>
<td align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD>ڵ<EFBFBD></td>
<td align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE></td>
<td align="center" height="24" >ȸ<><C8B8></td>
<td align="center" height="24" ><3E><><EFBFBD><EFBFBD></td>
<td align="center" height="24" ><3E><><EFBFBD>系<EFBFBD><E7B3BB></td>
<td align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD>Ⱓ(start)</td>
<td align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD>Ⱓ(end)</td>
<td align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td align="center" height="24" ><3E>뿪<EFBFBD><EBBFAA><EFBFBD><EFBFBD></td>
<td align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD>)</td>
<td align="center" height="24" ><3E><>ü<EFBFBD><C3BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD>)</td>
<td align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>1</td>
<td align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>2</td>
<td align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>3</td>
<td align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>4</td>
<td align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>5</td>
<td align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td align="center" height="24" >ǥ<><C7A5><EFBFBD><EFBFBD></td>
<td align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD>Ⱓ(start)</td>
<td align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD>Ⱓ(end)</td>
<td align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD>з<EFBFBD></td>
<td align="center" height="24" ><3E><>ȹ1</td>
<td align="center" height="24" ><3E><>ȹ2</td>
<td align="center" height="24" ><3E><>ȹ3</td>
<td align="center" height="24" ><3E><>ȹ4</td>
<td align="center" height="24" ><3E>ǻ<EFBFBD><C7BB><EFBFBD><EFBFBD><EFBFBD>1</td>
<td align="center" height="24" ><3E>ǻ<EFBFBD><C7BB><EFBFBD><EFBFBD><EFBFBD>2</td>
<td align="center" height="24" ><3E>ǻ<EFBFBD><C7BB><EFBFBD><EFBFBD><EFBFBD>3</td>
<td align="center" height="24" ><3E>ǻ<EFBFBD><C7BB><EFBFBD><EFBFBD><EFBFBD>4</td>
<td align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>1</td>
<td align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>2</td>
<td align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>3</td>
<td align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>4</td>
<td align="center" height="24" ><3E>ǻ<EFBFBD>1</td>
<td align="center" height="24" ><3E>ǻ<EFBFBD>2</td>
<td align="center" height="24" ><3E>ǻ<EFBFBD>3</td>
<td align="center" height="24" ><3E>ǻ<EFBFBD>4</td>
<td align="center" height="24" ><3E><><EFBFBD><EFBFBD>1</td>
<td align="center" height="24" ><3E><><EFBFBD><EFBFBD>2</td>
<td align="center" height="24" ><3E>ڵ<EFBFBD>/<2F><>ġ1</td>
<td align="center" height="24" ><3E>ڵ<EFBFBD>/<2F><>ġ2</td>
<td align="center" height="24" >DP1</td>
<td align="center" height="24" >DP2</td>
<td align="center" height="24" >IT1</td>
<td align="center" height="24" >IT2</td>
<td align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD>(start)</td>
<td align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD>(end)</td>
<td align="center" height="24" ><3E>ǻ<EFBFBD>(start)</td>
<td align="center" height="24" ><3E>ǻ<EFBFBD>(end)</td>
<td align="center" height="24" >RFP</td>
<td align="center" height="24" ><3E><><EFBFBD>ȼ<EFBFBD></td>
<td align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td align="center" height="24" ><3E><><EFBFBD>̵<EFBFBD></td>
<td align="center" height="24" ><3E><>Ÿ<EFBFBD>ڷ<EFBFBD></td>
<td align="center" height="24" ><3E>ǻ<EFBFBD></td>
<td align="center" height="24" ><3E><><EFBFBD><EFBFBD></td>
</tr>
<% if rs.recordCount = 0 then %>
<tr height="70" bgcolor="#dbe9f2">
<td width="" colspan="61" align="left" fon><font color="blue" size="5"><3E>˻<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>.</font></td>
</tr>
<% end if
for i = 1 to rs.recordCount
if i mod 2 = 0 then
tmp_bgcolor = "#dbe9f2"
else
tmp_bgcolor = "#ffffff"
end if
%>
<tr height="24" bgcolor="<%=tmp_bgcolor%>">
<td width="" align="center" height="24" ><%= rs("p_depart") %></td>
<td width="" align="center" height="24" ><%= rs("p_sn") %></td>
<td width="" align="center" height="24" ><%= rs("p_subject") %></td>
<td width="" align="center" height="24" ><%= rs("p_cli_company") %></td>
<td width="" align="center" height="24" ><%= rs("p_client_type_nm") %></td>
<td width="" align="center" height="24" ><%= rs("p_intention") %></td>
<td width="" align="center" height="24" ><%= rs("p_con_date_st") %></td>
<td width="" align="center" height="24" ><%= rs("p_con_date_end") %></td>
<td width="" align="center" height="24" ><%= rs("p_cont_cost") %></td>
<td width="" align="center" height="24" ><%= rs("p_export_range") %></td>
<td width="" align="center" height="24" ><%= rs("est_money") %></td>
<td width="" align="center" height="24" ><%= rs("total_rate") %></td>
<td width="" align="center" height="24" ><%= rs("act_money") %></td>
<td width="" align="center" height="24" ><%= rs("p_method_nm") %></td>
<td width="" align="center" height="24" ></td>
<td width="" align="center" height="24" ></td>
<td width="" align="center" height="24" ></td>
<td width="" align="center" height="24" ></td>
<td width="" align="center" height="24" ><%= rs("p_sur_area") %></td>
<td width="" align="center" height="24" ><%= rs("p_sur_target") %></td>
<td width="" align="center" height="24" ><%= rs("p_sample") %></td>
<td width="" align="center" height="24" ><%= rs("p_research_date_st") %></td>
<td width="" align="center" height="24" ><%= rs("p_research_date_end") %></td>
<td width="" align="center" height="24" ><%= rs("p_sur_part") %></td>
<td width="" align="center" height="24" ><%= rs("p_rsch_1_a") %></td>
<td width="" align="center" height="24" ><%= rs("p_rsch_2_a") %></td>
<td width="" align="center" height="24" ><%= rs("p_rsch_3_a") %></td>
<td width="" align="center" height="24" ><%= rs("p_rsch_4_a") %></td>
<td width="" align="center" height="24" ><%= rs("p_rsch_1_b") %></td>
<td width="" align="center" height="24" ><%= rs("p_rsch_2_b") %></td>
<td width="" align="center" height="24" ><%= rs("p_rsch_3_b") %></td>
<td width="" align="center" height="24" ><%= rs("p_rsch_4_b") %></td>
<td width="" align="center" height="24" ><%= rs("p_rsch_1_c") %></td>
<td width="" align="center" height="24" ><%= rs("p_rsch_2_c") %></td>
<td width="" align="center" height="24" ><%= rs("p_rsch_3_c") %></td>
<td width="" align="center" height="24" ><%= rs("p_rsch_4_c") %></td>
<td width="" align="center" height="24" ><%= rs("p_sv_1") %></td>
<td width="" align="center" height="24" ><%= rs("p_sv_2") %></td>
<td width="" align="center" height="24" ><%= rs("p_sv_3") %></td>
<td width="" align="center" height="24" ><%= rs("p_sv_4") %></td>
<td width="" align="center" height="24" ><%= rs("p_verify_1") %></td>
<td width="" align="center" height="24" ><%= rs("p_verify_2") %></td>
<td width="" align="center" height="24" ><%= rs("p_code_1") %></td>
<td width="" align="center" height="24" ><%= rs("p_code_2") %></td>
<td width="" align="center" height="24" ><%= rs("p_dp_1") %></td>
<td width="" align="center" height="24" ><%= rs("p_dp_2") %></td>
<td width="" align="center" height="24" ><%= rs("p_it_1") %></td>
<td width="" align="center" height="24" ><%= rs("p_it_2") %></td>
<td width="" align="center" height="24" ><%= rs("p_rsch_date_st") %></td>
<td width="" align="center" height="24" ><%= rs("p_rsch_date_end") %></td>
<td width="" align="center" height="24" ><%= rs("p_field_date_st") %></td>
<td width="" align="center" height="24" ><%= rs("p_field_date_end") %></td>
<td width="" align="center" height="24" ><%= rs("file1") %></td>
<td width="" align="center" height="24" ><%= rs("file2") %></td>
<td width="" align="center" height="24" ><%= rs("file3") %></td>
<td width="" align="center" height="24" ><%= rs("file4") %></td>
<td width="" align="center" height="24" ><%= rs("file5") %></td>
<td width="" align="center" height="24" ><%= rs("file6") %></td>
<td width="" align="center" height="24" ><%= rs("file7") %></td>
<td width="" align="center" height="24" ><%= rs("file8") %></td>
<td width="" align="center" height="24" ><%= rs("file9") %></td>
</tr>
<%
rs.movenext
next%>
</table>
<% if command <> "excel" Then %>
</div>
<%
End if
end if
%>
</form>
<%if command <> "excel" then%>
</div>
</div>
</div>
</div>
</div>
<!-- /.content -->
<!-- REQUIRED SCRIPTS -->
<script>
function chkit(txt) {
var f = document.pms;
if(f.p_decide_date_st.value == "" || f.p_decide_date_ed.value == "" ){
alert("<22>Ⱓ<EFBFBD><E2B0A3> <20>Է<EFBFBD><D4B7>ϼ<EFBFBD><CFBC><EFBFBD>~!");
return false;
}
var url = "project_state_search_2014.asp";
if (txt == "1") {
url = url + '?s=1';
}else {
url = url + '?s=1&command=excel';
}
f.action = url;
f.submit();
}
function excel_export() {
pms.action = "project_state_search_2014.asp?s=1&command=excel";
pms.submit();
}
</script>
</div>
<!-- /.content-wrapper -->
<!-- #include virtual = "include/footer.asp" -->
<% end if %>

View File

@@ -0,0 +1,72 @@
<!-- #include virtual = "lib/config.asp" -->
<%
Dim p_sn
p_sn = request("p_sn")
%>
<html>
<head>
<title></title>
<meta http-equiv="content-type" content="text/html; charset=EUC-KR" />
<link rel="stylesheet" type="text/css" href="/css/basic.css">
<script language="javascript" type="text/javascript">
function setFormatPrice() {
strNum = document.tofrm.p_total_cost.value;
strNum = strNum.replace(/,/g, "");
var result = '';
for (var i = 0; i < strNum.length; i++) {
if (i % 3 == 0 && i != 0) result = ',' + result;
result = strNum.charAt(strNum.length - (i + 1)) + result;
}
document.tofrm.p_total_cost.value = result;
}
function total_cost_save(){
var frm = document.tofrm;
var p_total_cost = frm.p_total_cost.value;
if(p_total_cost != "" && p_total_cost * 1 != 0){
frm.action = "./project_total_cost_ok.asp";
frm.submit();
}else{
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>Ȯ<EFBFBD><C8AE> <20>Է<EFBFBD><D4B7>ϼ<EFBFBD><CFBC><EFBFBD>.");
}
}
</script>
</head>
<body>
<form name="tofrm" method="post">
<table width="350" cellpadding="3" cellspacing="0" border="0" style="border-collapse:collapse;">
<tr>
<td colspan="2" height="4" ></td>
</tr>
<tr>
<td width="40%" align="center" ><3E><><EFBFBD><EFBFBD> <20><>ȣ</td>
<td width="60%" >
<input type="text" style="width:100;" name="p_sn_code" value="<%=p_sn %>" readonly>
</td>
</tr>
<tr>
<td align="center" >
<09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<28><>ü<EFBFBD><C3BC><EFBFBD>ֱݾ<D6B1>)
</td>
<td >
<input class="input" type="text" name="p_total_cost" value="" style="width:100;text-align:right;" onkeyup="setFormatPrice()" onkeypress="if (event.keyCode < 48 || event.keyCode > 57) event.returnValue = false;" /> <20><> (<font class="tahoma_red">VAT <20><><EFBFBD><EFBFBD></font>)
</td>
</tr>
<tr>
<td colspan="2" height="4" ></td>
</tr>
<tr>
<td align="center" colspan="3" style="padding:10 0 0 0">
<img src="/images/project/btn_save.jpg" align="absmiddle" style="cursor:pointer" onclick="total_cost_save()"> <!-- <20><><EFBFBD><EFBFBD><EFBFBD>ϱ<EFBFBD> -->
</td>
</tr>
</table>
</form>
</body>
</html>

View File

@@ -0,0 +1,32 @@
<!-- #include virtual = "lib/config.asp" -->
<%
dim p_sn
dim p_total_cost
p_sn = request("p_sn_code")
p_total_cost = replace(request("p_total_cost"), ",", "")
query = "UPDATE T_PROJECT_BASE "
query = query & "SET "
query = query & " p_total_cost = '" & p_total_cost & "' "
query = query & "WHERE p_sn = '" & p_sn & "' "
'Response.Write query
set dbin = server.CreateObject("ADODB.CONNECTION")
dbin.Open adoConn
dbin.Execute query
dbin.Close
%>
<script>
function onl(p_sn) {
opener.subit('3', p_sn);
self.close();
}
</script>
<body onload="onl('<%=p_sn %>')">
<form name="tokfrm">
<input type="hidden" name="p_sn_tmp" value="<%=p_sn%>" />
</form>
</body>

View File

@@ -0,0 +1,17 @@
<%
Response.Expires = 0
Response.ContentType = "application/vnd.ms-excel"
Response.ContentType = "application/unkown"
Response.Buffer = TRUE
Response.AddHeader "Content-Disposition","attachment; filename=[<5B><>Ī_FCS_<53>̰<EFBFBD>]_["&request.form("pn_cd")&"]_["&replace(date(),"-","_")&"].xls"
%>
<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=ks_c_5601-1987">
<TITLE>KRC</TITLE>
</HEAD>
<BODY>
<%= Request.Form("x_temp") %>
</BODY>
</HTML>

View File

@@ -0,0 +1,474 @@
<!-- #include virtual = "lib/config.asp" -->
<%
SET rsa = server.CreateObject("ADODB.RECORDSET")
SET rsp = server.CreateObject("ADODB.RECORDSET")
dim pn_cd : pn_cd=request.item("pn_cd") '-- <20><>Ī<EFBFBD><C4AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD>ڵ<EFBFBD>
dim pu_prjcode_type : pu_prjcode_type=request.form("pu_prjcode_type") '-- <20><>ĪŸ<C4AA><C5B8>
dim pu_prjcode_area : pu_prjcode_area=request.form("pu_prjcode_area") '-- fcs <20><><EFBFBD><EFBFBD>
dim pu_fcs_type : pu_fcs_type=request.form("pu_fcs_type") '-- fcs Ÿ<><C5B8>
if pu_prjcode_type="" then pu_prjcode_type="A"
if pu_prjcode_area="" then pu_prjcode_area="<22><><EFBFBD><EFBFBD>"
if pu_fcs_type="" then pu_fcs_type="A"
%>
<meta http-equiv="Content-Type" content="application/vnd.ms-excel;charset=euc-kr">
<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">
<title><%=GNB_TITLE%></title>
<link rel="stylesheet" type="text/css" href="../css/basic.css">
<script src="/js/jquery.min.js"></script>
<script src="/js/jquery-ajax-call.js"></script>
<script src="/js/jquery.form.min.js"></script>
<script language="javascript" src="../js/common.js"></script>
<script type="text/javascript" src="valueck.js"></script>
<script language=javascript>
// <20><>Ī<EFBFBD><C4AA><EFBFBD><EFBFBD> FCS<43><53> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>̰<EFBFBD>
function js_fcs_column(x){
var url = "punching_field_setting.asp?";
url=url+"pn_cd=<%=pn_cd%>";
url=url+"&pu_area="+x.pu_prjcode_area.value;
url=url+"&pu_type="+x.pu_prjcode_type.value;
var pwidth=800;
var pheight=700;
var tleft=(screen.width-pwidth)/2;
var ttop=(screen.height-pheight)/2;
winObj=window.open(url, "wins2", "left="+tleft+", top="+ttop+", menubar=no, location=no, status=no, toolbar=no, width="+pwidth+", height="+pheight+", scrollbars=yes ,resizable=no");
}
// <20>̰<EFBFBD><CCB0><EFBFBD><EFBFBD><EFBFBD> Ȯ<><C8AE>
function js_fcs_column_view(x){
var url = "punching_field_setting_ok_view.asp?";
url=url+"pn_cd=<%=pn_cd%>";
url=url+"&pu_area="+x.pu_prjcode_area.value;
url=url+"&pu_type="+x.pu_prjcode_type.value;
var pwidth=800;
var pheight=700;
var tleft=(screen.width-pwidth)/2;
var ttop=(screen.height-pheight)/2;
winObj=window.open(url, "wins2", "left="+tleft+", top="+ttop+", menubar=no, location=no, status=no, toolbar=no, width="+pwidth+", height="+pheight+", scrollbars=yes ,resizable=no");
}
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>̰<EFBFBD><CCB0>ϱ<EFBFBD>
function js_data_delivery(x){
if((fname.fcs_type__ss.value=="")||(fname.fcs_type__ee.value=="")){
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>̵<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD> ");
return;
}
if((fname.fcs_type__ss.value=="0")||(fname.fcs_type__ee.value=="0")){
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>̵<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>. \n\n0<6E><30> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>̵<EFBFBD><CCB5><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϽǼ<CFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD> \n\n");
return;
}
if((fname.fcs_type__ss.value=="")||(fname.fcs_type__ee.value=="")){
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>̵<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>.");
return;
}
// var aa=fname.fcs_type__ss.value;
// var bb=fname.fcs_type__ee.value;
if(Number(fname.fcs_type__ss.value)>=Number(fname.fcs_type__ee.value)){
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>̵<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>Ȯ<EFBFBD><C8AE> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>.");
return;
}
// if(!confirm("<22><><EFBFBD><EFBFBD><EFBFBD>͸<EFBFBD> FCS<43><53> <20>̰<EFBFBD><CCB0>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>? <20>̰<EFBFBD><CCB0>Ŀ<EFBFBD><C4BF><EFBFBD> <20><><EFBFBD>ҵ<EFBFBD><D2B5><EFBFBD> <20>ʽ<EFBFBD><CABD>ϴ<EFBFBD> ")){return;}
var url="punching_fcs_send_ok.asp";
var pwidth=screen.width-100;
var pheight=screen.height-250;
var tleft=(screen.width-pwidth)/2;
var ttop=(screen.height-pheight)/2;
winObj=window.open("", "wins4", "left="+tleft+", top="+ttop+", menubar=no, location=no, status=no, toolbar=no, width="+pwidth+", height="+pheight+", scrollbars=yes ,resizable=no");
x.action = url;
x.target = 'wins4';
x.submit();
}
function parent_function(){
fname.target = "";
fname.action = "punching_fcs_insert.asp";
fname.submit();
}
function winopn_two(urlstr) {
var pwidth=250;
var pheight=300;
var tleft=(screen.width-pwidth)/2;
var ttop=(screen.height-pheight)/2;
winObj=window.open(urlstr, "wins2", "left="+tleft+", top="+ttop+", menubar=no, location=no, status=no, toolbar=no, width="+pwidth+", height="+pheight+", scrollbars=yes ,resizable=no");
winObj.focus();
}
function js_pu_user(x){
var url="punching_input_user.asp"
var pwidth=800;
var pheight=700;
var tleft=(screen.width-pwidth)/2;
var ttop=(screen.height-pheight)/2;
winObj=window.open(url, "wins4", "left="+tleft+", top="+ttop+", menubar=no, location=no, status=no, toolbar=no, width="+pwidth+", height="+pheight+", scrollbars=yes ,resizable=no");
winObj.focus();
x.target = 'wins4';
x.action = url;
x.submit();
}
</script>
</head>
<body onclick="javascript:try{if(winObj.window.focus()){}}catch(exception){}" ondblclick="javascript:try{if(winObj.window.focus()){}}catch(exception){}" >
<form name='fname' method='post' >
<input type="hidden" name="pn_cd" id="pn_cd" value="<%=pn_cd%>" />
<!--------- <20><>Ī<EFBFBD><C4AA><EFBFBD><EFBFBD> FCS<43>̰<EFBFBD><CCB0>ϱ<EFBFBD> <20><>------>
<table border="0" width="1107" align=center >
<tr>
<td align=center valign=top>
<!----------------------->
<table width="1000" cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="right" ><!-- <input type="button" value="<22>̰<EFBFBD><CCB0><EFBFBD><EFBFBD><EFBFBD> <20>缳<EFBFBD><E7BCB3><EFBFBD>ϱ<EFBFBD>" name="tbtn" onclick="javascript:alert('aaa');" style="background-color:#999999;color:#ffffff;width:130px;height:20px;cursor:hand;" >--></td>
</tr>
</table>
<table width="1000" cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="200" align="center" height="24" style="word-break:break-all;" ><3E><> <20><></td>
<td align="center" height="24" style="word-break:break-all;" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD></td>
</tr>
<%
sql=" select A.*,B.* from "
sql=sql&" (select intranet_project,p_child_sn as pn_code, p_subject from [project2].[dbo].[T_PROJECT_FCS] where p_child_sn='"&pn_cd&"') A "
sql=sql&" left join "
sql=sql&" (select p_child_sn, p_subject as intra_subject from [project2].[dbo].[T_PROJECT_METHOD]) B "
sql=sql&" on A.intranet_project=B.p_child_sn "
rsa.Open sql, adoConn, 1
if not rsa.eof then
%>
<tr height="24" bgcolor="#dbe9f2" >
<td align="center" ><3E><>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></td>
<td align="left" >&nbsp;[<font color=#000000><b><%=rsa("intranet_project")%></b></font>]&nbsp;<%=rsa("intra_subject")%></td>
</tr>
<tr height="24" bgcolor="#dbe9f2" >
<td align="center" >FCS/<2F><>Ī <20><><EFBFBD><EFBFBD></td>
<td align="left" >&nbsp;[<font color=blue><b><%=rsa("pn_code")%></b></font>]&nbsp;<%=rsa("p_subject")%>
&nbsp;&nbsp;<b><font color=blue>[<5B><>ĪŸ<C4AA><C5B8>
<%
dim k, az : az=65
response.write "<select name=""pu_prjcode_type"" style=""font-size:11pt;"" onchange=""javascript:parent_function();"" >"
for k=0 to 25 step 1
response.write "<option value="""&chr(cdbl(65)+cdbl(k))&""" "
if trim(pu_prjcode_type)=trim(chr(cdbl(65)+cdbl(k))) then response.write " selected "
response.write " >"&chr(cdbl(65)+cdbl(k))&"</option>"
next
response.write "</select>"
%> ]</font></b>
</td>
</tr>
<tr>
<td align="center" colspan="2" height=3 bgcolor=#C0C0C0></td>
</tr>
<%end if %>
<%rsa.close %>
<tr>
<td align="center" colspan="2" height=30 ></td>
</tr>
<tr>
<td align="center" colspan="2" height=20 bgcolor="#dbe9f2" ></td>
</tr>
<tr height="24" bgcolor="#dbe9f2" >
<td align="center" colspan="2" align=center >
<b>FCS <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>̰<EFBFBD><CCB0><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
<select name="pu_prjcode_area" style="font-size:11pt;" onchange="javascript:parent_function();" >
<option value="<22><><EFBFBD><EFBFBD>" <%if pu_prjcode_area="<22><><EFBFBD><EFBFBD>" then %> selected <%end if %> ><3E><><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>) </option>
<option value="<22><><EFBFBD><EFBFBD>" <%if pu_prjcode_area="<22><><EFBFBD><EFBFBD>" then %> selected <%end if %> ><3E><><EFBFBD><EFBFBD></option>
<option value="<22><><EFBFBD><EFBFBD>" <%if pu_prjcode_area="<22><><EFBFBD><EFBFBD>" then %> selected <%end if %> ><3E><><EFBFBD><EFBFBD></option>
<option value="<22>뱸" <%if pu_prjcode_area="<22>뱸" then %> selected <%end if %> ><3E>뱸</option>
<option value="<22><><EFBFBD><EFBFBD>" <%if pu_prjcode_area="<22><><EFBFBD><EFBFBD>" then %> selected <%end if %> ><3E><><EFBFBD><EFBFBD></option>
<option value="<22>λ<EFBFBD>" <%if pu_prjcode_area="<22>λ<EFBFBD>" then %> selected <%end if %> ><3E>λ<EFBFBD></option>
<option value="<22><><EFBFBD><EFBFBD>" <%if pu_prjcode_area="<22><><EFBFBD><EFBFBD>" then %> selected <%end if %> ><3E><><EFBFBD><EFBFBD></option>
</select>
</b>
</td>
</tr>
<tr height="24" bgcolor="#dbe9f2" >
<td align="center" colspan="2" align=center >
<%
dim xckd : xckd="0"
sql=" select top 1 id from [dbo].[T_RES_SQ_QUE_LAB] "
sql=sql&" where ting='1' " '-- <20><><EFBFBD><EFBFBD>(1)
sql=sql&" and pu_child_sn='"&pn_cd&"' "
sql=sql&" and pu_type='"&pu_prjcode_type&"' "
'-- fcs<63><73><EFBFBD><EFBFBD> <20>̻<EFBFBD><CCBB><EFBFBD> sql=sql&" and fcs_area='"&pu_prjcode_area&"' "
rsa.Open sql, adoConn, 1
if rsa.eof then
%>
<b>FCS<43><53> <20>̰<EFBFBD><CCB0><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" value=" -- <20><><EFBFBD><EFBFBD> <20>ϱ<EFBFBD> --" name="tbtn" onclick="javascript:js_fcs_column(fname);" style="font-size:10pt;background-color:#999999;color:#ffffff;width:200px;height:30px;cursor:hand;" >
</b></td>
<%else %>
<% xckd="1" %>
<b>FCS<43><53> <20>̰<EFBFBD><CCB0><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" value=" -- <20><><EFBFBD><EFBFBD> Ȯ<><C8AE> --" name="tbtn" onclick="javascript:js_fcs_column_view(fname);" style="font-size:10pt;background-color:#99CCFF;color:#ffffff;width:150px;height:30px;cursor:hand;" >
&nbsp;&nbsp;&nbsp;
<input type="button" value=" -- FCS<43><53> <20>̰<EFBFBD><CCB0><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Ȯ<><C8AE><EFBFBD>Ͽ<EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD> -- " name="tbtn" onclick="javascript:js_pu_user(fname);" style="font-size:10pt;background-color:#99CCFF;color:#ffffff;height:30px;cursor:hand;" >
</b></td>
<%end if %>
<%rsa.close %>
</tr>
<!-------------------------------------------->
<tr bgcolor="#dbe9f2" >
<td colspan="2" align=center style="height:20px;" >&nbsp;</td>
</tr>
<%if xckd="1" then %>
<tr height="24" bgcolor="#dbe9f2" >
<td align="center" colspan="2" align=center >
<b><font size="3" >FCS <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>̰<EFBFBD><CCB0><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> [<%
az=65
response.write "<select name=""pu_fcs_type"" style=""font-size:11pt;"" onchange=""javascript:parent_function();"" >"
for k=0 to 2 step 1
response.write "<option value="""&chr(cdbl(65)+cdbl(k))&""" "
if trim(pu_fcs_type)=trim(chr(cdbl(65)+cdbl(k))) then response.write " selected "
response.write " >"&chr(cdbl(65)+cdbl(k))&"</option>"
next
response.write "</select>"
%>]Ÿ<><C5B8> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>̵<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD></font></b><br><br>
<!-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>̵<EFBFBD> <20><><EFBFBD><EFBFBD> <20>Է<EFBFBD> <20><> -->
<font color=red><b><font size="3" ><3E><> FCS/<2F><>Ī <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>̵<EFBFBD><CCB5><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD><CFBF><EFBFBD> <20>մϴ<D5B4>.<br><br><3E>ߺ<EFBFBD><DFBA>Ǵ<EFBFBD> <20><><EFBFBD><EFBFBD> - <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>͸<EFBFBD> <20>̰<EFBFBD>ó<EFBFBD><C3B3>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ) <20>˴ϴ<CBB4></font></b></font>
<br><br>
<table border="1" bordercolordark='#FFFFFF' cellspacing='0' cellpadding='5' align=center style="width:443px;" >
<tr bgcolor='#E2E2E2' >
<td align="center" width="139"><b>Ÿ<><C5B8></b></td>
<td align="center"><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>̵<EFBFBD> <20><><EFBFBD><EFBFBD></b></td>
</tr>
<%
tsql=" select * from [project2].[dbo].[T_AREA_SID] "
tsql=tsql&" where del_yn='N' "
tsql=tsql&" and p_sn='"&pn_cd&"' "
tsql=tsql&" and s_area='"&pu_prjcode_area&"' "
tsql=tsql&" and s_type='"&pu_fcs_type&"' "
tsql=tsql&" order by s_type asc "
rsp.Open tsql, adoConn, 1
if rsp.Eof then
%>
<tr>
<td align="center" bgcolor='#E2E2E2' width="139" ><b>[<%=pu_prjcode_area%>] <%=pu_fcs_type%> Ÿ<><C5B8></b></td>
<td align="center">
<input type="text" name="fcs_type__ss" id="fcs_type__ss" value="0" size="10" maxlength="10" style="font-size:11pt;text-align:right;IME-MODE:disabled;" onkeyPress="if ((event.keyCode<48) || (event.keyCode>57)) event.returnValue=false;" > ~
<input type="text" name="fcs_type__ee" id="fcs_type__ee" value="0" size="10" maxlength="10" style="font-size:11pt;text-align:right;IME-MODE:disabled;" onkeyPress="if ((event.keyCode<48) || (event.keyCode>57)) event.returnValue=false;" >
</td>
</tr>
<% end if %>
<%
while not rsp.Eof
%>
<tr>
<td align="center" bgcolor='#E2E2E2' width="139" ><b>[<%=rsp("s_area")%>] <%=rsp("s_type")%> Ÿ<><C5B8></b></td>
<td align="center">
<input type="text" name="fcs_type__ss" id="fcs_type__ss" value="<%=rsp("sIdStart")%>" size="10" maxlength="10" style="font-size:11pt;text-align:right;IME-MODE:disabled;" onkeyPress="if ((event.keyCode<48) || (event.keyCode>57)) event.returnValue=false;" > ~
<input type="text" name="fcs_type__ee" id="fcs_type__ee" value="<%=rsp("sIdEnd")%>" size="10" maxlength="10" style="font-size:11pt;text-align:right;IME-MODE:disabled;" onkeyPress="if ((event.keyCode<48) || (event.keyCode>57)) event.returnValue=false;" >
</td>
</tr>
<%
acnt=acnt+1
rsp.movenext
Wend
rsp.Close
%>
</table>
<BR>
<!-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>̵<EFBFBD> <20><><EFBFBD><EFBFBD> <20>Է<EFBFBD> <20><> -->
<table align="center" cellpadding="3" cellspacing="3" border="0" align=center >
<tr>
<td style="width:940px;" align=center >
<b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ߺ<EFBFBD>üũ <20><>¥(<28><><EFBFBD><EFBFBD> FCS <20><><EFBFBD><EFBFBD><EFBFBD>Ϳ<EFBFBD><CDBF><EFBFBD> <20><><EFBFBD>ó<EFBFBD>¥ <20><><EFBFBD><EFBFBD> <20>ߺ<EFBFBD><DFBA><EFBFBD><EFBFBD><EFBFBD> üũ(<28≯<EFBFBD>,<2C><><EFBFBD><EFBFBD>ó))</b>
<input type="text" style="font-size:11pt;width:120;text-align:center;CURSOR: pointer;" value="<%=date()%>" name="ckday" readonly OnClick="winopn_two('../include/calendar.html?actval=ckday')">
<img src="/images/common/btn_calendar.jpg" align="absmiddle" OnClick="winopn_two('../include/calendar.html?actval=ckday')" style="cursor:pointer;">
</td>
</table>
</td>
</tr>
<tr bgcolor="#dbe9f2" >
<td colspan="2" align=center style="height:20px;" ><input type="button" value=" <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>Ī <20><><EFBFBD><EFBFBD><EFBFBD>͸<EFBFBD> FCS<43><53> <20>̰<EFBFBD><CCB0>ϱ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> " name="tbtn" onclick="javascript:js_data_delivery(fname);" style="font-size:10pt;background-color:#999999;color:#ffffff;width:500px;height:50px;cursor:hand;" ></td>
</tr>
<%end if %>
<tr bgcolor="#dbe9f2" >
<td colspan="2" align=center style="height:20px;" >&nbsp;</td>
</tr>
</table>
<!----------------------->
</td>
</tr>
<tr>
<td height=5 ></td>
</tr>
<tr>
<td align=center valign=top >
<!------------------------>
<!--
<table width="1000" cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="1480" align="center" height="24" style="word-break:break-all;" colspan="5" >
FCS <20>̰<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD></td>
</tr>
<tr>
<td width="43" align="center" height="24" style="word-break:break-all;" >No</td>
<td width="150" align="center" height="24" style="word-break:break-all;" ><3E><>Ī<EFBFBD><C4AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ<EFBFBD></td>
<td width="603" align="center" height="24" style="word-break:break-all;" ><3E><>Ī <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><></td>
<td width="70" align="center" height="24" style="word-break:break-all;" >Ÿ<><C5B8></td>
<td width="136" align="center" height="24" style="word-break:break-all;" ><3E>̰<EFBFBD><CCB0><EFBFBD><EFBFBD><EFBFBD></td>
</tr>
<tr height="24" bgcolor="#ffffff" >
<td align="center" >1</td>
<td align="center" >2</td>
<td align="center" >2</td>
<td align="center" >3</td>
<td align="center" >2017-01-21</td>
</tr>
<tr>
<td align="center" colspan="5" height=2 bgcolor=#C0C0C0></td>
</tr>
<tr height="24" bgcolor="#ffffff" >
<td align="center" >1</td>
<td align="center" >2</td>
<td align="center" >2</td>
<td align="center" >3</td>
<td align="center" >2017-01-21</td>
</tr>
<tr>
<td align="center" colspan="5" height=2 bgcolor=#C0C0C0></td>
</tr>
<tr height="24" bgcolor="#ffffff" >
<td align="center" >1</td>
<td align="center" >2</td>
<td align="center" >2</td>
<td align="center" >3</td>
<td align="center" >2017-01-21</td>
</tr>
<tr>
<td align="center" colspan="5" height=2 bgcolor=#C0C0C0></td>
</tr>
</table>
-->
<!------------------------>
</td>
</tr>
<tr>
<td align=center >
<!------------------------>
<!--
<br><br>
----------- <20><>Ī <20><>Ȳ -----------
<br>
<table width="400" cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;">
<tr height="25px">
<td width="20%" align="center" ><3E><>ü</td>
<td width="20%" align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD>̰<EFBFBD></td>
<td width="20%" align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td width="20%" align="center" ><3E><><EFBFBD><EFBFBD>OK</td>
<td width="20%" align="center" ><3E><>Ī<EFBFBD>Ϸ<EFBFBD></td>
</tr>
<tr>
<td align="center">2,222</td>
<td align="center">10,000</td>
<td align="center">2,222</td>
<td align="center">3,333</td>
<td align="center">5,555</td>
</tr>
</table>
-->
<!------------------------>
<!--
<table width="400" cellpadding="0" cellspacing="0" border="0" >
<tr>
<td height="24" style="word-break:break-all;" align="right" >
<input type="button" value=" <20>̰<EFBFBD><CCB0><EFBFBD> <20><><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD> " name="tbtn" onclick="javascript:js_fcs_list(xform);" style="cursor:hand" >
</td>
</tr>
</table>
-->
<!------------------------->
</td>
</tr>
</table>
<!--------- <20>̰<EFBFBD><CCB0>ϱ<EFBFBD> <20><>------>
</form>
</body>
</html>

View File

@@ -0,0 +1,866 @@
<!-- #include virtual = "lib/config.asp" -->
<!------------------><!------------------><!------------------>
<!-- <20>ε<EFBFBD><CEB5><EFBFBD> -->
<div id="loadingBar" style="display: block;">
<br><br><br><br><br><br><br><br><br><br>
<table border=0 cellspacing="0" align="center" >
<tr>
<td align="center">
<img src="image/loadingBar.gif">
</td>
</tr>
</table>
</div>
<% Response.Flush %>
<!------------------><!------------------><!------------------>
<%
SET rsa = server.CreateObject("ADODB.RECORDSET")
SET rsp = server.CreateObject("ADODB.RECORDSET")
SET rsm = server.CreateObject("ADODB.RECORDSET")
'-- response.write "<br>"
'-- For Each s In request.form
'-- response.write s &":"&request.form(s)&"<br>"Prod) - 1) EXEC (' select A.oid,A.tid,A.pc_prjcode,A.pc_prjcode_sub1,A.pc_prjcode_sub2, case when left(A.ffusercode,2)=''1-'' then A.ffusercode else isnull(''1-''+REPLICATE(''0'',4 - LEN(A.ffusercode))+cast(A.ffusercode as varchar(10)),'''') end as ffusercode , B.* from ( select max(id) as oid, tid,pc_prjcode,pc_prjcode_sub1,pc_prjcode_sub2,ffusercode,ffid from [project2].[dbo].[punching_data] where pc_prjcode=''1904033_C01_A'' and pc_prjcode_sub1=''A'' and ff_ing=''1'' and ffid in ( select ttelnum from [punching].[dbo].[tb_response] where tprocode=''1904033_C01_A'' and char(ttype+65)=''A'' ) group by tid,pc_prjcode,pc_prjcode_sub1,pc_prjcode_sub2,ffusercode,ffid ) A left join ( select * from (SELECT ffid,ffque, case when ffans=''-1'' then '''' else ffans end as ffans FROM [project2].[dbo].[punching_data] where pc_prjcode=''1904033_C01_A'' and pc_prjcode_sub1=''A'' and ff_ing=''1'' ) Q PIVOT ( max(ffans) FOR ffque IN (' + @Prod + ') ) AS PVT ) B on A.ffid=B.ffid order by A.oid asc ')
'-- next
dim x_save : x_save=request.form("x_save") '-- <20><><EFBFBD><EFBFBD>(save_ok)
dim xprint : xprint="" '-- sql <20><><EFBFBD><EFBFBD>
dim xck_num : xck_num=0
dim pn_cd : pn_cd=request.form("pn_cd")
dim pu_prjcode_type : pu_prjcode_type=request.form("pu_prjcode_type")
dim pu_prjcode_area : pu_prjcode_area=request.form("pu_prjcode_area")
dim pu_fcs_type : pu_fcs_type=request.form("pu_fcs_type") '-- fcs Ÿ<><C5B8>
dim fcs_type__ss : fcs_type__ss=request.form("fcs_type__ss") '-- fcs Ÿ<><C5B8> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>̵<EFBFBD> <20><><EFBFBD><EFBFBD>(~<7E><><EFBFBD><EFBFBD>)
dim fcs_type__ee : fcs_type__ee=request.form("fcs_type__ee") '-- fcs Ÿ<><C5B8> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>̵<EFBFBD> <20><><EFBFBD><EFBFBD>(~<7E><><EFBFBD><EFBFBD>)
dim ckday : ckday=request.form("ckday")
dim sql, isql, co_sql
dim tsql
'-- fcs <20>̰<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>(<28>ǹ<EFBFBD>)
isql=fun_sql("")
if xprint="1" then response.Write isql&"<br><br>"
rsp.Open isql, adoConn, 1
'-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̺<EFBFBD><CCBA><EFBFBD>
dim co_table : co_table="#temp_"&pn_cd&"_"&pu_prjcode_type
'-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̺<EFBFBD> <20><><EFBFBD><EFBFBD>
co_sql=""
co_sql=co_sql&" CREATE TABLE "&co_table&" ( "&vbCrLf
co_sql=co_sql&" id int IDENTITY (1, 1) primary key NOT Null , "&vbCrLf
For i=0 To rsp.Fields.Count-1
'--response.write rsp.Fields(i).name&"<br>"
select case rsp.Fields(i).name
case "oid" : co_sql=co_sql&" "&rsp.Fields(i).name&" int , "&vbCrLf '-- <20><><EFBFBD><EFBFBD>
case "tid" : co_sql=co_sql&" "&rsp.Fields(i).name&" varchar (60) default '', "&vbCrLf '-- <20><>ó<EFBFBD><C3B3><EFBFBD>̵<EFBFBD>
case "pc_prjcode" : co_sql=co_sql&" "&rsp.Fields(i).name&" varchar (30) default '', "&vbCrLf '-- FCS/<2F><>Ī <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD>ڵ<EFBFBD>
case "pc_prjcode_sub1" : co_sql=co_sql&" "&rsp.Fields(i).name&" varchar (4) default '', "&vbCrLf '-- <20><>Ī <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD>ڵ<EFBFBD> (Ÿ<><C5B8>)
case "pc_prjcode_sub2" : co_sql=co_sql&" "&rsp.Fields(i).name&" varchar (4) default '', "&vbCrLf '-- <20><>Ī <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD>ڵ<EFBFBD> (Ÿ<><C5B8>) "pc_prjcode_sub1" <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
case "ffusercode" : co_sql=co_sql&" "&rsp.Fields(i).name&" varchar (20) default '', "&vbCrLf '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>̵<EFBFBD>
case "ffid" : co_sql=co_sql&" "&rsp.Fields(i).name&" int , "&vbCrLf '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>̵<EFBFBD>
case else : co_sql=co_sql&" ["&rsp.Fields(i).name&"] varchar(200) default '' , "&vbCrLf '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
end select
Next
rsp.Close
co_sql=co_sql&" r_error int , "&vbCrLf '-- <20><><EFBFBD><EFBFBD>üũ<C3BC><C5A9>
co_sql=co_sql&" m_error int , "&vbCrLf '-- <20><><EFBFBD><EFBFBD>üũ<C3BC><C5A9>
co_sql=co_sql&" s_error int , "&vbCrLf '-- <20><><EFBFBD><EFBFBD>üũ<C3BC><C5A9>
co_sql=co_sql&" q_error int , "&vbCrLf '-- <20><><EFBFBD><EFBFBD>üũ<C3BC><C5A9>
co_sql=co_sql&" insert_date datetime default getdate() ) "&vbCrLf
if xprint="1" then response.write co_sql&"<br><br>"
adoconn.execute co_sql
'-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̺<EFBFBD><CCBA><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> insert
co_sql=fun_sql(co_table)
if xprint="1" then response.write co_sql&"<br><br>"
adoconn.execute co_sql
'-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ڵ庯<DAB5><E5BAAF> ó<><C3B3> update
co_sql=" update "&co_table&" set "&vbCrLf
co_sql=co_sql&" ffusercode=B.ffusercode_change "&vbCrLf
co_sql=co_sql&" from "&co_table&" as A "&vbCrLf
co_sql=co_sql&" inner join "&vbCrLf
co_sql=co_sql&" ( "&vbCrLf
co_sql=co_sql&" select ffusercode, ffusercode_change from [dbo].[T_RES_FIELD_USER_CHANGE] "&vbCrLf
co_sql=co_sql&" where ting='1' "&vbCrLf
co_sql=co_sql&" and len(ffusercode)=6 "&vbCrLf '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD> <20><> 6<>ڸ<EFBFBD><DAB8><EFBFBD>
co_sql=co_sql&" and pu_child_sn='"&pn_cd&"' "&vbCrLf
co_sql=co_sql&" and pu_type='"&pu_prjcode_type&"' "&vbCrLf
co_sql=co_sql&" ) B "&vbCrLf
co_sql=co_sql&" on A.ffusercode=B.ffusercode "&vbCrLf
if xprint="1" then response.write co_sql&"<br><br>"
adoconn.execute co_sql
'--[<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>] <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ϴ<EFBFBD> <20><><EFBFBD><EFBFBD>
'##### ERR ó<><C3B3>(s_error) #########################################################
'--s_error : [dbo].[T_AREA_SID] <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><20><><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD>̵<EFBFBD><CCB5><EFBFBD> <20><><EFBFBD><EFBFBD> "1" <20><> ǥ<><C7A5><EFBFBD><EFBFBD>
co_sql=" update "&co_table&" set "&vbCrLf
co_sql=co_sql&" s_error='1' "&vbCrLf
co_sql=co_sql&" where (ffid<'"&fcs_type__ss&"' or ffid>'"&fcs_type__ee&"') "
if xprint="1" then response.write co_sql&"<br><br>"
adoconn.execute co_sql
'--[<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>] <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ID<49><44> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̹Ƿ<CCB9> <20><><EFBFBD><EFBFBD>
'###############################################################################
'-- <20><>Ī<EFBFBD><C4AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ߺ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>̵<EFBFBD> - s_error ó<><C3B3>
co_sql=" update "&co_table&" set "&vbCrLf
co_sql=co_sql&" s_error='1' "&vbCrLf
co_sql=co_sql&" where id not in ( "&vbCrLf
co_sql=co_sql&" select max(id) from "&co_table&" "&vbCrLf
co_sql=co_sql&" group by ffid "&vbCrLf
co_sql=co_sql&" ) "&vbCrLf
if xprint="1" then response.write co_sql&"<br><br>"
adoconn.execute co_sql
'--[<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>] <20><>Ī<EFBFBD><C4AA><EFBFBD><EFBFBD><EFBFBD>ʹ<EFBFBD> <20><><EFBFBD>α׷<CEB1> <20><>ü<EFBFBD><C3BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ߺ<EFBFBD><DFBA><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
'################################################################################
'-- r_error : <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ߺ<EFBFBD><DFBA><EFBFBD><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD> FF<46><46><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>˻<EFBFBD><CBBB>Ⱓ(ckday) <20><> <20>ߺ<EFBFBD><DFBA><EFBFBD>)
'-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD≯<EFBFBD>, <20><><EFBFBD><EFBFBD>ó1,<2C><><EFBFBD><EFBFBD>ó2 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
dim co_name, co_tel1, co_tel2
co_name="" : co_tel1="" : co_tel2=""
co_sql=" select * from [project2].[dbo].[T_RES_SQ_QUE_LAB] with(nolock) "
co_sql=co_sql&" where ting='1' " '-- <20><><EFBFBD><EFBFBD>(1)
co_sql=co_sql&" and pu_child_sn='"&pn_cd&"' "
co_sql=co_sql&" and pu_type='"&pu_prjcode_type&"' "
'-- fcs<63><73><EFBFBD><EFBFBD> co_sql=co_sql&" and fcs_area='"&pu_prjcode_area&"' "
co_sql=co_sql&" and pu_que_type in ('2','3') " '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(3), <20><><EFBFBD><EFBFBD>ó(2)
co_sql=co_sql&" order by tuser asc, tphone_1 asc, tphone_2 asc "
if xprint="1" then response.write co_sql&"<br><br>"
rsp.Open co_sql, adoConn, 1
while not rsp.Eof
'-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
if rsp("tuser_name")<>"" then co_name=rsp("pu_que")
'-- <20>޴<EFBFBD><DEB4><EFBFBD>
if rsp("tphone_1")<>"" then co_tel1=rsp("pu_que")
'-- <20>Ϲݹ<CFB9>ȣ
if rsp("tphone_2")<>"" then co_tel2=rsp("pu_que")
rsp.movenext
Wend
rsp.Close
dim xxsql : xxsql="" '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>̰<EFBFBD><CCB0><EFBFBD> FCS<43><53><EFBFBD><EFBFBD><EFBFBD>Ϳ<EFBFBD><CDBF><EFBFBD> <20>ߺ<EFBFBD> üũ<C3BC><C5A9>
dim in_cksql : in_cksql="" '-- <20><>Ī<EFBFBD><C4AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ߺ<EFBFBD> üũ<C3BC><C5A9>
if co_tel2<>"" then
xxsql=" on 1=1 "
xxsql=xxsql&" and replace(replace(isnull(A.["&co_name&"],''),'-',''),' ','')=B.r_name "
xxsql=xxsql&" and replace(replace(isnull(A.["&co_tel2&"],''),'-',''),' ','')=B.r_tel "
'-----------------
in_cksql=" replace(replace(isnull(["&co_name&"],''),'-',''),' ',''), replace(replace(isnull(["&co_tel2&"],''),'-',''),' ','') "
elseif co_tel1<>"" then
xxsql=" on 1=1 "
xxsql=xxsql&" and replace(replace(isnull(A.["&co_name&"],''),'-',''),' ','')=B.r_name "
xxsql=xxsql&" and replace(replace(isnull(A.["&co_tel1&"],''),'-',''),' ','')=B.r_phone "
'-----------------
in_cksql=" replace(replace(isnull(["&co_name&"],''),'-',''),' ',''), replace(replace(isnull(["&co_tel1&"],''),'-',''),' ','') "
else
xxsql=" on 1=1 "
xxsql=xxsql&" and replace(replace(isnull(A.["&co_name&"],''),'-',''),' ','')=B.r_name "
xxsql=xxsql&" where (replace(replace(isnull(A.["&co_tel2&"],''),'-',''),' ','')=B.r_tel or replace(replace(isnull(A.["&co_tel1&"],''),'-',''),' ','')=B.r_phone) "
'-----------------
in_cksql=" replace(replace(isnull(["&co_name&"],''),'-',''),' ',''), replace(replace(isnull(["&co_tel2&"],''),'-',''),' ',''), replace(replace(isnull(["&co_tel1&"],''),'-',''),' ','') "
end if
'##### ERR ó<><C3B3>(r_error) #########################################################
'-- r_error : <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ߺ<EFBFBD><DFBA><EFBFBD><EFBFBD><EFBFBD> ó<><C3B3>(<28><><EFBFBD>ΰ<EFBFBD> <20>ߺ<EFBFBD><DFBA><EFBFBD><EFBFBD><EFBFBD>: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>Ҽ<EFBFBD> <20>ֵ<EFBFBD><D6B5><EFBFBD>!!)
co_sql=" DECLARE @dblck_id int "&vbCrLf
co_sql=co_sql&" DECLARE cur_dblck CURSOR FOR "&vbCrLf
co_sql=co_sql&" select A.ffid from "&vbCrLf
co_sql=co_sql&" ( select * from "&co_table&" with(nolock) ) A "&vbCrLf
co_sql=co_sql&" inner join "&vbCrLf
co_sql=co_sql&" ( "&vbCrLf
co_sql=co_sql&" select h.r_name,h.r_tel,h.r_phone "&vbCrLf
co_sql=co_sql&" from ( "&vbCrLf
co_sql=co_sql&" select "&vbCrLf
co_sql=co_sql&" p_sn, s_id, "&vbCrLf
co_sql=co_sql&" replace(replace(isnull(r_name,''),'-',''),' ','') as r_name, "&vbCrLf
co_sql=co_sql&" replace(replace(isnull(r_tel,''),'-',''),' ','') as r_tel, "&vbCrLf
co_sql=co_sql&" replace(replace(isnull(r_phone,''),'-',''),' ','') as r_phone "&vbCrLf
co_sql=co_sql&" from [dbo].[res] with(nolock) "&vbCrLf
co_sql=co_sql&" where DelGubun='N' "&vbCrLf
co_sql=co_sql&" and replace(r_date,'-','')>=replace('"&ckday&"','-','') "&vbCrLf
co_sql=co_sql&" ) h "&vbCrLf
co_sql=co_sql&" where h.p_sn+':'+cast(h.s_id as varchar(10)) not in ( "&vbCrLf
co_sql=co_sql&" select pc_prjcode+':'+cast(ffid as varchar(10)) from "&co_table&" with(nolock) "&vbCrLf
co_sql=co_sql&" ) "&vbCrLf
co_sql=co_sql&" group by h.r_name,h.r_tel,h.r_phone "&vbCrLf
co_sql=co_sql&" ) B "&vbCrLf
co_sql=co_sql&xxsql
co_sql=co_sql&" OPEN cur_dblck "&vbCrLf
co_sql=co_sql&" FETCH NEXT FROM cur_dblck INTO @dblck_id "&vbCrLf
co_sql=co_sql&" WHILE @@FETCH_STATUS = 0 "&vbCrLf
co_sql=co_sql&" BEGIN "&vbCrLf
co_sql=co_sql&" update "&co_table&" set "&vbCrLf
co_sql=co_sql&" r_error='1' "&vbCrLf
co_sql=co_sql&" where ffid=@dblck_id "&vbCrLf
co_sql=co_sql&" FETCH NEXT FROM cur_dblck INTO @dblck_id "&vbCrLf
co_sql=co_sql&" END "&vbCrLf
co_sql=co_sql&" CLOSE cur_dblck "&vbCrLf
co_sql=co_sql&" DEALLOCATE cur_dblck "&vbCrLf
if xprint="1" then response.write co_sql&"<br><br>"
adoconn.execute co_sql
'##### ERR ó<><C3B3>(m_error) #########################################################
'-- m_error : <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ڵ尡 <20><><EFBFBD>ų<EFBFBD>, "Ȱ<><C8B0>"<22><> <20>ƴ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> - <20><>Ʈ<EFBFBD><C6AE><EFBFBD>ݿ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD>
co_sql=" select A.ffid from "&vbCrLf
co_sql=co_sql&" ( "&vbCrLf
co_sql=co_sql&" select "&vbCrLf
co_sql=co_sql&" case when left(ffusercode,2)='1-' then ffusercode else '1-'+ffusercode end as ff "&vbCrLf
co_sql=co_sql&" ,ffusercode, ffid from "&co_table&" "&vbCrLf
co_sql=co_sql&" ) A "&vbCrLf
co_sql=co_sql&" left join "&vbCrLf
co_sql=co_sql&" ( "&vbCrLf
co_sql=co_sql&" select new_id from [project2].[dbo].[man] with(nolock) "&vbCrLf
co_sql=co_sql&" where m_activity='Ȱ<><C8B0>' "&vbCrLf
co_sql=co_sql&" and left(new_id,2)='1-' "&vbCrLf
co_sql=co_sql&" ) B "&vbCrLf
co_sql=co_sql&" on A.ff=B.new_id "&vbCrLf
co_sql=co_sql&" where B.new_id is null "&vbCrLf '-- man <20><><EFBFBD>̺<EFBFBD><CCBA><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>°<EFBFBD><C2B0><EFBFBD> Err ó<><C3B3>
po_sql=" update "&co_table&" set "&vbCrLf
po_sql=po_sql&" m_error='1' "&vbCrLf
po_sql=po_sql&" from "&co_table&" as AA "&vbCrLf
po_sql=po_sql&" inner join "&vbCrLf
po_sql=po_sql&" ( "&vbCrLf
po_sql=po_sql&co_sql
po_sql=po_sql&" ) BB "&vbCrLf
po_sql=po_sql&" on AA.ffid=BB.ffid "&vbCrLf
if xprint="1" then response.write po_sql&"<br><br>"
adoconn.execute po_sql
'##### ERR ó<><C3B3>(q_error) #########################################################
'-- q_error : FCS<43><53><EFBFBD><EFBFBD> 1<><31><EFBFBD>̶<EFBFBD><CCB6><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ѱ<EFBFBD><D1B0><EFBFBD> (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ID <20><><EFBFBD><EFBFBD>)
'-- [<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>] <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϳ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̺<EFBFBD> <20><><EFBFBD><EFBFBD>
po_sql=po_sql&" DELETE "&vbCrLf
po_sql=po_sql&" FROM "&co_table&" "&vbCrLf
po_sql=po_sql&" WHERE ffid in "&vbCrLf
po_sql=po_sql&" ( "&vbCrLf
po_sql=po_sql&" select s_id from [project2].[dbo].[T_INSPECTION_RES] with(nolock) "&vbCrLf
po_sql=po_sql&" where p_sn='"&pn_cd&"' "&vbCrLf
po_sql=po_sql&" ) "&vbCrLf
if xprint="1" then response.write po_sql&"<br><br>"
adoconn.execute po_sql
'-- q_error : <20><><EFBFBD><EFBFBD> <20>̰<EFBFBD><CCB0><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͷ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD> <20><><EFBFBD><EFBFBD> (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ID <20><><EFBFBD><EFBFBD>)
'-- [<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>] <20>̰<EFBFBD><CCB0><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϳ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̺<EFBFBD> <20><><EFBFBD><EFBFBD>
po_sql=po_sql&" DELETE "&vbCrLf
po_sql=po_sql&" FROM "&co_table&" "&vbCrLf
po_sql=po_sql&" WHERE ffid in "&vbCrLf
po_sql=po_sql&" ( "&vbCrLf
po_sql=po_sql&" select s_id from [project2].[dbo].[RES] with(nolock) "&vbCrLf
po_sql=po_sql&" where p_sn='"&pn_cd&"' "&vbCrLf
po_sql=po_sql&" and DelGubun = 'N' "&vbCrLf
po_sql=po_sql&" ) "&vbCrLf
if xprint="1" then response.write po_sql&"<br><br>"
adoconn.execute po_sql
'###### <20><>Ī<EFBFBD><C4AA><EFBFBD><EFBFBD><EFBFBD>ͳ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ߺ<EFBFBD><DFBA><EFBFBD> (r_error) ó<><C3B3> ######################################
po_sql=" update "&co_table&" set "&vbCrLf
po_sql=po_sql&" r_error='1' "&vbCrLf
po_sql=po_sql&" from "&co_table&" as AA "&vbCrLf
po_sql=po_sql&" inner join ( "&vbCrLf
po_sql=po_sql&" select A.id from "&vbCrLf
po_sql=po_sql&" (select * from "&co_table&" ) A "&vbCrLf
po_sql=po_sql&" left join "&vbCrLf
po_sql=po_sql&" ( "&vbCrLf
po_sql=po_sql&" select max(id) as id2 from "&co_table&" "&vbCrLf
po_sql=po_sql&" where (isnull(r_error,'0')+isnull(m_error,'0')+isnull(s_error,'0')+isnull(q_error,'0'))=0 "&vbCrLf
po_sql=po_sql&" group by "&in_cksql&" "&vbCrLf '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ߺ<EFBFBD><DFBA><EFBFBD><EFBFBD>׿<EFBFBD> <20><><EFBFBD><EFBFBD> group by
po_sql=po_sql&" ) B "&vbCrLf
po_sql=po_sql&" on A.id=B.id2 "&vbCrLf
po_sql=po_sql&" where (isnull(A.r_error,'0')+isnull(A.m_error,'0')+isnull(A.s_error,'0')+isnull(A.q_error,'0'))=0 "&vbCrLf
po_sql=po_sql&" and B.id2 is null "&vbCrLf
po_sql=po_sql&" ) BB "&vbCrLf
po_sql=po_sql&" on AA.id=BB.id "&vbCrLf
if xprint="1" then response.write po_sql&"<br><br>"
adoconn.execute po_sql
%>
<HTML>
<HEAD>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Web Survey System">
<meta name="author" content="KRC">
<TITLE>KRC</TITLE>
<style>
td,body,input {font-face:<3A><><EFBFBD><EFBFBD>ü;font-size:13px;line-height:150%;}
</style>
</HEAD>
<BODY id='body' onclick="javascript:try{if(winObj.window.focus()){}}catch(exception){}" ondblclick="javascript:try{if(winObj.window.focus()){}}catch(exception){}" <%if x_save="" then %> onload="javascript:js_init();" <%end if%> >
<form name='xform' method='post' >
<div id="divBody" style="display: none">
<p id="f_main"></p>
<%
'-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> - <20><><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD>)
tsql=" select "&vbCrLf
tsql=tsql&" top 1 "
tsql=tsql&" isnull(B.new_id,'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>') as <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD>, "&vbCrLf
tsql=tsql&" isnull(B.m_name,'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>') as <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD≯<EFBFBD>, "&vbCrLf
tsql=tsql&" isnull(B.m_jumin,'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>') as <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, "&vbCrLf
tsql=tsql&" A.* "&vbCrLf
tsql=tsql&" from "&vbCrLf
tsql=tsql&" ( "&vbCrLf
tsql=tsql&" select "&vbCrLf
tsql=tsql&" (isnull(r_error,'0')+isnull(m_error,'0')+isnull(s_error,'0')+isnull(q_error,'0')) as t, "&vbCrLf
tsql=tsql&" case when left(ffusercode,2)='1-' then ffusercode else '1-'+ffusercode end as ff, "&vbCrLf
tsql=tsql&" * "&vbCrLf
tsql=tsql&" from "&co_table&" "&vbCrLf
tsql=tsql&" ) A "&vbCrLf
tsql=tsql&" left join "&vbCrLf
tsql=tsql&" ( "&vbCrLf
tsql=tsql&" select new_id, m_name, left(m_jumin,6) as m_jumin from [project2].[dbo].[man] with(nolock) "&vbCrLf
tsql=tsql&" where m_activity='Ȱ<><C8B0>' "&vbCrLf
tsql=tsql&" and left(new_id,2)='1-' "&vbCrLf
tsql=tsql&" ) B "&vbCrLf
tsql=tsql&" on A.ff=B.new_id "&vbCrLf
tsql=tsql&" order by A.ffid asc "&vbCrLf
'-- tsql=tsql&" order by B.new_id asc, A.t desc "&vbCrLf
if xprint="1" then response.write tsql&"<br><br>"
rsp.Open tsql, adoConn, 1
'-----------------------------------------------------------------------------------------------
dim xfield : xfield=""
dim xTable : xTable=""
dim Twidth : Twidth=0
select case x_save
case "save_ok" '-- <20><>Ī <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>̰<EFBFBD>
rsp.close
' '############################################## call fn_fcs_input_data() '-- fcs<63><73> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>̰<EFBFBD>
'############################################## '############################################## '##############################################
'############################################## '############################################## '##############################################
'############################################## '############################################## '##############################################
'############################################## '############################################## '##############################################
%>
<!-- #include file = "fcs_input_data.asp" -->
<%
'############################################## '############################################## '##############################################
'############################################## '############################################## '##############################################
'############################################## '############################################## '##############################################
'############################################## '############################################## '##############################################
'##############################################
' '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̺<EFBFBD> <20><><EFBFBD><EFBFBD>
' po_sql=" drop table "&co_table&" "
' if xprint="1" then response.write po_sql&"<br><br>"
' adoconn.execute po_sql
'##############################################
%>
</div>
</form>
</BODY>
</HTML>
<script language="javascript">
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ó<><C3B3> <20>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD> ");
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> opener.parent.parent_function();
window.close();
</script>
<%response.end %>
<%
case else '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD>
xTable=xTable&"<span id=""pu_table"" >"
xTable=xTable&"<table border=""1"" bordercolordark='#FFFFFF' cellspacing='0' cellpadding='5' align=center style=""width:[Twidth]px;word-break:break-all;"" >"
xTable=xTable&"<tr bgcolor='#E2E2E2' >"
'-----------------------------------------------------------------------------------------------
'-- Default ----------------------
if not rsp.eof then
Twidth=cdbl(Twidth)+100
xTable=xTable&"<td bgcolor=""#E7CB5F"" style=""width:100px;word-break:break-all;"" align=""center"" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̵<EFBFBD><br>(<28>Է<EFBFBD>)</td>"
if xfield<>"" then xfield=xfield&","
xfield=xfield&"[ffid]"
end if
For i=0 To rsp.Fields.Count-1
Select Case rsp.Fields(i).name
Case "t", "ff", "id", "oid","pc_prjcode_sub2","ffid" '-- <20><><EFBFBD><EFBFBD>
case "pc_prjcode"
Twidth=cdbl(Twidth)+120
xTable=xTable&"<td bgcolor=""#E7CB5F"" style=""width:120px;word-break:break-all;"" align=""center"" ><3E><>Ī/FCS <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD>ڵ<EFBFBD></td>"
if xfield<>"" then xfield=xfield&","
xfield=xfield&"["&rsp.Fields(i).name&"]"
case "pc_prjcode_sub1"
Twidth=cdbl(Twidth)+100
xTable=xTable&"<td bgcolor=""#E7CB5F"" style=""width:100px;word-break:break-all;"" align=""center"" ><3E><>ĪŸ<C4AA><C5B8></td>"
if xfield<>"" then xfield=xfield&","
xfield=xfield&"["&rsp.Fields(i).name&"]"
case "ffusercode"
Twidth=cdbl(Twidth)+100
xTable=xTable&"<td bgcolor=""#E7CB5F"" style=""width:100px;word-break:break-all;"" align=""center"" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD></td>"
if xfield<>"" then xfield=xfield&","
xfield=xfield&"["&rsp.Fields(i).name&"]"
case "ffid"
Twidth=cdbl(Twidth)+100
xTable=xTable&"<td bgcolor=""#E7CB5F"" style=""width:100px;word-break:break-all;"" align=""center"" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ID</td>"
if xfield<>"" then xfield=xfield&","
xfield=xfield&"["&rsp.Fields(i).name&"]"
case "r_error"
Twidth=cdbl(Twidth)+120
xTable=xTable&"<td bgcolor=""#dbe9f2"" style=""width:120px;word-break:break-all;"" align=""center"" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ߺ<EFBFBD> <20><><EFBFBD><EFBFBD><br>(<28><><EFBFBD>ε<EFBFBD><CEB5>Ұ<EFBFBD>)</td>"
if xfield<>"" then xfield=xfield&","
xfield=xfield&" case when A."&rsp.Fields(i).name&"='1' then '<27><><EFBFBD><EFBFBD>' else '' end as xr_error "
case "m_error"
Twidth=cdbl(Twidth)+120
xTable=xTable&"<td bgcolor=""#dbe9f2"" style=""width:120px;word-break:break-all;"" align=""center"" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD> <20><><EFBFBD><EFBFBD><br>(<28><><EFBFBD>ε<EFBFBD><CEB5>Ұ<EFBFBD>)</td>"
if xfield<>"" then xfield=xfield&","
xfield=xfield&" case when A."&rsp.Fields(i).name&"='1' then '<27><><EFBFBD><EFBFBD>' else '' end as xm_error "
case "s_error"
Twidth=cdbl(Twidth)+130
xTable=xTable&"<td bgcolor=""#dbe9f2"" style=""width:130px;word-break:break-all;"" align=""center"" ><3E><><EFBFBD><EFBFBD>ƮID <20><><EFBFBD><EFBFBD><br>(<28><><EFBFBD>ε<EFBFBD><CEB5>Ұ<EFBFBD>)</td>"
if xfield<>"" then xfield=xfield&","
xfield=xfield&" case when A."&rsp.Fields(i).name&"='1' then '<27><><EFBFBD><EFBFBD>' else '' end as xs_error "
case "q_error"
Twidth=cdbl(Twidth)+90
xTable=xTable&"<td bgcolor=""#dbe9f2"" style=""width:90px;word-break:break-all;"" align=""center"" ><3E>̰<EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><br>(<28><><EFBFBD>ε<EFBFBD><CEB5>Ұ<EFBFBD>)</td>"
if xfield<>"" then xfield=xfield&","
xfield=xfield&" case when A."&rsp.Fields(i).name&"='1' then '<27><><EFBFBD><EFBFBD>' else '' end as xq_error "
case "tid"
Twidth=cdbl(Twidth)+100
xTable=xTable&"<td bgcolor=""#E7CB5F"" style=""width:100px;word-break:break-all;"" align=""center"" ><3E><>ó<EFBFBD><C3B3><EFBFBD><EFBFBD></td>"
if xfield<>"" then xfield=xfield&","
xfield=xfield&"["&rsp.Fields(i).name&"]"
case "insert_date"
Twidth=cdbl(Twidth)+100
xTable=xTable&"<td bgcolor=""#E7CB5F"" style=""width:100px;word-break:break-all;"" align=""center"" >FCS <20>̰<EFBFBD>ó<EFBFBD><C3B3><EFBFBD><EFBFBD></td>"
if xfield<>"" then xfield=xfield&","
xfield=xfield&" case when A.t=0 then convert(nvarchar(10),"&rsp.Fields(i).name&",120) else '<font color=red>FCS <20>̰<EFBFBD><CCB0>Ұ<EFBFBD></font>' end as tdate "
case "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD>"
Twidth=cdbl(Twidth)+100
xTable=xTable&"<td bgcolor=""#66CCFF"" style=""width:100px;word-break:break-all;"" align=""center"" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD></td>"
if xfield<>"" then xfield=xfield&","
xfield=xfield&" isnull(B.new_id,'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>') as <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD> "
case "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD≯<EFBFBD>"
Twidth=cdbl(Twidth)+100
xTable=xTable&"<td bgcolor=""#66CCFF"" style=""width:100px;word-break:break-all;"" align=""center"" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD≯<EFBFBD></td>"
if xfield<>"" then xfield=xfield&","
xfield=xfield&" isnull(B.m_name,'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>') as <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD≯<EFBFBD> "
case "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
Twidth=cdbl(Twidth)+100
xTable=xTable&"<td bgcolor=""#66CCFF"" style=""width:100px;word-break:break-all;"" align=""center"" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>"
if xfield<>"" then xfield=xfield&","
xfield=xfield&" isnull(B.m_jumin,'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>') as <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> "
Case Else '-- <20><><EFBFBD><EFBFBD>
Twidth=cdbl(Twidth)+100
xTable=xTable&"<td bgcolor=""#E7CB5F"" style=""width:100px;word-break:break-all;"" align=""center"" >"&rsp.Fields(i).name&"</td>"
if xfield<>"" then xfield=xfield&","
xfield=xfield&"["&rsp.Fields(i).name&"]"
End Select
next
rsp.Close
xTable=xTable&"</tr>"
response.Write replace(xTable,"[Twidth]",Twidth)
'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
'-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> - <20><><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
tsql=" select A.t, "&xfield&" "&vbCrLf
tsql=tsql&" from "&vbCrLf
tsql=tsql&" ( "&vbCrLf
tsql=tsql&" select "&vbCrLf
tsql=tsql&" (isnull(r_error,'0')+isnull(m_error,'0')+isnull(s_error,'0')+isnull(q_error,'0')) as t, "&vbCrLf
tsql=tsql&" case when left(ffusercode,2)='1-' then ffusercode else '1-'+ffusercode end as ff, "&vbCrLf
tsql=tsql&" * "&vbCrLf
tsql=tsql&" from "&co_table&" "&vbCrLf
tsql=tsql&" ) A "&vbCrLf
tsql=tsql&" left join "&vbCrLf
tsql=tsql&" ( "&vbCrLf
tsql=tsql&" select new_id, m_name, left(m_jumin,6) as m_jumin from [project2].[dbo].[man] with(nolock) "&vbCrLf
tsql=tsql&" where m_activity='Ȱ<><C8B0>' "&vbCrLf
tsql=tsql&" and left(new_id,2)='1-' "&vbCrLf
tsql=tsql&" ) B "&vbCrLf
tsql=tsql&" on A.ff=B.new_id "&vbCrLf
tsql=tsql&" order by A.ffid asc "&vbCrLf
'-- tsql=tsql&" order by B.new_id asc, A.t desc "&vbCrLf
if xprint="1" then response.write tsql&"<br><br>"
rsp.Open tsql, adoConn, 1
dim k : k=1
xck_num=0
'###########################################################################
if rsp.Eof then '-- <20>̰<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
response.write "<font color=red><3E><> <20>̰<EFBFBD><CCB0>Ͻ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͱ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD> </font>"
rsp.close
'##############################################
'-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̺<EFBFBD> <20><><EFBFBD><EFBFBD>
po_sql=" drop table "&co_table&" "
if xprint="1" then response.write po_sql&"<br><br>"
adoconn.execute po_sql
'##############################################
%>
</body>
<script language="javascript">
function js_init() {
document.getElementById("loadingBar").style.display = "none";
document.getElementById("divBody").style.display = "";
}
</script>
<%
response.end
end if
'###########################################################################
Response.Buffer = True '----- <20><><EFBFBD>ۻ<EFBFBD><DBBB><EFBFBD>
dim ck_data : ck_data=0
while not rsp.Eof
if cdbl(rsp("t"))>0 then xck_num=1
'-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>
response.write "<tr>"
For i=1 To rsp.Fields.Count-1
if isnull(rsp(i)) or trim(rsp(i))="" then
response.write "<td style=""mso-number-format:'\@';"" align=""right"" >&nbsp;</td>"
else
response.write "<td style=""mso-number-format:'\@';"" align=""right"" >"&rsp(i)&"</td>"
'response.write "<td style=""mso-number-format:'\@';"" align=""right"" >"&rsp(i)&":"& trim(i)&":"&trim(rsp.Fields.Count-1)&":"&instr(rsp(i),"FCS <20>̰<EFBFBD><CCB0>Ұ<EFBFBD>")&":"&ck_data&"</td>"
End If
'------------------------------------------------
if trim(i)=trim(rsp.Fields.Count-1) then
if instr(rsp(i),"FCS <20>̰<EFBFBD><CCB0>Ұ<EFBFBD>")=0 then ck_data=1 '-- <20>̰<EFBFBD><CCB0><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
end if
'------------------------------------------------
Next
response.write "</tr>"
'-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>
if k mod 500=0 then Response.flush ' 500<30><30>°<EFBFBD><C2B0><EFBFBD><EFBFBD> <20><><EFBFBD>۳<EFBFBD><DBB3><EFBFBD> <20><><EFBFBD><EFBFBD>...
k=k+1
rsp.movenext
wend
rsp.close
Response.flush ' <20><><EFBFBD><EFBFBD> <20><><EFBFBD>ۿ<EFBFBD><DBBF><EFBFBD> <20><><EFBFBD><EFBFBD>.
Response.Clear '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ʱ<EFBFBD>ȭ
response.write "</tr>"
response.write "</table>"
response.write "</span>"
end select
%>
</div>
<% For Each s In request.form %><input type="hidden" name="<%=s%>" id="<%=s%>" value="<%=request.form(s)%>" /><% next %>
<input type="hidden" name="x_temp" id="x_temp" value="" />
<input type="hidden" name="x_save" id="x_save" value="" />
</form>
</BODY>
</HTML>
<script language="javascript">
// document.getElementById("f_main").innerHTML="<table border=1 width=100% ><tr><td>aaa <input type='button' value='sss' name='tbtn' onclick=""javascript:alert('aaa');"" style=\"background-color:#999999;color:#ffffff;width:130px;height:20px;cursor:hand;\" ></td></tr></table><br>";
function js_init() {
document.getElementById("loadingBar").style.display = "none";
document.getElementById("divBody").style.display = "";
var ck_data = "<%=ck_data%>";
if (ck_data == "0") {
alert("FCS<43><53> <20>̰<EFBFBD><CCB0>ϽǼ<CFBD> <20>ִ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͱ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD> ");
return;
}
var b1 = "<%=xck_num%>";
if (b1 == "0") {
alert("<22>̰<EFBFBD><CCB0>Ͻ<EFBFBD> <20><><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> Ȯ<><C8AE><EFBFBD>Ͽ<EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD> ");
document.getElementById("f_main").innerHTML = "<table border=0 width=100% ><tr><td><font color=blue><3E><> <20><>Ī<EFBFBD><C4AA><EFBFBD>α׷<CEB1><D7B7><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>̰<EFBFBD> ó<><C3B3><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>͸<EFBFBD> FCS<43><53> <20>̰<EFBFBD><CCB0>Ǹ<EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> üũ<C3BC><C5A9> <20><><EFBFBD><EFBFBD><EFBFBD>ʹ<EFBFBD> <20>̰<EFBFBD>ó<EFBFBD><C3B3> <20><><EFBFBD><EFBFBD> <20>ʽ<EFBFBD><CABD>ϴ<EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʹ<EFBFBD> <20>Ʒ<EFBFBD> <20><>ư Ŭ<><C5AC><EFBFBD><EFBFBD> <20>ڵ<EFBFBD><DAB5><EFBFBD><EFBFBD><EFBFBD> <20><>Ī<EFBFBD><C4AA><EFBFBD>α׷<CEB1><D7B7><EFBFBD> [<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>] ó<><C3B3><EFBFBD><EFBFBD> <20>˴ϴ<CBB4><br><br></font><input type=\'button\' value=\'<27>Ʒ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Ȯ<><C8AE><EFBFBD>Ͻð<CFBD> Ư<>̻<EFBFBD><CCBB><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ø<EFBFBD>, <20>ش<EFBFBD><D8B4><EFBFBD>ư<EFBFBD><C6B0> Ŭ<><C5AC><EFBFBD>Ͽ<EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>. FCS<43><53> <20>Ʒ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>͸<EFBFBD> <20>̰<EFBFBD> <20>մϴ<D5B4> (GO!!) <20><><EFBFBD><EFBFBD> \' name=\'tbtn\' onclick=\"javascript:js_Usubmit(xform);\" style=\"background-color:#999999;color:#ffffff;width:750px;height:35px;cursor:hand;\" >&nbsp;&nbsp;&nbsp;<input type=\'button\' value=\'EXCEL <20>ٿ<EFBFBD><D9BF>ε<EFBFBD> <20><><EFBFBD><EFBFBD> \' name=\'tbtn\' onclick=\"javascript:js_Excel(xform);\" style=\"background-color:#999999;color:#ffffff;height:35px;cursor:hand;\" ></td></tr></table><br>";
}
if (b1 == "1") {
alert("<22><><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>. Ȯ<><C8AE><EFBFBD>Ͻñ<CFBD> <20>ٶ<EFBFBD><D9B6>ϴ<EFBFBD> ");
document.getElementById("f_main").innerHTML = "<table border=0 width=100% ><tr><td><font color=blue><3E><> <20><>Ī<EFBFBD><C4AA><EFBFBD>α׷<CEB1><D7B7><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>̰<EFBFBD> ó<><C3B3><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>͸<EFBFBD> FCS<43><53> <20>̰<EFBFBD><CCB0>Ǹ<EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> üũ<C3BC><C5A9> <20><><EFBFBD><EFBFBD><EFBFBD>ʹ<EFBFBD> <20>̰<EFBFBD>ó<EFBFBD><C3B3> <20><><EFBFBD><EFBFBD> <20>ʽ<EFBFBD><CABD>ϴ<EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʹ<EFBFBD> <20>Ʒ<EFBFBD> <20><>ư Ŭ<><C5AC><EFBFBD><EFBFBD> <20>ڵ<EFBFBD><DAB5><EFBFBD><EFBFBD><EFBFBD> <20><>Ī<EFBFBD><C4AA><EFBFBD>α׷<CEB1><D7B7><EFBFBD> [<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>] ó<><C3B3><EFBFBD><EFBFBD> <20>˴ϴ<CBB4><br><br></font><input type=\'button\' value=\'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϰ<EFBFBD> FCS<43><53> <20><><EFBFBD>ε<EFBFBD><CEB5>ϸ<EFBFBD>, <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><>Ī<EFBFBD><C4AA><EFBFBD><EFBFBD><EFBFBD>Ϳ<EFBFBD> [<5B><><EFBFBD><EFBFBD><EFBFBD>ҷ<EFBFBD>]<5D><><EFBFBD><EFBFBD> ó<><C3B3> <20>մϴ<D5B4>(GO!!) <20><><EFBFBD><EFBFBD> \' name=\'tbtn\' onclick=\"javascript:js_Usubmit(xform);\" style=\"background-color:#999999;color:#ffffff;width:750px;height:35px;cursor:hand;\" >&nbsp;&nbsp;&nbsp;<input type=\'button\' value=\'EXCEL <20>ٿ<EFBFBD><D9BF>ε<EFBFBD> <20><><EFBFBD><EFBFBD> \' name=\'tbtn\' onclick=\"javascript:js_Excel(xform);\" style=\"background-color:#999999;color:#ffffff;height:35px;cursor:hand;\" ></td></tr></table><br>";
}
/*
if( (parseInt(document.getElementById('body').offsetHeight)- parseInt(window.document.body.clientHeight)) > 20 ) {
window.document.body.scroll = "auto";
window.resizeBy(18,0);
*/
}
function js_Usubmit(x) {
if (!confirm("<22><><EFBFBD><EFBFBD><EFBFBD>͸<EFBFBD> FCS<43><53> <20>̰<EFBFBD><CCB0>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>? <20>̰<EFBFBD><CCB0>Ŀ<EFBFBD><C4BF><EFBFBD> <20><><EFBFBD>ҵ<EFBFBD><D2B5><EFBFBD> <20>ʽ<EFBFBD><CABD>ϴ<EFBFBD> ")) { return; }
alert("<22>ð<EFBFBD><C3B0><EFBFBD> <20>ټ<EFBFBD> <20>ɸ<EFBFBD><C9B8><EFBFBD> <20>ֻ<EFBFBD><D6BB><EFBFBD><EFBFBD><EFBFBD>, ó<><C3B3><EFBFBD>ÿ<EFBFBD><C3BF><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>ٷ<EFBFBD> <20>ֽñ<D6BD> <20>ٶ<EFBFBD><D9B6>ϴ<EFBFBD> ");
x.x_save.value = "save_ok"
x.target = "";
x.action = "punching_fcs_send_ok.asp";
x.submit();
}
function js_Excel(x) {
x.target = "";
x.x_temp.value = document.getElementById("pu_table").innerHTML;
alert("<22>ٿ<EFBFBD><D9BF>ε<EFBFBD> <20><> Excel<65><6C> <20>ٸ<EFBFBD> <20≯<EFBFBD><CCB8><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>(xlsx) <20><> <20>̿<EFBFBD><CCBF>ϼ<EFBFBD><CFBC><EFBFBD>.");
x.action = "punching_fcs_exceldown.asp";
x.submit();
}
</script>
<%
'##############################################
'-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̺<EFBFBD> <20><><EFBFBD><EFBFBD>
po_sql=" drop table "&co_table&" "
if xprint="1" then response.write po_sql&"<br><br>"
adoconn.execute po_sql
'##############################################
%>
<%
function fun_sql(tmode)
dim tval
dim sql
dim sqArr
sql=" DECLARE @Prod varchar(max) "&vbCrLf
sql=sql&" SET @Prod = '' "&vbCrLf
sql=sql&" SELECT @Prod = @Prod + '' + pu_que + ',' "&vbCrLf
sql=sql&" FROM ( "&vbCrLf
sql=sql&" select id, pu_que from [project2].[dbo].[T_RES_SQ_QUE_LAB] "&vbCrLf
sql=sql&" where ting='1' "&vbCrLf
sql=sql&" and pu_child_sn='"&pn_cd&"' "&vbCrLf
sql=sql&" and pu_type='"&pu_prjcode_type&"' "&vbCrLf
sql=sql&" and pu_que_type in ('0','2','3') "&vbCrLf '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(0), <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȭ<EFBFBD><C8AD>ȣ(2), <20≯<EFBFBD>(3)
sql=sql&" ) A "&vbCrLf
sql=sql&" order by A.id asc "&vbCrLf
sql=sql&" SET @Prod = LEFT(@Prod, LEN(@Prod) - 1) "&vbCrLf
sql=sql&" select @Prod as 'que' "&vbCrLf
rsm.Open sql, adoConn, 1 , 1
sqArr = split(rsm("que"),",")
sql=" DECLARE @Prod varchar(max) "&vbCrLf
sql=sql&" SET @Prod = '' "&vbCrLf
sql=sql&" SELECT @Prod = @Prod + '[' + pu_que + '],' "&vbCrLf
sql=sql&" FROM ( "&vbCrLf
sql=sql&" select id, pu_que from [project2].[dbo].[T_RES_SQ_QUE_LAB] "&vbCrLf
sql=sql&" where ting='1' "&vbCrLf
sql=sql&" and pu_child_sn='"&pn_cd&"' "&vbCrLf
sql=sql&" and pu_type='"&pu_prjcode_type&"' "&vbCrLf
'-- fcs<63><73><EFBFBD><EFBFBD> sql=sql&" and fcs_area='"&pu_prjcode_area&"' "&vbCrLf
sql=sql&" and pu_que_type in ('0','2','3') "&vbCrLf '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(0), <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȭ<EFBFBD><C8AD>ȣ(2), <20≯<EFBFBD>(3)
sql=sql&" ) A "&vbCrLf
sql=sql&" order by A.id asc "&vbCrLf
sql=sql&" SET @Prod = LEFT(@Prod, LEN(@Prod) - 1) "&vbCrLf
sql=sql&" EXEC (' "
if tmode<>"" then
sql=sql&" insert into "&tmode&" "
end if
sql=sql&" select "&vbCrLf
sql=sql&" A.oid,A.tid,A.pc_prjcode,A.pc_prjcode_sub1,A.pc_prjcode_sub2, "&vbCrLf
sql=sql&" case when left(A.ffusercode,2)=''1-'' then A.ffusercode else isnull(''1-''+REPLICATE(''0'',4 - LEN(A.ffusercode))+cast(A.ffusercode as varchar(10)),'''') end as ffusercode , "&vbCrLf '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD> <20><><EFBFBD><EFBFBD> <20>ڸ<EFBFBD><DAB8><EFBFBD> ä<><C3A4><EFBFBD><EFBFBD>
sql=sql&" B.* "&vbCrLf
if tmode<>"" then
sql=sql&" , null as r_error, null as m_error,null as s_error,null as q_error, getdate() as insert_date "
end if
sql=sql&" from "&vbCrLf
sql=sql&" ( "&vbCrLf
sql=sql&" select max(id) as oid, "&vbCrLf
sql=sql&" tid,pc_prjcode,pc_prjcode_sub1,pc_prjcode_sub2,ffusercode,ffid "&vbCrLf
sql=sql&" from [project2].[dbo].[punching_data] "&vbCrLf
sql=sql&" where pc_prjcode=''"&pn_cd&"'' "&vbCrLf
sql=sql&" and pc_prjcode_sub1=''"&pu_prjcode_type&"'' "&vbCrLf
sql=sql&" and ff_ing=''1'' "&vbCrLf
'--- <20><><EFBFBD><EFBFBD><EFBFBD>̰<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> --------------------------------------------------------------------
sql=sql&" and ffid in ( "&vbCrLf
sql=sql&" select ttelnum from [punching].[dbo].[tb_response] "&vbCrLf
sql=sql&" where tprocode=''"&pn_cd&"'' "&vbCrLf
sql=sql&" and char(ttype+65)=''"&pu_prjcode_type&"'' "&vbCrLf
sql=sql&" ) "&vbCrLf
'--------------------------------------------------------------------------------------
sql=sql&" group by tid,pc_prjcode,pc_prjcode_sub1,pc_prjcode_sub2,ffusercode,ffid "&vbCrLf
sql=sql&" ) A "&vbCrLf
sql=sql&" left join "&vbCrLf
sql=sql&" ( "&vbCrLf
sql=sql&" select * from "&vbCrLf
sql=sql&" (SELECT ffid,ffque, ffans FROM [project2].[dbo].[punching_data] "&vbCrLf
sql=sql&" where pc_prjcode=''"&pn_cd&"'' "&vbCrLf
sql=sql&" and pc_prjcode_sub1=''"&pu_prjcode_type&"'' "&vbCrLf
sql=sql&" and ff_ing=''1'' "&vbCrLf
sql=sql&" ) Q "&vbCrLf
sql=sql&" PIVOT ( max(ffans) FOR ffque IN (' + @Prod + ') "&vbCrLf
sql=sql&" ) AS PVT "&vbCrLf
sql=sql&" ) B "&vbCrLf
sql=sql&" on A.ffid=B.ffid "&vbCrLf
sql=sql&" where 1=1 "&vbCrLf
for i = 0 to UBound(sqArr)
sql=sql&" and " & sqArr(i) & " <> ''-1'' "&vbCrLf
next
sql=sql&" order by A.oid asc ') "&vbCrLf
tval=sql
fun_sql=tval
rsm.Close
end function
%>

View File

@@ -0,0 +1,450 @@
<!-- #include virtual = "lib/config.asp" -->
<%
SET rsa = server.CreateObject("ADODB.RECORDSET")
SET rsp = server.CreateObject("ADODB.RECORDSET")
dim pn_cd : pn_cd=request.item("pn_cd") '-- <20><>Ī<EFBFBD>ڵ<EFBFBD>
dim pu_type : pu_type=request.item("pu_type") '-- <20><>ĪŸ<C4AA><C5B8>
dim pu_area : pu_area=request.item("pu_area") '-- <20><>Ī<EFBFBD><C4AA><EFBFBD><EFBFBD>
%>
<meta http-equiv="Content-Type" content="application/vnd.ms-excel;charset=euc-kr">
<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">
<title><%=GNB_TITLE%></title>
<link rel="stylesheet" type="text/css" href="../css/basic.css">
<script src="/js/jquery.min.js"></script>
<script src="/js/jquery-ajax-call.js"></script>
<script src="/js/jquery.form.min.js"></script>
<script language="javascript" src="../js/common.js"></script>
<script language=javascript>
function js_tclick(x,ck,cmval,xcnt){
var sp_name="";
// sp_name="sp_"+cmval;
sp_name=cmval;
if(x.tno.length!=undefined){
if(ck==true){
x.elements["field_set_"+sp_name].value="";
x.elements["field_set_"+sp_name].readOnly=false;
document.getElementById("sp_"+sp_name+"").style.display="block";
x.uno[xcnt].checked=false;
x.uno[xcnt].disabled=false;
x.uno[xcnt].style.display="block";
x.bno[xcnt].checked=false;
x.bno[xcnt].disabled=false;
x.bno[xcnt].style.display="block";
x.bno2[xcnt].checked=false;
x.bno2[xcnt].disabled=false;
x.bno2[xcnt].style.display="block";
}else{
x.elements["field_set_"+sp_name].value="";
x.elements["field_set_"+sp_name].readOnly=false;
document.getElementById("sp_"+sp_name+"").style.display="none";
x.uno[xcnt].checked=false;
x.uno[xcnt].disabled=false;
x.uno[xcnt].style.display="none";
x.bno[xcnt].checked=false;
x.bno[xcnt].disabled=false;
x.bno[xcnt].style.display="none";
x.bno2[xcnt].checked=false;
x.bno2[xcnt].disabled=false;
x.bno2[xcnt].style.display="none";
}
}else{
if(ck==true){
x.elements["field_set_"+sp_name].value="";
document.getElementById("sp_"+sp_name+"").style.display="block";
x.uno[xcnt].checked=false;
x.uno[xcnt].disabled=false;
x.uno[xcnt].style.display="block";
x.bno[xcnt].checked=false;
x.bno[xcnt].disabled=false;
x.bno[xcnt].style.display="block";
x.bno2[xcnt].checked=false;
x.bno2[xcnt].disabled=false;
x.bno2[xcnt].style.display="block";
}else{
x.elements["field_set_"+sp_name].value="";
document.getElementById("sp_"+sp_name+"").style.display="none";
x.uno[xcnt].checked=false;
x.uno[xcnt].disabled=false;
x.uno[xcnt].style.display="none";
x.bno[xcnt].checked=false;
x.bno[xcnt].disabled=false;
x.bno[xcnt].style.display="none";
x.bno2[xcnt].checked=false;
x.bno2[xcnt].disabled=false;
x.bno2[xcnt].style.display="none";
}
}
}
function js_field_set_ok(x){
if(x.tno==undefined){
alert("<22><>Ī <20><><EFBFBD>α׷<CEB1><D7B7><EFBFBD><EFBFBD><EFBFBD> [<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>̰<EFBFBD>]<5D><> <20><><EFBFBD>ֽñ<D6BD> <20>ٶ<EFBFBD><D9B6>ϴ<EFBFBD> ");
return false;
}
var no_val;
var no_cnt;
var no_cnt2;
var tt;
//------------------------------------------
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> üũ
no_cnt=0;
for(i=0;i<x.tno.length; i++){
if((x.tno[i].disabled==false)&&(x.tno[i].checked==true)){no_cnt++}
}
if(Number(no_cnt)==0){
alert("<22><><EFBFBD>õ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD> ");
return;
}
//------------------------------------------
// Column <20><>Ī <20><><EFBFBD>ÿ<EFBFBD><C3BF><EFBFBD> üũ
no_val="";
for(i=0;i<x.tno.length; i++){
if((x.tno[i].checked==true)&&(x.uno[i].checked==false)&&(x.bno[i].checked==false)&&(x.bno2[i].checked==false)){
no_val=x.tno[i].value;
if(x.elements["field_set_"+no_val].value==""){
alert("<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD> ");
x.elements["field_set_"+no_val].focus();
return;
}
}
}
//------------------------------------------
// <20≯<EFBFBD>üũ
no_cnt=0;
for(i=0;i<x.uno.length; i++){
if(x.uno[i].disabled==false){
if(x.uno[i].checked==true){
no_cnt++;
}
}
}
if(Number(no_cnt)==0){
alert("[<5B≯<EFBFBD><CCB8><EFBFBD> <20>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD> ");
return;
}
//------------------------------------------
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȭ<EFBFBD><C8AD>ȣ üũ
no_cnt=0;
for(i=0;i<x.bno.length; i++){
if(x.bno[i].disabled==false){
if(x.bno[i].checked==true){
tt=x.bno[i].value;
no_cnt++;
}
}
}
if(Number(no_cnt)==0){
for(i=0;i<x.bno2.length; i++){
if(x.bno2[i].disabled==false){
if(x.bno2[i].checked==true){
tt=x.bno2[i].value;
no_cnt++;
}
}
}
}
if(Number(no_cnt)==0){
alert("[<5B><><EFBFBD><EFBFBD> <20><>ȣ <20>ϳ<EFBFBD><CFB3><EFBFBD> <20>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ּž<D6BC> <20>մϴ<D5B4> ");
return;
}
/*
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȭ<EFBFBD><C8AD>ȣ <20>ߺ<EFBFBD>üũ
for(i=0;i<x.bno2.length; i++){
if(x.bno2[i].checked==true){
if(x.bno2[i].value==tt){
alert("[<5B><><EFBFBD><EFBFBD> <20><>ȭ<EFBFBD><C8AD>ȣ(1)] [<5B><><EFBFBD><EFBFBD> <20><>ȭ<EFBFBD><C8AD>ȣ(2)] <20><> <20>ߺ<EFBFBD> <20>˴ϴ<CBB4>. <20><><EFBFBD><EFBFBD> <20><>ȭ<EFBFBD><C8AD>ȣ <20><> <20><><EFBFBD><EFBFBD> <20>ٸ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20>ֽñ<D6BD> <20>ٶ<EFBFBD><D9B6>ϴ<EFBFBD> ");
return;
}
}
}
*/
no_cnt2=0;
for(i=0;i<x.tno.length; i++){
if(x.tno[i].checked==true){no_cnt2++;}
}
if(Number(no_cnt2)>30){
alert("[<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ε<EFBFBD>] <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ["+no_cnt2+"]<5D><> <20><><EFBFBD><EFBFBD> <20>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>. [<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ε<EFBFBD>] <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>30<33><30> <20>̻<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϽǼ<CFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD> ");
return;
}
if(Number(no_cnt2)==1){
alert("<22><><EFBFBD><EFBFBD> <20><>ȭ<EFBFBD><C8AD>ȣ<EFBFBD><C8A3> [<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ε<EFBFBD>] <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD> ");
return;
}
x.target="";
x.action="punching_field_setting_reg.asp";
x.submit();
// window.open('about:blank','_self').self.close();
}
function js_r_click(x,jname,j,jvalue,a,a1,a2){
//_r_click(xform,this.value,'<%=cdbl(a)-1%>','phone_number','bno2','uno','bno');"
var x_name="field_set_"+jname;
var x_name2="";
for(var i=0;i<x.elements[a].length; i++){
if(i==j){
x.elements[a][i].disabled=false;
x.elements[a][i].checked=true;
x.elements[a1][i].disabled=true;
x.elements[a1][i].checked=false;
x.elements[a2][i].disabled=true;
x.elements[a2][i].checked=false
x.elements[x_name].value=jvalue;
x.elements[x_name].readOnly=true;
}else{
x_name2="field_set_"+x.elements[a][i].value;
if(x.elements[x_name2].value==jvalue){
if(x.elements[x_name2].readOnly==true){
x.elements[x_name2].value="";
x.elements[x_name2].readOnly=false;
x.elements[a1][i].disabled=false;
x.elements[a1][i].checked=false;
x.elements[a2][i].disabled=false
x.elements[a2][i].checked=false
}
}
}
}
}
</script>
</head>
<body onclick="javascript:try{if(winObj.window.focus()){}}catch(exception){}" ondblclick="javascript:try{if(winObj.window.focus()){}}catch(exception){}" >
<form name='xform' method='post' >
<input type="hidden" name="pn_cd" value="<%=pn_cd%>" ><!-- <20><>Ī<EFBFBD>ڵ<EFBFBD> -->
<input type="hidden" name="pu_type" value="<%=pu_type%>" ><!-- <20><>ĪŸ<C4AA><C5B8> -->
<input type="hidden" name="pu_area" value="<%=pu_area%>" ><!-- <20><>Ī<EFBFBD><C4AA><EFBFBD><EFBFBD> -->
<!------------------><!------------------><!------------------>
<center><font color=blue><u><3E><> FCS<43><53> <20>̰<EFBFBD><CCB0><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>͸<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>(<28>̰<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> 1<><31><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ϽǼ<CFBD> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>)</u></font><br><br></center>
<table border="0" style="width:700px;" align=center >
<tr>
<td align=center valign=top >
<input type="button" value=" <<<<<<<<<<< <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD> >>>>>>>>>>>> " name="btn01" class="button black medium" onclick='javascript:js_field_set_ok(document.forms[0]);' style="font-size:11pt;width:500px;" >
</td>
</tr>
</table><br>
<table border="0" style="width:700px;" align=center >
<tr>
<td align=center valign=top >
<table style="width:690px;" cellpadding="5" cellspacing="0" border="0" style="border-collapse:collapse;">
<tr height="25px">
<td width="4%" align="center" >No</td>
<td width="8%" align="center" ><3E><><EFBFBD><EFBFBD><br><3E><><EFBFBD>ε<EFBFBD></td>
<td width="21%" align="center" ><3E><>Ī<EFBFBD><C4AA><EFBFBD><EFBFBD></td>
<td width="25%" align="center" ><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> </td>
<td width="12%" align="center" ><3E≯<EFBFBD></td>
<td width="14%" align="center" ><3E><><EFBFBD><EFBFBD><br><3E>޴<EFBFBD><DEB4><EFBFBD><EFBFBD><EFBFBD>ȣ(1)</td>
<td width="13%" align="center" ><3E><><EFBFBD><EFBFBD><br><3E>Ϲݹ<CFB9>ȣ(2)</td>
</tr>
<tr>
<td align="center">-</td>
<td align="center"><3E><><EFBFBD><EFBFBD></td>
<td align="center"><font color=blue><b>fftype (<28><><EFBFBD><EFBFBD>Type)</b></font></td>
<td align="right" ><%=set_sbox("<22><><EFBFBD><EFBFBD>Type","<22><><EFBFBD><EFBFBD>Type")%>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp&nbsp;&nbsp;&nbsp;</td>
<td align="center">-</td>
<td align="center">-</td>
<td align="center">-</td>
</tr>
<tr>
<td align="center">-</td>
<td align="center"><3E><><EFBFBD><EFBFBD></td>
<td align="center"><font color=blue><b>ffid (<28><><EFBFBD><EFBFBD>ID)</b></font></td>
<td align="right"><%=set_sbox("<22><><EFBFBD><EFBFBD>ID","<22><><EFBFBD><EFBFBD>ID")%>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp&nbsp;&nbsp;&nbsp;</td>
<td align="center">-</td>
<td align="center">-</td>
<td align="center">-</td>
</tr>
<tr>
<td align="center">-</td>
<td align="center"><3E><><EFBFBD><EFBFBD></td>
<td align="center"><font color=blue><b>ffusercode (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ID)</b></font></font></td>
<td align="right" ><%=set_sbox("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ID","<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ID")%>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td align="center">-</td>
<td align="center">-</td>
<td align="center">-</td>
</tr>
<%
dim a : a=1
sql=" select ffque from [project2].[dbo].[punching_data] "
sql=sql&" where pc_prjcode='"&pn_cd&"' "
sql=sql&" and pc_prjcode_sub1='"&pu_type&"' "
sql=sql&" group by ffque "
sql=sql&" order by max(id) asc "
'response.write sql
rsp.Open sql, adoConn, 1
if rsp.eof then
%>
<tr>
<td colspan="7" align="center" style="font-size:11pt;"><br><br><br><br><b>
- <20><>Ī <20><><EFBFBD>α׷<CEB1><D7B7><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>̰<EFBFBD> ó<><C3B3><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͱ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD> -
</b><br><br><br><br></td>
</tr>
<%
rsp.close
else
while not rsp.Eof
%>
<tr>
<td align="center"><%=a%></td>
<td align="center"><input type="checkbox" name="tno" value="<%=rsp("ffque")%>" onclick="javascript:js_tclick(xform,this.checked, this.value,'<%=cdbl(a)-1%>');" style="border:1px solid #FF0000;" ></td>
<td align="center"><font size="3"><font color=blue><b><%=rsp("ffque")%></b></font></font></td>
<td align="right"><span id="sp_<%=rsp("ffque")%>" style="display:none;" ><%=set_sbox("",rsp("ffque"))%>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></td>
<td align="center"><input type="radio" name="uno" value="<%=rsp("ffque")%>" style="display:none;" style="border:1px solid #FF0000;" onclick="javascript:js_r_click(xform,this.value,'<%=cdbl(a)-1%>','user_name','uno','bno','bno2');" ></td>
<td align="center"><input type="radio" name="bno" value="<%=rsp("ffque")%>" style="display:none;" style="border:1px solid #FF0000;" onclick="javascript:js_r_click(xform,this.value,'<%=cdbl(a)-1%>','phone_number1','bno','uno','bno2');" ></td>
<td align="center"><input type="radio" name="bno2" value="<%=rsp("ffque")%>" style="display:none;" style="border:1px solid #FF0000;" onclick="javascript:js_r_click(xform,this.value,'<%=cdbl(a)-1%>','phone_number2','bno2','uno','bno');" ></td>
</tr>
<%
a=a+1
rsp.movenext
Wend
rsp.Close
%>
<%end if%>
</table>
</td>
</tr>
<tr>
<td align=center valign=top >&nbsp;</td>
</tr>
<tr>
<td align=center valign=top >
<input type="button" value=" <<<<<<<<<<< <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD> >>>>>>>>>>>> " name="btn01" class="button black medium" onclick='javascript:js_field_set_ok(document.forms[0]);' style="font-size:11pt;width:500px;" >
</td>
</tr>
<tr>
<td align=right valign=top><3E><></td>
</tr>
</table>
<!------------------><!------------------><!------------------>
</form>
</body>
</html>
<%
function set_sbox(motxt, moname)
dim tval : tval=""
select case motxt
case "<22><><EFBFBD><EFBFBD>Type"
tval=tval&"<input type=""text"" name=""field_set_x_type"" id=""field_set_x_type"" value="""&moname&""" size=""12"" maxlength=""50"" style=""border:1px solid #FF0000;font-size:11pt;"" readonly >"
case "<22><><EFBFBD><EFBFBD>ID"
tval=tval&"<input type=""text"" name=""field_set_x_id"" id=""field_set_x_id"" value="""&moname&""" size=""12"" maxlength=""50"" style=""border:1px solid #FF0000;font-size:11pt;"" readonly >"
case "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ID"
tval=tval&"<input type=""text"" name=""field_set_x_name"" id=""field_set_x_name"" value="""&moname&""" size=""12"" maxlength=""50"" style=""border:1px solid #FF0000;font-size:11pt;"" readonly >"
case else
tval=tval&"<input type=""text"" name=""field_set_"&moname&""" id=""field_set_"&moname&""" value="""" size=""12"" maxlength=""50"" style=""border:1px solid #FF0000;font-size:11pt;"" >"
end select
set_sbox=tval
end function
%>

View File

@@ -0,0 +1,140 @@
<!-- #include virtual = "lib/config.asp" -->
<%
SET rsa = server.CreateObject("ADODB.RECORDSET")
SET rsp = server.CreateObject("ADODB.RECORDSET")
dim pn_cd : pn_cd=request.item("pn_cd") '-- <20><>Ī<EFBFBD>ڵ<EFBFBD>
dim pu_type : pu_type=request.item("pu_type") '-- <20><>ĪŸ<C4AA><C5B8>
dim pu_area : pu_area=request.item("pu_area") '-- <20><>Ī<EFBFBD><C4AA><EFBFBD><EFBFBD>
%>
<meta http-equiv="Content-Type" content="application/vnd.ms-excel;charset=euc-kr">
<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">
<title><%=GNB_TITLE%></title>
<link rel="stylesheet" type="text/css" href="../css/basic.css">
<script src="/js/jquery.min.js"></script>
<script src="/js/jquery-ajax-call.js"></script>
<script src="/js/jquery.form.min.js"></script>
<script language="javascript" src="../js/common.js"></script>
<script language=javascript>
function js_ans_view(x,xpn_cd,xpu_type,xpu_area,xpu_que,xpu_que_label){
if(xpu_que_label==""){
alert("<22><><EFBFBD>ϵ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD> ");
return false;
}
var url = "punching_field_setting_ok_view_ans.asp?";
url=url+"pn_cd="+xpn_cd;
url=url+"&pu_que="+xpu_que;
url=url+"&pu_area="+xpu_area;
url=url+"&pu_type="+xpu_type;
var pwidth=800;
var pheight=700;
var tleft=(screen.width-pwidth)/2;
var ttop=(screen.height-pheight)/2;
winObj=window.open(url, "wins2_1", "left="+tleft+", top="+ttop+", menubar=no, location=no, status=no, toolbar=no, width="+pwidth+", height="+pheight+", scrollbars=yes ,resizable=no");
}
</script>
</head>
<body onclick="javascript:try{if(winObj.window.focus()){}}catch(exception){}" ondblclick="javascript:try{if(winObj.window.focus()){}}catch(exception){}" >
<form name='xform' method='post' >
<input type="hidden" name="pn_cd" value="<%=pn_cd%>" ><!-- <20><>Ī<EFBFBD>ڵ<EFBFBD> -->
<input type="hidden" name="pu_type" value="<%=pu_type%>" ><!-- <20><>ĪŸ<C4AA><C5B8> -->
<input type="hidden" name="pu_area" value="<%=pu_area%>" ><!-- <20><>Ī<EFBFBD><C4AA><EFBFBD><EFBFBD> -->
<!------------------><!------------------><!------------------>
<br><br>
<table border="0" style="width:700px;" align=center >
<tr>
<td align=center valign=top >
<input type="button" value=" <<<<<<<<<<< â <20><> <20><> >>>>>>>>>>>> " name="btn01" class="button black medium" onclick="javascript:opener.parent_function();window.open('about:blank','_parent').parent.close();" style="font-size:11pt;width:500px;" >
</td>
</tr>
</table><br>
<table border="0" style="width:700px;" align=center >
<tr>
<td align=center valign=top >
<table style="width:690px;" border='1' bordercolordark='#FFFFFF' cellspacing='0' cellpadding='5' align=center >
<tr height="25px">
<td width="5%" align="center" bgcolor='#E2E2E2' style='word-break:break-all' >No</td>
<td width="13%" align="center" bgcolor='#E2E2E2' style='word-break:break-all' ><3E><>Ī<EFBFBD><C4AA><EFBFBD><EFBFBD></td>
<td width="19%" align="center" bgcolor='#E2E2E2' style='word-break:break-all' ><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> </td>
<td width="17%" align="center" bgcolor='#E2E2E2' style='word-break:break-all' ><3E≯<EFBFBD></td>
<td width="19%" align="center" bgcolor='#E2E2E2' style='word-break:break-all' ><3E><><EFBFBD><EFBFBD><br><3E>޴<EFBFBD><DEB4><EFBFBD><EFBFBD><EFBFBD>ȣ(1)</td>
<td width="19%" align="center"bgcolor='#E2E2E2' style='word-break:break-all' ><3E><><EFBFBD><EFBFBD><br><3E>Ϲݹ<CFB9>ȣ(2)</td>
</tr>
<%
dim a : a=1
sql=" select A.*, isnull(B.pu_que_ans,'') as pu_que_ans from "
sql=sql&" ( "
sql=sql&" select * from [project2].[dbo].[T_RES_SQ_QUE_LAB] "
sql=sql&" where ting='1' "
sql=sql&" and pu_que_type in ('0','2','3') " '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(0) / <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȭ<EFBFBD><C8AD>ȣ(2) / <20≯<EFBFBD>(3)
sql=sql&" and pu_child_sn='"&pn_cd&"' "
sql=sql&" and pu_type='"&pu_type&"' "
'-- fcs <20><><EFBFBD><EFBFBD> sql=sql&" and fcs_area='"&pu_area&"' "
sql=sql&" ) A "
sql=sql&" left join "
sql=sql&" ( "
sql=sql&" select pu_que as pu_que_ans from [project2].[dbo].[T_RES_SQ_ANS_LAB] "
sql=sql&" where ting='1' "
sql=sql&" and pu_child_sn='"&pn_cd&"' "
sql=sql&" and pu_type='"&pu_type&"' "
'-- fcs <20><><EFBFBD><EFBFBD> sql=sql&" and fcs_area='"&pu_area&"' "
sql=sql&" group by pu_que "
sql=sql&" ) B "
sql=sql&" on A.pu_que=B.pu_que_ans "
sql=sql&" order by A.pu_que_type desc, A.tphone_1 desc, A.tphone_2 desc, A.id asc "
rsp.Open sql, adoConn, 1
while not rsp.Eof
%>
<tr onMouseOver=bgColor="#F3F3F3" onMouseOut=bgColor="#FFFFFF" bgcolor="#FFFFFF" style="cursor: pointer;" onclick="javascript:js_ans_view(xform,'<%=pn_cd%>','<%=pu_type%>','<%=pu_area%>','<%=rsp("pu_que")%>','<%=rsp("pu_que_ans")%>');" >
<td align="center" style='word-break:break-all' >&nbsp;<%=a%></td>
<td align="center" style='word-break:break-all' >&nbsp;<%=rsp("pu_que")%></td>
<td align="left" style='word-break:break-all' >&nbsp;<%=replace(replace(rsp("pu_que_label"),"phone_number",""),"user_name","")%></td>
<td align="center" style='word-break:break-all' >&nbsp;<%=replace(rsp("tuser_name"),"user_name","<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20≯<EFBFBD>")%></td>
<td align="center" style='word-break:break-all' >&nbsp;<%=replace(rsp("tphone_1"),"phone_number","<22><><EFBFBD><EFBFBD> <20><>ȭ<EFBFBD><C8AD>ȣ(1)")%></td>
<td align="center" style='word-break:break-all' >&nbsp;<%=replace(rsp("tphone_2"),"phone_number","<22><><EFBFBD><EFBFBD> <20><>ȭ<EFBFBD><C8AD>ȣ(2)")%></td>
</tr>
<%
a=a+1
rsp.movenext
Wend
rsp.Close
%>
</table>
</td>
</tr>
<tr>
<td align=center valign=top ><3E><></td>
</tr>
<tr>
<td align=center valign=top >
<input type="button" value=" <<<<<<<<<<< â <20><> <20><> >>>>>>>>>>>> " name="btn01" class="button black medium" onclick="javascript:opener.parent_function();window.open('about:blank','_parent').parent.close();" style="font-size:11pt;width:500px;" >
</td>
</tr>
</table>
<br><br>
<!------------------><!------------------><!------------------>
</form>
</body>
</html>

View File

@@ -0,0 +1,96 @@
<!-- #include virtual = "lib/config.asp" -->
<%
SET rsa = server.CreateObject("ADODB.RECORDSET")
SET rsp = server.CreateObject("ADODB.RECORDSET")
dim pn_cd : pn_cd=request.item("pn_cd") '-- <20><>Ī<EFBFBD>ڵ<EFBFBD>
dim pu_que : pu_que=request.item("pu_que") '-- <20><>Ī<EFBFBD><C4AA><EFBFBD><EFBFBD>
dim pu_type : pu_type=request.item("pu_type") '-- <20><>ĪŸ<C4AA><C5B8>
dim pu_area : pu_area=request.item("pu_area") '-- <20><>Ī<EFBFBD><C4AA><EFBFBD><EFBFBD>
%>
<meta http-equiv="Content-Type" content="application/vnd.ms-excel;charset=euc-kr">
<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">
<title><%=GNB_TITLE%></title>
<link rel="stylesheet" type="text/css" href="../css/basic.css">
<script src="/js/jquery.min.js"></script>
<script src="/js/jquery-ajax-call.js"></script>
<script src="/js/jquery.form.min.js"></script>
<script language="javascript" src="../js/common.js"></script>
<script language=javascript>
</script>
</head>
<body onclick="javascript:try{if(winObj.window.focus()){}}catch(exception){}" ondblclick="javascript:try{if(winObj.window.focus()){}}catch(exception){}" >
<form name='xform' method='post' >
<!------------------><!------------------><!------------------>
<br><br>
<table border="0" style="width:700px;" align=center >
<tr>
<td align=center valign=top >
<input type="button" value=" <<<<<<<<<<< â <20><> <20><> >>>>>>>>>>>> " name="btn01" class="button black medium" onclick="javascript:window.open('about:blank','_parent').parent.close();" style="font-size:11pt;width:500px;" >
</td>
</tr>
</table><br>
<table border="0" style="width:700px;" align=center >
<tr>
<td align=center valign=top >
<table style="width:690px;" border='1' bordercolordark='#FFFFFF' cellspacing='0' cellpadding='5' align=center >
<tr height="25px">
<td width="100%" align="center" bgcolor='#E2E2E2' colspan="2"><font color=blue><b><%=pu_que%></b></font></td>
</tr>
<tr height="25px">
<td width="15%" align="center" bgcolor='#E2E2E2' style='word-break:break-all' >&nbsp;<3B><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD></td>
<td width="85%" align="center" bgcolor='#E2E2E2' style='word-break:break-all' ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
</tr>
<%
dim a : a=1
sql=" select pu_ans_code, pu_ans_label from [dbo].[T_RES_SQ_ANS_LAB] "
sql=sql&" where ting='1' " '-- <20><><EFBFBD><EFBFBD>(1)
sql=sql&" and pu_child_sn='"&pn_cd&"' "
sql=sql&" and pu_type='"&pu_type&"' "
'-- fcs <20><><EFBFBD><EFBFBD> sql=sql&" and fcs_area='"&pu_area&"' "
sql=sql&" and pu_que='"&pu_que&"' "
sql=sql&" order by id asc "
rsp.Open sql, adoConn, 1
while not rsp.Eof
%>
<tr height="25px">
<td width="15%" align="center" style='word-break:break-all' >&nbsp;<%=rsp("pu_ans_code")%></td>
<td width="85%" align="left" style='word-break:break-all' ><%=rsp("pu_ans_label")%></td>
</tr>
<%
a=a+1
rsp.movenext
Wend
rsp.Close
%>
</table>
</td>
</tr>
<tr>
<td align=center valign=top ><3E><></td>
</tr>
<tr>
<td align=center valign=top >
<input type="button" value=" <<<<<<<<<<< â <20><> <20><> >>>>>>>>>>>> " name="btn01" class="button black medium" onclick="javascript:window.open('about:blank','_parent').parent.close();" style="font-size:11pt;width:500px;" >
</td>
</tr>
</table>
<br><br>
<!------------------><!------------------><!------------------>
</form>
</body>
</html>

View File

@@ -0,0 +1,105 @@
<!-- #include virtual = "lib/config.asp" -->
<%
%>
<meta http-equiv="Content-Type" content="application/vnd.ms-excel;charset=euc-kr">
<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">
<title><%=GNB_TITLE%></title>
<link rel="stylesheet" type="text/css" href="../css/basic.css">
<script src="/js/jquery.min.js"></script>
<script src="/js/jquery-ajax-call.js"></script>
<script src="/js/jquery.form.min.js"></script>
<script language="javascript" src="../js/common.js"></script>
<script language=javascript>
function f_submit(x){
x.target="ck_frame";
x.action="punching_field_setting_reg_check.asp";
x.submit();
}
</script>
</head>
<body onclick="javascript:try{if(winObj.window.focus()){}}catch(exception){}" ondblclick="javascript:try{if(winObj.window.focus()){}}catch(exception){}" >
<form name='fname' method='post' >
<input type="hidden" name="pn_cd" value="<%=request.form("pn_cd")%>" ><!-- <20><>Ī<EFBFBD>ڵ<EFBFBD> -->
<input type="hidden" name="pu_type" value="<%=request.form("pu_type")%>" ><!-- <20><>ĪŸ<C4AA><C5B8> -->
<input type="hidden" name="pu_area" value="<%=request.form("pu_area")%>" ><!-- <20><>Ī<EFBFBD><C4AA><EFBFBD><EFBFBD> -->
<center><font color=blue><u><3E><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>.</u> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <b><3E><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD>[<5B><>]<5D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b> <20><> <20>־<EFBFBD><D6BE>ֽñ<D6BD> <20>ٶ<EFBFBD><D9B6>ϴ<EFBFBD></font><br><br></center>
<table border="0" style="width:720px;" align=center >
<tr>
<td align=center valign=top>
<!--------------->
<table border="0" style="width:700px;" align=center >
<% dim s %>
<% For Each s In request.form %>
<%if request.form(s)<>"" then %>
<%
select case s
case "field_set_x_type","field_set_x_id","field_set_x_name"
%>
<input type="hidden" name="<%=s%>" value="<%=request.form(s)%>" >
<%
case else
%>
<% if (request.form("uno")<>replace(s,"field_set_","")) and instr(s,"field_set_")>0 then %>
<% if (request.form("bno")<>replace(s,"field_set_","")) and instr(s,"field_set_")>0 then %>
<% if (request.form("bno2")<>replace(s,"field_set_","")) and instr(s,"field_set_")>0 then %>
<tr>
<td align=center valign=top >
<table style="width:690px;" cellpadding="5" cellspacing="0" border="0" style="border-collapse:collapse;">
<tr height="25px">
<td width="12%" align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td width="85%" align="left" >
<font color="#FFFFFF"><b><font size="3"><%=replace(s,"field_set_","")%></font></b></font>&nbsp;&nbsp;
<09><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> [<input type="text" name="<%=s%>" value="<%=replace(replace(request.form(s),"'",""),"""","")%>" size="20" maxlength="50" style="font-size:11pt;" readonly >]
</td>
</tr>
<tr>
<td align="center" valign="top" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td align="left"><textarea name="smo_<%=s%>" style="font-size:11pt;" cols="70" rows="13" ></textarea></td>
</tr>
<table>
</td>
</tr>
<tr>
<td colspan="2" align=center valign=top ><hr style="width:680px;" ></td>
</tr>
<% end if %>
<% end if %>
<% end if %>
<% end select %>
<%end if%>
<% next %>
<input type="hidden" name="uno" value="<%=request.form("uno")%>" >
<input type="hidden" name="bno" value="<%=request.form("bno")%>" >
<input type="hidden" name="bno2" value="<%=request.form("bno2")%>" >
</table>
<!--------------->
</td>
</tr>
<tr>
<td align=center valign=top >
<input type="button" value="<<<<<<<<<<< <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD> >>>>>>>>>>>>" name="btn_ss" class="button white medium" onclick="javascript:f_submit(fname);" style="font-size:11pt;width500px;" >
</td>
</tr>
</table>
<iframe name="ck_frame" src="about:blank" width="0" height="0" >
<br><br>
</form>
</body>
</html>

View File

@@ -0,0 +1,157 @@
<!-- #include virtual = "lib/config.asp" -->
<%
dim n1, n2, n11, n22
dim tvals : tvals=""
dim tchecks : tchecks=""
dim tmsg : tmsg=""
dim thtmls : thtml="<table style=""width:500px;"" cellpadding=""5"" cellspacing=""0"" border=""1"" style=""border-collapse:collapse;"" >"
For Each s In request.form
'-- response.write s &":"& request.form(s)&"<br>"
if left(s,4)="smo_" then
if request.form(s)<>"" and tmsg="" then
thtml=thtml&"<tr bgcolor=""#dbe9f2"" ><td colspan=""2""><b>"
thtml=thtml& replace(s,"smo_field_set_","")&"&nbsp;[<font color=blue>"&request.form(replace(s,"smo_",""))&"</font>]"
thtml=thtml&"</b></td></tr>"
thtml=thtml&"<tr bgcolor=""#dbe9f2"" ><td width=""50"" ><3E><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD></td><td><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td></tr>"
tchecks=""
n11=split(request.form(s),vbCrLf)
for n1=0 to ubound(n11)
if trim(n11(n1))<>"" then
n22=split(n11(n1)," ")
if ubound(n22)=1 then
if trim(n22(0))<>"" then '-- <20>ڵ尡 <20>ִ°<D6B4><C2B0>츸
if instr(trim(tchecks),":"&trim(n22(0))&":")>0 then '-- <20>ڵ<EFBFBD><DAB5>ߺ<EFBFBD><DFBA><EFBFBD> <20><><EFBFBD><EFBFBD>
'-- tmsg=trim(tchecks)&"===:"&trim(n22(0))&":"&"<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ڵ尡 <20>ߺ<EFBFBD><DFBA>Ǵ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>. Ȯ<><C8AE><EFBFBD>Ͻñ<CFBD> <20>ٶ<EFBFBD><D9B6>ϴ<EFBFBD>"
tmsg="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ڵ尡 <20>ߺ<EFBFBD><DFBA>Ǵ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>. Ȯ<><C8AE><EFBFBD>Ͻñ<CFBD> <20>ٶ<EFBFBD><D9B6>ϴ<EFBFBD>"
exit for
else '-- <20><><EFBFBD><EFBFBD>
'for n2=0 to ubound(n22)
' '-- response.write n22(n2)&":"
'next
'response.write "<br>"
tchecks=tchecks&":"&n22(0)&":" '-- <20>ڵ<EFBFBD><DAB5>ߺ<EFBFBD> üũ<C3BC><C5A9><EFBFBD><EFBFBD>
tvals=tvals&s&"<22><>"&n22(0)&"<22><>"&n22(1)&vbCrLf
thtml=thtml&"<tr>"&"<td width=""50"" ><font color=red>"&n22(0)&"</font></td><td>"&n22(1)&"</td></tr>"
end if
end if
end if
end if
next
end if
end if
next
thtml=thtml&"</table>"
%>
<meta http-equiv="Content-Type" content="application/vnd.ms-excel;charset=euc-kr">
<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">
<title><%=GNB_TITLE%></title>
<link rel="stylesheet" type="text/css" href="../css/basic.css">
<script src="/js/jquery.min.js"></script>
<script src="/js/jquery-ajax-call.js"></script>
<script src="/js/jquery.form.min.js"></script>
<script language="javascript" src="../js/common.js"></script>
<script language=javascript>
function js_init(x,xmsg){
if(xmsg!=""){
alert(xmsg);
return;
}
parent.name = "parentPage"
x.target = "parentPage"; // Ÿ<><C5B8><EFBFBD><EFBFBD> <20>θ<EFBFBD>â<EFBFBD><C3A2><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
x.action = "punching_field_setting_reg_check_view.asp";
x.submit();
//return;
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28>ڵ<EFBFBD>,<2C><><EFBFBD><EFBFBD>) Ȯ<><C8AE>
/*
var url = "punching_field_setting_reg_check_view.asp";
var pwidth=800;
var pheight=700;
var tleft=(screen.width-pwidth)/2;
var ttop=(screen.height-pheight)/2;
winObj=window.open("", "wins3", "left="+tleft+", top="+ttop+", menubar=no, location=no, status=no, toolbar=no, width="+pwidth+", height="+pheight+", scrollbars=yes ,resizable=no");
x.action = url;
x.target = 'wins3';
x.submit();
*/
// window.open('about:blank','_self').self.close();
}
</script>
</head>
<body onclick="javascript:try{if(winObj.window.focus()){}}catch(exception){}" ondblclick="javascript:try{if(winObj.window.focus()){}}catch(exception){}" onload="javascript:js_init(fname,'<%=tmsg%>');" >
<form name='fname' method='post' >
<input type="hidden" name="pn_cd" value="<%=request.form("pn_cd")%>" ><!-- <20><>Ī<EFBFBD>ڵ<EFBFBD> -->
<input type="hidden" name="pu_type" value="<%=request.form("pu_type")%>" ><!-- <20><>ĪŸ<C4AA><C5B8> -->
<input type="hidden" name="pu_area" value="<%=request.form("pu_area")%>" ><!-- <20><>Ī<EFBFBD><C4AA><EFBFBD><EFBFBD> -->
<input type="hidden" name="tvals" id="tvals" value='<%=replace(replace(tvals,"'",""),"""","")%>' />
<input type="hidden" name="thtml" id="thtml" value='<%=replace(replace(thtml,"'",""),"""","")%>' />
<!----------------------------------------------------------------->
<%
For Each s In request.form
if request.form(s)<>"" then
select case s
case "field_set_x_type","field_set_x_id","field_set_x_name"
%>
<input type="hidden" name="<%=s%>" value="<%=request.form(s)%>" >
<%case else %>
<% if (request.form("bno")<>replace(s,"field_set_","")) and instr(s,"field_set_")>0 then %>
<input type="hidden" name="<%=s%>" value="<%=request.form(s)%>" >
<% end if %>
<% end select %>
<%end if%>
<% next %>
<input type="hidden" name="uno" value="<%=request.form("uno")%>" >
<input type="hidden" name="bno" value="<%=request.form("bno")%>" >
<input type="hidden" name="bno2" value="<%=request.form("bno2")%>" >
<!----------------------------------------------------------------->
</form>
</body>
</html>

View File

@@ -0,0 +1,104 @@
<!-- #include virtual = "lib/config.asp" -->
<%
%>
<meta http-equiv="Content-Type" content="application/vnd.ms-excel;charset=euc-kr">
<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">
<title><%=GNB_TITLE%></title>
<link rel="stylesheet" type="text/css" href="../css/basic.css">
<script src="/js/jquery.min.js"></script>
<script src="/js/jquery-ajax-call.js"></script>
<script src="/js/jquery.form.min.js"></script>
<script language="javascript" src="../js/common.js"></script>
<script type="text/javascript" src="valueck.js"></script>
<script language=javascript>
function f_submit(x){
if(!confirm("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD><CFB7>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>? <20>Ϸ<EFBFBD><CFB7>Ŀ<EFBFBD><C4BF><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϽǼ<CFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD> ")){return;}
x.target = "";
x.action = "punching_field_setting_reg_ok.asp";
x.submit();
/*
var url = "punching_field_setting_reg_ok.asp";
var pwidth=800;
var pheight=700;
var tleft=(screen.width-pwidth)/2;
var ttop=(screen.height-pheight)/2;
winObj=window.open("", "wins3", "left="+tleft+", top="+ttop+", menubar=no, location=no, status=no, toolbar=no, width="+pwidth+", height="+pheight+", scrollbars=yes ,resizable=no");
x.action = url;
x.target = 'wins3';
x.submit();
*/
//window.open('about:blank','_self').self.close();
}
</script>
</head>
<body onclick="javascript:try{if(winObj.window.focus()){}}catch(exception){}" ondblclick="javascript:try{if(winObj.window.focus()){}}catch(exception){}" >
<form name='fname' method='post' >
<input type="hidden" name="pn_cd" id="pn_cd" value="<%=request.form("pn_cd")%>" ><!-- <20><>Ī<EFBFBD>ڵ<EFBFBD> -->
<input type="hidden" name="pu_type" id="pu_type" value="<%=request.form("pu_type")%>" ><!-- <20><>ĪŸ<C4AA><C5B8> -->
<input type="hidden" name="pu_area" id="pu_area" value="<%=request.form("pu_area")%>" ><!-- <20><>Ī<EFBFBD><C4AA><EFBFBD><EFBFBD> -->
<input type="hidden" name="tvals" id="tvals" value='<%=request.form("tvals")%>' />
<%For Each s In request.form %>
<% if left(s,10)="field_set_" and request.form(s)<>"" then %>
<input type="hidden" name="<%=s%>" id="<%=s%>" value='<%=request.form(s)%>' />
<% end if %>
<%next %>
<input type="hidden" name="uno" id="uno" value="<%=request.form("uno")%>" >
<input type="hidden" name="bno" id="bno" value="<%=request.form("bno")%>" >
<input type="hidden" name="bno2" id="bno2" value="<%=request.form("bno2")%>" >
<table border="0" style="width:700px;" align=center >
<tr>
<td align=center valign=top ><font color=blue><3E><> <20><><EFBFBD><EFBFBD><EFBFBD>Ͻ<EFBFBD> <b>[<5B><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD>],[<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>]</b> <20><> Ȯ<><C8AE><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>. <20><><EFBFBD><EFBFBD><EFBFBD>ô°<C3B4><C2B0><EFBFBD> <20><> <20>Ʒ<EFBFBD> <u><b><3E><><EFBFBD><EFBFBD> <20><>ư</b></u><3E><> <20><><EFBFBD><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD></font></td>
</tr>
<tr>
<td align=center valign=top >
<!-------------------------------->
<%=request.item("thtml")%>
<!-------------------------------->
</td>
</tr>
<tr>
<td align=center valign=top >&nbsp;</td>
</tr>
<tr>
<td align=center valign=top >
<input type="button" value="<<<<<<<<<<< <20><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD> >>>>>>>>>>>>" name="btn_ss" class="button white medium" onclick="javascript:f_submit(fname);" style="font-size:11pt;width:500px;" >
</td>
</tr>
</table>
</form>
</body>
</html>

View File

@@ -0,0 +1,242 @@
<!-- #include virtual = "lib/config.asp" -->
<%
SET rsa = server.CreateObject("ADODB.RECORDSET")
SET rsp = server.CreateObject("ADODB.RECORDSET")
'#### <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ʱ<EFBFBD>ȭ #####################################
sql=""
sql=sql&" update [project2].[dbo].[T_RES_SQ_QUE_LAB] set "
sql=sql&" ting='0' "
sql=sql&" where pu_child_sn='"&request.form("pn_cd")&"' "
sql=sql&" and pu_type='"&request.form("pu_type")&"' "
sql=sql&" and fcs_area='"&request.form("pu_area")&"' "
'response.write sql &"<br>"
adoconn.execute sql
sql=""
sql=sql&" update [project2].[dbo].[T_RES_SQ_ANS_LAB] set "
sql=sql&" ting='0' "
sql=sql&" where pu_child_sn='"&request.form("pn_cd")&"' "
sql=sql&" and pu_type='"&request.form("pu_type")&"' "
sql=sql&" and fcs_area='"&request.form("pu_area")&"' "
'response.write sql &"<br>"
adoconn.execute sql
'##### <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> ####################################
dim type_flag
For Each s In request.form
if left(s,10)="field_set_" then
if instr(s,"field_set_x_")>0 then '-- <20><><EFBFBD><EFBFBD>Type, <20><><EFBFBD><EFBFBD>ID, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ID
type_flag="1"
else
type_flag="0"
end if
sql=" INSERT INTO [project2].[dbo].[T_RES_SQ_QUE_LAB] "
sql=sql&" (pu_child_sn,pu_type,fcs_type,fcs_area,pu_que_type,pu_que,pu_que_label,tuser_name,tphone_1,tphone_2,insert_date,tuser,ting) "
sql=sql&" VALUES "
sql=sql&" ('"&request.form("pn_cd")&"' "
sql=sql&" ,'"&request.form("pu_type")&"' "
sql=sql&" ,'' "
'-- <20><><EFBFBD><EFBFBD> <20>̻<EFBFBD><CCBB><EFBFBD> sql=sql&" ,'"&request.form("pu_area")&"' "
sql=sql&" ,'' "
sql=sql&" ,'"&type_flag&"' " '-- <20><><EFBFBD><EFBFBD>Ÿ<EFBFBD><C5B8> <20><><EFBFBD><EFBFBD> (<28>Ϲ<EFBFBD>(0), <20>⺻<EFBFBD><E2BABB><EFBFBD><EFBFBD>(1), <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȭ<EFBFBD><C8AD>ȣ(2) , <20≯<EFBFBD>(3)
sql=sql&" ,'"&replace(s,"field_set_","")&"' " '-- <20><><EFBFBD><EFBFBD>
sql=sql&" ,'"&request.form(s)&"' " '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
sql=sql&" ,'' "
sql=sql&" ,'' "
sql=sql&" ,'' "
sql=sql&" ,getdate() "
sql=sql&" ,'"&Session("User_Number")&"' " '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ
sql=sql&" ,'1' " '-- <20><><EFBFBD><EFBFBD>(1)
sql=sql&" ) "
'response.write sql &"<br>"
adoconn.execute sql
end if
next
'-- <20≯<EFBFBD>
if request.form("uno")<>"" then
sql=" INSERT INTO [project2].[dbo].[T_RES_SQ_QUE_LAB] "
sql=sql&" (pu_child_sn,pu_type,fcs_type,fcs_area,pu_que_type,pu_que,pu_que_label,tuser_name,tphone_1,tphone_2,insert_date,tuser,ting) "
sql=sql&" VALUES "
sql=sql&" ('"&request.form("pn_cd")&"' "
sql=sql&" ,'"&request.form("pu_type")&"' "
sql=sql&" ,'' "
'-- <20><><EFBFBD><EFBFBD> <20>̻<EFBFBD><CCBB><EFBFBD> sql=sql&" ,'"&request.form("pu_area")&"' "
sql=sql&" ,'' "
sql=sql&" ,'3' " '-- <20><><EFBFBD><EFBFBD>Ÿ<EFBFBD><C5B8> <20><><EFBFBD><EFBFBD> (<28>Ϲ<EFBFBD>(0), <20>⺻<EFBFBD><E2BABB><EFBFBD><EFBFBD>(1), <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȭ<EFBFBD><C8AD>ȣ(2) , <20≯<EFBFBD>(3)
sql=sql&" ,'"&request.form("uno")&"' " '-- <20><><EFBFBD><EFBFBD>
sql=sql&" ,'user_name' " '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
sql=sql&" ,'user_name' " '-- <20≯<EFBFBD>
sql=sql&" ,'' " '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȭ<EFBFBD><C8AD>ȣ1
sql=sql&" ,'' " '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȭ<EFBFBD><C8AD>ȣ2
sql=sql&" ,getdate() "
sql=sql&" ,'"&Session("User_Number")&"' " '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ
sql=sql&" ,'1' " '-- <20><><EFBFBD><EFBFBD>(1)
sql=sql&" ) "
'response.write sql &"<br>"
adoconn.execute sql
end if
'-- <20><>ȭ<EFBFBD><C8AD>ȣ1
if request.form("bno")<>"" then
sql=" INSERT INTO [project2].[dbo].[T_RES_SQ_QUE_LAB] "
sql=sql&" (pu_child_sn,pu_type,fcs_type,fcs_area,pu_que_type,pu_que,pu_que_label,tuser_name,tphone_1,tphone_2,insert_date,tuser,ting) "
sql=sql&" VALUES "
sql=sql&" ('"&request.form("pn_cd")&"' "
sql=sql&" ,'"&request.form("pu_type")&"' "
sql=sql&" ,'' "
'-- <20><><EFBFBD><EFBFBD> <20>̻<EFBFBD><CCBB><EFBFBD> sql=sql&" ,'"&request.form("pu_area")&"' "
sql=sql&" ,'' "
sql=sql&" ,'2' " '-- <20><><EFBFBD><EFBFBD>Ÿ<EFBFBD><C5B8> <20><><EFBFBD><EFBFBD> (<28>Ϲ<EFBFBD>(0), <20>⺻<EFBFBD><E2BABB><EFBFBD><EFBFBD>(1), <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȭ<EFBFBD><C8AD>ȣ(2) , <20≯<EFBFBD>(3)
sql=sql&" ,'"&request.form("bno")&"' " '-- <20><><EFBFBD><EFBFBD>
sql=sql&" ,'phone_number' " '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
sql=sql&" ,'' " '-- <20≯<EFBFBD>
sql=sql&" ,'phone_number' " '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȭ<EFBFBD><C8AD>ȣ1
sql=sql&" ,'' " '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȭ<EFBFBD><C8AD>ȣ2
sql=sql&" ,getdate() "
sql=sql&" ,'"&Session("User_Number")&"' " '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ
sql=sql&" ,'1' " '-- <20><><EFBFBD><EFBFBD>(1)
sql=sql&" ) "
'response.write sql &"<br>"
adoconn.execute sql
end if
'-- <20><>ȭ<EFBFBD><C8AD>ȣ1
if request.form("bno2")<>"" then
sql=" INSERT INTO [project2].[dbo].[T_RES_SQ_QUE_LAB] "
sql=sql&" (pu_child_sn,pu_type,fcs_type,fcs_area,pu_que_type,pu_que,pu_que_label,tuser_name,tphone_1,tphone_2,insert_date,tuser,ting) "
sql=sql&" VALUES "
sql=sql&" ('"&request.form("pn_cd")&"' "
sql=sql&" ,'"&request.form("pu_type")&"' "
sql=sql&" ,'' "
'-- <20><><EFBFBD><EFBFBD> <20>̻<EFBFBD><CCBB><EFBFBD> sql=sql&" ,'"&request.form("pu_area")&"' "
sql=sql&" ,'' "
sql=sql&" ,'2' " '-- <20><><EFBFBD><EFBFBD>Ÿ<EFBFBD><C5B8> <20><><EFBFBD><EFBFBD> (<28>Ϲ<EFBFBD>(0), <20>⺻<EFBFBD><E2BABB><EFBFBD><EFBFBD>(1), <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȭ<EFBFBD><C8AD>ȣ(2) , <20≯<EFBFBD>(3)
sql=sql&" ,'"&request.form("bno2")&"' " '-- <20><><EFBFBD><EFBFBD>
sql=sql&" ,'phone_number' " '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
sql=sql&" ,'' " '-- <20≯<EFBFBD>
sql=sql&" ,'' " '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȭ<EFBFBD><C8AD>ȣ1
sql=sql&" ,'phone_number' " '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȭ<EFBFBD><C8AD>ȣ2
sql=sql&" ,getdate() "
sql=sql&" ,'"&Session("User_Number")&"' " '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ
sql=sql&" ,'1' " '-- <20><><EFBFBD><EFBFBD>(1)
sql=sql&" ) "
'response.write sql &"<br>"
adoconn.execute sql
end if
'##### <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> ####################################
dim a_s, n, a_s2, n2
if request.form("tvals")<>"" then
a_s=split(request.form("tvals"),vbCrLf)
for n=0 to ubound(a_s)
if a_s(n)<>"" then
a_s2=""
a_s2=split(a_s(n),"<22><>")
sql=" INSERT INTO [project2].[dbo].[T_RES_SQ_ANS_LAB] (pu_child_sn,pu_type,fcs_type,fcs_area,pu_que,pu_ans_code,pu_ans_label,insert_date,tuser,ting) "
sql=sql&" VALUES "
sql=sql&" ('"&request.form("pn_cd")&"' "
sql=sql&" ,'"&request.form("pu_type")&"' "
sql=sql&" ,'' "
'-- <20><><EFBFBD><EFBFBD> <20>̻<EFBFBD><CCBB><EFBFBD> sql=sql&" ,'"&request.form("pu_area")&"' "
sql=sql&" ,'' "
sql=sql&" ,'"&replace(a_s2(0),"smo_field_set_","")&"' "
sql=sql&" ,'"&a_s2(1)&"' "
sql=sql&" ,'"&a_s2(2)&"' "
sql=sql&" ,getdate() "
sql=sql&",'"&Session("User_Number")&"' " '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ
sql=sql&" ,'1' " '-- <20><><EFBFBD><EFBFBD>(1)
sql=sql&" ) "
'response.write sql &"<br>"
adoconn.execute sql
end if
next
end if
%>
<meta http-equiv="Content-Type" content="application/vnd.ms-excel;charset=euc-kr">
<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">
<title><%=GNB_TITLE%></title>
<link rel="stylesheet" type="text/css" href="../css/basic.css">
<script src="/js/jquery.min.js"></script>
<script src="/js/jquery-ajax-call.js"></script>
<script src="/js/jquery.form.min.js"></script>
<script language="javascript" src="../js/common.js"></script>
<script type="text/javascript" src="valueck.js"></script>
<script language=javascript>
function js_init(x){
alert("<22><><EFBFBD><EFBFBD> <20>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD> ");
opener.parent_function();
window.open('about:blank','_self').self.close();
}
</script>
</head>
<body onload="javascript:js_init(fname);" onclick="javascript:try{if(winObj.window.focus()){}}catch(exception){}" ondblclick="javascript:try{if(winObj.window.focus()){}}catch(exception){}" >
<form name='fname' method='post' >
</form>
</body>
</html>

305
project/punching_index.asp Normal file
View File

@@ -0,0 +1,305 @@
<!-- #include virtual = "include/header.asp" -->
<!-- #include virtual = "include/left.asp" -->
<%
dim pn_code : pn_code=replace(replace(replace(replace(request.form("pn_code"),"'",""),"""","")," ","")," ","")
dim p_title : p_title=replace(replace(request.form("p_title"),"'",""),"""","")
dim create_ck
select case request.form("p_insert")
case "ok" '-- <20><>Ī <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD>
'-- <20><>Ī(FCS) <20>ڵ<EFBFBD><DAB5>ߺ<EFBFBD> üũ
sql=" select p_index from T_PROJECT_FCS "
sql=sql&" where p_child_sn='"&pn_code&"' "
Rs.Open sql, adoConn, 1
if Rs.eof then '-- <20><>Ī(FCS) <20>ڵ<EFBFBD> <20><><EFBFBD><EFBFBD>
'-- <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ---------------------------------------
dim x_method_cd, x_sn, x_child_sn
tsql=""
tsql=tsql&" select * from dbo.T_PROJECT_METHOD "
tsql=tsql&" where p_child_sn='"&request.form("p_child_sn")&"' "
Adors.Open tsql, adoConn, 1
x_method_cd=Adors("p_method_cd")
x_sn=Adors("p_sn")
x_child_sn=Adors("p_child_sn")
Adors.close
'-- fcs <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD>
tsql=""
tsql=tsql&" INSERT INTO dbo.T_PROJECT_FCS (p_method_cd,p_sn,intranet_project,p_child_sn,p_subject,p_rsch_dept,p_progress_status) "
tsql=tsql&" VALUES "
tsql=tsql&" ('"&x_method_cd&"' "
tsql=tsql&" ,'"&x_sn&"' "
tsql=tsql&" ,'"&x_child_sn&"' "
tsql=tsql&" ,'"&pn_code&"' "
tsql=tsql&" ,'"&p_title&"' "
tsql=tsql&" ,'0' "
tsql=tsql&" ,'008' "
tsql=tsql&" ) "
adoconn.execute tsql
'-- fcs >> <20><>Ī ó<><C3B3><EFBFBD><EFBFBD> insert
tsql=""
tsql=tsql&" INSERT INTO dbo.T_PROJECT_PUNCHING (P_SN,punching_type,real_time_matching) "
tsql=tsql&" VALUES "
tsql=tsql&" ('"&pn_code&"','0','1') "
adoconn.execute tsql
'-- fcs <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ<EFBFBD> : <20><><EFBFBD>ϿϷ<CFBF>
create_ck="ok_code"
else
'-- <20><>Ī(FCS) <20>ڵ<EFBFBD><DAB5>ߺ<EFBFBD>
create_ck="dubble"
end if
Rs.close
end select
%>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<div class="content-header">
<h1><3E><>Ī <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>̰<EFBFBD></h1>
</div>
<!-- /.content-header -->
<!-- Main content -->
<div class="content-body">
<div class="content">
<div class="container-fluid">
<div class="row">
<div class="col-12">
<form method='post' id='xform' name='xform' onload="javascript:fn_press('1');" onclick="javascript:try{if(winObj.window.focus()){}}catch(exception){}" ondblclick="javascript:try{if(winObj.window.focus()){}}catch(exception){}" >
<input type="hidden" name="p_child_sn" id="p_child_sn" value="" />
<input type="hidden" name="p_insert" id="p_insert" value="" />
<input type="hidden" name="fn_id" id="fn_id" value="" />
<table id= "searchTable1" class="table table-sm table-sm2 table-bordered table-head tr-colors">
<tr>
<td align=right colspan="2"><input type="button" name="xbtn" value=" <20><>ó <20><><EFBFBD><EFBFBD><EFBFBD>ϱ<EFBFBD> " style="width:130px;cursor:pointer;" onclick="javascript:js_punching_user(xform);" /></td>
</tr>
<tr>
<td width="230px" align="center">(<28><><EFBFBD><EFBFBD>ó<EFBFBD><C3B3> <20><>) <20><>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ</td>
<td>
<input type="text" style="width:99%;" name="p_subject" id="p_subject" value='' onclick="winnewoepn();" readonly>
</td>
</tr>
</table>
<table id= "searchTable2" class="table table-sm table-sm2 table-bordered table-head tr-colors" style='display:none;' >
<tr>
<td colspan="2"><b> FCS <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD> </b></td>
</tr>
<tr>
<td width="230px" align="center">FCS <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ<EFBFBD> <20>Է<EFBFBD></td>
<td >
<input type="text" style="width:99%;" name="pn_code" id="pn_code" value='' >
</td>
</tr>
<tr>
<td align="center">FCS <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20>Է<EFBFBD></td>
<td >
<input type="text" style="width:99%;" name="p_title" id="p_title" value='' >
</td>
</tr>
<tr>
<td align=right colspan="2" >
<input type="button" value="FCS <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD>" name="t_create_pj_btn" onclick="javascript:js_create_pj(xform);" style="cursor:pointer;" >
</td>
</tr>
</table>
<table class="table table-sm table-sm2 table-bordered table-head tr-colors">
<tr>
<td width="200px" align="center" height="24" style="word-break:break-all;" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td align="center" height="24" style="word-break:break-all;" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD></td>
<td width="250px" align="center" height="24" style="word-break:break-all;" >FCS <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD>ڵ<EFBFBD></td>
<td width="320px" align="center" height="24" style="word-break:break-all;" > <20><> <20><></td>
</tr>
<%
'-- list <20><><EFBFBD><EFBFBD>
dim acnt : acnt=1
dim tocolor : tocolor=""
tsql=""
tsql=tsql&" select "
tsql=tsql&" A.*, B.intra_subject, C.p_method_nm, "
tsql=tsql&" '<font color=#000000><b><3E><>Ʈ)</b></font> [<font color=#000000><b>'+A.intranet_project+'</b></font>] '+B.intra_subject+"
tsql=tsql&" '<br><font color=blue><b>FCS)</b></font> [<font color=blue><b>'+A.pn_prjcode+'</b></font>] '+A.pn_subject as all_title, "
tsql=tsql&" isnull(D.fcs_cnt,0) as fcs_cnt "
tsql=tsql&" from "
'####################################################
tsql=tsql&" ( "
tsql=tsql&" select AA.intranet_project, AA.p_child_sn as pn_prjcode, AA.p_subject as pn_subject from "
tsql=tsql&" ( "
tsql=tsql&" select "
tsql=tsql&" intranet_project, p_sn, p_child_sn, p_subject, p_method_cd, p_method_nm, allocation_cnt, depcol_cnt, "
tsql=tsql&" collection_cnt, escalation_cnt, error_cnt, complete_cnt, "
tsql=tsql&" case when complete_cnt = 0 then 0.00 else "
tsql=tsql&" case when escalation_cnt = 0 then 0.00 else round(convert(float, complete_cnt)/escalation_cnt * 100, 2) end end as tok_rating, "
tsql=tsql&" case when error_cnt = 0 then 0.00 else case when escalation_cnt = 0 then 0.00 else round(convert(float, error_cnt)/escalation_cnt * 100, 2) end "
tsql=tsql&" end as error_rating, p_progress from "
tsql=tsql&" (select tpm.intranet_project, tpm.p_sn, tpm.p_child_sn, tpm.p_subject, tpm.p_method_cd, tpc.p_method_nm, "
tsql=tsql&" isnull(al.allocation_cnt,0) as allocation_cnt, isnull(de.depcol_cnt,0) as depcol_cnt, "
tsql=tsql&" isnull(co.collection_cnt,0) as collection_cnt, isnull(al.escalation_cnt,0) as escalation_cnt, "
tsql=tsql&" isnull(al.error_cnt,0) as error_cnt, isnull(al.complete_cnt,0) as complete_cnt, case when isnull(tpm.p_qc_complete,'3') = '3' then "
tsql=tsql&" case when al.allocation_cnt > 0 then '2' else '3' end else '1' end as p_progress "
tsql=tsql&" from V_PROJECT_FCS_LIST tpm "
tsql=tsql&" left join t_project_method_cd tpc "
tsql=tsql&" on tpm.p_method_cd = tpc.p_method_cd "
tsql=tsql&" left join ( select intranet_project, sum(q_allocation) as allocation_cnt, "
tsql=tsql&" sum(q_escalation) as escalation_cnt, sum(q_error) as error_cnt, sum(q_complete) as complete_cnt "
tsql=tsql&" from T_QUOTA_TABLE group by intranet_project ) al on tpm.p_child_sn = al.intranet_project "
tsql=tsql&" left join ( select p_child_sn, SUM(depcol_cnt) as depcol_cnt, use_yn, dep_col from T_DEPCOL "
tsql=tsql&" group by p_child_sn, use_yn, dep_col ) de on tpm.p_child_sn = de.p_child_sn and de.use_yn='y' and de.dep_col='deploy' "
tsql=tsql&" left join ( select p_child_sn, SUM(collection_cnt) as collection_cnt, use_yn from T_COLLECTION group by p_child_sn, use_yn ) co "
tsql=tsql&" on tpm.p_child_sn = co.p_child_sn and co.use_yn='y' "
tsql=tsql&" where tpm.p_progress_status >= '008' and tpm.p_field_complete is null ) s "
tsql=tsql&" ) AA "
tsql=tsql&" where len(AA.intranet_project)>0 "
tsql=tsql&" ) A "
'####################################################
tsql=tsql&" left join "
tsql=tsql&" (select p_method_cd,p_sn, p_child_sn, p_subject as intra_subject from [dbo].[T_PROJECT_METHOD] ) B "
tsql=tsql&" on A.intranet_project=B.p_child_sn "
tsql=tsql&" left join "
tsql=tsql&" (select p_method_cd, p_method_nm from [dbo].[T_PROJECT_METHOD_CD]) C "
tsql=tsql&" on B.p_method_cd=C.p_method_cd "
tsql=tsql&" left join "
tsql=tsql&" ( "
tsql=tsql&" select p_sn, count(p_sn) as fcs_cnt from [dbo].[res] with(nolock) "
tsql=tsql&" where DelGubun='N' "
tsql=tsql&" group by p_sn "
tsql=tsql&" ) D "
tsql=tsql&" on A.pn_prjcode=D.p_sn "
tsql=tsql&" where B.p_method_cd is not null "
'response.write tsql
Adors.Open tsql, adoConn, 1
while not Adors.Eof
%>
<tr height="24">
<td align="center" class='align-middle' ><%=Adors("p_method_nm")%></td>
<td align="left" ><%=Adors("all_title")%></td>
<td align="center" class='align-middle' ><font color=blue><b><%=Adors("pn_prjcode")%></b></font></td>
<td align="center" class='align-middle' >
<input type="button" value=" <20><>Ī <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>̰<EFBFBD> " name="t_create_pj_btn" onclick="js_fcs_press('<%= Adors("pn_prjcode") %>');" style="cursor:pointer" >&nbsp;&nbsp;
<input type="button" value=" <20><><EFBFBD><EFBFBD> <20><><EFBFBD>ǵ<EFBFBD><C7B5><EFBFBD> " name="t_label_pj_btn" onclick="js_fcs_label('<%= Adors("pn_prjcode") %>');" style="cursor:pointer" >
</td>
</tr>
<%
Adors.movenext
Wend
Adors.Close
%>
</table>
</form>
</div>
</div>
</div>
</div>
</div>
<!-- /.content -->
<!-- REQUIRED SCRIPTS -->
<script>
function winnewoepn() {
var url = "/project_list/project_punching_list.ASP";
var pwidth=850;
var pheight=600;
var tleft=(screen.width-pwidth)/2;
var ttop=(screen.height-pheight)/2;
winObj=window.open(url, "wins", "left="+tleft+", top="+ttop+", menubar=no, location=no, status=no, toolbar=no, width="+pwidth+", height="+pheight+", scrollbars=yes ,resizable=no");
}
function js_create_pj(x){
if(x.p_child_sn.value==""){
alert("<22><>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20>ٽ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>.");
return;
}
if(x.pn_code.value==""){
alert("<22><>Ī <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD>ڵ带 <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>");
return;
}
if(x.p_child_sn.value==x.pn_code.value){
alert("<22><>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ带 <20><>Ī <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD>ڵ<EFBFBD><DAB5><EFBFBD> <20>Է<EFBFBD><D4B7>ϽǼ<CFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>. <20>ٽ<EFBFBD> Ȯ<><C8AE><EFBFBD>Ͽ<EFBFBD> <20>ֽñ<D6BD> <20>ٶ<EFBFBD><D9B6>ϴ<EFBFBD>");
return;
}
if(x.pn_code.value.indexOf(x.p_child_sn.value)==-1){
alert("<22><>Ī <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD>ڵ<EFBFBD><DAB5><EFBFBD> [<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȹ<EFBFBD><C8B9> <20>ڵ<EFBFBD>]+[<5B>߰<EFBFBD><DFB0>ڵ<EFBFBD>]<5D><> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽñ<D6BD> <20>ٶ<EFBFBD><D9B6>ϴ<EFBFBD>");
return;
}
if ((new RegExp(/[^a-z|^0-9|\_]/gi)).test(x.pn_code.value)) {
alert("<22><>Ī <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD>ڵ<EFBFBD><DAB5><EFBFBD> [<5B><>/<2F><><EFBFBD><EFBFBD>],[_]<5D><> <20><><EFBFBD><EFBFBD><EFBFBD>ϽǼ<CFBD> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD> ");
return;
}
if(x.p_title.value==""){
alert("<22><>Ī <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>");
return;
}
if(!confirm("<22><>Ī <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>? <20><><EFBFBD><EFBFBD><EFBFBD>Ŀ<EFBFBD><C4BF><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϽǼ<CFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD> ")){return;}
x.p_insert.value="ok";
x.action="punching_index.asp";
x.submit();
}
// fcs <20>̰<EFBFBD><CCB0>ϱ<EFBFBD>
function js_fcs_press(pn_cd){
var xxx="<%=Session("User_Number")%>";
if(xxx!="20190104"){
alert("<22>ش<EFBFBD><D8B4>޴<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD> ");
return;
}
var url = "punching_fcs_insert.asp?pn_cd="+pn_cd;
var pwidth=1200;
var pheight=700;
var tleft=(screen.width-pwidth)/2;
var ttop=(screen.height-pheight)/2;
winObj=window.open(url, "wins", "left="+tleft+", top="+ttop+", menubar=no, location=no, status=no, toolbar=no, width="+pwidth+", height="+pheight+", scrollbars=yes ,resizable=no");
}
function fn_press(mo){
if(mo=="0"){
document.getElementById("searchTable2").style.display = "";
}
}
// <20><>Ī <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
function js_punching_user(x){
var url = "punching_user.asp";
var pwidth=1700;
var pheight=900;
var tleft=(screen.width-pwidth)/2;
var ttop=(screen.height-pheight)/2;
winObj=window.open(url, "wins", "left="+tleft+", top="+ttop+", menubar=no, location=no, status=no, toolbar=no, width="+pwidth+", height="+pheight+", scrollbars=yes ,resizable=no");
}
function js_fcs_label(pn_cd){
var xxx="<%=Session("User_Number")%>";
if(xxx!="20171202"){
alert("<22>ش<EFBFBD><D8B4>޴<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD> ");
return;
}
var url="punching_que_insert.asp?pn_cd="+pn_cd;
var pwidth=900;
var pheight=700;
var tleft=(screen.width-pwidth)/2;
var ttop=(screen.height-pheight)/2;
winObj=window.open(url, "wins", "left="+tleft+", top="+ttop+", menubar=no, location=no, status=no, toolbar=no, width="+pwidth+", height="+pheight+", scrollbars=yes ,resizable=no");
}
</script>
<%if create_ck<>"" then %>
<%
dim ck_msg
select case create_ck
case "dubble" : ck_msg="<22><>Ī <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ尡 <20>ߺ<EFBFBD> <20>˴ϴ<CBB4>. <20>ٽ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD> "
case "ok_code" : ck_msg="<22>ڵ尡 <20><><EFBFBD><EFBFBD><EFBFBD>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD> "
end select
%>
<script>
alert("<%=ck_msg%>");
</script>
<%end if %>
</div>
<!-- /.content-wrapper -->
<!-- #include virtual = "include/footer.asp" -->

View File

@@ -0,0 +1,168 @@
<!-- #include virtual = "lib/config.asp" -->
<%
SET rsa = server.CreateObject("ADODB.RECORDSET")
SET rsp = server.CreateObject("ADODB.RECORDSET")
dim pn_cd : pn_cd=request.item("pn_cd") '-- <20><>Ī<EFBFBD>ڵ<EFBFBD>
dim pu_type : pu_type=request.item("pu_prjcode_type") '-- <20><>ĪŸ<C4AA><C5B8>
%>
<meta http-equiv="Content-Type" content="application/vnd.ms-excel;charset=euc-kr">
<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">
<title><%=GNB_TITLE%></title>
<link rel="stylesheet" type="text/css" href="../css/basic.css">
<script src="/js/jquery.min.js"></script>
<script src="/js/jquery-ajax-call.js"></script>
<script src="/js/jquery.form.min.js"></script>
<script language="javascript" src="../js/common.js"></script>
<script language=javascript>
function js_user_set_ok(x){
x.target = "";
x.action = "punching_input_user_save.asp";
x.submit();
}
</script>
</head>
<body onclick="javascript:try{if(winObj.window.focus()){}}catch(exception){}" ondblclick="javascript:try{if(winObj.window.focus()){}}catch(exception){}" >
<form name='xform' method='post' >
<input type="hidden" name="pn_cd" value="<%=pn_cd%>" ><!-- <20><>Ī<EFBFBD>ڵ<EFBFBD> -->
<input type="hidden" name="pu_type" value="<%=pu_type%>" ><!-- <20><>ĪŸ<C4AA><C5B8> -->
<!------------------><!------------------><!------------------>
<!-- <br><br><center><font color=blue><u><3E><> FCS<43><53> <20>̰<EFBFBD><CCB0><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Ȯ<><C8AE><EFBFBD>Ͽ<EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD> </u></font><br><br></center> -->
<table border="0" style="width:700px;" align=center >
<tr>
<td align=center valign=top >
<input type="button" value=" <<<<<<<<<<< <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>泻<EFBFBD><E6B3BB> <20><><EFBFBD><EFBFBD> >>>>>>>>>>>> " name="btn01" class="button black medium" onclick='javascript:js_user_set_ok(document.forms[0]);' style="font-size:11pt;background-color:#999999;color:#ffffff;width:500px;height:50px;cursor:hand;" >&nbsp;
<input type="button" value="â<>ݱ<EFBFBD>" name="btn01" class="button black medium" onclick='javascript:window.close();' style="font-size:11pt;background-color:#999999;color:#ffffff;height:50px;cursor:hand;" >
</td>
</tr>
</table><br>
<table border="0" style="width:700px;" align=center >
<tr>
<td align=center valign=top >
<br><br>
<font color=blue>
FCS<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>̰<EFBFBD><CCB0><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ǵ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD> Ȯ<><C8AE> <20><> <20><><EFBFBD><EFBFBD><br><br><3E><> FCS <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>̰<EFBFBD><CCB0>ÿ<EFBFBD><C3BF><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ǹ<EFBFBD>, <20><><EFBFBD><EFBFBD>(<28><>Ī)<29><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ʽ<EFBFBD><CABD>ϴ<EFBFBD>)
</font>
<br><br>
<table border="0" style="width:700px;" align=center >
<tr>
<td align=center valign=top >
<table style="width:690px;" cellpadding="5" cellspacing="0" border="0" style="border-collapse:collapse;">
<tr height="25px">
<td width="4%" align="center" >No</td>
<td width="22%" align="center" ><3E><>Ī<EFBFBD><C4AA> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD></td>
<td width="16%" align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD≯<EFBFBD></td>
<td width="16%" align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td width="16%" align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD> </td>
<td width="19%" align="center" >FCS<43>̰<EFBFBD><CCB0><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD></td>
</tr>
<%
dim a : a=1
sql=" select "&vbCrLf
sql=sql&" A.*, "&vbCrLf
sql=sql&" isnull(B.new_id,'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>') as new_id, "&vbCrLf
sql=sql&" isnull(B.tyymmdd,'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>') as tyymmdd, "&vbCrLf
sql=sql&" isnull(B.m_name,'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>') as m_name, "&vbCrLf
sql=sql&" isnull(C.ffusercode_change,'') as ffusercode_change "&vbCrLf
sql=sql&" from "&vbCrLf
sql=sql&" ( "&vbCrLf
sql=sql&" select "&vbCrLf
sql=sql&" ffusercode, "&vbCrLf
sql=sql&" case when left(ffusercode,2)='1-' "&vbCrLf
sql=sql&" then ffusercode "&vbCrLf
sql=sql&" else "&vbCrLf
sql=sql&" isnull('1-'+REPLICATE('0',4 - LEN(ffusercode))+cast(ffusercode as varchar(10)),'') "&vbCrLf
sql=sql&" end man_cd "&vbCrLf
sql=sql&" from [project2].[dbo].[punching_data] "&vbCrLf
sql=sql&" where ff_ing='1' "&vbCrLf
sql=sql&" and pc_prjcode='"&pn_cd&"' "&vbCrLf
sql=sql&" and pc_prjcode_sub1='"&pu_type&"' "&vbCrLf
sql=sql&" and ffid in ( "&vbCrLf
sql=sql&" select ttelnum from [punching].[dbo].[tb_response] "&vbCrLf
sql=sql&" where tprocode='"&pn_cd&"' "&vbCrLf
sql=sql&" and char(ttype+65)='"&pu_type&"' "&vbCrLf
sql=sql&" and ting='19' "&vbCrLf '-- <20><><EFBFBD><EFBFBD><EFBFBD>̰<EFBFBD>(19)
sql=sql&" ) "&vbCrLf
sql=sql&" group by ffusercode "&vbCrLf
sql=sql&" ) A "&vbCrLf
sql=sql&" left join "&vbCrLf
sql=sql&" ( "&vbCrLf
sql=sql&" select new_id, left(m_jumin,6) as tyymmdd, m_name from [project2].[dbo].[man] "&vbCrLf
sql=sql&" where m_activity='Ȱ<><C8B0>' "&vbCrLf
sql=sql&" and left(new_id,2)='1-' "&vbCrLf
sql=sql&" ) B "&vbCrLf
sql=sql&" on A.man_cd=B.new_id "&vbCrLf
sql=sql&" left join "&vbCrLf
sql=sql&" ( "&vbCrLf
sql=sql&" select ffusercode, ffusercode_change from [dbo].[T_RES_FIELD_USER_CHANGE] "&vbCrLf
sql=sql&" where ting='1' "&vbCrLf
sql=sql&" and pu_child_sn='"&pn_cd&"' "&vbCrLf
sql=sql&" and pu_type='"&pu_type&"' "&vbCrLf
sql=sql&" ) C "&vbCrLf
sql=sql&" on A.man_cd=C.ffusercode "&vbCrLf
sql=sql&" order by B.m_name asc "&vbCrLf
'response.write sql
rsp.Open sql, adoConn, 1
while not rsp.Eof
%>
<tr>
<td align="center"><%=a%></td>
<td align="center"><%=rsp("ffusercode")%></td>
<td align="center"><%=rsp("m_name")%></td>
<td align="center" ><%=rsp("tyymmdd")%></td>
<td align="center"><%=rsp("new_id")%></td>
<%if rsp("ffusercode_change")="" then%>
<td align="center"><input type="text" name="field_set_<%=rsp("man_cd")%>" id="field_set_<%=rsp("man_cd")%>" value="<%=rsp("man_cd")%>" size="20" maxlength="50" style="font-size:11pt;border:1px solid #FF0000;" ></td>
<%else %>
<td align="center"><input type="text" name="field_set_<%=rsp("man_cd")%>" id="field_set_<%=rsp("man_cd")%>" value="<%=rsp("ffusercode_change")%>" size="20" maxlength="50" style="font-size:11pt;border:1px solid #FF0000;" ></td>
<%end if %>
</tr>
<%
a=a+1
rsp.movenext
Wend
rsp.Close
%>
</table>
</td>
</tr>
<tr>
<td align=center valign=top >&nbsp;</td>
</tr>
<tr>
<td align=center valign=top >
<input type="button" value=" <<<<<<<<<<< <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>泻<EFBFBD><E6B3BB> <20><><EFBFBD><EFBFBD> >>>>>>>>>>>> " name="btn01" class="button black medium" onclick='javascript:js_user_set_ok(document.forms[0]);' style="font-size:11pt;background-color:#999999;color:#ffffff;width:500px;height:50px;cursor:hand;" >&nbsp;
<input type="button" value="â<>ݱ<EFBFBD>" name="btn01" class="button black medium" onclick='javascript:window.close();' style="font-size:11pt;background-color:#999999;color:#ffffff;height:50px;cursor:hand;" >
</td>
</tr>
<tr>
<td align=right valign=top><3E><></td>
</tr>
</table>
<!------------------><!------------------><!------------------>
</form>
</body>
</html>

View File

@@ -0,0 +1,70 @@
<!-- #include virtual = "lib/config.asp" -->
<%
SET rsa = server.CreateObject("ADODB.RECORDSET")
SET rsp = server.CreateObject("ADODB.RECORDSET")
dim pn_cd : pn_cd=request.form("pn_cd") '-- <20><>Ī<EFBFBD>ڵ<EFBFBD>
dim pu_type : pu_type=request.form("pu_type") '-- <20><>ĪŸ<C4AA><C5B8>
For Each s In request.form
if left(s,10)="field_set_" then
sql=" update [project2].[dbo].[T_RES_FIELD_USER_CHANGE] set "&vbCrLf
sql=sql&" ting='0' "&vbCrLf '-- <20>̻<EFBFBD><CCBB><EFBFBD>(0)
sql=sql&" where ting='1' "&vbCrLf
sql=sql&" and pu_child_sn='"&pn_cd&"' "&vbCrLf
sql=sql&" and pu_type='"&pu_type&"' "&vbCrLf
sql=sql&" and ffusercode='"&replace(s,"field_set_","")&"' "&vbCrLf
adoconn.execute sql
if request.form(s)<>"" then
sql=" INSERT INTO [project2].[dbo].[T_RES_FIELD_USER_CHANGE] "&vbCrLf
sql=sql&" (pu_child_sn,pu_type,ffusercode,ffusercode_change,insert_date,tuser,ting) "&vbCrLf
sql=sql&" VALUES "&vbCrLf
sql=sql&" ('"&pn_cd&"' "&vbCrLf
sql=sql&" ,'"&pu_type&"' "&vbCrLf
sql=sql&" ,'"&replace(s,"field_set_","")&"' "&vbCrLf
sql=sql&" ,'"&request.form(s)&"' "&vbCrLf
sql=sql&" ,getdate() "&vbCrLf
sql=sql&" ,'"&Session("User_Number")&"' "&vbCrLf
sql=sql&" ,'1') "&vbCrLf
adoconn.execute sql
end if
end if
next
%>
<meta http-equiv="Content-Type" content="application/vnd.ms-excel;charset=euc-kr">
<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">
<title><%=GNB_TITLE%></title>
<link rel="stylesheet" type="text/css" href="../css/basic.css">
<script src="/js/jquery.min.js"></script>
<script src="/js/jquery-ajax-call.js"></script>
<script src="/js/jquery.form.min.js"></script>
<script language="javascript" src="../js/common.js"></script>
<script language=javascript>
function js_init(x){
alert("<22><><EFBFBD><EFBFBD> <20>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD> ");
window.open('about:blank','_parent').parent.close();
}
</script>
</head>
<body onclick="javascript:try{if(winObj.window.focus()){}}catch(exception){}" ondblclick="javascript:try{if(winObj.window.focus()){}}catch(exception){}" onload="javascript:js_init(xform);" >
<form name='xform' method='post' >
<input type="hidden" name="pn_cd" value="<%=pn_cd%>" ><!-- <20><>Ī<EFBFBD>ڵ<EFBFBD> -->
<input type="hidden" name="pu_type" value="<%=pu_type%>" ><!-- <20><>ĪŸ<C4AA><C5B8> -->
<!------------------><!------------------><!------------------>
<!------------------><!------------------><!------------------>
</form>
</body>
</html>

View File

@@ -0,0 +1,297 @@
<!-- #include virtual = "lib/config.asp" -->
<%
SET rsa = server.CreateObject("ADODB.RECORDSET")
SET rsp = server.CreateObject("ADODB.RECORDSET")
dim pn_cd : pn_cd=request.item("pn_cd")
dim a_s, n, a_s2, n2
'-----------------------------------
'##### <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> ####################################
'------------------------------------
select case request.form("tuse")
case "Y" '-- <20><><EFBFBD><EFBFBD>
'-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
'-------------------------------------------------------------------------------------------------------------------------
sql=" INSERT INTO [project2].[dbo].[T_RES_SQ_QUE_LAB_AREA] "
sql=sql&" (pu_child_sn,pu_type,fcs_type,fcs_area,pu_que_type,pu_que,pu_que_label,tuser_name,tphone_1,tphone_2,insert_date,tuser,ting) "
sql=sql&" VALUES "
sql=sql&" ('"&pn_cd&"' "
sql=sql&" ,'','','','0' "
sql=sql&" ,'"&replace(replace(request.form("que_code"),"'",""),"""","")&"' "
sql=sql&" ,'"&replace(replace(request.form("que_label"),"'",""),"""","")&"' "
sql=sql&" ,'','','',getdate() "
sql=sql&" ,'"&Session("User_Number")&"' "
sql=sql&" ,'1') "
adoconn.execute sql
'-------------------------------------------------------------------------------------------------------------------------
if request.form("ans_info")<>"" then
a_s=""
a_s=split(request.form("ans_info"),vbCrLf)
for n=0 to ubound(a_s)
if a_s(n)<>"" and instr(a_s(n)," ")>0 then
a_s2=""
a_s2=split(a_s(n)," ")
'response.write a_s2(0)&":"&a_s2(1)&"<br>"
if ubound(a_s2)>0 then
'-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
'--------------------------------------------------------------------------------------------------------
sql=" INSERT INTO [project2].[dbo].[T_RES_SQ_ANS_LAB_AREA] "
sql=sql&" (pu_child_sn,pu_type,fcs_type,fcs_area,pu_que,pu_ans_code,pu_ans_label,insert_date,tuser,ting) "
sql=sql&" VALUES "
sql=sql&" ('"&pn_cd&"' "
sql=sql&" ,'' "
sql=sql&" ,'' "
sql=sql&" ,'' "
sql=sql&" ,'"&replace(replace(request.form("que_code"),"'",""),"""","")&"' "
sql=sql&" ,'"&a_s2(0)&"' "
sql=sql&" ,'"&a_s2(1)&"' "
sql=sql&" ,getdate() "
sql=sql&" ,'"&Session("User_Number")&"' "
sql=sql&" ,'1') "
adoconn.execute sql
'--------------------------------------------------------------------------------------------------------
end if
end if
next
end if
case "D" '-- <20><><EFBFBD><EFBFBD>
'-- <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> : ting='0'
sql=" update [project2].[dbo].[T_RES_SQ_QUE_LAB_AREA] set "
sql=sql&" ting='0' " '-- <20><><EFBFBD><EFBFBD>(0)
sql=sql&" where pu_child_sn='"&pn_cd&"' "
sql=sql&" and pu_que='"&request.form("del_que")&"' "
sql=sql&" and ting='1' " '-- <20><><EFBFBD><EFBFBD>(1)
'response.write sql&"<br><br>"
adoconn.execute sql
'-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> : ting='0'
sql=" update [project2].[dbo].[T_RES_SQ_ANS_LAB_AREA] set "
sql=sql&" ting='0' " '-- <20><><EFBFBD><EFBFBD>(0)
sql=sql&" where pu_child_sn='"&pn_cd&"' "
sql=sql&" and pu_que='"&request.form("del_que")&"' "
sql=sql&" and ting='1' " '-- <20><><EFBFBD><EFBFBD>(1)
'response.write sql&"<br><br>"
adoconn.execute sql
end select
%>
<meta http-equiv="Content-Type" content="application/vnd.ms-excel;charset=euc-kr">
<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">
<title><%=GNB_TITLE%></title>
<link rel="stylesheet" type="text/css" href="../css/basic.css">
<script src="/js/jquery.min.js"></script>
<script src="/js/jquery-ajax-call.js"></script>
<script src="/js/jquery.form.min.js"></script>
<script language="javascript" src="../js/common.js"></script>
<script language=javascript>
function f_submit(x){
if((x.que_code.value=="")||(x.que_label.value=="")){
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ּž<D6BC> <20>ش<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ҽ<EFBFBD> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD> ");
return false;
}
if(!confirm("<22><><EFBFBD><EFBFBD><EFBFBD>Ͻ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>? ")){return;}
x.tuse.value="Y";
x.target="";
x.action="punching_que_insert.asp";
x.submit();
}
function f_del(x,dque){
if(!confirm("<22><><EFBFBD><EFBFBD><EFBFBD>Ͻ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>? ")){return;}
x.tuse.value="D";
x.del_que.value=dque;
x.target="";
x.action="punching_que_insert.asp";
x.submit();
}
</script>
</head>
<body>
<form name='fname' method='post' >
<input type="hidden" name="pn_cd" value="<%=pn_cd%>" ><!-- <20><>Ī/FCS<43>ڵ<EFBFBD> -->
<input type="hidden" name="tuse" value="" ><!-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> : Y / <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: D -->
<input type="hidden" name="del_que" value="" >
<br>
<!-------------->
<table style="width:720px;" cellpadding="0" cellspacing="0" border="0" align=center >
<%
sql=" select A.*,B.* from "
sql=sql&" (select intranet_project,p_child_sn as pn_code, p_subject from [project2].[dbo].[T_PROJECT_FCS] where p_child_sn='"&pn_cd&"') A "
sql=sql&" left join "
sql=sql&" (select p_child_sn, p_subject as intra_subject from [project2].[dbo].[T_PROJECT_METHOD]) B "
sql=sql&" on A.intranet_project=B.p_child_sn "
rsa.Open sql, adoConn, 1
if not rsa.eof then
%>
<tr height="24" bgcolor="#dbe9f2" >
<td align="center" ><3E><>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></td>
<td align="left" >&nbsp;[<font color=#000000><b><%=rsa("intranet_project")%></b></font>]&nbsp;<%=rsa("intra_subject")%></td>
</tr>
<tr height="24" bgcolor="#dbe9f2" >
<td align="center" >FCS <20><><EFBFBD><EFBFBD></td>
<td align="left" >&nbsp;[<font color=blue><b><%=rsa("pn_code")%></b></font>]&nbsp;<%=rsa("p_subject")%></font></b>
</td>
</tr>
<tr>
<td align="center" colspan="2" height=3 bgcolor=#C0C0C0></td>
</tr>
<%end if %>
<%rsa.close %>
</table>
<!-------------->
<br>
<center><font color=blue><u><3E><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>.</u> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <b><3E><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD>[<5B><>]<5D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b> <20><> <20>־<EFBFBD><D6BE>ֽñ<D6BD> <20>ٶ<EFBFBD><D9B6>ϴ<EFBFBD></font><br><br></center>
<table border="0" style="width:720px;" align=center >
<tr>
<td align=center valign=top>
<!--------------->
<table border="0" style="width:700px;" align=center >
<tr>
<td align=center valign=top >
<table style="width:690px;" cellpadding="5" cellspacing="0" border="0" style="border-collapse:collapse;">
<tr height="25px">
<td width="12%" align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td width="85%" align="left" >
<09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> [<input type="text" name="que_code" value="" size="20" maxlength="50" style="font-size:11pt;" >]&nbsp;&nbsp;
<09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> [<input type="text" name="que_label" value="" size="20" maxlength="50" style="font-size:11pt;" >]
</td>
</tr>
<tr>
<td align="center" valign="top" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td align="left"><textarea name="ans_info" style="font-size:11pt;" cols="70" rows="13" ></textarea></td>
</tr>
<table>
</td>
</tr>
<tr>
<td colspan="2" align=center valign=top ><hr style="width:680px;" ></td>
</tr>
</table>
<!--------------->
</td>
</tr>
<tr>
<td align=center valign=top >
<input type="button" value="<<<<<<<<<<< <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> >>>>>>>>>>>>" name="btn_ss" class="button white medium" onclick="javascript:f_submit(fname);" style="font-size:11pt;width500px;" >
</td>
</tr>
</table>
<!------ list <20><><EFBFBD><EFBFBD> -------------->
<br><br><br>
<table border="0" style="width:700px;" align=center >
<%
tsql=" select pu_que, pu_que_label from [project2].[dbo].[T_RES_SQ_QUE_LAB_AREA] "
tsql=tsql&" where pu_child_sn='"&pn_cd&"' "
tsql=tsql&" and ting='1' " '-- <20><><EFBFBD><EFBFBD>(1)
tsql=tsql&" and pu_que_type='0' " '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>(0)
tsql=tsql&" order by id asc "
rsa.Open tsql, adoConn, 1
while not rsa.Eof
%>
<tr>
<td align=center valign=top >
<table style="width:690px;" cellpadding="5" cellspacing="0" border="0" style="border-collapse:collapse;">
<tr height="25px">
<td width="12%" align="center" bgcolor=#99CCFF >
<input type="button" value="<22><><EFBFBD><EFBFBD>" name="btn_ss" class="button white medium" onclick="javascript:f_del(fname,'<%=rsa("pu_que")%>');" style="font-size:9pt;" >
</td>
<td width="85%" align="left" bgcolor=#99CCFF >
<09><><EFBFBD><EFBFBD> <20>ڵ<EFBFBD> [<b><font color="#0000FF"><%=rsa("pu_que")%></font></b>]&nbsp;&nbsp;/&nbsp;&nbsp;<3B><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> [<b><font color="#0000FF"><%=rsa("pu_que_label")%></font></b>]
</td>
</tr>
<tr>
<td align="center" valign="top" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td align="left">
<%
tsql2=" select pu_ans_code, pu_ans_label from [project2].[dbo].[T_RES_SQ_ANS_LAB_AREA] "
tsql2=tsql2&" where pu_child_sn='"&pn_cd&"' "
tsql2=tsql2&" and pu_que='"&rsa("pu_que")&"' "
tsql2=tsql2&" and ting='1' "
tsql2=tsql2&" order by id asc "
rsp.Open tsql2, adoConn, 1
while not rsp.Eof
%>
[<b><font color="#0000FF"><%=rsp("pu_ans_code")%></font></b>]&nbsp;<%=rsp("pu_ans_label")%><br>
<%
rsp.movenext
Wend
rsp.Close
%>
</td>
</tr>
<table>
</td>
</tr>
<tr>
<td colspan="2" align=center style="height:7px;" ></td>
</tr>
<%
rsa.movenext
Wend
rsa.Close
%>
</table>
<!------ list <20><><EFBFBD><EFBFBD> -------------->
<br><br>
</form>
</body>
</html>

449
project/punching_user.asp Normal file
View File

@@ -0,0 +1,449 @@
<!-- #include virtual = "include/header.asp" -->
<!-- #include virtual = "include/left.asp" -->
<%
dim xmsg : xmsg=""
dim Save_type : Save_type=request.form("Save_type")
dim Umode : Umode=request.form("Umode")
'-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ó
dim xid01 : xid01=r_fn(request.form("xid01"),"1")
dim xpw01 : xpw01=r_fn(request.form("xpw01"),"1")
dim kid01 : kid01=request.form("xtype01")
dim knid01 : knid01=request.form("ztype01")
dim kjumin01 : kjumin01=request.form("jcode01")
dim kname01 : kname01=request.form("jname01")
'-- <20>ܺ<EFBFBD><DCBA><EFBFBD>ó
dim xid02 : xid02=r_fn(request.form("xid02"),"1")
dim xpw02 : xpw02=r_fn(request.form("xpw02"),"1")
dim kid02 : kid02=request.form("xtype02")
dim knid02 : knid02=request.form("ztype02")
dim kjumin02 : kjumin02=request.form("jcode02")
dim kname02 : kname02=request.form("jname02")
select case Umode
case "S" '-- <20><><EFBFBD><EFBFBD>
'########################################
select case Save_type
case "1" '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ó
xmsg=pu_user_ck(xid01)
if xmsg="" then xmsg=man_id_ckd(kid01) '-- mam <20><><EFBFBD>̺<EFBFBD> id <20>ڵ<EFBFBD> üũ
if xmsg="" then '-- <20><><EFBFBD>̵<EFBFBD> <20>ߺ<EFBFBD><DFBA><EFBFBD><EFBFBD><EFBFBD>
'-- <20><>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD> <20><>Ī<EFBFBD><C4AA><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> --------------------------------------------------------------------------
query = " INSERT INTO [project2].[dbo].[punching_user] ([pugubn],[puid],[pupw],[man_id],[man_new_id],[man_name],[man_jumin],[insert_date],[ting],[user_code]) "
query = query&" VALUES "
query = query&"('18' " '-- <20><><EFBFBD><EFBFBD>(18)
query = query&",'"&xid01&"' "
query = query&",'"&xpw01&"' "
query = query&",'"&kid01&"' "
query = query&",'"&knid01&"' "
query = query&",'"&kname01&"' "
query = query&",'"&kjumin01&"' "
query = query&",getdate() "
query = query&",'1' "
query = query&",'"&Session("User_Number")&"') "
adoconn.execute query
'-----------------------------------------------------------------------------------------------------
'-- <20><>Ī<EFBFBD><C4AA><EFBFBD>α׷<CEB1><D7B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> ----------------------------------------------------------------------------
query = " INSERT INTO [punching].[dbo].[tb_mgrusers] (tuserid,tuserpwd,tusername,ttel1,ttel2,tuseroption,tuserstate,toutside,viewmode,tinsertdate) "
query = query&" VALUES "
query = query&"('"&xid01&"' "
query = query&",'"&xpw01&"' "
query = query&",'"&kname01&"' "
query = query&",'','' "
query = query&",'18' " '-- <20><><EFBFBD><EFBFBD>(18)
query = query&",'0','','0' "
query = query&",getdate()) "
adoconn.execute query
'-----------------------------------------------------------------------------------------------------
xmsg="<22><><EFBFBD>ϵǾ<CFB5><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD> "
xid01=""
xpw01=""
kid01=""
knid01=""
kjumin01=""
kname01=""
end if
case "2" '-- <20>ܺ<EFBFBD><DCBA><EFBFBD>ó
xmsg=pu_user_ck(xid02)
if (xmsg="" And Len(kid02)>0) then xmsg=man_id_ckd(kid02) '-- <20><><EFBFBD>ǵ<EFBFBD><C7B5><EFBFBD> <20><><EFBFBD>̵<EFBFBD><CCB5><EFBFBD> <20><><EFBFBD><EFBFBD> - man <20><><EFBFBD>̺<EFBFBD><CCBA><EFBFBD> üũ<C3BC><C5A9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
if xmsg="" then '-- <20><><EFBFBD>̵<EFBFBD> <20>ߺ<EFBFBD><DFBA><EFBFBD><EFBFBD><EFBFBD>
'-- <20><>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD> <20><>Ī<EFBFBD><C4AA><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> --------------------------------------------------------------------------
query = " INSERT INTO [project2].[dbo].[punching_user] ([pugubn],[puid],[pupw],[man_id],[man_new_id],[man_name],[man_jumin],[insert_date],[ting],[user_code]) "
query = query&" VALUES "
query = query&"('17' " '-- <20>ܺ<EFBFBD>(17)
query = query&",'"&xid02&"' "
query = query&",'"&xpw02&"' "
query = query&",'"&kid02&"' "
query = query&",'"&knid02&"' "
query = query&",'"&kname02&"' "
query = query&",'"&kjumin02&"' "
query = query&",getdate() "
query = query&",'1' "
query = query&",'"&Session("User_Number")&"') "
adoconn.execute query
'-----------------------------------------------------------------------------------------------------
'-- <20><>Ī<EFBFBD><C4AA><EFBFBD>α׷<CEB1><D7B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> ----------------------------------------------------------------------------
query = " INSERT INTO [punching].[dbo].[tb_mgrusers] (tuserid,tuserpwd,tusername,ttel1,ttel2,tuseroption,tuserstate,toutside,viewmode,tinsertdate) "
query = query&" VALUES "
query = query&"('"&xid02&"' "
query = query&",'"&xpw02&"' "
If kname02="" Then
query = query&",'"&xid02&"' "
Else
query = query&",'"&kname02&"' "
End If
query = query&",'','' "
query = query&",'17' " '-- <20>ܺ<EFBFBD>(17)
query = query&",'0','','0' "
query = query&",getdate()) "
adoconn.execute query
'-----------------------------------------------------------------------------------------------------
xmsg="<22><><EFBFBD>ϵǾ<CFB5><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD> "
xid02=""
xpw02=""
kid02=""
knid02=""
kjumin02=""
kname02=""
end if
end select
'########################################
case "D" '-- <20><><EFBFBD><EFBFBD>
'########################################
query = " update [project2].[dbo].[punching_user] set "
query = query&" ting='0' "
query = query&",insert_date=getdate() "
query = query&",user_code='"&Session("User_Number")&"' "
query = query&" where puid='"&request.form("DDid")&"' "
query = query&" and ting='1' "
adoconn.execute query
query = " update [punching].[dbo].[tb_mgrusers] set "
query = query&" tuserpwd='<27><><EFBFBD><EFBFBD>ó<EFBFBD><C3B3><EFBFBD>Ѿ<EFBFBD><D1BE>̵<EFBFBD><CCB5>Դϴ<D4B4>-<2D>α<EFBFBD><CEB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>#^^%@' "
query = query&" where tuserid='"&request.form("DDid")&"' "
adoconn.execute query
xmsg="<22><><EFBFBD>ϻ<EFBFBD><CFBB><EFBFBD> <20>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>"
'-- <20>ʱ<EFBFBD>ȭ
xid01=""
xpw01=""
kid01=""
knid01=""
kjumin01=""
kname01=""
xid02=""
xpw02=""
kid02=""
knid02=""
kjumin02=""
kname02=""
'########################################
end select
'-- <20><>Ī <20><><EFBFBD>α׷<CEB1> <20><><EFBFBD>̵<EFBFBD> üũ
function pu_user_ck(xid)
dim tval : tval=""
query = " select id from dbo.punching_user "
query = query&" where puid='"&xid&"' "
adoRs.Open query, adoconn, 1' adOpenForwardOnly
if not adoRs.eof then tval ="[<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>] <20>Ǵ<EFBFBD> [<5B><><EFBFBD><EFBFBD>]<5D><><EFBFBD>̵<EFBFBD> <20><> <20>ߺ<EFBFBD> <20>˴ϴ<CBB4>. <20><><EFBFBD>̵<EFBFBD><CCB5><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD> "
adoRs.close
pu_user_ck=tval
end function
'-- man <20><><EFBFBD>̺<EFBFBD><CCBA><EFBFBD> id üũ
function man_id_ckd(xid)
dim tval : tval=""
query = " select id from dbo.punching_user "
query = query&" where man_id='"&xid&"' "
query = query&" and ting='1' " '-- <20><><EFBFBD><EFBFBD>(1)
adoRs.Open query, adoconn, 1' adOpenForwardOnly
if not adoRs.eof then tval =" <20><><EFBFBD>ϵ<EFBFBD> <20><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Դϴ<D4B4>. Ȯ<><C8AE><EFBFBD>Ͻñ<CFBD> <20>ٶ<EFBFBD><D9B6>ϴ<EFBFBD> "
adoRs.close
man_id_ckd=tval
end function
'-- replace
function r_fn(xtxt,xgubn)
dim tval
select case xgubn
case "1"
tval=replace(xtxt,"""","")
tval=replace(tval,"'","")
end select
r_fn=tval
end function
%>
<!-- 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 m-0">
<div class="col-12" onclick="javascript:try{if(winObj.window.focus()){}}catch(exception){}" ondblclick="javascript:try{if(winObj.window.focus()){}}catch(exception){}">
<form name="xform" method="post">
<input type="hidden" name="Save_type" value="" />
<input type="hidden" name="Umode" value="" />
<input type="hidden" name="DDid" value="" />
<table class='table'>
<tr><td align=right colspan="2"><input type="button" name="xbtn" value="<22><><EFBFBD>ΰ<EFBFBD>ħ" style="cursor:pointer;" onclick="js_reload(xform);" /></td ></tr>
<tr>
<td align=center><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ó (<28><>ü <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>)</b></td>
<td align=center><b><3E>ܺ<EFBFBD><DCBA><EFBFBD>ó (<28>Ҵ<EFBFBD><D2B4><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>)</b></td>
</tr>
<tr>
<td align="center" valign="top" class='w-50'>
<table class="table table-sm table-sm2 table-bordered table-head tr-colors">
<tr>
<td width="30px" align="center" style='word-break:break-all' >No</td>
<td width="220px" align="center" style='word-break:break-all' ><3E><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ڵ<EFBFBD>(<28><><EFBFBD><EFBFBD>id) [<5B≯<EFBFBD>:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>]</td>
<td width="200px" align="center" style='word-break:break-all' ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ó - <20><>ġ <20><><EFBFBD>̵<EFBFBD>(<28><><EFBFBD><EFBFBD>)</td>
<td width="80px" align="center" style='word-break:break-all' ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td width="80px" align="center" style='word-break:break-all' ><3E><><EFBFBD><EFBFBD></td>
</tr>
<tr bgcolor=#C5E9FE >
<td align="center" ><3E><><EFBFBD><EFBFBD></td>
<td align="center" style="cursor:pointer;" onclick="javascript:js_man_ck(xform,'1');"><span id="xspan01"><b>Ŭ<><C5AC><EFBFBD>Ͽ<EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>!</b></span></td>
<td align="center" >
<input type="hidden" name="xtype01" value="" />
<input type="hidden" name="ztype01" value="" />
<input type="hidden" name="jcode01" value="" />
<input type="hidden" name="jname01" value="" />
<09><><EFBFBD>̵<EFBFBD><input type="text" style="width:90px;" name="xid01" value="" onchange="javascript:checkReg();" onkeyup="javascript:checkReg();" >&nbsp;
(<28><><EFBFBD><EFBFBD><input type="text" style="width:90px;" name="xpw01" value="" onchange="javascript:checkReg();" onkeyup="javascript:checkReg();" >)
</td>
<td align="center">-</td>
<td align="center"><input type="button" name="xbtn" value="<22><><EFBFBD><EFBFBD><EFBFBD>ϱ<EFBFBD>" style="cursor:pointer;" onclick="javascript:js_xid_save(xform,'1');" /></td>
</tr>
<% dim a : a=1
query = " select * from project2.dbo.punching_user "
query = query & " where ting='1' " '-- <20><><EFBFBD><EFBFBD>(1)
query = query & " and pugubn='18' " '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ó(18)
query = query & " order by id desc "
adoRs.Open query, adoconn, 1' adOpenForwardOnly
do while not adoRs.eof
%>
<tr>
<td align="center" ><%=a%></td>
<td align="center" ><%=adoRs("puid")%>&nbsp;( <%=adoRs("pupw")%> )</td>
<td align="center" ><%=adoRs("man_new_id")%>&nbsp;( <%=adoRs("man_id")%> ) </td>
<td align="center" ><%=left(adoRs("insert_date"),10)%></td>
<td align="center" ><input type="button" name="xbtn" value="<22><><EFBFBD>ϻ<EFBFBD><CFBB><EFBFBD>" style="cursor:pointer;" onclick="javascript:js_xid_del(xform,'<%=adoRs("puid")%>','1');" /></td>
</tr>
<%
a=a+1
adoRs.movenext
loop
adoRs.close
%>
</table>
</td>
<td align="center" valign="top" class='w-50'>
<table class="table table-sm table-sm2 table-bordered table-head tr-colors">
<tr>
<td width="30px" align="center" style='word-break:break-all' >No</td>
<td width="220px" align="center" style='word-break:break-all' ><3E><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ڵ<EFBFBD>(<28><><EFBFBD><EFBFBD>id) [<5B≯<EFBFBD>:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>]</td>
<td width="200px" align="center" style='word-break:break-all' ><3E>ܺ<EFBFBD><DCBA><EFBFBD>ó - <20><>ġ <20><><EFBFBD>̵<EFBFBD>(<28><><EFBFBD><EFBFBD>)</td>
<td width="80px" align="center" style='word-break:break-all' ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td width="80px" align="center" style='word-break:break-all' ><3E><><EFBFBD><EFBFBD></td>
</tr>
<tr bgcolor=#FFBFFF >
<td align="center" ><3E><><EFBFBD><EFBFBD></td>
<td align="center" style="cursor:pointer;" onclick="javascript:js_man_ck(xform,'2');" ><span id="xspan02" ><b>Ŭ<><C5AC><EFBFBD>Ͽ<EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>! (<28>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD>Ͼƴ<CFBE>)</b></span></td>
<input type="hidden" name="xtype02" value="" />
<input type="hidden" name="ztype02" value="" />
<input type="hidden" name="jcode02" value="" />
<input type="hidden" name="jname02" value="" />
<td align="center" ><3E><><EFBFBD>̵<EFBFBD><input type="text" style="width:90px;" name="xid02" value="" onchange="javascript:checkReg();" onkeyup="javascript:checkReg();" >&nbsp;
(<28><><EFBFBD><EFBFBD><input type="text" style="width:90px;" name="xpw02" value="" onchange="javascript:checkReg();" onkeyup="javascript:checkReg();" >)</td>
<td align="center" >-</td>
<td align="center" ><input type="button" name="xbtn" value="<22><><EFBFBD><EFBFBD><EFBFBD>ϱ<EFBFBD>" style="cursor:pointer;" onclick="javascript:js_xid_save(xform,'2');" /></td>
</tr>
<% a=1
query = " select * from project2.dbo.punching_user "
query = query & " where ting='1' " '-- <20><><EFBFBD><EFBFBD>(1)
query = query & " and pugubn='17' " '-- <20>ܺ<EFBFBD><DCBA><EFBFBD>ó(17)
query = query & " order by id desc "
adoRs.Open query, adoconn, 1' adOpenForwardOnly
do while not adoRs.eof
%>
<tr>
<td align="center" ><%=a%></td>
<td align="center" ><%=adoRs("puid")%>&nbsp;( <%=adoRs("pupw")%> )</td>
<%if adoRs("man_id")="" then%>
<td align="center" ><3E><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>̵<EFBFBD><CCB5><EFBFBD> <20><>ó <20>Դϴ<D4B4></td>
<%else %>
<td align="center" ><%=adoRs("man_new_id")%>&nbsp;( <%=adoRs("man_id")%> ) </td>
<%end if %>
<td align="center" ><%=left(adoRs("insert_date"),10)%></td>
<td align="center" ><input type="button" name="xbtn" value="<22><><EFBFBD>ϻ<EFBFBD><CFBB><EFBFBD>" style="cursor:pointer;" onclick="javascript:js_xid_del(xform,'<%=adoRs("puid")%>','2');" /></td>
</tr>
<%
a=a+1
adoRs.movenext
loop
adoRs.close
%>
</table>
</td>
</tr>
</table>
</form>
</div>
</div>
</div>
</div>
</div>
<!-- /.content -->
<!-- REQUIRED SCRIPTS -->
<script>
$(function(){
cutmenu();
});
// <20><><EFBFBD><EFBFBD>ó<EFBFBD><C3B3>
function js_xid_del(x,ppid,mo){
if(!confirm("<22><><EFBFBD><EFBFBD><EFBFBD>Ͻ<EFBFBD> <20><><EFBFBD>̵<EFBFBD>["+ppid+"] <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>? <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD> <20><><EFBFBD>̵<EFBFBD><CCB5><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ұ<EFBFBD><D2B0><EFBFBD> <20>մϴ<D5B4> ")){return;}
x.Save_type.value="";
x.DDid.value=ppid;
x.Umode.value="D";
x.target="";
x.action="punching_user.asp";
x.submit();
}
// <20><>ó<EFBFBD><C3B3><EFBFBD><EFBFBD>
function js_xid_save(x,mo){
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ó
if(mo=="1"){
if((x.xid01.value=="")||(x.xpw01.value=="")||(x.xtype01.value=="")||(x.ztype01.value=="")||(x.jcode01.value=="")){
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ó - [<5B><><EFBFBD>̵<EFBFBD>]<5D><> [<5B><><EFBFBD><EFBFBD>]<5D><> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽð<D6BD>, [<5B><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ڵ<EFBFBD>]<5D><> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD> ");
return;
}
}
// <20>ܺ<EFBFBD><DCBA><EFBFBD>ó
if(mo=="2"){
if((x.xid02.value=="")||(x.xpw02.value=="")){
alert("<22>ܺ<EFBFBD><DCBA><EFBFBD>ó - [<5B><><EFBFBD>̵<EFBFBD>]<5D><> [<5B><><EFBFBD><EFBFBD>]<5D><> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD> ");
return;
}
if((x.xtype02.value=="")||(x.ztype02.value=="")||(x.jcode02.value=="")){
if(!confirm("[<5B><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>] <20><><EFBFBD><EFBFBD> <20><><EFBFBD>ϵǾ<CFB5> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ܺ<EFBFBD><DCBA><EFBFBD>ó <20><><EFBFBD>̵<EFBFBD><CCB5><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ°<CFB4> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>????\n\n<><6E><EFBFBD><EFBFBD><EFBFBD>ø<EFBFBD> [Ȯ<><C8AE>]<5D><> Ŭ<><C5AC><EFBFBD>Ͽ<EFBFBD> <20>ֽÿ<D6BD> ")){return;}
}
}
x.Save_type.value=mo;
x.DDid.value="";
x.Umode.value="S";
x.target="";
x.action="punching_user.asp";
x.submit();
}
// <20><>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> ã<><C3A3>
function js_man_ck(x,mo){
var url = "punching_user_man_ck.asp?ptype="+mo;
var pwidth=600;
var pheight=600;
var tleft=(screen.width-pwidth)/2;
var ttop=(screen.height-pheight)/2;
winObj=window.open(url, "", "left="+tleft+", top="+ttop+", menubar=no, location=no, status=no, toolbar=no, width="+pwidth+", height="+pheight+", scrollbars=yes ,resizable=no");
}
function js_set_user(xid,xnid,xname,xjumin,mo,yngubn){
var x= document.xform
if(mo=="1"){ // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ó
if(yngubn=="1"){ // <20><><EFBFBD>̵<EFBFBD>/<2F><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
x.xid01.value=xname;
x.xpw01.value=xjumin.substring(0.6);
}else{
x.xid01.value="";
x.xpw01.value="";
}
x.xtype01.value=xid;
x.ztype01.value=xnid;
x.jcode01.value=xjumin;
x.jname01.value=xname;
document.getElementById('xspan01').innerHTML=xnid+" ("+xid+") ["+xname+" : "+xjumin.substring(0.6)+"]";
}
if(mo=="2"){ // <20>ܺ<EFBFBD><DCBA><EFBFBD>ó
if(yngubn=="1"){ // <20><><EFBFBD>̵<EFBFBD>/<2F><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
x.xid02.value=xname;
x.xpw02.value=xjumin.substring(0.6);
}else{
x.xid02.value="";
x.xpw02.value="";
}
x.xtype02.value=xid;
x.ztype02.value=xnid;
x.jcode02.value=xjumin;
x.jname02.value=xname;
document.getElementById('xspan02').innerHTML=xnid+" ("+xid+") ["+xname+" : "+xjumin.substring(0.6)+"]";
}
}
// <20><><EFBFBD>ΰ<EFBFBD>ħ
function js_reload(x){
x.target="";
x.action="punching_user.asp";
x.submit();
}
var rgx1 = /\D/g; // /[^0-9]/g <20><> <20><><EFBFBD><EFBFBD> ǥ<><C7A5>
var rgx2 = /(\d+)(\d{3})/;
function getReg(obj){
var num01;
var num02;
num01 = obj.value;
num02 = num01.replace(rgx2,"");
num01 = num02;
obj.value = num01;
}
function checkReg(){
var objEv = event.srcElement;
var num ="{}[]()<>?_|~`!@#$%^&*-+\"'\\/ "; //<2F>Է<EFBFBD><D4B7><EFBFBD> <20><><EFBFBD><EFBFBD> Ư<><C6AF><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>.
event.returnValue = true;
for (var i=0;i<objEv.value.length;i++){
if(-1 != num.indexOf(objEv.value.charAt(i))) event.returnValue = false;
}
if (!event.returnValue){
alert("Ư<><C6AF><EFBFBD><EFBFBD><EFBFBD>ڴ<EFBFBD> <20>Է<EFBFBD><D4B7>Ͻ<EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
objEv.value="";
}
}
<%if xmsg<>"" then %>
alert("<%=xmsg%>");
<%end if %>
</script>
</div>
<!-- /.content-wrapper -->
<!-- #include virtual = "include/footer.asp" -->

Some files were not shown because too many files have changed in this diff Show More