최초커밋
This commit is contained in:
197
management/cati_trans_number.asp
Normal file
197
management/cati_trans_number.asp
Normal file
@@ -0,0 +1,197 @@
|
||||
<!-- #include virtual = "include/header.asp" -->
|
||||
<!-- #include virtual = "include/left.asp" -->
|
||||
<%
|
||||
'-- <20><EFBFBD><DEBC><EFBFBD>
|
||||
dim xmsg : xmsg=""
|
||||
'-- <20><><EFBFBD><EFBFBD><EFBFBD>Ұ<EFBFBD> <20><>ȣ
|
||||
dim const_num : const_num=""
|
||||
const_num=const_num&"0234155196,"
|
||||
const_num=const_num&"0234155197,"
|
||||
const_num=const_num&"0234155198,"
|
||||
const_num=const_num&"0234155199,"
|
||||
const_num=const_num&"0261965000,"
|
||||
|
||||
'-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ
|
||||
dim xnum : xnum=request.form("xnum")
|
||||
xnum=replace(replace(xnum," ","")," ","")
|
||||
|
||||
'-- <20><><EFBFBD>Ϲ<EFBFBD>ȣ
|
||||
dim trans_number : trans_number=request.form("trans_number")
|
||||
trans_number=replace(replace(trans_number," ","")," ","")
|
||||
|
||||
'-- ó<><C3B3> -----
|
||||
select case request.form("xmode")
|
||||
case "Del" '-- <20><>ȣ<EFBFBD><C8A3><EFBFBD><EFBFBD>
|
||||
if instr(const_num,xnum&",")>0 then '-- <20><><EFBFBD><EFBFBD><EFBFBD>Ұ<EFBFBD> <20><>ȣ<EFBFBD><C8A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
xmsg="<22><><EFBFBD><EFBFBD><EFBFBD>Ұ<EFBFBD> <20><>ȣ <20>Դϴ<D4B4>"
|
||||
else
|
||||
query = " update [new_cati].[dbo].[T_external_number] set "
|
||||
query = query & " useFlag='1' " '-- <20><><EFBFBD><EFBFBD>
|
||||
query = query & " ,input_date=getdate() " '-- <20><><EFBFBD><EFBFBD><EFBFBD>ð<EFBFBD>
|
||||
query = query & " ,user_code='"&Session("User_Number")&"' "
|
||||
query = query & " where num='"&xnum&"' "
|
||||
adoconn.execute query
|
||||
|
||||
xmsg="<22><><EFBFBD><EFBFBD>ó<EFBFBD><C3B3> <20>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>"
|
||||
end if
|
||||
|
||||
case "Reg" '-- <20><>ȣ<EFBFBD><C8A3><EFBFBD><EFBFBD>
|
||||
if instr(const_num,trans_number&",")>0 then '-- <20><><EFBFBD><EFBFBD><EFBFBD>Ұ<EFBFBD> <20><>ȣ<EFBFBD><C8A3> <20>߰<EFBFBD><DFB0>õ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
xmsg="<22>⺻<EFBFBD><E2BABB><EFBFBD><EFBFBD> <20><>ȣ <20>Դϴ<D4B4>. <20>߰<EFBFBD><DFB0><EFBFBD><EFBFBD><EFBFBD> <20>ʽ<EFBFBD><CABD>ϴ<EFBFBD> "
|
||||
else
|
||||
query = " INSERT INTO [new_cati].[dbo].[T_external_number] "
|
||||
query = query & " ([num],[useFlag],[input_date],[user_code]) "
|
||||
query = query & " VALUES "
|
||||
query = query & " ('"&trans_number&"' "
|
||||
query = query & " ,'0' " '-- <20><><EFBFBD><EFBFBD>(0)
|
||||
query = query & " ,getdate() " '-- <20><><EFBFBD>Ͻð<CFBD>
|
||||
query = query & " ,'"&Session("User_Number")&"') "
|
||||
adoconn.execute query
|
||||
|
||||
xmsg="<22>߰<EFBFBD> <20>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD> "
|
||||
end if
|
||||
end select
|
||||
%>
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
<div class="content-header">
|
||||
<h1>CATI <20>߽Ź<DFBD>ȣ<EFBFBD><C8A3><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='xform' method='post' >
|
||||
<input type="hidden" id="xmode" name="xmode" value="" />
|
||||
<input type="hidden" id="xnum" name="xnum" value="" />
|
||||
<input type="hidden" id="xid" name="xid" value="" />
|
||||
<font color=blue><3E><> <20><>ȭ<EFBFBD><C8AD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ҽ<EFBFBD> <20>ִ<EFBFBD> <20><>ȭ<EFBFBD><C8AD>ȣ<EFBFBD><C8A3> <20><><EFBFBD><EFBFBD><EFBFBD>մϴ<D5B4></font><br>
|
||||
<font color=blue><3E><> <20><><EFBFBD>밡<EFBFBD><EBB0A1> <20><>ȣ<EFBFBD><C8A3> Ŭ<><C5AC><EFBFBD>Ͽ<EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD>Ұ<EFBFBD> ó<><C3B3><EFBFBD><EFBFBD> <20><> <20><> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD> </font><br>
|
||||
<font color=blue><u><3E><> <20>߽Ź<DFBD>ȣ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ش<EFBFBD><D8B4><EFBFBD>ȣ<EFBFBD><C8A3> <20><>ȭ<EFBFBD><C8AD> <20>ɾ<EFBFBD> "<22>ȳ<EFBFBD><C8B3><EFBFBD>Ʈ"<22><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Ȯ<><C8AE><EFBFBD>Ͻñ<CFBD> <20>ٶ<EFBFBD><D9B6>ϴ<EFBFBD> </u></font><br><br>
|
||||
|
||||
<table class="table table-sm table-sm2 table-bordered table-head tr-colors" style="width:600px;">
|
||||
<tr>
|
||||
<td colspan="3" align="center" ><3E><>ȣ<EFBFBD><C8A3><EFBFBD><EFBFBD><br><font color=blue><3E><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ<EFBFBD><C8A3> <20><><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD></font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3" align=center ><input type="text" style="width:130px;text-align:right;" name="trans_number" value="" onchange="getNumber(this);" onkeyup="getNumber(this);" style="width:120px;text-align:right;" ></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3" align=center >
|
||||
<input type="button" name="xbtn" value="<22><>ȣ <20><><EFBFBD><EFBFBD>" style="width:130px;cursor:pointer;" onclick="javascript:js_trans_number_insert(xform);" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3" align="center" ><3E><><EFBFBD>ϵ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><>ȣ <20><><EFBFBD><EFBFBD>Ʈ</td>
|
||||
</tr>
|
||||
<%
|
||||
'-- <20><>ȭ<EFBFBD><C8AD><EFBFBD><EFBFBD> <20><><EFBFBD>밡<EFBFBD><EBB0A1> <20><>ȣ <20><><EFBFBD><EFBFBD>
|
||||
query = " select "
|
||||
query = query & " id, num, useFlag, convert(datetime,input_date) as input_date, user_code "
|
||||
query = query & " from [new_cati].[dbo].[T_external_number] "
|
||||
query = query & " where useFlag='0' " ' -- <20><><EFBFBD>밡<EFBFBD><EBB0A1>(0)
|
||||
query = query & " order by num "
|
||||
adoRs.Open query, adoconn, 1' adOpenForwardOnly
|
||||
do while not adoRs.eof
|
||||
%>
|
||||
<tr>
|
||||
<td class="text-center">
|
||||
<span class="font-weight-bold h5">
|
||||
<% if Len(adoRs("num")) = 11 Then %>
|
||||
<%= Left(adoRs("num"), 3)%> - <%= Mid(adoRs("num"), 4, 4)%> - <%= Right(adoRs("num"), 4)%>
|
||||
<% Else %>
|
||||
<%= Left(adoRs("num"), 2)%> - <%= Mid(adoRs("num"), 3, 4)%> - <%= Right(adoRs("num"), 4)%>
|
||||
<% End If %>
|
||||
</span>
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<span class="">(<28><><EFBFBD><EFBFBD><EFBFBD>Ͻ<EFBFBD> : <%=adoRs("input_date")%>)</span>
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<button type="button" class="btn btn-sm btn-warning" onclick="js_change(xform,'<%= adoRs("id")%>','<%= adoRs("num")%>');"><3E>̻<EFBFBD><CCBB><EFBFBD></button>
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
adoRs.movenext
|
||||
loop
|
||||
adoRs.close
|
||||
%>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.content -->
|
||||
<!-- REQUIRED SCRIPTS -->
|
||||
<script>
|
||||
var rgx1 = /\D/g; // /[^0-9]/g <20><> <20><><EFBFBD><EFBFBD> ǥ<><C7A5>
|
||||
var rgx2 = /(\d+)(\d{3})/;
|
||||
|
||||
// <20><><EFBFBD><EFBFBD>ǥ<EFBFBD><C7A5>
|
||||
function getNumber(obj){
|
||||
var num01;
|
||||
var num02;
|
||||
num01 = obj.value;
|
||||
num02 = num01.replace(rgx1,"");
|
||||
num01 = num02;
|
||||
obj.value = num01;
|
||||
}
|
||||
|
||||
// <20><EFBFBD><DEB8><EFBFBD><EFBFBD><EFBFBD>
|
||||
function setComma(inNum){
|
||||
var outNum;
|
||||
outNum = inNum;
|
||||
while (rgx2.test(outNum)) {
|
||||
outNum = outNum.replace(rgx2, '$1' + ',' + '$2');
|
||||
}
|
||||
return outNum;
|
||||
}
|
||||
|
||||
// <20><><EFBFBD><EFBFBD> <20><> <20>̻<EFBFBD><CCBB><EFBFBD> ó<><C3B3>
|
||||
function js_change(x,xid,xnum){
|
||||
if(!confirm(xnum+" <20><>ȣ<EFBFBD><C8A3> [<5B>̻<EFBFBD><CCBB><EFBFBD> ó<><C3B3>] <20>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>? [<5B>̻<EFBFBD><CCBB><EFBFBD> ó<><C3B3>] <20>Ŀ<EFBFBD><C4BF><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ұ<EFBFBD><D2B0><EFBFBD> <20>մϴ<D5B4> ")){return;}
|
||||
x.xmode.value="Del";
|
||||
x.xnum.value=xnum;
|
||||
x.target="";
|
||||
x.action="cati_trans_number.asp";
|
||||
x.submit();
|
||||
}
|
||||
|
||||
// <20><>ȣ<EFBFBD><C8A3><EFBFBD><EFBFBD>
|
||||
function js_trans_number_insert(x){
|
||||
if(x.trans_number.value==""){
|
||||
alert("<22><>ȣ<EFBFBD><C8A3> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD> ");
|
||||
return;
|
||||
}
|
||||
|
||||
if(x.trans_number.value=="0234155100"){
|
||||
alert("<22><>ǥ<EFBFBD><C7A5>ȣ<EFBFBD><C8A3> <20>߽Ź<DFBD>ȣ<EFBFBD><C8A3> <20><><EFBFBD><EFBFBD> <20>Ұ<EFBFBD><D2B0>մϴ<D5B4>.");
|
||||
return;
|
||||
}
|
||||
|
||||
if(x.trans_number.value=="0261965050"){
|
||||
alert("kiwiSurvey <20><><EFBFBD><EFBFBD> <20>߽Ź<DFBD>ȣ<EFBFBD>̹Ƿ<CCB9> <20><><EFBFBD><EFBFBD> <20>Ұ<EFBFBD><D2B0>մϴ<D5B4>.");
|
||||
return;
|
||||
}
|
||||
|
||||
if(!confirm(x.trans_number.value+" <20><>ȣ<EFBFBD><C8A3> <20><><EFBFBD><EFBFBD><EFBFBD>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>? ")){return;}
|
||||
x.xmode.value="Reg";
|
||||
|
||||
x.target="";
|
||||
x.action="cati_trans_number.asp";
|
||||
x.submit();
|
||||
}
|
||||
|
||||
<%if xmsg<>"" then %>
|
||||
alert("<%=xmsg%>");
|
||||
<%end if%>
|
||||
</script>
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
<!-- #include virtual = "include/footer.asp" -->
|
||||
365
management/cert_cos_print.asp
Normal file
365
management/cert_cos_print.asp
Normal file
@@ -0,0 +1,365 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%'####################################################
|
||||
'0:<3A><> ȭ<><C8AD><EFBFBD><EFBFBD> viewer <20><> <20>μ<EFBFBD><CEBC>ϴ´<CFB4> ȭ<><C8AD><EFBFBD>Դϴ<D4B4>.
|
||||
'1. <20><><EFBFBD><EFBFBD><EFBFBD>ΰ<EFBFBD><CEB0><EFBFBD> <20>μ<EFBFBD>
|
||||
'2. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ A<><41> <20><><EFBFBD><EFBFBD>
|
||||
'3. <20>Ϲݿ<CFB9><DDBF><EFBFBD><EFBFBD><EFBFBD> <20>μ<EFBFBD>
|
||||
'<27>α<CEB1> <20><><EFBFBD><EFBFBD><EFBFBD>ϱ<EFBFBD> -
|
||||
'<27><><EFBFBD>뵵 <20><><EFBFBD><EFBFBD><EFBFBD>ϱ<EFBFBD> -
|
||||
'2006<30><36> 12<31><32> <20><> <20>Ϸ<EFBFBD>
|
||||
'####################################################
|
||||
%>
|
||||
<%
|
||||
dim print_type '1:<3A>ۼ<EFBFBD>, 2:<3A><><EFBFBD><EFBFBD>, 3: <20><>¥ <20><><EFBFBD><EFBFBD>Ʈ
|
||||
print_type = request("print_type")
|
||||
%>
|
||||
<%if cint(print_type) <> 2 then%>
|
||||
<!-- #include file = "../include/top_menu.asp" -->
|
||||
<%end if%>
|
||||
<%
|
||||
|
||||
|
||||
|
||||
Response.Expires = 0
|
||||
'Response.Buffer = false
|
||||
call Time_Check(Session("Login_Check"))
|
||||
|
||||
dim tmpstr
|
||||
dim p_no
|
||||
dim Query
|
||||
dim i
|
||||
dim user_name(4) '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,0:<3A><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD>, 1:<3A≯<EFBFBD>,2:<3A><><EFBFBD><EFBFBD>,3:<3A><>ȭ<EFBFBD><C8AD>ȣ, 4:<3A>μ<EFBFBD><CEBC>ڵ<EFBFBD>(<28><>)
|
||||
dim Max_Width
|
||||
dim title
|
||||
dim krc_no '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>߱<DFB1>ȣ
|
||||
dim target_name '<27>߱<DFB1><DEB4><EFBFBD><EFBFBD><EFBFBD> <20≯<EFBFBD>
|
||||
dim Curr_date '<27><><EFBFBD>ó<EFBFBD>¥
|
||||
dim Company(6)
|
||||
dim client_name
|
||||
dim print_date
|
||||
dim db_table_name
|
||||
|
||||
db_table_name = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
|
||||
|
||||
client_name = request("txt_client")
|
||||
|
||||
|
||||
title="<22><> <20><> <20><> <20><> <20><>"
|
||||
Max_Width =750
|
||||
Curr_date = year(date) & "-" & zeroformat(month(date),2) & "-" & zeroformat(day(date),2)
|
||||
print_date = request("txt_print_date")
|
||||
if print_type=2 then
|
||||
print_date = mid(print_date,1,4) & "<22><> " & mid(print_date,6,2) & "<22><> " & mid(print_date,9,2) & "<22><>"
|
||||
end if
|
||||
|
||||
|
||||
''//===============
|
||||
''ȸ<><C8B8> ȸ<><C8B8><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD><DAB5>Ϲ<EFBFBD>ȣ, <20><>ǥ<EFBFBD>ڸ<EFBFBD>, <20>ּ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
Query = "select * from company"
|
||||
adoRs.open Query, adoconn,adopenstatic, adlockreadonly
|
||||
Company(1) = adors("com_name")
|
||||
Company(2) = adors("<22><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD><DAB5>Ϲ<EFBFBD>ȣ")
|
||||
Company(3) = adors("<22><>ǥ<EFBFBD>ڸ<EFBFBD>")
|
||||
Company(4) = adors("<22>ּ<EFBFBD>")
|
||||
Company(5) = adors("<22><><EFBFBD>ε<EFBFBD><CEB5>Ϲ<EFBFBD>ȣ")
|
||||
Company(6) = adors("ȸ<><C8B8><EFBFBD><EFBFBD>ǥ<EFBFBD><C7A5>ȭ<EFBFBD><C8AD>ȣ")
|
||||
adoRs.close
|
||||
|
||||
''///===============
|
||||
''<27>α<EFBFBD><CEB1><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
user_name(0) = Session("User_Number")
|
||||
Query = "SELECT p_name, p_team_name, p_rank_name, p_tel3 FROM project2.dbo.V_Person WHERE p_no = '" & user_name(0) & "'"
|
||||
adoRs.open Query, adoconn,adopenstatic, adlockreadonly
|
||||
user_name(1) = adoRs("p_name") '<27≯<EFBFBD>
|
||||
user_name(2) = adoRs("p_rank_name") '<27><><EFBFBD><EFBFBD> <20>ڵ<EFBFBD>
|
||||
user_name(3) = adoRs("p_tel3") '<27><><EFBFBD><EFBFBD> <20><>ȭ
|
||||
user_name(4) = adoRs("p_team_name") '<27>μ<EFBFBD><CEBC>ڵ<EFBFBD>
|
||||
adoRs.close
|
||||
|
||||
|
||||
|
||||
if print_type =3 then '<27><>¥ <20><><EFBFBD><EFBFBD>Ʈ<EFBFBD≯<EFBFBD> <20>α<EFBFBD><CEB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϱ<EFBFBD>
|
||||
'//========================
|
||||
''<27>α<EFBFBD><CEB1><EFBFBD><EFBFBD><EFBFBD>
|
||||
'<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ΰ<EFBFBD><CEB0><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ <20><><EFBFBD><EFBFBD>
|
||||
''///===============
|
||||
''<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ <20><><EFBFBD><EFBFBD>
|
||||
Query = "select <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ as krc_no from " & db_table_name & "_log "
|
||||
query = query & " where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> = '" & replace(title, " ", "") & "' "
|
||||
query = query & " and substring(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ,5,4) = '" & year(date) & "' "
|
||||
query = query & " order by <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ"
|
||||
adoRs.open Query, adoconn,adopenstatic, adlockreadonly
|
||||
if adoRs.recordcount <= 0 then
|
||||
krc_no = 0
|
||||
else
|
||||
adoRs.movelast
|
||||
tmpstr = split(trim(adoRs("krc_no")),"-")
|
||||
krc_no = tmpstr(3)
|
||||
end if
|
||||
adoRs.close
|
||||
krc_no = int(krc_no) + 1
|
||||
tmpstr = "KRC-" & year(date) & "-"
|
||||
tmpstr = tmpstr & "A-"
|
||||
krc_no = tmpstr & ZeroFormat(krc_no,5)
|
||||
|
||||
|
||||
query = "insert into " & db_table_name & "_log (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_p_no, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_<EFBFBD≯<EFBFBD>, <20><><EFBFBD><EFBFBD>,"
|
||||
query = query & " <20>߱<EFBFBD><DFB1><EFBFBD>, <20>߱ð<DEBD>, <20>߱<EFBFBD><DFB1><EFBFBD>_p_no, <20>߱<EFBFBD><DFB1><EFBFBD>_<EFBFBD≯<EFBFBD>, <20>߱<EFBFBD><DFB1><EFBFBD>_ip) values ( "
|
||||
query = query & "'" & krc_no & "', "
|
||||
query = query & "'" & replace(title, " ", "") & "', "
|
||||
query = query & "'" & user_name(0) & "', "
|
||||
query = query & "'" & user_name(1) & "', "
|
||||
query = query & "'" & client_name & "', "
|
||||
query = query & "'" & year(date) & "-" & zeroformat(month(date),2) & "-" & zeroformat(day(date),2) & "', "
|
||||
query = query & "'" & time() & "', "
|
||||
query = query & "'" & user_name(0) & "', "
|
||||
query = query & "'" & user_name(1) & "', "
|
||||
query = query & "'" & Session("USERIP") & "')"
|
||||
if session("loginuser") = "<22><>ȫ<EFBFBD><C8AB>" then
|
||||
else
|
||||
adoconn.execute query
|
||||
end if
|
||||
end if
|
||||
%>
|
||||
<style>
|
||||
.doc_title{
|
||||
text-align: justify;
|
||||
-moz-text-align-last: justify;
|
||||
-webkit-text-align-last: justify; /* not implemented yet, and will not be */
|
||||
text-align-last: justify; /* IE */
|
||||
padding-right: 40px;
|
||||
}
|
||||
</style>
|
||||
<script language=javascript>
|
||||
function win_close()
|
||||
{
|
||||
window.close();
|
||||
}
|
||||
|
||||
function win_print()
|
||||
{
|
||||
var txt_print_date = document.frm_Sayung.txt_print_date.value;
|
||||
var txt_client = document.frm_Sayung.txt_client.value;
|
||||
|
||||
var url = "cert_cos_print.asp?print_type=3";
|
||||
url = url + "&txt_print_date=" + txt_print_date;
|
||||
url = url + "&txt_client=" + txt_client;
|
||||
document.frm_Sayung.action=url;
|
||||
document.frm_Sayung.submit();
|
||||
}
|
||||
|
||||
|
||||
function goPrint()
|
||||
{//<2F><><EFBFBD><EFBFBD>Ʈ <20>ϱ<EFBFBD>
|
||||
var txt_print_date = document.frm_Sayung.txt_print_date.value;
|
||||
var txt_client = document.frm_Sayung.txt_client.value;
|
||||
|
||||
var url = "cert_cos_print.asp?print_type=2";
|
||||
url = url + "&txt_print_date=" + txt_print_date;
|
||||
url = url + "&txt_client=" + txt_client;
|
||||
|
||||
window.open(url,"","left=0 top=50 menubar=no location=no status=no toolbar=no width=820 height=600 scrollbars=yes resizable=no");
|
||||
// document.frm_Sayung.action="<22><><EFBFBD><EFBFBD><EFBFBD>ΰ<EFBFBD><CEB0><EFBFBD>_print.asp?print_type=2";
|
||||
// document.frm_Sayung.submit();
|
||||
}
|
||||
|
||||
function print_ie()
|
||||
{
|
||||
|
||||
//
|
||||
if(navigator.userAgent.toLowerCase().indexOf('chrome') > -1){ // Chrome Browser Detected?
|
||||
window.PPClose = false; // Clear Close Flag
|
||||
window.onbeforeunload = function(){ // Before Window Close Event
|
||||
if(window.PPClose === false){ // Close not OK?
|
||||
return 'Leaving this page will block the parent window!\nPlease select "Stay on this Page option" and use the\nCancel button instead to close the Print Preview Window.\n';
|
||||
}
|
||||
}
|
||||
window.print(); // Print preview
|
||||
window.PPClose = true; // Set Close Flag to OK.
|
||||
}else{
|
||||
window.print();
|
||||
window.close();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//-->
|
||||
</script>
|
||||
|
||||
<%if cint(print_type) = 2 then%>
|
||||
<body onload="print_ie();">
|
||||
<%end if%>
|
||||
<form method='post' name='frm_Sayung'>
|
||||
|
||||
<td width="100%" valign="top">
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<%if cint(print_type) <> 2 then%>
|
||||
<tr>
|
||||
<!-- Ȯ<><C8AE> -->
|
||||
</tr>
|
||||
<%end if%>
|
||||
<tr>
|
||||
<td colspan="2" style="padding:20;">
|
||||
<table cellpadding="0" cellspacing="0" border="0">
|
||||
<%if cint(print_type) = 1 then%>
|
||||
<tr>
|
||||
<td style="padding:0 0 5 0;">
|
||||
|
||||
<font class="brown"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڸ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>߱<EFBFBD> <20><>ư<EFBFBD><C6B0> Ŭ<><C5AC><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>.</font><br>
|
||||
<img src="/images/common/blank.gif" width="19" height="1" align="absmiddle">
|
||||
<font class="k_darkorange"><3E>濵<EFBFBD><E6BFB5><EFBFBD><EFBFBD><EFBFBD>Ǹ<EFBFBD> <20><><EFBFBD>밡<EFBFBD><EBB0A1><EFBFBD>մϴ<D5B4>.</font>
|
||||
</td>
|
||||
</tr>
|
||||
<%end if%>
|
||||
|
||||
<%if cint(print_type) = 2 then%>
|
||||
<tr height=100>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<%end if%>
|
||||
|
||||
<tr>
|
||||
<td><img src="/images/approval/docbg_top.jpg"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="710" align="center" style="padding:10;border-left:1px solid #dedede;border-right:1px solid #dedede;">
|
||||
<table width="100%" cellpadding="3" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr height=50>
|
||||
<td align="center"><b style="font-size:22px;font-family:Dotum;"><%=title%></b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" style="padding:10 0 10 0">
|
||||
<table width="70%" cellpadding="5" cellspacing="0" border="0" style="border-collapse:collapse; margin-left: 15px;">
|
||||
<tr height=30>
|
||||
<td width="155" class='doc_title'><3E><> <20><> <20><></td>
|
||||
<td><%=company(1)%></td>
|
||||
</tr>
|
||||
<tr height=30>
|
||||
<td class='doc_title'><3E><> <20><></td>
|
||||
<td><%=company(4)%></td>
|
||||
</tr>
|
||||
<%tmpstr=split(company(3),",")
|
||||
for i=0 to ubound(tmpstr)%>
|
||||
<tr>
|
||||
<td class='doc_title'><3E><> ǥ <20><> <20><></td>
|
||||
<td><%=tmpstr(i)%></td>
|
||||
</tr>
|
||||
<%next%>
|
||||
<tr height=30>
|
||||
<td class='doc_title'><3E><> <20><> <20><> <20><> <20><> <20><> ȣ</td>
|
||||
<td><%=company(2)%></td>
|
||||
</tr>
|
||||
<tr height=30>
|
||||
<td class='doc_title'><3E><> <20><> <20><> <20><> <20><> ȣ</td>
|
||||
<td><%=company(5)%></td>
|
||||
</tr>
|
||||
<tr height=30>
|
||||
<td class='doc_title'><3E><> ȭ <20><> ȣ</td>
|
||||
<td><%=company(6)%></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<%if cint(print_type) = 2 then%>
|
||||
<tr height=50>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<%end if%>
|
||||
<tr>
|
||||
<td align="center" style="padding:10;"><b style="font-size:14px;font-family:Dotum;"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ΰ<EFBFBD><CEB0><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ΰ<EFBFBD><CEB0><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>մϴ<D5B4>.</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table width="60%" cellpadding="5" cellspacing="0" border="2" >
|
||||
<tr height=30>
|
||||
<td align="center" colspan="2" style="width:66%;"><3E><><EFBFBD><EFBFBD><EFBFBD>ΰ<EFBFBD></td>
|
||||
<td align="center" style="width:33%;"><3E><><EFBFBD><EFBFBD><EFBFBD>ΰ<EFBFBD></td>
|
||||
</tr>
|
||||
<tr height="100">
|
||||
<td align="center"> </td>
|
||||
<td align="center"> </td>
|
||||
<td align="center"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<%if cint(print_type) = 2 then%>
|
||||
<tr height=50>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<%end if%>
|
||||
<tr>
|
||||
<td align="right">
|
||||
<table width="50%" cellpadding="5" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr height=30>
|
||||
<td class='doc_title'><3E><> <20><> <20><> <20><></td>
|
||||
<td align="left">
|
||||
<%if cint(print_type)= 2 or cint(print_type) =3 then%>
|
||||
<font class="tahoma"><%=print_date%>
|
||||
<%else%>
|
||||
<input type="text" class="number" name="txt_print_date" style="width:100px;text-align:right" maxlength="8" OnBlur="OnFormatDate(this)" OnFocus="OnReplaceDate(this)" OnKeyup="OnlyNumber(this)" value="<%=curr_date%>" readonly>
|
||||
<img src="/images/common/btn_calendar.jpg" align="absmiddle" OnClick="winopn('/include/calendar.html?actval=txt_print_date')" class="imglink" title='<27><>¥<EFBFBD><C2A5> <20><><EFBFBD><EFBFBD><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>' style="cursor:pointer">
|
||||
<%end if%>
|
||||
</td>
|
||||
</tr>
|
||||
<tr height=30>
|
||||
<td class='doc_title'><3E><> <20><> <20><></td>
|
||||
<td align="left"> <%=company(1)%></td>
|
||||
</tr>
|
||||
<%tmpstr=split(company(3),",")
|
||||
for i=0 to ubound(tmpstr)%>
|
||||
<tr height=30>
|
||||
<td class='doc_title'><3E><> ǥ <20><> <20><></td>
|
||||
<td align="left">
|
||||
<%=trim(tmpstr(i))%> <img src='/images/common/sign.gif' width=15 height=15>
|
||||
</td>
|
||||
</tr>
|
||||
<%next%>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr height=50>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<b style="font-size:18px;font-family:Dotum;line-height:200%"><%=client_name%> <20><><EFBFBD><EFBFBD></b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:15 0 5 0"><!-- #include virtual= "approval/inc_logo.asp" --></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="/images/approval/docbg_btm.jpg"></td>
|
||||
</tr>
|
||||
<%if cint(print_type) = 1 then%>
|
||||
<tr>
|
||||
<td style="padding:10 0 0 0;" align="center">
|
||||
<img src="/images/management/btn_cert.jpg" title='<27>ۼ<EFBFBD><DBBC>Ϸ<EFBFBD>' onclick='goPrint();' style='cursor:pointer'>
|
||||
<a href="/management/certificate_select.asp"> <img src="/images/common/btn_cancel.jpg"></a>
|
||||
</td>
|
||||
</tr>
|
||||
<%end if%>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
|
||||
<%if print_type=2 then%>
|
||||
<input type=hidden name='txt_print_date' value ='<%=print_date%>'>
|
||||
<%end if%>
|
||||
<input type=hidden name='txt_client' value ='<%=client_name%>'>
|
||||
</form>
|
||||
<%if cint(print_type) = 2 then%>
|
||||
</body>
|
||||
<%else%>
|
||||
|
||||
<%end if%>
|
||||
|
||||
|
||||
|
||||
571
management/cert_official_print.asp
Normal file
571
management/cert_official_print.asp
Normal file
@@ -0,0 +1,571 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
|
||||
<%
|
||||
|
||||
dim print_type '1:<3A><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>(<28>ۼ<EFBFBD><DBBC><EFBFBD>), 2:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28>濵<EFBFBD><E6BFB5><EFBFBD><EFBFBD><EFBFBD>ǿ<EFBFBD>)
|
||||
dim tmpstr
|
||||
dim Query
|
||||
dim i
|
||||
dim user_name(4) '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,0:<3A><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD>, 1:<3A≯<EFBFBD>,2:<3A><><EFBFBD><EFBFBD>,3:<3A><>ȭ<EFBFBD><C8AD>ȣ, 4:<3A>μ<EFBFBD><CEBC>ڵ<EFBFBD>(<28><>)
|
||||
dim Max_Width
|
||||
dim title
|
||||
dim krc_no '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>߱<DFB1>ȣ
|
||||
dim gap(10)
|
||||
dim Company(4)
|
||||
dim db_table_name
|
||||
dim txt_date
|
||||
dim fax_number(3) 'fax<61><78>ȣ
|
||||
dim chk_buser
|
||||
|
||||
tmp_docu = request("tmp_docu")
|
||||
|
||||
db_table_name = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
txt_date=request("txt_date")
|
||||
print_type = request("print_type") '1:<3A><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>(<28>ۼ<EFBFBD><DBBC><EFBFBD>),2:<3A><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>(<28>ۼ<EFBFBD><DBBC><EFBFBD>) 3:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28>濵<EFBFBD><E6BFB5><EFBFBD><EFBFBD><EFBFBD>ǿ<EFBFBD>)
|
||||
|
||||
title="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
Max_Width =750
|
||||
|
||||
set rsm = server.CreateObject("ADODB.RECORDSET")
|
||||
|
||||
|
||||
''//===============
|
||||
''ȸ<><C8B8> ȸ<><C8B8><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD><DAB5>Ϲ<EFBFBD>ȣ, <20><>ǥ<EFBFBD>ڸ<EFBFBD>, <20>ּ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
Query = "select * from company"
|
||||
adoRs.open Query, adoconn,adopenstatic, adlockreadonly
|
||||
Company(1) = adors("com_name")
|
||||
Company(2) = adors("<22><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD><DAB5>Ϲ<EFBFBD>ȣ")
|
||||
Company(3) = adors("<22><>ǥ<EFBFBD>ڸ<EFBFBD>")
|
||||
Company(4) = adors("<22>ּ<EFBFBD>")
|
||||
fax_number(1) = adors("fax_1<5F><31>")
|
||||
fax_number(2) = adors("fax_2<5F><32>")
|
||||
fax_number(3) = adors("fax_3<5F><33>")
|
||||
adoRs.close
|
||||
|
||||
''///===============
|
||||
''<27>α<EFBFBD><CEB1><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
user_name(0) = Session("User_Number")
|
||||
Query = "select p_name, p_pos, p_tel3, p_depart from person where p_no ='" & user_name(0) & "'"
|
||||
adoRs.open Query, adoconn,adopenstatic, adlockreadonly
|
||||
user_name(1) = adoRs("p_name") '<27≯<EFBFBD>
|
||||
user_name(2) = adoRs("p_pos") '<27><><EFBFBD><EFBFBD> <20>ڵ<EFBFBD>
|
||||
user_name(3) = adoRs("p_tel3") '<27><><EFBFBD><EFBFBD> <20><>ȭ
|
||||
user_name(4) = adoRs("p_depart") '<27>μ<EFBFBD><CEBC>ڵ<EFBFBD>
|
||||
if cint(user_name(4)) = 11 or cint(user_name(4)) = 13 then '<27><><EFBFBD><EFBFBD><EFBFBD>м<EFBFBD><D0BC><EFBFBD>, <20>濵<EFBFBD><E6BFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
chk_buser = 1 '1<><31>
|
||||
elseif cint(user_name(4)) = 12 then '<27>ڷ<EFBFBD><DAB7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
chk_buser = 2 '2<><32>
|
||||
else '<27><>Ÿ<EFBFBD>μ<EFBFBD>
|
||||
chk_buser = 3 '3<><33>
|
||||
end if
|
||||
adoRs.close
|
||||
query = "select * from position where p_code = " & user_name(2)
|
||||
adoRs.open Query, adoconn,adopenstatic, adlockreadonly
|
||||
user_name(2) = adors("p_name") '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
adoRs.close
|
||||
query = "select * from depart where d_code = " & user_name(4)
|
||||
adoRs.open Query, adoconn,adopenstatic, adlockreadonly
|
||||
user_name(4) = adors("d_name") '<27>μ<EFBFBD><CEBC><EFBFBD>
|
||||
adoRs.close
|
||||
|
||||
gap(1) = Request("txt_part")
|
||||
gap(2) = replace(request("txt_name"),"?"," ")
|
||||
gap(3) = request("txt_tel")
|
||||
gap(4) = request("txt_fax")
|
||||
gap(5) = request("txt_target1")
|
||||
gap(6) = request("txt_target2")
|
||||
gap(7) = request("txt_target3")
|
||||
gap(8) = request("txt_target4")
|
||||
gap(9) = year(date) & "<22><> " & month(date) & "<22><> " & day(date) & "<22><>"
|
||||
gap(10) = (Request("txt_target5"))
|
||||
|
||||
tmp_txt1 = request("tmp_txt1")
|
||||
tmp_txt2 = request("tmp_txt2")
|
||||
tmp_txt3 = request("tmp_txt3")
|
||||
tmp_txt4 = request("tmp_txt4")
|
||||
tmp_txt5 = request("tmp_txt5")
|
||||
tmp_txt6 = request("tmp_txt6")
|
||||
tmp_txt7 = request("tmp_txt7")
|
||||
tmp_txt8 = request("tmp_txt8")
|
||||
tmp_txt9 = request("tmp_txt9")
|
||||
tmp_txt10 = request("tmp_txt10")
|
||||
|
||||
if print_type=2 then '<27>ۼ<EFBFBD><DBBC><EFBFBD><EFBFBD><EFBFBD> <20>μ<EFBFBD> <20><>ư<EFBFBD><C6B0> <20><><EFBFBD><EFBFBD> <20>Դ<EFBFBD>
|
||||
''///===============
|
||||
''<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ <20><><EFBFBD><EFBFBD>
|
||||
Query = "select <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ as krc_no from " & db_table_name
|
||||
query = query & " where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> = '" & replace(title, " ", "") & "' "
|
||||
query = query & " and substring(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ,5,4) = '" & year(date) & "' "
|
||||
query = query & " order by <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ"
|
||||
adoRs.open Query, adoconn,adopenstatic, adlockreadonly
|
||||
if adoRs.recordcount <= 0 then
|
||||
krc_no = 0
|
||||
else
|
||||
adoRs.movelast
|
||||
tmpstr = split(trim(adoRs("krc_no")),"-")
|
||||
krc_no = tmpstr(3)
|
||||
end if
|
||||
adoRs.close
|
||||
krc_no = int(krc_no) + 1
|
||||
tmpstr = "KRC-" & year(date) & "-"
|
||||
tmpstr = tmpstr & "H-"
|
||||
krc_no = tmpstr & ZeroFormat(krc_no,5)
|
||||
|
||||
target97 = user_name(1) & "^^" & user_name(2) & "^^" & user_name(3) & "^^" & user_name(4)
|
||||
target98 = Company(1) & "^^" & Company(2) & "^^" & Company(3) & "^^" & Company(4)
|
||||
'====================================================================
|
||||
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
|
||||
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Ÿ<><C5B8>
|
||||
if tmp_docu = "1" then '<27><><EFBFBD><EFBFBD>
|
||||
d_type = "3"
|
||||
elseif tmp_docu = "2" then '<27>ӿ<EFBFBD>
|
||||
d_type = "2"
|
||||
elseif tmp_docu = "3" then '<27>μ<EFBFBD><CEBC><EFBFBD>
|
||||
d_type = "1"
|
||||
elseif tmp_docu = "4" then '<27><><EFBFBD><EFBFBD><EFBFBD>Ϸ<EFBFBD>
|
||||
d_type = "4"
|
||||
end if
|
||||
|
||||
d_order1 = tmp_txt1
|
||||
d_order2 = tmp_txt2
|
||||
d_order3 = tmp_txt3
|
||||
d_order4 = tmp_txt4
|
||||
d_order5 = tmp_txt5
|
||||
d_order6 = "<22><><EFBFBD><EFBFBD>"
|
||||
d_order7 = "<22><><EFBFBD><EFBFBD>"
|
||||
d_order8 = "<22><><EFBFBD><EFBFBD>"
|
||||
d_order9 = "<22><><EFBFBD><EFBFBD>"
|
||||
d_order10 = "<22><><EFBFBD><EFBFBD>"
|
||||
|
||||
'<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ڸ<EFBFBD> <20>̾Ƴ<CCBE><C6B3><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ<EFBFBD><C8A3> <20><><EFBFBD><EFBFBD>
|
||||
if instr(1, d_order1, "<BR>") then
|
||||
tmp = split(d_order1, "<BR>")
|
||||
d_order1 = tmp(2)
|
||||
elseif instr(1, d_order2, "<BR>") then
|
||||
tmp = split(d_order2, "<BR>")
|
||||
d_order2 = tmp(2)
|
||||
elseif instr(1, d_order3, "<BR>") then
|
||||
tmp = split(d_order3, "<BR>")
|
||||
d_order3 = tmp(2)
|
||||
elseif instr(1, d_order4, "<BR>") then
|
||||
tmp = split(d_order4, "<BR>")
|
||||
d_order4 = tmp(2)
|
||||
elseif instr(1, d_order5, "<BR>") then
|
||||
tmp = split(d_order5, "<BR>")
|
||||
d_order5 = tmp(2)
|
||||
end if
|
||||
|
||||
if my_pos = 0 then
|
||||
if d_type = "1" then '<27>μ<EFBFBD><CEBC><EFBFBD>
|
||||
d_order5 = "<22><><EFBFBD><EFBFBD>"
|
||||
d_order4 = "<22><><EFBFBD><EFBFBD>"
|
||||
d_order3 = tmp_ess(tmp_dcode(Session("Depart_Code"), 1), tmp_dcode(Session("Depart_Code"), 2))
|
||||
elseif d_type = "2" then '<27>ӿ<EFBFBD>
|
||||
d_order5 = "<22><><EFBFBD><EFBFBD>"
|
||||
d_order4 = tmp_ess(tmp_dcode(Session("Depart_Code"), 1), int(tmp_dcode(Session("Depart_Code"), 2)) + 5) '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ѱ<EFBFBD><D1B1>ӿ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ش<EFBFBD><D8B4>μ<EFBFBD> <20>μ<EFBFBD><CEBC><EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)<29><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>
|
||||
d_order3 = tmp_ess(tmp_dcode(Session("Depart_Code"), 1), tmp_dcode(Session("Depart_Code"), 2))
|
||||
elseif d_type = "3" then '<27><><EFBFBD><EFBFBD>
|
||||
d_order5 = tmp_ess(0, 0)
|
||||
d_order4 = tmp_ess(tmp_dcode(Session("Depart_Code"), 1), int(tmp_dcode(Session("Depart_Code"), 2)) + 5) '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ѱ<EFBFBD><D1B1>ӿ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ش<EFBFBD><D8B4>μ<EFBFBD> <20>μ<EFBFBD><CEBC><EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)<29><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>
|
||||
d_order3 = tmp_ess(tmp_dcode(Session("Depart_Code"), 1), tmp_dcode(Session("Depart_Code"), 2))
|
||||
end if
|
||||
d_order_cnt = 3
|
||||
elseif my_pos = 1 then
|
||||
query = "SELECT * "
|
||||
query = query & "FROM person "
|
||||
query = query & "WHERE p_team = '" & Session("teamcode") & "' "
|
||||
query = query & " AND p_depart = '" & Session("Depart_Code") & "' "
|
||||
query = query & " AND p_team_place = '2' "
|
||||
query = query & " AND p_resign = '0' "
|
||||
rsm.Open query, adoConn, 1
|
||||
if rsm.RecordCount > 0 then
|
||||
d_order2 = rsm("p_no")
|
||||
d_order_cnt = 2
|
||||
else
|
||||
d_order2 = "<22><><EFBFBD><EFBFBD>"
|
||||
d_order_cnt = 3
|
||||
tmp_txt2 = "<22><><EFBFBD><EFBFBD>"
|
||||
end if
|
||||
rsm.Close
|
||||
|
||||
if d_type = "1" then '<27>μ<EFBFBD><CEBC><EFBFBD>
|
||||
d_order5 = "<22><><EFBFBD><EFBFBD>"
|
||||
d_order4 = "<22><><EFBFBD><EFBFBD>"
|
||||
d_order3 = tmp_ess(tmp_dcode(Session("Depart_Code"), 1), tmp_dcode(Session("Depart_Code"), 2))
|
||||
elseif d_type = "2" then '<27>ӿ<EFBFBD>
|
||||
d_order5 = "<22><><EFBFBD><EFBFBD>"
|
||||
d_order4 = tmp_ess(tmp_dcode(Session("Depart_Code"), 1), int(tmp_dcode(Session("Depart_Code"), 2)) + 5) '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ѱ<EFBFBD><D1B1>ӿ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ش<EFBFBD><D8B4>μ<EFBFBD> <20>μ<EFBFBD><CEBC><EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)<29><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>
|
||||
d_order3 = tmp_ess(tmp_dcode(Session("Depart_Code"), 1), tmp_dcode(Session("Depart_Code"), 2))
|
||||
elseif d_type = "3" then '<27><><EFBFBD><EFBFBD>
|
||||
d_order5 = tmp_ess(0, 0)
|
||||
d_order4 = tmp_ess(tmp_dcode(Session("Depart_Code"), 1), int(tmp_dcode(Session("Depart_Code"), 2)) + 5) '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ѱ<EFBFBD><D1B1>ӿ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ش<EFBFBD><D8B4>μ<EFBFBD> <20>μ<EFBFBD><CEBC><EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)<29><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>
|
||||
d_order3 = tmp_ess(tmp_dcode(Session("Depart_Code"), 1), tmp_dcode(Session("Depart_Code"), 2))
|
||||
end if
|
||||
elseif my_pos = 2 then
|
||||
if d_type = "1" then '<27>μ<EFBFBD><CEBC><EFBFBD>
|
||||
d_order5 = "<22><><EFBFBD><EFBFBD>"
|
||||
d_order4 = "<22><><EFBFBD><EFBFBD>"
|
||||
d_order3 = tmp_ess(tmp_dcode(Session("Depart_Code"), 1), tmp_dcode(Session("Depart_Code"), 2))
|
||||
elseif d_type = "2" then '<27>ӿ<EFBFBD>
|
||||
d_order5 = "<22><><EFBFBD><EFBFBD>"
|
||||
d_order4 = tmp_ess(tmp_dcode(Session("Depart_Code"), 1), int(tmp_dcode(Session("Depart_Code"), 2)) + 5) '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ѱ<EFBFBD><D1B1>ӿ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ش<EFBFBD><D8B4>μ<EFBFBD> <20>μ<EFBFBD><CEBC><EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)<29><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>
|
||||
d_order3 = tmp_ess(tmp_dcode(Session("Depart_Code"), 1), tmp_dcode(Session("Depart_Code"), 2))
|
||||
elseif d_type = "3" then '<27><><EFBFBD><EFBFBD>
|
||||
d_order5 = tmp_ess(0, 0)
|
||||
d_order4 = tmp_ess(tmp_dcode(Session("Depart_Code"), 1), int(tmp_dcode(Session("Depart_Code"), 2)) + 5) '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ѱ<EFBFBD><D1B1>ӿ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ش<EFBFBD><D8B4>μ<EFBFBD> <20>μ<EFBFBD><CEBC><EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)<29><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>
|
||||
d_order3 = tmp_ess(tmp_dcode(Session("Depart_Code"), 1), tmp_dcode(Session("Depart_Code"), 2))
|
||||
end if
|
||||
d_order_cnt = 3
|
||||
elseif my_pos = 3 or my_pos = 4 then
|
||||
if d_type = "1" then '<27>μ<EFBFBD><CEBC><EFBFBD>
|
||||
d_order5 = "<22><><EFBFBD><EFBFBD>"
|
||||
d_order4 = "<22><><EFBFBD><EFBFBD>"
|
||||
d_order3 = tmp_ess(tmp_dcode(Session("Depart_Code"), 1), tmp_dcode(Session("Depart_Code"), 2))
|
||||
elseif d_type = "2" then '<27>ӿ<EFBFBD>
|
||||
d_order5 = "<22><><EFBFBD><EFBFBD>"
|
||||
elseif d_type = "3" then '<27><><EFBFBD><EFBFBD>
|
||||
d_order5 = tmp_ess(0, 0)
|
||||
d_order4 = tmp_ess(tmp_dcode(Session("Depart_Code"), 1), int(tmp_dcode(Session("Depart_Code"), 2)) + 5) '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ѱ<EFBFBD><D1B1>ӿ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ش<EFBFBD><D8B4>μ<EFBFBD> <20>μ<EFBFBD><CEBC><EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)<29><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>
|
||||
end if
|
||||
d_order_cnt = 4
|
||||
elseif my_pos = 5 then
|
||||
if d_type = "1" then '<27>μ<EFBFBD><CEBC><EFBFBD>
|
||||
d_order5 = "<22><><EFBFBD><EFBFBD>"
|
||||
elseif d_type = "2" then '<27>ӿ<EFBFBD>
|
||||
d_order5 = "<22><><EFBFBD><EFBFBD>"
|
||||
elseif d_type = "3" then '<27><><EFBFBD><EFBFBD>
|
||||
d_order5 = tmp_ess(0, 0)
|
||||
end if
|
||||
d_order_cnt = 5
|
||||
end if
|
||||
|
||||
if d_type = "4" then
|
||||
d_order_cnt = "77"
|
||||
d_orders = Session("User_Number")
|
||||
end if
|
||||
|
||||
select case d_order_cnt
|
||||
case 1
|
||||
d_orders = d_order1
|
||||
case 2
|
||||
d_orders = d_order2
|
||||
case 3
|
||||
d_orders = d_order3
|
||||
case 4
|
||||
d_orders = d_order4
|
||||
case 5
|
||||
d_orders = d_order5
|
||||
end select
|
||||
|
||||
target99 = tmp_txt1 & "^^" & tmp_txt2 & "^^" & tmp_txt3 & "^^" & tmp_txt4 & "^^" & tmp_txt5
|
||||
target100 = tmp_txt6 & "^^" & tmp_txt7 & "^^" & tmp_txt8 & "^^" & tmp_txt9 & "^^" & tmp_txt10
|
||||
|
||||
'Document table<6C><65> <20><><EFBFBD><EFBFBD>
|
||||
query = "INSERT INTO Document "
|
||||
query = query & " (d_no, d_name, d_write_name, d_write_date, d_flag, d_type, "
|
||||
query = query & " d_order_cnt, d_orders,"
|
||||
query = query & " d_order1, d_order2, d_order3, d_order4, d_order5, "
|
||||
query = query & " d_order6, d_order7, d_order8, d_order9, d_order10, "
|
||||
query = query & " d_view, d_delok) "
|
||||
query = query & "VALUES "
|
||||
query = query & " ('" & krc_no & "', '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>', '" & Session("loginuser") & "', '" & date() & "', '12', '" & d_type & "', "
|
||||
query = query & " '" & d_order_cnt & "', '" & d_orders & "', "
|
||||
query = query & " '" & d_order1 & "', '" & d_order2 & "', '" & d_order3 & "', '" & d_order4 & "', '" & d_order5 & "', "
|
||||
query = query & " '" & d_order6 & "', '" & d_order7 & "', '" & d_order8 & "', '" & d_order9 & "', '" & d_order10 & "', "
|
||||
query = query & " 'Y', 'N') "
|
||||
|
||||
'Response.Write query & "<BR>"
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query
|
||||
dbin.Close
|
||||
'====================================================================
|
||||
|
||||
'//========================
|
||||
'<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϱ<EFBFBD>
|
||||
query = "insert into " & db_table_name & " (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,target1, target2, target3, target4, target5, target6, target7, target8,target9,target97,target98,target99,target100, <20><><EFBFBD><EFBFBD>,"
|
||||
query = query & " <20>߱<EFBFBD><DFB1><EFBFBD>, <20>߱ð<DEBD>, login_p_no, login_<6E≯<EFBFBD>,login_ip) values ( "
|
||||
query = query & "'" & krc_no & "', "
|
||||
query = query & "'" & replace(title, " ", "") & "', "
|
||||
for i=1 to 9
|
||||
query = query & "'" & gap(i) & "', "
|
||||
next
|
||||
|
||||
query = query & "'" & target97 & "', "
|
||||
query = query & "'" & target98 & "', "
|
||||
query = query & "'" & target99 & "', "
|
||||
query = query & "'" & target100 & "', "
|
||||
|
||||
query = query & "'" & CheckWord(gap(10)) & "', "
|
||||
query = query & "'" & year(date) & "-" & zeroformat(month(date),2) & "-" & zeroformat(day(date),2) & "', "
|
||||
query = query & "'" & time() & "', "
|
||||
query = query & "'" & user_name(0) & "', "
|
||||
query = query & "'" & user_name(1) & "', "
|
||||
query = query & "'" &Session("USERIP") & "')"
|
||||
'Response.Write query & "<BR>"
|
||||
adoconn.execute query
|
||||
elseif print_type=3 then '<27>濵<EFBFBD><E6BFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>Ʈ <20≯<EFBFBD>
|
||||
krc_no = request("txt_krc_no")
|
||||
Query = "select * from " & db_table_name & " where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '" & krc_no & "'"
|
||||
adoRs.open Query, adoconn,adopenstatic, adlockreadonly
|
||||
gap(1) = adors("target1")
|
||||
gap(2) = adors("target2")
|
||||
gap(3) = adors("target3")
|
||||
gap(4) = adors("target4")
|
||||
gap(5) = adors("target5")
|
||||
gap(6) = adors("target6")
|
||||
gap(7) = adors("target7")
|
||||
gap(8) = adors("target8")
|
||||
gap(9) = txt_date'adors("target9")
|
||||
gap(9) = mid(gap(9),1,4) & "<22><> " & mid(gap(9),6,2) & "<22><> " & mid(gap(9),9,2) & "<22><>"
|
||||
gap(10) = ViewWord(adors("<22><><EFBFBD><EFBFBD>"))
|
||||
adoRs.close
|
||||
end if
|
||||
|
||||
'//========================
|
||||
''<27>α<EFBFBD><CEB1><EFBFBD><EFBFBD><EFBFBD>
|
||||
if print_type=2 or print_type=3 then
|
||||
query = "insert into " & db_table_name & "_log (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_p_no, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_<EFBFBD≯<EFBFBD>, "
|
||||
query = query & " <20>߱<EFBFBD><DFB1><EFBFBD>, <20>߱ð<DEBD>, <20>߱<EFBFBD><DFB1><EFBFBD>_p_no, <20>߱<EFBFBD><DFB1><EFBFBD>_<EFBFBD≯<EFBFBD>, <20>߱<EFBFBD><DFB1><EFBFBD>_ip) values ( "
|
||||
query = query & "'" & krc_no & "', "
|
||||
query = query & "'" & replace(title, " ", "") & "', "
|
||||
if print_type=2 then
|
||||
query = query & "'<27>ۼ<EFBFBD><DBBC><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD>Ʈ', "
|
||||
else
|
||||
query = query & "'<27>濵<EFBFBD><E6BFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>Ʈ', "
|
||||
end if
|
||||
query = query & "'" & user_name(0) & "', "
|
||||
query = query & "'" & user_name(1) & "', "
|
||||
query = query & "'" & year(date) & "-" & zeroformat(month(date),2) & "-" & zeroformat(day(date),2) & "', "
|
||||
query = query & "'" & time() & "', "
|
||||
query = query & "'" & user_name(0) & "', "
|
||||
query = query & "'" & user_name(1) & "', "
|
||||
query = query & "'" & Request.ServerVariables("REMOTE_HOST") & "')"
|
||||
' Response.Write query & "<br>"
|
||||
'adoconn.execute query
|
||||
end if
|
||||
if session("loginuser")="<22><>ȫ<EFBFBD><C8AB>" then
|
||||
' Response.Write gap(9) & ",, " & print_type
|
||||
end if
|
||||
%>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title><%=GNB_TITLE%></title>
|
||||
<link rel="stylesheet" type="text/css" href="/css/basic.css">
|
||||
</head>
|
||||
|
||||
<script language=javascript>
|
||||
|
||||
function win_close()
|
||||
{
|
||||
window.close();
|
||||
}
|
||||
function subit()
|
||||
{
|
||||
|
||||
var txt_part = document.frm_HyupJo.txt_part.value;
|
||||
var txt_name = document.frm_HyupJo.txt_name.value;
|
||||
var txt_tel = document.frm_HyupJo.txt_tel.value;
|
||||
var txt_fax = document.frm_HyupJo.txt_fax.value;
|
||||
var txt_target1 = document.frm_HyupJo.txt_target1.value;
|
||||
var txt_target2 = document.frm_HyupJo.txt_target2.value;
|
||||
var txt_target3 = document.frm_HyupJo.txt_target3.value;
|
||||
var txt_target4 = document.frm_HyupJo.txt_target4.value;
|
||||
var txt_target5 = document.frm_HyupJo.txt_target5.value;
|
||||
var url;
|
||||
|
||||
|
||||
var txt = document.frm_HyupJo.txt_target5.value;
|
||||
for (var i=0;i<txt.length;i++)
|
||||
{
|
||||
var uniCode = txt.charCodeAt(i);
|
||||
if(uniCode == 13 && txt.charCodeAt(i+1) == 10){
|
||||
txt = txt.replace(txt.charAt(i)+txt.charAt(i+1),"<br>");
|
||||
}
|
||||
var uniCode = txt.charCodeAt(i);
|
||||
if(uniCode == 37 ){
|
||||
txt = txt.replace(txt.charAt(i),"aper;");
|
||||
}
|
||||
}
|
||||
|
||||
txt_target5 = txt;
|
||||
|
||||
url = "doc_official_print.asp";
|
||||
url = url + "?txt_part=" + txt_part;
|
||||
url = url + "&txt_name=" + txt_name;
|
||||
url = url + "&txt_tel=" + txt_tel;
|
||||
url = url + "&txt_fax=" + txt_fax;
|
||||
url = url + "&txt_target1=" + txt_target1;
|
||||
url = url + "&txt_target2=" + txt_target2;
|
||||
url = url + "&txt_target3=" + txt_target3;
|
||||
url = url + "&txt_target4=" + txt_target4;
|
||||
url = url + "&txt_target5=" + txt_target5;
|
||||
url = url + "&print_type=2";
|
||||
|
||||
|
||||
|
||||
document.frm_HyupJo.action=url;
|
||||
document.frm_HyupJo.submit();
|
||||
}
|
||||
|
||||
|
||||
|
||||
function print_ie()
|
||||
{
|
||||
|
||||
//
|
||||
if(navigator.userAgent.toLowerCase().indexOf('chrome') > -1){ // Chrome Browser Detected?
|
||||
window.PPClose = false; // Clear Close Flag
|
||||
window.onbeforeunload = function(){ // Before Window Close Event
|
||||
if(window.PPClose === false){ // Close not OK?
|
||||
return 'Leaving this page will block the parent window!\nPlease select "Stay on this Page option" and use the\nCancel button instead to close the Print Preview Window.\n';
|
||||
}
|
||||
}
|
||||
window.print(); // Print preview
|
||||
window.PPClose = true; // Set Close Flag to OK.
|
||||
}else{
|
||||
window.print();
|
||||
window.close();
|
||||
}
|
||||
}
|
||||
|
||||
function clsit()
|
||||
{
|
||||
alert('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>û <20>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.');
|
||||
self.close();
|
||||
}
|
||||
|
||||
//-->
|
||||
</script>
|
||||
|
||||
<body topmargin="10" leftmargin="10" <%if cint(print_type) = 2 then%> onLoad="clsit();" <% elseif print_type=3 then%> onLoad="print_ie();" <% end if %>>
|
||||
|
||||
<form method='post' name='frm_HyupJo'>
|
||||
|
||||
<input type="hidden" name="tmp_docu" value="<%=tmp_docu%>">
|
||||
<input type=hidden name = "txt_part" value ="<%=gap(1)%>">
|
||||
<input type=hidden name = "txt_name" value ="<%=gap(2)%>">
|
||||
<input type=hidden name = "txt_tel" value ="<%=gap(3)%>">
|
||||
<input type=hidden name = "txt_fax" value ="<%=gap(4)%>">
|
||||
<input type=hidden name = "txt_target1" value ="<%=gap(5)%>">
|
||||
<input type=hidden name = "txt_target2" value ="<%=gap(6)%>">
|
||||
<input type=hidden name = "txt_target3" value ="<%=gap(7)%>">
|
||||
<input type=hidden name = "txt_target4" value ="<%=gap(8)%>">
|
||||
<input type=hidden name = "txt_target5" value ="<%=(gap(10))%>">
|
||||
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td >
|
||||
<table cellpadding="0" cellspacing="0" border="0">
|
||||
<%if cint(print_type) = 1 then%>
|
||||
<tr>
|
||||
<td style="padding:0 0 5 0;">
|
||||
<img src="/images/common/btn_approve.jpg" onClick="subit()" style="CURSOR:pointer;">
|
||||
<img src="/images/common/btn_cancel.jpg" onClick="win_close();" style="CURSOR:pointer;">
|
||||
</td>
|
||||
</tr>
|
||||
<%end if%>
|
||||
<tr>
|
||||
<td><img src="/images/approval/docbg_top.jpg"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="710" align="center" style="padding:10;border-left:1px solid #dedede;border-right:1px solid #dedede;">
|
||||
<table width="95%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td colspan="2" style="padding:0 0 10 0">
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<td width="255"><img src="/images/approval/doc_stit03.jpg" align="absmiddle"></td>
|
||||
<td>
|
||||
<!-- #include file = "inc_approval.asp" -->
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" style="padding:5 0 5 0;">
|
||||
<09><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD> : <%=user_name(4)%>
|
||||
<09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> : <%=user_name(1)%> <%=user_name(2)%>
|
||||
<09><><EFBFBD><EFBFBD> : <font class="tahoma"><%=user_name(3)%></font>
|
||||
<09>ѽ<EFBFBD> : <font class="tahoma"><%=fax_number(chk_buser)%></font>
|
||||
</td>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><> <3B><> ȣ</b></td>
|
||||
<td width="80%" class="tahoma"><%=krc_no%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><> ó <3B><></b></td>
|
||||
<td width="80%"><%=gap(5)%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><></b></td>
|
||||
<td width="80%"><%=gap(6)%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><> <3B><></b></td>
|
||||
<td width="80%"><%=gap(7)%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><></b></td>
|
||||
<td width="80%"><%=gap(8)%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:10 0 0 0">
|
||||
<table width="100%" cellpadding="5" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr height=400>
|
||||
<td valign="top">
|
||||
<%=replace(ViewWord(gap(10)),chr(13),"<br>")%>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:15 0 5 0"><font class="tahoma"><%=gap(9)%></font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:15 0 5 0"><!-- #include virtual= "approval/inc_logo.asp" --></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="/images/approval/docbg_btm.jpg"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
209
management/cert_official_select.asp
Normal file
209
management/cert_official_select.asp
Normal file
@@ -0,0 +1,209 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<!-- #include file = "../include/top_menu.asp" -->
|
||||
<%'####################################################
|
||||
'<27>濵<EFBFBD><E6BFB5><EFBFBD><EFBFBD><EFBFBD>ǿ<EFBFBD><C7BF><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD> <20>κ<EFBFBD><CEBA>Դϴ<D4B4>.
|
||||
'<27>濵<EFBFBD><E6BFB5><EFBFBD><EFBFBD><EFBFBD>Ǹ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>մϴ<D5B4>.
|
||||
'####################################################
|
||||
%>
|
||||
<%
|
||||
Currdate = year(date) & "-" & zeroformat(month(date),2) & "-" & zeroformat(day(date),2)
|
||||
db_table_name = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
title=request("title")
|
||||
txt_date = request("txt_date")
|
||||
sel_month = request("sel_month")
|
||||
if trim(sel_month) = "" then
|
||||
sel_month = mid(date,1,7)
|
||||
end if
|
||||
|
||||
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ<EFBFBD><C8A3> <20><EFBFBD><E2B5B5> <20><><EFBFBD> <20>ΰ<CEB0> <20><><EFBFBD><EFBFBD>
|
||||
query = "select * from " & db_table_name
|
||||
query = query & " where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ='" & title & "' "
|
||||
query = query & " and <20>߱<EFBFBD><DFB1><EFBFBD> > '2007-05-12' "
|
||||
query = query & " and substring(<28>߱<EFBFBD><DFB1><EFBFBD>,1,7) = '" & sel_month & "' "
|
||||
query = query & " and del_yes_no = 'no' order by <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ desc, <20>߱ð<DEBD> desc"
|
||||
adors.open query, adoconn, adopenstatic, adlockreadonly
|
||||
|
||||
' Response.Write query &"<BR>"
|
||||
%>
|
||||
|
||||
<script language="javascript" src="/js/common.js"></script>
|
||||
|
||||
<form name='frm_official' method='post'>
|
||||
|
||||
<input type=hidden name=txt_command size=50 value='<%=txt_command%>'>
|
||||
|
||||
<td width="100%" valign="top">
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<!-- Ȯ<><C8AE> -->
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" style="padding:20;">
|
||||
<div id="popdiv_obj1" style="position:absolute; background-color:FFFFDD;color:black;border-color:black;border-width:20; display:none; left:25px; top:100px; z-index:10" onmouseover="overdiv=10;" onmouseout="overdiv=0;setTimeout('hideLayer()',1000)">asdf</div>
|
||||
<table cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td style="padding:0 0 5 0;">
|
||||
|
||||
<font class="brown"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڸ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD>Ͻô<CFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ϼ<EFBFBD><CFBC><EFBFBD>.</font><br>
|
||||
<img src="/images/common/blank.gif" width="19" height="1" align="absmiddle">
|
||||
<font class="k_darkorange"><3E>濵<EFBFBD><E6BFB5><EFBFBD><EFBFBD><EFBFBD>Ǹ<EFBFBD> <20><><EFBFBD>밡<EFBFBD><EBB0A1><EFBFBD>մϴ<D5B4>.</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="/images/approval/docbg_top.jpg"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="710" align="center" style="padding:10;border-left:1px solid #dedede;border-right:1px solid #dedede;">
|
||||
<table width="100%" cellpadding="3" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<table width="100%" align="center">
|
||||
<tr>
|
||||
<td><3E>ۼ<EFBFBD><DBBC><EFBFBD> <20><><EFBFBD><EFBFBD> :</td>
|
||||
<td>
|
||||
<input type='text' name='sel_month' style="width:100;text-align:right"
|
||||
readonly size=15 title='<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>'
|
||||
value="<%=sel_month%>" > <3B><></font>
|
||||
<img src="/images/common/btn_calendar.jpg" align="absmiddle" OnClick="winopn('/include/calendar_month.html?actval=sel_month')" style="CURSOR:pointer;">
|
||||
<img src="/images/common/btn_smallsrch.gif" border="0" onClick="change_month('<%=title%>');" style="CURSOR:pointer;" align=middle>
|
||||
</td>
|
||||
<td><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28><><EFBFBD>½<EFBFBD> <20>μ<EFBFBD><CEBC>Ǵ<EFBFBD> <20><><EFBFBD><EFBFBD>) :</td>
|
||||
<td>
|
||||
<input type="text" class="number" name="txt_date" style="width:120px;text-align:right" maxlength="8" OnBlur="OnFormatDate(this)" OnFocus="OnReplaceDate(this)" OnKeyup="OnlyNumber(this)" value="<%=Currdate%>" tabindex="3">
|
||||
<img src="/images/common/btn_calendar.jpg" align="absmiddle" OnClick="winopn('/include/calendar.html?actval=txt_date')" class="imglink" title='<27><>¥<EFBFBD><C2A5> <20><><EFBFBD><EFBFBD><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>' style="CURSOR:pointer;">
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="710" align="center" style="padding:10;border-left:1px solid #dedede;border-right:1px solid #dedede;">
|
||||
<table width="100%" cellpadding="3" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<table width="100%" align="center">
|
||||
<tr height=25 bgcolor=#B9E2FA>
|
||||
<td align="center" width=5%> <20><><EFBFBD><EFBFBD></td>
|
||||
<td align="center" width=5%><3E><><EFBFBD><EFBFBD></td>
|
||||
<td align="center" width=10%><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ</td>
|
||||
<td align="center" width=10%><3E>ۼ<EFBFBD><DBBC><EFBFBD></td>
|
||||
<td align="center" width=15%><3E><><EFBFBD><EFBFBD>ó</td>
|
||||
<td align="center" width=20%><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center" width=35%><3E><><EFBFBD><EFBFBD></td>
|
||||
</tr>
|
||||
|
||||
<%max_cnt = 0
|
||||
list_bgcolor="#dbe9f2"
|
||||
do while not adoRs.eof
|
||||
max_cnt = max_cnt + 1
|
||||
IF list_bgcolor="#FFFFFF" Then
|
||||
list_bgcolor="#dbe9f2"
|
||||
Else
|
||||
list_bgcolor="#FFFFFF"
|
||||
End IF
|
||||
%>
|
||||
<tr bgcolor="<%=list_bgcolor%>" align=centerr id='row<%=max_cnt%>' onmouseover="MultiRowSelection('row<%=max_cnt%>',0,'on');popLayer('<%=change2(adors("<22><><EFBFBD><EFBFBD>"))%>');" onmouseout="MultiRowSelection('row<%=max_cnt%>',0,'off','<%=list_bgcolor%>');hideLayer();" height=20 >
|
||||
<td align=center><input type='radio' name='opt_print' value='<%=adors("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ")%>' onclick="change_title('<%=max_cnt%>');"></td>
|
||||
<td align=center><!--<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ư-->
|
||||
<img src='/images/common/btn_popclose.jpg' onclick="btn_del('<%=adors("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ")%>');" style='CURSOR:pointer;' title='<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'>
|
||||
</td>
|
||||
<td class=td_center ><%=adors("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ")%></td>
|
||||
<td class=td_center ><%=adors("<22>߱<EFBFBD><DFB1><EFBFBD>")%></td>
|
||||
<td><%=adors("target5")%></td>
|
||||
<td><%=adors("target7")%></td>
|
||||
<td><%=adors("target8")%></td>
|
||||
</tr>
|
||||
<%adoRs.movenext
|
||||
loop
|
||||
adors.close%>
|
||||
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="/images/approval/docbg_btm.jpg"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding:10 0 0 0;" align="center">
|
||||
<img src="/images/management/btn_cert.jpg" onclick='goRun();' style='cursor:pointer'>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
|
||||
<td width=515><input type=hidden name=txt_krc_no size=50 value=''></td>
|
||||
<td width=515><input type=hidden name=txt_max_cnt size=50 value='<%=max_cnt%>'></td>
|
||||
<td width=515><input type=hidden name=txt_title size=50 value='<%=title%>'></td>
|
||||
<td width=515><input type=hidden name=txt_curr_date size=50 value='<%=date()%>'></td>
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script language=javascript>
|
||||
function btn_del(krc_no){
|
||||
// ''<27><><EFBFBD>õ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(update <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> del_yes_no = 'yes' where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = no)
|
||||
var x;
|
||||
var txt_title = document.frm_official.txt_title.value;
|
||||
|
||||
if (confirm("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?\n\n <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ڷ<EFBFBD><DAB7><EFBFBD> <20><><EFBFBD><EFBFBD> <20>Ұ<EFBFBD><D2B0>մϴ<D5B4>.") == true){
|
||||
window.open('/approval/doc_delete.asp?krc_no='+krc_no);
|
||||
alert ("<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>");
|
||||
location.reload();
|
||||
}else{
|
||||
alert("<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>");
|
||||
}
|
||||
}
|
||||
|
||||
function change_month(title)
|
||||
{
|
||||
var url;
|
||||
var sel_month;
|
||||
|
||||
sel_month = document.frm_official.sel_month.value;
|
||||
|
||||
url = "cert_official_select.asp?title=" + title;
|
||||
url = url + "&sel_month=" + sel_month;
|
||||
document.frm_official.action=url;
|
||||
document.frm_official.submit();
|
||||
|
||||
}
|
||||
|
||||
function change_title(txt){
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD>ϰ<EFBFBD><CFB0><EFBFBD> <20>ϴ<EFBFBD> <20><EFBFBD><D7B8><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28><> input type=text<78><74> <20><><EFBFBD>ý<EFBFBD>)<29><> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ư<EFBFBD><C6B0> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ű<EFBFBD><C5B0>
|
||||
var i = eval(txt) - 1;
|
||||
var max_cnt = document.frm_official.txt_max_cnt.value;
|
||||
if(max_cnt == 1){ //db<64><62><EFBFBD><EFBFBD> <20><><EFBFBD>ϴ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>Դµ<D4B4> 1<><31> <20>ۿ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
document.frm_official.opt_print.checked = true;
|
||||
document.frm_official.txt_krc_no.value = document.frm_official.opt_print.value;
|
||||
}
|
||||
else
|
||||
{
|
||||
document.frm_official.opt_print[i].checked = true;
|
||||
document.frm_official.txt_krc_no.value = document.frm_official.opt_print[i].value;
|
||||
}
|
||||
|
||||
var url;
|
||||
var txt_date = document.frm_official.txt_date.value;
|
||||
var krc_no = document.frm_official.txt_krc_no.value;
|
||||
|
||||
url ="/ess/doc_official_print.asp?print_type=3&txt_krc_no=" + krc_no;
|
||||
url = url + "&txt_date=" + txt_date;
|
||||
window.open(url,"","left=50 ,top=50 ,menubar=no ,location=no ,status=no, toolbar=no, width=850 ,height=600 ,scrollbars=yes, resizable=no");
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
434
management/cert_poa_print.asp
Normal file
434
management/cert_poa_print.asp
Normal file
@@ -0,0 +1,434 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
dim print_type '1:<3A>ۼ<EFBFBD>, 2:<3A><><EFBFBD><EFBFBD>, 3: <20><>¥ <20><><EFBFBD><EFBFBD>Ʈ
|
||||
print_type = request("print_type")
|
||||
%>
|
||||
<%if cint(print_type) <> 2 then%>
|
||||
<!-- #include file = "../include/top_menu.asp" -->
|
||||
<%end if%>
|
||||
<%'####################################################
|
||||
'0:<3A><> ȭ<><C8AD><EFBFBD><EFBFBD> viewer <20><> <20>μ<EFBFBD><CEBC>ϴ´<CFB4> ȭ<><C8AD><EFBFBD>Դϴ<D4B4>.
|
||||
'1. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>μ<EFBFBD>
|
||||
'2. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ B<><42> <20><><EFBFBD><EFBFBD>
|
||||
'3. <20>Ϲݿ<CFB9><DDBF><EFBFBD><EFBFBD><EFBFBD> <20>μ<EFBFBD>
|
||||
'<27>α<CEB1> <20><><EFBFBD><EFBFBD><EFBFBD>ϱ<EFBFBD> -
|
||||
'<27><><EFBFBD>뵵 <20><><EFBFBD><EFBFBD><EFBFBD>ϱ<EFBFBD> -
|
||||
'2006<30><36> 12<31><32> <20><> <20>Ϸ<EFBFBD>
|
||||
'####################################################
|
||||
%>
|
||||
<%
|
||||
|
||||
|
||||
|
||||
Response.Expires = 0
|
||||
'Response.Buffer = false
|
||||
call Time_Check(Session("Login_Check"))
|
||||
|
||||
dim tmpstr
|
||||
dim p_no
|
||||
dim Query
|
||||
dim i
|
||||
dim user_name(4) '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,0:<3A><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD>, 1:<3A≯<EFBFBD>,2:<3A><><EFBFBD><EFBFBD>,3:<3A><>ȭ<EFBFBD><C8AD>ȣ, 4:<3A>μ<EFBFBD><CEBC>ڵ<EFBFBD>(<28><>)
|
||||
dim Max_Width
|
||||
dim title
|
||||
dim krc_no '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>߱<DFB1>ȣ
|
||||
dim target_name '<27>߱<DFB1><DEB4><EFBFBD><EFBFBD><EFBFBD> <20≯<EFBFBD>
|
||||
dim target_gap(4) '<27>߱<DFB1><DEB4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>, 0:<3A><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD>, 1:<3A≯<EFBFBD>, 2:<3A>ֹι<D6B9>ȣ, 3:<3A><><EFBFBD>ּ<EFBFBD>1,4::<3A><><EFBFBD>ּ<EFBFBD>2
|
||||
dim Curr_date '<27><><EFBFBD>ó<EFBFBD>¥
|
||||
dim Company(6)
|
||||
dim client_name
|
||||
dim gap(4) '<27><><EFBFBD>ӳ<EFBFBD><D3B3><EFBFBD>
|
||||
dim db_table_name
|
||||
|
||||
db_table_name = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
|
||||
client_name = request("txt_client")
|
||||
print_type = request("print_type")
|
||||
gap(1) = request("txt_gap_1")
|
||||
gap(2) = request("txt_gap_2")
|
||||
gap(3) = request("txt_gap_3")
|
||||
gap(4) = request("txt_date")
|
||||
if print_type=2 then
|
||||
gap(4) = mid(gap(4),1,4) & "<22><> " & mid(gap(4),6,2) & "<22><> " & mid(gap(4),9,2) & "<22><>"
|
||||
end if
|
||||
|
||||
title="<22><> <20><> <20><>"
|
||||
Max_Width =750
|
||||
Curr_date = year(date) & "<22><> " & month(date) & "<22><> " & day(date) & "<22><>"
|
||||
|
||||
|
||||
''//===============
|
||||
''ȸ<><C8B8> ȸ<><C8B8><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD><DAB5>Ϲ<EFBFBD>ȣ, <20><>ǥ<EFBFBD>ڸ<EFBFBD>, <20>ּ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
Query = "select * from company"
|
||||
adoRs.open Query, adoconn,adopenstatic, adlockreadonly
|
||||
Company(1) = adors("com_name")
|
||||
Company(2) = adors("<22><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD><DAB5>Ϲ<EFBFBD>ȣ")
|
||||
Company(3) = adors("<22><>ǥ<EFBFBD>ڸ<EFBFBD>")
|
||||
Company(4) = adors("<22>ּ<EFBFBD>")
|
||||
Company(5) = adors("<22><><EFBFBD>ε<EFBFBD><CEB5>Ϲ<EFBFBD>ȣ")
|
||||
Company(6) = adors("ȸ<><C8B8><EFBFBD><EFBFBD>ǥ<EFBFBD><C7A5>ȭ<EFBFBD><C8AD>ȣ")
|
||||
adoRs.close
|
||||
|
||||
''///===============
|
||||
''<27>α<EFBFBD><CEB1><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
user_name(0) = Session("User_Number")
|
||||
Query = "SELECT p_name, p_team_name, p_rank_name, p_tel3 FROM project2.dbo.V_Person WHERE p_no = '" & user_name(0) & "'"
|
||||
adoRs.open Query, adoconn,adopenstatic, adlockreadonly
|
||||
user_name(1) = adoRs("p_name") '<27≯<EFBFBD>
|
||||
user_name(2) = adoRs("p_rank_name") '<27><><EFBFBD><EFBFBD> <20>ڵ<EFBFBD>
|
||||
user_name(3) = adoRs("p_tel3") '<27><><EFBFBD><EFBFBD> <20><>ȭ
|
||||
user_name(4) = adoRs("p_team_name") '<27>μ<EFBFBD><CEBC>ڵ<EFBFBD>
|
||||
adoRs.close
|
||||
|
||||
|
||||
''//====================
|
||||
'' '<27><><EFBFBD>ӹ<D3B9><DEB4><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
if print_type=2 or print_type=3 then
|
||||
target_gap(0) = request("p_no")
|
||||
else
|
||||
target_gap(0) = request("sel_p_no_in")
|
||||
end if
|
||||
Query = "select * from person where p_no ='" & target_gap(0) & "'"
|
||||
adoRs.open Query, adoconn,adopenstatic, adlockreadonly
|
||||
target_gap(1) = adoRs("p_name")
|
||||
target_gap(2) = adoRs("jumin")
|
||||
target_gap(2) = left(decode(target_gap(2), 0),8) + "******"
|
||||
target_gap(3) = adoRs("address1_1")
|
||||
target_gap(4) = adoRs("address1_2")
|
||||
adoRs.close
|
||||
|
||||
|
||||
if print_type =3 then '<27><>¥ <20><><EFBFBD><EFBFBD>Ʈ<EFBFBD≯<EFBFBD> <20>α<EFBFBD><CEB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϱ<EFBFBD>
|
||||
'//========================
|
||||
''<27>α<EFBFBD><CEB1><EFBFBD><EFBFBD><EFBFBD>
|
||||
'<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ΰ<EFBFBD><CEB0><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ <20><><EFBFBD><EFBFBD>
|
||||
''///===============
|
||||
''<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ <20><><EFBFBD><EFBFBD>
|
||||
Query = "select <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ as krc_no from " & db_table_name
|
||||
query = query & " where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> = '" & replace(title, " ", "") & "' "
|
||||
query = query & " and substring(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ,5,4) = '" & year(date) & "' "
|
||||
query = query & " order by <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ"
|
||||
adoRs.open Query, adoconn,adopenstatic, adlockreadonly
|
||||
if adoRs.recordcount <= 0 then
|
||||
krc_no = 0
|
||||
else
|
||||
adoRs.movelast
|
||||
tmpstr = split(trim(adoRs("krc_no")),"-")
|
||||
krc_no = tmpstr(3)
|
||||
end if
|
||||
adoRs.close
|
||||
krc_no = int(krc_no) + 1
|
||||
tmpstr = "KRC-" & year(date) & "-"
|
||||
tmpstr = tmpstr & "B-"
|
||||
krc_no = tmpstr & ZeroFormat(krc_no,5)
|
||||
|
||||
'//========================
|
||||
'<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϱ<EFBFBD>
|
||||
query = "insert into " & db_table_name & " (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,target1, target2, target3, target4, target5, target6, target7, target8, target9,target10,"
|
||||
query = query & " <20>߱<EFBFBD><DFB1><EFBFBD>, <20>߱ð<DEBD>, login_p_no, login_<6E≯<EFBFBD>,login_ip) values ( "
|
||||
query = query & "'" & krc_no & "', "
|
||||
query = query & "'" & replace(title, " ", "") & "', "
|
||||
query = query & "'" & target_gap(0) & "', "
|
||||
query = query & "'" & target_gap(1) & "', "
|
||||
query = query & "'" & target_gap(2) & "', "
|
||||
query = query & "'" & target_gap(3) & "', "
|
||||
query = query & "'" & target_gap(4) & "', "
|
||||
query = query & "'" & client_name & "', "
|
||||
query = query & "'" & gap(1) & "', "
|
||||
query = query & "'" & gap(2) & "', "
|
||||
query = query & "'" & gap(3) & "', "
|
||||
query = query & "'" & gap(4) & "', "
|
||||
query = query & "'" & year(date) & "-" & zeroformat(month(date),2) & "-" & zeroformat(day(date),2) & "', "
|
||||
query = query & "'" & time() & "', "
|
||||
query = query & "'" & user_name(0) & "', "
|
||||
query = query & "'" & user_name(1) & "', "
|
||||
query = query & "'" & Session("USERIP") & "') "
|
||||
' Response.Write query & "<br>"
|
||||
' if session("loginuser") = "<22><>ȫ<EFBFBD><C8AB>" or session("loginuser") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" then
|
||||
if session("loginuser") = "<22><>ȫ<EFBFBD><C8AB>" then
|
||||
else
|
||||
adoconn.execute query
|
||||
end if
|
||||
|
||||
query = "insert into " & db_table_name & "_log (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_p_no, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_<EFBFBD≯<EFBFBD>, <20><><EFBFBD><EFBFBD>,"
|
||||
query = query & " <20>߱<EFBFBD><DFB1><EFBFBD>, <20>߱ð<DEBD>, <20>߱<EFBFBD><DFB1><EFBFBD>_p_no, <20>߱<EFBFBD><DFB1><EFBFBD>_<EFBFBD≯<EFBFBD>, <20>߱<EFBFBD><DFB1><EFBFBD>_ip) values ( "
|
||||
query = query & "'" & krc_no & "', "
|
||||
query = query & "'" & replace(title, " ", "") & "', "
|
||||
query = query & "'" & user_name(0) & "', "
|
||||
query = query & "'" & user_name(1) & "', "
|
||||
query = query & "'" & client_name & "', "
|
||||
query = query & "'" & year(date) & "-" & zeroformat(month(date),2) & "-" & zeroformat(day(date),2) & "', "
|
||||
query = query & "'" & time() & "', "
|
||||
query = query & "'" & user_name(0) & "', "
|
||||
query = query & "'" & user_name(1) & "', "
|
||||
query = query & "'" &Session("USERIP") & "')"
|
||||
' if session("loginuser") = "<22><>ȫ<EFBFBD><C8AB>" or session("loginuser") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" then
|
||||
if session("loginuser") = "<22><>ȫ<EFBFBD><C8AB>" then
|
||||
else
|
||||
adoconn.execute query
|
||||
end if
|
||||
end if
|
||||
%>
|
||||
<%if cint(print_type) = 2 then%>
|
||||
<body onload="print_ie();">
|
||||
<%end if%>
|
||||
|
||||
<form method='post' name='frm_Uiim'>
|
||||
<td width="100%" valign="top">
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<%if cint(print_type) <> 2 then%>
|
||||
<tr>
|
||||
<!-- Ȯ<><C8AE> -->
|
||||
</tr>
|
||||
<%end if%>
|
||||
<tr>
|
||||
<td colspan="2" style="padding:20;">
|
||||
<table cellpadding="0" cellspacing="0" border="0">
|
||||
<%if cint(print_type) = 1 then%>
|
||||
<tr>
|
||||
<td style="padding:0 0 5 0;">
|
||||
|
||||
<font class="brown"><3E><><EFBFBD>ӳ<EFBFBD><D3B3><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڸ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>߱<EFBFBD> <20><>ư<EFBFBD><C6B0> Ŭ<><C5AC><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>.</font><br>
|
||||
<img src="/images/common/blank.gif" width="19" height="1" align="absmiddle">
|
||||
<font class="k_darkorange"><3E>濵<EFBFBD><E6BFB5><EFBFBD><EFBFBD><EFBFBD>Ǹ<EFBFBD> <20><><EFBFBD>밡<EFBFBD><EBB0A1><EFBFBD>մϴ<D5B4>.</font>
|
||||
</td>
|
||||
</tr>
|
||||
<%end if%>
|
||||
<%if cint(print_type) = 2 then%>
|
||||
<tr height=100>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<%end if%>
|
||||
<tr>
|
||||
<td><img src="/images/approval/docbg_top.jpg"></td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td width="710" align="center" style="padding:10;border-left:1px solid #dedede;border-right:1px solid #dedede;">
|
||||
<table width="100%" cellpadding="3" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr height=50>
|
||||
<td align="center"><b style="font-size:22px;font-family:Dotum;"><%=replace(title," "," ")%></b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" style="padding:10 0 10 0">
|
||||
<table width="98%" cellpadding="5" cellspacing="0" border="1" >
|
||||
<tr height=30>
|
||||
<td width="20" align="center" rowspan="3"><3E><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD><CFB4><EFBFBD></td>
|
||||
<td width="120"><3E><> <3B><> <3B><></td>
|
||||
<td > <%=company(1)%></td>
|
||||
</tr>
|
||||
<tr height=30>
|
||||
<td ><3E><> <3B><></td>
|
||||
<td ><font class="tahoma"> <%=company(4)%></font></td>
|
||||
</tr>
|
||||
<tr height=30>
|
||||
<td ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>Ϲ<EFBFBD>ȣ</td>
|
||||
<td ><font class="tahoma"> <%=company(2)%></font></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" style="padding:10 0 10 0">
|
||||
<table width="98%" cellpadding="5" cellspacing="0" border="1" >
|
||||
<tr height=30>
|
||||
<td width="20" align="center" rowspan="3"><3E><><EFBFBD>ӹ<D3B9><DEB4><EFBFBD></td>
|
||||
<td width="120"><3E><> <3B><></td>
|
||||
<td > <%=target_gap(1)%></td>
|
||||
</tr>
|
||||
<tr height=30>
|
||||
<td ><3E>ֹ<EFBFBD> <3B><><EFBFBD><EFBFBD> <3B><>ȣ</td>
|
||||
<td ><font class="tahoma"> <%=target_gap(2)%></font></td>
|
||||
</tr>
|
||||
<tr height=30>
|
||||
<td ><3E><> <3B><></td>
|
||||
<td ><font class="tahoma"> <%=target_gap(3)%><br><br> <%=target_gap(4)%></font></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<%if cint(print_type) = 2 then%>
|
||||
<tr height=30>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<%end if%>
|
||||
<tr>
|
||||
<td align="center" style="padding:10 0 10 0">
|
||||
<table width="98%" cellpadding="5" cellspacing="0" border="1" >
|
||||
<tr height=30>
|
||||
<td width="150" align="center" rowspan="3"><3E><> <3B><> ó</td>
|
||||
<td > <%=client_name%></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<%if cint(print_type) = 2 then%>
|
||||
<tr height=30>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<%end if%>
|
||||
<tr>
|
||||
<td align="center" style="padding:10;"><b style="font-size:14px;font-family:Dotum;"><3E><><EFBFBD><EFBFBD> "<22><><EFBFBD>ӹ<D3B9> <20><>"<22><> <20><><EFBFBD>Ͽ<EFBFBD> <%=company(1)%><3E><> <20>Ʒ<EFBFBD><C6B7><EFBFBD> <20><><EFBFBD><EFBFBD> <20><>ü<EFBFBD><C3BC> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>. </b></td>
|
||||
</tr>
|
||||
<%if cint(print_type) = 2 then%>
|
||||
<tr height=30>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<%end if%>
|
||||
<tr>
|
||||
<td align="center" style="padding:10 0 10 0">
|
||||
<table width="98%" cellpadding="5" cellspacing="0" border="1" >
|
||||
<tr>
|
||||
<td width="150" align="center" rowspan="3"><3E><> <3B><> <3B><> <3B><></td>
|
||||
<td >
|
||||
<%if print_type=2 or print_type=3 then
|
||||
for i=1 to 3
|
||||
' if trim(gap(i)) <> "" then
|
||||
Response.Write trim(gap(i)) & "<br>"
|
||||
' end if
|
||||
next
|
||||
else%>
|
||||
<input type=text style="width:100%" name='txt_gap_1'><br>
|
||||
<input type=text style="width:100%" name='txt_gap_2'><br>
|
||||
<input type=text style="width:100%" name='txt_gap_3'>
|
||||
<%end if%>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<%if cint(print_type)= 2 or cint(print_type) =3 then%>
|
||||
<font class="tahoma"><%=gap(4)%>
|
||||
<%else%>
|
||||
<input type="text" class="number" name="txt_date" style="width:100px;text-align:right" maxlength="8" OnBlur="OnFormatDate(this)" OnFocus="OnReplaceDate(this)" OnKeyup="OnlyNumber(this)" value="<%=date()%>">
|
||||
<img src="/images/common/btn_calendar.jpg" align="absmiddle" OnClick="winopn('/include/calendar.html?actval=txt_date')" class="imglink" title='<27><>¥<EFBFBD><C2A5> <20><><EFBFBD><EFBFBD><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>' style="cursor:pointer">
|
||||
<%end if%>
|
||||
<br><br><br>
|
||||
<b style="font-size:18px;font-family:Dotum;line-height:200%"><%=company(1)%></b><br>
|
||||
<%tmpstr=split(company(3),",")
|
||||
for i=0 to ubound(tmpstr)%>
|
||||
<b style="font-size:14px;font-family:Dotum;line-height:200%"><3E><> ǥ <20><> <20><> <%=trim(tmpstr(i))%></b><br>
|
||||
<%next%>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:15 0 5 0"><!-- #include virtual= "approval/inc_logo.asp" --></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="/images/approval/docbg_btm.jpg"></td>
|
||||
</tr>
|
||||
<%if cint(print_type) = 1 then%>
|
||||
<tr>
|
||||
<td style="padding:10 0 0 0;" align="center">
|
||||
<img src="/images/management/btn_cert.jpg" title='<27>ۼ<EFBFBD><DBBC>Ϸ<EFBFBD>' onclick='goPrint();' style='cursor:pointer'>
|
||||
<a href="/management/certificate_select.asp"> <img src="/images/common/btn_cancel.jpg"></a>
|
||||
</td>
|
||||
</tr>
|
||||
<%end if%>
|
||||
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
|
||||
<input type=hidden name='txt_client' value ='<%=client_name%>'>
|
||||
<input type=hidden name='txt_p_no' value ='<%=target_gap(0)%>'>
|
||||
<%if print_type=2 then%>
|
||||
<input type=hidden name='txt_gap_1' value ='<%=gap(1)%>'>
|
||||
<input type=hidden name='txt_gap_2' value ='<%=gap(2)%>'>
|
||||
<input type=hidden name='txt_gap_3' value ='<%=gap(3)%>'>
|
||||
<input type=hidden name='txt_date' value ='<%=gap(4)%>'>
|
||||
<%end if%>
|
||||
|
||||
|
||||
</form>
|
||||
<%if cint(print_type) = 2 then%>
|
||||
</body>
|
||||
<%else%>
|
||||
|
||||
<%end if%>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script language=javascript>
|
||||
function win_close()
|
||||
{
|
||||
window.close();
|
||||
}
|
||||
function win_print()
|
||||
{
|
||||
|
||||
var txt_gap_1 = document.frm_Uiim.txt_gap_1.value;
|
||||
var txt_gap_2 = document.frm_Uiim.txt_gap_2.value;
|
||||
var txt_gap_3 = document.frm_Uiim.txt_gap_3.value;
|
||||
var txt_date = document.frm_Uiim.txt_date.value;
|
||||
var p_no = document.frm_Uiim.txt_p_no.value;
|
||||
var txt_client = document.frm_Uiim.txt_client.value;
|
||||
|
||||
var url = "cert_poa_print.asp?print_type=3";
|
||||
url = url + "&txt_gap_1=" + txt_gap_1;
|
||||
url = url + "&txt_gap_2=" + txt_gap_2;
|
||||
url = url + "&txt_gap_3=" + txt_gap_3;
|
||||
url = url + "&txt_date=" + txt_date;
|
||||
url = url + "&txt_client=" + txt_client;
|
||||
url = url + "&p_no=" + p_no;
|
||||
document.frm_Uiim.action=url;
|
||||
document.frm_Uiim.submit();
|
||||
}
|
||||
|
||||
|
||||
function goPrint()
|
||||
{//<2F><><EFBFBD><EFBFBD>Ʈ <20>ϱ<EFBFBD>
|
||||
|
||||
var txt_gap_1 = document.frm_Uiim.txt_gap_1.value;
|
||||
var txt_gap_2 = document.frm_Uiim.txt_gap_2.value;
|
||||
var txt_gap_3 = document.frm_Uiim.txt_gap_3.value;
|
||||
var txt_date = document.frm_Uiim.txt_date.value;
|
||||
var p_no = document.frm_Uiim.txt_p_no.value;
|
||||
var txt_client = document.frm_Uiim.txt_client.value;
|
||||
|
||||
var url = "cert_poa_print.asp?print_type=2";
|
||||
url = url + "&txt_gap_1=" + txt_gap_1;
|
||||
url = url + "&txt_gap_2=" + txt_gap_2;
|
||||
url = url + "&txt_gap_3=" + txt_gap_3;
|
||||
url = url + "&txt_date=" + txt_date;
|
||||
url = url + "&txt_client=" + txt_client;
|
||||
url = url + "&p_no=" + p_no;
|
||||
window.open(url,"","left=50, top=50, menubar=no, location=no, status=no, toolbar=no, width=850 ,height=600 ,scrollbars=yes, resizable=no");
|
||||
|
||||
|
||||
// document.frm_Uiim.action="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_print.asp?print_type=1&p_no="+p_no;
|
||||
// document.frm_Uiim.submit();
|
||||
}
|
||||
|
||||
function print_ie()
|
||||
{
|
||||
|
||||
//
|
||||
if(navigator.userAgent.toLowerCase().indexOf('chrome') > -1){ // Chrome Browser Detected?
|
||||
window.PPClose = false; // Clear Close Flag
|
||||
window.onbeforeunload = function(){ // Before Window Close Event
|
||||
if(window.PPClose === false){ // Close not OK?
|
||||
return 'Leaving this page will block the parent window!\nPlease select "Stay on this Page option" and use the\nCancel button instead to close the Print Preview Window.\n';
|
||||
}
|
||||
}
|
||||
window.print(); // Print preview
|
||||
window.PPClose = true; // Set Close Flag to OK.
|
||||
}else{
|
||||
window.print();
|
||||
window.close();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//-->
|
||||
</script>
|
||||
361
management/cert_poe.asp
Normal file
361
management/cert_poe.asp
Normal file
@@ -0,0 +1,361 @@
|
||||
<!-- #include virtual = "include/header.asp" -->
|
||||
<!-- #include virtual = "include/left.asp" -->
|
||||
<OBJECT RUNAT=Server PROGID=ADODB.Recordset id=adoRs2></OBJECT>
|
||||
<%
|
||||
dim menu_option
|
||||
dim tmpstr
|
||||
dim p_no
|
||||
dim Query
|
||||
dim i
|
||||
dim user_name(2) '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,0:<3A><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD>, 1:<3A≯<EFBFBD>,2:<3A><><EFBFBD><EFBFBD>
|
||||
dim Max_Width
|
||||
dim title
|
||||
dim krc_no '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>߱<DFB1>ȣ
|
||||
dim target_name '<27>߱<DFB1><DEB4><EFBFBD><EFBFBD><EFBFBD> <20≯<EFBFBD>
|
||||
dim target_gap(11) '<27>߱<DFB1><DEB4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>, 0:<3A><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD>, 1:<3A≯<EFBFBD>, 2:<3A>ֹι<D6B9>ȣ, 3:<3A><><EFBFBD>ּ<EFBFBD>1,4::<3A><><EFBFBD>ּ<EFBFBD>2,5:<3A>ٹ<EFBFBD><D9B9><EFBFBD>,6:<3A><><EFBFBD><EFBFBD>,7:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,8:<3A>Ի<EFBFBD><D4BB><EFBFBD>,9:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ǵ<EFBFBD> <20><><EFBFBD>ó<EFBFBD>¥, 10:<3A><>ȣ,11:<3A><><EFBFBD><EFBFBD><EFBFBD>Ⱓ(<28><>¥<EFBFBD><C2A5>)
|
||||
dim Curr_date '<27><><EFBFBD>ó<EFBFBD>¥
|
||||
dim Company(4)
|
||||
dim print_date
|
||||
dim db_table_name
|
||||
|
||||
db_table_name = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
|
||||
menu_option = request("menu_option") '1:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, 2:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
|
||||
if menu_option = 1 then
|
||||
title = "<22><> <20><>"
|
||||
target_gap(0) = request("sel_p_no_in")
|
||||
else
|
||||
title = "<22><> <20><>"
|
||||
target_gap(0) = request("sel_p_no_out")
|
||||
end if
|
||||
' Response.Write tmpstr
|
||||
|
||||
Max_Width =750
|
||||
|
||||
Curr_date = year(date) & "<22><> " & month(date) & "<22><> " & day(date) & "<22><>"
|
||||
print_date = year(date) & "-" & ZeroFormat(month(date),2) & "-" & ZeroFormat(day(date),2)
|
||||
|
||||
''//===============
|
||||
''ȸ<><C8B8> ȸ<><C8B8><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD><DAB5>Ϲ<EFBFBD>ȣ, <20><>ǥ<EFBFBD>ڸ<EFBFBD>, <20>ּ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
Query = "select * from company"
|
||||
adoRs.open Query, adoconn,adopenstatic, adlockreadonly
|
||||
Company(1) = adors("com_name")
|
||||
Company(2) = adors("<22><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD><DAB5>Ϲ<EFBFBD>ȣ")
|
||||
Company(3) = adors("<22><>ǥ<EFBFBD>ڸ<EFBFBD>")
|
||||
Company(4) = adors("<22>ּ<EFBFBD>")
|
||||
adoRs.close
|
||||
|
||||
|
||||
''///===============
|
||||
''<27>α<EFBFBD><CEB1><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
user_name(0) = Session("User_Number")
|
||||
Query = "select p_name, p_pos from person where p_no ='" & user_name(0) & "'"
|
||||
adoRs.open Query, adoconn,adopenstatic, adlockreadonly
|
||||
user_name(1) = adoRs("p_name") '<27≯<EFBFBD>
|
||||
user_name(2) = adoRs("p_pos") '<27><><EFBFBD><EFBFBD> <20>ڵ<EFBFBD>
|
||||
adoRs.close
|
||||
query = "select * from position where p_code = " & user_name(2)
|
||||
adoRs.open Query, adoconn,adopenstatic, adlockreadonly
|
||||
user_name(2) = adors("p_name") '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
adoRs.close
|
||||
|
||||
|
||||
''///===============
|
||||
''<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>߱<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
Query = "SELECT vp.p_name, p.jumin, p.address1_1, p.address1_2, vp.p_team_name, vp.p_rank_name, vp.krc_in_date, vp.p_job_name, p.p_depart_last, p.p_pos_last, p.krc_out_date "
|
||||
Query = Query & "FROM project2.dbo.V_Person vp JOIN project2.dbo.person p ON vp.p_no = p.p_no "
|
||||
Query = Query & "WHERE vp.p_no = " & target_gap(0) & " "
|
||||
adoRs.open Query, adoconn,adopenstatic, adlockreadonly
|
||||
target_gap(1) = adoRs("p_name")
|
||||
target_gap(2) = adoRs("jumin")
|
||||
target_gap(2) = decode(target_gap(2), 0)
|
||||
if adoRs("address1_1")="" or isnull(adoRs("address1_1")) then
|
||||
target_gap(3)=" "
|
||||
target_gap(4)=" "
|
||||
else
|
||||
target_gap(3) = adoRs("address1_1")
|
||||
target_gap(4) = adoRs("address1_2")
|
||||
end if
|
||||
|
||||
if IsNull(adoRs("p_team_name")) then
|
||||
target_gap(10) = ""
|
||||
if IsNull(adoRs("p_depart_last")) then
|
||||
target_gap(5) = ""
|
||||
else
|
||||
target_gap(5) = adoRs("p_depart_last")
|
||||
end if
|
||||
else
|
||||
target_gap(5) = adoRs("p_team_name")
|
||||
end if
|
||||
|
||||
if IsNull(adoRs("p_rank_name")) then
|
||||
if isnull(adoRs("p_pos_last")) then
|
||||
target_gap(6) = ""
|
||||
else
|
||||
target_gap(6) = adoRs("p_pos_last")
|
||||
end if
|
||||
target_gap(10) = ""
|
||||
else
|
||||
target_gap(6) = adoRs("p_rank_name")
|
||||
end if
|
||||
|
||||
if adoRs("krc_in_date")= "" or isnull(adoRs("krc_in_date")) then
|
||||
target_gap(8) = "<22><><EFBFBD><EFBFBD>"
|
||||
else
|
||||
target_gap(8) = mid(adoRs("krc_in_date"),1,4) & "<22><> " & mid(adoRs("krc_in_date"),6,2) & "<22><> " & mid(adoRs("krc_in_date"),9,2) & "<22><>"
|
||||
end if
|
||||
|
||||
if replace(title," ","") = "<22><><EFBFBD><EFBFBD>" then
|
||||
if adoRs("krc_out_date")= "" or isnull(adoRs("krc_out_date")) then
|
||||
target_gap(9) = "<22><><EFBFBD><EFBFBD>"
|
||||
else
|
||||
target_gap(9) = mid(adoRs("krc_out_date"),1,4) & "<22><> " & mid(adoRs("krc_out_date"),6,2) & "<22><> " & mid(adoRs("krc_out_date"),9,2) & "<22><>"
|
||||
end if
|
||||
else
|
||||
target_gap(9) = year(date) & "-" & ZeroFormat(month(date),2) & "-" & ZeroFormat(day(date),2)
|
||||
end if
|
||||
|
||||
'##### <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>(2019) - <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ű<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
If adoRs("p_job_name") = "" or isnull(adoRs("p_job_name")) Then
|
||||
target_gap(7) = "<22><><EFBFBD><EFBFBD>"
|
||||
Else
|
||||
target_gap(7) = adoRs("p_job_name")
|
||||
End If
|
||||
|
||||
target_gap(11) = "0" '<27><><EFBFBD><EFBFBD><EFBFBD>Ⱓ<EFBFBD><E2B0A3><EFBFBD>ڼ<EFBFBD>
|
||||
adoRs.close
|
||||
|
||||
if target_gap(5) <> "" then
|
||||
'##### <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>(2019) - <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ű<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
if isNumeric(target_gap(5)) then
|
||||
If replace(title, " ", "") = "<22><><EFBFBD><EFBFBD>" Then
|
||||
query = "select * from depart where d_code = " & target_gap(5)
|
||||
adoRs.open Query, adoconn,adopenstatic, adlockreadonly
|
||||
target_gap(5) = adors("d_name")
|
||||
adoRs.close
|
||||
End If
|
||||
End If
|
||||
else
|
||||
target_gap(5) = "<22><><EFBFBD><EFBFBD>"
|
||||
end if
|
||||
if target_gap(6) <> "" then
|
||||
if isNumeric(target_gap(6)) then
|
||||
If replace(title, " ", "") = "<22><><EFBFBD><EFBFBD>" Then
|
||||
query = "select * from position where p_code = " & target_gap(6)
|
||||
adoRs.open Query, adoconn,adopenstatic, adlockreadonly
|
||||
target_gap(6) = adors("p_name")
|
||||
adoRs.close
|
||||
end if
|
||||
end if
|
||||
else
|
||||
target_gap(6) = "<22><><EFBFBD><EFBFBD>"
|
||||
end if
|
||||
|
||||
'//========================
|
||||
''<27>α<EFBFBD><CEB1><EFBFBD><EFBFBD><EFBFBD>
|
||||
query = "insert into " & db_table_name & "_log (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_p_no, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_<EFBFBD≯<EFBFBD>, "
|
||||
query = query & " <20>߱<EFBFBD><DFB1><EFBFBD>, <20>߱ð<DEBD>, <20>߱<EFBFBD><DFB1><EFBFBD>_p_no, <20>߱<EFBFBD><DFB1><EFBFBD>_<EFBFBD≯<EFBFBD>, <20>߱<EFBFBD><DFB1><EFBFBD>_ip) values ( "
|
||||
query = query & "'<27><><EFBFBD><EFBFBD>', "
|
||||
query = query & "'" & replace(title, " ", "") & "', "
|
||||
query = query & "'" & target_gap(0) & "', "
|
||||
query = query & "'" & target_gap(1) & "', "
|
||||
query = query & "'" & year(date) & "-" & zeroformat(month(date),2) & "-" & zeroformat(day(date),2) & "', "
|
||||
query = query & "'" & time() & "', "
|
||||
query = query & "'" & user_name(0) & "', "
|
||||
query = query & "'" & user_name(1) & "', "
|
||||
query = query & "'" & Session("USERIP") & "')"
|
||||
if session("loginuser") <> "<22><>ȫ<EFBFBD><C8AB>" then
|
||||
adoconn.execute query
|
||||
end if
|
||||
%>
|
||||
<script language=javascript>
|
||||
function goRun()
|
||||
{
|
||||
var menu_option = document.frm_certificate.txt_command.value;
|
||||
var p_no = document.frm_certificate.txt_p_no.value;
|
||||
var txt_print_date = document.frm_certificate.txt_print_date.value;
|
||||
var sel_person = document.frm_certificate.sel_person.value;
|
||||
|
||||
var url = "cert_poe_print.asp?menu_option=" + menu_option +"&p_no=" + p_no;
|
||||
url = url + "&txt_print_date=" + txt_print_date;
|
||||
url = url + "&sel_person=" + sel_person;
|
||||
if(eval(menu_option) == 1){
|
||||
var txt_end_date = document.frm_certificate.txt_end_date.value;
|
||||
url = url + "&txt_end_date=" + txt_end_date;
|
||||
}
|
||||
url = url + "&print_type=1";
|
||||
|
||||
window.open(url,"","left=50 ,top=0, menubar=no, location=no ,status=no ,toolbar=no ,width=850, height=800 ,scrollbars=yes ,resizable=yes");
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
<!-- 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></h1>
|
||||
</div>
|
||||
|
||||
|
||||
<form method='post' name='frm_certificate'>
|
||||
|
||||
<td width="100%" valign="top">
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<!-- Ȯ<><C8AE> -->
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" style="padding:20;">
|
||||
<table cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td style="padding:0 0 5 0;">
|
||||
|
||||
<font class="brown"><3E>߱<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD>Ͻô<CFBD> <20><EFBFBD><D7B8><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>߱<EFBFBD> <20><>ư<EFBFBD><C6B0> Ŭ<><C5AC><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>.</font><br>
|
||||
<img src="/images/common/blank.gif" width="19" height="1" align="absmiddle">
|
||||
<font class="k_darkorange"><3E>濵<EFBFBD><E6BFB5><EFBFBD><EFBFBD><EFBFBD>Ǹ<EFBFBD> <20><><EFBFBD>밡<EFBFBD><EBB0A1><EFBFBD>մϴ<D5B4>.</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="/images/approval/docbg_top.jpg"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="710" align="center" style="padding:10;border-left:1px solid #dedede;border-right:1px solid #dedede;">
|
||||
<table width="100%" cellpadding="3" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<td align="center"><b style="font-size:16px;font-family:Dotum;"><%=title%> <20><> <20><> <20><></b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>߱<DFB1>ȣ : <20>μ<EFBFBD><CEBC><EFBFBD> <20><><EFBFBD>µ˴ϴ<CBB4>. <font class="k_darkorange"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>μ<EFBFBD><CEBC>ϼ<EFBFBD><CFBC><EFBFBD>.</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding:15 3 3 3"><b><%=replace(title," ","")%><3E><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<table width="95%" cellpadding="5" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<td width="150" align="center"><3E><> <20><></td>
|
||||
<td ><%=target_gap(1)%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center"><3E>ֹε<D6B9><CEB5>Ϲ<EFBFBD>ȣ</td>
|
||||
<td ><font class="tahoma"><%=target_gap(2)%></font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center"><3E><> <20><></td>
|
||||
<td ><font class="tahoma"><%=target_gap(3)%> <%=target_gap(4)%></font></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding:15 3 3 3"><b><%=title%> <09><> <20><></b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<table width="95%" cellpadding="5" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<td width="150" align="center"><3E>ٹ<EFBFBD><D9B9>μ<EFBFBD></td>
|
||||
<td ><%=target_gap(5)%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center"><3E><> <20><></td>
|
||||
<td >
|
||||
<%=target_gap(6)%>
|
||||
<%if replace(title," ","") = "<22><><EFBFBD><EFBFBD>" and target_gap(10) <> "" then%>
|
||||
(<%=target_gap(10)%>)
|
||||
<%end if%>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center"><3E>ٹ<EFBFBD><D9B9>Ⱓ</td>
|
||||
<td >
|
||||
<font class="tahoma"><%=target_gap(8)%> <20><><EFBFBD><EFBFBD></font>
|
||||
<%if replace(title," ","") = "<22><><EFBFBD><EFBFBD>" then%>
|
||||
<%=target_gap(9)%>
|
||||
<%if cint(target_gap(11)) > 0 then%>
|
||||
(<28><><EFBFBD><EFBFBD><EFBFBD>Ⱓ<%=target_gap(11)%> <20><> <20><><EFBFBD><EFBFBD>)
|
||||
<%end if
|
||||
else%>
|
||||
<input type="text" style="width:100;text-align:right" name="txt_end_date" OnBlur="OnFormatDate(this)" OnFocus="OnReplaceDate(this)" OnKeyup="OnlyNumber(this)" value="<%=target_gap(9)%>">
|
||||
<img src="/images/common/btn_calendar.jpg" align="absmiddle" OnClick="winopn('/include/calendar.html?actval=txt_end_date')" style="CURSOR:pointer;">
|
||||
<%end if%>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding:15 3 3 3">
|
||||
<table width="95%" cellpadding="5" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<td width="150" align="center"><3E>濵<EFBFBD><E6BFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Ȯ<><C8AE></td>
|
||||
<td >
|
||||
<b class="k_darkorange"><3E>߱<EFBFBD><DFB1>ڸ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>.</b>
|
||||
<select name = 'sel_person'>
|
||||
<%query="select * from person where p_resign=0 and p_depart=18 and keupho <> 99 order by p_pos" '<27>濵<EFBFBD><E6BFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD≯鼭 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ƴѰ<C6B4><D1B0><EFBFBD>
|
||||
adoRs.open Query, adoconn,adopenstatic, adlockreadonly
|
||||
do while not adoRs.eof%>
|
||||
<option value='<%=adors("p_no")%>'
|
||||
<%if user_name(1) = adors("p_name") then%>
|
||||
selected
|
||||
<%end if%>
|
||||
><%=adors("p_name")%>
|
||||
<%adoRs.movenext
|
||||
loop
|
||||
adoRs.close%>
|
||||
</select>
|
||||
* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Ȯ<><C8AE>(<28><>)<29><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ȿ<EFBFBD>Դϴ<D4B4>.
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" style="padding:15 3 15 3">
|
||||
<b style="font-size:14px;font-family:Dotum;"><3E><><EFBFBD><EFBFBD><EFBFBD>ο<EFBFBD> <20><><EFBFBD>Ͽ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
<%if replace(title," ","") = "<22><><EFBFBD><EFBFBD>" then%>
|
||||
<09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
<%else%>
|
||||
<09><><EFBFBD><EFBFBD> <20>Ͽ<EFBFBD><CFBF><EFBFBD><EFBFBD><EFBFBD>
|
||||
<%end if%>
|
||||
<09><><EFBFBD><EFBFBD><EFBFBD>մϴ<D5B4>. </b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<input type="text" style="width:100;text-align:right" name="txt_print_date" OnBlur="OnFormatDate(this)" OnFocus="OnReplaceDate(this)" OnKeyup="OnlyNumber(this)" value="<%=print_date%>">
|
||||
<img src="/images/common/btn_calendar.jpg" align="absmiddle" style="CURSOR:pointer;" OnClick="winopn('/include/calendar.html?actval=txt_print_date')">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="/images/approval/docbg_btm.jpg"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding:10 0 0 0;" align="center">
|
||||
<img src="/images/management/btn_cert.jpg" onclick='goRun();' style='cursor:pointer'>
|
||||
<a href="/management/certificate_select.asp"><img src="/images/common/btn_cancel.jpg"></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
|
||||
<input type=hidden name=txt_command size=50 value='<%=menu_option%>'>
|
||||
<input type=hidden name=txt_p_no size=50 value='<%=target_gap(0)%>'>
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
477
management/cert_poe_print.asp
Normal file
477
management/cert_poe_print.asp
Normal file
@@ -0,0 +1,477 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<OBJECT RUNAT=Server PROGID=ADODB.Recordset id=adoRs2></OBJECT>
|
||||
<%
|
||||
dim tmpstr
|
||||
dim p_no
|
||||
dim Query
|
||||
dim i
|
||||
dim user_name(2) '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,0:<3A><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD>, 1:<3A≯<EFBFBD>,2:<3A><><EFBFBD><EFBFBD>
|
||||
dim bal_user_name(5) '<27>߱<EFBFBD><DFB1><EFBFBD> ,0:<3A><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD>, 1:<3A≯<EFBFBD>,2:<3A><><EFBFBD><EFBFBD>,3:<3A>μ<EFBFBD>,4:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ,5:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
dim Max_Width
|
||||
dim title
|
||||
dim krc_no '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>߱<DFB1>ȣ
|
||||
dim target_name '<27>߱<DFB1><DEB4><EFBFBD><EFBFBD><EFBFBD> <20≯<EFBFBD>
|
||||
dim target_gap(11) '<27>߱<DFB1><DEB4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>, 0:<3A><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD>, 1:<3A≯<EFBFBD>, 2:<3A>ֹι<D6B9>ȣ, 3:<3A><><EFBFBD>ּ<EFBFBD>1,4::<3A><><EFBFBD>ּ<EFBFBD>2,5:<3A>ٹ<EFBFBD><D9B9><EFBFBD>,6:<3A><><EFBFBD><EFBFBD>,7:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,8:<3A>Ի<EFBFBD><D4BB><EFBFBD>,9:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ǵ<EFBFBD> <20><><EFBFBD>ó<EFBFBD>¥, 10:<3A><>ȣ,11:<3A><><EFBFBD><EFBFBD><EFBFBD>Ⱓ(<28><>¥<EFBFBD><C2A5>)
|
||||
dim Curr_date '<27><><EFBFBD>ó<EFBFBD>¥
|
||||
dim Company(4)
|
||||
dim print_date
|
||||
dim menu_option '1:<3A><><EFBFBD><EFBFBD>, 2:<3A><><EFBFBD><EFBFBD>
|
||||
dim print_type '1:<3A><><EFBFBD><EFBFBD>, 2:<3A><>¥<EFBFBD><C2A5><EFBFBD><EFBFBD>Ʈ
|
||||
dim db_table_name
|
||||
|
||||
db_table_name = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
|
||||
menu_option = request("menu_option") '1:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, 2:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
|
||||
|
||||
if menu_option = 1 then
|
||||
title = "<22><> <20><>"
|
||||
else
|
||||
title = "<22><> <20><>"
|
||||
end if
|
||||
target_gap(0) = request("p_no")
|
||||
print_type = request("print_type")
|
||||
' Response.Write tmpstr
|
||||
|
||||
Max_Width =750
|
||||
|
||||
Curr_date = year(date) & "<22><> " & month(date) & "<22><> " & day(date) & "<22><>"
|
||||
print_date = request("txt_print_date")
|
||||
print_date = mid(print_date,1,4) & "<22><> " & mid(print_date,6,2) & "<22><> " & mid(print_date,9,2) & "<22><>"
|
||||
|
||||
''//===============
|
||||
''ȸ<><C8B8> ȸ<><C8B8><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD><DAB5>Ϲ<EFBFBD>ȣ, <20><>ǥ<EFBFBD>ڸ<EFBFBD>, <20>ּ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
Query = "select * from company"
|
||||
adoRs.open Query, adoconn,adopenstatic, adlockreadonly
|
||||
Company(1) = adors("com_name")
|
||||
Company(2) = adors("<22><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD><DAB5>Ϲ<EFBFBD>ȣ")
|
||||
Company(3) = adors("<22><>ǥ<EFBFBD>ڸ<EFBFBD>")
|
||||
Company(4) = adors("<22>ּ<EFBFBD>")
|
||||
adoRs.close
|
||||
|
||||
|
||||
''///===============
|
||||
''<27>α<EFBFBD><CEB1><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
user_name(0) = Session("User_Number")
|
||||
Query = "select p_name, p_rank_name from V_person where p_no ='" & user_name(0) & "'"
|
||||
adoRs.open Query, adoconn,adopenstatic, adlockreadonly
|
||||
user_name(1) = adoRs("p_name") '<27≯<EFBFBD>
|
||||
user_name(2) = adoRs("p_rank_name") '<27><><EFBFBD><EFBFBD> <20>ڵ<EFBFBD>
|
||||
adoRs.close
|
||||
|
||||
''///===============
|
||||
''<27>߱<EFBFBD><DFB1><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
'##### <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>(2019)
|
||||
bal_user_name(0) = request("sel_person")
|
||||
Query = "select p_name, p_rank_name, p_team_name, p_job_name, p_tel3 from V_person where p_no ='" & bal_user_name(0) & "'"
|
||||
adoRs.open Query, adoconn,adopenstatic, adlockreadonly
|
||||
bal_user_name(1) = adoRs("p_name") '<27≯<EFBFBD>
|
||||
bal_user_name(2) = adoRs("p_rank_name") '<27><><EFBFBD><EFBFBD> <20>ڵ<EFBFBD>
|
||||
bal_user_name(3) = adoRs("p_team_name") '<27>μ<EFBFBD> <20>ڵ<EFBFBD>
|
||||
bal_user_name(4) = adoRs("p_tel3") '<27>߱<EFBFBD><DFB1><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ
|
||||
bal_user_name(5) = adoRs("p_job_name") '##### <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
adoRs.close
|
||||
|
||||
''///===============
|
||||
''<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>߱<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
Query = "SELECT vp.p_name, p.jumin, p.address1_1, p.address1_2, vp.p_team_name, vp.p_rank_name, vp.krc_in_date, vp.p_job_name, p.p_depart_last, p.p_pos_last, p.krc_out_date "
|
||||
Query = Query & "FROM project2.dbo.V_Person vp JOIN project2.dbo.person p ON vp.p_no = p.p_no "
|
||||
Query = Query & "WHERE vp.p_no = " & target_gap(0) & " "
|
||||
|
||||
adoRs.open Query, adoconn,adopenstatic, adlockreadonly
|
||||
target_gap(1) = adoRs("p_name")
|
||||
target_gap(2) = adoRs("jumin")
|
||||
target_gap(2) = left(decode(target_gap(2), 0),8) + "******"
|
||||
if adoRs("address1_1")="" or isnull(adoRs("address1_1")) then
|
||||
target_gap(3)=" "
|
||||
target_gap(4)=" "
|
||||
else
|
||||
target_gap(3) = adoRs("address1_1")
|
||||
target_gap(4) = adoRs("address1_2")
|
||||
end if
|
||||
|
||||
if IsNull(adoRs("p_team_name")) then
|
||||
target_gap(10) = ""
|
||||
if IsNull(adoRs("p_depart_last")) then
|
||||
target_gap(5) = ""
|
||||
else
|
||||
target_gap(5) = adoRs("p_depart_last")
|
||||
end if
|
||||
else
|
||||
target_gap(5) = adoRs("p_team_name")
|
||||
end if
|
||||
|
||||
if IsNull(adoRs("p_rank_name")) then
|
||||
if isnull(adoRs("p_pos_last")) then
|
||||
target_gap(6) = ""
|
||||
else
|
||||
target_gap(6) = adoRs("p_pos_last")
|
||||
end if
|
||||
target_gap(10) = ""
|
||||
else
|
||||
target_gap(6) = adoRs("p_rank_name")
|
||||
end if
|
||||
|
||||
if adoRs("krc_in_date")= "" or isnull(adoRs("krc_in_date")) then
|
||||
target_gap(8) = "<22><><EFBFBD><EFBFBD>"
|
||||
else
|
||||
target_gap(8) = mid(adoRs("krc_in_date"),1,4) & "<22><> " & mid(adoRs("krc_in_date"),6,2) & "<22><> " & mid(adoRs("krc_in_date"),9,2) & "<22><>"
|
||||
end if
|
||||
|
||||
|
||||
if replace(title," ","") = "<22><><EFBFBD><EFBFBD>" then
|
||||
if adoRs("krc_out_date")= "" or isnull(adoRs("krc_out_date")) then
|
||||
target_gap(9) = "<22><><EFBFBD><EFBFBD>"
|
||||
else
|
||||
target_gap(9) = mid(adoRs("krc_out_date"),1,4) & "<22><> " & mid(adoRs("krc_out_date"),6,2) & "<22><> " & mid(adoRs("krc_out_date"),9,2) & "<22><>"
|
||||
end if
|
||||
else
|
||||
target_gap(9) = request("txt_end_date")
|
||||
target_gap(9) = mid(target_gap(9),1,4) & "<22><> " & mid(target_gap(9),6,2) & "<22><> " & mid(target_gap(9),9,2) & "<22><>"
|
||||
end if
|
||||
|
||||
'##### <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>(2019) - <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ű<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
If adoRs("p_job_name") = "" or isnull(adoRs("p_job_name")) Then
|
||||
target_gap(7) = "<22><><EFBFBD><EFBFBD>"
|
||||
Else
|
||||
target_gap(7) = adoRs("p_job_name")
|
||||
End If
|
||||
|
||||
target_gap(10) = "0" '<27><><EFBFBD><EFBFBD><EFBFBD>Ⱓ<EFBFBD><E2B0A3><EFBFBD>ڼ<EFBFBD>
|
||||
adoRs.close
|
||||
if target_gap(5) <> "" then
|
||||
'##### <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>(2019) - <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ű<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
if isNumeric(target_gap(5)) then
|
||||
If replace(title, " ", "") = "<22><><EFBFBD><EFBFBD>" Then
|
||||
query = "select * from depart where d_code = " & target_gap(5)
|
||||
adoRs.open Query, adoconn,adopenstatic, adlockreadonly
|
||||
target_gap(5) = adors("d_name")
|
||||
adoRs.close
|
||||
End If
|
||||
End If
|
||||
else
|
||||
target_gap(5) = "<22><><EFBFBD><EFBFBD>"
|
||||
end if
|
||||
if target_gap(6) <> "" then
|
||||
if isNumeric(target_gap(6)) then
|
||||
If replace(title, " ", "") = "<22><><EFBFBD><EFBFBD>" Then
|
||||
query = "select * from position where p_code = " & target_gap(6)
|
||||
adoRs.open Query, adoconn,adopenstatic, adlockreadonly
|
||||
target_gap(6) = adors("p_name")
|
||||
adoRs.close
|
||||
end if
|
||||
end if
|
||||
else
|
||||
target_gap(6) = "<22><><EFBFBD><EFBFBD>"
|
||||
end if
|
||||
|
||||
|
||||
if cint(print_type) = 2 then
|
||||
''///===============
|
||||
''<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ <20><><EFBFBD><EFBFBD>
|
||||
Query = "select <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ as krc_no from " & db_table_name
|
||||
query = query & " where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> = '" & replace(title, " ", "") & "' "
|
||||
query = query & " and substring(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ,5,4) = '" & year(date) & "' "
|
||||
query = query & " order by <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ"
|
||||
adoRs.open Query, adoconn,adopenstatic, adlockreadonly
|
||||
if adoRs.recordcount <= 0 then
|
||||
krc_no = 0
|
||||
else
|
||||
adoRs.movelast
|
||||
tmpstr = split(trim(adoRs("krc_no")),"-")
|
||||
krc_no = tmpstr(3)
|
||||
end if
|
||||
adoRs.close
|
||||
krc_no = int(krc_no) + 1
|
||||
'##### ȸ<><C8B8><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
'tmpstr = "KRC-" & year(date) & "-"
|
||||
tmpstr = "KRI-" & year(date) & "-"
|
||||
if replace(title, " ", "") = "<22><><EFBFBD><EFBFBD>" then
|
||||
tmpstr = tmpstr & "J-"
|
||||
else
|
||||
tmpstr = tmpstr & "K-"
|
||||
end if
|
||||
krc_no = tmpstr & ZeroFormat(krc_no,5)
|
||||
|
||||
'//========================
|
||||
'<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϱ<EFBFBD>
|
||||
query = "insert into " & db_table_name & " (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, target1, target2, target3, target4, target5, "
|
||||
query = query & " target6, target7, target8, target9, <20>߱<EFBFBD><DFB1><EFBFBD>, <20>߱ð<DEBD>, login_p_no, login_<6E≯<EFBFBD>,login_ip,<2C>߱<EFBFBD><DFB1><EFBFBD>_p_no, <20>߱<EFBFBD><DFB1><EFBFBD>_<EFBFBD≯<EFBFBD>) values ( "
|
||||
query = query & "'" & krc_no & "', "
|
||||
query = query & "'" & replace(title, " ", "") & "', "
|
||||
query = query & "'" & target_gap(0) & "', "
|
||||
query = query & "'" & target_gap(1) & "', "
|
||||
query = query & "'" & target_gap(2) & "', "
|
||||
query = query & "'" & target_gap(3) & "', "
|
||||
query = query & "'" & target_gap(4) & "', "
|
||||
query = query & "'" & target_gap(5) & "', "
|
||||
if replace(title, " ", "") = "<22><><EFBFBD><EFBFBD>" then
|
||||
tmpstr = target_gap(6) & ", " & target_gap(10)
|
||||
else
|
||||
tmpstr = target_gap(6)
|
||||
end if
|
||||
query = query & "'" & tmpstr & "', "
|
||||
query = query & "'" & target_gap(8) & "<22><><EFBFBD><EFBFBD> " & target_gap(9) & "', "
|
||||
query = query & "'" & print_date & "', "
|
||||
query = query & "'" & year(date) & "-" & zeroformat(month(date),2) & "-" & zeroformat(day(date),2) & "', "
|
||||
query = query & "'" & time() & "', "
|
||||
query = query & "'" & user_name(0) & "', "
|
||||
query = query & "'" & user_name(1) & "', "
|
||||
query = query & "'" &Session("USERIP") & "', "
|
||||
query = query & "'" & bal_user_name(0) & "', "
|
||||
query = query & "'" & bal_user_name(1) & "') "
|
||||
' if session("loginuser") = "<22><>ȫ<EFBFBD><C8AB>" or session("loginuser") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" then
|
||||
if session("loginuser") = "<22><>ȫ<EFBFBD><C8AB>" then
|
||||
else
|
||||
adoconn.execute query
|
||||
end if
|
||||
|
||||
'//========================
|
||||
''<27>α<EFBFBD><CEB1><EFBFBD><EFBFBD><EFBFBD>
|
||||
query = "insert into " & db_table_name & "_log (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_p_no, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_<EFBFBD≯<EFBFBD>, "
|
||||
query = query & " <20>߱<EFBFBD><DFB1><EFBFBD>, <20>߱ð<DEBD>, <20>߱<EFBFBD><DFB1><EFBFBD>_p_no, <20>߱<EFBFBD><DFB1><EFBFBD>_<EFBFBD≯<EFBFBD>, <20>߱<EFBFBD><DFB1><EFBFBD>_ip) values ( "
|
||||
query = query & "'" & krc_no & "', "
|
||||
query = query & "'" & replace(title, " ", "") & "', "
|
||||
query = query & "'<27>߱<EFBFBD>', "
|
||||
query = query & "'" & target_gap(0) & "', "
|
||||
query = query & "'" & target_gap(1) & "', "
|
||||
query = query & "'" & year(date) & "-" & zeroformat(month(date),2) & "-" & zeroformat(day(date),2) & "', "
|
||||
query = query & "'" & time() & "', "
|
||||
query = query & "'" & user_name(0) & "', "
|
||||
query = query & "'" & user_name(1) & "', "
|
||||
query = query & "'" & Session("USERIP") & "')"
|
||||
' if session("loginuser") = "<22><>ȫ<EFBFBD><C8AB>" or session("loginuser") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" then
|
||||
if session("loginuser") = "<22><>ȫ<EFBFBD><C8AB>" then
|
||||
else
|
||||
adoconn.execute query
|
||||
end if
|
||||
end if
|
||||
%>
|
||||
<style>
|
||||
.doc_title{
|
||||
text-align: justify;
|
||||
-moz-text-align-last: justify;
|
||||
-webkit-text-align-last: justify; /* not implemented yet, and will not be */
|
||||
text-align-last: justify; /* IE */
|
||||
padding-left: 15px;
|
||||
padding-right: 15px;
|
||||
}
|
||||
</style>
|
||||
<script language=javascript>
|
||||
|
||||
function win_close()
|
||||
{
|
||||
window.close();
|
||||
}
|
||||
function win_print()
|
||||
{
|
||||
var menu_option = document.frm_certificate.menu_option.value;
|
||||
var p_no = document.frm_certificate.p_no.value;
|
||||
var txt_print_date = document.frm_certificate.txt_print_date.value;
|
||||
var sel_person = document.frm_certificate.sel_person.value;
|
||||
var txt_end_date = document.frm_certificate.txt_end_date.value;
|
||||
|
||||
var url = "cert_poe_print.asp?menu_option=" + menu_option +"&p_no=" + p_no;
|
||||
url = url + "&txt_print_date=" + txt_print_date;
|
||||
url = url + "&sel_person=" + sel_person;
|
||||
url = url + "&txt_end_date=" + txt_end_date;
|
||||
url = url + "&print_type=2";
|
||||
|
||||
document.frm_certificate.action=url;
|
||||
document.frm_certificate.submit();
|
||||
}
|
||||
|
||||
|
||||
|
||||
function print_ie()
|
||||
{
|
||||
|
||||
//
|
||||
if(navigator.userAgent.toLowerCase().indexOf('chrome') > -1){ // Chrome Browser Detected?
|
||||
window.PPClose = false; // Clear Close Flag
|
||||
window.onbeforeunload = function(){ // Before Window Close Event
|
||||
if(window.PPClose === false){ // Close not OK?
|
||||
return 'Leaving this page will block the parent window!\nPlease select "Stay on this Page option" and use the\nCancel button instead to close the Print Preview Window.\n';
|
||||
}
|
||||
}
|
||||
window.print(); // Print preview
|
||||
window.PPClose = true; // Set Close Flag to OK.
|
||||
}else{
|
||||
window.print();
|
||||
window.close();
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="/css/basic.css">
|
||||
<%if cint(print_type) = 2 then%>
|
||||
<body onload="window.status=('<%=replace(title," ","")%> <20>μ<EFBFBD>');print_ie();">
|
||||
<%else%>
|
||||
<body onload="window.status=('<%=replace(title," ","")%> <20>μ<EFBFBD>')">
|
||||
<%end if%>
|
||||
|
||||
<form method='post' name='frm_certificate'>
|
||||
|
||||
<td width="100%" valign="top">
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td colspan="2" style="padding:20;">
|
||||
<table cellpadding="0" cellspacing="0" border="0">
|
||||
<%if cint(print_type) = 1 then%>
|
||||
<tr>
|
||||
<td style="padding:0 0 5 0;">
|
||||
<img src="/images/common/btn_print2.jpg" onClick="win_print()" style="CURSOR:pointer;">
|
||||
<img src="/images/common/btn_cancel.jpg" onClick="win_close();" style="CURSOR:pointer;">
|
||||
</td>
|
||||
</tr>
|
||||
<%end if%>
|
||||
<tr height=100>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="/images/approval/docbg_top.jpg"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="710" align="center" style="padding:10;border-left:1px solid #dedede;border-right:1px solid #dedede;">
|
||||
<table width="100%" cellpadding="3" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr height=50>
|
||||
<td align="center"><b style="font-size:22px;font-family:Dotum;"><%=title%> <20><> <20><> <20><></b></td>
|
||||
</tr>
|
||||
<tr height=30>
|
||||
<td><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>߱<DFB1>ȣ : <font class="tahoma"><%=krc_no%></td>
|
||||
</tr>
|
||||
<tr height=50>
|
||||
<td style="padding:15 3 3 3"><b><%=replace(title," ","")%><3E><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" cellpadding="5" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr height=30>
|
||||
<td width="120" class="doc_title tit8"><3E><> <20><></td>
|
||||
<td ><%=target_gap(1)%></td>
|
||||
</tr>
|
||||
<tr height=30>
|
||||
<td class="doc_title tit8"><3E><> <20><> <20><> <20><> <20><> ȣ</td>
|
||||
<td ><font class="tahoma"><%=target_gap(2)%></font></td>
|
||||
</tr>
|
||||
<tr height=60>
|
||||
<td class="doc_title tit8"><3E><> <20><></td>
|
||||
<td ><font class="tahoma"> <%=target_gap(3)%><br><br> <%=target_gap(4)%></font></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr height=50>
|
||||
<td style="padding:15 3 3 3"><b><%=title%> <09><> <20><></b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" cellpadding="5" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr height=30>
|
||||
<td width="120" class="doc_title tit8">ȸ <20><> <20><></td>
|
||||
<td ><font class="tahoma"><%=company(1)%></td>
|
||||
</tr>
|
||||
<tr height=30>
|
||||
<td class="doc_title tit8"><3E><> ǥ <20><> <20><></td>
|
||||
<td ><font class="tahoma"><%=replace(company(3), ",", ", ")%></td>
|
||||
</tr>
|
||||
<tr height=30>
|
||||
<td class="doc_title tit8">ȸ <20><> <20><> <20><></td>
|
||||
<td ><font class="tahoma"><%=company(4)%></td>
|
||||
</tr>
|
||||
<tr height=30>
|
||||
<td class="doc_title tit8"><3E><> <20><> <20><> <20><> <20><> <20><> ȣ</td>
|
||||
<td ><font class="tahoma"><%=company(2)%></td>
|
||||
</tr>
|
||||
<tr height=30>
|
||||
<td class="doc_title tit8"><3E><> <20><> <20><> <20><></td>
|
||||
<td ><font class="tahoma"><%=target_gap(5)%></td>
|
||||
</tr>
|
||||
<tr height=30>
|
||||
<td class="doc_title tit8"><3E><> <20><></td>
|
||||
<td ><font class="tahoma">
|
||||
<%=target_gap(6)%>
|
||||
</td>
|
||||
</tr>
|
||||
<tr height=30>
|
||||
<td class="doc_title tit8"><3E><> <20><> <20><> <20><></td>
|
||||
<td >
|
||||
<font class="tahoma"><%=target_gap(8)%> <20><><EFBFBD><EFBFBD> <%=target_gap(9)%></font>
|
||||
<%if cint(target_gap(11)) > 0 then%>
|
||||
<font class="tahoma">(<28><><EFBFBD><EFBFBD><EFBFBD>Ⱓ<%=target_gap(11)%> <20><> <20><><EFBFBD><EFBFBD>)
|
||||
<%end if%>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr height=60>
|
||||
<td align="center" style="padding:15 3 15 3">
|
||||
<b style="font-size:14px;font-family:Dotum;"><3E><><EFBFBD><EFBFBD><EFBFBD>ο<EFBFBD> <20><><EFBFBD>Ͽ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
<%if replace(title," ","") = "<22><><EFBFBD><EFBFBD>" then%>
|
||||
<09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
<%else%>
|
||||
<09><><EFBFBD><EFBFBD> <20>Ͽ<EFBFBD><CFBF><EFBFBD><EFBFBD><EFBFBD>
|
||||
<%end if%>
|
||||
<09><><EFBFBD><EFBFBD><EFBFBD>մϴ<D5B4>. </b>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr height=50>
|
||||
<td style="padding:15 3 3 3"><b>Ȯ <20><> <20><></b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" cellpadding="5" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr height=30>
|
||||
<td width="120" class="doc_title tit8"><3E><> <20><></td>
|
||||
<td width="150" ><font class="tahoma"><%=bal_user_name(3)%></td>
|
||||
<td rowspan=4 >
|
||||
<br> <font class="tahoma"><%=print_date%><br>
|
||||
<br><br><br><br><br>
|
||||
<font class="tahoma"><%=company(1)%></font>
|
||||
|
||||
<font class="tahoma"><<3C><><EFBFBD><EFBFBD>></font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr height=30>
|
||||
<td class="doc_title tit8"><3E><> <20><></td>
|
||||
<td ><font class="tahoma"><%=bal_user_name(2)%></td>
|
||||
</tr>
|
||||
<tr height=30>
|
||||
<td class="doc_title tit8"><3E><> <20><></td>
|
||||
<td ><font class="tahoma"><%=bal_user_name(1)%> <img src='/images/common/sign.gif' width=15 height=15></td>
|
||||
</tr>
|
||||
<tr height=30>
|
||||
<td class="doc_title tit8"><3E><> <20><></td>
|
||||
<td ><font class="tahoma"><%=bal_user_name(4)%>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:15 0 5 0"><!-- #include virtual= "approval/inc_logo.asp" --></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="/images/approval/docbg_btm.jpg"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
|
||||
<input type=hidden name="menu_option" value = "<%=request("menu_option")%>">
|
||||
<input type=hidden name="p_no" value = "<%=request("p_no")%>">
|
||||
<input type=hidden name="txt_print_date" value = "<%=request("txt_print_date")%>">
|
||||
<input type=hidden name="sel_person" value = "<%=request("sel_person")%>">
|
||||
<input type=hidden name="txt_end_date" value = "<%=request("txt_end_date")%>">
|
||||
|
||||
</form>
|
||||
</body>
|
||||
312
management/certificate_select.asp
Normal file
312
management/certificate_select.asp
Normal file
@@ -0,0 +1,312 @@
|
||||
<!-- #include virtual = "include/header.asp" -->
|
||||
<!-- #include virtual = "include/left.asp" -->
|
||||
<%
|
||||
'####################################################
|
||||
'<27>濵<EFBFBD><E6BFB5><EFBFBD><EFBFBD><EFBFBD>ǿ<EFBFBD><C7BF><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD> <20>κ<EFBFBD><CEBA>Դϴ<D4B4>.
|
||||
'<27>濵<EFBFBD><E6BFB5><EFBFBD><EFBFBD><EFBFBD>Ǹ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>մϴ<D5B4>.
|
||||
'####################################################
|
||||
%>
|
||||
<%
|
||||
|
||||
if tmp_admin_chk = "1" or Session("Depart_Code") = 18 then
|
||||
else
|
||||
Response.Write "<script>"
|
||||
Response.Write "window.alert ('<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>.');"
|
||||
Response.Write "history.back();"
|
||||
Response.Write "</script>"
|
||||
end if
|
||||
|
||||
dim txt_command, i, j
|
||||
dim title(5)
|
||||
dim st_date, end_date
|
||||
dim Max_Title
|
||||
|
||||
dim Query
|
||||
dim Max_person_in
|
||||
dim Max_person_out
|
||||
dim person_in() '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
dim person_out() '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
dim krft_send
|
||||
|
||||
|
||||
Max_Title = 5
|
||||
title(1) = "<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
title(2) = "<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
title(3) = "<22><> <20><>"
|
||||
title(4) = "<22><><EFBFBD><EFBFBD> <20>ΰ<EFBFBD><CEB0><EFBFBD>"
|
||||
title(5) = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
|
||||
txt_command = Request.Form("txt_command")
|
||||
st_date = Request.Form("st_date")
|
||||
end_date = Request.Form("end_date")
|
||||
|
||||
|
||||
''<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
query = "select * from person "
|
||||
query = query & " where not(substring(p_name,1,1) = '<27><>' "
|
||||
query = query & " or substring(p_name,1,3) = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' "
|
||||
query = query & " or substring(p_name,1,3) = 'old' "
|
||||
query = query & " or substring(p_name,1,2) = '<27><>Ÿ' "
|
||||
query = query & " or substring(p_name,1,2) = 'ȸ<><C8B8>') "
|
||||
query = query & " and p_depart_first is not null and p_depart <> 88 "
|
||||
query = query & " and p_resign = 0"
|
||||
query = query & " order by p_name"
|
||||
adors.open query, adoconn, adopenstatic, adlockreadonly
|
||||
Max_person_in = 0
|
||||
redim person_in(adors.recordcount,2)
|
||||
do while not adors.eof
|
||||
Max_person_in = Max_person_in + 1
|
||||
person_in(Max_person_in,1) = adors("p_no")
|
||||
person_in(Max_person_in,2) = adors("p_name")
|
||||
adors.movenext
|
||||
loop
|
||||
adors.close
|
||||
|
||||
''<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
query = "select * from person "
|
||||
query = query & " where not(substring(p_name,1,1) = '<27><>' "
|
||||
query = query & " or substring(p_name,1,3) = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' "
|
||||
query = query & " or substring(p_name,1,3) = 'old' "
|
||||
query = query & " or substring(p_name,1,2) = '<27><>Ÿ' "
|
||||
query = query & " or substring(p_name,1,2) = 'ȸ<><C8B8>') "
|
||||
query = query & " and p_resign = 1"
|
||||
query = query & " order by p_name"
|
||||
adors.open query, adoconn, adopenstatic, adlockreadonly
|
||||
Max_person_out = 0
|
||||
redim person_out(adors.recordcount,2)
|
||||
do while not adors.eof
|
||||
Max_person_out = Max_person_out + 1
|
||||
person_out(Max_person_out,1) = adors("p_no")
|
||||
person_out(Max_person_out,2) = adors("p_name")
|
||||
adors.movenext
|
||||
loop
|
||||
adors.close
|
||||
%>
|
||||
<script language=javascript>
|
||||
$(function(){
|
||||
$(".search_sel").on("keyup", function(event){
|
||||
if((event.which ? event.which : event.keyCode) == 13){
|
||||
var keyword = $(this).val();
|
||||
$.each($(this).next().find("option"), function(idx, obj){
|
||||
if($(obj).text().trim().indexOf(keyword) == -1){
|
||||
$(obj).css("display", "none");
|
||||
}else{
|
||||
$(obj).css("display", "");
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
var old_menu = "";
|
||||
|
||||
function goRun()
|
||||
{
|
||||
var menu_option = document.frm_list.txt_command.value;
|
||||
|
||||
if (menu_option == "1" || menu_option == "2")
|
||||
{
|
||||
document.frm_list.action="cert_poe.asp?menu_option=" + menu_option;
|
||||
}
|
||||
else if(menu_option == "3" ) //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
{
|
||||
document.frm_list.action="cert_official_select.asp?title=<3D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
|
||||
}
|
||||
else if(menu_option == "4") //<2F><><EFBFBD><EFBFBD><EFBFBD>ΰ<EFBFBD><CEB0><EFBFBD>
|
||||
{
|
||||
if (allTrim(document.frm_list.txt_client.value) == "")
|
||||
{
|
||||
alert("Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ ȸ<><C8B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>ϼ<EFBFBD><CFBC><EFBFBD>...");
|
||||
document.frm_list.txt_client.focus();
|
||||
return false;
|
||||
}
|
||||
document.frm_list.action="cert_cos_print.asp?print_type=1";
|
||||
}
|
||||
else if(menu_option == "5") //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
{
|
||||
if (allTrim(document.frm_list.txt_client.value) == "")
|
||||
{
|
||||
alert("Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ ȸ<><C8B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>ϼ<EFBFBD><CFBC><EFBFBD>...");
|
||||
document.frm_list.txt_client.focus();
|
||||
return false;
|
||||
}
|
||||
document.frm_list.action="cert_poa_print.asp?print_type=1";
|
||||
}
|
||||
else
|
||||
{
|
||||
alert("<22><><EFBFBD><EFBFBD> <20><><EFBFBD>ϴ<EFBFBD> <20><EFBFBD><D7B8><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>...");
|
||||
return false
|
||||
}
|
||||
document.frm_list.submit();
|
||||
}
|
||||
|
||||
function change_title2(txt){
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD>ϰ<EFBFBD><CFB0><EFBFBD> <20>ϴ<EFBFBD> <20><EFBFBD><D7B8><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28><> input type=text<78><74> <20><><EFBFBD>ý<EFBFBD>)<29><> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ư<EFBFBD><C6B0> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ű<EFBFBD><C5B0>
|
||||
var i = eval(txt) - 1;
|
||||
document.frm_list.radio_title[i].checked = true;
|
||||
document.frm_list.txt_command.value = document.frm_list.radio_title[i].value;
|
||||
if (i==0){
|
||||
div_person_in.style.visibility="visible";
|
||||
div_person_out.style.visibility="hidden";
|
||||
}
|
||||
else
|
||||
{
|
||||
div_person_in.style.visibility="hidden";
|
||||
}
|
||||
if (i==1){
|
||||
div_person_out.style.visibility="visible";
|
||||
div_person_in.style.visibility="hidden";
|
||||
}
|
||||
else
|
||||
{
|
||||
div_person_out.style.visibility="hidden";
|
||||
}
|
||||
|
||||
if (i==3){//<2F><><EFBFBD><EFBFBD><EFBFBD>ΰ<EFBFBD><CEB0><EFBFBD><EFBFBD><EFBFBD> Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ<EFBFBD><C6AE> <20>ޱ<EFBFBD><DEB1><EFBFBD>
|
||||
div_sayung.style.visibility="visible";
|
||||
}
|
||||
else if (i==4){// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ<EFBFBD><C6AE> <20>ޱ<EFBFBD><DEB1><EFBFBD>
|
||||
div_sayung.style.visibility="visible";
|
||||
div_person_in.style.visibility="visible";
|
||||
}
|
||||
else
|
||||
{
|
||||
document.frm_list.txt_client.value = "";
|
||||
div_sayung.style.visibility="hidden";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<script language="javascript" src="/js/common.js"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- 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></h1>
|
||||
</div>
|
||||
|
||||
|
||||
<form name='frm_list' method='post'>
|
||||
|
||||
<input type=hidden name=txt_command size=50 value='<%=txt_command%>'>
|
||||
|
||||
<td width="100%" valign="top">
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<!-- Ȯ<><C8AE> -->
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" style="padding:20;">
|
||||
<table cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td style="padding:0 0 5 0;">
|
||||
|
||||
<font class="brown"><3E>߱<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD>Ͻô<CFBD> <20><EFBFBD><D7B8><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>߱<EFBFBD> <20><>ư<EFBFBD><C6B0> Ŭ<><C5AC><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>.</font><br>
|
||||
<img src="/images/common/blank.gif" width="19" height="1" align="absmiddle">
|
||||
<font class="k_darkorange"><3E>濵<EFBFBD><E6BFB5><EFBFBD><EFBFBD><EFBFBD>Ǹ<EFBFBD> <20><><EFBFBD>밡<EFBFBD><EBB0A1><EFBFBD>մϴ<D5B4>.</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="/images/approval/docbg_top.jpg"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="710" align="center" style="padding:10;border-left:1px solid #dedede;border-right:1px solid #dedede;">
|
||||
<table width="100%" cellpadding="3" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<div id="div_person_in" style="visibility: hidden;">
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td width="50%"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD>ټ<EFBFBD>)</td>
|
||||
<td>
|
||||
<input type="text" id="searchSel_p_no_in" class="search_sel" value="" />
|
||||
<select name='sel_p_no_in'>
|
||||
<%for i=1 to Max_person_in%>
|
||||
<option value='<%=person_in(i,1)%>'><%=person_in(i,2)%></option>
|
||||
<%next%>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div id="div_person_out" style="visibility: hidden;">
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td width="50%"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD>ټ<EFBFBD>)</td>
|
||||
<td>
|
||||
<input type="text" id="searchSel_p_no_out" class="search_sel" value="" />
|
||||
<select name='sel_p_no_out'>
|
||||
<%for i=1 to Max_person_out%>
|
||||
<option value='<%=person_out(i,1)%>'><%=person_out(i,2)%></option>
|
||||
<%next%>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
for i=1 to Max_Title
|
||||
if i mod 2 = 0 then
|
||||
tmp_class = "tit8"
|
||||
else
|
||||
tmp_class = "tit7"
|
||||
end if
|
||||
%>
|
||||
<tr>
|
||||
<td class="<%=tmp_class%>" width="50%" onclick="change_title2('<%=i%>');" style="CURSOR:pointer;">
|
||||
<input type="radio" class="none" name=radio_title value='<%=i%>' onclick="change_title2('<%=i%>');" style="CURSOR:pointer;"
|
||||
<%if i= cint(txt_command) then%>
|
||||
checked
|
||||
<%end if%>
|
||||
> <input type=text class="none" name=txt_title value='<%=title(i)%>' readonly style="CURSOR:pointer;">
|
||||
</td>
|
||||
<%if i=4 then%>
|
||||
<td class="<%=tmp_class%>">
|
||||
<div id="div_sayung" style="visibility: hidden;" >
|
||||
<table width="100%" align="center">
|
||||
<tr>
|
||||
<td>
|
||||
Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ ȸ<><C8B8><EFBFBD><EFBFBD> <20>Է<EFBFBD> <input type=text name=txt_client style="IME-MODE: active" maxlength=20 value='' ><font color=red><b>(Ư<><C6AF><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>)</b></font>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
<%
|
||||
else
|
||||
%>
|
||||
<td class="<%=tmp_class%>">
|
||||
</td>
|
||||
<%end if%>
|
||||
</tr>
|
||||
<%next%>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="/images/approval/docbg_btm.jpg"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding:10 0 0 0;" align="center">
|
||||
<img src="/images/management/btn_cert.jpg" onclick='goRun();' style='cursor:pointer'>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
157
management/ip_list.asp
Normal file
157
management/ip_list.asp
Normal file
@@ -0,0 +1,157 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
Dim tel_num : tel_num = Request("tel_num")
|
||||
%>
|
||||
<%
|
||||
Response.CharSet="euc-kr"
|
||||
Session.codepage="949"
|
||||
Response.codepage="949"
|
||||
Response.ContentType="text/html;charset=euc-kr"
|
||||
%>
|
||||
<style type="text/css">
|
||||
.selectedRow {
|
||||
background-color: #F9EDA5;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.onSelect {
|
||||
background-color: #b7efef;
|
||||
}
|
||||
.offSelect {
|
||||
background-color: #ffffff;
|
||||
}
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
/*
|
||||
$(document).ready(function () {
|
||||
var ip_address = "<%=ip_address %>";
|
||||
if (ip_address != "") {
|
||||
$(opener.document).find("#txt_krc_ip").val(ip_address);
|
||||
self.close();
|
||||
}
|
||||
});
|
||||
|
||||
function ip_chk(x,ip_add,chk)
|
||||
{
|
||||
if (chk == "1")
|
||||
{
|
||||
$("input[name=ip_address]").val(ip_add);
|
||||
$("#ip_list").submit();
|
||||
}
|
||||
}
|
||||
*/
|
||||
$(document).ready(function () {
|
||||
$(function () {
|
||||
$('#mouse_over tr td').mouseover(function () {
|
||||
$(this).addClass('selectedRow');
|
||||
}).mouseout(function () {
|
||||
$(this).removeClass('selectedRow');
|
||||
});
|
||||
});
|
||||
|
||||
$('[class^=tel_td]').each(function () {
|
||||
$(this).click(function () {
|
||||
var selected = $(this).hasClass("onSelect");
|
||||
$('[class^=tel_td]').removeClass("onSelect");
|
||||
if (!selected) {
|
||||
$(this).addClass("onSelect");
|
||||
}
|
||||
//$("#tel_num").text($(this).text());
|
||||
$("#tel_num").text($(this).children('input').val());
|
||||
|
||||
//alert($(this).text());
|
||||
});
|
||||
});
|
||||
$('[class^=ip_td]').each(function () {
|
||||
$(this).click(function () {
|
||||
var selected = $(this).hasClass("onSelect");
|
||||
$('[class^=ip_td]').removeClass("onSelect");
|
||||
if (!selected) {
|
||||
$(this).addClass("onSelect");
|
||||
}
|
||||
$("#ip_num").text($(this).text());
|
||||
|
||||
//alert($(this).text());
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
<p><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ: <span id="tel_num"><%If tel_num<>"" Then Response.Write tel_num%></span></p>
|
||||
<p><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> IP: <span id="ip_num"></span></p>
|
||||
<table id="mouse_over" cellspacing="0" cellpadding="0" border="1" style="width:100%;">
|
||||
<thead>
|
||||
<tr>
|
||||
<td colspan="3" style="text-align:center;"><%if tel_num="" Then%><3E><>ȭ<EFBFBD><C8AD>ȣ<%else %>IP<%End If %> <20><><EFBFBD><EFBFBD></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<%
|
||||
dim aa
|
||||
dim bb
|
||||
Dim iCnt : iCnt = 0
|
||||
dim tCnt
|
||||
If tel_num="" Then
|
||||
Query = ""
|
||||
'Query = Query&" Select * from ip_list where use_status='0' and left(IP_address,8)='10.10.13' "
|
||||
Query = Query&" select A_Code+'-'+M_Code+'-'+L_Code as FullCode, L_Code from Tel_List "
|
||||
Query = Query&" where Use_status='0' and Etc1='<27><><EFBFBD><EFBFBD>' "
|
||||
adoRs.Open query, adoconn, 1
|
||||
Redim aa(adoRs.RecordCount+1)
|
||||
Redim bb(adoRs.RecordCount+1)
|
||||
while not adoRs.eof
|
||||
iCnt = iCnt +1
|
||||
aa(iCnt) = adoRs("L_Code")
|
||||
bb(iCnt) = adoRs("FullCode")
|
||||
adoRs.movenext
|
||||
wend
|
||||
%>
|
||||
<tr>
|
||||
<%for tCnt=1 to iCnt %>
|
||||
<td class="tel_td"><%=aa(tCnt) %><input type="hidden" name='FullNum' value='<%=bb(tCnt) %>' /></td>
|
||||
<%if tCnt mod 3 = 0 Then %>
|
||||
</tr>
|
||||
<tr>
|
||||
<%
|
||||
End IF
|
||||
NEXT
|
||||
%>
|
||||
</tr>
|
||||
<%
|
||||
adoRs.Close
|
||||
Else
|
||||
%>
|
||||
<%
|
||||
Query = ""
|
||||
Query = Query&" Select * from ip_list where use_status='0' and left(IP_address,8)='10.10.13' "
|
||||
'Query = Query&" select A_code, M_Code, L_Code from Tel_List "
|
||||
'Query = Query&" where Use_status='0' and Etc1='<27><><EFBFBD><EFBFBD>' "
|
||||
adoRs.Open query, adoconn, 1
|
||||
Redim aa(adoRs.RecordCount+1)
|
||||
while not adoRs.eof
|
||||
iCnt = iCnt +1
|
||||
aa(iCnt) = adoRs("IP_address")
|
||||
adoRs.movenext
|
||||
wend
|
||||
%>
|
||||
<tr>
|
||||
<%for tCnt=1 to iCnt %>
|
||||
<td class="ip_td"><%=aa(tCnt) %></td>
|
||||
<%if tCnt mod 3 = 0 Then %>
|
||||
</tr>
|
||||
<tr>
|
||||
<%
|
||||
End IF
|
||||
NEXT
|
||||
%>
|
||||
</tr>
|
||||
<%
|
||||
adoRs.Close
|
||||
%>
|
||||
<%
|
||||
End If
|
||||
%>
|
||||
</tbody>
|
||||
</table>
|
||||
249
management/person_loginList.asp
Normal file
249
management/person_loginList.asp
Normal file
@@ -0,0 +1,249 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<!-- #include file = "../include/top_menu.asp" -->
|
||||
<%
|
||||
SET rsp = server.CreateObject("ADODB.RECORDSET")
|
||||
|
||||
sel_year = request("sel_year")
|
||||
If sel_year = "" Then
|
||||
sel_year = year(date)
|
||||
End If
|
||||
|
||||
sel_month = request("sel_month")
|
||||
If sel_month = "" Then
|
||||
sel_month = month(date)
|
||||
End If
|
||||
sel_month = right("0" & sel_month, 2)
|
||||
|
||||
nowDate = now()
|
||||
%>
|
||||
<script src="../js/sort-table.js" type="text/javascript"></script>
|
||||
<style>
|
||||
.filterSelect{
|
||||
margin-right:10px;
|
||||
}
|
||||
#rsTb > table{
|
||||
border-collapse: collapse;
|
||||
}
|
||||
#rsTb > table td{
|
||||
padding:2px;
|
||||
word-break: keep-all;
|
||||
}
|
||||
#rsTb > table > thead > tr > td{
|
||||
cursor:pointer;
|
||||
}
|
||||
#rsTb > table > tbody > tr:nth-child(2n+1){
|
||||
background-color:#dbe9f2;
|
||||
}
|
||||
|
||||
#rsTb > table > tbody > tr:hover{
|
||||
border: 1px solid #682dff;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
<%
|
||||
query = ""
|
||||
query = query & " SELECT p_name, p_depart_name, p_team_name, p_rank_name, p_position_name, " & vbCrLf
|
||||
query = query & " ymd, login_time, logout_time, gap_time " & vbCrLf
|
||||
query = query & " FROM V_LOGIN_TIME TTT " & vbCrLf
|
||||
query = query & " LEFT JOIN project2.dbo.V_Person P " & vbCrLf
|
||||
query = query & " ON TTT.p_no = P.p_no " & vbCrLf
|
||||
query = query & " WHERE P.p_resign='0' " & vbCrLf
|
||||
query = query & " AND LEFT(ymd, 7) = '" & sel_year & "-" & sel_month & "' " & vbCrLf
|
||||
query = query & " ORDER BY ymd, login_time, p_depart_name, p_team_name, p_rank_name " & vbCrLf
|
||||
|
||||
'response.write query
|
||||
rsp.Open query, adoConn, 1
|
||||
jsonRs = "["
|
||||
if rsp.RecordCount > 0 then
|
||||
for i = 1 To rsp.RecordCount
|
||||
jsonRs = jsonRs & "{"
|
||||
jsonRs = jsonRs & """p_name"":""" & rsp("p_name") & ""","
|
||||
jsonRs = jsonRs & """p_depart_name"":""" & rsp("p_depart_name") & ""","
|
||||
jsonRs = jsonRs & """p_team_name"":""" & rsp("p_team_name") & ""","
|
||||
jsonRs = jsonRs & """p_rank_name"":""" & rsp("p_rank_name") & ""","
|
||||
jsonRs = jsonRs & """p_position_name"":""" & rsp("p_position_name") & ""","
|
||||
jsonRs = jsonRs & """ymd"":""" & rsp("ymd") & ""","
|
||||
jsonRs = jsonRs & """login_time"":""" & rsp("login_time") & ""","
|
||||
jsonRs = jsonRs & """logout_time"":""" & rsp("logout_time") & ""","
|
||||
jsonRs = jsonRs & """gap_time"":""" & rsp("gap_time") & """"
|
||||
jsonRs = jsonRs & "}"
|
||||
rsp.MoveNext
|
||||
if not rsp.Eof then
|
||||
jsonRs = jsonRs & ","
|
||||
end if
|
||||
Next
|
||||
End if
|
||||
rsp.Close
|
||||
jsonRs = jsonRs & "]"
|
||||
%>
|
||||
//
|
||||
var jsonRS = <%=jsonRs%>;
|
||||
var filterCol = ["p_team_name", "p_name", "ymd"]; // Filter <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>.
|
||||
var filterColKor = ["<22><EFBFBD>", "<22><><EFBFBD><EFBFBD>", "<22>Ϻ<EFBFBD>"]; // Filter <20><><EFBFBD>ɿ<EFBFBD><C9BF><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ѱ<EFBFBD>.
|
||||
var filterObj = new Object();
|
||||
|
||||
function tbDraw(colArr, valArr){
|
||||
var jsonFilter = jsonRS;
|
||||
if(colArr != undefined && valArr != undefined && colArr.length == valArr.length){
|
||||
$.each(colArr, function(idx, obj){
|
||||
if(valArr[idx] != ""){
|
||||
jsonFilter = $.grep(jsonFilter, function(o, i){ return o[obj] == valArr[idx]; });
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$.each(filterCol, function(idx, col){
|
||||
filterObj[col] = new Array(); // <20>迭<EFBFBD><E8BFAD> <20>ʱ<EFBFBD>ȭ
|
||||
});
|
||||
|
||||
$("#rsTb > table > tbody").html("");
|
||||
$(".tbFilter").html("");
|
||||
$.each(jsonFilter, function(idx, obj){
|
||||
var tmpHTML = '';
|
||||
var tmpClass = "";
|
||||
tmpHTML = tmpHTML + '<tr class="' + tmpClass + '">';
|
||||
tmpHTML = tmpHTML + '<td align="center" >' + obj.ymd + '</td>';
|
||||
tmpHTML = tmpHTML + '<td align="center" >' + obj.p_name + '</td>';
|
||||
tmpHTML = tmpHTML + '<td align="center" >' + obj.p_team_name + '</td>';
|
||||
tmpHTML = tmpHTML + '<td align="center" >' + obj.p_rank_name + '</td>';
|
||||
tmpHTML = tmpHTML + '<td align="center" >' + obj.login_time + '</td>';
|
||||
tmpHTML = tmpHTML + '<td align="center" >' + obj.logout_time + '</td>';
|
||||
tmpHTML = tmpHTML + '<td align="center" >' + obj.gap_time + '</td>';
|
||||
tmpHTML = tmpHTML + '</tr>';
|
||||
$("#rsTb > table > tbody").append(tmpHTML);
|
||||
|
||||
$.each(filterCol, function(i, col){
|
||||
filterObj[col].push(obj[col]);
|
||||
});
|
||||
});
|
||||
|
||||
$.each(filterObj, function(idx, arr){
|
||||
arr = $.unique(arr.sort());
|
||||
var tmpSelect = "";
|
||||
tmpSelect = tmpSelect + "<select class='filterSelect' id='f_" + idx + "'>";
|
||||
tmpSelect = tmpSelect + "<option value='' " + (valArr != undefined ? (valArr[$.inArray(idx, colArr)] == "" ? "selected" : "") : "") + ">" + filterColKor[$.inArray(idx, filterCol)] + "(<28><>ü)</option>";
|
||||
$.each(arr, function(i, txt){
|
||||
tmpSelect = tmpSelect + "<option value='" + txt + "' " + (valArr != undefined ? (valArr[$.inArray(idx, colArr)] == txt ? "selected" : "") : "") + ">" + txt + "</option>";
|
||||
});
|
||||
tmpSelect = tmpSelect + "</select>";
|
||||
$(".tbFilter").append(tmpSelect);
|
||||
});
|
||||
|
||||
}
|
||||
$(function(){
|
||||
$(document).off("change", ".filterSelect").on("change", ".filterSelect", function(){
|
||||
var colArr = new Array();
|
||||
var valArr = new Array();
|
||||
$.each($(".filterSelect"), function(idx, obj){
|
||||
colArr.push($(obj).attr("id").substr($(obj).attr("id").indexOf("_")+1, 100));
|
||||
valArr.push($(obj).val());
|
||||
});
|
||||
tbDraw(colArr, valArr);
|
||||
});
|
||||
|
||||
tbDraw();
|
||||
|
||||
$("#btnExport").click(function(e) {
|
||||
var a = document.createElement('a');
|
||||
var data_type = 'data:application/vnd.ms-excel;charset=euc-kr';
|
||||
var table_html = encodeURIComponent($("#rsTb").html());
|
||||
a.href = data_type + ', ' + table_html;
|
||||
a.download = '<27><><EFBFBD><EFBFBD><EFBFBD>ٽð<D9BD><C3B0><EFBFBD>ȸ_'+ $("#sel_year > option:selected").val() +'-' + ($("#sel_month > option:selected").val().length == 1 ? '0' : '') + $("#sel_month > option:selected").val() + '.xls';
|
||||
a.click();
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
$(".submitFilter select").on("change", function(){
|
||||
location.href="./person_loginList.asp?sel_year=" + $("#sel_year > option:selected").val() + "&sel_month=" + $("#sel_month > option:selected").val();
|
||||
});
|
||||
|
||||
$("#sel_year").val("<%=sel_year%>");
|
||||
$("#sel_month").val("<%=sel_month%>"*1);
|
||||
});
|
||||
</script>
|
||||
<form name="logTimefrm" method="post">
|
||||
<td width="100%" valign="top">
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<!-- Ȯ<><C8AE> -->
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" style="padding:20;">
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td style="padding: 0 0 5 0;">
|
||||
<span style="font-size: 12pt; font-weight: bold;"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ð<EFBFBD><C3B0><EFBFBD>ȸ</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
<font class="brown"> Filter <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>.</font>
|
||||
</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding:5 0 0 0">
|
||||
<table width="100%" height="37" cellpadding="0" cellspacing="1" border="0" bgcolor="#c0c0c0">
|
||||
<tr>
|
||||
<td bgcolor="#DFDFDF" class="submitFilter tahoma_blk" style="padding-left:10px;width:130px;">
|
||||
<select id="sel_year" style="width:50px;">
|
||||
<%
|
||||
For i = year(date) To year(date) - 3 Step -1
|
||||
%>
|
||||
<option value="<%= i %>"><%= i %></option>
|
||||
<%
|
||||
Next
|
||||
%>
|
||||
</select><3E><>
|
||||
<select id="sel_month">
|
||||
<%
|
||||
For i = 1 To 12
|
||||
%>
|
||||
<option value="<%= i %>"><%= i %></option>
|
||||
<%
|
||||
Next
|
||||
%>
|
||||
</select><3E><>
|
||||
</td>
|
||||
<td bgcolor="#DFDFDF" class="tbFilter tahoma_blk" style="padding-left:10px;"></td>
|
||||
<td bgcolor="#DFDFDF" style="padding-left:10px;"></td>
|
||||
<td bgcolor="#DFDFDF" align="right" style="padding-right:10px;">
|
||||
<input type="button" id="btnExport" value="Excel Download"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding:10 0 0 0">
|
||||
<div style="width:100%;height:650px;overflow-y:scroll;" id="rsTb">
|
||||
<table width="100%" class="js-sort-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<td align="center" class="js-sort-string tit_left" style="width: 13%"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center" class="js-sort-string tit_left" style="width: 13%"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td align="center" class="js-sort-string tit_left" style="width: 21%"><3E><EFBFBD><D7B7><EFBFBD></td>
|
||||
<td align="center" class="js-sort-string tit_left" style="width: 23%"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td align="center" class="js-sort-string tit_left" style="width: 10%"><3E><><EFBFBD>ٽð<D9BD></td>
|
||||
<td align="center" class="js-sort-string tit_left" style="width: 10%"><3E><><EFBFBD>ٽð<D9BD></td>
|
||||
<td align="center" class="js-sort-number tit_left" style="width: 10%"><3E>ٹ<EFBFBD><D9B9>ð<EFBFBD></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody></tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="15" bgcolor="#d5d5d5" height="1"></td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
|
||||
</form>
|
||||
1210
management/personnel_card.asp
Normal file
1210
management/personnel_card.asp
Normal file
File diff suppressed because it is too large
Load Diff
53
management/personnel_card_ajax.asp
Normal file
53
management/personnel_card_ajax.asp
Normal file
@@ -0,0 +1,53 @@
|
||||
<!-- #include virtual = "include/header.asp" -->
|
||||
<!-- #include virtual = "include/left.asp" -->
|
||||
<%
|
||||
Dim s_name : s_name = Request("s_name")
|
||||
Dim s_email : s_email = Request("s_email")
|
||||
%>
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper ml-0">
|
||||
<!-- Main content -->
|
||||
<div class="content-body p-0">
|
||||
<div class="content p-2">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<% If s_name <> "" Then %>
|
||||
<form name="p_search" method="post">
|
||||
<input type="hidden" name="sel_list" id="sel_list" value=""/>
|
||||
<div>
|
||||
<%
|
||||
Dim p_num : p_num = 0
|
||||
|
||||
SQL = " select * from project2.dbo.person where krc_out_date = '' and p_name like '%" & s_name & "%' order by p_name "
|
||||
adoRs.Open SQL, adoconn, 1
|
||||
while not adoRs.eof
|
||||
p_num = p_num + 1
|
||||
%>
|
||||
<div id="list_<%=p_num %>"><a style="cursor:pointer;" onclick="return_call(this.form,'<%=adoRs("p_no") %>');" title="<%=p_num %> / <%=adoRs("p_no") %> / <%=adoRs("p_name") %>"><%=p_num %> / <%=adoRs("p_no") %> / <%=adoRs("p_name") %></a></div>
|
||||
<%
|
||||
adoRs.movenext
|
||||
wend
|
||||
adoRs.close
|
||||
%>
|
||||
</div>
|
||||
</form>
|
||||
<% End If %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.content -->
|
||||
<!-- REQUIRED SCRIPTS -->
|
||||
<script>
|
||||
function return_call(x, list_num) {
|
||||
$("#sel_list").val(list_num);
|
||||
var aa = $("#sel_list").val();
|
||||
document.p_search.action = "personnel_card_edit.asp";
|
||||
document.p_search.submit();
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
<!-- #include virtual = "include/footer.asp" -->
|
||||
19
management/personnel_card_check_ajax.asp
Normal file
19
management/personnel_card_check_ajax.asp
Normal file
@@ -0,0 +1,19 @@
|
||||
<!-- #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
|
||||
Dim s_email : s_email = Request("s_email")
|
||||
|
||||
If s_email <> "" Then
|
||||
Query = " select * from project2.dbo.person where krc_out_date='' and p_user_mail<>'' and left(p_user_mail,charindex('@',p_user_mail)-1) = '"&s_email&"' "
|
||||
Adors.Open query, adoConn, 1
|
||||
If Adors.recordCount > 0 Then
|
||||
Response.Write "1"
|
||||
Else
|
||||
Response.Write "0"
|
||||
End IF
|
||||
Adors.close
|
||||
End If
|
||||
%>
|
||||
17
management/personnel_card_depart_ajax.asp
Normal file
17
management/personnel_card_depart_ajax.asp
Normal file
@@ -0,0 +1,17 @@
|
||||
<!-- #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
|
||||
Dim d_code : d_code = Request("d_code")
|
||||
|
||||
Query = " select * from N_Depart_Team where D_code='" & d_code & "' and flag='1' order by T_Name "
|
||||
Adors.Open query, adoConn, 1
|
||||
Response.Write "<option value=''>= <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> =</option>"
|
||||
while not Adors.eof
|
||||
Response.Write "<option value='" & Adors("T_Code") & "'>" & Adors("T_Name") & "</option>"
|
||||
Adors.movenext
|
||||
wend
|
||||
Adors.close
|
||||
%>
|
||||
1400
management/personnel_card_edit.asp
Normal file
1400
management/personnel_card_edit.asp
Normal file
File diff suppressed because it is too large
Load Diff
52
management/personnel_card_img_ajax.asp
Normal file
52
management/personnel_card_img_ajax.asp
Normal file
@@ -0,0 +1,52 @@
|
||||
<!-- #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
|
||||
|
||||
set uploadform = Server.CreateObject("DEXT.FileUpload")
|
||||
set fs = Server.CreateObject("Scripting.FileSystemObject")
|
||||
uploadform.AutoMakeFolder = True
|
||||
dim FilePath, Ext, ImgChk
|
||||
dim ImgName : ImgName = uploadform("img_name")
|
||||
dim ImgFile : ImgFile = uploadform("img_file")
|
||||
ImgChk = uploadform("ImgChk")
|
||||
|
||||
uploadform.DefaultPath = Server.MapPath("/images/management/img")
|
||||
Ext = Mid(ImgFile, InStrRev(ImgFile, "."))
|
||||
ImgName = ImgName&Ext
|
||||
FilePath = uploadform.DefaultPath & "\" & ImgName
|
||||
|
||||
If fs.FileExists(FilePath) Then
|
||||
Call rename(FilePath, "bak_" & date_time() & "_"+ImgName)
|
||||
End If
|
||||
uploadform("img_file").saveAs(FilePath)
|
||||
ImgChk = "1"
|
||||
|
||||
Response.Write ImgChk
|
||||
set uploadform = nothing
|
||||
|
||||
function rename(oldname,newname)
|
||||
dim f
|
||||
set f=server.createobject("scripting.filesystemobject").getfile(oldname)
|
||||
f.name=newname
|
||||
set f=nothing
|
||||
end function
|
||||
|
||||
Function date_time()
|
||||
v_year = year(date)
|
||||
v_month = month(date)
|
||||
if v_month < 10 then v_month = "0" & v_month
|
||||
v_day = day(date)
|
||||
if v_day < 10 then v_day = "0" & v_day
|
||||
v_hour = hour(time)
|
||||
if v_hour < 10 then v_hour = "0" & v_hour
|
||||
v_minute = minute(time)
|
||||
if v_minute < 10 then v_minute = "0" & v_minute
|
||||
v_second = second(time)
|
||||
if v_second < 10 then v_second = "0" & v_second
|
||||
v_datetime = v_year&v_month&v_day&v_hour&v_minute&v_second
|
||||
date_time = v_datetime
|
||||
End Function
|
||||
%>
|
||||
791
management/personnel_card_ok.asp
Normal file
791
management/personnel_card_ok.asp
Normal file
@@ -0,0 +1,791 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%'####################################################
|
||||
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>λ<EFBFBD><CEBB><EFBFBD><EFBFBD><EFBFBD> <20>ڷ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
''<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>常
|
||||
'2008-11-20<32>Ϸ<EFBFBD>
|
||||
|
||||
'####################################################
|
||||
%>
|
||||
|
||||
<OBJECT RUNAT=Server PROGID=ADODB.Recordset id=adoRs_temp></OBJECT>
|
||||
|
||||
<%
|
||||
Dim use : use = "1" '#####IP<49><50> <20>系 <20><>ȣ <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 0, <20><EFBFBD> 1)
|
||||
Dim URL
|
||||
dim gap(197)
|
||||
' 0:<3A><><EFBFBD><EFBFBD>(p_no), 1:<3A>Ի<EFBFBD><D4BB><EFBFBD><EFBFBD><EFBFBD>(krc_in_date), 2:<3A>μ<EFBFBD>:p_depart, 3:<3A><><EFBFBD><EFBFBD>(p_pos), 4:<3A><>ȣ(keupho
|
||||
' 5:<3A><><EFBFBD><EFBFBD>(<28>ѱ<EFBFBD>:p_name), 6:<3A><><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD>:p_name_eng)
|
||||
' 7:<3A>ֹι<D6B9>ȣ(jumin), 8:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28><>/<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:yyyy-mm-dd+,1:birthday)
|
||||
' 9:<3A><>ȥ<EFBFBD><C8A5><EFBFBD><EFBFBD>(marriage:<3A><>ȥ,<2C><>ȥ), 10:<3A><>ȥ<EFBFBD><C8A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(marriage_date)
|
||||
'11:ȸ<><C8B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(p_user_mail), 12:<3A><><EFBFBD>θ<EFBFBD><CEB8><EFBFBD>(p_user_mail2)
|
||||
'13:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȭ(p_tel), 14:<3A>ڵ<EFBFBD><DAB5><EFBFBD>(p_tel2)
|
||||
'15:<3A><><EFBFBD><EFBFBD> <20><> Ư<><C6AF>(interest), 16:<3A><><EFBFBD><EFBFBD>(religion)
|
||||
'17:<3A>ּ<EFBFBD>(<28>ֹε<D6B9><CEB5>ϻ<EFBFBD>):<3A><><EFBFBD>ÿ<EFBFBD><C3BF><EFBFBD><EFBFBD><EFBFBD>ȣ(zip_code), 18:<3A><><EFBFBD><EFBFBD><EFBFBD>ּ<EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:address1), 19:<3A><><EFBFBD><EFBFBD><EFBFBD>ּ<EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:address2)
|
||||
'20:<3A>ּ<EFBFBD>(<28>ǰ<EFBFBD><C7B0><EFBFBD><EFBFBD><EFBFBD>)<29><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ2(zip_code2), 21:<3A>ּ<EFBFBD>2(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:address2_1), 22:<3A>ּ<EFBFBD>2(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:address2_2)
|
||||
'23:<3A>Դ<EFBFBD><D4B4><EFBFBD>:military_service_st_date. 24:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:military_service_end_date, 25:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(military_type), 26:<3A><><EFBFBD><EFBFBD>(military_grade)
|
||||
'27:<3A><><EFBFBD><EFBFBD>(height), 28:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(weight), 29,30:eyesight(,<2C>α<EFBFBD><CEB1><EFBFBD>), 31:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(blood)
|
||||
'32,38,44,50,56:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD>(family_1,2,3,4,5)
|
||||
'33,39,45,51,57:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D≯<EFBFBD>(family_name_1,2,3,4,5)
|
||||
'34,40,46,52,58:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28><EFBFBD><EEBABB>)(family_birthday_1,2,3,4,5)
|
||||
'35,41,47,53,59:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD>(family_job_1,2,3,4,5)
|
||||
'36,42,48,54,60:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD>ſ<EFBFBD><C5BF><EFBFBD>(family_dong_1,2,3,4,5)
|
||||
'37,43,49,55,61:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(family_real_birthday_1,2,3,4,5)
|
||||
'62,66,70:<3A><><EFBFBD><EFBFBD>/<2F>ڰݻ<DAB0><DDBB><EFBFBD>-<2D>Ⱓ(<28><><EFBFBD><EFBFBD>)(license_date_1,2,3:<3A><><EFBFBD><EFBFBD><EFBFBD>ϰ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ,<2C><> <20><><EFBFBD><EFBFBD>
|
||||
'63,67,71:<3A><><EFBFBD><EFBFBD>/<2F>ڰݻ<DAB0><DDBB><EFBFBD>-<2D>ڰݸ<DAB0>(license_name_1,2,3)
|
||||
'64,68,72:<3A><><EFBFBD><EFBFBD>/<2F>ڰݻ<DAB0><DDBB><EFBFBD>-<2D><><EFBFBD><EFBFBD>(license_grage_1,2,3)
|
||||
'65,69,73:<3A><><EFBFBD><EFBFBD>/<2F>ڰݻ<DAB0><DDBB><EFBFBD>-<2D><><EFBFBD><EFBFBD>û(license_class_1,2,3)
|
||||
'74,79,84,89,94:<3A>з»<D0B7><C2BB><EFBFBD>-<2D>Ⱓ(<28><><EFBFBD><EFBFBD>)(edu_date_1,2,3,4,5:<3A><><EFBFBD><EFBFBD><EFBFBD>ϰ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ,<2C><> <20><><EFBFBD><EFBFBD>
|
||||
'75,80,85,90,95:<3A>з»<D0B7><C2BB><EFBFBD>-<2D>б<EFBFBD><D0B1><EFBFBD>(edu_name_1,2,3,4,5)
|
||||
'76,81,86,91,96:<3A>з»<D0B7><C2BB><EFBFBD>-<2D><><EFBFBD><EFBFBD>(edu_study_1,2,3,4,5)
|
||||
'77,82,87,92,97:<3A>з»<D0B7><C2BB><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(edu_end_chk_1,2,3,4,5)
|
||||
'78,83,88,93,98:<3A>з»<D0B7><C2BB><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(edu_point_1,2,3,4,5)
|
||||
'99:<3A><><EFBFBD>»<EFBFBD><C2BB><EFBFBD><EFBFBD><EFBFBD> <20>Ѱ<EFBFBD><D1B0>³<EFBFBD><C2B3><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>հ<EFBFBD>(career_year_sum), 100:<3A><><EFBFBD>»<EFBFBD><C2BB><EFBFBD><EFBFBD><EFBFBD> <20>Ѱ<EFBFBD><D1B0>³<EFBFBD><C2B3><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>հ<EFBFBD>(career_month_sum)
|
||||
'101,108,115,122,129:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>(career_year_1,2,3,4,5)
|
||||
'102,109,116,123,130:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>(career_month_1,2,3,4,5)
|
||||
'103,110,117,124,131:<3A><><EFBFBD>»<EFBFBD><C2BB><EFBFBD><EFBFBD><EFBFBD> (career_date_1,2,3,4,5) - <20><><EFBFBD><EFBFBD><EFBFBD>ϰ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ,<2C><> <20><><EFBFBD><EFBFBD>
|
||||
'104,111,118,125,132:<3A><><EFBFBD>»<EFBFBD><C2BB><EFBFBD><EFBFBD><EFBFBD> ȸ<><C8B8><EFBFBD><EFBFBD>(career_company_name_1,2,3,4,5)
|
||||
'105,112,119,126,133:<3A><><EFBFBD>»<EFBFBD><C2BB><EFBFBD><EFBFBD><EFBFBD> <20>μ<EFBFBD><CEBC><EFBFBD>(career_company_part_1,2,3,4,5)
|
||||
'106,113,120,127,134:<3A><><EFBFBD>»<EFBFBD><C2BB><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(career_company_part_job_1,2,3,4,5)
|
||||
'107,114,121,128,135:<3A><><EFBFBD>»<EFBFBD><C2BB><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>(career_company_part_grade_1,2,3,4,5)
|
||||
'136:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(krc_out_date)
|
||||
'137:<3A><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD>(p_depart_last) '138:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(p_pos_last)
|
||||
|
||||
'139:<3A><><EFBFBD><EFBFBD>(p_order), 140:<3A>н<EFBFBD><D0BD><EFBFBD><EFBFBD><EFBFBD>(p_pass), 141:<3A><><EFBFBD><EFBFBD><EFBFBD>̻<EFBFBD>(1)<29>ΰ<EFBFBD> <20>ƴѰ<C6B4>(0) :p_admin
|
||||
'142:<3A>α<EFBFBD><CEB1>ξ<EFBFBD><CEBE>̵<EFBFBD>(<28≯<EFBFBD><CCB8><EFBFBD> <20><><EFBFBD><EFBFBD>:p_log_name), 143:<3A><><EFBFBD><EFBFBD>(<28>ӿ<EFBFBD>:0, <20><><EFBFBD><EFBFBD>:1, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:2, <20><EFBFBD><F1BFACB1><EFBFBD>:3, <20><><EFBFBD><EFBFBD>/<2F><>Ÿ:4 :p_security)
|
||||
'144:ȸ<><C8B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
'145:<3A><><EFBFBD>翩<EFBFBD><E7BFA9>(p_resign:0:<3A><><EFBFBD><EFBFBD>, 1:<3A><><EFBFBD><EFBFBD>)
|
||||
|
||||
'146:<3A>Ի<EFBFBD><D4BB><EFBFBD> <20>μ<EFBFBD>, 147 : <20>Ի<EFBFBD><D4BB><EFBFBD> <20><><EFBFBD><EFBFBD>, 148:<3A>Ի<EFBFBD><D4BB>ñ<EFBFBD>ȣ
|
||||
'149, 154, 159:<3A><><EFBFBD>дɷ<D0B4><C9B7><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
'150, 155, 160:<3A><><EFBFBD>дɷ<D0B4><C9B7><EFBFBD> <20>ܱ<EFBFBD><DCB1><EFBFBD><EFBFBD><EFBFBD>
|
||||
'151, 156, 161:<3A><><EFBFBD>дɷ<D0B4><C9B7><EFBFBD> <20>ڰݽ<DAB0><DDBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
'152, 157, 162:<3A><><EFBFBD>дɷ<D0B4><C9B7><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
'153, 158, 163:<3A><><EFBFBD>дɷ<D0B4><C9B7><EFBFBD> ȸȭ<C8B8><C8AD><EFBFBD><EFBFBD>
|
||||
|
||||
'164:<3A>θ<EFBFBD><CEB8><EFBFBD> <20>ּ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ
|
||||
'165:<3A>θ<EFBFBD><CEB8><EFBFBD> <20>ּ<EFBFBD>1
|
||||
'166:<3A>θ<EFBFBD><CEB8><EFBFBD> <20>ּ<EFBFBD>2
|
||||
'167:Ư<><C6AF>
|
||||
'168:<3A><><EFBFBD><EFBFBD>
|
||||
'169:<3A><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD>,
|
||||
'170:<3A><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
'171:<3A>Ի籸<D4BB><E7B1B8>
|
||||
'172:<3A>Ի籸<D4BB><E7B1B8> <20><>Ÿ,
|
||||
'173:<3A>Ի籸<D4BB><E7B1B8> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,
|
||||
'174:<3A>Ի籸<D4BB><E7B1B8> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
'175:ä<>뱸<EFBFBD><EBB1B8>
|
||||
'176:ä<>뱸<EFBFBD><EBB1B8> <20><>Ÿ,
|
||||
'177:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
|
||||
'178: '<27>Ի<EFBFBD> history - <20><><EFBFBD><EFBFBD>
|
||||
'179 '<27>Ի<EFBFBD> history - <20><><EFBFBD><EFBFBD>
|
||||
'180 '<27>Ի<EFBFBD> history - <20><><EFBFBD><EFBFBD>
|
||||
'181 '<27>Ի<EFBFBD> history - ȣ<><C8A3>
|
||||
'182 '<27>Ի<EFBFBD> history - <20><>Ÿ
|
||||
|
||||
'183 ȸ<>系 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
|
||||
'184:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
'185:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>忩<EFBFBD><E5BFA9>
|
||||
|
||||
'186: 'p_job_view_depart '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>(<28>ӿ<EFBFBD>, <20>濵<EFBFBD><E6BFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> p_depart<72><74> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
'187 : p_pass_new(<28>н<EFBFBD><D0BD><EFBFBD><EFBFBD><EFBFBD>)
|
||||
|
||||
'188 :<3A>系 <20><><EFBFBD><EFBFBD> ip address(<28><>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD> <20>α<EFBFBD><CEB1>ο<EFBFBD>)
|
||||
|
||||
'189 :<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
'190 :<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
'191 :<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
|
||||
|
||||
dim Query, i, j
|
||||
dim Field_Name(197) 'person <20><><EFBFBD>̺<EFBFBD><CCBA><EFBFBD> <20>ʵ<EFBFBD><CAB5><EFBFBD>
|
||||
dim Job()
|
||||
dim job_Max
|
||||
dim tmpstr
|
||||
dim person_edit : person_edit = Request("person_edit") '##### <20>λ<EFBFBD><CEBB><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
dim tel_edit, ip1_edit, ip2_edit
|
||||
|
||||
''<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
Query = "select * from category_<79>λ<EFBFBD><CEBB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> where <20><><EFBFBD><EFBFBD>='<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' order by sort_key"
|
||||
adoRs.Open query, adoconn, 1
|
||||
job_Max = adoRs.RecordCount
|
||||
redim job(job_Max,2)
|
||||
i = 0
|
||||
do while not adoRs.EOF
|
||||
i = i + 1
|
||||
job(i, 1) = adoRs("code")
|
||||
job(i, 2) = adoRs("name")
|
||||
adoRs.MoveNext
|
||||
loop
|
||||
adoRs.Close
|
||||
|
||||
gap(0) = request("p_no")
|
||||
|
||||
gap(4) = ""'request("sel_p_pos_ho")
|
||||
gap(5) = request("p_name")
|
||||
gap(6) = request("p_name_eng")
|
||||
gap(7) = request("p_jumin1") & "-" & request("p_jumin2")
|
||||
gap(7) = encode(gap(7), 0)
|
||||
gap(8) = request("p_birthday") & "(" & request("p_sun_moon") & ")"
|
||||
gap(9) = request("p_marriage")
|
||||
gap(10) = request("p_marriage_date")
|
||||
gap(11) = request("p_user_mail")
|
||||
gap(12) = request("p_user_mail2")
|
||||
gap(13) = request("p_tel1") & "-" & request("p_tel2") & "-" & request("p_tel3")
|
||||
gap(14) = request("p_move_tel1") & "-" & request("p_move_tel2") & "-" & request("p_move_tel3")
|
||||
gap(15) = ""'request("txt_interest")
|
||||
gap(16) = ""'request("txt_religion")
|
||||
gap(17) = request("p_zip_code1")
|
||||
gap(18) = request("p_address1_1")
|
||||
gap(19) = request("p_address1_2")
|
||||
gap(20) = request("p_zip_code2")
|
||||
gap(21) = request("p_address2_1")
|
||||
gap(22) = request("p_address2_2")
|
||||
gap(23) = request("p_military_service_st")
|
||||
gap(24) = request("p_military_service_end")
|
||||
gap(25) = request("p_military_type")
|
||||
gap(26) = request("p_military_grade")
|
||||
gap(27) = ""'request("txt_height")
|
||||
gap(28) = ""'request("txt_weight")
|
||||
gap(29) = ""'request("txt_eyesight_left")
|
||||
gap(30) = ""'request("txt_eyesight_right")
|
||||
gap(31) = ""'request("txt_blood")
|
||||
|
||||
|
||||
'##### <20>μ<EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
'##### <20>Ի<EFBFBD>
|
||||
gap(1) = request("p_krc_in_date")
|
||||
gap(146) = request("sel_p_depart_first")
|
||||
gap(147) = request("sel_p_pos_first")
|
||||
|
||||
'##### <20><><EFBFBD><EFBFBD>
|
||||
'#<23>ű<EFBFBD>
|
||||
gap(177) = request("p_krc_now_date")'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
gap(192) = request("sel_p_depart")'<27><><EFBFBD><EFBFBD> <20>μ<EFBFBD>
|
||||
gap(193) = request("sel_p_team") '<27><><EFBFBD><EFBFBD> <20><>
|
||||
gap(194) = request("sel_p_pos")'<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
gap(195) = request("sel_p_team_place") '<27><><EFBFBD><EFBFBD> <20><>å
|
||||
gap(196) = request("sel_p_krc_job_part") '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
|
||||
|
||||
Query = ""
|
||||
Query = Query&" select a.D_Code, a.d_name, t_code, t_name, b.d_name as be_name, b.d_code as be_code from v_Department as a "
|
||||
Query = Query&" left join depart as b on a.before_t_cd1=b.d_code "
|
||||
Query = Query&" where b.d_yes_no='Y' and a.D_Code='" & gap(192) & "' and T_Code='" & gap(193) & "' "
|
||||
adoRs.Open query, adoconn, 1
|
||||
|
||||
If adoRs.RecordCount > 0 Then
|
||||
gap(2)=adoRs("be_code")
|
||||
Else
|
||||
gap(2)=""
|
||||
End If
|
||||
|
||||
adoRs.Close
|
||||
|
||||
|
||||
'##### <20><><EFBFBD><EFBFBD>
|
||||
'#<23><><EFBFBD><EFBFBD>
|
||||
gap(177) = request("p_krc_now_date")'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
'gap(2) = request("sel_p_depart")'<27><><EFBFBD><EFBFBD> <20>μ<EFBFBD>
|
||||
'gap(184) = request("sel_p_team") '<27><><EFBFBD><EFBFBD> <20><>
|
||||
if gap(192)="S" Then
|
||||
Select case gap(193)
|
||||
case "101"
|
||||
gap(184)="9"
|
||||
case "201"
|
||||
gap(184)="8"
|
||||
case "401"
|
||||
gap(184)="7"
|
||||
End Select
|
||||
Else
|
||||
gap(184)="0"
|
||||
End If
|
||||
gap(3) = request("sel_p_pos")'<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
'gap(185) = request("sel_p_team_place") '<27><><EFBFBD><EFBFBD> <20><>å
|
||||
Select case gap(195)
|
||||
case "8"'ȸ<><C8B8>
|
||||
gap(185)="8"
|
||||
case "6"'<27><>ǥ
|
||||
gap(185)="6"
|
||||
case "5"'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
gap(185)="5"
|
||||
case "3"'<27><><EFBFBD><EFBFBD>
|
||||
gap(185)="3"
|
||||
case "0"'<27><><EFBFBD><EFBFBD>
|
||||
gap(185)="0"
|
||||
case "10"'<27><><EFBFBD><EFBFBD>
|
||||
gap(185)="10"
|
||||
case else'<27><>Ÿ-<2D><><EFBFBD><EFBFBD> ó<><C3B3>
|
||||
gap(185)="0"
|
||||
End Select
|
||||
|
||||
gap(183) = request("sel_p_krc_job_part") '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
|
||||
|
||||
|
||||
|
||||
'##### <20><><EFBFBD><EFBFBD>
|
||||
gap(136) = request("p_krc_out_date")
|
||||
gap(137) = request("sel_p_depart_last")
|
||||
gap(138) = request("sel_p_pos_last")
|
||||
|
||||
|
||||
''<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
for i=1 to 5
|
||||
gap(32 + (i-1) * 6) = ""'Request.Form("txt_family")(i)
|
||||
gap(33 + (i-1) * 6) = ""'Request.Form("txt_family_name")(i)
|
||||
tmpstr = "txt_family_birthday_" & trim(i)
|
||||
gap(34 + (i-1) * 6) = ""'Request.Form(tmpstr)
|
||||
gap(35 + (i-1) * 6) = ""'Request.Form("txt_family_job")(i)
|
||||
for j=1 to job_max
|
||||
if gap(35 + (i-1) * 6) = job(j,2) then
|
||||
gap(35 + (i-1) * 6) = ""'job(j,1)
|
||||
exit for
|
||||
end if
|
||||
next
|
||||
gap(36 + (i-1) * 6) = ""'Request.Form("txt_family_dong")(i)
|
||||
|
||||
tmpstr = "txt_family_real_birthday_" & trim(i)
|
||||
gap(37 + (i-1) * 6) = ""'Request.Form(tmpstr)
|
||||
tmpstr = "opt_family_sun_moon_" & trim(i)
|
||||
gap(37 + (i-1) * 6) =""'gap(37 + (i-1) * 6) & "(" & request(tmpstr) & ")"
|
||||
if trim(gap(37 + (i-1) * 6)) = "()" then
|
||||
gap(37 + (i-1) * 6) = ""
|
||||
end if
|
||||
next
|
||||
|
||||
'<27><><EFBFBD><EFBFBD>/<2F>ڰ<EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
for i=1 to 3
|
||||
gap(62 + (i-1) * 4) = request("p_license_date")(i)
|
||||
gap(63 + (i-1) * 4) = request("p_license_name")(i)
|
||||
gap(64 + (i-1) * 4) = request("p_license_grade")(i)
|
||||
gap(65 + (i-1) * 4) = request("p_license_class")(i)
|
||||
next
|
||||
|
||||
'<27>з»<D0B7><C2BB><EFBFBD>
|
||||
for i=1 to 5
|
||||
gap(74 + (i-1) * 5) = request("p_edu_st_date")(i) & "," & request("p_edu_end_date")(i)
|
||||
if trim(gap(74 + (i-1) * 5)) = "," then
|
||||
gap(74 + (i-1) * 5) = ""
|
||||
end if
|
||||
gap(75 + (i-1) * 5) = request("p_edu_name")(i)
|
||||
gap(76 + (i-1) * 5) = request("p_edu_study")(i)
|
||||
gap(77 + (i-1) * 5) = request("p_edu_end_chk")(i)
|
||||
gap(78 + (i-1) * 5) = request("p_edu_point")(i)
|
||||
next
|
||||
|
||||
'<27><><EFBFBD>»<EFBFBD><C2BB><EFBFBD>
|
||||
gap(99) = request("p_career_year_sum")
|
||||
if gap(99) = "" then
|
||||
gap(99) = ""
|
||||
end if
|
||||
gap(100) = request("p_career_month_sum")
|
||||
for i=1 to 5
|
||||
gap(101 + (i-1) * 7) = request("p_career_year")(i)
|
||||
gap(102 + (i-1) * 7) = request("p_career_month")(i)
|
||||
gap(103 + (i-1) * 7) = request("p_career_st_date")(i) & "," & request("p_career_end_date")(i)
|
||||
if trim(gap(103 + (i-1) * 7)) = "," then
|
||||
gap(103 + (i-1) * 7) = ""
|
||||
end if
|
||||
|
||||
gap(104 + (i-1) * 7) = request("p_company_name")(i)
|
||||
gap(105 + (i-1) * 7) = request("p_company_part")(i)
|
||||
gap(106 + (i-1) * 7) = request("p_company_part_job")(i)
|
||||
gap(107 + (i-1) * 7) = request("p_company_part_grade")(i)
|
||||
next
|
||||
|
||||
|
||||
gap(144) = request("p_krc_tel3")
|
||||
|
||||
''<27>Ի<EFBFBD><D4BB><EFBFBD> <20>μ<EFBFBD>, <20><><EFBFBD><EFBFBD>, <20><>ȣ
|
||||
'146:<3A>Ի<EFBFBD><D4BB><EFBFBD> <20>μ<EFBFBD>, 147 : <20>Ի<EFBFBD><D4BB><EFBFBD> <20><><EFBFBD><EFBFBD>, 148:<3A>Ի<EFBFBD><D4BB>ñ<EFBFBD>ȣ
|
||||
'149, 154, 159:<3A><><EFBFBD>дɷ<D0B4><C9B7><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
'150, 155, 160:<3A><><EFBFBD>дɷ<D0B4><C9B7><EFBFBD> <20>ܱ<EFBFBD><DCB1><EFBFBD><EFBFBD><EFBFBD>
|
||||
'151, 156, 161:<3A><><EFBFBD>дɷ<D0B4><C9B7><EFBFBD> <20>ڰݽ<DAB0><DDBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
'152, 157, 162:<3A><><EFBFBD>дɷ<D0B4><C9B7><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
'153, 158, 163:<3A><><EFBFBD>дɷ<D0B4><C9B7><EFBFBD> ȸȭ<C8B8><C8AD><EFBFBD><EFBFBD>
|
||||
|
||||
|
||||
gap(148) = ""'request("sel_p_pos_ho_first")
|
||||
|
||||
|
||||
for i=1 to 3
|
||||
gap(149 + (i-1) * 5) = ""'request("txt_language_lavel_date")(i)
|
||||
gap(150 + (i-1) * 5) = ""'request("txt_language_lavel_name")(i)
|
||||
gap(151 + (i-1) * 5) = ""'request("txt_language_lavel_license")(i)
|
||||
gap(152 + (i-1) * 5) = ""'request("txt_language_lavel_point")(i)
|
||||
gap(153 + (i-1) * 5) = ""'request("txt_language_lavel_speech")(i)
|
||||
if trim(gap(149 + (i-1) * 5)) = "," then
|
||||
gap(149 + (i-1) * 5) = ""
|
||||
end if
|
||||
next
|
||||
|
||||
'///==========
|
||||
gap(164) = ""'request("txt_zip_code3")
|
||||
gap(165) = ""'request("txt_address3_1")
|
||||
gap(166) = ""'request("txt_address3_2")
|
||||
gap(167) = ""'request("txt_special")
|
||||
gap(168) = ""'request("txt_medical_history")
|
||||
gap(169) = request("p_military_1")'<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD>,
|
||||
gap(170) = request("p_military_2")'<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
gap(171) = ""'request("opt_krc_in_type_1")'<27>Ի籸<D4BB><E7B1B8>
|
||||
if instr(1,gap(171) ,"<22><><EFBFBD><EFBFBD>") > 0 then
|
||||
gap(172) = ""'request("txt_krc_in_type_1_etc_1") '<27>Ի籸<D4BB><E7B1B8> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
else
|
||||
gap(172) = ""'request("txt_krc_in_type_1_etc_2") '<27>Ի籸<D4BB><E7B1B8> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
end if
|
||||
|
||||
gap(173) = ""'request("txt_krc_in_type_st_date") '<27>Ի籸<D4BB><E7B1B8> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,
|
||||
gap(174) = ""'request("txt_krc_in_type_end_date") '<27>Ի籸<D4BB><E7B1B8> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
gap(175) = ""'request("opt_krc_in_type_2") 'ä<>뱸<EFBFBD><EBB1B8>
|
||||
gap(176) = ""'request("txt_krc_in_type_2_etc") 'ä<>뱸<EFBFBD><EBB1B8> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
|
||||
|
||||
if trim(gap(2)) = "18" then
|
||||
gap(186) = 0
|
||||
else
|
||||
gap(186) = gap(2)
|
||||
end if
|
||||
gap(187) = "1"
|
||||
|
||||
gap(178) = ""'request("txt_history")(1)'178: '<27>Ի<EFBFBD> history - <20><><EFBFBD><EFBFBD>
|
||||
gap(179) = ""'request("txt_history")(2)'179 '<27>Ի<EFBFBD> history - <20><><EFBFBD><EFBFBD>
|
||||
gap(180) = ""'request("txt_history")(3)'180 '<27>Ի<EFBFBD> history - <20><><EFBFBD><EFBFBD>
|
||||
gap(181) = ""'request("txt_history")(4)'181 '<27>Ի<EFBFBD> history - ȣ<><C8A3>
|
||||
gap(182) = ""'request("txt_history")(5)'182 '<27>Ի<EFBFBD> history - <20><>Ÿ
|
||||
|
||||
|
||||
gap(188) = trim(request("p_krc_ip")) ''<27><><EFBFBD><EFBFBD> ip <20>ּ<EFBFBD>(<28><>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD> <20>α<EFBFBD><CEB1>ο<EFBFBD>)
|
||||
gap(197) = trim(Request("p_krc_tel_ip"))
|
||||
|
||||
gap(189) = "0"'trim(request("krc_probation_yn")) ''<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
gap(190) = "0"'trim(request("krc_probation_stdt")) ''<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
gap(191) = "0"'trim(request("krc_probation_enddt")) ''<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
|
||||
Field_Name(0) = "p_no"
|
||||
Field_Name(1) = "krc_in_date"
|
||||
Field_Name(2) = "p_depart"
|
||||
Field_Name(3) = "p_pos"
|
||||
Field_Name(4) = "keupho"
|
||||
Field_Name(5) = "p_name"
|
||||
Field_Name(6) = "p_name_eng"
|
||||
Field_Name(7) = "jumin"
|
||||
Field_Name(8) = "birthday"
|
||||
Field_Name(9) = "marriage"
|
||||
Field_Name(10) = "marriage_date"
|
||||
Field_Name(11) = "p_user_mail"
|
||||
Field_Name(12) = "p_user_mail2"
|
||||
Field_Name(13) = "p_tel"
|
||||
Field_Name(14) = "p_tel2"
|
||||
Field_Name(15) = "interest"
|
||||
Field_Name(16) = "religion"
|
||||
Field_Name(17) = "zip_code1"
|
||||
Field_Name(18) = "address1_1"
|
||||
Field_Name(19) = "address1_2"
|
||||
Field_Name(20) = "zip_code2"
|
||||
Field_Name(21) = "address2_1"
|
||||
Field_Name(22) = "address2_2"
|
||||
Field_Name(23) = "military_service_st_date"
|
||||
Field_Name(24) = "military_service_end_date"
|
||||
Field_Name(25) = "military_type"
|
||||
Field_Name(26) = "military_grade"
|
||||
Field_Name(27) = "height"
|
||||
Field_Name(28) = "weight"
|
||||
Field_Name(29) = "eyesight_left"
|
||||
Field_Name(30) = "eyesight_right"
|
||||
Field_Name(31) = "blood"
|
||||
Field_Name(32) = "family_1"
|
||||
Field_Name(33) = "family_name_1"
|
||||
Field_Name(34) = "family_birthday_1"
|
||||
Field_Name(35) = "family_job_1"
|
||||
Field_Name(36) = "family_dong_1"
|
||||
Field_Name(37) = "family_real_birthday_1"
|
||||
Field_Name(38) = "family_2"
|
||||
Field_Name(39) = "family_name_2"
|
||||
Field_Name(40) = "family_birthday_2"
|
||||
Field_Name(41) = "family_job_2"
|
||||
Field_Name(42) = "family_dong_2"
|
||||
Field_Name(43) = "family_real_birthday_2"
|
||||
Field_Name(44) = "family_3"
|
||||
Field_Name(45) = "family_name_3"
|
||||
Field_Name(46) = "family_birthday_3"
|
||||
Field_Name(47) = "family_job_3"
|
||||
Field_Name(48) = "family_dong_3"
|
||||
Field_Name(49) = "family_real_birthday_3"
|
||||
Field_Name(50) = "family_4"
|
||||
Field_Name(51) = "family_name_4"
|
||||
Field_Name(52) = "family_birthday_4"
|
||||
Field_Name(53) = "family_job_4"
|
||||
Field_Name(54) = "family_dong_4"
|
||||
Field_Name(55) = "family_real_birthday_4"
|
||||
Field_Name(56) = "family_5"
|
||||
Field_Name(57) = "family_name_5"
|
||||
Field_Name(58) = "family_birthday_5"
|
||||
Field_Name(59) = "family_job_5"
|
||||
Field_Name(60) = "family_dong_5"
|
||||
Field_Name(61) = "family_real_birthday_5"
|
||||
Field_Name(62) = "license_date_1"
|
||||
Field_Name(63) = "license_name_1"
|
||||
Field_Name(64) = "license_grage_1"
|
||||
Field_Name(65) = "license_class_1"
|
||||
Field_Name(66) = "license_date_2"
|
||||
Field_Name(67) = "license_name_2"
|
||||
Field_Name(68) = "license_grage_2"
|
||||
Field_Name(69) = "license_class_2"
|
||||
Field_Name(70) = "license_date_3"
|
||||
Field_Name(71) = "license_name_3"
|
||||
Field_Name(72) = "license_grage_3"
|
||||
Field_Name(73) = "license_class_3"
|
||||
Field_Name(74) = "edu_date_1"
|
||||
Field_Name(75) = "edu_name_1"
|
||||
Field_Name(76) = "edu_study_1"
|
||||
Field_Name(77) = "edu_end_chk_1"
|
||||
Field_Name(78) = "edu_point_1"
|
||||
Field_Name(79) = "edu_date_2"
|
||||
Field_Name(80) = "edu_name_2"
|
||||
Field_Name(81) = "edu_study_2"
|
||||
Field_Name(82) = "edu_end_chk_2"
|
||||
Field_Name(83) = "edu_point_2"
|
||||
Field_Name(84) = "edu_date_3"
|
||||
Field_Name(85) = "edu_name_3"
|
||||
Field_Name(86) = "edu_study_3"
|
||||
Field_Name(87) = "edu_end_chk_3"
|
||||
Field_Name(88) = "edu_point_3"
|
||||
Field_Name(89) = "edu_date_4"
|
||||
Field_Name(90) = "edu_name_4"
|
||||
Field_Name(91) = "edu_study_4"
|
||||
Field_Name(92) = "edu_end_chk_4"
|
||||
Field_Name(93) = "edu_point_4"
|
||||
Field_Name(94) = "edu_date_5"
|
||||
Field_Name(95) = "edu_name_5"
|
||||
Field_Name(96) = "edu_study_5"
|
||||
Field_Name(97) = "edu_end_chk_5"
|
||||
Field_Name(98) = "edu_point_5"
|
||||
Field_Name(99) = "career_year_sum"
|
||||
Field_Name(100) = "career_month_sum"
|
||||
Field_Name(101) = "career_year_1"
|
||||
Field_Name(102) = "career_month_1"
|
||||
Field_Name(103) = "career_date_1"
|
||||
Field_Name(104) = "career_company_name_1"
|
||||
Field_Name(105) = "career_company_part_1"
|
||||
Field_Name(106) = "career_company_part_job_1"
|
||||
Field_Name(107) = "career_company_part_grade_1"
|
||||
Field_Name(108) = "career_year_2"
|
||||
Field_Name(109) = "career_month_2"
|
||||
Field_Name(110) = "career_date_2"
|
||||
Field_Name(111) = "career_company_name_2"
|
||||
Field_Name(112) = "career_company_part_2"
|
||||
Field_Name(113) = "career_company_part_job_2"
|
||||
Field_Name(114) = "career_company_part_grade_2"
|
||||
Field_Name(115) = "career_year_3"
|
||||
Field_Name(116) = "career_month_3"
|
||||
Field_Name(117) = "career_date_3"
|
||||
Field_Name(118) = "career_company_name_3"
|
||||
Field_Name(119) = "career_company_part_3"
|
||||
Field_Name(120) = "career_company_part_job_3"
|
||||
Field_Name(121) = "career_company_part_grade_3"
|
||||
Field_Name(122) = "career_year_4"
|
||||
Field_Name(123) = "career_month_4"
|
||||
Field_Name(124) = "career_date_4"
|
||||
Field_Name(125) = "career_company_name_4"
|
||||
Field_Name(126) = "career_company_part_4"
|
||||
Field_Name(127) = "career_company_part_job_4"
|
||||
Field_Name(128) = "career_company_part_grade_4"
|
||||
Field_Name(129) = "career_year_5"
|
||||
Field_Name(130) = "career_month_5"
|
||||
Field_Name(131) = "career_date_5"
|
||||
Field_Name(132) = "career_company_name_5"
|
||||
Field_Name(133) = "career_company_part_5"
|
||||
Field_Name(134) = "career_company_part_job_5"
|
||||
Field_Name(135) = "career_company_part_grade_5"
|
||||
Field_Name(136) = "krc_out_date"
|
||||
Field_Name(137) = "p_depart_last"
|
||||
Field_Name(138) = "p_pos_last"
|
||||
|
||||
Field_Name(139) = "p_order"
|
||||
Field_Name(140) = "p_pass"
|
||||
Field_Name(141) = "p_admin"
|
||||
Field_Name(142) = "p_log_name"
|
||||
Field_Name(143) = "p_security"
|
||||
Field_Name(144) = "p_tel3"
|
||||
Field_Name(145) = "p_resign"
|
||||
|
||||
|
||||
Field_Name(146) = "p_depart_first"
|
||||
Field_Name(147) = "p_pos_first"
|
||||
Field_Name(148) = "keupho_first"
|
||||
Field_Name(149) = "language_date_1"
|
||||
Field_Name(150) = "language_name_1"
|
||||
Field_Name(151) = "language_license_1"
|
||||
Field_Name(152) = "language_point_1"
|
||||
Field_Name(153) = "language_speech_1"
|
||||
Field_Name(154) = "language_date_2"
|
||||
Field_Name(155) = "language_name_2"
|
||||
Field_Name(156) = "language_license_2"
|
||||
Field_Name(157) = "language_point_2"
|
||||
Field_Name(158) = "language_speech_2"
|
||||
Field_Name(159) = "language_date_3"
|
||||
Field_Name(160) = "language_name_3"
|
||||
Field_Name(161) = "language_license_3"
|
||||
Field_Name(162) = "language_point_3"
|
||||
Field_Name(163) = "language_speech_3"
|
||||
|
||||
Field_Name(164) = "zip_code3"
|
||||
Field_Name(165) = "address3_1"
|
||||
Field_Name(166) = "address3_2"
|
||||
Field_Name(167) = "special"
|
||||
Field_Name(168) = "medical_history"
|
||||
Field_Name(169) = "military_1"'<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD>,
|
||||
Field_Name(170) = "military_2"'<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
Field_Name(171) = "krc_in_type_1"'<27>Ի籸<D4BB><E7B1B8>
|
||||
|
||||
Field_Name(172) = "krc_in_type_1_etc" '<27>Ի籸<D4BB><E7B1B8> <20><>Ÿ,
|
||||
Field_Name(173) = "krc_in_type_1_st_date" '<27>Ի籸<D4BB><E7B1B8> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,
|
||||
Field_Name(174) = "krc_in_type_1_end_date" '<27>Ի籸<D4BB><E7B1B8> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
Field_Name(175) = "krc_in_type_2" 'ä<>뱸<EFBFBD><EBB1B8>
|
||||
Field_Name(176) = "krc_in_type_2_etc" 'ä<>뱸<EFBFBD><EBB1B8> <20><>Ÿ,
|
||||
Field_Name(177) = "krc_now_date" '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
|
||||
Field_Name(178) = "krc_in_history_1" '<27>Ի<EFBFBD> history - <20><><EFBFBD><EFBFBD>
|
||||
Field_Name(179) = "krc_in_history_2" '<27>Ի<EFBFBD> history - <20><><EFBFBD><EFBFBD>
|
||||
Field_Name(180) = "krc_in_history_3" '<27>Ի<EFBFBD> history - <20><><EFBFBD><EFBFBD>
|
||||
Field_Name(181) = "krc_in_history_4" '<27>Ի<EFBFBD> history - ȣ<><C8A3>
|
||||
Field_Name(182) = "krc_in_history_5" '<27>Ի<EFBFBD> history - <20><>Ÿ
|
||||
|
||||
Field_Name(183) = "p_job_part" 'ȸ<>系 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
|
||||
Field_Name(184) = "p_team" 'ȸ<>系 <20><><EFBFBD><EFBFBD>
|
||||
Field_Name(185) = "p_team_place" 'ȸ<>系 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>忩
|
||||
Field_Name(186) = "p_job_view_depart" 'p_job_view_depart '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>(<28>ӿ<EFBFBD>, <20>濵<EFBFBD><E6BFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> p_depart<72><74> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
Field_Name(187) = "p_pass_new"
|
||||
|
||||
Field_Name(188) = "p_ip" '<27><><EFBFBD><EFBFBD> ip <20>ּ<EFBFBD>(<28><>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD> <20>α<EFBFBD><CEB1>ο<EFBFBD>)
|
||||
|
||||
Field_Name(189) = "krc_probation_yn" '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
Field_Name(190) = "krc_probation_stdt" '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
Field_Name(191) = "krc_probation_enddt" '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
|
||||
'##### <20><><EFBFBD><EFBFBD>
|
||||
Field_Name(192) = "p_depart_now" 'new <20>μ<EFBFBD>(<28><><EFBFBD><EFBFBD>)
|
||||
Field_Name(193) = "p_team_now" 'new <20><>(<28><><EFBFBD><EFBFBD>)
|
||||
Field_Name(194) = "p_rank_now" 'new <20><><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD>)
|
||||
Field_Name(195) = "p_position_now" 'new <20><>å(<28><><EFBFBD><EFBFBD>)
|
||||
Field_Name(196) = "p_job_now" 'new <20><><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD>)
|
||||
|
||||
Field_Name(197) = "p_tel_ip" '
|
||||
|
||||
''//===================
|
||||
''<27><><EFBFBD><EFBFBD>
|
||||
for i=0 to 138
|
||||
gap(i)=trim(gap(i))
|
||||
'Response.Write i & " => " & Field_Name(i) & ", '" & gap(i) & "'<br>"
|
||||
Next
|
||||
|
||||
gap(144)=trim(gap(144))
|
||||
for i=146 to 186
|
||||
gap(i)=trim(gap(i))
|
||||
'Response.Write i & " => " & Field_Name(i) & ", '" & gap(i) & "'<br>"
|
||||
Next
|
||||
|
||||
if trim(gap(0)) = "" then '<27>ű<EFBFBD><C5B1>Ի<EFBFBD><D4BB><EFBFBD>
|
||||
i = 0
|
||||
else
|
||||
query = "select * from person where p_no = '" & gap(0) & "'"
|
||||
adoRs.Open query, adoconn, 1
|
||||
I = adors.recordcount
|
||||
tel_edit = adoRs("p_tel3") '##### <20><><EFBFBD><EFBFBD>
|
||||
ip1_edit = adoRs("p_ip") '##### <20><><EFBFBD><EFBFBD>
|
||||
ip2_edit = adoRs("p_tel_ip") '##### <20><><EFBFBD><EFBFBD>
|
||||
if trim(cstr(adoRs("p_depart"))) <> trim(cstr(gap(2))) Then
|
||||
adoConn.Execute "INSERT INTO project2.dbo.Person_Log (p_no, info_name, before_info, after_info, change_date) VALUES ('" & gap(0) & "', 'depart', '" & adoRs("p_depart") & "', '" & gap(2) & "', '" & gap(177) & "') "
|
||||
End if
|
||||
adors.close
|
||||
end if
|
||||
|
||||
if i = 0 then
|
||||
'<27>ű<EFBFBD><C5B1>Է<EFBFBD>(<28><><EFBFBD>Ի<EFBFBD><D4BB><EFBFBD>)<29><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D>Ի<EFBFBD><D4BB><EFBFBD><EFBFBD>ڸ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
query = "select max(p_no) from person where p_no like '" & mid(gap(1),1,4) & mid(gap(1),6,2) & "%'"
|
||||
' Response.Write query & "<br>"
|
||||
adoRs.Open query, adoconn, 1
|
||||
if isnull(adoRs.Fields(0)) then
|
||||
gap(0) = mid(gap(1),1,4) & mid(gap(1),6,2) & "01"
|
||||
else
|
||||
gap(0) = adoRs.Fields(0) + 1
|
||||
end if
|
||||
adoRs.Close
|
||||
|
||||
query = "select max(p_order) from person where p_depart = " & clng(gap(2)) & " and p_resign = 0"
|
||||
' Response.Write query & "<br>"
|
||||
adoRs.Open query, adoconn, 1
|
||||
gap(139) = adoRs.Fields(0) + 1
|
||||
adors.close
|
||||
gap(140) = "1" '<27>н<EFBFBD><D0BD><EFBFBD><EFBFBD><EFBFBD>
|
||||
gap(142) = gap(5) '<27>ѱ<EFBFBD><D1B1≯<EFBFBD>
|
||||
if cint(gap(3)) <= 3 then ' <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>̻<EFBFBD><CCBB≯<EFBFBD>
|
||||
gap(143) = "0" '<27><><EFBFBD><EFBFBD>(<28>ӿ<EFBFBD>:0, <20><><EFBFBD><EFBFBD>:1, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:2,<2C><EFBFBD><F1BFACB1><EFBFBD>:3,<2C><><EFBFBD><EFBFBD>/<2F><>Ÿ:4)
|
||||
elseif cint(gap(3)) <= 5 then '' <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>̻<EFBFBD><CCBB≯<EFBFBD>
|
||||
gap(143) = "1"
|
||||
else
|
||||
if cint(gap(2)) <= 10 then '<27>μ<EFBFBD><CEBC><EFBFBD> 10<31><30><EFBFBD>ϸ<EFBFBD>, <20><> <20><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD><CEBC≯<EFBFBD>
|
||||
gap(143) = "2"
|
||||
elseif cint(gap(3)) = 99 then '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD≯<EFBFBD>
|
||||
gap(143) = "4"
|
||||
else
|
||||
gap(143) = "3"
|
||||
end if
|
||||
end if
|
||||
|
||||
if cint(gap(143)) <= 1 then 'admin(<28><><EFBFBD><EFBFBD>)<29><><EFBFBD><EFBFBD>
|
||||
gap(141) = "0"
|
||||
else
|
||||
gap(141) = "0"
|
||||
end if
|
||||
|
||||
|
||||
query="insert into person ("
|
||||
for i=0 to 139
|
||||
query = query & field_name(i) & ", "
|
||||
next
|
||||
for i=141 to 144
|
||||
query = query & field_name(i) & ", "
|
||||
next
|
||||
for i=146 to 177
|
||||
query = query & field_name(i) & ", "
|
||||
next
|
||||
for i=178 to 187
|
||||
query = query & field_name(i) & ", "
|
||||
next
|
||||
|
||||
'##### <20>ű<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
for i=192 to 196
|
||||
query = query & field_name(i) & ", "
|
||||
next
|
||||
|
||||
Query = trim(Query)
|
||||
Query = mid(Query, 1, len(Query) - 1) & ", krc_power, p_ip, p_tel_ip) values ("
|
||||
|
||||
for i=0 to 139
|
||||
query = query & "'" & gap(i) & "', "
|
||||
next
|
||||
for i=141 to 144
|
||||
query = query & "'" & gap(i) & "', "
|
||||
next
|
||||
for i=146 to 177
|
||||
query = query & "'" & gap(i) & "', "
|
||||
next
|
||||
for i=178 to 183
|
||||
query = query & "'" & CheckWord(gap(i)) & "', "
|
||||
next
|
||||
for i=184 to 187
|
||||
query = query & "'" & gap(i) & "', "
|
||||
next
|
||||
|
||||
'##### <20>ű<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
for i=192 to 196
|
||||
query = query & "'" & gap(i) & "', "
|
||||
next
|
||||
|
||||
Query = trim(Query)
|
||||
Query = mid(Query, 1, len(Query) - 1) & ", 'nnnnnnnnnnnnnn', '"&gap(188)&"', '"&gap(197)&"') "
|
||||
|
||||
' Response.Write "<22>ű<EFBFBD> <20>Է<EFBFBD> => " & query
|
||||
adoConn.Execute query
|
||||
''<27>н<EFBFBD><D0BD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>1<EFBFBD><31>(<28>ű<EFBFBD><C5B1><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
adoConn.Execute "update person set p_pass =convert(varbinary(50), pwdencrypt('1')) where p_no ='" & trim(gap(0)) & "' "
|
||||
'##### IP <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
adoConn.Execute "update Project2.dbo.IP_List set Use_status='" & use & "' where Ip_address in ('" &gap(188) & "','" & gap(197) & "') "
|
||||
adoConn.Execute "update Project2.dbo.Tel_List set Use_status='" & use & "', IP='" & gap(197) & "' where A_Code+'-'+M_Code+'-'+L_code = '" & gap(144) & "' "
|
||||
else
|
||||
'##### <20><><EFBFBD><EFBFBD> ó<><C3B3>
|
||||
'##### <20>系 <20><>ȭ
|
||||
If tel_edit <> gap(144) Then
|
||||
adoConn.Execute "update Project2.dbo.Tel_List set Use_status='0', IP='' where A_Code+'-'+M_Code+'-'+L_code = '" & tel_edit & "' "
|
||||
adoConn.Execute "update Project2.dbo.Tel_List set Use_status='1', IP='" & gap(197) & "' where A_Code+'-'+M_Code+'-'+L_code = '" & gap(144) & "' "
|
||||
end If
|
||||
|
||||
'##### <20><><EFBFBD><EFBFBD> IP
|
||||
If ip1_edit <> gap(188) Then
|
||||
adoConn.Execute "update Project2.dbo.IP_List set Use_status='0' where Ip_address in ('" & ip1_edit & "') "
|
||||
adoConn.Execute "update Project2.dbo.IP_List set Use_status='1' where Ip_address in ('" & gap(188) & "') "
|
||||
End If
|
||||
|
||||
'##### TEl IP
|
||||
If ip2_edit <> gap(197) Then
|
||||
adoConn.Execute "update Project2.dbo.IP_List set Use_status='0' where Ip_address in ('" & ip2_edit & "') "
|
||||
adoConn.Execute "update Project2.dbo.IP_List set Use_status='1' where Ip_address in ('" & gap(197) & "') "
|
||||
End If
|
||||
|
||||
query = "update person set "
|
||||
for i=1 to 138
|
||||
query = query & field_name(i) & " = '" & gap(i) & "', "
|
||||
next
|
||||
query = query & field_name(144) & " = '" & gap(144) & "', "
|
||||
' Query = trim(Query)
|
||||
' Query = mid(Query, 1, len(Query) - 1)
|
||||
if trim(gap(136)) <> "" then '<27><><EFBFBD><EFBFBD> <20><><EFBFBD>ڰ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
use="0"
|
||||
if cdate(gap(136)) <= cdate(FormatDateTime(date,0)) then
|
||||
gap(145) = "1"
|
||||
adoRs.open "select max(p_order) from person where p_resign = 1", adoconn, 1
|
||||
gap(139) = adoRs.fields(0) + 1
|
||||
adoRs.close
|
||||
query = query & field_name(139) & " = '" & gap(139) & "', "
|
||||
query = query & field_name(145) & " = '" & gap(145) & "', "
|
||||
end if
|
||||
end if
|
||||
for i=146 to 177
|
||||
query = query & field_name(i) & " = '" & gap(i) & "', "
|
||||
next
|
||||
for i=178 to 183
|
||||
query = query & field_name(i) & " = '" & CheckWord(gap(i)) & "', "
|
||||
next
|
||||
for i=184 to 186
|
||||
query = query & field_name(i) & " = '" & gap(i) & "', "
|
||||
next
|
||||
query = query & field_name(188) & " = '" & gap(188) & "', "
|
||||
|
||||
query = query & field_name(189) & " = '" & gap(189) & "', "
|
||||
query = query & field_name(190) & " = '" & gap(190) & "', "
|
||||
query = query & field_name(191) & " = '" & gap(191) & "', "
|
||||
|
||||
'##### <20>ű<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
for i=192 to 197
|
||||
query = query & field_name(i) & " = '" & gap(i) & "', "
|
||||
next
|
||||
|
||||
Query = trim(Query)
|
||||
Query = mid(Query, 1, len(Query) - 1)
|
||||
query = query & " where p_no = '" & gap(0) & "'"
|
||||
'Response.Write "<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> => " & query & "<br>"
|
||||
adoConn.Execute query
|
||||
'##### IP <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
|
||||
adoConn.Execute "update Project2.dbo.IP_List set Use_status='" & use & "' where Ip_address in ('" &gap(188) & "','" & gap(197) & "') "
|
||||
If use="0" Then
|
||||
gap(197)=""
|
||||
End If
|
||||
adoConn.Execute "update Project2.dbo.Tel_List set Use_status='" & use & "', IP='" & gap(197) & "' where A_Code+'-'+M_Code+'-'+L_code = '" & gap(144) & "' "
|
||||
end if
|
||||
|
||||
''//===============
|
||||
|
||||
|
||||
|
||||
'Response.Write "<font color=blue size=7><b><3E><><EFBFBD><EFBFBD> <20>ƽ<EFBFBD><C6BD>ϴ<EFBFBD></b></font>"
|
||||
Response.Write "<script type='text/javascript'>alert('<27><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD>');</script>"
|
||||
' alert("<22><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD>")
|
||||
%>
|
||||
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;url=personnel_card_edit.asp?sel_list=<%=gap(0)%>">
|
||||
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
|
||||
<TITLE><3E><><EFBFBD><EFBFBD> <20>λ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>ʻ<EFBFBD><CABB><EFBFBD> <20>ڷ<EFBFBD> <20><><EFBFBD><EFBFBD></TITLE>
|
||||
|
||||
</head>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
16
management/personnel_card_rank_ajax.asp
Normal file
16
management/personnel_card_rank_ajax.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
|
||||
Dim d_code : d_code = Request("d_code")
|
||||
|
||||
Query = " select * from N_Rank where R_code='" & d_code & "' and flag='1' "
|
||||
Adors.Open query, adoConn, 1
|
||||
while not Adors.eof
|
||||
Response.Write "<option value='" & Adors("R_Code") & "'>" & Adors("R_Name") & "</option>"
|
||||
Adors.movenext
|
||||
wend
|
||||
Adors.close
|
||||
%>
|
||||
297
management/vac_manage.asp
Normal file
297
management/vac_manage.asp
Normal file
@@ -0,0 +1,297 @@
|
||||
<!-- #include virtual = "include/header.asp" -->
|
||||
<!-- #include virtual = "include/left.asp" -->
|
||||
<%
|
||||
dim defaultDate
|
||||
defaultDate = cstr(date)
|
||||
if request("datepicker") <> "" then
|
||||
defaultDate = request("datepicker")
|
||||
end if
|
||||
%>
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<style>
|
||||
td[data-subholi]:not([data-subholi='0']){
|
||||
font-weight: bold;
|
||||
color: #000eb3;
|
||||
font-size: 14px;
|
||||
}
|
||||
#ifrm_month_vac{
|
||||
width:100%;
|
||||
height:99%;
|
||||
border:0;
|
||||
}
|
||||
</style>
|
||||
<!-- Content Header (Page header) -->
|
||||
<div class="content-header">
|
||||
<h1><3E><><EFBFBD><EFBFBD><EFBFBD>ް<EFBFBD> <20><><EFBFBD><EFBFBD></h1>
|
||||
</div>
|
||||
<!-- /.content-header -->
|
||||
<!-- Main content -->
|
||||
<div class="content-body">
|
||||
<div class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div style="margin-bottom: 5px; position:relative;">
|
||||
<20><><EFBFBD>س<EFBFBD>¥ : <input type="text" id="datepicker" value="<%=defaultDate%>" style="text-align:center;padding-left:10px;width:120px;cursor:pointer;" readonly>
|
||||
<span style="color:#AAA;"> (* <20><>¥<EFBFBD><C2A5> <20><><EFBFBD><EFBFBD><EFBFBD>ϸ<EFBFBD> <20>ش<EFBFBD><D8B4>ϴ<EFBFBD> <20><>¥ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ް<EFBFBD><DEB0><EFBFBD> <20><>ȸ<EFBFBD>մϴ<D5B4>.)</span>
|
||||
<input type="button" value="<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȳ" id="month_vac_btn" style='cursor:pointer;position:absolute;right:0px;'/>
|
||||
</div>
|
||||
<div id='monthVacDialog'><iframe id='ifrm_month_vac' src=''></iframe></div>
|
||||
<table class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td width="5%" align="center"><3E><><EFBFBD><EFBFBD><br><3E><><EFBFBD><EFBFBD></td>
|
||||
<td width="12%" align="center"><3E>Ի<EFBFBD><D4BB><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="10%" align="center"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td width="18%" align="center"><3E>μ<EFBFBD>/<2F><>å</td>
|
||||
<td width="10%" align="center"><3E>ް<EFBFBD><DEB0><EFBFBD><EFBFBD><EFBFBD><br><3E><><EFBFBD><EFBFBD></td>
|
||||
<td width="10%" align="center"><3E><><br><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="14%" align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><br><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="7%" align="center"><3E><><EFBFBD><EFBFBD><br><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="7%" align="center"><3E>ܿ<EFBFBD><br><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="7%" align="center"><3E><>ü<EFBFBD><EFBFBD><br><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
</tr>
|
||||
<%
|
||||
query = ""
|
||||
query = query & " SELECT krc_in_date, T.p_no, p_name, p_team_name,"
|
||||
query = query & " T.vac_season, vac_rem, vac_use, ISNULL(C.vac_change_cnt, 0) AS vac_change_cnt, "
|
||||
query = query & " vac_rem - vac_use + ISNULL(C.vac_change_cnt, 0) AS vac_possi, ISNULL(vac_change, 0) AS vac_change, ISNULL(subholi_cnt, 0) AS subholi_cnt "
|
||||
query = query & " FROM "
|
||||
query = query & " ("
|
||||
query = query & " SELECT krc_in_date, p_no, p_name, p_team_name, "
|
||||
query = query & " dbo.VAC_REM(p_no, '" & defaultDate & "') AS vac_rem, "
|
||||
query = query & " dbo.VAC_USE(p_no, '" & defaultDate & "') AS vac_use, "
|
||||
query = query & " dbo.VAC_YEAR(p_no, '" & defaultDate & "') AS vac_season"
|
||||
query = query & " FROM project2.dbo.V_person "
|
||||
query = query & " WHERE p_resign='0' AND krc_in_date IS NOT NULL"
|
||||
query = query & " ) T LEFT JOIN "
|
||||
query = query & " ("
|
||||
query = query & " SELECT p_no, vac_season,"
|
||||
query = query & " sum(vac_change_cnt) AS vac_change_cnt, "
|
||||
query = query & " count(*) AS vac_change "
|
||||
query = query & " FROM project2.dbo.T_VACATION_CUSTOM "
|
||||
query = query & " WHERE vac_change_yn = 'Y' "
|
||||
query = query & " GROUP BY p_no, vac_season"
|
||||
query = query & " ) C "
|
||||
query = query & " ON T.p_no = C.p_no AND T.vac_season = C.vac_season LEFT JOIN "
|
||||
query = query & " ( "
|
||||
query = query & " SELECT p_no, dbo.VAC_YEAR(p_no, j_date) AS vac_season, count(*) AS subholi_cnt "
|
||||
query = query & " FROM V_Job_List "
|
||||
query = query & " WHERE j_contents = '9' "
|
||||
query = query & " GROUP BY p_no, dbo.VAC_YEAR(p_no, j_date) "
|
||||
query = query & " ) S ON T.p_no = S.p_no AND T.vac_season = S.vac_season "
|
||||
query = query & " ORDER BY krc_in_date"
|
||||
|
||||
adoRs.Open query, adoconn, 1' adOpenForwardOnly
|
||||
do while not adoRs.eof
|
||||
%>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<% if cDbl(adoRs("vac_change")) > 0 then %>
|
||||
<input type="button" value="<22><>" id="vac_change_log" style="cursor:pointer;margin:0;padding:1px 10px;border:0;background:rgba(255,255,255,0);" data-rowinf="<%=adoRs("p_no")%>|<%=adoRs("vac_season")%>"/>
|
||||
<% end if %>
|
||||
</td>
|
||||
<td align="center"><%=adoRs("krc_in_date")%></td>
|
||||
<td align="center"><%=adoRs("p_name")%></td>
|
||||
<td align="center"><%=adoRs("p_team_name")%></td>
|
||||
<td align="center"><%=adoRs("vac_season")%></td>
|
||||
<td align="center"><%=adoRs("vac_rem")%></td>
|
||||
<td><%
|
||||
dim changeCntColor : changeCntColor="gray"
|
||||
dim cntSign : cntSign = " "
|
||||
|
||||
if cDbl(adoRs("vac_change_cnt")) > 0 then
|
||||
changeCntColor="blue"
|
||||
cntSign="+"
|
||||
elseif cDbl(adoRs("vac_change_cnt")) < 0 then
|
||||
changeCntColor="red"
|
||||
cntSign=""
|
||||
end if
|
||||
%>
|
||||
<span style='color:<%=changeCntColor%>;width:40%;display:inline-block;'><%=cntSign%><%=adoRs("vac_change_cnt")%></span>
|
||||
<%
|
||||
dim vacChangeRem : vacChangeRem = cDbl(adoRs("vac_rem")) + cDbl(adoRs("vac_change_cnt"))
|
||||
if vacChangeRem = adoRs("vac_rem") then
|
||||
vacChangeRem = ""
|
||||
end if
|
||||
%>
|
||||
<span style='color:<%=changeCntColor%>;width: calc(30% - 10px);display: inline-block;'><%=vacChangeRem%></span>
|
||||
<span style='width: 30%;display: inline-block;text-align:right;'>
|
||||
<% if adoRs("vac_season") <> "X" then %>
|
||||
<input type="button" value="+ / -" id="vac_control" style="height:19px;width:60px;cursor:pointer;padding:0;font-weight:bold;" data-rowinf="<%=adoRs("p_no")%>|<%=adoRs("vac_season")%>"/>
|
||||
<% end if %>
|
||||
</span>
|
||||
</td>
|
||||
<td align="center"><%=adoRs("vac_use")%></td>
|
||||
<td align="center"><%=adoRs("vac_possi")%></td>
|
||||
<td align="center" data-subholi='<%=adoRs("subholi_cnt")%>'><%=adoRs("subholi_cnt")%></td>
|
||||
</tr>
|
||||
<%
|
||||
adoRs.movenext
|
||||
loop
|
||||
adoRs.close
|
||||
%>
|
||||
</table>
|
||||
<div id='vac_change_dialog'>
|
||||
<20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> : <input type="number" min="-25" max="25" step="0.5" id="changeNum" class='useMinus' value="0" />
|
||||
<span style='color:#AAA;'>(<28><><EFBFBD><EFBFBD>Ű <20><>, <20>鸸 <20>̿<EFBFBD><CCBF>ϼ<EFBFBD><CFBC><EFBFBD>)</span>
|
||||
<br>
|
||||
<span style='color:#AAA;'> * <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> -25 ~ 25 <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>.</span><br>
|
||||
<20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><>: <textarea style="resize: none;vertical-align:middle;margin-top:12px;width:250px;" spellcheck="false" id="changeReason"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.content -->
|
||||
<!-- REQUIRED SCRIPTS -->
|
||||
<script>
|
||||
$(function(){
|
||||
$("#datepicker").datepicker({
|
||||
onSelect : function(dateText){
|
||||
location.href = "./vac_manage.asp?datepicker="+dateText;
|
||||
}
|
||||
});
|
||||
|
||||
var vacDialog;
|
||||
|
||||
var sel_p_no = "";
|
||||
var sel_vac_season = "";
|
||||
|
||||
function changeVacation(){
|
||||
if($("#changeNum").val() == "0"){
|
||||
alert("<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>.");
|
||||
return false;
|
||||
}
|
||||
if($.trim($("#changeReason").val()) == ""){
|
||||
alert("<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>.");
|
||||
return false;
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
url: './vac_manage_change_ok.asp',
|
||||
data: {
|
||||
'p_no' : sel_p_no,
|
||||
'vac_season' : sel_vac_season,
|
||||
'vac_change_cnt' : $("#changeNum").val(),
|
||||
'vac_change_reason' : escape($("#changeReason").val())
|
||||
},
|
||||
success: function(result){
|
||||
if(result == "1"){
|
||||
vacDialog.dialog("close");
|
||||
location.reload();
|
||||
}else{
|
||||
alert("Web Service Error !!");
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function changeCancel(){
|
||||
vacDialog.dialog("close");
|
||||
}
|
||||
|
||||
function clearVacationValue(){
|
||||
$("#changeNum").val("0");
|
||||
$("#changeReason").val("");
|
||||
sel_p_no = "";
|
||||
sel_vac_season = "";
|
||||
}
|
||||
|
||||
vacDialog = $("#vac_change_dialog").dialog({
|
||||
autoOpen: false,
|
||||
modal: true,
|
||||
resizable: false,
|
||||
height: 240,
|
||||
width: 400,
|
||||
title: '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>',
|
||||
close: function(){ clearVacationValue(); },
|
||||
buttons: {
|
||||
"<22><><EFBFBD><EFBFBD>": changeVacation,
|
||||
"<22><><EFBFBD><EFBFBD>": changeCancel
|
||||
}
|
||||
});
|
||||
|
||||
$("input[id=vac_control]").click(function () {
|
||||
vacDialog.dialog("option", "position", {
|
||||
my: 'right top',
|
||||
at: 'right bottom',
|
||||
of: $(this)
|
||||
});
|
||||
|
||||
var infoArr = $(this).data("rowinf").split("|");
|
||||
// infoArr[0] - <20><><EFBFBD><EFBFBD>
|
||||
// infoArr[1] - <20>ް<EFBFBD><DEB0><EFBFBD><EFBFBD>𱸺<EFBFBD>
|
||||
sel_p_no = infoArr[0];
|
||||
sel_vac_season = infoArr[1];
|
||||
|
||||
vacDialog.dialog("open");
|
||||
});
|
||||
|
||||
var monthVacDialog = $("#monthVacDialog").dialog({
|
||||
autoOpen: false,
|
||||
modal: true,
|
||||
resizable: false,
|
||||
height: 800,
|
||||
width: 1000,
|
||||
title: '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȳ',
|
||||
close: function(){
|
||||
$("#ifrm_month_vac").attr("src", "about:blank");
|
||||
$("body").css("overflow", "auto");
|
||||
},
|
||||
open: function(){
|
||||
$("body").css("overflow", "hidden");
|
||||
}
|
||||
});
|
||||
|
||||
monthVacDialog.dialog("option", "position", {
|
||||
my: 'center',
|
||||
at: 'center',
|
||||
of: window
|
||||
});
|
||||
|
||||
$("#month_vac_btn").on("click", function(){
|
||||
var cyear = "<%=LEFT(defaultDate, 4)%>";
|
||||
$("#ifrm_month_vac").attr("src", "./vac_month.asp?cyear="+cyear);
|
||||
monthVacDialog.dialog("open");
|
||||
});
|
||||
|
||||
$("#changeNum").keydown(function(e){
|
||||
var key = e.which || e.keyCode;
|
||||
if(key != 38 && key != 40 && key != 9){
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
$("input[id=vac_change_log]").click(function (){
|
||||
var obj = $(this);
|
||||
if(obj.val() == "<22><>"){
|
||||
obj.val("<22><>");
|
||||
obj.parent().parent().next("tr").remove();
|
||||
}else{
|
||||
var infoArr = $(this).data("rowinf").split("|");
|
||||
// infoArr[0] - <20><><EFBFBD><EFBFBD>
|
||||
// infoArr[1] - <20>ް<EFBFBD><DEB0><EFBFBD><EFBFBD>𱸺<EFBFBD>
|
||||
$.ajax({
|
||||
url: './vac_manage_change_log.asp',
|
||||
data: {
|
||||
'p_no' : infoArr[0],
|
||||
'vac_season' : infoArr[1]
|
||||
},
|
||||
success: function(result){
|
||||
if(result != ""){
|
||||
obj.parent().parent().after("<tr><td colspan='10' align='right'>" + result + "</td></tr>");
|
||||
obj.val("<22><>");
|
||||
}else{
|
||||
alert("Web Service Error !!");
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
<!-- #include virtual = "include/footer.asp" -->
|
||||
37
management/vac_manage_change_log.asp
Normal file
37
management/vac_manage_change_log.asp
Normal file
@@ -0,0 +1,37 @@
|
||||
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
p_no = request("p_no")
|
||||
vac_season = request("vac_season")
|
||||
|
||||
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, vac_change_cnt, vac_change_reason, vac_change_dt "
|
||||
query = query & " FROM project2.dbo.T_VACATION_CUSTOM"
|
||||
query = query & " WHERE vac_change_yn = 'Y'"
|
||||
query = query & " AND p_no = " & p_no & ""
|
||||
query = query & " AND vac_season = '" & vac_season & "'"
|
||||
query = query & " ORDER BY vac_change_dt DESC "
|
||||
|
||||
response.write "<table class='table table-sm table-sm2 table-bordered table-head tr-colors'>"
|
||||
response.write "<tr height='25px'>"
|
||||
response.write " <td align='center' width='15%'><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>"
|
||||
response.write " <td align='center' width='60%'><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></td>"
|
||||
response.write " <td align='center' width='25%'><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>"
|
||||
response.write "</tr>"
|
||||
Adors.Open query, adoConn, 1
|
||||
do while not Adors.eof
|
||||
response.write "<tr>"
|
||||
response.write " <td align='center'>" & Adors("vac_change_cnt") & "</td>"
|
||||
response.write " <td align='center'>" & Adors("vac_change_reason") & "</td>"
|
||||
response.write " <td align='center'>" & Adors("vac_change_dt") & "</td>"
|
||||
response.write "</tr>"
|
||||
Adors.movenext
|
||||
loop
|
||||
Adors.close
|
||||
response.write "</table>"
|
||||
%>
|
||||
28
management/vac_manage_change_ok.asp
Normal file
28
management/vac_manage_change_ok.asp
Normal file
@@ -0,0 +1,28 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
|
||||
p_no = request("p_no")
|
||||
vac_season = request("vac_season")
|
||||
vac_change_cnt = request("vac_change_cnt")
|
||||
vac_change_reason = unescape(request("vac_change_reason"))
|
||||
|
||||
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_VACATION_CUSTOM "
|
||||
query = query & " (p_no, vac_season, vac_change_cnt, vac_change_reason, vac_change_dt, vac_change_yn) VALUES "
|
||||
query = query & " (" & p_no & ", '" & vac_season & "', " & vac_change_cnt & ", '" & replace(vac_change_reason, "'", "''") & "', getdate(), 'Y'); "
|
||||
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query, i
|
||||
dbin.Close
|
||||
if i > 0 Then
|
||||
response.Write "1"
|
||||
else
|
||||
response.Write "0"
|
||||
end if
|
||||
%>
|
||||
174
management/vac_month.asp
Normal file
174
management/vac_month.asp
Normal file
@@ -0,0 +1,174 @@
|
||||
<!-- #include virtual = "include/header.asp" -->
|
||||
<!-- #include virtual = "include/left.asp" -->
|
||||
<%
|
||||
dim cyear
|
||||
cyear = LEFT(cstr(date), 4)
|
||||
if request("cyear") <> "" then
|
||||
cyear = request("cyear")
|
||||
end if
|
||||
|
||||
%>
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<style>
|
||||
#searchDiv{
|
||||
padding: 5px 15px;
|
||||
}
|
||||
#contents{
|
||||
overflow-y: scroll;
|
||||
height: 660px;
|
||||
}
|
||||
#vacMonthTb{
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
margin-top: 15px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
#vacMonthTb th, #vacMonthTb td{
|
||||
text-align:center;
|
||||
border:1px solid #eaeaea;
|
||||
}
|
||||
#vacMonthTb th{
|
||||
padding: 5px;
|
||||
background-color: #cccccc;
|
||||
}
|
||||
</style>
|
||||
<!-- 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">
|
||||
<div id='searchDiv'>
|
||||
<20><><EFBFBD>س<EFBFBD> :
|
||||
<select id='cyear'>
|
||||
<% dim iyear %>
|
||||
<% for iyear = year(now) - 1 To year(now) %>
|
||||
<option value='<%=iyear%>' <%= iif(cint(cyear)=iyear, "selected", "") %>><%=iyear%><3E><></option>
|
||||
<% Next %>
|
||||
</select>
|
||||
</div>
|
||||
<div id='contents'>
|
||||
<table id='vacMonthTb' class="table table-sm table-sm2 table-bordered table-head tr-colors mb-0">
|
||||
<thead>
|
||||
<th><3E>Ի<EFBFBD><D4BB><EFBFBD><EFBFBD><EFBFBD></th>
|
||||
<th><3E><><EFBFBD><EFBFBD></th>
|
||||
<th><3E>Ҽ<EFBFBD></th>
|
||||
<% dim imonth %>
|
||||
<% for imonth = 1 To 12 %>
|
||||
<th><%=imonth%><3E><></th>
|
||||
<% Next %>
|
||||
<th><3E>հ<EFBFBD></th>
|
||||
</thead>
|
||||
<tbody>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.content -->
|
||||
|
||||
<%
|
||||
query = ""
|
||||
query = query & " SELECT P.krc_in_date, J.p_no, P.p_name, ISNULL(P.p_team_name, '') as p_team_name, CONVERT(integer, SUBSTRING(j_date, 6, 2)) AS u_month, ISNULL(sum(CASE WHEN j_contents=8 THEN 1 "
|
||||
query = query & " WHEN j_contents IN (10, 11) THEN 0.5 END), 0) AS u_cnt "
|
||||
query = query & " FROM project2.dbo.V_Job_List J LEFT JOIN V_PERSON P "
|
||||
query = query & " ON J.p_no = P.p_no "
|
||||
query = query & " WHERE j_contents IN (8,10,11) "
|
||||
query = query & " AND j_date LIKE '" & cyear & "%' "
|
||||
query = query & " GROUP BY P.krc_in_date, J.p_no, CONVERT(integer, SUBSTRING(j_date, 6, 2)), P.p_name, P.p_team_name "
|
||||
%>
|
||||
<!-- REQUIRED SCRIPTS -->
|
||||
<script>
|
||||
function uniq(arr, item){
|
||||
var retArr = [];
|
||||
if(Array.isArray(item) == true){
|
||||
retArr = $.unique($.map(arr, function(obj){
|
||||
var tmpArr = [];
|
||||
for(var i=0; i<item.length; i++){
|
||||
tmpArr.push(obj[item[i]]);
|
||||
}
|
||||
return tmpArr.join("|");
|
||||
}).sort());
|
||||
retArr = $.map(retArr, function(obj){
|
||||
var tmpObj = {};
|
||||
var tmpVal = obj.split("|");
|
||||
for(var i=0; i<item.length; i++){
|
||||
tmpObj[item[i]] = tmpVal[i];
|
||||
}
|
||||
return tmpObj;
|
||||
});
|
||||
return retArr;
|
||||
}else{
|
||||
retArr = $.unique($.map(arr, function(obj){ return obj[item]; }).sort());
|
||||
}
|
||||
return retArr;
|
||||
}
|
||||
|
||||
function groupBySum(jsonArr, groupArr, sumArr_opt){
|
||||
var sumArr = sumArr_opt || [];
|
||||
var newJsonArr = uniq(jsonArr, groupArr);
|
||||
$.each(newJsonArr, function(i, obj){
|
||||
$.each(sumArr, function(idx, sumCol){
|
||||
obj[sumCol] = 0;
|
||||
});
|
||||
obj["groupByCount"] = 0;
|
||||
});
|
||||
|
||||
$.each(newJsonArr, function(idx, obj){
|
||||
$.each($.grep(jsonArr, function(o, i){
|
||||
var nStr = "";
|
||||
var pStr = "";
|
||||
$.each(groupArr, function(ix, groupCol){
|
||||
nStr += obj[groupCol] + "|";
|
||||
pStr += o[groupCol] + "|";
|
||||
});
|
||||
return nStr == pStr;
|
||||
}), function(i, o){
|
||||
$.each(sumArr, function(ix, sumCol){
|
||||
obj[sumCol] += +o[sumCol];
|
||||
});
|
||||
obj["groupByCount"]++;
|
||||
});
|
||||
});
|
||||
return newJsonArr;
|
||||
}
|
||||
var vacMonthJsonArr = <%=queryToJson(query)%>;
|
||||
var userJsonArr = groupBySum(vacMonthJsonArr, ["krc_in_date", "p_name", "p_no", "p_team_name"]);
|
||||
$(function(){
|
||||
cutmenu();
|
||||
|
||||
$("#cyear").on("change", function(){
|
||||
location.href='./vac_month.asp?cyear=' + $(this).children("option:selected").val();
|
||||
});
|
||||
|
||||
$.each(userJsonArr, function(idx, obj){
|
||||
var userVacMonth = $.grep(vacMonthJsonArr, function(o, ix){ return o.p_no == obj.p_no });
|
||||
var tmpHTML = "";
|
||||
tmpHTML += "<tr>";
|
||||
tmpHTML += "<td>" + obj.krc_in_date + "</td>";
|
||||
tmpHTML += "<td>" + obj.p_name + "</td>";
|
||||
tmpHTML += "<td>" + obj.p_team_name + "</td>";
|
||||
for(var i=1; i<=12; i++){
|
||||
var tmpUserVacMonth = $.grep(userVacMonth, function(o, ix){ return +o.u_month == i });
|
||||
tmpHTML += tmpUserVacMonth.length > 0 ? "<td>" + tmpUserVacMonth[0].u_cnt + "</td>" : "<td>0</td>";
|
||||
}
|
||||
tmpHTML += "<td>" + groupBySum(userVacMonth, ["p_no"], ["u_cnt"])[0].u_cnt + "</td>";
|
||||
tmpHTML += "</tr>";
|
||||
$("#vacMonthTb > tbody").append(tmpHTML);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
<!-- #include virtual = "include/footer.asp" -->
|
||||
Reference in New Issue
Block a user