최초커밋
This commit is contained in:
61
other/capi_device_log.asp
Normal file
61
other/capi_device_log.asp
Normal file
@@ -0,0 +1,61 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
device_id = request("device_id")
|
||||
|
||||
Response.CharSet = "EUC-KR" '<27>ѱ<EFBFBD>
|
||||
Response.AddHeader "Pragma","no-cache"
|
||||
Response.AddHeader "cache-control", "no-staff"
|
||||
Response.Expires = -1
|
||||
|
||||
query = ""
|
||||
query = query & " SELECT ROW_NUMBER() OVER(ORDER BY D.ID) AS NO, D.ID, DU.ID as UID, D.T_DEVICE_MODEL, D.T_NO, "
|
||||
query = query & " ISNULL(DU.P_CHILD_SN, '') AS P_CHILD_SN, "
|
||||
query = query & " ISNULL(VPM.P_SUBJECT, '') AS P_SUBJECT, "
|
||||
query = query & " ISNULL(DU.MAN_ID, '') AS MAN_ID,"
|
||||
query = query & " ISNULL(M.M_NAME, '') AS M_NAME,"
|
||||
query = query & " ISNULL(DU.USE_ST_DT, '') AS USE_ST_DT,"
|
||||
query = query & " ISNULL(DU.USE_ED_DT, '') AS USE_ED_DT,"
|
||||
query = query & " ISNULL(DU.D_NO, '') AS D_NO,"
|
||||
query = query & " ISNULL(DU.INSERT_USER, '') AS INSERT_USER,"
|
||||
query = query & " ISNULL(P.p_name, '') AS INSERT_USER_NAME,"
|
||||
query = query & " INSERT_DT, MODIFY_DT "
|
||||
query = query & " FROM project2.dbo.T_DEVICE D"
|
||||
query = query & " LEFT JOIN project2.dbo.T_DEVICE_USE DU ON D.ID = DU.DEVICE_ID"
|
||||
query = query & " LEFT JOIN project2.dbo.V_PROJECT_METHOD VPM ON DU.P_CHILD_SN = VPM.p_child_sn"
|
||||
query = query & " LEFT JOIN project2.dbo.man M ON DU.MAN_ID = M.new_id"
|
||||
query = query & " LEFT JOIN project2.dbo.V_Person P ON DU.INSERT_USER = P.p_no "
|
||||
query = query & " WHERE D.ID = " & device_id & " AND DU.USE_YN = 'N' "
|
||||
query = query & " ORDER BY MODIFY_DT DESC "
|
||||
|
||||
response.write "<table class='table table-sm table-sm2 table-bordered table-head tr-colors'>"
|
||||
response.write "<tr>"
|
||||
response.write " <td class='tit7' style='text-align:center; width:40%; font-weight:bold;'><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ</td>"
|
||||
response.write " <td class='tit7' style='text-align:center; width:14%; font-weight:bold;'><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>"
|
||||
response.write " <td class='tit7' style='text-align:center; width:18%; font-weight:bold;'><3E>뿩<EFBFBD>Ⱓ</td>"
|
||||
response.write " <td class='tit7' style='text-align:center; width:8%; font-weight:bold;'><3E>뿩<EFBFBD><EBBFA9>û<EFBFBD><C3BB></td>"
|
||||
response.write " <td class='tit7' style='text-align:center; width:15%; font-weight:bold;'><3E><><EFBFBD><EFBFBD><EFBFBD>Ͻ<EFBFBD></td>"
|
||||
response.write " <td class='tit7' style='text-align:center; width:5%; font-weight:bold;'> </td>"
|
||||
response.write "</tr>"
|
||||
Rs.Open query, adoConn, 1
|
||||
do while not Rs.eof
|
||||
response.write "<tr>"
|
||||
response.write " <td class='tit7' align='left'>[" & Rs("P_CHILD_SN") & "] " & Rs("P_SUBJECT") & "</td>"
|
||||
response.write " <td class='tit7' align='center'>"
|
||||
if Rs("MAN_ID") <> "" Then
|
||||
response.write "[" & Rs("MAN_ID") & "] " & Rs("M_NAME")
|
||||
End if
|
||||
response.write "</td>"
|
||||
response.write " <td class='tit7' align='center'>" & Rs("USE_ST_DT") & " ~ " & Rs("USE_ED_DT") & "</td>"
|
||||
response.write " <td class='tit7' align='center'>" & Rs("INSERT_USER_NAME") & "</td>"
|
||||
response.write " <td class='tit7' align='center'>" & Rs("MODIFY_DT") & "</td>"
|
||||
response.write " <td class='tit7' align='center'>"
|
||||
if Rs("INSERT_USER") = Cstr(Session("User_Number")) Then
|
||||
response.write "<input type='button' value='<27><><EFBFBD><EFBFBD>' class='del_log_btn' data-use_id='" & Rs("UID") & "' />"
|
||||
End if
|
||||
response.write "</td>"
|
||||
response.write "</tr>"
|
||||
Rs.movenext
|
||||
loop
|
||||
Rs.close
|
||||
response.write "</table>"
|
||||
%>
|
||||
26
other/capi_device_log_del.asp
Normal file
26
other/capi_device_log_del.asp
Normal file
@@ -0,0 +1,26 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
|
||||
use_id = request("use_id")
|
||||
|
||||
Response.CharSet = "EUC-KR" '<27>ѱ<EFBFBD>
|
||||
Response.AddHeader "Pragma","no-cache"
|
||||
Response.AddHeader "cache-control", "no-staff"
|
||||
Response.Expires = -1
|
||||
|
||||
query = ""
|
||||
query = query & " UPDATE project2.dbo.T_DEVICE_USE "
|
||||
query = query & " SET USE_YN = '' "
|
||||
query = query & " WHERE ID = " & use_id & " AND USE_YN = 'N' "
|
||||
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query, i
|
||||
dbin.Close
|
||||
|
||||
if i > 0 Then
|
||||
response.Write "1"
|
||||
else
|
||||
response.Write "0"
|
||||
end if
|
||||
%>
|
||||
28
other/capi_device_man_reg.asp
Normal file
28
other/capi_device_man_reg.asp
Normal file
@@ -0,0 +1,28 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
|
||||
man_id = request("man_id")
|
||||
device_id = request("device_id")
|
||||
|
||||
Response.CharSet = "EUC-KR" '<27>ѱ<EFBFBD>
|
||||
Response.AddHeader "Pragma","no-cache"
|
||||
Response.AddHeader "cache-control", "no-staff"
|
||||
Response.Expires = -1
|
||||
|
||||
query = ""
|
||||
query = query & " UPDATE project2.dbo.T_DEVICE_USE "
|
||||
query = query & " SET MAN_ID = '" & man_id & "' "
|
||||
query = query & " WHERE DEVICE_ID = " & device_id & " AND USE_YN = 'Y' "
|
||||
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query, i
|
||||
dbin.Close
|
||||
|
||||
if i > 0 Then
|
||||
response.Write "1"
|
||||
else
|
||||
response.Write "0"
|
||||
end if
|
||||
%>
|
||||
61
other/capi_device_mod.asp
Normal file
61
other/capi_device_mod.asp
Normal file
@@ -0,0 +1,61 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
|
||||
p_child_sn = request("p_child_sn")
|
||||
use_ed_dt = request("use_ed_dt")
|
||||
man_id = request("man_id")
|
||||
device_id = request("device_id")
|
||||
|
||||
if man_id = "" then
|
||||
man_value = "MAN_ID"
|
||||
else
|
||||
man_value = "'" & man_id & "'"
|
||||
end if
|
||||
|
||||
Response.CharSet = "EUC-KR" '<27>ѱ<EFBFBD>
|
||||
Response.AddHeader "Pragma","no-cache"
|
||||
Response.AddHeader "cache-control", "no-staff"
|
||||
Response.Expires = -1
|
||||
|
||||
query = ""
|
||||
query = query & " SELECT ID "
|
||||
query = query & " FROM project2.dbo.T_DEVICE_USE "
|
||||
query = query & " WHERE DEVICE_ID = " & device_id & " AND USE_YN = 'Y' "
|
||||
|
||||
Rs.Open Query, adoConn, 1
|
||||
if Rs.recordCount > 0 then
|
||||
row_id = Rs("ID")
|
||||
else
|
||||
row_id = "0"
|
||||
end if
|
||||
Rs.close
|
||||
|
||||
if cint(row_id) > 0 then
|
||||
query = ""
|
||||
query = query & " UPDATE project2.dbo.T_DEVICE_USE "
|
||||
query = query & " SET USE_YN = 'N', MODIFY_DT = getdate() "
|
||||
query = query & " WHERE ID = " & row_id & " "
|
||||
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query, i
|
||||
dbin.Close
|
||||
|
||||
if i > 0 Then
|
||||
query = ""
|
||||
query = query & " INSERT INTO project2.dbo.T_DEVICE_USE "
|
||||
query = query & " (DEVICE_ID, P_CHILD_SN, USE_ST_DT, USE_ED_DT, MAN_ID, USE_YN, D_NO, MODIFY_DT, INSERT_DT, INSERT_USER) "
|
||||
query = query & " SELECT " & device_id & ", '" & p_child_sn & "', USE_ST_DT, '" & use_ed_dt & "', " & man_value & ", 'Y', D_NO, getdate(), getdate(), INSERT_USER "
|
||||
query = query & " FROM project2.dbo.T_DEVICE_USE "
|
||||
query = query & " WHERE ID = " & row_id & " "
|
||||
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query
|
||||
dbin.Close
|
||||
|
||||
response.Write "1"
|
||||
else
|
||||
response.Write "0"
|
||||
end if
|
||||
end if
|
||||
%>
|
||||
69
other/capi_device_reg.asp
Normal file
69
other/capi_device_reg.asp
Normal file
@@ -0,0 +1,69 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
|
||||
p_child_sn = URLDecode(request("p_child_sn"))
|
||||
use_st_dt = request("use_st_dt")
|
||||
use_ed_dt = request("use_ed_dt")
|
||||
use_device_cnt = request("use_device_cnt")
|
||||
use_device_id = request("use_device_id")
|
||||
|
||||
Response.CharSet = "EUC-KR" '<27>ѱ<EFBFBD>
|
||||
Response.AddHeader "Pragma","no-cache"
|
||||
Response.AddHeader "cache-control", "no-staff"
|
||||
Response.Expires = -1
|
||||
|
||||
query = ""
|
||||
query = query & " SELECT ID "
|
||||
query = query & " FROM project2.dbo.V_DEVICE_STATUS "
|
||||
query = query & " WHERE P_CHILD_SN = '' "
|
||||
query = query & " AND ID IN (" & use_device_id & ")"
|
||||
|
||||
Rs.Open Query, adoConn, 1
|
||||
|
||||
if Rs.recordcount < cint(use_device_cnt) Then
|
||||
Rs.Close
|
||||
response.Write "2"
|
||||
response.End
|
||||
End if
|
||||
insertCnt = 0
|
||||
|
||||
now_year = Right(left(now(),4),2)
|
||||
now_month = mid(now(),6,2)
|
||||
now_day = mid(now(),9,2)
|
||||
now_hour = right("0" & hour(now), 2)
|
||||
now_minute = right("0" & minute(now), 2)
|
||||
now_second = right("0" & second(now), 2)
|
||||
now_micro = right("000" & (timer * 1000) Mod 1000, 3)
|
||||
|
||||
d_no = "G" & now_year & now_month & now_day & now_hour & now_minute & now_second & now_micro ' <20><EFBFBD>ID
|
||||
|
||||
for k=1 To Rs.recordcount
|
||||
query = ""
|
||||
query = query & " INSERT INTO project2.dbo.T_DEVICE_USE "
|
||||
query = query & " (DEVICE_ID, P_CHILD_SN, USE_ST_DT, USE_ED_DT, D_NO, USE_YN, MODIFY_DT, INSERT_DT, INSERT_USER) VALUES "
|
||||
query = query & " (" & Rs("ID") & ", '" & p_child_sn & "', '" & use_st_dt & "', '" & use_ed_dt & "', '" & d_no & "', 'Y', getdate(), getdate(), '" & session("User_number") & "'); "
|
||||
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query
|
||||
dbin.Close
|
||||
insertCnt = insertCnt + 1
|
||||
|
||||
Rs.moveNext
|
||||
Next
|
||||
Rs.close
|
||||
if insertCnt = cint(use_device_cnt) Then
|
||||
response.Write "1"
|
||||
else
|
||||
response.Write "0"
|
||||
end if
|
||||
|
||||
function URLDecode(str)
|
||||
Dim objScript
|
||||
Set objScript = Server.CreateObject("ScriptControl")
|
||||
objScript.Language = "JavaScript"
|
||||
URLDecode = objScript.Eval("decodeURIComponent(""" & str & """.replace(/\+/g,"" ""))")
|
||||
Set objScript = Nothing
|
||||
end function
|
||||
%>
|
||||
27
other/capi_device_return.asp
Normal file
27
other/capi_device_return.asp
Normal file
@@ -0,0 +1,27 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
|
||||
device_id = request("device_id")
|
||||
|
||||
Response.CharSet = "EUC-KR" '<27>ѱ<EFBFBD>
|
||||
Response.AddHeader "Pragma","no-cache"
|
||||
Response.AddHeader "cache-control", "no-staff"
|
||||
Response.Expires = -1
|
||||
|
||||
query = ""
|
||||
query = query & " UPDATE project2.dbo.T_DEVICE_USE "
|
||||
query = query & " SET USE_YN = 'N', MODIFY_DT = getdate() "
|
||||
query = query & " WHERE DEVICE_ID IN (" & device_id & ") AND USE_YN = 'Y' "
|
||||
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query, i
|
||||
dbin.Close
|
||||
|
||||
if i > 0 Then
|
||||
response.Write "1"
|
||||
else
|
||||
response.Write "0"
|
||||
end if
|
||||
%>
|
||||
895
other/capi_device_status.asp
Normal file
895
other/capi_device_status.asp
Normal file
@@ -0,0 +1,895 @@
|
||||
<!-- #include virtual = "include/header.asp" -->
|
||||
<!-- #include virtual = "include/left.asp" -->
|
||||
<%
|
||||
Dim query, p_no
|
||||
p_no = session("User_Number")
|
||||
%>
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<style>
|
||||
#searchDiv{
|
||||
margin-bottom:10px;
|
||||
}
|
||||
#searchDiv > div:nth-child(1){
|
||||
display: inline-block;
|
||||
}
|
||||
#searchDiv > div:nth-child(1) > span{
|
||||
font-weight: bold;
|
||||
margin-right: 35px;
|
||||
}
|
||||
#searchDiv > div:nth-child(1) > span > select{
|
||||
margin-left: 5px;
|
||||
width: 120px;
|
||||
}
|
||||
#searchDiv > div:nth-child(2){
|
||||
display: inline-block;
|
||||
}
|
||||
#searchDiv > div:nth-child(2) > span{
|
||||
color:#00f;
|
||||
font-weight: bold;
|
||||
font-family: 'malgun gothic';
|
||||
font-size:13px;
|
||||
letter-spacing:0px;
|
||||
}
|
||||
#searchDiv > div:nth-child(3){
|
||||
display: inline-block;
|
||||
float: right;
|
||||
}
|
||||
input[type=button]{
|
||||
cursor:pointer;
|
||||
font-family: 'malgun gothic';
|
||||
}
|
||||
.all_ret_device_btn{
|
||||
font-weight: bold;
|
||||
font-size: 12px;
|
||||
margin-right:10px;
|
||||
}
|
||||
.reg_device_btn{
|
||||
font-weight: bold;
|
||||
font-size: 12px;
|
||||
}
|
||||
.ret_device_btn, .mod_device_btn, .del_log_btn {
|
||||
|
||||
}
|
||||
#device_status{
|
||||
width:100%;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
#device_status > tbody > tr > td{
|
||||
text-align:center;
|
||||
padding:3px;
|
||||
line-height: 20px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
#device_status > tbody > tr:first-child > td{
|
||||
text-align:center;
|
||||
font-weight:bold;
|
||||
padding:4px;
|
||||
}
|
||||
#device_status > tbody > tr:nth-child(n+2) > td:nth-child(5){
|
||||
text-align:left;
|
||||
}
|
||||
#device_status > tbody > tr:nth-child(n+2) > td:nth-child(5) span{
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
width: 360px;
|
||||
display: inline-block;
|
||||
}
|
||||
#device_status > tbody > tr:nth-child(n+2) > td:nth-child(6) span{
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
width: 120px;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
#deviceRegDialog table tr td {
|
||||
padding:4px;
|
||||
}
|
||||
#deviceRegDialog table tr td:first-child {
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
#deviceModDialog table tr td {
|
||||
padding:4px;
|
||||
}
|
||||
|
||||
#deviceModDialog table tr td:first-child {
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
#regPrjDialog table tr td {
|
||||
padding:2px;
|
||||
text-align:center;
|
||||
}
|
||||
#regPrjDialog table tr:nth-child(n+2) td:nth-child(2) {
|
||||
text-align:left;
|
||||
}
|
||||
#regPrjDialog table tr:first-child td {
|
||||
|
||||
}
|
||||
#mod_t_m_name, #mod_ori_m_name{
|
||||
width: 120px;
|
||||
display: inline-block;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
#deviceSelectDialog{
|
||||
text-align:center;
|
||||
}
|
||||
#deviceSelectDialog > div {
|
||||
display:inline-block;
|
||||
vertical-align: middle;
|
||||
top:15px;
|
||||
position:relative;
|
||||
}
|
||||
#deviceSelectDialog select {
|
||||
width: 120px;
|
||||
text-align: center;
|
||||
}
|
||||
#deviceSelectDialog > div:nth-child(1){
|
||||
width:35%;
|
||||
}
|
||||
#deviceSelectDialog > div:nth-child(2){
|
||||
width:20%;
|
||||
}
|
||||
#deviceSelectDialog > div:nth-child(3){
|
||||
width:35%;
|
||||
}
|
||||
#deviceSelectDialog #selDev_btn{
|
||||
font-size: 30px;
|
||||
font-weight: bold;
|
||||
font-family: dotum;
|
||||
}
|
||||
#deviceSelectDialog #delDev_btn{
|
||||
font-size: 15px;
|
||||
font-weight: bold;
|
||||
font-family: dotum;
|
||||
}
|
||||
</style>
|
||||
<!-- Content Header (Page header) -->
|
||||
<div class="content-header">
|
||||
<h1>CAPI <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">
|
||||
<div>
|
||||
<div id="searchDiv">
|
||||
<div>
|
||||
<span><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ : <select id="selPrj"><option value=""><3E><>ü</option></select></span>
|
||||
<span><3E>뿩<EFBFBD><EBBFA9>û<EFBFBD><C3BB> : <select id="selUser"><option value=""><3E><>ü</option></select></span>
|
||||
<span><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> : <select id="selMan"><option value=""><3E><>ü</option></select></span>
|
||||
</div>
|
||||
<div><3E><>ȸ<EFBFBD><C8B8> <20><><EFBFBD><EFBFBD> <20><> : <span id="deviceCount"></span></div>
|
||||
<div>
|
||||
<input type="button" value="<22>ϰ<EFBFBD> <20>ݳ<EFBFBD>" class="all_ret_device_btn" />
|
||||
<input type="button" value="<22>뿩 <20><><EFBFBD><EFBFBD>" class="reg_device_btn" />
|
||||
</div>
|
||||
</div>
|
||||
<%
|
||||
dim availity_device_cnt, chk_user
|
||||
availity_device_cnt = 0
|
||||
query = ""
|
||||
query = query & " SELECT NO, ID, T_DEVICE_MODEL, T_NO, T_PHONE_NO, P_CHILD_SN, P_SUBJECT, "
|
||||
query = query & " MAN_ID, M_NAME, USE_ST_DT, USE_ED_DT, D_NO, INSERT_USER, INSERT_USER_NAME, "
|
||||
query = query & " (SELECT COUNT(*) FROM project2.dbo.T_DEVICE_USE WHERE USE_YN = 'N' AND DEVICE_ID = VDS.ID) AS LOG_CNT "
|
||||
query = query & " FROM project2.dbo.V_DEVICE_STATUS VDS "
|
||||
query = query & " ORDER BY NO "
|
||||
|
||||
adors.open query, adoconn, adopenstatic, adlockreadonly
|
||||
%>
|
||||
<table id="device_status" class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td style="width:3%;">No</td>
|
||||
<td style="width:8%;"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td style="width:9%;"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ</td>
|
||||
<td style="width:9%;"><3E>ڵ<EFBFBD><DAB5><EFBFBD><EFBFBD><EFBFBD>ȣ</td>
|
||||
<td style="width:33%;"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ</td>
|
||||
<td style="width:13%;"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td style="width:7%;"><3E>뿩<EFBFBD><EBBFA9><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td style="width:7%;"><3E>ݳ<EFBFBD><DDB3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td style="width:9%;"><3E><><EFBFBD><EFBFBD> / <20>ݳ<EFBFBD></td>
|
||||
<td style="width:7%;"><3E>뿩<EFBFBD><EBBFA9>û<EFBFBD><C3BB></td>
|
||||
<td style="width:4%;"><3E><><EFBFBD><EFBFBD></td>
|
||||
</tr>
|
||||
|
||||
<%
|
||||
|
||||
Do While Not adors.Eof
|
||||
chk_user = iif(adors("INSERT_USER") = cstr(session("User_Number")), true, false) ' insert_user<65><72> <20>α<EFBFBD><CEB1><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> true
|
||||
|
||||
if adors("P_CHILD_SN") = "" then '<27>뿩 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>϶<EFBFBD>
|
||||
availity_device_cnt = availity_device_cnt + 1
|
||||
end if
|
||||
%>
|
||||
<tr>
|
||||
<td ><%=adors("NO")%><input type="hidden" value="<%=adors("ID")%>" name="DEVICE_ID"/></td>
|
||||
<td ><%=adors("T_DEVICE_MODEL")%></td>
|
||||
<td ><%=adors("T_NO")%></td>
|
||||
<td ><%=adors("T_PHONE_NO")%></td>
|
||||
<td ><span><%=iif(adors("P_CHILD_SN") = "", "", "[" & adors("P_CHILD_SN") & "] ")%><%=adors("P_SUBJECT")%></span></td>
|
||||
<td ><%
|
||||
if adors("P_CHILD_SN") <> "" Then
|
||||
if adors("MAN_ID") = "" Then
|
||||
if chk_user = true Then
|
||||
%><input type="text" style="width:120px;" id="man_device_<%=adors("ID")%>" onkeyup="if(event.keyCode==13){search_Name(this.value, '<%=adors("ID")%>');}" value="" placeholder="<22≯<EFBFBD> + Enter"><%
|
||||
End if
|
||||
Else
|
||||
%><span>[<%=adors("MAN_ID")%>] <%=adors("M_NAME")%></span><%
|
||||
End if
|
||||
End if
|
||||
%></td>
|
||||
<td ><%=adors("USE_ST_DT")%></td>
|
||||
<td ><%=adors("USE_ED_DT")%></td>
|
||||
<td ><%
|
||||
if adors("P_CHILD_SN") <> "" Then
|
||||
if chk_user = true Then
|
||||
%>
|
||||
<input type="button" value="<22><><EFBFBD><EFBFBD>" class="mod_device_btn" data-device_id="<%=adors("ID")%>"/>
|
||||
<input type="button" value="<22>ݳ<EFBFBD>" class="ret_device_btn" data-device_id="<%=adors("ID")%>"/><%
|
||||
End if
|
||||
end if
|
||||
%></td>
|
||||
<td ><%=adors("INSERT_USER_NAME")%></td>
|
||||
<td ><%
|
||||
if cint(adors("LOG_CNT")) > 0 then
|
||||
%><input type="button" value="<22><>" id="device_log" style="cursor:pointer;margin:0;padding:1px 10px;border:0;background:rgba(255,255,255,0);" data-rowinf="<%=adoRs("ID")%>"/><%
|
||||
end if
|
||||
%></td>
|
||||
</tr>
|
||||
<%
|
||||
adors.MoveNext
|
||||
Loop
|
||||
%>
|
||||
</table>
|
||||
</div>
|
||||
<div id="deviceRegDialog">
|
||||
<table class="table table-sm table-sm2 table-bordered table-head tr-colors mb-0">
|
||||
<tr>
|
||||
<td ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ</td>
|
||||
<td ><input type="hidden" id="reg_p_child_sn" /><input type="text" id="reg_p_subject" class="project_search" style="cursor:pointer; width:100%;" palceHolder="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>" readonly/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ><3E>뿩<EFBFBD>Ⱓ</td>
|
||||
<td >
|
||||
<input type="text" id="use_st_dt" style="cursor:pointer; width:100px;text-align:center;" readonly/>
|
||||
~
|
||||
<input type="text" id="use_ed_dt" style="cursor:pointer; width:100px;text-align:center;" readonly/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ><3E><><EFBFBD>⼱<EFBFBD><E2BCB1></td>
|
||||
<td ><input type="text" id="use_device_cnt" value="0" style="cursor:pointer; width:100px;text-align:right;padding-right:5px;" readonly/><span> - <20>뿩<EFBFBD><EBBFA9><EFBFBD>ɼ<EFBFBD><C9BC><EFBFBD> : <span id="availity_device_cnt"><%=availity_device_cnt%></span></span></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div id="deviceSelectDialog">
|
||||
<div>
|
||||
<select multiple size="16" id="devList">
|
||||
<%
|
||||
adors.moveFirst
|
||||
Do While Not adors.Eof
|
||||
if adors("P_CHILD_SN") = "" then
|
||||
%>
|
||||
<option value="<%=adors("ID")%>"><%=adors("T_NO")%></option>
|
||||
<%
|
||||
end if
|
||||
adors.MoveNext
|
||||
Loop
|
||||
%>
|
||||
</select><br>
|
||||
<div id="posiDevCnt"><span style="color:#FF0000;">0</span> / <span><%=availity_device_cnt%></span></div>
|
||||
</div>
|
||||
<div><input type="button" value="<22><>" id="selDev_btn" /><br> <br><input type="button" value="<22><>" id="delDev_btn" /></div>
|
||||
<div>
|
||||
<select multiple size="16" id="selList">
|
||||
<%
|
||||
adors.moveFirst
|
||||
Do While Not adors.Eof
|
||||
if adors("P_CHILD_SN") = "" then
|
||||
%>
|
||||
<option value="<%=adors("ID")%>"><%=adors("T_NO")%></option>
|
||||
<%
|
||||
end if
|
||||
adors.MoveNext
|
||||
Loop
|
||||
%>
|
||||
</select><br>
|
||||
<div id="selDevCnt"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> : <span style="color:#0000FF;">0</span></div>
|
||||
</div>
|
||||
</div>
|
||||
<%
|
||||
adors.close
|
||||
%>
|
||||
<div id="regPrjDialog">
|
||||
<table class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td style="width:8%"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ<EFBFBD></td>
|
||||
<td style="width:37%"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><></td>
|
||||
<td style="width:15%"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td style="width:15%"><3E><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD></td>
|
||||
</tr>
|
||||
<%
|
||||
Query = " SELECT p_child_sn, p_subject, p_method_nm, p_intention, ISNULL(D.T_name, '') as d_name "
|
||||
Query = Query & " FROM V_PROJECT_METHOD VPM LEFT OUTER JOIN v_Department D "
|
||||
Query = Query & " ON VPM.p_rsch_dept = D.before_t_cd1 "
|
||||
Query = Query & " WHERE ISNULL(p_child_sn, '') <> '' "
|
||||
Query = Query & " AND p_progress_status >= '006' "
|
||||
Query = Query & " AND (p_research_complete + p_field_complete + p_dp_complete) IS NULL "
|
||||
Query = Query & " AND ( "
|
||||
Query = Query & " p_rsch_1_a = '" & p_no & "' OR p_rsch_2_a = '" & p_no & "' OR p_rsch_3_a = '" & p_no & "' OR p_rsch_4_a = '" & p_no & "' OR "
|
||||
Query = Query & " p_rsch_1_b = '" & p_no & "' OR p_rsch_2_b = '" & p_no & "' OR p_rsch_3_b = '" & p_no & "' OR p_rsch_4_b = '" & p_no & "' OR "
|
||||
Query = Query & " p_rsch_1_c = '" & p_no & "' OR p_rsch_2_c = '" & p_no & "' OR p_rsch_3_c = '" & p_no & "' OR p_rsch_4_c = '" & p_no & "' OR "
|
||||
Query = Query & " p_sv_1 = '" & p_no & "' OR p_sv_2 = '" & p_no & "' OR p_sv_3 = '" & p_no & "' OR p_sv_4 = '" & p_no & "' OR "
|
||||
Query = Query & " p_code_1 = '" & p_no & "' OR p_code_2 = '" & p_no & "' OR p_code_3 = '" & p_no & "' OR p_code_4 = '" & p_no & "' OR "
|
||||
Query = Query & " p_verify_1 = '" & p_no & "' OR p_verify_2 = '" & p_no & "' OR p_verify_3 = '" & p_no & "' OR p_verify_4 = '" & p_no & "' OR "
|
||||
Query = Query & " p_dp_1 = '" & p_no & "' OR p_dp_2 = '" & p_no & "' OR p_dp_3 = '" & p_no & "' OR p_dp_4 = '" & p_no & "' OR "
|
||||
Query = Query & " p_it_1 = '" & p_no & "' OR p_it_2 = '" & p_no & "' OR p_it_3 = '" & p_no & "' OR p_it_4 = '" & p_no & "' OR "
|
||||
Query = Query & " p_supp_1 = '" & p_no & "' OR p_supp_2 = '" & p_no & "' OR p_supp_3 = '" & p_no & "' OR p_supp_4 = '" & p_no & "' "
|
||||
Query = Query & " ) "
|
||||
Query = Query & " ORDER BY p_child_sn "
|
||||
|
||||
|
||||
Rs.Open Query, adoConn, 1
|
||||
for i = 1 to Rs.RecordCount
|
||||
%>
|
||||
<tr>
|
||||
<td ><%=Rs("p_child_sn")%></td>
|
||||
<td ><a href="javascript:selectPrj('<%=Rs("p_child_sn")%>','<%=Rs("p_subject")%>')"><%=Rs("p_subject")%></a></td>
|
||||
<td ><%=Rs("p_method_nm")%></td>
|
||||
<td ><%=Rs("d_name")%></td>
|
||||
</tr>
|
||||
<%
|
||||
Rs.MoveNext
|
||||
next
|
||||
Rs.Close
|
||||
%>
|
||||
<tr>
|
||||
<td colspan="4"><3E><><EFBFBD><EFBFBD><EFBFBD>Է<EFBFBD> : <input type="text" id="tmpComment" value=""/> <input type="button" onclick="selectPrjTmp();" value="<22><> <20><>" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div id="deviceModDialog">
|
||||
<table class="table table-sm table-sm2 table-bordered table-head tr-colors mb-0">
|
||||
<tr>
|
||||
<td ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ</td>
|
||||
<td ><input type="hidden" id="mod_id" /><input type="hidden" id="mod_p_child_sn" /><input type="text" id="mod_p_subject" class="project_search" style="cursor:pointer; width:100%;" palceHolder="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>" readonly/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ><3E>ݳ<EFBFBD><DDB3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td >
|
||||
<input type="text" id="mod_use_ed_dt" style="cursor:pointer; width:100px;text-align:center;" readonly/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td ><input type="text" id="mod_man_device" style="width:90px;" onkeyup="if(event.keyCode==13){search_Name(this.value, 'mod');}" value="" placeholder="<22≯<EFBFBD> + Enter"> <20><><EFBFBD><EFBFBD> : <span id="mod_t_m_name"></span><input type="hidden" id="mod_m_name" value="" /> <20><><EFBFBD><EFBFBD> : <span id="mod_ori_m_name"></span></td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="hidden" id="mod_beforeValue" value="" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.content -->
|
||||
<!-- REQUIRED SCRIPTS -->
|
||||
<script>
|
||||
var agent = navigator.userAgent.toLowerCase();
|
||||
var chromeChk = false;
|
||||
if (agent.indexOf("chrome") != -1) {
|
||||
chromeChk = true;
|
||||
}
|
||||
$.ui.dialog.prototype._focusTabbable = $.noop;
|
||||
|
||||
var selProjectSearch = "";
|
||||
$(function(){
|
||||
$("#use_st_dt").datepicker();
|
||||
$("#use_ed_dt").datepicker();
|
||||
$("#mod_use_ed_dt").datepicker();
|
||||
|
||||
deviceRegDialog = $("#deviceRegDialog").dialog({
|
||||
autoOpen: false,
|
||||
modal: true,
|
||||
resizable: false,
|
||||
height: 220,
|
||||
width: 600,
|
||||
title: '<27>뿩 <20><>û <20><><EFBFBD><EFBFBD>',
|
||||
close: function(){ clearDeviceValue(); },
|
||||
buttons: {
|
||||
"<22><><EFBFBD><EFBFBD>": deviceReg,
|
||||
"<22><><EFBFBD><EFBFBD>": deviceCancel
|
||||
}
|
||||
});
|
||||
|
||||
deviceRegDialog.dialog("option", "position", {
|
||||
my: 'center',
|
||||
at: 'center',
|
||||
of: window
|
||||
});
|
||||
|
||||
$(".all_ret_device_btn").click(function(){
|
||||
var deviceIDs = $("#device_status > tbody > tr:nth-child(n+2):visible > td:nth-child(9) > input.ret_device_btn").map(function(idx, obj){ return $(obj).data("device_id") }).toArray().join(",");
|
||||
if(deviceIDs == ""){
|
||||
alert("<22><><EFBFBD>̴<EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20>뿩<EFBFBD><EBBFA9>û<EFBFBD>ڰ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>Ⱑ <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
|
||||
return;
|
||||
}
|
||||
if(confirm("ȭ<>鿡 <20><><EFBFBD>̴<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>⸦ <20>ݳ<EFBFBD><DDB3>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?\n(<28>뿩<EFBFBD><EBBFA9>û<EFBFBD>ڰ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>)")){
|
||||
$.ajax({
|
||||
url: './capi_device_return.asp',
|
||||
data: {
|
||||
'device_id' : deviceIDs
|
||||
},
|
||||
success: function(result){
|
||||
if(result == "1"){ // <20><><EFBFBD><EFBFBD>
|
||||
location.reload();
|
||||
}else{
|
||||
alert("Web Service Error !!");
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
$(".reg_device_btn").click(function(){
|
||||
deviceRegDialog.dialog("open");
|
||||
});
|
||||
|
||||
regPrjDialog = $("#regPrjDialog").dialog({
|
||||
autoOpen: false,
|
||||
modal: true,
|
||||
resizable: false,
|
||||
height: 600,
|
||||
width: 800,
|
||||
title: '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD>'
|
||||
});
|
||||
|
||||
$(".project_search").click(function(){
|
||||
selProjectSearch = $(this).attr("id").split("_")[0];
|
||||
$("#tmpComment").val("");
|
||||
regPrjDialog.dialog("open");
|
||||
});
|
||||
|
||||
deviceSelectDialog = $("#deviceSelectDialog").dialog({
|
||||
autoOpen: false,
|
||||
modal: true,
|
||||
resizable: false,
|
||||
height: 480,
|
||||
width: 400,
|
||||
title: '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>',
|
||||
//close: function(){ clearDeviceSelect(); },
|
||||
buttons: {
|
||||
"<22><><EFBFBD><EFBFBD>": deviceSelect,
|
||||
"<22><><EFBFBD><EFBFBD>": deviceCancel3
|
||||
}
|
||||
});
|
||||
|
||||
chromeChk == true ?
|
||||
$("#selList > option").css("display", "none") :
|
||||
$("#selList > option").css("visibility", "hidden").prop("disabled", true);
|
||||
|
||||
$("#use_device_cnt").click(function(){
|
||||
deviceSelectDialog.dialog("open");
|
||||
|
||||
});
|
||||
|
||||
$("#selDev_btn").click(function(){
|
||||
$.each($("#selList option"), function(i, v){
|
||||
if($.inArray($(v).val(), $("#devList option:selected").map(function(idx, obj){ return $(obj).val(); })) > -1){
|
||||
chromeChk == true ?
|
||||
$(v).css("display", "") :
|
||||
$(v).css("visibility", "visible").prop("disabled", false);
|
||||
}
|
||||
});
|
||||
chromeChk == true ?
|
||||
$("#devList option:selected").css("display", "none") :
|
||||
$("#devList option:selected").css("visibility", "hidden").prop("disabled", true);
|
||||
|
||||
$("#devList option").prop("selected", false);
|
||||
devCountRef();
|
||||
});
|
||||
|
||||
$("#delDev_btn").click(function(){
|
||||
$.each($("#devList option"), function(i, v){
|
||||
if($.inArray($(v).val(), $("#selList option:selected").map(function(idx, obj){ return $(obj).val(); })) > -1){
|
||||
chromeChk == true ?
|
||||
$(v).css("display", "") :
|
||||
$(v).css("visibility", "visible").prop("disabled", false);
|
||||
}
|
||||
});
|
||||
chromeChk == true ?
|
||||
$("#selList option:selected").css("display", "none") :
|
||||
$("#selList option:selected").css("visibility", "hidden").prop("disabled", true);
|
||||
|
||||
$("#selList option").prop("selected", false);
|
||||
devCountRef();
|
||||
});
|
||||
|
||||
$(".ret_device_btn").click(function () {
|
||||
if(confirm("<22>ݳ<EFBFBD>ó<EFBFBD><C3B3><EFBFBD>ϰڽ<CFB0><DABD>ϱ<EFBFBD>?")){
|
||||
$.ajax({
|
||||
url: './capi_device_return.asp',
|
||||
data: {
|
||||
'device_id' : $(this).data("device_id")
|
||||
},
|
||||
success: function(result){
|
||||
if(result == "1"){ // <20><><EFBFBD><EFBFBD>
|
||||
location.reload();
|
||||
}else{
|
||||
alert("Web Service Error !!");
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
deviceModDialog = $("#deviceModDialog").dialog({
|
||||
autoOpen: false,
|
||||
modal: true,
|
||||
resizable: false,
|
||||
height: 220,
|
||||
width: 600,
|
||||
title: '<27>뿩 <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>',
|
||||
close: function(){ clearDeviceValueMod(); },
|
||||
buttons: {
|
||||
"<22><><EFBFBD><EFBFBD>": deviceMod,
|
||||
"<22><><EFBFBD><EFBFBD>": deviceCancel2
|
||||
}
|
||||
});
|
||||
|
||||
deviceModDialog.dialog("option", "position", {
|
||||
my: 'center',
|
||||
at: 'center',
|
||||
of: window
|
||||
});
|
||||
|
||||
$(".mod_device_btn").click(function () {
|
||||
deviceModDialog.dialog("open");
|
||||
|
||||
$("#mod_id").val($(this).data("device_id"));
|
||||
|
||||
var projectStr = $("input[name=DEVICE_ID][VALUE='" + $(this).data("device_id") + "']").parents("tr").eq(0).find("td").eq(4).find("span").html();
|
||||
var p_child_sn = projectStr.split("]")[0].split("[")[1];
|
||||
$("#mod_p_subject").val(projectStr);
|
||||
$("#mod_p_child_sn").val(p_child_sn);
|
||||
|
||||
var use_ed_dt = $("input[name=DEVICE_ID][VALUE='" + $(this).data("device_id") + "']").parents("tr").eq(0).find("td").eq(7).html();
|
||||
$("#mod_use_ed_dt").val(use_ed_dt);
|
||||
|
||||
var m_name = $("input[name=DEVICE_ID][VALUE='" + $(this).data("device_id") + "']").parents("tr").eq(0).find("td").eq(5).text();
|
||||
$("#mod_ori_m_name").text(m_name);
|
||||
|
||||
$("#mod_beforeValue").val(p_child_sn+"||"+use_ed_dt+"||"+m_name);
|
||||
});
|
||||
|
||||
$("input[id=device_log]").click(function (){
|
||||
var obj = $(this);
|
||||
if(obj.val() == "<22><>"){
|
||||
obj.val("<22><>");
|
||||
obj.parent().parent().next("tr").remove();
|
||||
}else{
|
||||
var device_id = $(this).data("rowinf")
|
||||
$.ajax({
|
||||
url: './capi_device_log.asp',
|
||||
data: {
|
||||
'device_id' : device_id
|
||||
},
|
||||
success: function(result){
|
||||
if(result != ""){
|
||||
obj.parent().parent().after("<tr><td colspan='" + obj.parent().parent().find("td").length + "' align='right'>" + result + "</td></tr>");
|
||||
obj.val("<22><>");
|
||||
}else{
|
||||
alert("Web Service Error !!");
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
$("#devList").on('change mousemove', function(){
|
||||
devCountRef();
|
||||
});
|
||||
|
||||
createSelect("");
|
||||
|
||||
$("#searchDiv > div:nth-child(1) > span > select").on("click change", function(e){
|
||||
var selPrjVal = $("#selPrj").val();
|
||||
var selUserVal = $("#selUser").val();
|
||||
var selManVal = $("#selMan").val();
|
||||
|
||||
$("#device_status > tbody > tr:nth-child(n+2)").css("display", "");
|
||||
$.each($("#device_status > tbody > tr:nth-child(n+2)"), function(idx, obj){
|
||||
if($(this).children("td").eq(4).text() != selPrjVal && selPrjVal != ""){
|
||||
$(this).css("display", "none");
|
||||
}
|
||||
if($(this).children("td").eq(9).text() != selUserVal && selUserVal != ""){
|
||||
$(this).css("display", "none");
|
||||
}
|
||||
if($(this).children("td").eq(5).text() != selManVal && selManVal != ""){
|
||||
$(this).css("display", "none");
|
||||
}
|
||||
if(idx > 0 && $(this).children("td").length == 1){
|
||||
if($(this).prev().css("display") != "none"){
|
||||
$(this).css("display", "");
|
||||
}
|
||||
}
|
||||
});
|
||||
var rowCount = $.grep($("#device_status > tbody > tr:nth-child(n+2)"), function(obj, idx){
|
||||
return $(obj).children("td").length != 1 && $(obj).css("display") != "none";
|
||||
}).length;
|
||||
$("#deviceCount").html(rowCount);
|
||||
createSelect();
|
||||
});
|
||||
$("#searchDiv > div:nth-child(1) > span > select").click();
|
||||
|
||||
$(document).off("click", ".del_log_btn").on("click", ".del_log_btn", function () {
|
||||
var clickBtnObj = $(this);
|
||||
if(confirm("<22>ش<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϰڽ<CFB0><DABD>ϱ<EFBFBD>?")){
|
||||
$.ajax({
|
||||
url: './capi_device_log_del.asp',
|
||||
data: {
|
||||
'use_id' : clickBtnObj.data("use_id")
|
||||
},
|
||||
success: function(result){
|
||||
if(result == "1"){ // <20><><EFBFBD><EFBFBD>
|
||||
//location.reload();
|
||||
if(clickBtnObj.parents("tbody").eq(0).children("tr").length == 2){
|
||||
clickBtnObj.parents("tr").eq(1).prev().children("td").eq(9).html("");
|
||||
clickBtnObj.parents("tr").eq(1).remove();
|
||||
}else{
|
||||
clickBtnObj.parents("tr").eq(0).remove();
|
||||
}
|
||||
}else{
|
||||
alert("Web Service Error !!");
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
function createSelect(){
|
||||
var prevPrjVal = $("#selPrj").val();
|
||||
var prevUserVal = $("#selUser").val();
|
||||
var prevManVal = $("#selMan").val();
|
||||
|
||||
var baseOption = '<option value=""><3E><>ü</option>';
|
||||
$("#selPrj").html(baseOption);
|
||||
$("#selUser").html(baseOption);
|
||||
$("#selMan").html(baseOption);
|
||||
$.each($("#device_status > tbody > tr:nth-child(n+2)"), function(idx, obj){
|
||||
// $(obj).children("td").eq(4).text() - <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ
|
||||
// $(obj).children("td").eq(9).text() - <20>뿩<EFBFBD><EBBFA9>û<EFBFBD><C3BB>
|
||||
// $(obj).children("td").eq(5).text() - <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
if($(obj).css("display") != "none"){
|
||||
if($("#selPrj").find("option[value='" + $(obj).children("td").eq(4).text() + "']").length == 0 && $(obj).children("td").eq(4).text() != ""){
|
||||
$("#selPrj").append("<option value='" + $(obj).children("td").eq(4).text() + "'>" + $(obj).children("td").eq(4).text() + "</option>");
|
||||
}
|
||||
if($("#selUser").find("option[value='" + $(obj).children("td").eq(9).text() + "']").length == 0 && $(obj).children("td").eq(9).text() != ""){
|
||||
$("#selUser").append("<option value='" + $(obj).children("td").eq(9).text() + "'>" + $(obj).children("td").eq(9).text() + "</option>");
|
||||
}
|
||||
if($("#selMan").find("option[value='" + $(obj).children("td").eq(5).text() + "']").length == 0 && $(obj).children("td").eq(5).text() != ""){
|
||||
$("#selMan").append("<option value='" + $(obj).children("td").eq(5).text() + "'>" + $(obj).children("td").eq(5).text() + "</option>");
|
||||
}
|
||||
}
|
||||
});
|
||||
sortSelect("selPrj", prevPrjVal);
|
||||
sortSelect("selUser", prevUserVal);
|
||||
sortSelect("selMan", prevManVal);
|
||||
}
|
||||
|
||||
function sortSelect(selId, selVal){
|
||||
var sel = $('#'+selId);
|
||||
var optionList = sel.find('option');
|
||||
optionList.sort(function(a, b){
|
||||
if (a.value > b.value) return 1;
|
||||
else { return -1; }
|
||||
});
|
||||
sel.html(optionList);
|
||||
sel.find("option[value='" + selVal + "']").length > 0 ? sel.val(selVal) : sel.val("");
|
||||
}
|
||||
|
||||
function devCountRef(){
|
||||
$("#posiDevCnt span").eq(0).text($("#devList option:selected").length);
|
||||
$("#posiDevCnt span").eq(1).text(
|
||||
chromeChk == true ?
|
||||
$("#devList > option:visible").length :
|
||||
$.grep($("#devList > option"), function(v, i){ return $(v).css("visibility") == "visible"; }).length
|
||||
);
|
||||
$("#selDevCnt span").text(
|
||||
chromeChk == true ?
|
||||
$("#selList > option:visible").length :
|
||||
$.grep($("#selList > option"), function(v, i){ return $(v).css("visibility") == "visible"; }).length
|
||||
);
|
||||
}
|
||||
|
||||
function clearDeviceValue(){
|
||||
$("#reg_p_child_sn").val("");
|
||||
$("#reg_p_subject").val("");
|
||||
$("#use_st_dt").val("");
|
||||
$("#use_ed_dt").val("");
|
||||
$("#use_device_cnt").val("0");
|
||||
}
|
||||
|
||||
function clearDeviceSelect(){
|
||||
$("#devList option:selected").prop("selected", false);
|
||||
$("#selList option:selected").prop("selected", false);
|
||||
|
||||
chromeChk == true ?
|
||||
$("#devList option").css("display", "") :
|
||||
$("#devList option").css("visibility", "visible").prop("disabled", false);
|
||||
|
||||
chromeChk == true ?
|
||||
$("#selList option").css("display", "none") :
|
||||
$("#selList option").css("visibility", "hidden").prop("disabled", true);
|
||||
|
||||
$("#use_device_cnt").val("0");
|
||||
$("#posiDevCnt span").eq(0).text("0");
|
||||
$("#posiDevCnt span").eq(1).text(
|
||||
chromeChk == true ?
|
||||
$("#devList > option:visible").length :
|
||||
$.grep($("#devList > option"), function(v, i){ return $(v).css("visibility") == "visible"; }).length
|
||||
);
|
||||
$("#selDevCnt span").text("0");
|
||||
}
|
||||
|
||||
function deviceSelect(){
|
||||
$("#devList option:selected").prop("selected", false);
|
||||
$("#selList option:selected").prop("selected", false);
|
||||
$("#use_device_cnt").val(
|
||||
chromeChk == true ?
|
||||
$("#selList > option:visible").length :
|
||||
$.grep($("#selList > option"), function(v, i){ return $(v).css("visibility") == "visible"; }).length
|
||||
);
|
||||
deviceSelectDialog.dialog("close");
|
||||
}
|
||||
|
||||
function deviceReg(){
|
||||
if($("#reg_p_child_sn").val() == ""){
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>.");
|
||||
return;
|
||||
}
|
||||
if($("#use_st_dt").val() == "" || $("#use_ed_dt").val() == ""){
|
||||
alert("<22>뿩<EFBFBD>Ⱓ<EFBFBD><E2B0A3> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>.");
|
||||
return;
|
||||
}
|
||||
if($("#use_st_dt").val() > $("#use_ed_dt").val()){
|
||||
alert("<22>뿩<EFBFBD>Ⱓ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n<><6E><EFBFBD><EFBFBD><EFBFBD>Ϻ<EFBFBD><CFBA><EFBFBD> <20>۾ƾ<DBBE><C6BE>մϴ<D5B4>.");
|
||||
return;
|
||||
}
|
||||
|
||||
if($("#use_device_cnt").val()*1 == 0){
|
||||
alert("<22><><EFBFBD>⸦ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>.");
|
||||
return;
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
url: './capi_device_reg.asp',
|
||||
data: {
|
||||
'p_child_sn' : encodeURIComponent($("#reg_p_child_sn").val()),
|
||||
'use_st_dt' : $("#use_st_dt").val(),
|
||||
'use_ed_dt' : $("#use_ed_dt").val(),
|
||||
'use_device_cnt' : $("#use_device_cnt").val(),
|
||||
'use_device_id' : $.grep($('#selList option'), function(obj, idx){
|
||||
return chromeChk == true ? $(obj).css("display") != "none" : $(obj).css("visibility") == "visible";
|
||||
}).map(function(v){ return $(v).val(); }).join(",")
|
||||
},
|
||||
success: function(result){
|
||||
if(result == "1"){ // <20><><EFBFBD><EFBFBD>
|
||||
deviceRegDialog.dialog("close");
|
||||
location.reload();
|
||||
}else if(result == "0"){ // <20><><EFBFBD><EFBFBD>?
|
||||
|
||||
}else if(result == "2"){ // <20>ܿ<EFBFBD><DCBF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
alert("<22>뿩<EFBFBD><EBBFA9><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>մϴ<D5B4>.\n<><6E><EFBFBD>ΰ<EFBFBD>ħ <20><> <20>ٽ<EFBFBD> <20>̿<EFBFBD><CCBF><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>.");
|
||||
}else{
|
||||
alert("Web Service Error !!");
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function clearDeviceValueMod(){
|
||||
$("#mod_man_device").val("");
|
||||
$("#mod_m_name").val("");
|
||||
$("#mod_t_m_name").html("");
|
||||
$("#mod_id").val("");
|
||||
}
|
||||
|
||||
function deviceMod(){
|
||||
var mod_val = $("#mod_p_child_sn").val()+"||"+$("#mod_use_ed_dt").val()+"||"+($("#mod_t_m_name").text() == "" ? $("#mod_ori_m_name").text() : $("#mod_t_m_name").text());
|
||||
if(mod_val == $("#mod_beforeValue").val()){
|
||||
alert("<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ٸ<EFBFBD><D9B8><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> Ŭ<><C5AC><EFBFBD><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>.");
|
||||
return;
|
||||
}
|
||||
if(!confirm("<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?")){
|
||||
return;
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
url: './capi_device_mod.asp',
|
||||
data: {
|
||||
'p_child_sn' : $("#mod_p_child_sn").val(),
|
||||
'use_ed_dt' : $("#mod_use_ed_dt").val(),
|
||||
'man_id' : $("#mod_m_name").val(),
|
||||
'device_id' : $("#mod_id").val()
|
||||
},
|
||||
success: function(result){
|
||||
if(result == "1"){ // <20><><EFBFBD><EFBFBD>
|
||||
location.reload();
|
||||
}else{
|
||||
alert("Web Service Error !!");
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function deviceCancel(){
|
||||
deviceRegDialog.dialog("close");
|
||||
}
|
||||
|
||||
function deviceCancel2(){
|
||||
deviceModDialog.dialog("close");
|
||||
}
|
||||
|
||||
function deviceCancel3(){
|
||||
clearDeviceSelect();
|
||||
deviceSelectDialog.dialog("close");
|
||||
}
|
||||
|
||||
function selectPrj(p_child_sn, p_subject){
|
||||
$("#"+selProjectSearch+"_p_child_sn").val(p_child_sn);
|
||||
$("#"+selProjectSearch+"_p_subject").val("["+p_child_sn+"]"+p_subject);
|
||||
regPrjDialog.dialog("close");
|
||||
}
|
||||
|
||||
function selectPrjTmp(){
|
||||
var tmpComment = $("#tmpComment").val();
|
||||
selectPrj(tmpComment, "");
|
||||
}
|
||||
|
||||
var winpop = null;
|
||||
function search_Name(txt, device_id) {
|
||||
var url = "/project_list/myun_search.asp?cutmenu=1&part=man_device";
|
||||
var m_name = txt;
|
||||
if (m_name == "") {
|
||||
return false;
|
||||
}
|
||||
url = url + "&m_name=" + m_name + "&device_id=" + device_id;
|
||||
if(winpop == null || winpop.closed == true){
|
||||
winpop = window.open (url,"", "left=0, top=5, width=500, height=500, scrollbars=yes, statbar=no" );
|
||||
}
|
||||
}
|
||||
|
||||
function deviceManSave(man_id, device_id){
|
||||
$.ajax({
|
||||
url: './capi_device_man_reg.asp',
|
||||
data: {
|
||||
'man_id' : man_id,
|
||||
'device_id' : device_id
|
||||
},
|
||||
success: function(result){
|
||||
if(result == "1"){ // <20><><EFBFBD><EFBFBD>
|
||||
//location.reload();
|
||||
createSelect();
|
||||
}else{
|
||||
alert("Web Service Error !!");
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
<!-- #include virtual = "include/footer.asp" -->
|
||||
|
||||
247
other/company_seal.asp
Normal file
247
other/company_seal.asp
Normal file
@@ -0,0 +1,247 @@
|
||||
<!-- #include virtual = "include/header.asp" -->
|
||||
<!-- #include virtual = "include/left.asp" -->
|
||||
<%
|
||||
If tmp_support_chk = "1" Then
|
||||
query = ""
|
||||
query = query & " UPDATE T_COMPANY_SEAL "
|
||||
query = query & " SET support_check = '1' "
|
||||
query = query & " WHERE support_check = '0' "
|
||||
|
||||
adoConn.Execute query
|
||||
End If
|
||||
|
||||
if request("gotopage") <> "" then
|
||||
tmp_currentpage = request("gotopage")
|
||||
else
|
||||
tmp_currentpage = 1
|
||||
end if
|
||||
searchtype = request("searchtype")
|
||||
if searchtype = "" then
|
||||
searchtype = "0"
|
||||
end if
|
||||
searchword = request("searchword")
|
||||
%>
|
||||
<!-- 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></h1>
|
||||
</div>
|
||||
<!-- /.content-header -->
|
||||
<!-- Main content -->
|
||||
<div class="content-body">
|
||||
<div class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td align="right">
|
||||
<select id="searchType">
|
||||
<option value="0"><3E><> <20><></option>
|
||||
<option value="1"><3E><><EFBFBD><EFBFBD>ó</option>
|
||||
<option value="2"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></option>
|
||||
</select>
|
||||
<input type="text" id="searchWord" value="" />
|
||||
<input type="button" id="searchBtn" value="<22><> <20><>" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<form name="company_seal" method="post">
|
||||
<table class="table table-sm table-sm2 table-bordered table-head tr-colors mt-2">
|
||||
<tr>
|
||||
<td align="center" class="cs_title" style="border-left:1px solid #BDBDBD;" width="5%">No.</td>
|
||||
<td align="center" class="cs_title" width="11%"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center" class="cs_title" width="19%"><3E><><EFBFBD><EFBFBD>ó</td>
|
||||
<td align="center" class="cs_title" width="26%"><3E><> <20><></td>
|
||||
<td align="center" class="cs_title" width="7%"><3E>μ<EFBFBD></td>
|
||||
<td align="center" class="cs_title" width="6%"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center" class="cs_title" width="14%"><3E><>û<EFBFBD><C3BB><EFBFBD><EFBFBD></td>
|
||||
<td align="center" class="cs_title" width="8%"><3E>濵<EFBFBD><E6BFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Ȯ<><C8AE></td>
|
||||
<td align="center" class="cs_title" width="6%"><3E><><EFBFBD><EFBFBD></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" style="border-left:1px solid #BDBDBD;"><font color="gray"><3E>ڵ<EFBFBD><DAB5><EFBFBD><EFBFBD><EFBFBD></font></td>
|
||||
<td align="center">
|
||||
<input type="text" style="width:100%;cursor:pointer;text-align:center;" name="cs_date" id="cs_date" value='' readonly>
|
||||
</td>
|
||||
<td align="center">
|
||||
<input type="hidden" name="cs_div" id="cs_div" value="" />
|
||||
<input type="hidden" name="cs_cli_prj" id="cs_cli_prj" value="" />
|
||||
<input type="text" class="gray" style="width:85%;text-align:Left;" name="cs_client" id="cs_client" value='' onclick="c_prj_sel('cs_div', 'cs_cli_prj', 'cs_client');" readonly />
|
||||
<img src="/images/common/btn_smallsrch2.gif" style="vertical-align:top;cursor:pointer;" onclick="c_prj_sel('cs_div', 'cs_cli_prj', 'cs_client');" />
|
||||
</td>
|
||||
<td align="center"><input type="text" class="gray" style="width:99%;text-align:Left;" name="cs_title" id="cs_title" value='' /></td>
|
||||
<td align="center"><%=session("Depart_name") %></td>
|
||||
<td align="center"><%=session("loginuser") %></td>
|
||||
<td align="center"><font color="gray"><3E>ڵ<EFBFBD><DAB5><EFBFBD><EFBFBD><EFBFBD></font></td>
|
||||
<td align="center"><input type="button" style="width:80%;" value="<22><> <20><>" onclick="write_cs();" /></td>
|
||||
<td align="center"></td>
|
||||
</tr>
|
||||
<%
|
||||
query = " SELECT TCS.id, cs_date, cs_client, cs_title, cs_status, P2.p_name as cs_status_name, "
|
||||
query = query & " P.p_team_name as team_name, TCS.insert_date, P.p_name "
|
||||
query = query & " FROM T_COMPANY_SEAL TCS "
|
||||
query = query & " LEFT OUTER JOIN V_person P ON TCS.insert_user = P.p_no "
|
||||
query = query & " LEFT OUTER JOIN person P2 ON TCS.cs_status_user = P2.p_no "
|
||||
query = query & " WHERE TCS.use_div = '1' "
|
||||
if searchtype = "0" then
|
||||
query = query & "and cs_title like '%" & searchword & "%' "
|
||||
elseif searchtype = "1" then
|
||||
query = query & "and cs_client like '%" & searchword & "%' "
|
||||
elseif searchtype = "2" then
|
||||
query = query & "and P.p_name like '%" & searchword & "%' "
|
||||
end if
|
||||
query = query & " ORDER BY insert_date DESC "
|
||||
|
||||
adors.Open query, adoConn, 1
|
||||
if adors.RecordCount > 0 then
|
||||
adors.PageSize = 20
|
||||
PageCount = adors.PageCount
|
||||
adors.absolutepage = tmp_Currentpage
|
||||
tmp_total_record = adors.RecordCount
|
||||
tmp_for = Cint(tmp_total_record) - ((Cint(tmp_Currentpage) - 1) * adors.PageSize)
|
||||
|
||||
if adors.PageSize <= tmp_for then
|
||||
if adors.RecordCount <= adors.PageSize then
|
||||
tmp_for = adors.recordcount
|
||||
else
|
||||
tmp_for = adors.PageSize
|
||||
end if
|
||||
else
|
||||
tmp_for = tmp_for
|
||||
end if
|
||||
|
||||
for i=1 To tmp_for
|
||||
%>
|
||||
<!--- Loop Set Start --->
|
||||
<tr>
|
||||
<td align="center"><%=adors("id")%></td>
|
||||
<td align="center"><%=adors("cs_date")%></td>
|
||||
<td align="left"><%=adors("cs_client")%></td>
|
||||
<td align="left"><%=adors("cs_title")%></td>
|
||||
<td align="center"><%=adors("team_name")%></td>
|
||||
<td align="center"><%=adors("p_name")%></td>
|
||||
<td align="center"><%=adors("insert_date")%></td>
|
||||
<td align="center">
|
||||
<%
|
||||
If adors("cs_status") = "0" Then
|
||||
If session("Depart_Code") = "18" Then
|
||||
%>
|
||||
<input type="button" value="<22><> <20><>" style="width:80%;" onclick="chk_cs('<%=adors("id") %>','<%=tmp_currentpage %>','1');" />
|
||||
<%
|
||||
End If
|
||||
Elseif adors("cs_status") = "1" Then
|
||||
%>
|
||||
<font color="#FF4000"><3E><><EFBFBD><EFBFBD></font><font color="#013ADF"> [<%=adors("cs_status_name") %>]</font>
|
||||
<%
|
||||
Else
|
||||
%>
|
||||
<%
|
||||
End If
|
||||
%>
|
||||
</td>
|
||||
<td>
|
||||
<% If adors("cs_status") = "0" Then %>
|
||||
<input type="button" value="<22><> <20><>" style="width:80%;" onclick="chk_cs('<%=adors("id") %>', '<%=tmp_currentpage %>','0');"/>
|
||||
<%End If %>
|
||||
</td>
|
||||
</tr>
|
||||
<!--- Loop Set End --->
|
||||
<%
|
||||
adors.MoveNext
|
||||
next
|
||||
end if
|
||||
%>
|
||||
</table>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<%= Pagelist("company_seal.asp", tmp_currentpage, tmp_bcolor , "", pagecount, "&searchtype=" & searchtype & "&searchword=" & searchword) %>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.content -->
|
||||
<!-- REQUIRED SCRIPTS -->
|
||||
<script>
|
||||
function write_cs(){
|
||||
var spec_str = /[$\\@\\\#%\^\&\{\}\`\-\=\|\/\;\"\']/;
|
||||
if (document.company_seal.cs_date.value.trim() == "") {
|
||||
alert("<22><>¥<EFBFBD><C2A5> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>.");
|
||||
return;
|
||||
}
|
||||
if (document.company_seal.cs_client.value.trim() == "") {
|
||||
alert("Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>.");
|
||||
document.company_seal.cs_client.focus();
|
||||
return;
|
||||
}else if (document.company_seal.cs_client.value.search(spec_str) != -1) {
|
||||
alert("Ư<><C6AF><EFBFBD><EFBFBD><EFBFBD>ڸ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20>ٽ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϱ<EFBFBD> <20><>ư<EFBFBD><C6B0> <20><><EFBFBD><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>.");
|
||||
document.company_seal.cs_client.focus();
|
||||
return;
|
||||
}
|
||||
if (document.company_seal.cs_title.value.trim() == "") {
|
||||
alert("<22><> <20><><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>.");
|
||||
document.company_seal.cs_title.focus();
|
||||
return;
|
||||
} else if (document.company_seal.cs_title.value.search(spec_str) != -1) {
|
||||
alert("Ư<><C6AF><EFBFBD><EFBFBD><EFBFBD>ڸ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20>ٽ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϱ<EFBFBD> <20><>ư<EFBFBD><C6B0> <20><><EFBFBD><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>.");
|
||||
document.company_seal.cs_title.focus();
|
||||
return;
|
||||
}
|
||||
|
||||
document.company_seal.action = "./company_seal_ok.asp";
|
||||
document.company_seal.submit();
|
||||
}
|
||||
|
||||
function chk_cs(id, now_page, ok){
|
||||
if(ok=="1"){
|
||||
if (!confirm("<22><><EFBFBD><EFBFBD>ó<EFBFBD><C3B3><EFBFBD>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?")) {
|
||||
alert("<22><><EFBFBD>ҵǾ<D2B5><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
if (!confirm("<22><><EFBFBD><EFBFBD><EFBFBD>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?")) {
|
||||
alert("<22><><EFBFBD>ҵǾ<D2B5><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
|
||||
return;
|
||||
}
|
||||
}
|
||||
location.href = "./company_seal_chk.asp?id=" + id + "&now_page=" + now_page + "&ok=" + ok;
|
||||
}
|
||||
|
||||
function c_prj_sel(obj_type, obj_prj, obj_cli) {
|
||||
var url = "/project_list/project_other_list.asp?obj_type=" + obj_type + "&obj_prj=" + obj_prj + "&obj_cli=" + obj_cli;
|
||||
window.open(url, "wins", "left=50, top=50, menubar=no, location=no, status=no, toolbar=no, width=850, height=600, scrollbars=yes ,resizable=no");
|
||||
}
|
||||
|
||||
$(function(){
|
||||
$("#cs_date").datepicker();
|
||||
|
||||
$("#searchBtn").on("click", function(){
|
||||
var searchType = $("#searchType option:selected").val();
|
||||
var searchWord = $("#searchWord").val();
|
||||
searchWord = searchWord.replace(/'/g, "");
|
||||
|
||||
location.href="./company_seal.asp?searchtype=" + searchType + "&searchword=" + searchWord;
|
||||
});
|
||||
$("#searchWord").on("keyup", function(e){
|
||||
e.preventDefault();
|
||||
var keycode = event.which ? event.which : event.keyCode;
|
||||
if(keycode == 13){
|
||||
$("#searchBtn").click();
|
||||
}
|
||||
});
|
||||
$("#searchType").val("<%=searchtype%>");
|
||||
$("#searchWord").val("<%=searchword%>");
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
<!-- #include virtual = "include/footer.asp" -->
|
||||
35
other/company_seal_chk.asp
Normal file
35
other/company_seal_chk.asp
Normal file
@@ -0,0 +1,35 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
|
||||
ok = Request("ok")
|
||||
id = request("id")
|
||||
now_page = request("now_page")
|
||||
|
||||
If ok="1" Then
|
||||
query = " UPDATE T_COMPANY_SEAL "
|
||||
query = query & " SET "
|
||||
query = query & " cs_status = '1', cs_status_user = '" & session("User_Number") & "' "
|
||||
query = query & " WHERE id = '" & id & "' "
|
||||
else
|
||||
query = " Delete from T_COMPANY_SEAL "
|
||||
query = query & " WHERE id = '" & id & "' "
|
||||
End If
|
||||
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query
|
||||
dbin.Close
|
||||
%>
|
||||
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
|
||||
<form name="company_seal" method="post">
|
||||
<input type="hidden" name="gotopage" value="<%=now_page %>" />
|
||||
</form>
|
||||
<script>
|
||||
alert('ó<><C3B3><EFBFBD>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.');
|
||||
|
||||
document.company_seal.action = 'company_seal.asp';
|
||||
document.company_seal.submit();
|
||||
</script>
|
||||
<%
|
||||
set dbin = nothing
|
||||
%>
|
||||
33
other/company_seal_ok.asp
Normal file
33
other/company_seal_ok.asp
Normal file
@@ -0,0 +1,33 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
|
||||
cs_div = request("cs_div")
|
||||
cs_cli_prj = request("cs_cli_prj")
|
||||
cs_client = request("cs_client")
|
||||
cs_title = request("cs_title")
|
||||
cs_date = request("cs_date")
|
||||
|
||||
query = " INSERT INTO T_COMPANY_SEAL "
|
||||
query = query & " (cs_date, cs_div, cs_cli_prj, cs_client, cs_title, cs_depart, insert_user) "
|
||||
query = query & " VALUES "
|
||||
query = query & " ('" & cs_date & "', "
|
||||
query = query & " '" & cs_div & "', "
|
||||
query = query & " '" & cs_cli_prj & "', "
|
||||
query = query & " '" & cs_client & "', "
|
||||
query = query & " '" & cs_title & "', "
|
||||
query = query & " '" & session("Depart_Code") & "', "
|
||||
query = query & " '" & session("User_Number") & "') "
|
||||
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query
|
||||
dbin.Close
|
||||
%>
|
||||
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
|
||||
<script>
|
||||
alert('<27>ۼ<EFBFBD> <20>Ϸ<EFBFBD>');
|
||||
location.href = 'company_seal.asp';
|
||||
</script>
|
||||
<%
|
||||
set dbin = nothing
|
||||
%>
|
||||
38
other/delok.asp
Normal file
38
other/delok.asp
Normal file
@@ -0,0 +1,38 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
|
||||
workit = request("workit")
|
||||
setYear_srp = Request("setYear_srp")
|
||||
setMonth_srp = request("setMonth_srp")
|
||||
p_rdate = request("p_rdate")
|
||||
p_rstimecode = request("p_rstimecode")
|
||||
p_retimecode = request("p_retimecode")
|
||||
p_comment = request("p_comment_" & p_retimecode)
|
||||
tmp_scode = request("tmp_scode")
|
||||
p_sn = request("p_sn")
|
||||
|
||||
query = "UPDATE [srp] "
|
||||
query = query & "SET "
|
||||
query = query & "p_delok='Y' "
|
||||
query = query & "WHERE p_sn='" & p_sn & "' "
|
||||
query = query & "AND p_delok='N' "
|
||||
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query
|
||||
dbin.Close
|
||||
%>
|
||||
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
|
||||
<form name="srp" method="post">
|
||||
<input type="hidden" name="workit" value="<%=workit%>">
|
||||
<input type="hidden" name="condate" value="<%=p_rdate%>">
|
||||
</form>
|
||||
<script>
|
||||
alert('<27><><EFBFBD>ҵǾ<D2B5><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>');
|
||||
|
||||
document.srp.action = 'view.asp';
|
||||
document.srp.submit();
|
||||
</script>
|
||||
<%
|
||||
set dbin = nothing
|
||||
%>
|
||||
10
other/official_downloads.asp
Normal file
10
other/official_downloads.asp
Normal file
@@ -0,0 +1,10 @@
|
||||
<%@ Language=VBScript EnableSessionState="False"%>
|
||||
<%
|
||||
filepath = Server.MapPath("/") & "\upload\official\"
|
||||
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
|
||||
%>
|
||||
272
other/official_list.asp
Normal file
272
other/official_list.asp
Normal file
@@ -0,0 +1,272 @@
|
||||
<!-- #include virtual = "include/header.asp" -->
|
||||
<!-- #include virtual = "include/left.asp" -->
|
||||
<%
|
||||
dim query
|
||||
dim rsp
|
||||
dim i
|
||||
|
||||
|
||||
'###########################################
|
||||
dim xmode : xmode=request.form("xmode")
|
||||
dim xmode_ck
|
||||
|
||||
select case xmode
|
||||
|
||||
case "del" '-- <20><><EFBFBD><EFBFBD>(<28>̻<EFBFBD><CCBB><EFBFBD>)ó<><C3B3>
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
dbin.Open adoConn
|
||||
query = ""
|
||||
query = query & " update dbo.T_OFFICIAL_NO set "
|
||||
query = query & " use_div='0' " '-- <20>̻<EFBFBD><CCBB><EFBFBD>(0)
|
||||
query = query & " where official_no='"&request.form("xcode")&"' "
|
||||
query = query & " and use_div='1' "
|
||||
dbin.Execute(query)
|
||||
dbin.Close
|
||||
xmode_ck="1"
|
||||
|
||||
end select
|
||||
|
||||
Dim file_del : file_del = Request("del")
|
||||
|
||||
If file_del = "ok" then
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
dbin.Open adoConn
|
||||
query = ""
|
||||
query = query & " update dbo.T_OFFICIAL_NO set "
|
||||
query = query & " file_list='', "
|
||||
query = query & " file_size='' "
|
||||
query = query & " where official_no='"&request("xcode")&"' "
|
||||
query = query & " and use_div='1' "
|
||||
dbin.Execute(query)
|
||||
dbin.Close
|
||||
End If
|
||||
'###########################################
|
||||
if request("gotopage") <> "" then
|
||||
tmp_currentpage = request("gotopage")
|
||||
else
|
||||
tmp_currentpage = 1
|
||||
end if
|
||||
searchtype = request("searchtype")
|
||||
if searchtype = "" then
|
||||
searchtype = "0"
|
||||
end if
|
||||
searchword = request("searchword")
|
||||
%>
|
||||
<!-- 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">
|
||||
<form name="xform" method="post">
|
||||
<input type="hidden" name="xcode" id="xcode" value="" />
|
||||
<input type="hidden" name="xmode" id="xmode" value="" />
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0" style="font-size:13px;">
|
||||
<tr>
|
||||
<td></td>
|
||||
<td align="right">
|
||||
<select id="searchType">
|
||||
<option value="0"><3E><> <20><></option>
|
||||
<option value="1">Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ<EFBFBD><C6AE></option>
|
||||
<option value="2"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></option>
|
||||
</select>
|
||||
<input type="text" id="searchWord" value="" />
|
||||
<input type="button" id="searchBtn" value="<22><> <20><>" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='text-center align-middle pb-0' colspan="2">
|
||||
<table class="table table-sm table-sm2 table-bordered table-head tr-colors mt-1 mb-1">
|
||||
<tr>
|
||||
<td class='text-center align-middle' width="10%"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ</td>
|
||||
<td class='text-center align-middle' width="6%"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td class='text-center align-middle' width="17%">Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ<EFBFBD><C6AE></td>
|
||||
<td class='text-center align-middle' width="25%"><3E><> <20><></td>
|
||||
<td class='text-center align-middle' width="6%"><3E>μ<EFBFBD></td>
|
||||
<td class='text-center align-middle' width="6%"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td class='text-center align-middle' width="8%"><3E><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td class='text-center align-middle' width="10%"><3E><> <20><></td>
|
||||
<td class='text-center align-middle' width="6%"><3E><> <20><></td>
|
||||
<td class='text-center align-middle' width="6%"><3E><><EFBFBD><EFBFBD></td>
|
||||
</tr>
|
||||
<%
|
||||
query = ""&VbCrlf
|
||||
query = query &" select d.T_Name, p.p_name, insert_user, official_no, official_date, official_client, official_title, official_etc, "&VbCrlf
|
||||
query = query &" insert_date, Isnull(attribute01, '') as not_made, file_list, file_size, input_user "&VbCrlf
|
||||
query = query &" from T_OFFICIAL_NO as t "&VbCrlf
|
||||
query = query &" left join person p on t.insert_user = p.p_no "&VbCrlf
|
||||
query = query &" left join v_Department d on p.p_depart = d.before_t_cd1 and (p.p_job_part = d.before_j_cd1 or p.p_job_part = d.before_j_cd2) "&VbCrlf
|
||||
query = query &" where use_div='1' "&VbCrlf
|
||||
if searchtype = "0" then
|
||||
query = query & "and official_title like '%" & searchword & "%' "
|
||||
elseif searchtype = "1" then
|
||||
query = query & "and official_client like '%" & searchword & "%' "
|
||||
elseif searchtype = "2" then
|
||||
query = query & "and P.p_name like '%" & searchword & "%' "
|
||||
end if
|
||||
query = query &" ORDER BY official_no DESC "&VbCrlf
|
||||
'Response.Write query
|
||||
adors.Open query, adoConn, 1
|
||||
if adors.RecordCount > 0 then
|
||||
adors.PageSize = 10
|
||||
PageCount = adors.PageCount
|
||||
adors.absolutepage = tmp_Currentpage
|
||||
tmp_total_record = adors.RecordCount
|
||||
tmp_for = Cint(tmp_total_record) - ((Cint(tmp_Currentpage) - 1) * adors.PageSize)
|
||||
|
||||
if adors.PageSize <= tmp_for then
|
||||
if adors.RecordCount <= adors.PageSize then
|
||||
tmp_for = adors.recordcount
|
||||
else
|
||||
tmp_for = adors.PageSize
|
||||
end if
|
||||
else
|
||||
tmp_for = tmp_for
|
||||
end if
|
||||
|
||||
for i=1 To tmp_for
|
||||
tmp_etc = " "
|
||||
If adors("official_etc") <> "" Then
|
||||
tmp_etc = adors("official_etc")
|
||||
End if
|
||||
%>
|
||||
<!--- Loop Set Start --->
|
||||
<tr>
|
||||
<td class='text-center align-middle'>
|
||||
<% If (CDbl(session("User_Number")) = CDbl(adors("insert_user")) OR session("Depart_Code") = "18") And adors("not_made") = "" Then %>
|
||||
<a href="javascript:notMade('<%=adors("official_no")%>');"><%=adors("official_no")%></a>
|
||||
<% Else %>
|
||||
<%=adors("official_no")%>
|
||||
<%If adors("not_made") = "1" Then %>
|
||||
<br />(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
|
||||
<% End if %>
|
||||
<%End if %></td>
|
||||
<td class='text-center align-middle'><%=adors("official_date")%></td>
|
||||
<td class='text-left align-middle'><%=adors("official_client")%></td>
|
||||
<td class='text-left align-middle'><%=adors("official_title")%></td>
|
||||
<td class='text-center align-middle'><%=adors("T_name")%></td>
|
||||
<td class='text-center align-middle'><%=adors("p_name")%></td>
|
||||
<td class='text-center align-middle'><%=replace(adors("insert_date"), " <20><>", "<br /><3E><>")%></td>
|
||||
<td class='text-left align-middle'><%=tmp_etc%> </td>
|
||||
<%If adors("not_made") = "1" Then %>
|
||||
<td class='text-center align-middle' >-</td>
|
||||
<td class='text-center align-middle' >
|
||||
<%If adors("file_list")<>"" Then%>
|
||||
<a href="./official_downloads.asp?filename=<%= adors("file_list")%>" style="cursor:pointer;"><i class='fas fa-file'></i></a><br />
|
||||
<a href="./official_list.asp?del=ok&xcode=<%=adors("official_no")%>" style="cursor:pointer;" onclick="javascript:if(!confirm('<27><><EFBFBD><EFBFBD><EFBFBD>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?')){return false;}"><3E><><EFBFBD>ϻ<EFBFBD><CFBB><EFBFBD></a>
|
||||
<%end if%>
|
||||
</td>
|
||||
<%else '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ƴѰ<C6B4><D1B0>츸 [<5B><><EFBFBD><EFBFBD>],[<5B><><EFBFBD><EFBFBD>] <20><><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD>ڸ<EFBFBD>)%>
|
||||
<%if (trim(adors("insert_user"))=trim(session("User_Number"))) and (cdbl(replace(cstr(date),"-",""))=<cdbl(replace(adors("official_date"),"-",""))) then %>
|
||||
<td class='text-center align-middle' ><a href="javascript:js_line_edit(xform,'<%=adors("official_no")%>');" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></a><!--/<a href="javascript:js_line_del(xform,'<%=adors("official_no")%>');" ><3E><><EFBFBD><EFBFBD></a>--></td>
|
||||
<%else %>
|
||||
<td class='text-center align-middle' >-</td>
|
||||
<%end if%>
|
||||
<td class='text-center align-middle' >
|
||||
<%If adors("file_list")="" or adors("file_list")&""=""Then%>
|
||||
<a href="javascript:js_up('<%=adors("official_no") %>','<%=adors("official_client") %>','<%=adors("official_title") %>','<%=adors("T_name") %>','<%=adors("p_name") %>')"><i class='fas fa-file-upload'></i></a>
|
||||
<%Else %>
|
||||
<a href="./official_downloads.asp?filename=<%= adors("file_list")%>" style="cursor:pointer;"><i class='fas fa-file'></i></a><br />
|
||||
<a href="./official_list.asp?del=ok&xcode=<%=adors("official_no")%>" style="cursor:pointer;" onclick="javascript:if(!confirm('<27><><EFBFBD><EFBFBD><EFBFBD>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?')){return false;}"><3E><><EFBFBD>ϻ<EFBFBD><CFBB><EFBFBD></a>
|
||||
<%End If %>
|
||||
</td>
|
||||
<%end if %>
|
||||
</tr>
|
||||
<!--- Loop Set End --->
|
||||
<%
|
||||
adors.MoveNext
|
||||
next
|
||||
end if
|
||||
%>
|
||||
</table>
|
||||
<%= Pagelist("official_list.asp", tmp_currentpage, tmp_bcolor , "", pagecount, "") %>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.content -->
|
||||
<!-- REQUIRED SCRIPTS -->
|
||||
<script>
|
||||
function notMade(offi_no) {
|
||||
var param = { official_no : offi_no };
|
||||
if (confirm("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ [" + offi_no + "]<5D><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ó<><C3B3> <20>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?")) {
|
||||
ajaxCallJson("./official_no_notMade.asp", param, null, "post", "notMadeResult()");
|
||||
} else {
|
||||
alert("<22><><EFBFBD>ҵǾ<D2B5><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
|
||||
}
|
||||
}
|
||||
function notMadeResult() {
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ó<><C3B3> <20>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
|
||||
parent.official_frame.location.reload(true);
|
||||
}
|
||||
|
||||
// <20><><EFBFBD><EFBFBD>
|
||||
function js_line_edit(x,xcode){
|
||||
var tmp_width = 900;
|
||||
var tmp_height = 200;
|
||||
var url="";
|
||||
url="official_list_edit.asp?p_cd="+xcode;
|
||||
winObj=window.open(url, '', 'left=0,top=0,width=' + tmp_width + ',height=' + tmp_height + ',scrollbars=yes,resizable=yes')
|
||||
}
|
||||
|
||||
// <20><><EFBFBD><EFBFBD>
|
||||
function js_line_del(x,xcode){
|
||||
if(!confirm("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ ["+xcode+"]<5D><> <20><><EFBFBD><EFBFBD> <20>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>? ")){return;}
|
||||
x.xcode.value=xcode; // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ
|
||||
x.xmode.value="del"; // ó<><C3B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
|
||||
x.action = "official_list.asp";
|
||||
x.submit();
|
||||
}
|
||||
|
||||
// <20><><EFBFBD>ΰ<EFBFBD>ħ
|
||||
function re_load(){
|
||||
xform.action = "official_list.asp";
|
||||
xform.submit();
|
||||
}
|
||||
|
||||
function js_up(official_no, official_client, official_title, team_name, p_name) {
|
||||
window.open("official_upload.asp?official_no=" + official_no+"&official_client="+official_client+"&official_title="+official_title+"&team_name="+team_name+"&p_name="+p_name,"","width=800,height=300");
|
||||
}
|
||||
|
||||
$(function(){
|
||||
cutmenu();
|
||||
|
||||
$("#searchBtn").on("click", function(){
|
||||
var searchType = $("#searchType option:selected").val();
|
||||
var searchWord = $("#searchWord").val();
|
||||
searchWord = searchWord.replace(/'/g, "");
|
||||
|
||||
location.href="./official_list.asp?searchtype=" + searchType + "&searchword=" + searchWord;
|
||||
});
|
||||
$("#searchWord").on("keyup", function(e){
|
||||
e.preventDefault();
|
||||
var keycode = event.which ? event.which : event.keyCode;
|
||||
if(keycode == 13){
|
||||
$("#searchBtn").click();
|
||||
}
|
||||
});
|
||||
$("#searchType").val("<%=searchtype%>");
|
||||
$("#searchWord").val("<%=searchword%>");
|
||||
});
|
||||
</script>
|
||||
<%if xmode_ck<>"" then %>
|
||||
<script>
|
||||
alert("ó<><C3B3> <20>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD> ");
|
||||
</script>
|
||||
<%end if%>
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
<!-- #include virtual = "include/footer.asp" -->
|
||||
90
other/official_list_edit.asp
Normal file
90
other/official_list_edit.asp
Normal file
@@ -0,0 +1,90 @@
|
||||
<!-- #include virtual = "include/header.asp" -->
|
||||
<!-- #include virtual = "include/left.asp" -->
|
||||
<%
|
||||
dim query
|
||||
dim p_cd : p_cd=request.item("p_cd")
|
||||
|
||||
query = " select * from dbo.T_OFFICIAL_NO "
|
||||
query = query & " where official_no='"&p_cd&"' "
|
||||
query = query & " and use_div='1' " '-- <20><><EFBFBD><EFBFBD>(1)
|
||||
adors.Open query, adoConn, 1
|
||||
if adors.eof then
|
||||
response.write "<22><>ȸ<EFBFBD><C8B8> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>. IT<49><54><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20>ֽñ<D6BD> <20>ٶ<EFBFBD><D9B6>ϴ<EFBFBD> "
|
||||
response.end
|
||||
end if
|
||||
%>
|
||||
<!-- 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 row-0">
|
||||
<div class="col-12">
|
||||
<form name="xform" method="post" align="center">
|
||||
<input type="hidden" name="official_no" id="official_no" value="<%=adors("official_no")%>" /><!-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ -->
|
||||
<table class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr height="24">
|
||||
<td align="center" colspan="4" style="font-size:12px;">
|
||||
<09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td align="center" ><3E><><EFBFBD><EFBFBD> <20><>ȣ</td>
|
||||
<td colspan="3" > <b><%=adors("official_no")%></b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" ><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></td>
|
||||
<td colspan="3" > <%=adors("official_title")%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="15%" align="center" >
|
||||
Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ<EFBFBD><C6AE></td>
|
||||
<td width="35%" > <%=adors("official_client")%></td>
|
||||
<td width="15%" align="center" >
|
||||
<09><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="35%" > <%=adors("official_date")%> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" ><3E><> <20><></td>
|
||||
<td colspan="3" >
|
||||
<input type="text" class="gray" style="width:100%;" name="official_etc" id="official_etc" value='<%=adors("official_etc")%>' />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="button" value="<22><><EFBFBD><EFBFBD><EFBFBD>ϱ<EFBFBD>" name="btn_edit" onclick="js_edit_save(xform);" >
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.content -->
|
||||
<!-- REQUIRED SCRIPTS -->
|
||||
<script>
|
||||
$(function(){
|
||||
cutmenu();
|
||||
});
|
||||
|
||||
function js_edit_save(x){
|
||||
var spec_str = /[$\\@\\\#%\^\&\{\}\`\-\=\|\/\;\"\']/;
|
||||
if (x.official_etc.value.trim() != "") {
|
||||
if (x.official_etc.value.search(spec_str) != -1) {
|
||||
alert("Ư<><C6AF><EFBFBD><EFBFBD><EFBFBD>ڸ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><> [<5B><><EFBFBD><EFBFBD><EFBFBD>ϱ<EFBFBD>] <20><>ư<EFBFBD><C6B0> <20><><EFBFBD><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>.");
|
||||
x.official_etc.focus();
|
||||
return;
|
||||
}
|
||||
}
|
||||
if(!confirm("<22><><EFBFBD><EFBFBD><EFBFBD>Ͻ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?")){return;}
|
||||
x.action = "official_list_edit_save.asp";
|
||||
x.submit();
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
<!-- #include virtual = "include/footer.asp" -->
|
||||
21
other/official_list_edit_save.asp
Normal file
21
other/official_list_edit_save.asp
Normal file
@@ -0,0 +1,21 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
'##### <20><> <20><> ###################################
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
dbin.Open adoConn
|
||||
|
||||
Dim query
|
||||
query = ""
|
||||
query = query&" update dbo.T_OFFICIAL_NO set "
|
||||
query = query&" official_etc='"&request("official_etc")&"' "
|
||||
query = query&" where official_no='"&request("official_no")&"' " '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ
|
||||
query = query&" and use_div='1' " '-- <20><><EFBFBD><EFBFBD>
|
||||
|
||||
dbin.Execute(query)
|
||||
dbin.Close
|
||||
%>
|
||||
<script>
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD><CFB7>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
|
||||
opener.re_load(); // <20>θ<EFBFBD>â <20><><EFBFBD>ΰ<EFBFBD>ħ
|
||||
window.close();
|
||||
</script>
|
||||
199
other/official_no_gen.asp
Normal file
199
other/official_no_gen.asp
Normal file
@@ -0,0 +1,199 @@
|
||||
<!-- #include virtual = "include/header.asp" -->
|
||||
<!-- #include virtual = "include/left.asp" -->
|
||||
<%
|
||||
dim query
|
||||
dim official_no
|
||||
official_no = request("official_no")
|
||||
|
||||
dim official_title
|
||||
dim official_client
|
||||
dim official_date
|
||||
dim official_etc
|
||||
%>
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
<div class="content-header">
|
||||
<h1><3E><><EFBFBD><EFBFBD> <20><>ȣ <20><><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">
|
||||
<form name="official" method="post">
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td style="padding:0 0 5 0;">
|
||||
<font class="brown"><3E><><EFBFBD><EFBFBD> <20><>ȣ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Դϴ<D4B4>. <20><>ȣ<EFBFBD><C8A3> KRI-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>˴ϴ<CBB4>. (<28><> : 2018<31><38> 1<><31><EFBFBD><EFBFBD><EFBFBD><EFBFBD> -> KRI-20161128-01, 2019<31><39> 02<30><32> <20><><EFBFBD><EFBFBD> -> KRI-20190220-01) </font><br />
|
||||
<font color="red"><b><3E><> <20><>ȣ<EFBFBD><C8A3> <20><><EFBFBD><EFBFBD><EFBFBD>ϱ<EFBFBD> <20><>ư Ŭ<><C5AC> <20><> <20><><EFBFBD><EFBFBD><EFBFBD>˴ϴ<CBB4>.</b></font><br />
|
||||
<font color="red"><b><3E><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>纻<EFBFBD><E7BABB> <20>濵<EFBFBD><E6BFB5><EFBFBD><EFBFBD><EFBFBD>ǿ<EFBFBD> <20><><EFBFBD><EFBFBD> <20>ٶ<EFBFBD><D9B6>ϴ<EFBFBD>.</b></font><br />
|
||||
<font color="red"><b><3E><> [<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>]<5D><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ڰ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ<EFBFBD><C8A3> <20><><EFBFBD><EFBFBD><EFBFBD>۸<EFBFBD>ũ<EFBFBD><C5A9> Ŭ<><C5AC><EFBFBD>Ͽ<EFBFBD> [<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>] ó<><C3B3><EFBFBD><EFBFBD> <20><> <20><> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>.</b></font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<table class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr height="24">
|
||||
<td align="center" colspan="4"><3E><><EFBFBD><EFBFBD> <20><>ȣ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
</tr>
|
||||
<%
|
||||
official_title = ""
|
||||
official_client = ""
|
||||
official_date = ""
|
||||
official_etc = ""
|
||||
|
||||
If official_no <> "" Then
|
||||
%>
|
||||
<tr>
|
||||
<td align="center" ><3E><><EFBFBD><EFBFBD> <20><>ȣ</td>
|
||||
<td colspan="3" >
|
||||
<input type="text" style="width:100%;" value='<%=official_no %>' readonly />
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
query = ""
|
||||
query = query & " SELECT official_date, official_client, official_title, official_etc "
|
||||
query = query & " FROM T_OFFICIAL_NO "
|
||||
query = query & " WHERE official_no = '" & official_no & "' "
|
||||
query = query & " AND use_div = '1' "
|
||||
|
||||
adors.open query, adoConn, adopenstatic, adlockreadonly
|
||||
If adors.recordCount = 1 Then
|
||||
official_title = adors("official_title")
|
||||
official_client = adors("official_client")
|
||||
official_date = adors("official_date")
|
||||
official_etc = adors("official_etc")
|
||||
End If
|
||||
adors.close
|
||||
End If
|
||||
%>
|
||||
<tr>
|
||||
<td align="center" ><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></td>
|
||||
<td colspan="3" >
|
||||
<input type="text" style="width:100%;" name="official_title" id="official_title" value='<%=official_title %>' <% If official_date <> "" Then %> readonly <% End If %> />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="15%" align="center" >Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ<EFBFBD><C6AE></td>
|
||||
<td width="35%" >
|
||||
<%
|
||||
If official_date = "" Then
|
||||
%>
|
||||
<input type="hidden" name="official_div" id="official_div" value="" />
|
||||
<input type="hidden" name="official_cli_prj" id="official_cli_prj" value="" />
|
||||
<%
|
||||
End If
|
||||
%>
|
||||
<input type="text" style="<% If official_date <> "" Then %>width:100%;<% Else %>width:90%;cursor:pointer;<% End If %>" name="official_client" id="official_client" value='<%=official_client %>' <% If official_client = "" Then %> onclick="c_prj_sel('official_div', 'official_cli_prj', 'official_client');" <% End If %> readonly />
|
||||
<%
|
||||
If official_date = "" Then
|
||||
%>
|
||||
<img src="/images/common/btn_smallsrch2.gif" style="vertical-align:top;cursor:pointer;" onclick="c_prj_sel('official_div', 'official_cli_prj', 'official_client');" />
|
||||
<%
|
||||
End If
|
||||
%>
|
||||
</td>
|
||||
<td width="15%" align="center" ><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="35%" >
|
||||
<input type="text" style="width:100%;cursor:pointer;text-align:right;" name="official_date" id="official_date" value='<%=official_date %>' <% If official_date = "" Then %> class='selectDate' <% End If %> readonly />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" ><3E><> <20><></td>
|
||||
<td colspan="3" >
|
||||
<input type="text" style="width:100%;" name="official_etc" id="official_etc" value='<%=official_etc %>' <% If official_date <> "" Then %> readonly <% End If %> />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
If official_no = "" Then
|
||||
%>
|
||||
<tr>
|
||||
<td style="padding:0 0 5px 0;" align="center">
|
||||
<img src="/images/common/btn_create.jpg" onclick="c_official();" style="CURSOR:pointer;" title='<27><><EFBFBD><EFBFBD><EFBFBD>ϱ<EFBFBD>'>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<div id="official_list">
|
||||
<iframe name="official_frame" src="./official_list.asp" style="width:100%; height:480px; border:0;"></iframe>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
Else
|
||||
%>
|
||||
<tr>
|
||||
<td style="padding:5 0 0 0;" align="center">
|
||||
<img src="/images/common/btn_return.jpg" onclick="c_return();" style="CURSOR:pointer;" title='<27><><EFBFBD>ư<EFBFBD><C6B0><EFBFBD>'>
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
End If
|
||||
%>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.content -->
|
||||
<!-- REQUIRED SCRIPTS -->
|
||||
<script>
|
||||
$(function(){
|
||||
$(".selectDate").datepicker();
|
||||
});
|
||||
|
||||
function c_official() {
|
||||
var spec_str = /[$\\@\\\#%\^\&\{\}\`\-\=\|\/\;\"\']/;
|
||||
if (document.official.official_title.value.trim() == "") {
|
||||
alert("<22><> <20><><EFBFBD><EFBFBD> <20>ۼ<EFBFBD><DBBC><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>.");
|
||||
document.official.official_title.focus();
|
||||
return;
|
||||
} else if (document.official.official_title.value.search(spec_str) != -1) {
|
||||
alert("Ư<><C6AF><EFBFBD><EFBFBD><EFBFBD>ڸ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20>ٽ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϱ<EFBFBD> <20><>ư<EFBFBD><C6B0> <20><><EFBFBD><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>.");
|
||||
document.official.official_title.focus();
|
||||
return;
|
||||
}
|
||||
if (document.official.official_client.value.trim() == "") {
|
||||
alert("<22><>ü <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>.");
|
||||
document.official.official_client.focus();
|
||||
return;
|
||||
} else if (document.official.official_client.value.search(spec_str) != -1) {
|
||||
alert("Ư<><C6AF><EFBFBD><EFBFBD><EFBFBD>ڸ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20>ٽ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϱ<EFBFBD> <20><>ư<EFBFBD><C6B0> <20><><EFBFBD><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>.");
|
||||
document.official.official_client.focus();
|
||||
return;
|
||||
}
|
||||
if (document.official.official_date.value.trim() == "") {
|
||||
alert("<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>.");
|
||||
return;
|
||||
}
|
||||
if (document.official.official_etc.value.trim() != "") {
|
||||
if (document.official.official_etc.value.search(spec_str) != -1) {
|
||||
alert("Ư<><C6AF><EFBFBD><EFBFBD><EFBFBD>ڸ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20>ٽ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϱ<EFBFBD> <20><>ư<EFBFBD><C6B0> <20><><EFBFBD><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>.");
|
||||
document.official.official_etc.focus();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
document.official.action = "./official_no_gen_ok.asp";
|
||||
document.official.submit();
|
||||
}
|
||||
|
||||
function c_return() {
|
||||
location.href = "./official_no_gen.asp";
|
||||
}
|
||||
function c_prj_sel(obj_type, obj_prj, obj_cli) {
|
||||
var url = "/project_list/project_other_list.asp?obj_type=" + obj_type + "&obj_prj=" + obj_prj + "&obj_cli=" + obj_cli;
|
||||
window.open(url, "wins", "left=50, top=50, menubar=no, location=no, status=no, toolbar=no, width=850, height=600, scrollbars=yes ,resizable=no");
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
<!-- #include virtual = "include/footer.asp" -->
|
||||
46
other/official_no_gen_ok.asp
Normal file
46
other/official_no_gen_ok.asp
Normal file
@@ -0,0 +1,46 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
dbin.Open adoConn
|
||||
|
||||
Dim query
|
||||
query = ""
|
||||
query = query & " SET NOCOUNT ON;insert into T_OFFICIAL_NO (official_no, official_date, official_div, official_cli_prj, official_client, official_title, official_etc, official_team, insert_user) values "
|
||||
query = query & " ( "
|
||||
'@@@@@@@@@@@@ <20><><EFBFBD><EFBFBD> <20><>ȣ MAX + 1 <20>۾<EFBFBD> @@@@@@@@@@@@
|
||||
query = query & " (SELECT 'KRI-' + REPLACE('" & request("official_date") & "', '-', '') + '-' + "
|
||||
query = query & " (SELECT ISNULL(RIGHT('0'+convert(varchar(2), convert(int, MAX(RIGHT(official_no, 2)))+1), 2), '01') "
|
||||
query = query & " FROM T_OFFICIAL_NO WHERE official_date = '" & request("official_date") & "' AND use_div in ('0','1'))) , " '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD>(0) <20><> <20>ߺ<EFBFBD><DFBA>ȵǵ<C8B5><C7B5><EFBFBD> <20>߰<EFBFBD><DFB0><EFBFBD>(<28><><EFBFBD><EFBFBD>(1)/<2F><><EFBFBD><EFBFBD>(0)
|
||||
'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
||||
query = query & " '" & request("official_date") & "', '" & request("official_div") & "', '" & request("official_cli_prj") & "', '" & request("official_client") & "', "
|
||||
query = query & " '" & request("official_title") & "', '" & request("official_etc") & "', "
|
||||
query = query & " '" & session("Depart_Code") & "', '" & session("User_Number") & "' "
|
||||
query = query & " ) "
|
||||
query = query & " SET NOCOUNT OFF; SELECT SCOPE_IDENTITY() ID; "
|
||||
|
||||
Dim rsp
|
||||
Dim id
|
||||
Dim official_no
|
||||
set rsp = dbin.Execute(query)
|
||||
id = rsp("id")
|
||||
rsp.Close
|
||||
|
||||
query = ""
|
||||
query = query & " SELECT official_no FROM T_OFFICIAL_NO WHERE id = '" & id & "' "
|
||||
rsp.open query, adoConn, adopenstatic, adlockreadonly
|
||||
official_no = rsp("official_no")
|
||||
rsp.Close
|
||||
dbin.Close
|
||||
%>
|
||||
|
||||
<script language="javascript">
|
||||
function c_official_ok() {
|
||||
document.official_ok.action = "./official_no_gen.asp";
|
||||
document.official_ok.submit();
|
||||
}
|
||||
</script>
|
||||
<body onload="c_official_ok();">
|
||||
<form name="official_ok" method="post">
|
||||
<input type="hidden" name="official_no" id="official_no" value="<%=official_no %>" />
|
||||
</form>
|
||||
</body>
|
||||
16
other/official_no_notMade.asp
Normal file
16
other/official_no_notMade.asp
Normal file
@@ -0,0 +1,16 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
Response.CharSet = "EUC-KR" '<27>ѱ<EFBFBD>
|
||||
Response.AddHeader "Pragma","no-cache"
|
||||
Response.AddHeader "cache-control", "no-staff"
|
||||
Response.Expires = -1
|
||||
|
||||
query = ""
|
||||
query = query & " Update T_OFFICIAL_NO SET "
|
||||
query = query & " attribute01 = '1' "
|
||||
query = query & " Where Official_no = '" & Request("official_no") & "' "
|
||||
|
||||
adoConn.execute query
|
||||
|
||||
Response.Write "1"
|
||||
%>
|
||||
207
other/official_upload.asp
Normal file
207
other/official_upload.asp
Normal file
@@ -0,0 +1,207 @@
|
||||
<!-- #include virtual = "include/header.asp" -->
|
||||
<!-- #include virtual = "include/left.asp" -->
|
||||
<%
|
||||
dim attach_file
|
||||
dim FileSizeCheck
|
||||
dim xup
|
||||
dim countfilename
|
||||
dim fileattach, filename, fileNameTemp, file , ext, filesize, bExist, upd
|
||||
dim official_no : official_no = Request("official_no")
|
||||
dim official_client : official_client = Request("official_client")
|
||||
dim official_title : official_title = Request("official_title")
|
||||
dim team_name : team_name = Request("team_name")
|
||||
dim p_name : p_name = Request("p_name")
|
||||
Dim FilePath
|
||||
|
||||
'<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>.
|
||||
|
||||
dim aa_official_no : aa_official_no = xup("official_no")
|
||||
a_input_user = session("User_Number")
|
||||
|
||||
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\official\"
|
||||
|
||||
'<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
|
||||
fso.CreateFolder(upd)' <20>ش<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
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 = aa_official_no&"_"&filename
|
||||
' <20><><EFBFBD><EFBFBD> <20≯<EFBFBD><CCB8><EFBFBD> <20><><EFBFBD>մϴ<D5B4>.
|
||||
file = Mid(filename, 1, instr(filename, ".") - 1)
|
||||
|
||||
'Response.Write filename&"///"&file
|
||||
'Response.End
|
||||
|
||||
' <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
|
||||
|
||||
if FileSizeCheck = 1 then
|
||||
query = ""
|
||||
query = query & " update T_OFFICIAL_NO set "
|
||||
query = query & " file_list = '" & filename & "', "
|
||||
query = query & " file_size = '" & filesize & "', "
|
||||
query = query & " input_user = '" & a_input_user & "' "
|
||||
query = query & " where official_no = '" & aa_official_no &"' "
|
||||
|
||||
'Response.Write query
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query
|
||||
dbin.Close
|
||||
'Alert_Back("<22><><EFBFBD><EFBFBD> <20><><EFBFBD>ε<EFBFBD> <20><><EFBFBD><EFBFBD>")
|
||||
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
|
||||
|
||||
'''log db<64><62> <20><><EFBFBD><EFBFBD>
|
||||
|
||||
set xup = nothing
|
||||
set fso = nothing
|
||||
|
||||
if filename <> "" Then
|
||||
%>
|
||||
<script>
|
||||
alert("<22><><EFBFBD><EFBFBD> ÷<><C3B7> <20><><EFBFBD><EFBFBD>");
|
||||
window.opener.location.reload();
|
||||
window.close();
|
||||
</script>
|
||||
<%
|
||||
End If
|
||||
if FileSizeCheck = 0 then '<27><><EFBFBD>ε<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ũ<>Ⱑ 5Mbyte <20>̻<EFBFBD><CCBB≯<EFBFBD>
|
||||
Alert_Back("÷<><C3B7> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ũ<>Ⱑ 20Mbyte<74><65><EFBFBD><EFBFBD> Ŀ<><C4BF> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ʽ<EFBFBD><CABD>ϴ<EFBFBD>")
|
||||
End If
|
||||
%>
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
<div class="content-header">
|
||||
<h1><3E><><EFBFBD><EFBFBD> <20><>ȣ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></h1>
|
||||
</div>
|
||||
<!-- /.content-header -->
|
||||
<!-- Main content -->
|
||||
<div class="content-body">
|
||||
<div class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row row-0">
|
||||
<div class="col-12">
|
||||
<form name="official_up" method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" name="official_no" id="official_no" value="<%=official_no %>" />
|
||||
<table class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td colspan="2" class="text-center h5 py-2"> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>ε<EFBFBD> (PDF)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="text-center"><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ</b> </td>
|
||||
<td> <%=official_no %></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="text-center"><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b> </td>
|
||||
<td> <%=official_client %></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="text-center"><b><3E><><EFBFBD><EFBFBD></b> </td>
|
||||
<td> <%=official_title %></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="text-center"><b><3E><><EFBFBD><EFBFBD> <20>μ<EFBFBD></b> </td>
|
||||
<td> <%=team_name %></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="text-center"><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b> </td>
|
||||
<td> <%=p_name %></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="text-center align-middle"><b><3E><><EFBFBD><EFBFBD> <20><><EFBFBD>ε<EFBFBD></b> </td>
|
||||
<td><input type="file" name="txtFileName" id="txtFileName" class='form-control'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<button type="button" class="btn btn-primary btn-block" onclick="js_up();"><3E><><EFBFBD><EFBFBD></button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.content -->
|
||||
<!-- REQUIRED SCRIPTS -->
|
||||
<script>
|
||||
$(function(){
|
||||
cutmenu();
|
||||
});
|
||||
|
||||
function js_up(x) {
|
||||
if (document.getElementById("txtFileName").value == "") {
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
return false;
|
||||
}else{
|
||||
official_up.target = "";
|
||||
official_up.action = "official_upload.asp";
|
||||
official_up.submit();
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
<!-- #include virtual = "include/footer.asp" -->
|
||||
82
other/password_Change.asp
Normal file
82
other/password_Change.asp
Normal file
@@ -0,0 +1,82 @@
|
||||
<!-- #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><>ȣ <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="formLogin" method="post" action="password_Change_ok.asp">
|
||||
<table style="width:500px;" class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td colspan="2" class='text-center p-2 h5'><3E><><EFBFBD><EFBFBD><EFBFBD>Ͻô<CFBD> <20><><EFBFBD>й<EFBFBD>ȣ<EFBFBD><C8A3> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ֽʽÿ<CABD>.</td>
|
||||
<tr>
|
||||
<td width="30%" class="text-center align-middle" ><3E>ű<EFBFBD> <20><><EFBFBD>й<EFBFBD>ȣ</td>
|
||||
<td><input type="password" class='form-control' name="txtPassword_new1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="text-center align-middle"><3E><><EFBFBD>й<EFBFBD>ȣ <20><><EFBFBD>Է<EFBFBD></td>
|
||||
<td><input type="password" class='form-control' name="txtPassword_new2"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" class='text-center p-2'><button type="button" class="btn btn-primary" onClick="chk_Login_Ok()"><3E><><EFBFBD><EFBFBD></button></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<span class="ml-2 d-block">* Ư<><C6AF><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(!@#$%^&+=) / <20><><EFBFBD><EFBFBD> / <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 6~15<31>ڸ<EFBFBD> <20>̳<EFBFBD><CCB3><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͻʽÿ<CABD>.</span>
|
||||
<span class="ml-2 d-block">* KON<4F><4E> <20>α<EFBFBD><CEB1><EFBFBD> <20>Ͻ÷<CFBD><C3B7><EFBFBD> <20><><EFBFBD>й<EFBFBD>ȣ 6<>ڸ<EFBFBD> <20>̻<EFBFBD><CCBB><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͻñ<CFBD> <20>ٶ<EFBFBD><D9B6>ϴ<EFBFBD>.</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.content -->
|
||||
<!-- REQUIRED SCRIPTS -->
|
||||
<script>
|
||||
function chkPwd(str) {
|
||||
var regex = /^.*(?=^.{6,15}$)(?=.*\d)(?=.*[a-zA-Z])(?=.*[!@#$%^&+=]).*$/;
|
||||
if (!regex.test(str)) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
function chk_Login_Ok(){
|
||||
var form = document.formLogin;
|
||||
var aa = form.txtPassword_new1.value;
|
||||
//<2F>űԺ<C5B1><D4BA>й<EFBFBD>ȣ
|
||||
if (form.txtPassword_new1.value == "" ) {
|
||||
alert("<22>űԺ<C5B1><D4BA>й<EFBFBD>ȣ<EFBFBD><C8A3> <20>Է<EFBFBD><D4B7><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>.");
|
||||
form.txtPassword_new1.focus();
|
||||
return false;
|
||||
} else {
|
||||
if (!chkPwd(aa)) {
|
||||
alert("Ư<><C6AF><EFBFBD><EFBFBD><EFBFBD><EFBFBD> / <20><><EFBFBD><EFBFBD> / <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 6~15<31>ڸ<EFBFBD> <20>̳<EFBFBD><CCB3><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͻʽÿ<CABD>.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
//<2F>űԺ<C5B1><D4BA>й<EFBFBD>ȣ2
|
||||
if (form.txtPassword_new2.value == "" ) {
|
||||
alert("<22>űԺ<C5B1><D4BA>й<EFBFBD>ȣ<EFBFBD><C8A3> <20>Է<EFBFBD><D4B7><EFBFBD> <20>ֽʽÿ<CABD>...");
|
||||
form.txtPassword_new2.focus();
|
||||
return false;
|
||||
}
|
||||
//<2F>űԺ<C5B1><D4BA>й<EFBFBD>ȣ2
|
||||
if (form.txtPassword_new1.value != form.txtPassword_new2.value ) {
|
||||
alert("<22>űԺ<C5B1><D4BA>й<EFBFBD>ȣ<EFBFBD><C8A3> <20><><EFBFBD><EFBFBD> <20>ٸ<EFBFBD><D9B8>ϴ<EFBFBD>....");
|
||||
form.txtPassword_new2.value = "";
|
||||
form.txtPassword_new2.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
form.submit();
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
<!-- #include virtual = "include/footer.asp" -->
|
||||
18
other/password_Change_ok.asp
Normal file
18
other/password_Change_ok.asp
Normal file
@@ -0,0 +1,18 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
change_pwd = Request.Form("txtPassword_new1")
|
||||
|
||||
Query = "update person set p_pass =convert(varbinary(50),pwdencrypt('" & change_pwd & "')), "
|
||||
query = query & " p_pass_new = '" & change_pwd & "' "
|
||||
query = query & " where p_no = '" & Session("user_number") & "'"
|
||||
'Response.Write query & "<br>"
|
||||
|
||||
adoconn.execute query
|
||||
Session.Abandon
|
||||
response.Cookies("p_no") = ""
|
||||
response.Cookies("p_ip") = ""
|
||||
%>
|
||||
<script>
|
||||
alert("<22><>ȣ<EFBFBD><C8A3> <20><><EFBFBD><EFBFBD> <20>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.\n<>ٽ<EFBFBD> <20>α<EFBFBD><CEB1><EFBFBD> <20><><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>.");
|
||||
location.href = "/login.asp";
|
||||
</script>
|
||||
45
other/rent_device_log.asp
Normal file
45
other/rent_device_log.asp
Normal file
@@ -0,0 +1,45 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
device_id = request("device_id")
|
||||
|
||||
Response.CharSet = "EUC-KR" '<27>ѱ<EFBFBD>
|
||||
Response.AddHeader "Pragma","no-cache"
|
||||
Response.AddHeader "cache-control", "no-staff"
|
||||
Response.Expires = -1
|
||||
|
||||
query = ""
|
||||
query = query & " SELECT ROW_NUMBER() OVER(ORDER BY D.ID) AS NO, D.ID, DU.ID as UID, D.T_RENT_DEVICE_MODEL, "
|
||||
query = query & " ISNULL(DU.P_CHILD_SN, '') AS P_CHILD_SN, "
|
||||
query = query & " ISNULL(VPM.P_SUBJECT, '') AS P_SUBJECT, "
|
||||
query = query & " ISNULL(DU.USE_ST_DT, '') AS USE_ST_DT,"
|
||||
query = query & " ISNULL(DU.USE_ED_DT, '') AS USE_ED_DT,"
|
||||
query = query & " ISNULL(DU.INSERT_USER, '') AS INSERT_USER,"
|
||||
query = query & " ISNULL(P.p_name, '') AS INSERT_USER_NAME,"
|
||||
query = query & " INSERT_DT, MODIFY_DT "
|
||||
query = query & " FROM project2.dbo.T_RENT D"
|
||||
query = query & " LEFT JOIN project2.dbo.T_RENT_USE DU ON D.ID = DU.RENT_DEVICE_ID"
|
||||
query = query & " LEFT JOIN project2.dbo.V_PROJECT_METHOD VPM ON DU.P_CHILD_SN = VPM.p_child_sn"
|
||||
query = query & " LEFT JOIN project2.dbo.V_Person P ON DU.INSERT_USER = P.p_no "
|
||||
query = query & " WHERE D.ID = " & device_id & " AND DU.USE_YN = 'N' "
|
||||
query = query & " ORDER BY MODIFY_DT DESC "
|
||||
|
||||
response.write "<table class='table table-sm table-sm2 table-bordered table-head tr-colors'>"
|
||||
response.write "<tr>"
|
||||
response.write " <td class='tit7' style='text-align:center; width:50%; font-weight:bold;'><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ</td>"
|
||||
response.write " <td class='tit7' style='text-align:center; width:20%; font-weight:bold;'><3E>뿩<EFBFBD>Ⱓ</td>"
|
||||
response.write " <td class='tit7' style='text-align:center; width:10%; font-weight:bold;'><3E>뿩<EFBFBD><EBBFA9>û<EFBFBD><C3BB></td>"
|
||||
response.write " <td class='tit7' style='text-align:center; width:20%; font-weight:bold;'><3E><><EFBFBD><EFBFBD><EFBFBD>Ͻ<EFBFBD></td>"
|
||||
response.write "</tr>"
|
||||
Rs.Open query, adoConn, 1
|
||||
do while not Rs.eof
|
||||
response.write "<tr>"
|
||||
response.write " <td class='tit7' align='left'>[" & Rs("P_CHILD_SN") & "] " & Rs("P_SUBJECT") & "</td>"
|
||||
response.write " <td class='tit7' align='center'>" & Rs("USE_ST_DT") & " ~ " & Rs("USE_ED_DT") & "</td>"
|
||||
response.write " <td class='tit7' align='center'>" & Rs("INSERT_USER_NAME") & "</td>"
|
||||
response.write " <td class='tit7' align='center'>" & Rs("MODIFY_DT") & "</td>"
|
||||
response.write "</tr>"
|
||||
Rs.movenext
|
||||
loop
|
||||
Rs.close
|
||||
response.write "</table>"
|
||||
%>
|
||||
35
other/rent_device_reg.asp
Normal file
35
other/rent_device_reg.asp
Normal file
@@ -0,0 +1,35 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
|
||||
function URLDecode(str)
|
||||
Dim objScript
|
||||
Set objScript = Server.CreateObject("ScriptControl")
|
||||
objScript.Language = "JavaScript"
|
||||
URLDecode = objScript.Eval("decodeURIComponent(""" & str & """.replace(/\+/g,"" ""))")
|
||||
Set objScript = Nothing
|
||||
end function
|
||||
p_child_sn = URLDecode(request("p_child_sn"))
|
||||
use_st_dt = request("use_st_dt")
|
||||
use_ed_dt = request("use_ed_dt")
|
||||
use_device_id = request("use_device_id")
|
||||
|
||||
Response.CharSet = "EUC-KR" '<27>ѱ<EFBFBD>
|
||||
Response.AddHeader "Pragma","no-cache"
|
||||
Response.AddHeader "cache-control", "no-staff"
|
||||
Response.Expires = -1
|
||||
query = ""
|
||||
query = query & " INSERT INTO project2.dbo.T_RENT_USE "
|
||||
query = query & " (RENT_DEVICE_ID, P_CHILD_SN, USE_ST_DT, USE_ED_DT, USE_YN, MODIFY_DT, INSERT_DT, INSERT_USER) VALUES "
|
||||
query = query & " (" & use_device_id & ", '" & p_child_sn & "', '" & use_st_dt & "', '" & use_ed_dt & "', 'Y', getdate(), getdate(), '" & session("User_number") & "'); "
|
||||
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query, i
|
||||
dbin.Close
|
||||
|
||||
if i = 1 Then
|
||||
response.Write "1"
|
||||
else
|
||||
response.Write "0"
|
||||
end if
|
||||
%>
|
||||
26
other/rent_device_return.asp
Normal file
26
other/rent_device_return.asp
Normal file
@@ -0,0 +1,26 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
|
||||
device_id = request("device_id")
|
||||
|
||||
Response.CharSet = "EUC-KR" '<27>ѱ<EFBFBD>
|
||||
Response.AddHeader "Pragma","no-cache"
|
||||
Response.AddHeader "cache-control", "no-staff"
|
||||
Response.Expires = -1
|
||||
|
||||
query = ""
|
||||
query = query & " UPDATE project2.dbo.T_RENT_USE "
|
||||
query = query & " SET USE_YN = 'N', MODIFY_DT = getdate() "
|
||||
query = query & " WHERE RENT_DEVICE_ID = " & device_id & " AND USE_YN = 'Y' "
|
||||
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query, i
|
||||
dbin.Close
|
||||
|
||||
if i = 1 Then
|
||||
response.Write "1"
|
||||
else
|
||||
response.Write "0"
|
||||
end if
|
||||
%>
|
||||
337
other/rent_device_status.asp
Normal file
337
other/rent_device_status.asp
Normal file
@@ -0,0 +1,337 @@
|
||||
<!-- #include virtual = "include/header.asp" -->
|
||||
<!-- #include virtual = "include/left.asp" -->
|
||||
<%
|
||||
Dim query, p_no
|
||||
p_no = session("User_Number")
|
||||
%>
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<style>
|
||||
input[type=button]{
|
||||
cursor:pointer;
|
||||
}
|
||||
.reg_device_btn{
|
||||
font-weight: bold;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.reg_device_btn.act{
|
||||
color:#fff;
|
||||
background-color:#000;
|
||||
}
|
||||
|
||||
.ret_device_btn{
|
||||
font-weight: bold;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
#device_status{
|
||||
width:100%;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
#device_status > tbody > tr > td{
|
||||
text-align:center;
|
||||
line-height: 20px;
|
||||
white-space: nowrap;
|
||||
vertical-align:middle;
|
||||
}
|
||||
#device_status > tbody > tr:first-child > td{
|
||||
text-align:center;
|
||||
font-weight:bold;
|
||||
padding:4px;
|
||||
}
|
||||
#device_status > tbody > tr:nth-child(n+2) > td:nth-child(4){
|
||||
text-align:left;
|
||||
}
|
||||
#device_status > tbody > tr:nth-child(n+2) > td:nth-child(4) span{
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
width: 360px;
|
||||
display: inline-block;
|
||||
vertical-align:middle;
|
||||
}
|
||||
#deviceModDialog table tr td {
|
||||
padding:4px;
|
||||
}
|
||||
|
||||
#deviceModDialog table tr td:first-child {
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
#regPrjDialog table tr td {
|
||||
padding:2px;
|
||||
text-align:center;
|
||||
}
|
||||
#regPrjDialog table tr:nth-child(n+2) td:nth-child(2) {
|
||||
text-align:left;
|
||||
}
|
||||
</style>
|
||||
<!-- Content Header (Page header) -->
|
||||
<div class="content-header">
|
||||
<h1><3E><><EFBFBD><EFBFBD> <20><><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">
|
||||
<div>
|
||||
<%
|
||||
dim chk_user
|
||||
|
||||
query = ""
|
||||
query = query & " SELECT NO, ID, T_RENT_DEVICE_MODEL, T_RENT_DEVICE_NUM, DEVICE_INFO, DEVICE_ETC, P_CHILD_SN, P_SUBJECT, "
|
||||
query = query & " USE_ST_DT, USE_ED_DT, INSERT_USER, INSERT_USER_NAME, "
|
||||
query = query & " (SELECT COUNT(*) FROM project2.dbo.T_RENT_USE WHERE USE_YN = 'N' AND RENT_DEVICE_ID = VDS.ID) AS LOG_CNT "
|
||||
query = query & " FROM project2.dbo.V_RENT_STATUS VDS "
|
||||
query = query & " order by T_RENT_DEVICE_MODEL asc , convert(int,T_RENT_DEVICE_NUM) asc "
|
||||
|
||||
adors.open query, adoconn, adopenstatic, adlockreadonly
|
||||
%>
|
||||
<table id="device_status" class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td style="width:3%;">No</td>
|
||||
<td style="width:10%;"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td style="width:15%;"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td style="width:33%;"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ</td>
|
||||
<td style="width:10%;"><3E>뿩<EFBFBD><EBBFA9><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td style="width:10%;"><3E>ݳ<EFBFBD><DDB3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td style="width:8%;"><3E>뿩 / <20>ݳ<EFBFBD></td>
|
||||
<td style="width:7%;"><3E>뿩<EFBFBD><EBBFA9>û<EFBFBD><C3BB></td>
|
||||
<td style="width:4%;"><3E><><EFBFBD><EFBFBD></td>
|
||||
</tr>
|
||||
<%
|
||||
|
||||
Do While Not adors.Eof
|
||||
chk_user = iif(adors("INSERT_USER") = cstr(session("User_Number")), true, false) ' insert_user<65><72> <20>α<EFBFBD><CEB1><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> true
|
||||
%>
|
||||
<tr style="height:36px;">
|
||||
<td ><%=adors("NO")%><input type="hidden" value="<%=adors("ID")%>" name="DEVICE_ID"/></td>
|
||||
<td ><% if adors("T_RENT_DEVICE_NUM") <> "" then %><%=adors("T_RENT_DEVICE_NUM")%><3E><> <% end if %><%=adors("T_RENT_DEVICE_MODEL")%></td>
|
||||
<td ><%=adors("DEVICE_INFO")%></td>
|
||||
<td ><span><%=iif(adors("P_CHILD_SN") = "", "", "[" & adors("P_CHILD_SN") & "] ")%><%=adors("P_SUBJECT")%></span></td>
|
||||
<td ><%=adors("USE_ST_DT")%></td>
|
||||
<td ><%=adors("USE_ED_DT")%></td>
|
||||
<td ><%
|
||||
if adors("P_CHILD_SN") <> "" Then
|
||||
if chk_user = true Then
|
||||
%>
|
||||
<input type="button" value="<22>ݳ<EFBFBD>" class="ret_device_btn" data-device_id="<%=adors("ID")%>"/><%
|
||||
End if
|
||||
else
|
||||
%>
|
||||
<input type="button" value="<22>뿩" class="reg_device_btn" />
|
||||
<%
|
||||
end if
|
||||
%></td>
|
||||
<td ><%=adors("INSERT_USER_NAME")%></td>
|
||||
<td ><%
|
||||
if cint(adors("LOG_CNT")) > 0 then
|
||||
%><input type="button" value="<22><>" id="device_log" style="cursor:pointer;margin:0;padding:1px 10px;border:0;background:rgba(255,255,255,0);" data-rowinf="<%=adoRs("ID")%>"/><%
|
||||
end if
|
||||
%></td>
|
||||
</tr>
|
||||
<%
|
||||
adors.MoveNext
|
||||
Loop
|
||||
%>
|
||||
</table>
|
||||
</div>
|
||||
<%
|
||||
adors.close
|
||||
%>
|
||||
<div id="regPrjDialog">
|
||||
<table class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td style="width:8%"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ<EFBFBD></td>
|
||||
<td style="width:37%"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><></td>
|
||||
<td style="width:15%"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td style="width:15%"><3E><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD></td>
|
||||
</tr>
|
||||
<%
|
||||
Query = " SELECT p_child_sn, p_subject, p_method_nm, p_intention, ISNULL(D.T_name, '') as d_name "
|
||||
Query = Query & " FROM V_PROJECT_METHOD VPM LEFT OUTER JOIN v_Department D "
|
||||
Query = Query & " ON VPM.p_rsch_dept = D.before_t_cd1 "
|
||||
Query = Query & " WHERE ISNULL(p_child_sn, '') <> '' "
|
||||
Query = Query & " AND p_progress_status >= '006' "
|
||||
Query = Query & " AND (p_research_complete + p_field_complete + p_dp_complete) IS NULL "
|
||||
Query = Query & " AND ( "
|
||||
Query = Query & " p_rsch_1_a = '" & p_no & "' OR p_rsch_2_a = '" & p_no & "' OR p_rsch_3_a = '" & p_no & "' OR p_rsch_4_a = '" & p_no & "' OR "
|
||||
Query = Query & " p_rsch_1_b = '" & p_no & "' OR p_rsch_2_b = '" & p_no & "' OR p_rsch_3_b = '" & p_no & "' OR p_rsch_4_b = '" & p_no & "' OR "
|
||||
Query = Query & " p_rsch_1_c = '" & p_no & "' OR p_rsch_2_c = '" & p_no & "' OR p_rsch_3_c = '" & p_no & "' OR p_rsch_4_c = '" & p_no & "' OR "
|
||||
Query = Query & " p_sv_1 = '" & p_no & "' OR p_sv_2 = '" & p_no & "' OR p_sv_3 = '" & p_no & "' OR p_sv_4 = '" & p_no & "' OR "
|
||||
Query = Query & " p_code_1 = '" & p_no & "' OR p_code_2 = '" & p_no & "' OR p_code_3 = '" & p_no & "' OR p_code_4 = '" & p_no & "' OR "
|
||||
Query = Query & " p_verify_1 = '" & p_no & "' OR p_verify_2 = '" & p_no & "' OR p_verify_3 = '" & p_no & "' OR p_verify_4 = '" & p_no & "' OR "
|
||||
Query = Query & " p_dp_1 = '" & p_no & "' OR p_dp_2 = '" & p_no & "' OR p_dp_3 = '" & p_no & "' OR p_dp_4 = '" & p_no & "' OR "
|
||||
Query = Query & " p_it_1 = '" & p_no & "' OR p_it_2 = '" & p_no & "' OR p_it_3 = '" & p_no & "' OR p_it_4 = '" & p_no & "' OR "
|
||||
Query = Query & " p_supp_1 = '" & p_no & "' OR p_supp_2 = '" & p_no & "' OR p_supp_3 = '" & p_no & "' OR p_supp_4 = '" & p_no & "' "
|
||||
Query = Query & " ) "
|
||||
Query = Query & " ORDER BY p_child_sn "
|
||||
|
||||
|
||||
Rs.Open Query, adoConn, 1
|
||||
for i = 1 to Rs.RecordCount
|
||||
%>
|
||||
<tr>
|
||||
<td ><%=Rs("p_child_sn")%></td>
|
||||
<td ><a href="javascript:selectPrj('<%=Rs("p_child_sn")%>','<%=Rs("p_subject")%>')"><%=Rs("p_subject")%></a></td>
|
||||
<td ><%=Rs("p_method_nm")%></td>
|
||||
<td ><%=Rs("d_name")%></td>
|
||||
</tr>
|
||||
<%
|
||||
Rs.MoveNext
|
||||
next
|
||||
Rs.Close
|
||||
%>
|
||||
<tr>
|
||||
<td colspan="4"><3E><>Ÿ : <input type='text' id='etc_prj' value='' /> <a href="javascript:selectPrj('etc_prj','')"><3E><><EFBFBD><EFBFBD></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.content -->
|
||||
<!-- REQUIRED SCRIPTS -->
|
||||
<script>
|
||||
$.ui.dialog.prototype._focusTabbable = $.noop;
|
||||
|
||||
$(function(){
|
||||
regPrjDialog = $("#regPrjDialog").dialog({
|
||||
autoOpen: false,
|
||||
modal: true,
|
||||
resizable: false,
|
||||
height: 600,
|
||||
width: 800,
|
||||
title: '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD>',
|
||||
close: function(){
|
||||
$("#etc_prj").val("");
|
||||
}
|
||||
});
|
||||
|
||||
$(".reg_device_btn").on("click", function(){
|
||||
var parentTr = $(this).parents("tr").eq(0);
|
||||
if($(this).hasClass("act")){
|
||||
if($("#reg_p_child_sn").val() == "" && $("#use_st_dt").val() == "" && $("#use_ed_dt").val() == ""){
|
||||
$(this).removeClass("act");
|
||||
parentTr.children("td").eq(3).html('');
|
||||
parentTr.children("td").eq(4).html('');
|
||||
parentTr.children("td").eq(5).html('');
|
||||
return;
|
||||
}
|
||||
if($("#reg_p_child_sn").val() == ""){
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>.");
|
||||
return;
|
||||
}
|
||||
if($("#use_st_dt").val() == "" || $("#use_ed_dt").val() == ""){
|
||||
alert("<22>뿩<EFBFBD>Ⱓ<EFBFBD><E2B0A3> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>.");
|
||||
return;
|
||||
}
|
||||
if($("#use_st_dt").val() > $("#use_ed_dt").val()){
|
||||
alert("<22>뿩<EFBFBD>Ⱓ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n<><6E><EFBFBD><EFBFBD><EFBFBD>Ϻ<EFBFBD><CFBA><EFBFBD> <20>۾ƾ<DBBE><C6BE>մϴ<D5B4>.");
|
||||
return;
|
||||
}
|
||||
if(confirm("<22>뿩 <20><><EFBFBD><EFBFBD><EFBFBD>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?")){
|
||||
$.ajax({
|
||||
url: './rent_device_reg.asp',
|
||||
type: 'POST',
|
||||
data: {
|
||||
'p_child_sn' : encodeURIComponent($("#reg_p_child_sn").val()),
|
||||
'use_st_dt' : $("#use_st_dt").val(),
|
||||
'use_ed_dt' : $("#use_ed_dt").val(),
|
||||
'use_device_id' : parentTr.find("input[name='DEVICE_ID']").val()
|
||||
},
|
||||
success: function(result){
|
||||
if(result == "1"){ // <20><><EFBFBD><EFBFBD>
|
||||
$(this).removeClass("act");
|
||||
location.reload();
|
||||
}else{
|
||||
alert("Web Service Error !!");
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}else{
|
||||
if($(".act").length > 0){
|
||||
$(".act").parents("tr").eq(0).children("td").eq(3).html("");
|
||||
$(".act").parents("tr").eq(0).children("td").eq(4).html("");
|
||||
$(".act").parents("tr").eq(0).children("td").eq(5).html("");
|
||||
$(".act").removeClass("act");
|
||||
}
|
||||
parentTr.children("td").eq(3).html('<input type="hidden" id="reg_p_child_sn" />'+
|
||||
'<input type="text" id="reg_p_subject" class="project_search" style="cursor:pointer; width:100%;" '+
|
||||
'palceHolder="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>" readonly/>');
|
||||
parentTr.children("td").eq(4).html('<input type="text" id="use_st_dt" style="cursor:pointer; width:100px;text-align:center;" readonly/>');
|
||||
parentTr.children("td").eq(5).html('<input type="text" id="use_ed_dt" style="cursor:pointer; width:100px;text-align:center;" readonly/>');
|
||||
$(this).addClass("act");
|
||||
$("#use_st_dt").datepicker();
|
||||
$("#use_ed_dt").datepicker();
|
||||
$(".project_search").click(function(){
|
||||
regPrjDialog.dialog("open");
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
$(".ret_device_btn").click(function () {
|
||||
if(confirm("<22>ݳ<EFBFBD>ó<EFBFBD><C3B3><EFBFBD>ϰڽ<CFB0><DABD>ϱ<EFBFBD>?")){
|
||||
$.ajax({
|
||||
url: './rent_device_return.asp',
|
||||
data: {
|
||||
'device_id' : $(this).data("device_id")
|
||||
},
|
||||
success: function(result){
|
||||
if(result == "1"){ // <20><><EFBFBD><EFBFBD>
|
||||
location.reload();
|
||||
}else{
|
||||
alert("Web Service Error !!");
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
$("input[id=device_log]").click(function (){
|
||||
var obj = $(this);
|
||||
if(obj.val() == "<22><>"){
|
||||
obj.val("<22><>");
|
||||
obj.parent().parent().next("tr").remove();
|
||||
}else{
|
||||
var device_id = $(this).data("rowinf")
|
||||
$.ajax({
|
||||
url: './rent_device_log.asp',
|
||||
data: {
|
||||
'device_id' : device_id
|
||||
},
|
||||
success: function(result){
|
||||
if(result != ""){
|
||||
obj.parent().parent().after("<tr><td colspan='" + obj.parent().parent().find("td").length + "' align='right'>" + result + "</td></tr>");
|
||||
obj.val("<22><>");
|
||||
}else{
|
||||
alert("Web Service Error !!");
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
function selectPrj(p_child_sn, p_subject){
|
||||
if(p_child_sn == 'etc_prj'){
|
||||
$("#reg_p_child_sn").val($("#etc_prj").val());
|
||||
$("#reg_p_subject").val("["+$("#etc_prj").val()+"]"+p_subject);
|
||||
}else{
|
||||
$("#reg_p_child_sn").val(p_child_sn);
|
||||
$("#reg_p_subject").val("["+p_child_sn+"]"+p_subject);
|
||||
}
|
||||
|
||||
regPrjDialog.dialog("close");
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
<!-- #include virtual = "include/footer.asp" -->
|
||||
31
other/seal_delok.asp
Normal file
31
other/seal_delok.asp
Normal file
@@ -0,0 +1,31 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
|
||||
s_type = request("s_type")
|
||||
s_r_date = request("s_r_date")
|
||||
id = request("id")
|
||||
|
||||
query = " UPDATE T_SEAL_RES "
|
||||
query = query & " SET "
|
||||
query = query & " use_div = '0' "
|
||||
query = query & " WHERE id = '" & id & "' "
|
||||
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query
|
||||
dbin.Close
|
||||
%>
|
||||
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
|
||||
<form name="seal" method="post">
|
||||
<input type="hidden" name="s_type" value="<%=s_type%>">
|
||||
<input type="hidden" name="condate" value="<%=s_r_date%>">
|
||||
</form>
|
||||
<script>
|
||||
alert('<27><><EFBFBD>ҵǾ<D2B5><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>');
|
||||
|
||||
document.seal.action = 'seal_view.asp';
|
||||
document.seal.submit();
|
||||
</script>
|
||||
<%
|
||||
set dbin = nothing
|
||||
%>
|
||||
31
other/seal_status.asp
Normal file
31
other/seal_status.asp
Normal file
@@ -0,0 +1,31 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
|
||||
id = request("id")
|
||||
s_status = request("s_status")
|
||||
s_r_date = request("s_r_date")
|
||||
|
||||
query = " UPDATE T_SEAL_RES "
|
||||
query = query & " SET "
|
||||
query = query & " s_status = '" & s_status & "' "
|
||||
query = query & " WHERE id = '" & id & "' "
|
||||
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query
|
||||
dbin.Close
|
||||
%>
|
||||
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
|
||||
<form name="seal" method="post">
|
||||
<input type="hidden" name="sdate" value="<%=s_r_date %>" />
|
||||
</form>
|
||||
<script>
|
||||
alert('<27><><EFBFBD>°<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.');
|
||||
|
||||
document.seal.action = 'seal_week.asp';
|
||||
document.seal.submit();
|
||||
|
||||
</script>
|
||||
<%
|
||||
set dbin = nothing
|
||||
%>
|
||||
317
other/seal_view.asp
Normal file
317
other/seal_view.asp
Normal file
@@ -0,0 +1,317 @@
|
||||
<!-- #include virtual = "include/header.asp" -->
|
||||
<!-- #include virtual = "include/left.asp" -->
|
||||
<%
|
||||
if request("s_type") = "" then
|
||||
s_type = 1
|
||||
else
|
||||
s_type = request("s_type")
|
||||
end if
|
||||
s_r_date = request("condate")
|
||||
x = request("x")
|
||||
|
||||
dim tmp_s_type(5,2)
|
||||
|
||||
tmp_s_type(1,1) = "1"
|
||||
tmp_s_type(1,2) = "(KRI)1<><31> <20><><EFBFBD><EFBFBD><EFBFBD>ΰ<EFBFBD>"
|
||||
|
||||
tmp_s_type(2,1) = "2"
|
||||
tmp_s_type(2,2) = "(KRI)2<><32> <20><><EFBFBD><EFBFBD><EFBFBD>ΰ<EFBFBD>"
|
||||
|
||||
tmp_s_type(3,1) = "3"
|
||||
tmp_s_type(3,2) = "(KRI)3<><33> <20><><EFBFBD><EFBFBD><EFBFBD>ΰ<EFBFBD>"
|
||||
|
||||
tmp_s_type(4,1) = "4"
|
||||
tmp_s_type(4,2) = "(KRC)1<><31> <20><><EFBFBD><EFBFBD><EFBFBD>ΰ<EFBFBD>"
|
||||
|
||||
tmp_s_type(5,1) = "5"
|
||||
tmp_s_type(5,2) = "(KRC)2<><32> <20><><EFBFBD><EFBFBD><EFBFBD>ΰ<EFBFBD>"
|
||||
%>
|
||||
<!-- 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="seal" method="post">
|
||||
<input type="hidden" name="s_type" value="<%=s_type%>">
|
||||
<input type="hidden" name="s_r_date" value="<%=s_r_date%>">
|
||||
<input type="hidden" name="tmp_scode" value="<%=tmp_scode%>">
|
||||
<input type="hidden" name="st_posi">
|
||||
<input type="hidden" name="ed_posi">
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td class='font-weight-bold' style='font-size:16px;'><3E><>¥ : <%=s_r_date%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='font-weight-bold' style='font-size:16px;'><3E><><EFBFBD><EFBFBD> : <%=tmp_s_type(s_type,2)%> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȳ<EFBFBD>Դϴ<D4B4>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>* <20>ϴ<EFBFBD> <20><><EFBFBD><EFBFBD> <20>̿<EFBFBD><CCBF>Ͻø<CFBD>, <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><>Ȳ<EFBFBD><C8B2> <20><><EFBFBD><EFBFBD> <20><> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>. <20>ְ<EFBFBD><D6B0><EFBFBD>Ȳ<EFBFBD><C8B2><EFBFBD><EFBFBD> <20><><EFBFBD>ư<EFBFBD><C6B0>÷<EFBFBD><C3B7><EFBFBD>, <20>ְ<EFBFBD><D6B0><EFBFBD>Ȳ <20><><EFBFBD><EFBFBD> Ŭ<><C5AC><EFBFBD><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<ul class="nav nav-tabs mb-0">
|
||||
<li class="nav-item"><button onclick="subit('2')" class="nav-link p-2" type="button"><3E>ְ<EFBFBD><D6B0><EFBFBD>Ȳ</button></li>
|
||||
<% for i = 1 to ubound(tmp_s_type) %>
|
||||
<li class="nav-item"><button onclick="subit('3', '<%=tmp_s_type(i, 1)%>')" class="nav-link p-2 <%= iif(cint(tmp_s_type(i, 1)) = cint(s_type), "active", "")%>" type="button"><%=tmp_s_type(i, 2)%></button></li>
|
||||
<% next %>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td width="15%" align="center" ><3E>ð<EFBFBD></td>
|
||||
<td width="5%" align="center" ><3E><><EFBFBD><EFBFBD></td>
|
||||
<td width="5%" align="center" ><3E><><EFBFBD><EFBFBD></td>
|
||||
<td width="75%" align="center" ><3E><><EFBFBD><EFBFBD></td>
|
||||
</tr>
|
||||
<%
|
||||
Dim tmp_min(2)
|
||||
tmp_scode = 1
|
||||
tmp_code = 0
|
||||
tmp_min(0) = "00"
|
||||
tmp_min(1) = "30"
|
||||
for i = 9 to 22
|
||||
for j = 1 to 2
|
||||
if i <> 22 or j <> 2 then
|
||||
if tmp_code = 0 then
|
||||
query = " SELECT TSR.id, s_type, s_depart, team_name as s_depart_name, s_p_no, p_name as s_p_name, s_r_date, s_rs_time, s_re_time, s_rs_time_cd, s_re_time_cd, s_cd_gap, s_client, s_comment, s_status "
|
||||
query = query & " FROM T_SEAL_RES TSR LEFT OUTER JOIN TEAM_GROUP TG ON TSR.s_depart = TG.team_cd and TG.div_use = '1' "
|
||||
query = query & " LEFT OUTER JOIN PERSON P ON TSR.s_p_no = P.p_no "
|
||||
query = query & " WHERE s_r_date='" & s_r_date & "' "
|
||||
query = query & " AND s_type='" & s_type & "' "
|
||||
query = query & " AND use_div = '1' "
|
||||
query = query & " ORDER BY CAST(s_rs_time_cd AS int) "
|
||||
|
||||
Adors.Open query, adoConn, 1
|
||||
if Adors.RecordCount > 0 then
|
||||
tmp_code = 0
|
||||
for Adors_cnt = 1 to Adors.RecordCount
|
||||
if tmp_scode >= int(Adors("s_rs_time_cd")) AND tmp_scode <= int(Adors("s_re_time_cd")) then
|
||||
s_re_time_cd = int(Adors("s_re_time_cd"))
|
||||
tmp_code = int(Adors("s_cd_gap"))
|
||||
tmp_client = Adors("s_client")
|
||||
tmp_comment = Adors("s_comment")
|
||||
tmp_depart = Adors("s_depart_name")
|
||||
tmp_name = Adors("s_p_name")
|
||||
tmp_namecode = Adors("s_p_no")
|
||||
tmp_sn = Adors("id")
|
||||
tmp_chk = 1
|
||||
tmp_status = Adors("s_status")
|
||||
exit for
|
||||
end if
|
||||
|
||||
Adors.MoveNext
|
||||
next
|
||||
end if
|
||||
Adors.Close
|
||||
end if
|
||||
%>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<%=right("0" & i, 2)%>:<%=tmp_min(j - 1)%> ~ <%=right("0" & i + int(1 - (j mod 2)), 2)%>:<%=tmp_min(j mod 2)%>
|
||||
</td>
|
||||
<td align="center">
|
||||
<input type="radio" class="none" name="s_rs_time_cd" value="<%=tmp_scode%>" onClick="autofnc('1','<%=tmp_scode%>')" <% if tmp_code > 0 then %> disabled <% end if %>>
|
||||
</td>
|
||||
<td align="center">
|
||||
<input type="radio" class="none" name="s_re_time_cd" value="<%=tmp_scode%>" onClick="autofnc('2','<%=tmp_scode%>')" disabled>
|
||||
</td>
|
||||
<%
|
||||
if tmp_code = 0 then
|
||||
%>
|
||||
<td id="tmp_<%=tmp_scode%>" align="left">
|
||||
<input type="hidden" name="s_div_<%=tmp_scode%>" id="s_div_<%=tmp_scode%>" value="" />
|
||||
<input type="hidden" name="s_cli_prj_<%=tmp_scode%>" id="s_cli_prj_<%=tmp_scode%>" value="" />
|
||||
<input type="text" name="s_client_<%=tmp_scode%>" style="display:none;width:150px;cursor:pointer;" onclick="c_prj_sel('s_div_<%=tmp_scode%>', 's_cli_prj_<%=tmp_scode%>', 's_client_<%=tmp_scode%>');" readonly />
|
||||
<img src="/images/common/btn_smallsrch2.gif" style="display:none;vertical-align:top;cursor:pointer;" width="18px" name="s_btn_<%=tmp_scode%>" onclick="c_prj_sel('s_div_<%=tmp_scode%>', 's_cli_prj_<%=tmp_scode%>', 's_client_<%=tmp_scode%>');" />
|
||||
<input type="text" name="s_comment_<%=tmp_scode%>" style="display:none;width:400px;" onKeyPress="subit('4',this)" onKeyUp="chrchk('<%=tmp_scode%>')" />
|
||||
</td>
|
||||
<%
|
||||
else
|
||||
if tmp_chk = 1 then
|
||||
%>
|
||||
<td id="tmp_<%=tmp_scode%>" align="left" rowspan="<%=tmp_code%>" class='align-middle'>
|
||||
<p style="line-height:150%;margin-left:5.0pt;">
|
||||
<font color="blue"><%=tmp_depart%></font> - <font color="black"><b><%=tmp_name%></b></font> :
|
||||
<% if tmp_namecode = cstr(session("User_Number")) and tmp_status = "0" then %>
|
||||
[<a href="javascript:delit('<%=tmp_sn%>')"><font color="red"><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></font></a>]
|
||||
<% end if %>
|
||||
<font color="#FF4000"><b><%=tmp_client %></b></font>
|
||||
<%=tmp_comment%>
|
||||
</p>
|
||||
</td>
|
||||
<%
|
||||
tmp_chk = 0
|
||||
end if
|
||||
tmp_code = tmp_code - 1
|
||||
end if
|
||||
%>
|
||||
</tr>
|
||||
<%
|
||||
tmp_scode = tmp_scode + 1
|
||||
end if
|
||||
next
|
||||
next
|
||||
%>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" style="padding:10 0 0 0">
|
||||
<img src="/images/common/btn_input.jpg" align="absmiddle" onClick="subit('1')" style="CURSOR:pointer;">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.content -->
|
||||
<!-- REQUIRED SCRIPTS -->
|
||||
<script>
|
||||
$(function(){
|
||||
currentMenu("/other/seal_week.asp", "");
|
||||
});
|
||||
|
||||
function chrchk(z){
|
||||
var m_Sp = /[$\\@\\\#%\^\&\{\}\`\-\=\|\/\;\"\']/;
|
||||
var m_val = document.all['s_comment_' + z].value;
|
||||
var strLen = m_val.length;
|
||||
var m_char = m_val.charAt((strLen) - 1);
|
||||
if(m_char.search(m_Sp) != -1){
|
||||
alert("Ư<><C6AF><EFBFBD><EFBFBD><EFBFBD>ڰ<EFBFBD> <20>ԷµǾ<C2B5><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
|
||||
document.all['s_comment_' + z].value = m_val.substring(0, eval(strLen)-1);
|
||||
document.all['s_comment_' + z].focus();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
function autofnc(a, b){
|
||||
var tmp_radio_cnt;
|
||||
tmp_radio_cnt = document.seal.s_re_time_cd.length;
|
||||
tmp_a = document.seal.st_posi.value;
|
||||
tmp_b = document.seal.ed_posi.value;
|
||||
|
||||
if (a == 1){
|
||||
document.seal.st_posi.value = b;
|
||||
|
||||
if (tmp_b != ''){
|
||||
document.seal.s_re_time_cd[parseInt(tmp_b) - 1].checked = false;
|
||||
}
|
||||
|
||||
for (i = 0; i < parseInt(tmp_radio_cnt) - 1; i++){
|
||||
document.seal.s_re_time_cd[i].disabled = true;
|
||||
}
|
||||
|
||||
for (i = parseInt(b) - 1; i < tmp_radio_cnt; i++){
|
||||
if (document.seal.s_rs_time_cd[i].disabled == true){
|
||||
break;
|
||||
}else{
|
||||
document.seal.s_re_time_cd[i].disabled = false;
|
||||
document.seal.s_re_time_cd[i].checked = false;
|
||||
}
|
||||
}
|
||||
|
||||
if (document.seal.ed_posi.value != ''){
|
||||
document.all['s_comment_' + document.seal.ed_posi.value].value = '';
|
||||
document.all['s_comment_' + document.seal.ed_posi.value].style.display = 'none';
|
||||
|
||||
document.all['s_client_' + document.seal.ed_posi.value].value = '';
|
||||
document.all['s_client_' + document.seal.ed_posi.value].style.display = 'none';
|
||||
|
||||
document.all['s_btn_' + document.seal.ed_posi.value].style.display = 'none';
|
||||
}
|
||||
}else if (a == 2){
|
||||
var tmp_b;
|
||||
|
||||
tmp_b = document.seal.ed_posi.value;
|
||||
document.seal.ed_posi.value = b;
|
||||
|
||||
if (tmp_b != ''){
|
||||
document.all['s_comment_' + tmp_b].value = '';
|
||||
document.all['s_comment_' + tmp_b].style.display = 'none';
|
||||
|
||||
document.all['s_client_' + tmp_b].value = '';
|
||||
document.all['s_client_' + tmp_b].style.display = 'none';
|
||||
|
||||
document.all['s_btn_' + tmp_b].style.display = 'none';
|
||||
}
|
||||
|
||||
document.all['s_comment_' + b].style.display = '';
|
||||
document.all['s_client_' + b].style.display = '';
|
||||
|
||||
document.all['s_btn_' + b].style.display = '';
|
||||
}
|
||||
}
|
||||
|
||||
function subit(a,b){
|
||||
if (a == 1){
|
||||
var tmp_check = 0;
|
||||
var tmp_radio_cnt;
|
||||
tmp_radio_cnt = document.seal.s_re_time_cd.length;
|
||||
|
||||
for (i = 0; i < tmp_radio_cnt; i++){
|
||||
if (document.seal.s_rs_time_cd[i].checked == true){
|
||||
tmp_check = 1;
|
||||
}
|
||||
}
|
||||
|
||||
if (tmp_check != 1){
|
||||
alert('<27><><EFBFBD>۽ð<DBBD><C3B0><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>');
|
||||
return false;
|
||||
}
|
||||
|
||||
tmp_check = 0;
|
||||
for (i = 0; i < tmp_radio_cnt; i++){
|
||||
if (document.seal.s_re_time_cd[i].checked == true){
|
||||
tmp_check = 1;
|
||||
}
|
||||
}
|
||||
|
||||
if (tmp_check != 1){
|
||||
alert('<27><><EFBFBD><EFBFBD><EFBFBD>ð<EFBFBD><C3B0><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>');
|
||||
return false;
|
||||
}
|
||||
|
||||
document.seal.action = 'seal_writeok.asp';
|
||||
document.seal.submit();
|
||||
}else if (a == 2){
|
||||
document.seal.action = 'seal_week.asp?sdate=<%=s_r_date%>';
|
||||
document.seal.submit();
|
||||
}else if (a == 3){
|
||||
location.href = 'seal_view.asp?condate=<%=s_r_date%>&s_type=' + b;
|
||||
}else if (a == 4){
|
||||
if(event.keyCode==13) subit(1);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
function delit(a){
|
||||
tmp_ok = confirm('<27><><EFBFBD><EFBFBD><EFBFBD>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?');
|
||||
|
||||
if (tmp_ok == true){
|
||||
document.seal.action = 'seal_delok.asp?id=' + a;
|
||||
document.seal.submit();
|
||||
}
|
||||
}
|
||||
|
||||
function c_prj_sel(obj_type, obj_prj, obj_cli) {
|
||||
var url = "/project_list/project_other_list.asp?obj_type=" + obj_type + "&obj_prj=" + obj_prj + "&obj_cli=" + obj_cli;
|
||||
window.open(url, "wins", "left=50, top=50, menubar=no, location=no, status=no, toolbar=no, width=850, height=600, scrollbars=yes ,resizable=no");
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
<!-- #include virtual = "include/footer.asp" -->
|
||||
216
other/seal_week.asp
Normal file
216
other/seal_week.asp
Normal file
@@ -0,0 +1,216 @@
|
||||
<!-- #include virtual = "include/header.asp" -->
|
||||
<!-- #include virtual = "include/left.asp" -->
|
||||
<%
|
||||
If tmp_support_chk = "1" Then
|
||||
query = ""
|
||||
query = query & " UPDATE T_SEAL_RES "
|
||||
query = query & " SET support_check = '1' "
|
||||
query = query & " WHERE support_check = '0' "
|
||||
|
||||
adoConn.Execute query
|
||||
End If
|
||||
|
||||
if request("s_type") = "" then
|
||||
s_type = 1
|
||||
else
|
||||
s_type = request("s_type")
|
||||
end if
|
||||
|
||||
if request("sdate") = "" then
|
||||
tmp_sdate = date()
|
||||
else
|
||||
tmp_sdate = request("sdate")
|
||||
|
||||
if len(tmp_sdate) <= 9 then
|
||||
tmp_sdate = tmp_sdate & "-" & day(date())
|
||||
end if
|
||||
end if
|
||||
|
||||
tmp_sdate = cdate(tmp_sdate) - (weekday(cdate(tmp_sdate)) - 1)
|
||||
tmp_edate = cdate(tmp_sdate) + (7 - weekday(cdate(tmp_sdate)))
|
||||
|
||||
dim tmp_s_type(5,3)
|
||||
|
||||
tmp_s_type(1,1) = "1"
|
||||
tmp_s_type(1,2) = "(KRI)1<><31> <20><><EFBFBD><EFBFBD><EFBFBD>ΰ<EFBFBD>"
|
||||
tmp_s_type(1,3) = "1"
|
||||
|
||||
tmp_s_type(2,1) = "2"
|
||||
tmp_s_type(2,2) = "(KRI)2<><32> <20><><EFBFBD><EFBFBD><EFBFBD>ΰ<EFBFBD>"
|
||||
tmp_s_type(2,3) = "1"
|
||||
|
||||
tmp_s_type(3,1) = "3"
|
||||
tmp_s_type(3,2) = "(KRI)3<><33> <20><><EFBFBD><EFBFBD><EFBFBD>ΰ<EFBFBD>"
|
||||
tmp_s_type(3,3) = "1"
|
||||
|
||||
tmp_s_type(4,1) = "4"
|
||||
tmp_s_type(4,2) = "(KRC)1<><31> <20><><EFBFBD><EFBFBD><EFBFBD>ΰ<EFBFBD>"
|
||||
tmp_s_type(4,3) = "1"
|
||||
|
||||
tmp_s_type(5,1) = "5"
|
||||
tmp_s_type(5,2) = "(KRC)2<><32> <20><><EFBFBD><EFBFBD><EFBFBD>ΰ<EFBFBD>"
|
||||
tmp_s_type(5,3) = "1"
|
||||
|
||||
query = " SELECT s_type FROM T_SEAL_RES "
|
||||
query = query & " WHERE use_div = '1' "
|
||||
query = query & " AND s_r_date between '" & tmp_sdate & "' and '" & tmp_edate & "' "
|
||||
query = query & " AND s_status = '1' "
|
||||
query = query & " GROUP BY s_type "
|
||||
query = query & " ORDER BY s_type "
|
||||
Adors.Open query, adoConn, 1
|
||||
If Adors.recordCount > 0 Then
|
||||
For i=1 To Adors.recordCount
|
||||
tmp_s_type(cint(Adors("s_type")), 3) = "0"
|
||||
Adors.MoveNext
|
||||
Next
|
||||
End If
|
||||
Adors.Close
|
||||
%>
|
||||
<!-- 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="seal" method="post">
|
||||
<input type="hidden" name="s_type" value="<%=s_type%>">
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td align="center" class="pb-2">
|
||||
<button type="button" class='btn btn-primary w-25 m-0' onClick="subit('<%=tmp_sdate - 7%>')"><i class='fas fa-arrow-left'></i></button><span class='font-weight-bold align-middle d-inline-block w-50 text-center m-0'><%=tmp_sdate%> ~ <%=tmp_edate%></span><button type="button" class='btn btn-primary w-25 m-0' onClick="subit('<%=tmp_sdate + 7%>')"><i class='fas fa-arrow-right'></i></button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr height="25px">
|
||||
<td width="15%" align="center" ><3E>Ͻ<EFBFBD></td>
|
||||
<td width="15%" align="center" ><3E><><EFBFBD><EFBFBD></td>
|
||||
<td width="15%" align="center" ><3E>ð<EFBFBD></td>
|
||||
<td width="55%" align="center" ><3E><><EFBFBD><EFBFBD></td>
|
||||
</tr>
|
||||
<% for i = 0 to 6 %>
|
||||
<tr height="38px">
|
||||
<td class="text-center align-middle">
|
||||
<a href="seal_view.asp?condate=<%=tmp_sdate + i%>&s_type=<%=s_type%>">
|
||||
<%=replace(right(tmp_sdate + i, 5), "-", "/")%> (<%=left(WeekDayName(weekday(tmp_sdate + i)),1)%>)
|
||||
</a>
|
||||
</td>
|
||||
<%
|
||||
query = " SELECT TSR.id, s_type, s_depart, team_name as s_depart_name, s_p_no, p_name as s_p_name, s_r_date, s_rs_time, s_re_time, s_rs_time_cd, s_re_time_cd, s_cd_gap, s_client, s_comment, s_status "
|
||||
query = query & " FROM T_SEAL_RES TSR LEFT OUTER JOIN TEAM_GROUP TG ON TSR.s_depart = TG.team_cd and TG.div_use = '1' "
|
||||
query = query & " LEFT OUTER JOIN PERSON P ON TSR.s_p_no = P.p_no "
|
||||
query = query & " WHERE s_r_date = '" & tmp_sdate + i & "' "
|
||||
query = query & " AND use_div = '1' "
|
||||
query = query & " ORDER BY cast(s_rs_time_cd as int) "
|
||||
|
||||
Adors.Open query, adoConn, 1
|
||||
|
||||
If Adors.RecordCount > 0 Then
|
||||
%>
|
||||
<td align="center">
|
||||
<table class='table-borderless table-sm table-sm2 mb-0'>
|
||||
<% Do while Not Adors.Eof %>
|
||||
<tr height="30px">
|
||||
<td class="text-center align-middle">
|
||||
<a href="seal_view.asp?condate=<%=tmp_sdate + i%>&s_type=<%=Adors("s_type")%>" class="blue"><%=tmp_s_type(Adors("s_type"),2)%></a>
|
||||
</td>
|
||||
</tr>
|
||||
<% Adors.MoveNext %>
|
||||
<% Loop %>
|
||||
</table>
|
||||
</td>
|
||||
<td align="center">
|
||||
<table class='table-borderless table-sm table-sm2 mb-0'>
|
||||
<% Adors.MoveFirst %>
|
||||
<% Do while Not Adors.Eof %>
|
||||
<tr height="30px">
|
||||
<td class="text-center align-middle">
|
||||
<%=Adors("s_rs_time")%> ~ <%=Adors("s_re_time")%>
|
||||
</td>
|
||||
</tr>
|
||||
<% Adors.MoveNext %>
|
||||
<% Loop %>
|
||||
</table>
|
||||
</td>
|
||||
<td>
|
||||
<table class='table-borderless table-sm table-sm2 mb-0'>
|
||||
<% Adors.MoveFirst %>
|
||||
<% Do while Not Adors.Eof %>
|
||||
<tr height="30px">
|
||||
<%
|
||||
tmp_str = ""
|
||||
tmp_btn_str = ""
|
||||
If Adors("s_status") = "0" Then
|
||||
tmp_str = "<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>"
|
||||
tmp_btn_str = "<22><><EFBFBD><EFBFBD>"
|
||||
elseif Adors("s_status") = "1" Then
|
||||
tmp_str = "<22><><EFBFBD><EFBFBD> <20><>"
|
||||
tmp_btn_str = "ȸ<><C8B8>"
|
||||
elseif Adors("s_status") = "2" Then
|
||||
tmp_str = "ȸ<><C8B8> <20>Ϸ<EFBFBD>"
|
||||
end if
|
||||
%>
|
||||
<td class="text-left align-middle">
|
||||
<input type="button" style="width:50px;<% if session("depart_code") <> "18" or Adors("s_status") = "2" or (tmp_s_type(Adors("s_type"),3) <> "1" and Adors("s_status") <> "1") then %>visibility:hidden;<% end if %>"
|
||||
value="<%=tmp_btn_str %>" onclick="s_status_chg('<%=Adors("id") %>', '<%=Adors("s_status") %>', '<%=tmp_sdate %>');" />
|
||||
<b>[<%=tmp_str %>]</b> <%=Adors("s_depart_name")%> <%=Adors("s_p_name")%> - <font color="#FF4000"><%=Adors("s_client") %></font> <%=Adors("s_comment") %>
|
||||
</td>
|
||||
</tr>
|
||||
<% Adors.MoveNext %>
|
||||
<% Loop %>
|
||||
</table>
|
||||
</td>
|
||||
<% Else %>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<% End If %>
|
||||
</tr>
|
||||
<%
|
||||
Adors.Close
|
||||
next
|
||||
%>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.content -->
|
||||
<!-- REQUIRED SCRIPTS -->
|
||||
<script>
|
||||
function subit(b){
|
||||
location.href = 'seal_week.asp?sdate=' + b;
|
||||
}
|
||||
|
||||
function s_status_chg(id, s_status, s_r_date) {
|
||||
var tmp_status = ((s_status * 1) + 1) + ""
|
||||
if (tmp_status == "1") {
|
||||
if (!confirm("<22><><EFBFBD><EFBFBD> <20>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?")) {
|
||||
alert("<22><><EFBFBD>ҵǾ<D2B5><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
|
||||
return;
|
||||
}
|
||||
} else if (tmp_status == "2") {
|
||||
if (!confirm("ȸ<><C8B8> <20>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?")) {
|
||||
alert("<22><><EFBFBD>ҵǾ<D2B5><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
|
||||
return;
|
||||
}
|
||||
}
|
||||
location.href = 'seal_status.asp?id=' + id + '&s_status=' + tmp_status + "&s_r_date=" + s_r_date;
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
<!-- #include virtual = "include/footer.asp" -->
|
||||
68
other/seal_writeok.asp
Normal file
68
other/seal_writeok.asp
Normal file
@@ -0,0 +1,68 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
|
||||
s_type = request("s_type")
|
||||
s_r_date = request("s_r_date")
|
||||
s_rs_time_cd = request("s_rs_time_cd")
|
||||
s_re_time_cd = request("s_re_time_cd")
|
||||
s_div = request("s_div_" & s_re_time_cd)
|
||||
s_cli_prj = request("s_cli_prj_" & s_re_time_cd)
|
||||
s_client = request("s_client_" & s_re_time_cd)
|
||||
s_comment = request("s_comment_" & s_re_time_cd)
|
||||
tmp_scode = request("tmp_scode")
|
||||
|
||||
Dim tmp_min(2)
|
||||
tmp_scode = 1
|
||||
tmp_min(0) = "00"
|
||||
tmp_min(1) = "30"
|
||||
for i = 9 to 22
|
||||
for j = 1 to 2
|
||||
if int(s_rs_time_cd) = tmp_scode then
|
||||
s_rs_time = right("0" & i, 2) & ":" & tmp_min(j - 1)
|
||||
end if
|
||||
|
||||
if int(s_re_time_cd) = tmp_scode then
|
||||
s_re_time = right("0" & i + int(1 - (j mod 2)), 2) & ":" & tmp_min(j mod 2)
|
||||
end if
|
||||
|
||||
tmp_scode = tmp_scode + 1
|
||||
next
|
||||
next
|
||||
|
||||
query = " INSERT INTO T_SEAL_RES "
|
||||
query = query & " (s_type, s_depart, s_p_no, s_r_date, s_rs_time, s_re_time, s_rs_time_cd, s_re_time_cd, s_cd_gap, s_div, s_cli_prj, s_client, s_comment) "
|
||||
query = query & " VALUES "
|
||||
query = query & " ('" & s_type & "', "
|
||||
query = query & " '" & session("Depart_Code") & "', "
|
||||
query = query & " '" & session("User_Number") & "', "
|
||||
query = query & " '" & s_r_date & "', "
|
||||
query = query & " '" & s_rs_time & "', "
|
||||
query = query & " '" & s_re_time & "', "
|
||||
query = query & " '" & s_rs_time_cd & "', "
|
||||
query = query & " '" & s_re_time_cd & "', "
|
||||
query = query & " '" & (s_re_time_cd - s_rs_time_cd) + 1 & "', "
|
||||
query = query & " '" & s_div & "', "
|
||||
query = query & " '" & s_cli_prj & "', "
|
||||
query = query & " '" & s_client & "', "
|
||||
query = query & " '" & s_comment & "') "
|
||||
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query
|
||||
dbin.Close
|
||||
%>
|
||||
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
|
||||
<form name="seal" method="post">
|
||||
<input type="hidden" name="s_type" value="<%=s_type%>">
|
||||
<input type="hidden" name="condate" value="<%=s_r_date%>">
|
||||
</form>
|
||||
<script>
|
||||
alert('<27><><EFBFBD><EFBFBD><EFBFBD>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>');
|
||||
|
||||
document.seal.action = 'seal_view.asp';
|
||||
document.seal.submit();
|
||||
</script>
|
||||
</head>
|
||||
<%
|
||||
set dbin = nothing
|
||||
%>
|
||||
47
other/srp_config.asp
Normal file
47
other/srp_config.asp
Normal file
@@ -0,0 +1,47 @@
|
||||
<%
|
||||
Dim tmp_workit(14, 2)
|
||||
Dim tmp_workit_sort(14)
|
||||
tmp_workit(1,1) = "<22><><EFBFBD><EFBFBD>GS.A"
|
||||
tmp_workit(1,2) = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 9<><39><EFBFBD><EFBFBD> <20><>ġ<EFBFBD><C4A1> GS. Room A"
|
||||
tmp_workit(2,1) = "<22><><EFBFBD><EFBFBD>GD.9"
|
||||
tmp_workit(2,2) = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 9<><39><EFBFBD><EFBFBD> <20><>ġ<EFBFBD><C4A1> GD. Room"
|
||||
tmp_workit(3,1) = "<22><><EFBFBD><EFBFBD>GD.8"
|
||||
tmp_workit(3,2) = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 8<><38><EFBFBD><EFBFBD> <20><>ġ<EFBFBD><C4A1> GD. Room"
|
||||
tmp_workit(4,1) = "<22><><EFBFBD><EFBFBD>MR.G"
|
||||
tmp_workit(4,2) = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 9<><39><EFBFBD><EFBFBD> <20><>ġ<EFBFBD><C4A1> GS. Room<6F><6D> MR. Room"
|
||||
tmp_workit(5,1) = "<22><><EFBFBD><EFBFBD>MR.9"
|
||||
tmp_workit(5,2) = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 9<><39><EFBFBD><EFBFBD> <20><>ġ<EFBFBD><C4A1> GD. Room<6F><6D> MR. Room"
|
||||
tmp_workit(6,1) = "<22><><EFBFBD><EFBFBD>MR.8"
|
||||
tmp_workit(6,2) = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 8<><38><EFBFBD><EFBFBD> <20><>ġ<EFBFBD><C4A1> GD. Room<6F><6D> MR. Room"
|
||||
tmp_workit(7,1) = "<22><><EFBFBD><EFBFBD>GS.B"
|
||||
tmp_workit(7,2) = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 9<><39><EFBFBD><EFBFBD> <20><>ġ<EFBFBD><C4A1> GS. Room B"
|
||||
tmp_workit(8,1) = "Zoom 1"
|
||||
tmp_workit(8,2) = "ȭ<><C8AD> ȸ<><C8B8>(<28><>ȭ) <20><> <20><><EFBFBD><EFBFBD> - <20><><EFBFBD><EFBFBD> <20><> <20>濵<EFBFBD><E6BFB5>ȭ<EFBFBD><C8AD><EFBFBD>ο<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>"
|
||||
tmp_workit(9,1) = "Zoom 2"
|
||||
tmp_workit(9,2) = "ȭ<><C8AD> ȸ<><C8B8>(<28><>ȭ) <20><> <20><><EFBFBD><EFBFBD> - <20><><EFBFBD><EFBFBD> <20><> <20>濵<EFBFBD><E6BFB5>ȭ<EFBFBD><C8AD><EFBFBD>ο<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>"
|
||||
tmp_workit(10,1) = "<22>ŵ<EFBFBD><C5B5><EFBFBD><EFBFBD><EFBFBD>"
|
||||
tmp_workit(10,2) = "<22>ŵ<EFBFBD><C5B5><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>Ʈ <20>̿<EFBFBD> <20><> <20><><EFBFBD><EFBFBD> - <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><EFBFBD><D7B7>岲 <20><><EFBFBD><EFBFBD>"
|
||||
tmp_workit(11,1) = "<22><><EFBFBD><EFBFBD>KR.1"
|
||||
tmp_workit(11,2) = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 8<><38><EFBFBD><EFBFBD> <20><>ġ<EFBFBD><C4A1> <20><><EFBFBD>÷<EFBFBD>"
|
||||
tmp_workit(12,1) = "<22><><EFBFBD><EFBFBD>KR.2"
|
||||
tmp_workit(12,2) = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 7<><37><EFBFBD><EFBFBD> <20><>ġ<EFBFBD><C4A1> <20><><EFBFBD>÷<EFBFBD>"
|
||||
tmp_workit(13,1) = "<22><><EFBFBD><EFBFBD>KR.3"
|
||||
tmp_workit(13,2) = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 7<><37><EFBFBD><EFBFBD> <20><>ġ<EFBFBD><C4A1> <20><><EFBFBD>÷<EFBFBD>"
|
||||
tmp_workit(14,1) = "<22><>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD>"
|
||||
tmp_workit(14,2) = "<22><>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD>"
|
||||
|
||||
tmp_workit_sort(1) = 1
|
||||
tmp_workit_sort(2) = 7
|
||||
tmp_workit_sort(3) = 4
|
||||
tmp_workit_sort(4) = 2
|
||||
tmp_workit_sort(5) = 5
|
||||
tmp_workit_sort(6) = 3
|
||||
tmp_workit_sort(7) = 6
|
||||
tmp_workit_sort(8) = 11
|
||||
tmp_workit_sort(9) = 12
|
||||
tmp_workit_sort(10) = 13
|
||||
tmp_workit_sort(11) = 8
|
||||
tmp_workit_sort(12) = 9
|
||||
tmp_workit_sort(13) = 10
|
||||
tmp_workit_sort(14) = 14
|
||||
%>
|
||||
282
other/view.asp
Normal file
282
other/view.asp
Normal file
@@ -0,0 +1,282 @@
|
||||
<!-- #include virtual = "include/header.asp" -->
|
||||
<!-- #include virtual = "include/left.asp" -->
|
||||
<!-- #include file="srp_config.asp" -->
|
||||
<%
|
||||
if request("workit") = "" then
|
||||
workit = 1
|
||||
else
|
||||
workit = request("workit")
|
||||
end if
|
||||
setYear_srp = Request("setYear_srp")
|
||||
setMonth_srp = request("setMonth_srp")
|
||||
p_rdate = request("condate")
|
||||
%>
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
<div class="content-header">
|
||||
<h1><3E>ü<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="srp" method="post">
|
||||
<input type="hidden" name="workit" value="<%=workit%>">
|
||||
<input type="hidden" name="p_rdate" value="<%=p_rdate%>">
|
||||
<input type="hidden" name="tmp_scode" value="<%=tmp_scode%>">
|
||||
<input type="hidden" name="st_posi">
|
||||
<input type="hidden" name="ed_posi">
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td class='font-weight-bold' style='font-size:16px;'><3E><>¥ : <%=p_rdate%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='font-weight-bold' style='font-size:16px;'><3E><><EFBFBD><EFBFBD> : <%=tmp_workit(workit,1)%> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȳ<EFBFBD>Դϴ<D4B4>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='font-weight-bold' style='font-size:16px;'><3E><>ġ : <%=tmp_workit(workit,2)%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>* <20>ϴ<EFBFBD> <20><><EFBFBD><EFBFBD> <20>̿<EFBFBD><CCBF>Ͻø<CFBD>, <20><> <20><><EFBFBD>ҿ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><>Ȳ<EFBFBD><C8B2> <20><><EFBFBD><EFBFBD> <20><> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>. <20>ְ<EFBFBD><D6B0><EFBFBD>Ȳ<EFBFBD><C8B2><EFBFBD><EFBFBD> <20><><EFBFBD>ư<EFBFBD><C6B0>÷<EFBFBD><C3B7><EFBFBD>, <20>ְ<EFBFBD><D6B0><EFBFBD>Ȳ <20><><EFBFBD><EFBFBD> Ŭ<><C5AC><EFBFBD><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<ul class="nav nav-tabs mb-0">
|
||||
<li class="nav-item"><button onclick="subit('2')" class="nav-link p-2" type="button"><3E>ְ<EFBFBD><D6B0><EFBFBD>Ȳ</button></li>
|
||||
<% for i = 1 to ubound(tmp_workit_sort) %>
|
||||
<li class="nav-item"><button onclick="subit('3', '<%=tmp_workit_sort(i)%>')" class="nav-link p-2 <%= iif(cint(tmp_workit_sort(i)) = cint(workit), "active", "")%>" type="button"><%=tmp_workit(tmp_workit_sort(i),1)%></button></li>
|
||||
<% next %>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td width="15%" align="center" ><3E>ð<EFBFBD></td>
|
||||
<td width="5%" align="center" ><3E><><EFBFBD><EFBFBD></td>
|
||||
<td width="5%" align="center" ><3E><><EFBFBD><EFBFBD></td>
|
||||
<td width="75%" align="center" ><3E><><EFBFBD><EFBFBD></td>
|
||||
</tr>
|
||||
<%
|
||||
Dim tmp_min(2)
|
||||
tmp_scode = 1
|
||||
tmp_code = 0
|
||||
tmp_min(0) = "00"
|
||||
tmp_min(1) = "30"
|
||||
for i = 9 to 22
|
||||
for j = 1 to 2
|
||||
if i <> 22 or j <> 2 then
|
||||
if tmp_code = 0 then
|
||||
query = "SELECT * "
|
||||
query = query & "FROM [srp] "
|
||||
query = query & "WHERE p_rdate='" & p_rdate & "' "
|
||||
query = query & "AND p_type='" & workit & "' "
|
||||
query = query & "AND p_delok='N' "
|
||||
query = query & "ORDER BY CAST(p_rstimecode AS int) "
|
||||
'Response.Write query
|
||||
Adors.Open query, adoConn, 1
|
||||
if Adors.RecordCount > 0 then
|
||||
tmp_code = 0
|
||||
for Adors_cnt = 1 to Adors.RecordCount
|
||||
if tmp_scode >= int(Adors("p_rstimecode")) AND tmp_scode <= int(Adors("p_retimecode")) then
|
||||
p_retimecode = int(Adors("p_retimecode"))
|
||||
tmp_code = int(Adors("p_codegap"))
|
||||
tmp_comment = Adors("p_comment")
|
||||
tmp_depart = Adors("p_depart")
|
||||
tmp_name = Adors("p_name")
|
||||
tmp_namecode = Adors("p_namecode")
|
||||
tmp_sn = Adors("p_sn")
|
||||
tmp_chk = 1
|
||||
exit for
|
||||
end if
|
||||
|
||||
Adors.MoveNext
|
||||
next
|
||||
end if
|
||||
Adors.Close
|
||||
end if
|
||||
%>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<%=right("0" & i, 2)%>:<%=tmp_min(j - 1)%> ~ <%=right("0" & i + int(1 - (j mod 2)), 2)%>:<%=tmp_min(j mod 2)%>
|
||||
</td>
|
||||
<td align="center">
|
||||
<input type="radio" name="p_rstimecode" value="<%=tmp_scode%>" onClick="autofnc('1','<%=tmp_scode%>')" <% if tmp_code > 0 then %> disabled <% end if %>>
|
||||
</td>
|
||||
<td align="center">
|
||||
<input type="radio" name="p_retimecode" value="<%=tmp_scode%>" onClick="autofnc('2','<%=tmp_scode%>')" disabled>
|
||||
</td>
|
||||
<%
|
||||
if tmp_code = 0 then
|
||||
%>
|
||||
<td id="tmp_<%=tmp_scode%>" align="left" class='p-0'>
|
||||
<input type="text" name="p_comment_<%=tmp_scode%>" style="display:none;width:100%" onKeyPress="subit('4',this)" onKeyUp="chrchk('<%=tmp_scode%>')">
|
||||
</td>
|
||||
<%
|
||||
else
|
||||
if tmp_chk = 1 then
|
||||
%>
|
||||
<td id="tmp_<%=tmp_scode%>" align="left" rowspan="<%=tmp_code%>" class='align-middle'>
|
||||
<p style="line-height:150%;margin-left:5.0pt;">
|
||||
<font color="blue"><%=tmp_depart%></font> - <font color="black"><b><%=tmp_name%></b></font> :
|
||||
<% if cstr(tmp_namecode) = cstr(session("User_number")) then %>
|
||||
[<a href="javascript:delit('<%=tmp_sn%>')"><font color="red"><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></font></a>]
|
||||
<% end if %>
|
||||
<%=tmp_comment%>
|
||||
</p>
|
||||
</td>
|
||||
<%
|
||||
tmp_chk = 0
|
||||
end if
|
||||
tmp_code = tmp_code - 1
|
||||
end if
|
||||
%>
|
||||
</tr>
|
||||
<%
|
||||
tmp_scode = tmp_scode + 1
|
||||
end if
|
||||
next
|
||||
next
|
||||
%>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" style="padding:10 0 0 0">
|
||||
<img src="/images/common/btn_input.jpg" align="absmiddle" onClick="subit('1')" style="CURSOR:pointer;">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.content -->
|
||||
<!-- REQUIRED SCRIPTS -->
|
||||
<script>
|
||||
$(function(){
|
||||
currentMenu("/other/week.asp", "");
|
||||
});
|
||||
|
||||
function chrchk(z){
|
||||
var m_Sp = /[$\\@\\\#%\^\&\*\+\_\{\}\`\~\=\|\:\/\,\;\"\']/;
|
||||
var m_val = document.all['p_comment_' + z].value;
|
||||
var strLen = m_val.length;
|
||||
var m_char = m_val.charAt((strLen) - 1);
|
||||
if(m_char.search(m_Sp) != -1){
|
||||
alert("Ư<><C6AF><EFBFBD><EFBFBD><EFBFBD>ڰ<EFBFBD> <20>ԷµǾ<C2B5><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
|
||||
document.all['p_comment_' + z].value = m_val.substring(0, eval(strLen)-1);
|
||||
document.all['p_comment_' + z].focus();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
function autofnc(a, b){
|
||||
var tmp_radio_cnt;
|
||||
tmp_radio_cnt = document.srp.p_retimecode.length;
|
||||
tmp_a = document.srp.st_posi.value;
|
||||
tmp_b = document.srp.ed_posi.value;
|
||||
if (a == 1){
|
||||
document.srp.st_posi.value = b;
|
||||
|
||||
if (tmp_b != ''){
|
||||
document.srp.p_retimecode[parseInt(tmp_b) - 1].checked = false;
|
||||
}
|
||||
|
||||
for (i = 0; i < parseInt(tmp_radio_cnt) - 1; i++){
|
||||
document.srp.p_retimecode[i].disabled = true;
|
||||
}
|
||||
|
||||
for (i = parseInt(b) - 1; i < tmp_radio_cnt; i++){
|
||||
if (document.srp.p_rstimecode[i].disabled == true){
|
||||
break;
|
||||
}else{
|
||||
document.srp.p_retimecode[i].disabled = false;
|
||||
document.srp.p_retimecode[i].checked = false;
|
||||
}
|
||||
}
|
||||
|
||||
if (document.srp.ed_posi.value != ''){
|
||||
document.all['p_comment_' + document.srp.ed_posi.value].value = '';
|
||||
document.all['p_comment_' + document.srp.ed_posi.value].style.display = 'none';
|
||||
document.all['p_comment_' + document.srp.ed_posi.value].className = 'inputn';
|
||||
}
|
||||
}
|
||||
|
||||
else if (a == 2){
|
||||
var tmp_b;
|
||||
|
||||
tmp_b = document.srp.ed_posi.value;
|
||||
document.srp.ed_posi.value = b;
|
||||
|
||||
if (tmp_b != ''){
|
||||
document.all['p_comment_' + tmp_b].value = '';
|
||||
document.all['p_comment_' + tmp_b].style.display = 'none';
|
||||
document.all['p_comment_' + tmp_b].className = 'inputn';
|
||||
}
|
||||
|
||||
document.all['p_comment_' + b].style.display = '';
|
||||
document.all['p_comment_' + b].className = 'inputy';
|
||||
document.all['p_comment_' + b].focus();
|
||||
}
|
||||
}
|
||||
|
||||
function subit(a,b){
|
||||
if (a == 1){
|
||||
var tmp_check = 0;
|
||||
var tmp_radio_cnt;
|
||||
tmp_radio_cnt = document.srp.p_retimecode.length;
|
||||
|
||||
for (i = 0; i < tmp_radio_cnt; i++){
|
||||
if (document.srp.p_rstimecode[i].checked == true){
|
||||
tmp_check = 1;
|
||||
}
|
||||
}
|
||||
|
||||
if (tmp_check != 1){
|
||||
alert('<27><><EFBFBD>۽ð<DBBD><C3B0><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>');
|
||||
return false;
|
||||
}
|
||||
|
||||
tmp_check = 0;
|
||||
for (i = 0; i < tmp_radio_cnt; i++){
|
||||
if (document.srp.p_retimecode[i].checked == true){
|
||||
tmp_check = 1;
|
||||
}
|
||||
}
|
||||
|
||||
if (tmp_check != 1){
|
||||
alert('<27><><EFBFBD><EFBFBD><EFBFBD>ð<EFBFBD><C3B0><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>');
|
||||
return false;
|
||||
}
|
||||
|
||||
document.srp.action = 'writeok.asp';
|
||||
document.srp.submit();
|
||||
}else if (a == 2){
|
||||
document.srp.action = 'week.asp?sdate=<%=p_rdate%>';
|
||||
document.srp.submit();
|
||||
}else if (a == 3){
|
||||
location.href = 'view.asp?condate=<%=p_rdate%>&workit=' + b;
|
||||
}else if (a == 4){
|
||||
if(event.keyCode==13) subit(1);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
function delit(a){
|
||||
if (confirm('<27><><EFBFBD><EFBFBD><EFBFBD>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?')){
|
||||
document.srp.action = 'delok.asp?p_sn=' + a;
|
||||
document.srp.submit();
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
<!-- #include virtual = "include/footer.asp" -->
|
||||
224
other/week.asp
Normal file
224
other/week.asp
Normal file
@@ -0,0 +1,224 @@
|
||||
<!-- #include virtual = "include/header.asp" -->
|
||||
<!-- #include virtual = "include/left.asp" -->
|
||||
<!-- #include file="srp_config.asp" -->
|
||||
<%
|
||||
if request("sdate") = "" then
|
||||
tmp_sdate = date()
|
||||
else
|
||||
tmp_sdate = request("sdate")
|
||||
if len(tmp_sdate) <= 9 then
|
||||
tmp_sdate = tmp_sdate & "-" & day(date())
|
||||
end if
|
||||
end if
|
||||
tmp_sdate = cdate(tmp_sdate) - (weekday(cdate(tmp_sdate)) - 1)
|
||||
tmp_edate = cdate(tmp_sdate) + (7 - weekday(cdate(tmp_sdate)))
|
||||
%>
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<style>
|
||||
.times{
|
||||
border-bottom: 1px solid #78849c;
|
||||
border-right: 1px solid #78849c;
|
||||
position:relative;
|
||||
}
|
||||
tr > td.sidetd:nth-child(2){
|
||||
border-left: 1px solid #78849c;
|
||||
}
|
||||
|
||||
.usew{
|
||||
top: 6px;
|
||||
position: absolute;
|
||||
background-color: #bebecd;
|
||||
height: 9px;
|
||||
z-index: 1000;
|
||||
left: 50%;
|
||||
border: 1px solid #575aaa;
|
||||
cursor: help;
|
||||
border-radius: 4px;
|
||||
opacity: 0.7;
|
||||
}
|
||||
.theads > td{
|
||||
position: sticky;
|
||||
top: -1px;
|
||||
background-color:#78849c;
|
||||
z-index:1001;
|
||||
}
|
||||
.theads > td:nth-child(n + 3){
|
||||
font-size:11px;
|
||||
vertical-align:middle;
|
||||
letter-spacing:-0.05em;
|
||||
}
|
||||
</style>
|
||||
<!-- Content Header (Page header) -->
|
||||
<div class="content-header">
|
||||
<h1><3E>ü<EFBFBD> <20><><EFBFBD><EFBFBD></h1>
|
||||
</div>
|
||||
<!-- /.content-header -->
|
||||
<!-- Main content -->
|
||||
<div class="content-body">
|
||||
<div class="content" style="min-width:1380px;">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0" style="min-width:1320px;">
|
||||
<tr>
|
||||
<td align="center" class="pb-2">
|
||||
<button type="button" class='btn btn-primary w-25 m-0' onClick="subit('<%=tmp_sdate - 7%>')"><i class='fas fa-arrow-left'></i></button><span class='font-weight-bold align-middle d-inline-block w-50 text-center m-0'><%=tmp_sdate%> ~ <%=tmp_edate%></span><button type="button" class='btn btn-primary w-25 m-0' onClick="subit('<%=tmp_sdate + 7%>')"><i class='fas fa-arrow-right'></i></button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr class='theads' height="25px">
|
||||
<td width="130px" align="center" ><3E>Ͻ<EFBFBD></td>
|
||||
<td width="130px" align="center" ><3E><><EFBFBD><EFBFBD></td>
|
||||
<td align="center" >09:00</td>
|
||||
<td align="center" >09:30</td>
|
||||
<td align="center" >10:00</td>
|
||||
<td align="center" >10:30</td>
|
||||
<td align="center" >11:00</td>
|
||||
<td align="center" >11:30</td>
|
||||
<td align="center" >12:00</td>
|
||||
<td align="center" >12:30</td>
|
||||
<td align="center" >13:00</td>
|
||||
<td align="center" >13:30</td>
|
||||
<td align="center" >14:00</td>
|
||||
<td align="center" >14:30</td>
|
||||
<td align="center" >15:00</td>
|
||||
<td align="center" >15:30</td>
|
||||
<td align="center" >16:00</td>
|
||||
<td align="center" >16:30</td>
|
||||
<td align="center" >17:00</td>
|
||||
<td align="center" >17:30</td>
|
||||
<td align="center" >18:00</td>
|
||||
<td align="center" >18:30</td>
|
||||
<td align="center" >19:00</td>
|
||||
<td align="center" >19:30</td>
|
||||
<td align="center" >20:00</td>
|
||||
<td align="center" >20:30</td>
|
||||
<td align="center" >21:00</td>
|
||||
<td align="center" >21:30</td>
|
||||
<td align="center" >22:00</td>
|
||||
<td align="center" >22:30</td>
|
||||
</tr>
|
||||
<%
|
||||
for i = 0 to 6
|
||||
%>
|
||||
<%
|
||||
for j = 1 to ubound(tmp_workit_sort)
|
||||
%>
|
||||
<tr>
|
||||
<% if j = 1 then %>
|
||||
<td align="center" class='align-middle' rowspan="<%= ubound(tmp_workit_sort)%>">
|
||||
<a href="view.asp?condate=<%=tmp_sdate + i%>&workit=1">
|
||||
<%=replace(right(tmp_sdate + i, 5), "-", "/")%> (<%=left(WeekDayName(weekday(tmp_sdate + i)),1)%>)
|
||||
</a>
|
||||
</td>
|
||||
<% end if %>
|
||||
<td align="center">
|
||||
<a href="view.asp?condate=<%=tmp_sdate + i%>&workit=<%=tmp_workit_sort(j)%>">
|
||||
<%=tmp_workit(tmp_workit_sort(j),1)%>
|
||||
</a>
|
||||
</td>
|
||||
<td class="times" data-rdate="<%=tmp_sdate + i%>" data-workit="<%=tmp_workit_sort(j)%>" data-rst="1"></td>
|
||||
<td class="times" data-rdate="<%=tmp_sdate + i%>" data-workit="<%=tmp_workit_sort(j)%>" data-rst="2"></td>
|
||||
<td class="times" data-rdate="<%=tmp_sdate + i%>" data-workit="<%=tmp_workit_sort(j)%>" data-rst="3"></td>
|
||||
<td class="times" data-rdate="<%=tmp_sdate + i%>" data-workit="<%=tmp_workit_sort(j)%>" data-rst="4"></td>
|
||||
<td class="times" data-rdate="<%=tmp_sdate + i%>" data-workit="<%=tmp_workit_sort(j)%>" data-rst="5"></td>
|
||||
<td class="times" data-rdate="<%=tmp_sdate + i%>" data-workit="<%=tmp_workit_sort(j)%>" data-rst="6"></td>
|
||||
<td class="times" data-rdate="<%=tmp_sdate + i%>" data-workit="<%=tmp_workit_sort(j)%>" data-rst="7"></td>
|
||||
<td class="times" data-rdate="<%=tmp_sdate + i%>" data-workit="<%=tmp_workit_sort(j)%>" data-rst="8"></td>
|
||||
<td class="times" data-rdate="<%=tmp_sdate + i%>" data-workit="<%=tmp_workit_sort(j)%>" data-rst="9"></td>
|
||||
<td class="times" data-rdate="<%=tmp_sdate + i%>" data-workit="<%=tmp_workit_sort(j)%>" data-rst="10"></td>
|
||||
<td class="times" data-rdate="<%=tmp_sdate + i%>" data-workit="<%=tmp_workit_sort(j)%>" data-rst="11"></td>
|
||||
<td class="times" data-rdate="<%=tmp_sdate + i%>" data-workit="<%=tmp_workit_sort(j)%>" data-rst="12"></td>
|
||||
<td class="times" data-rdate="<%=tmp_sdate + i%>" data-workit="<%=tmp_workit_sort(j)%>" data-rst="13"></td>
|
||||
<td class="times" data-rdate="<%=tmp_sdate + i%>" data-workit="<%=tmp_workit_sort(j)%>" data-rst="14"></td>
|
||||
<td class="times" data-rdate="<%=tmp_sdate + i%>" data-workit="<%=tmp_workit_sort(j)%>" data-rst="15"></td>
|
||||
<td class="times" data-rdate="<%=tmp_sdate + i%>" data-workit="<%=tmp_workit_sort(j)%>" data-rst="16"></td>
|
||||
<td class="times" data-rdate="<%=tmp_sdate + i%>" data-workit="<%=tmp_workit_sort(j)%>" data-rst="17"></td>
|
||||
<td class="times" data-rdate="<%=tmp_sdate + i%>" data-workit="<%=tmp_workit_sort(j)%>" data-rst="18"></td>
|
||||
<td class="times" data-rdate="<%=tmp_sdate + i%>" data-workit="<%=tmp_workit_sort(j)%>" data-rst="19"></td>
|
||||
<td class="times" data-rdate="<%=tmp_sdate + i%>" data-workit="<%=tmp_workit_sort(j)%>" data-rst="20"></td>
|
||||
<td class="times" data-rdate="<%=tmp_sdate + i%>" data-workit="<%=tmp_workit_sort(j)%>" data-rst="21"></td>
|
||||
<td class="times" data-rdate="<%=tmp_sdate + i%>" data-workit="<%=tmp_workit_sort(j)%>" data-rst="22"></td>
|
||||
<td class="times" data-rdate="<%=tmp_sdate + i%>" data-workit="<%=tmp_workit_sort(j)%>" data-rst="23"></td>
|
||||
<td class="times" data-rdate="<%=tmp_sdate + i%>" data-workit="<%=tmp_workit_sort(j)%>" data-rst="24"></td>
|
||||
<td class="times" data-rdate="<%=tmp_sdate + i%>" data-workit="<%=tmp_workit_sort(j)%>" data-rst="25"></td>
|
||||
<td class="times" data-rdate="<%=tmp_sdate + i%>" data-workit="<%=tmp_workit_sort(j)%>" data-rst="26"></td>
|
||||
<td class="times" data-rdate="<%=tmp_sdate + i%>" data-workit="<%=tmp_workit_sort(j)%>" data-rst="27"></td>
|
||||
<td class="times" data-rdate="<%=tmp_sdate + i%>" data-workit="<%=tmp_workit_sort(j)%>" data-rst="28"></td>
|
||||
</tr>
|
||||
<%
|
||||
next
|
||||
next
|
||||
%>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.content -->
|
||||
<%
|
||||
query = ""
|
||||
query = query & " SELECT p_rdate, p_type, p_rstime, p_retime, p_rstimecode, p_retimecode, p_codegap, p_depart, p_name, p_comment, p_wdate "
|
||||
query = query & " FROM [srp] "
|
||||
query = query & " WHERE p_rdate between '" & tmp_sdate & "' AND '" & tmp_edate & "' "
|
||||
query = query & " AND p_delok = 'N' "
|
||||
query = query & " ORDER BY p_rdate, p_type, convert(integer, p_rstimecode) "
|
||||
%>
|
||||
<!-- REQUIRED SCRIPTS -->
|
||||
<script>
|
||||
function subit(b){
|
||||
location.href = 'week.asp?sdate=' + b;
|
||||
}
|
||||
|
||||
var rdata = <%= queryToJson(query) %>;
|
||||
var colorArr = [
|
||||
"#633b3a", "#8d42e4", "#474c55", "#4f0365", "#5cb5cf",
|
||||
"#d82699", "#de605b", "#d34b77", "#23373a", "#42c633",
|
||||
"#b11d51", "#426aa0", "#d8f671", "#cf98a0", "#327d16",
|
||||
"#111869", "#5cfae2", "#f3a683", "#786fa6", "#f7d794",
|
||||
"#f8a5c2", "#778beb", "#63cdda", "#e77f67", "#596275",
|
||||
"#cf6a87", "#f19066", "#574b90", "#f5cd79", "#f78fb3",
|
||||
"#546de5", "#3dc1d3", "#e15f41", "#c44569", "#303952",
|
||||
"#e66767", "#d1d8e0", "#0fb9b1", "#4b7bec", "#45aaf2",
|
||||
"#eb3b5a", "#fd9644", "#f7b731", "#26de81", "#a5b1c2"
|
||||
];
|
||||
$(function(){
|
||||
// usew usew-st usew-ed
|
||||
$.each(rdata, function(i, o){
|
||||
$("td.times[data-rdate='" + o.p_rdate + "'][data-workit='" + o.p_type + "'][data-rst='" + o.p_rstimecode + "']").html("<div class='usew'></div>");
|
||||
$("td.times[data-rdate='" + o.p_rdate + "'][data-workit='" + o.p_type + "'][data-rst='" + o.p_rstimecode + "'] > .usew").data("codegap", o.p_codegap);
|
||||
$("td.times[data-rdate='" + o.p_rdate + "'][data-workit='" + o.p_type + "'][data-rst='" + o.p_rstimecode + "'] > .usew").css("width", (o.p_codegap * $(".times:eq(0)").outerWidth())+"px");
|
||||
|
||||
$("td.times[data-rdate='" + o.p_rdate + "'][data-workit='" + o.p_type + "'][data-rst='" + o.p_rstimecode + "'] > .usew").attr("title", "<b>" + o.p_depart + " " + o.p_name + "</b><br>" + o.p_comment + "<br>" + o.p_rstime + " ~ " + o.p_retime);
|
||||
});
|
||||
|
||||
$(window).resize(function(){
|
||||
$.each($(".usew"), function(i, ele){
|
||||
var codegap = $(ele).data("codegap");
|
||||
$(ele).css("width", (codegap * $(".times:eq(0)").outerWidth())+"px");
|
||||
});
|
||||
});
|
||||
|
||||
$(".usew").tooltip({
|
||||
track: true,
|
||||
content: function() {
|
||||
return $(this).prop('title');
|
||||
}
|
||||
});
|
||||
|
||||
$(".usew").each(function(){
|
||||
var ran = Math.floor(Math.random() * 45);
|
||||
$(this).css("background-color", colorArr[ran]);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
<!-- #include virtual = "include/footer.asp" -->
|
||||
76
other/writeok.asp
Normal file
76
other/writeok.asp
Normal file
@@ -0,0 +1,76 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
|
||||
workit = request("workit")
|
||||
setYear_srp = Request("setYear_srp")
|
||||
setMonth_srp = request("setMonth_srp")
|
||||
p_rdate = request("p_rdate")
|
||||
p_rstimecode = request("p_rstimecode")
|
||||
p_retimecode = request("p_retimecode")
|
||||
p_comment = request("p_comment_" & p_retimecode)
|
||||
tmp_scode = request("tmp_scode")
|
||||
|
||||
Dim tmp_min(2)
|
||||
tmp_scode = 1
|
||||
tmp_min(0) = "00"
|
||||
tmp_min(1) = "30"
|
||||
for i = 9 to 22
|
||||
for j = 1 to 2
|
||||
if int(p_rstimecode) = tmp_scode then
|
||||
p_rstime = right("0" & i, 2) & ":" & tmp_min(j - 1)
|
||||
end if
|
||||
|
||||
if int(p_retimecode) = tmp_scode then
|
||||
p_retime = right("0" & i + int(1 - (j mod 2)), 2) & ":" & tmp_min(j mod 2)
|
||||
end if
|
||||
|
||||
tmp_scode = tmp_scode + 1
|
||||
next
|
||||
next
|
||||
|
||||
query = ""
|
||||
query = query & " SELECT p_team_name FROM project2.dbo.V_Person WHERE p_no = '" & session("User_Number") & "'"
|
||||
|
||||
Adors.Open query, adoConn, 1
|
||||
if Adors.RecordCount > 0 then
|
||||
tmp_depart = Adors("p_team_name")
|
||||
end if
|
||||
Adors.Close
|
||||
|
||||
query = "INSERT INTO [srp] "
|
||||
query = query & "(p_type, p_depart, p_departcode, p_name, p_namecode, p_rdate, p_rstime, p_retime, p_rstimecode, p_retimecode, p_codegap, p_comment, p_delok, p_wdate) "
|
||||
query = query & "VALUES "
|
||||
query = query & "('" & workit & "', "
|
||||
query = query & "'" & tmp_depart & "', "
|
||||
query = query & "'" & session("Depart_Code") & "', "
|
||||
query = query & "'" & session("loginuser") & "', "
|
||||
query = query & "'" & session("User_Number") & "', "
|
||||
query = query & "'" & p_rdate & "', "
|
||||
query = query & "'" & p_rstime & "', "
|
||||
query = query & "'" & p_retime & "', "
|
||||
query = query & "'" & p_rstimecode & "', "
|
||||
query = query & "'" & p_retimecode & "', "
|
||||
query = query & "'" & (p_retimecode - p_rstimecode) + 1 & "', "
|
||||
query = query & "'" & p_comment & "', "
|
||||
query = query & "'N', "
|
||||
query = query & "'" & now() & "') "
|
||||
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query
|
||||
dbin.Close
|
||||
%>
|
||||
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
|
||||
<form name="srp" method="post">
|
||||
<input type="hidden" name="workit" value="<%=workit%>">
|
||||
<input type="hidden" name="condate" value="<%=p_rdate%>">
|
||||
</form>
|
||||
<script>
|
||||
alert('<27><><EFBFBD><EFBFBD><EFBFBD>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>');
|
||||
|
||||
document.srp.action = 'view.asp';
|
||||
document.srp.submit();
|
||||
</script>
|
||||
<%
|
||||
set dbin = nothing
|
||||
%>
|
||||
Reference in New Issue
Block a user