20260907 :: 김현정 > 260824 PMS 개선 요청_경영문화본부 1차 반영
This commit is contained in:
@@ -2,6 +2,45 @@
|
||||
<!-- #include virtual = "include/left.asp" -->
|
||||
<%
|
||||
x = "2"
|
||||
|
||||
Dim title()
|
||||
Max_Title = 26
|
||||
Dim sel_type
|
||||
ReDim title(Max_Title, 3)
|
||||
Dim sel_year
|
||||
Dim doc_year_list()
|
||||
sel_year = CStr(Year(Now))
|
||||
If Request("sel_year") <> "" Then
|
||||
sel_year = Request("sel_year")
|
||||
End If
|
||||
query = "select distinct <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> order by <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
Rs.Open query, adoConn, 1
|
||||
ReDim title(Rs.RecordCount, 3)
|
||||
title(0, 1) = "<22><>ü"
|
||||
i = 0
|
||||
Do While Not Rs.EOF
|
||||
i = i + 1
|
||||
title(i, 1) = Rs("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")
|
||||
Rs.MoveNext
|
||||
Loop
|
||||
Rs.Close
|
||||
|
||||
query = "select distinct left(<28>߱<EFBFBD><DFB1><EFBFBD>,4) as <20>߱<EFBFBD><DFB1><EFBFBD> from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> order by left(<28>߱<EFBFBD><DFB1><EFBFBD>,4) desc"
|
||||
Rs.Open query, adoConn, 1
|
||||
ReDim doc_year_list(Rs.RecordCount)
|
||||
i = 0
|
||||
Do While Not Rs.EOF
|
||||
i = i + 1
|
||||
doc_year_list(i) = Rs("<22>߱<EFBFBD><DFB1><EFBFBD>")
|
||||
Rs.MoveNext
|
||||
Loop
|
||||
Rs.Close
|
||||
|
||||
sel_type = Request("sel_type")
|
||||
If Trim(sel_type) = "" Then
|
||||
sel_type = "0"
|
||||
End If
|
||||
p_hotvalue = Request("p_hotvalue")
|
||||
if request("gotopage") <> "" then
|
||||
tmp_currentpage = request("gotopage")
|
||||
else
|
||||
@@ -34,13 +73,65 @@ End Function
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<form name="approval" method="post">
|
||||
<%
|
||||
query = "SELECT * "
|
||||
query = query & "FROM Document a "
|
||||
query = query & " INNER JOIN <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> b on a.d_no = b.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ "
|
||||
query = "SELECT a.*, b.* "
|
||||
query = query & "FROM Document a WITH(NOLOCK) "
|
||||
query = query & " INNER JOIN <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> b WITH(NOLOCK) on a.d_no = b.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ "
|
||||
query = query & " LEFT OUTER JOIN direct_costcode D1 WITH(NOLOCK) ON CONVERT(VARCHAR(5), b.target11) = CONVERT(VARCHAR(5), D1.id) "
|
||||
query = query & " LEFT OUTER JOIN direct_costcode D2 WITH(NOLOCK) ON CONVERT(VARCHAR(5), b.target12) = CONVERT(VARCHAR(5), D2.id) "
|
||||
query = query & "WHERE b.login_p_no <> '" & Session("User_Number") & "' "
|
||||
query = query & " AND a.d_delok = 'N' "
|
||||
query = query & " AND a.d_name <> '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' "
|
||||
If sel_type <> "0" Then
|
||||
query = query & " AND a.d_name = '" & title(sel_type, 1) & "' "
|
||||
Else
|
||||
query = query & " AND a.d_name <> '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' "
|
||||
End If
|
||||
If sel_year <> "all" Then
|
||||
query = query & " AND a.d_no LIKE 'KRC-" & sel_year & "%' "
|
||||
End If
|
||||
If p_hotvalue <> "" Then
|
||||
query = query & " AND ( "
|
||||
query = query & " b.p_sn LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " a.d_write_name LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " D1.d_cost_name LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " D2.d_cost_name LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " a.d_no LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target8 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target9 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target20 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target21 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target22 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target23 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target24 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target25 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target26 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target27 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target28 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target29 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target30 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target31 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target32 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target33 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target34 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target35 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target36 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target37 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target38 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target39 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target40 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target41 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target42 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target43 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target44 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target45 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target46 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target47 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target48 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target49 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target50 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' "
|
||||
query = query & " ) "
|
||||
End If
|
||||
query = query & " AND a.d_order_cnt in ('77') "
|
||||
query = query & " AND (a.d_order1 = '" & Session("User_Number") & "' "
|
||||
for tmp_i = 2 to 4
|
||||
@@ -54,7 +145,31 @@ End Function
|
||||
%>
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td style="padding:5"><EFBFBD><EFBFBD><EFBFBD>ϰ<EFBFBD><EFBFBD><EFBFBD> : <20><> <b class="tahoma_orange"><%=tmp_count%></b><3E><><EFBFBD><EFBFBD> <20><EFBFBD><D7B8><EFBFBD> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>.</td>
|
||||
<td style="padding:5">
|
||||
<09>߱<EFBFBD><DFB1><EFBFBD> :
|
||||
<select name="sel_year" onchange="javascript:subit(0);">
|
||||
<option value="all" <%if sel_year = "all" then %> selected <% end if %>><3E><>ü</option>
|
||||
<%
|
||||
for i=1 To ubound(doc_year_list)
|
||||
%>
|
||||
<option value="<%=doc_year_list(i) %>" <%if doc_year_list(i) = sel_year then %> selected <% end if %>><%=doc_year_list(i) %><3E><></option>
|
||||
<%
|
||||
next
|
||||
%>
|
||||
</select> <20><><EFBFBD>ϰ<EFBFBD><CFB0><EFBFBD> : <20><> <b class="tahoma_orange"><%=formatnumber(tmp_count,0)%></b><3E><><EFBFBD><EFBFBD> <20><EFBFBD><D7B8><EFBFBD> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>.
|
||||
|
||||
<%if tmp_project_chk = "1" OR tmp_admin_chk = "1" then%>
|
||||
<09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
<select name="sel_type" onchange="subit('2')" >
|
||||
<%for i = 0 to ubound(title)%>
|
||||
<OPTION value='<%=i%>' <%if cint(sel_type) = cint(i) then%>selected<%end if%>><% if title(i,1) = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><F1BAB8B0><EFBFBD>" then response.write "<22><><EFBFBD><EFBFBD><EFBFBD>ú<EFBFBD>" else response.Write title(i,1) end if %></option>
|
||||
<%next%>
|
||||
</select>
|
||||
<%end if%>
|
||||
|
||||
<input type="text" name='p_hotvalue' style="width:120;text-align:center;" value="<%=p_hotvalue%>">
|
||||
<img src="/images/common/btn_smallsrch.gif" align="absmiddle" onClick="subit('1')" style="cursor:pointer;"> <b class="tahoma_orange"> <20>ۼ<EFBFBD><DBBC><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ<EFBFBD>, <20>ŷ<EFBFBD>ó, <20><EFBFBD>, <20><><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ, ǰ<>ǹ<EFBFBD><C7B9><EFBFBD><EFBFBD><EFBFBD> <20>˻<EFBFBD> <20><><EFBFBD><EFBFBD></b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
@@ -137,10 +252,11 @@ End Function
|
||||
Rs.Close
|
||||
%>
|
||||
</table>
|
||||
<%=Pagelist("allow_listall.asp",tmp_currentpage ,tmp_bcolor , "", pagecount, "&b_type=" & b_type)%>
|
||||
<%=Pagelist("allow_listall.asp",tmp_currentpage ,tmp_bcolor , "", pagecount, "&b_type=" & b_type & "&sel_type=" & sel_type & "&p_hotvalue=" & p_hotvalue & "&sel_year=" & sel_year)%>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -149,6 +265,11 @@ End Function
|
||||
<!-- /.content -->
|
||||
<!-- REQUIRED SCRIPTS -->
|
||||
<script>
|
||||
function subit(a){
|
||||
document.approval.action = "allow_listall.asp";
|
||||
document.approval.submit();
|
||||
}
|
||||
|
||||
function openit(z,x,c,v,p_sn) {
|
||||
if (z == 'C') {
|
||||
var url = '/ess/doc_infochange_print.asp?d_no=' + x + '&view_chk=' + c + '&x=' + v;
|
||||
|
||||
@@ -88,11 +88,41 @@ end if
|
||||
query = query & " b.p_sn LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " a.d_write_name LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " D1.d_cost_name LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " D1.d_cost_name LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " D2.d_cost_name LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " a.d_no LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target8 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target9 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target20 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' "
|
||||
query = query & " b.target20 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target21 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target22 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target23 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target24 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target25 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target26 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target27 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target28 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target29 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target30 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target31 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target32 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target33 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target34 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target35 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target36 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target37 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target38 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target39 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target40 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target41 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target42 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target43 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target44 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target45 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target46 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target47 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target48 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target49 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target50 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' "
|
||||
query = query & " ) "
|
||||
End If
|
||||
query = query & " ORDER BY a.d_sn DESC "
|
||||
@@ -135,12 +165,12 @@ end if
|
||||
<td width="5%" align="center" height="24" >No.</td>
|
||||
<td align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD>з<EFBFBD></td>
|
||||
<td width="14%" align="center" height="24" ><3E>ŷ<EFBFBD>ó</td>
|
||||
<td width="6%"align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="6%"align="center" height="24" ><3E>ۼ<EFBFBD><DBBC><EFBFBD></td>
|
||||
<td width="8%"align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="8%"align="center" height="24" ><3E>ۼ<EFBFBD><DBBC><EFBFBD></td>
|
||||
<td width="4%"align="center" height="24" ><3E>ۼ<EFBFBD><DBBC><EFBFBD></td>
|
||||
<td width="5%" align="center" height="24" ><3E><>û</td>
|
||||
<%if tmp_admin_chk = "1" then%>
|
||||
<td width="12%" align="center" height="24" ><3E><><EFBFBD>ҿ<EFBFBD><D2BF><EFBFBD></td>
|
||||
<td width="7%" align="center" height="24" ><3E><><EFBFBD>ҿ<EFBFBD><D2BF><EFBFBD></td>
|
||||
<%end if%>
|
||||
</tr>
|
||||
<%
|
||||
|
||||
@@ -15,6 +15,30 @@ dim xd_no : xd_no=replace(replace(replace(replace(request("d_no"),"'",""),"""","
|
||||
dim sql
|
||||
select case xState
|
||||
case "del"
|
||||
Dim deleteRs, deleteTargetExists, deleteTargetCostType
|
||||
Dim deleteErrNumber, deleteErrDescription
|
||||
deleteTargetExists = False
|
||||
deleteTargetCostType = ""
|
||||
|
||||
On Error Resume Next
|
||||
adoConn.BeginTrans
|
||||
|
||||
Set deleteRs = Server.CreateObject("ADODB.Recordset")
|
||||
sql = "SELECT target16 FROM <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> WITH (UPDLOCK, HOLDLOCK) "
|
||||
sql = sql & "WHERE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '" & xd_no & "' AND del_yes_no = 'no' "
|
||||
deleteRs.Open sql, adoConn, adOpenStatic, adLockReadOnly
|
||||
If Err.Number = 0 Then
|
||||
If deleteRs.RecordCount > 0 Then
|
||||
deleteTargetExists = True
|
||||
If Not IsNull(deleteRs("target16")) Then
|
||||
deleteTargetCostType = LCase(Trim(CStr(deleteRs("target16"))))
|
||||
End If
|
||||
End If
|
||||
End If
|
||||
If deleteRs.State = 1 Then deleteRs.Close
|
||||
Set deleteRs = Nothing
|
||||
|
||||
If deleteTargetExists Then
|
||||
sql=""
|
||||
sql=sql&" Declare @start_dt Varchar(10) "&vbCrLf
|
||||
sql=sql&" Declare @end_dt Varchar(10) "&vbCrLf
|
||||
@@ -27,7 +51,8 @@ select case xState
|
||||
sql=sql&" SELECT @start_dt = Convert(varchar(10), target1), @end_dt = Convert(varchar(10), target2), @user_no = Convert(varchar(8), login_p_no) FROM <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> WHERE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>='<27>ް<EFBFBD><DEB0><EFBFBD>' AND <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ= @d_no "&vbCrLf
|
||||
|
||||
sql=sql&" UPDATE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> SET del_yes_no = 'yes' "&vbCrLf
|
||||
sql=sql&" WHERE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ IN (SELECT d_no FROM cost_account WHERE job_prj_id IN (SELECT id FROM Job WHERE j_date BETWEEN @start_dt AND @end_dt AND j_p_no=@user_no AND j_detail_code > '0')) "&vbCrLf
|
||||
'sql=sql&" WHERE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ IN (SELECT d_no FROM cost_account WHERE job_prj_id IN (SELECT id FROM Job WHERE j_date BETWEEN @start_dt AND @end_dt AND j_p_no=@user_no AND j_detail_code > '0')) "&vbCrLf
|
||||
sql=sql&" WHERE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ='"&xd_no&"' "&vbCrLf
|
||||
sql=sql&" UPDATE Document SET d_delok='Y' "&vbCrLf
|
||||
sql=sql&" WHERE d_no IN (SELECT d_no FROM cost_account WHERE job_prj_id IN (SELECT id FROM Job WHERE j_date BETWEEN @start_dt AND @end_dt AND j_p_no=@user_no AND j_detail_code > '0')) "&vbCrLf
|
||||
sql=sql&" DELETE cost_account WHERE job_prj_id IN (SELECT id FROM Job WHERE j_date BETWEEN @start_dt AND @end_dt AND j_p_no=@user_no AND j_detail_code > '0') "&vbCrLf
|
||||
@@ -59,21 +84,21 @@ select case xState
|
||||
sql = sql & " and hangmok = (select CAST(target11 AS varchar(100)) from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"') "&VbCrlf
|
||||
sql = sql & " and sebu = (select d_cost_name from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 AS varchar(100)) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"') "&VbCrlf
|
||||
sql = sql & " and cost_type = (select CAST(target16 AS varchar(100)) from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"') "&VbCrlf
|
||||
sql = sql & " ) - (select CAST(CAST(target5 AS varchar(100)) AS INT) from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"'), "&VbCrlf
|
||||
sql = sql & " ) - (select CONVERT(money, REPLACE(CONVERT(varchar(100), target5), ',', '')) from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"'), "&VbCrlf
|
||||
sql = sql & " cha_money = "&VbCrlf
|
||||
sql = sql & " ( "&VbCrlf
|
||||
sql = sql & " select cha_money from direct_cost where del_yes_no = 'no' and p_child_sn = (select CAST(target10 AS varchar(100)) from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"') "&VbCrlf
|
||||
sql = sql & " and hangmok = (select CAST(target11 AS varchar(100)) from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"') "&VbCrlf
|
||||
sql = sql & " and sebu = (select d_cost_name from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 AS varchar(100)) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"') "&VbCrlf
|
||||
sql = sql & " and cost_type = (select CAST(target16 AS varchar(100)) from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"') "&VbCrlf
|
||||
sql = sql & " ) - (select CAST(CAST(target5 AS varchar(100)) AS INT) from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"') "&VbCrlf
|
||||
sql = sql & " ) - (select CONVERT(money, REPLACE(CONVERT(varchar(100), target5), ',', '')) from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"') "&VbCrlf
|
||||
sql = sql & " where del_yes_no = 'no' and p_child_sn = (select CAST(target10 AS varchar(100)) from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"') "&VbCrlf
|
||||
sql = sql & " and hangmok = (select CAST(target11 AS varchar(100)) from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"') "&VbCrlf
|
||||
sql = sql & " and sebu = (select d_cost_name from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 AS varchar(100)) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"') "&VbCrlf
|
||||
sql = sql & " and cost_type = (select CAST(target16 AS varchar(100)) from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"') "&VbCrlf
|
||||
adoconn.execute sql
|
||||
End If
|
||||
If UCASE(Mid(xd_no, 10, 1)) = "A" Then
|
||||
If UCASE(Mid(xd_no, 10, 1)) = "A" And deleteTargetCostType <> "" And deleteTargetCostType <> "common" Then
|
||||
sql = " "
|
||||
sql = sql & " update direct_cost "
|
||||
sql = sql & " set direct_cost.act_money = convert(money, direct_cost.act_money) - B.cost, direct_cost.cha_money = convert(money, direct_cost.cha_money) - B.cost "
|
||||
@@ -83,218 +108,237 @@ select case xState
|
||||
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
|
||||
sql = sql & " from "
|
||||
sql = sql & " ( select CAST(dbo.split(dbo.split(target21, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
|
||||
sql = sql & " CAST(replace(dbo.split(target21, '^//^', 2), ',', '') as int) as cost, "
|
||||
sql = sql & " CAST(replace(dbo.split(target21, '^//^', 2), ',', '') as money) as cost, "
|
||||
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
|
||||
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu and B.cost_type = '" & deleteTargetCostType & "' where B.del_yes_no='no' union all "
|
||||
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
|
||||
sql = sql & " from "
|
||||
sql = sql & " ( select CAST(dbo.split(dbo.split(target22, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
|
||||
sql = sql & " CAST(replace(dbo.split(target22, '^//^', 2), ',', '') as int) as cost, "
|
||||
sql = sql & " CAST(replace(dbo.split(target22, '^//^', 2), ',', '') as money) as cost, "
|
||||
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
|
||||
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu and B.cost_type = '" & deleteTargetCostType & "' where B.del_yes_no='no' union all "
|
||||
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
|
||||
sql = sql & " from "
|
||||
sql = sql & " ( select CAST(dbo.split(dbo.split(target23, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
|
||||
sql = sql & " CAST(replace(dbo.split(target23, '^//^', 2), ',', '') as int) as cost, "
|
||||
sql = sql & " CAST(replace(dbo.split(target23, '^//^', 2), ',', '') as money) as cost, "
|
||||
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
|
||||
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu and B.cost_type = '" & deleteTargetCostType & "' where B.del_yes_no='no' union all "
|
||||
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
|
||||
sql = sql & " from "
|
||||
sql = sql & " ( select CAST(dbo.split(dbo.split(target24, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
|
||||
sql = sql & " CAST(replace(dbo.split(target24, '^//^', 2), ',', '') as int) as cost, "
|
||||
sql = sql & " CAST(replace(dbo.split(target24, '^//^', 2), ',', '') as money) as cost, "
|
||||
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
|
||||
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu and B.cost_type = '" & deleteTargetCostType & "' where B.del_yes_no='no' union all "
|
||||
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
|
||||
sql = sql & " from "
|
||||
sql = sql & " ( select CAST(dbo.split(dbo.split(target25, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
|
||||
sql = sql & " CAST(replace(dbo.split(target25, '^//^', 2), ',', '') as int) as cost, "
|
||||
sql = sql & " CAST(replace(dbo.split(target25, '^//^', 2), ',', '') as money) as cost, "
|
||||
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
|
||||
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu and B.cost_type = '" & deleteTargetCostType & "' where B.del_yes_no='no' union all "
|
||||
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
|
||||
sql = sql & " from "
|
||||
sql = sql & " ( select CAST(dbo.split(dbo.split(target26, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
|
||||
sql = sql & " CAST(replace(dbo.split(target26, '^//^', 2), ',', '') as int) as cost, "
|
||||
sql = sql & " CAST(replace(dbo.split(target26, '^//^', 2), ',', '') as money) as cost, "
|
||||
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
|
||||
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu and B.cost_type = '" & deleteTargetCostType & "' where B.del_yes_no='no' union all "
|
||||
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
|
||||
sql = sql & " from "
|
||||
sql = sql & " ( select CAST(dbo.split(dbo.split(target27, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
|
||||
sql = sql & " CAST(replace(dbo.split(target27, '^//^', 2), ',', '') as int) as cost, "
|
||||
sql = sql & " CAST(replace(dbo.split(target27, '^//^', 2), ',', '') as money) as cost, "
|
||||
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
|
||||
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu and B.cost_type = '" & deleteTargetCostType & "' where B.del_yes_no='no' union all "
|
||||
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
|
||||
sql = sql & " from "
|
||||
sql = sql & " ( select CAST(dbo.split(dbo.split(target28, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
|
||||
sql = sql & " CAST(replace(dbo.split(target28, '^//^', 2), ',', '') as int) as cost, "
|
||||
sql = sql & " CAST(replace(dbo.split(target28, '^//^', 2), ',', '') as money) as cost, "
|
||||
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
|
||||
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu and B.cost_type = '" & deleteTargetCostType & "' where B.del_yes_no='no' union all "
|
||||
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
|
||||
sql = sql & " from "
|
||||
sql = sql & " ( select CAST(dbo.split(dbo.split(target29, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
|
||||
sql = sql & " CAST(replace(dbo.split(target29, '^//^', 2), ',', '') as int) as cost, "
|
||||
sql = sql & " CAST(replace(dbo.split(target29, '^//^', 2), ',', '') as money) as cost, "
|
||||
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
|
||||
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu and B.cost_type = '" & deleteTargetCostType & "' where B.del_yes_no='no' union all "
|
||||
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
|
||||
sql = sql & " from "
|
||||
sql = sql & " ( select CAST(dbo.split(dbo.split(target30, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
|
||||
sql = sql & " CAST(replace(dbo.split(target30, '^//^', 2), ',', '') as int) as cost, "
|
||||
sql = sql & " CAST(replace(dbo.split(target30, '^//^', 2), ',', '') as money) as cost, "
|
||||
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
|
||||
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu and B.cost_type = '" & deleteTargetCostType & "' where B.del_yes_no='no' union all "
|
||||
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
|
||||
sql = sql & " from "
|
||||
sql = sql & " ( select CAST(dbo.split(dbo.split(target31, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
|
||||
sql = sql & " CAST(replace(dbo.split(target31, '^//^', 2), ',', '') as int) as cost, "
|
||||
sql = sql & " CAST(replace(dbo.split(target31, '^//^', 2), ',', '') as money) as cost, "
|
||||
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
|
||||
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu and B.cost_type = '" & deleteTargetCostType & "' where B.del_yes_no='no' union all "
|
||||
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
|
||||
sql = sql & " from "
|
||||
sql = sql & " ( select CAST(dbo.split(dbo.split(target32, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
|
||||
sql = sql & " CAST(replace(dbo.split(target32, '^//^', 2), ',', '') as int) as cost, "
|
||||
sql = sql & " CAST(replace(dbo.split(target32, '^//^', 2), ',', '') as money) as cost, "
|
||||
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
|
||||
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu and B.cost_type = '" & deleteTargetCostType & "' where B.del_yes_no='no' union all "
|
||||
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
|
||||
sql = sql & " from "
|
||||
sql = sql & " ( select CAST(dbo.split(dbo.split(target33, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
|
||||
sql = sql & " CAST(replace(dbo.split(target33, '^//^', 2), ',', '') as int) as cost, "
|
||||
sql = sql & " CAST(replace(dbo.split(target33, '^//^', 2), ',', '') as money) as cost, "
|
||||
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
|
||||
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu and B.cost_type = '" & deleteTargetCostType & "' where B.del_yes_no='no' union all "
|
||||
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
|
||||
sql = sql & " from "
|
||||
sql = sql & " ( select CAST(dbo.split(dbo.split(target34, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
|
||||
sql = sql & " CAST(replace(dbo.split(target34, '^//^', 2), ',', '') as int) as cost, "
|
||||
sql = sql & " CAST(replace(dbo.split(target34, '^//^', 2), ',', '') as money) as cost, "
|
||||
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
|
||||
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu and B.cost_type = '" & deleteTargetCostType & "' where B.del_yes_no='no' union all "
|
||||
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
|
||||
sql = sql & " from "
|
||||
sql = sql & " ( select CAST(dbo.split(dbo.split(target35, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
|
||||
sql = sql & " CAST(replace(dbo.split(target35, '^//^', 2), ',', '') as int) as cost, "
|
||||
sql = sql & " CAST(replace(dbo.split(target35, '^//^', 2), ',', '') as money) as cost, "
|
||||
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
|
||||
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu and B.cost_type = '" & deleteTargetCostType & "' where B.del_yes_no='no' union all "
|
||||
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
|
||||
sql = sql & " from "
|
||||
sql = sql & " ( select CAST(dbo.split(dbo.split(target36, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
|
||||
sql = sql & " CAST(replace(dbo.split(target36, '^//^', 2), ',', '') as int) as cost, "
|
||||
sql = sql & " CAST(replace(dbo.split(target36, '^//^', 2), ',', '') as money) as cost, "
|
||||
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
|
||||
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu and B.cost_type = '" & deleteTargetCostType & "' where B.del_yes_no='no' union all "
|
||||
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
|
||||
sql = sql & " from "
|
||||
sql = sql & " ( select CAST(dbo.split(dbo.split(target37, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
|
||||
sql = sql & " CAST(replace(dbo.split(target37, '^//^', 2), ',', '') as int) as cost, "
|
||||
sql = sql & " CAST(replace(dbo.split(target37, '^//^', 2), ',', '') as money) as cost, "
|
||||
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
|
||||
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu and B.cost_type = '" & deleteTargetCostType & "' where B.del_yes_no='no' union all "
|
||||
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
|
||||
sql = sql & " from "
|
||||
sql = sql & " ( select CAST(dbo.split(dbo.split(target38, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
|
||||
sql = sql & " CAST(replace(dbo.split(target38, '^//^', 2), ',', '') as int) as cost, "
|
||||
sql = sql & " CAST(replace(dbo.split(target38, '^//^', 2), ',', '') as money) as cost, "
|
||||
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
|
||||
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu and B.cost_type = '" & deleteTargetCostType & "' where B.del_yes_no='no' union all "
|
||||
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
|
||||
sql = sql & " from "
|
||||
sql = sql & " ( select CAST(dbo.split(dbo.split(target39, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
|
||||
sql = sql & " CAST(replace(dbo.split(target39, '^//^', 2), ',', '') as int) as cost, "
|
||||
sql = sql & " CAST(replace(dbo.split(target39, '^//^', 2), ',', '') as money) as cost, "
|
||||
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
|
||||
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu and B.cost_type = '" & deleteTargetCostType & "' where B.del_yes_no='no' union all "
|
||||
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
|
||||
sql = sql & " from "
|
||||
sql = sql & " ( select CAST(dbo.split(dbo.split(target40, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
|
||||
sql = sql & " CAST(replace(dbo.split(target40, '^//^', 2), ',', '') as int) as cost, "
|
||||
sql = sql & " CAST(replace(dbo.split(target40, '^//^', 2), ',', '') as money) as cost, "
|
||||
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
|
||||
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu and B.cost_type = '" & deleteTargetCostType & "' where B.del_yes_no='no' union all "
|
||||
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
|
||||
sql = sql & " from "
|
||||
sql = sql & " ( select CAST(dbo.split(dbo.split(target41, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
|
||||
sql = sql & " CAST(replace(dbo.split(target41, '^//^', 2), ',', '') as int) as cost, "
|
||||
sql = sql & " CAST(replace(dbo.split(target41, '^//^', 2), ',', '') as money) as cost, "
|
||||
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
|
||||
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu and B.cost_type = '" & deleteTargetCostType & "' where B.del_yes_no='no' union all "
|
||||
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
|
||||
sql = sql & " from "
|
||||
sql = sql & " ( select CAST(dbo.split(dbo.split(target42, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
|
||||
sql = sql & " CAST(replace(dbo.split(target42, '^//^', 2), ',', '') as int) as cost, "
|
||||
sql = sql & " CAST(replace(dbo.split(target42, '^//^', 2), ',', '') as money) as cost, "
|
||||
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
|
||||
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu and B.cost_type = '" & deleteTargetCostType & "' where B.del_yes_no='no' union all "
|
||||
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
|
||||
sql = sql & " from "
|
||||
sql = sql & " ( select CAST(dbo.split(dbo.split(target43, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
|
||||
sql = sql & " CAST(replace(dbo.split(target43, '^//^', 2), ',', '') as int) as cost, "
|
||||
sql = sql & " CAST(replace(dbo.split(target43, '^//^', 2), ',', '') as money) as cost, "
|
||||
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
|
||||
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu and B.cost_type = '" & deleteTargetCostType & "' where B.del_yes_no='no' union all "
|
||||
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
|
||||
sql = sql & " from "
|
||||
sql = sql & " ( select CAST(dbo.split(dbo.split(target44, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
|
||||
sql = sql & " CAST(replace(dbo.split(target44, '^//^', 2), ',', '') as int) as cost, "
|
||||
sql = sql & " CAST(replace(dbo.split(target44, '^//^', 2), ',', '') as money) as cost, "
|
||||
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
|
||||
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu and B.cost_type = '" & deleteTargetCostType & "' where B.del_yes_no='no' union all "
|
||||
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
|
||||
sql = sql & " from "
|
||||
sql = sql & " ( select CAST(dbo.split(dbo.split(target45, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
|
||||
sql = sql & " CAST(replace(dbo.split(target45, '^//^', 2), ',', '') as int) as cost, "
|
||||
sql = sql & " CAST(replace(dbo.split(target45, '^//^', 2), ',', '') as money) as cost, "
|
||||
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
|
||||
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu and B.cost_type = '" & deleteTargetCostType & "' where B.del_yes_no='no' union all "
|
||||
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
|
||||
sql = sql & " from "
|
||||
sql = sql & " ( select CAST(dbo.split(dbo.split(target46, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
|
||||
sql = sql & " CAST(replace(dbo.split(target46, '^//^', 2), ',', '') as int) as cost, "
|
||||
sql = sql & " CAST(replace(dbo.split(target46, '^//^', 2), ',', '') as money) as cost, "
|
||||
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
|
||||
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu and B.cost_type = '" & deleteTargetCostType & "' where B.del_yes_no='no' union all "
|
||||
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
|
||||
sql = sql & " from "
|
||||
sql = sql & " ( select CAST(dbo.split(dbo.split(target47, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
|
||||
sql = sql & " CAST(replace(dbo.split(target47, '^//^', 2), ',', '') as int) as cost, "
|
||||
sql = sql & " CAST(replace(dbo.split(target47, '^//^', 2), ',', '') as money) as cost, "
|
||||
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
|
||||
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu and B.cost_type = '" & deleteTargetCostType & "' where B.del_yes_no='no' union all "
|
||||
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
|
||||
sql = sql & " from "
|
||||
sql = sql & " ( select CAST(dbo.split(dbo.split(target48, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
|
||||
sql = sql & " CAST(replace(dbo.split(target48, '^//^', 2), ',', '') as int) as cost, "
|
||||
sql = sql & " CAST(replace(dbo.split(target48, '^//^', 2), ',', '') as money) as cost, "
|
||||
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
|
||||
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu and B.cost_type = '" & deleteTargetCostType & "' where B.del_yes_no='no' union all "
|
||||
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
|
||||
sql = sql & " from "
|
||||
sql = sql & " ( select CAST(dbo.split(dbo.split(target49, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
|
||||
sql = sql & " CAST(replace(dbo.split(target49, '^//^', 2), ',', '') as int) as cost, "
|
||||
sql = sql & " CAST(replace(dbo.split(target49, '^//^', 2), ',', '') as money) as cost, "
|
||||
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
|
||||
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu and B.cost_type = '" & deleteTargetCostType & "' where B.del_yes_no='no' union all "
|
||||
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
|
||||
sql = sql & " from "
|
||||
sql = sql & " ( select CAST(dbo.split(dbo.split(target50, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
|
||||
sql = sql & " CAST(replace(dbo.split(target50, '^//^', 2), ',', '') as int) as cost, "
|
||||
sql = sql & " CAST(replace(dbo.split(target50, '^//^', 2), ',', '') as money) as cost, "
|
||||
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
|
||||
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu and B.cost_type = '" & deleteTargetCostType & "' where B.del_yes_no='no' "
|
||||
sql = sql & " ) M group by p_child_sn, hangmok, sebu "
|
||||
sql = sql & " ) B "
|
||||
sql = sql & " where direct_cost.p_child_sn = B.p_child_sn and direct_cost.hangmok = B.hangmok and direct_cost.sebu = B.sebu and direct_cost.del_yes_no = 'no' "
|
||||
sql = sql & " where direct_cost.p_child_sn = B.p_child_sn and direct_cost.hangmok = B.hangmok and direct_cost.sebu = B.sebu and direct_cost.cost_type = '" & deleteTargetCostType & "' and direct_cost.del_yes_no = 'no' "
|
||||
adoconn.execute sql
|
||||
End If
|
||||
End If
|
||||
|
||||
deleteErrNumber = Err.Number
|
||||
deleteErrDescription = Err.Description
|
||||
If deleteErrNumber <> 0 Then
|
||||
Err.Clear
|
||||
adoConn.RollbackTrans
|
||||
Else
|
||||
Err.Clear
|
||||
adoConn.CommitTrans
|
||||
deleteErrNumber = Err.Number
|
||||
deleteErrDescription = Err.Description
|
||||
End If
|
||||
On Error GoTo 0
|
||||
|
||||
If deleteErrNumber <> 0 Then
|
||||
Response.Write "<script>alert('<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> ó<><C3B3> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><EFBFBD><DFBB>߽<EFBFBD><DFBD>ϴ<EFBFBD>.');history.back();</script>"
|
||||
Response.End
|
||||
End If
|
||||
end select
|
||||
'@@@@@ <20><><EFBFBD><EFBFBD>ó<EFBFBD><C3B3> <20><> @@@@@@@@@@@
|
||||
|
||||
@@ -303,6 +347,45 @@ if x = "99" then
|
||||
x = "3"
|
||||
end if
|
||||
|
||||
dim title()
|
||||
Max_Title = 26
|
||||
dim sel_type
|
||||
redim title(Max_Title, 3)
|
||||
dim sel_year
|
||||
dim doc_year_list()
|
||||
sel_year = cstr(year(now))
|
||||
if request("sel_year") <> "" then
|
||||
sel_year = request("sel_year")
|
||||
end if
|
||||
query = "select distinct <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> order by <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
Rs.Open query, adoConn, 1
|
||||
redim title(Rs.recordcount, 3)
|
||||
title(0, 1) = "<22><>ü"
|
||||
i=0
|
||||
do while not Rs.eof
|
||||
i = i + 1
|
||||
title(i , 1) = Rs("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")
|
||||
Rs.movenext
|
||||
loop
|
||||
Rs.close
|
||||
|
||||
query = "select distinct left(<28>߱<EFBFBD><DFB1><EFBFBD>,4) as <20>߱<EFBFBD><DFB1><EFBFBD> from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> order by left(<28>߱<EFBFBD><DFB1><EFBFBD>,4) desc"
|
||||
Rs.Open query, adoConn, 1
|
||||
redim doc_year_list(Rs.recordCount)
|
||||
i=0
|
||||
do while not Rs.eof
|
||||
i = i + 1
|
||||
doc_year_list(i) = Rs("<22>߱<EFBFBD><DFB1><EFBFBD>")
|
||||
Rs.movenext
|
||||
loop
|
||||
Rs.close
|
||||
|
||||
sel_type = request("sel_type")
|
||||
if trim(sel_type) = "" then
|
||||
sel_type = "0"
|
||||
end if
|
||||
p_hotvalue = request("p_hotvalue")
|
||||
|
||||
if request("gotopage") <> "" then
|
||||
tmp_currentpage = request("gotopage")
|
||||
else
|
||||
@@ -349,9 +432,11 @@ end if
|
||||
<form name="ess" method="post">
|
||||
<input type="hidden" name="toState" value="" ><!-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> -->
|
||||
<%
|
||||
query = " SELECT * "
|
||||
query = " SELECT a.*, b.* "
|
||||
query = query & " FROM Document a WITH(NOLOCK) "
|
||||
query = query & " INNER JOIN <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> b WITH(NOLOCK) on a.d_no = b.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ "
|
||||
query = query & " LEFT OUTER JOIN direct_costcode D1 WITH(NOLOCK) ON CONVERT(VARCHAR(5), b.target11) = CONVERT(VARCHAR(5), D1.id) "
|
||||
query = query & " LEFT OUTER JOIN direct_costcode D2 WITH(NOLOCK) ON CONVERT(VARCHAR(5), b.target12) = CONVERT(VARCHAR(5), D2.id) "
|
||||
if x <> "4" then '<27>ݷ<EFBFBD><DDB7><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ۼ<EFBFBD><DBBC>ڸ<EFBFBD> <20>ȵ<EFBFBD><C8B5><EFBFBD><EFBFBD><EFBFBD>.
|
||||
query = query & "WHERE b.login_p_no = '" & Session("User_Number") & "' "
|
||||
else
|
||||
@@ -372,7 +457,56 @@ end if
|
||||
query = query & " AND b.del_yes_no = 'yes' "
|
||||
end if
|
||||
query = query & " AND a.d_view = 'Y' "
|
||||
query = query & " AND b.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <> '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' AND b.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <> '<27>μ<EFBFBD><CEBC><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD><C3BB>' AND b.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <> '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><F1BAB8B0><EFBFBD>' "
|
||||
If sel_type <> "0" Then
|
||||
query = query & " AND a.d_name = '" & title(sel_type, 1) & "' "
|
||||
Else
|
||||
query = query & " AND b.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <> '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' AND b.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <> '<27>μ<EFBFBD><CEBC><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD><C3BB>' AND b.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <> '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><F1BAB8B0><EFBFBD>' "
|
||||
End If
|
||||
If sel_year <> "all" Then
|
||||
query = query & " AND a.d_no LIKE 'KRC-" & sel_year & "%' "
|
||||
End If
|
||||
If p_hotvalue <> "" Then
|
||||
query = query & " AND ( "
|
||||
query = query & " b.p_sn LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " a.d_write_name LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " D1.d_cost_name LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " D2.d_cost_name LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " a.d_no LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target8 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target9 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target20 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target21 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target22 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target23 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target24 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target25 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target26 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target27 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target28 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target29 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target30 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target31 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target32 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target33 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target34 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target35 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target36 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target37 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target38 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target39 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target40 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target41 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target42 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target43 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target44 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target45 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target46 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target47 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target48 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target49 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target50 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' "
|
||||
query = query & " ) "
|
||||
End If
|
||||
query = query & "ORDER BY a.d_sn DESC "
|
||||
|
||||
Rs.Open query, adoConn, 1
|
||||
@@ -381,7 +515,31 @@ end if
|
||||
<font color=red><%=xadmin_print%></font>
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td style="padding:5"><EFBFBD><EFBFBD><EFBFBD>ϰ<EFBFBD><EFBFBD><EFBFBD> : <20><> <b class="tahoma_orange"><%=tmp_count%></b><3E><><EFBFBD><EFBFBD> <20><EFBFBD><D7B8><EFBFBD> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>.</td>
|
||||
<td style="padding:5">
|
||||
<09>߱<EFBFBD><DFB1><EFBFBD> :
|
||||
<select name="sel_year" onchange="javascript:subit(0);">
|
||||
<option value="all" <%if sel_year = "all" then %> selected <% end if %>><3E><>ü</option>
|
||||
<%
|
||||
for i=1 To ubound(doc_year_list)
|
||||
%>
|
||||
<option value="<%=doc_year_list(i) %>" <%if doc_year_list(i) = sel_year then %> selected <% end if %>><%=doc_year_list(i) %><3E><></option>
|
||||
<%
|
||||
next
|
||||
%>
|
||||
</select> <20><><EFBFBD>ϰ<EFBFBD><CFB0><EFBFBD> : <20><> <b class="tahoma_orange"><%=formatnumber(tmp_count,0)%></b><3E><><EFBFBD><EFBFBD> <20><EFBFBD><D7B8><EFBFBD> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>.
|
||||
|
||||
<%if tmp_project_chk = "1" OR tmp_admin_chk = "1" then%>
|
||||
<09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
<select name="sel_type" onchange="subit('2')" >
|
||||
<%for i = 0 to ubound(title)%>
|
||||
<OPTION value='<%=i%>' <%if cint(sel_type) = cint(i) then%>selected<%end if%>><% if title(i,1) = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><F1BAB8B0><EFBFBD>" then response.write "<22><><EFBFBD><EFBFBD><EFBFBD>ú<EFBFBD>" else response.Write title(i,1) end if %></option>
|
||||
<%next%>
|
||||
</select>
|
||||
<%end if%>
|
||||
|
||||
<input type="text" name='p_hotvalue' style="width:120;text-align:center;" value="<%=p_hotvalue%>">
|
||||
<img src="/images/common/btn_smallsrch.gif" align="absmiddle" onClick="subit('1')" style="cursor:pointer;"> <b class="tahoma_orange"> <20>ۼ<EFBFBD><DBBC><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ<EFBFBD>, <20>ŷ<EFBFBD>ó, <20><EFBFBD>, <20><><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ, ǰ<>ǹ<EFBFBD><C7B9><EFBFBD><EFBFBD><EFBFBD> <20>˻<EFBFBD> <20><><EFBFBD><EFBFBD></b>
|
||||
</td>
|
||||
</tr>
|
||||
<%If x="1" Then %>
|
||||
<tr>
|
||||
@@ -397,6 +555,7 @@ end if
|
||||
<td align="center" height="24" ><3E>ŷ<EFBFBD>ó</td>
|
||||
<td align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center" height="24" ><3E>ۼ<EFBFBD><DBBC><EFBFBD></td>
|
||||
<td width="4%" align="center" height="24" ><3E>ۼ<EFBFBD><DBBC><EFBFBD></td>
|
||||
<td width="10%" align="center" height="24" >ó<><C3B3></td>
|
||||
<td width="5%" align="center" height="24" ><3E><>û</td>
|
||||
<td width="10%" align="center" height="24" ><3E>μ<CEBC><E2BFA9></td>
|
||||
@@ -466,13 +625,7 @@ end if
|
||||
tmp_flag = "t2"
|
||||
end If
|
||||
|
||||
if (tmp_admin_chk = "1" OR Session("loginuser") = "<22>翵<EFBFBD><E7BFB5>") AND Rs("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǽ<EFBFBD>" then
|
||||
tmp_value = " - " & FormatNumber(Replace(Rs("target5"), ",", ""), 0)
|
||||
elseif (tmp_admin_chk = "1" OR Session("loginuser") = "<22>翵<EFBFBD><E7BFB5>") AND Rs("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>") = "ǰ<>Ǽ<EFBFBD>" then
|
||||
tmp_value = " - " & FormatNumber(Replace(Rs("target5"), ",", ""), 0) & " [" & LEFT(Rs("target9"),20) & "]"
|
||||
else
|
||||
tmp_value = ""
|
||||
end if
|
||||
tmp_value = ""
|
||||
if not (isnull(Rs("p_sn")) or trim(Rs("p_sn")) = "") or right(Rs("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"), 7) = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǽ<EFBFBD>" then
|
||||
tmp_value = tmp_value & " <20><>("
|
||||
if right(Rs("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"), 7) = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǽ<EFBFBD>" then
|
||||
@@ -574,6 +727,7 @@ end if
|
||||
<% end if%>
|
||||
</td>
|
||||
<td align="center" height="24" ><%=Rs("d_write_date")%></td>
|
||||
<td align="center" height="24" class="k_darkorange"><%=Rs("login_<6E≯<EFBFBD>")%></td>
|
||||
<td align="center" height="24" class="k_darkorange"><%=tmp_txt%></td>
|
||||
<% if x <> 99 and x = 1 and (Rs("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>") <> "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǽ<EFBFBD>" or (Rs("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǽ<EFBFBD>" and Rs("target20") = "") ) then%>
|
||||
<td align="center" height="24">
|
||||
@@ -705,6 +859,11 @@ end if
|
||||
document.ess.submit();
|
||||
}
|
||||
}
|
||||
|
||||
function subit(a){
|
||||
document.ess.action = "mainpage_2014.asp?x=<%=x%>";
|
||||
document.ess.submit();
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
|
||||
@@ -168,7 +168,7 @@ If Session("N_depart") = "R" AND Session("N_team") = "605" Then '605:
|
||||
End If
|
||||
|
||||
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> üũ
|
||||
if replace(replace(Request.ServerVariables("REMOTE_ADDR"), "10.10.20.", "10.10.13."), "10.10.17.", "10.10.13.") = session("admin_ip") then
|
||||
if replace(replace(Request.ServerVariables("REMOTE_ADDR"), "10.10.20.", "10.10.13."), "10.10.17.", "10.10.13.") = session("admin_ip") or cstr(Session("User_Number")) = cstr(tmp_ess(3, 5)) then
|
||||
tmp_admin_chk = "1"
|
||||
else
|
||||
tmp_admin_chk = "0"
|
||||
|
||||
@@ -3,17 +3,7 @@
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<style>
|
||||
.file_btn input[type="file"]{
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
padding: 0;
|
||||
margin: -1px;
|
||||
overflow: hidden;
|
||||
clip:rect(0,0,0,0);
|
||||
border: 0;
|
||||
}
|
||||
|
||||
|
||||
td{
|
||||
text-align:center;
|
||||
vertical-align:middle;
|
||||
@@ -29,7 +19,7 @@
|
||||
<!-- /.content-header -->
|
||||
<!-- Main content -->
|
||||
<div class="content-body">
|
||||
<div class="content">
|
||||
<div class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
@@ -48,101 +38,18 @@
|
||||
<td>
|
||||
<table class="information_p table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td rowspan="5" style='width:120px;'>
|
||||
<input type='file' name='img_up' id='img_up' accept="image/jpeg" style="display:none"/>
|
||||
<div class="file_btn" style='display:inline;'>
|
||||
<img src='/images/management/img_up.png' id="p_img" style='width:100%;cursor:pointer;' title="<22>̹<EFBFBD><CCB9><EFBFBD> <20><><EFBFBD>ε<EFBFBD>(click)" onclick="document.all.img_up.click();">
|
||||
</div>
|
||||
</td>
|
||||
<td colspan="4" ><b style="font-size:24px;"><3E><> <20><> <20><> <20><> ī <20><></b> (<28><><EFBFBD>ܺ<EFBFBD>)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ><3E><><EFBFBD><EFBFBD>(<28>ѱ<EFBFBD>)</td>
|
||||
<td class="nocenter">
|
||||
<td width="120px" style="text-align:center;vertical-align:middle;"><3E><><EFBFBD><EFBFBD>(<28>ѱ<EFBFBD>)</td>
|
||||
<td class="nocenter" colspan="3">
|
||||
<input type="text" name="p_name" id="p_name" value="" />
|
||||
<img src="/images/common/btn_smallsrch2.gif" id="p_search" align="absmiddle" style="CURSOR:pointer;"/>
|
||||
</td>
|
||||
<td ><3E><><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD>)</td>
|
||||
<td class="nocenter">
|
||||
<input type="text" name ="p_name_eng" id="p_name_eng" value="" >
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ><3E>ֹι<D6B9>ȣ</td>
|
||||
<td class="nocenter">
|
||||
<input type="number" name = 'p_jumin1' id="p_jumin1" value="" style="width:80px;" > -
|
||||
<input type="password" name = 'p_jumin2' id="p_jumin2" value="" style="width:80px;" >
|
||||
<input type="hidden" name="jumin_ok" id="jumin_ok" value="1" />
|
||||
<button type="button" name="jumin_chk" id="jumin_chk" class="btn btn-sm btn-secondary"><3E><><EFBFBD><EFBFBD></button>
|
||||
</td>
|
||||
<td ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td> <img src="" />
|
||||
<td class="nocenter">
|
||||
<input type="text" class="date_picker" name="p_birthday" id="p_birthday" value="" style="width:150px" />
|
||||
<input type="radio" class="none" name = 'p_sun_moon' value='<27><>' > <20><><EFBFBD><EFBFBD>
|
||||
<input type="radio" class="none" name = 'p_sun_moon' value='<27><>' > <20><><EFBFBD><EFBFBD>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ><3E><>ȥ<EFBFBD><C8A5><EFBFBD><EFBFBD></td>
|
||||
<td class="nocenter">
|
||||
<input type="radio" class="none" name = 'p_marriage' value='<27><>ȥ' > <20><>ȥ
|
||||
<input type="radio" class="none" name = 'p_marriage' value='<27><>ȥ' > <20><>ȥ
|
||||
</td>
|
||||
<td ><3E><>ȥ<EFBFBD><C8A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td class="nocenter">
|
||||
<input type="text" class="date_picker" name="p_marriage_date" id="p_marriage_date" value="" style="width:150px;" readonly="readonly" >
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȭ</td>
|
||||
<td class="nocenter">
|
||||
<input type="text" name ='p_tel1' value="" style="width:50px" > -
|
||||
<input type="text" name ='p_tel2' value="" style="width:50px" > -
|
||||
<input type="text" name ='p_tel3' value="" style="width:50px" >
|
||||
</td>
|
||||
<td ><3E><EFBFBD><DEB4><EFBFBD>ȭ</td>
|
||||
<td class="nocenter">
|
||||
<input type="text" name ='p_move_tel1' value="" style="width:50px" > -
|
||||
<input type="text" name ='p_move_tel2' value="" style="width:50px" > -
|
||||
<input type="text" name ='p_move_tel3' value="" style="width:50px" >
|
||||
</td>
|
||||
</tr>
|
||||
</table><br>
|
||||
<table class="address table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td width="120px" rowspan="6" ><3E>ּ<EFBFBD></td>
|
||||
<td width="120px" rowspan="2" ><3E><><EFBFBD><EFBFBD><br>(<28>ֹε<D6B9><CEB5>ϻ<EFBFBD>)</td>
|
||||
<td class="nocenter">
|
||||
<input type="text" name ='p_zip_code1' id="p_zip_code1" value='' style="width:80px" readonly="readonly" />
|
||||
<a href="javascript:win_open('1')"><img src="/images/common/btn_post.gif" align="absmiddle"></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="nocenter">
|
||||
<input type="text" name ='p_address1_1' id="p_address1_1" value='' style="width:300px" readonly="readonly" />-
|
||||
<input type="text" name ='p_address1_2' id="p_address1_2" value='' style="width:250px" >
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td rowspan="2" ><3E><><EFBFBD><EFBFBD><br>(<28>ǰ<EFBFBD><C7B0><EFBFBD><EFBFBD><EFBFBD>)</td>
|
||||
<td class="nocenter">
|
||||
<input type="text" name ='p_zip_code2' id="p_zip_code2" value='' style="width:80px" readonly="readonly" />
|
||||
<a href="javascript:win_open('2')"><img src="/images/common/btn_post.gif" align="absmiddle"></a>
|
||||
<img src="/images/common/btn_same.gif" align="absmiddle" id="add_img" style="CURSOR:pointer;">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="nocenter">
|
||||
<input type="text" name ='p_address2_1' id="p_address2_1" value='' style="width:300px" readonly="readonly" />-
|
||||
<input type="text" name ='p_address2_2' id="p_address2_2" value='' style="width:250px" >
|
||||
</td>
|
||||
</tr>
|
||||
</table><br>
|
||||
<table class="general table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td width="120px" rowspan="4" ><3E>Ϲݻ<CFB9><DDBB><EFBFBD></td>
|
||||
<td colspan="2">ȸ<><C8B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (ID<49><44> <20>ۼ<EFBFBD>)</td>
|
||||
<td colspan="4"><3E><><EFBFBD>θ<EFBFBD><CEB8><EFBFBD>(<28>ִ<EFBFBD> <font class="tahoma">30</font><3E><>)</td>
|
||||
<td style="text-align:center;" colspan="2">ȸ<><C8B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (ID<49><44> <20>ۼ<EFBFBD>)</td>
|
||||
<td colspan="4"><3E><><EFBFBD>θ<EFBFBD><CEB8><EFBFBD>(<28>ִ<EFBFBD> <font class="tahoma">30</font><3E><>)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
@@ -179,170 +86,32 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="120px" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ</td>
|
||||
<td width="120px" style="text-align:center;"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ</td>
|
||||
<td >
|
||||
<input type="text" name ='p_krc_tel' id="p_krc_tel" value="" readonly="readonly" />
|
||||
<input type="hidden" name="p_krc_tel3" id="p_krc_tel3" value="" />
|
||||
</td>
|
||||
<td ><3E><><EFBFBD><EFBFBD> IP</td>
|
||||
<td width="120px" style="text-align:center;"><3E><><EFBFBD><EFBFBD> IP</td>
|
||||
<td >
|
||||
<input type="text" name ='p_krc_ip' id="p_krc_ip" value="" readonly="readonly" />
|
||||
</td>
|
||||
<td ><3E><>ȭ<EFBFBD><C8AD> IP</td>
|
||||
<td width="120px" style="text-align:center;"><3E><>ȭ<EFBFBD><C8AD> IP</td>
|
||||
<td >
|
||||
<input type="text" name ='p_krc_tel_ip' id="p_krc_tel_ip" value="" readonly="readonly" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br/>
|
||||
<div style="text-align:left">
|
||||
<label><input type="checkbox" name="military_x" id="military_x" value="1" /><3E>ش<EFBFBD> <20><><EFBFBD><EFBFBD></label>
|
||||
</div>
|
||||
<table class="military table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td width="120px" rowspan="3" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><br> <br>
|
||||
<input type="checkbox" name="military_exmption" id="military_exmption" value="1" /><3E><><EFBFBD><EFBFBD>
|
||||
</td>
|
||||
<td ><3E><><EFBFBD><EFBFBD><EFBFBD>Ⱓ</td>
|
||||
<td ><3E><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD></td>
|
||||
<td ><3E><><EFBFBD><EFBFBD></td>
|
||||
<td ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
</tr>
|
||||
<tr class="military_tr1">
|
||||
<td>
|
||||
<input type="text" class="date_picker" name ='p_military_service_st' id="p_military_service_st" value='' style="width:150px;" readonly="readonly" > -
|
||||
<input type="text" class="date_picker" name ='p_military_service_end' id="p_military_service_end" value='' style="width:150px;" readonly="readonly" >
|
||||
</td>
|
||||
<td ><input type="text" name="p_military_1" id="p_military_1" value='' style="width:100%;"></td>
|
||||
<td ><input type="text" name="p_military_grade" id="p_military_grade" value='' style="width:100%;"></td>
|
||||
<td ><input type="text" name="p_military_type" id="p_military_type" value='' style="width:100%;"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td colspan="4"><input type="text" name="p_military_2" id="p_military_2" value='' style="width:100%;"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<table class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td width="120px" rowspan="4" ><3E><><EFBFBD><EFBFBD>/<2F>ڰ<EFBFBD><br><3E><><EFBFBD><EFBFBD></td>
|
||||
<td ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td ><3E>ڰݸ<DAB0></td>
|
||||
<td ><3E><><EFBFBD><EFBFBD></td>
|
||||
<td ><3E><><EFBFBD><EFBFBD>û</td>
|
||||
</tr>
|
||||
<%
|
||||
for i=1 to 3
|
||||
%>
|
||||
<tr class="license">
|
||||
<td >
|
||||
<img src="/images/common/btn_reply_del.jpg" align="absmiddle" onclick="txt_clear('license','<%=i%>');" style='CURSOR:pointer;'>
|
||||
<input type="text" class="date_picker" name="p_license_date" id="p_license_date_<%=i %>" value='' style="width:150px;" readonly="readonly" >
|
||||
</td>
|
||||
<td ><input type="text" name='p_license_name' value='' style="width:250px;" ></td>
|
||||
<td ><input type="text" name='p_license_grade' value='' style="width:80px;" ></td>
|
||||
<td ><input type="text" name='p_license_class' value='' style="width:150px;" ></td>
|
||||
</tr>
|
||||
<%
|
||||
next
|
||||
%>
|
||||
</table>
|
||||
<br>
|
||||
<table class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td width="120px" rowspan="6" ><3E>з»<D0B7><C2BB><EFBFBD></td>
|
||||
<td ><3E>з±<D0B7><C2B1><EFBFBD></td>
|
||||
<td ><3E>Ⱓ(<28><><EFBFBD><EFBFBD>)</td>
|
||||
<td ><3E>б<EFBFBD><D0B1><EFBFBD></td>
|
||||
<td ><3E><><EFBFBD><EFBFBD></td>
|
||||
<td ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td ><3E><><EFBFBD><EFBFBD></td>
|
||||
</tr>
|
||||
<%
|
||||
dim edu_date
|
||||
for i=1 to 5
|
||||
%>
|
||||
<tr class="education">
|
||||
<td width="120px">
|
||||
<%if i=1 then
|
||||
Response.Write "<22><><EFBFBD><EFBFBD><EFBFBD>б<EFBFBD>"
|
||||
elseif i = 2 then
|
||||
Response.Write "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
elseif i = 3 then
|
||||
Response.Write "<22><><EFBFBD>б<EFBFBD>"
|
||||
elseif i = 4 then
|
||||
Response.Write "<22><><EFBFBD>п<EFBFBD>(<28><>)"
|
||||
elseif i = 5 then
|
||||
Response.Write "<22><><EFBFBD>п<EFBFBD>(<28><>)"
|
||||
end if%>
|
||||
</td>
|
||||
<td >
|
||||
<img src="/images/common/btn_reply_del.jpg" align="absmiddle" onclick="txt_clear('edu','<%=i%>');" style='CURSOR:pointer;'>
|
||||
<input type="text" class="date_picker" name="p_edu_st_date" id="p_edu_st_date_<%=i %>" value='' style="width:150px;" readonly="readonly" /> -
|
||||
<input type="text" class="date_picker" name="p_edu_end_date" id="p_edu_end_date_<%=i %>" value='' style="width:150px;" readonly="readonly" />
|
||||
</td>
|
||||
<td ><input type="text" name='p_edu_name' value='' style="width:140px;" ></td>
|
||||
<td ><input type="text" name='p_edu_study' value='' style="width:110px;" ></td>
|
||||
<td ><input type="text" name='p_edu_end_chk' value='' style="width:60px;" onclick="showHideLayersAll(edu_end,'<%=i%>');" style='CURSOR:pointer;'></td>
|
||||
<td ><input type="text" name='p_edu_point' value='' style="width:50px;" ></td>
|
||||
</tr>
|
||||
<%
|
||||
next
|
||||
%>
|
||||
</table>
|
||||
<br>
|
||||
<table class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td width="120px" rowspan="7" ><3E><><EFBFBD>»<EFBFBD><C2BB><EFBFBD></td>
|
||||
<td colspan="6" width="120px" >
|
||||
<20><> <20><><EFBFBD>³<EFBFBD><C2B3><EFBFBD>
|
||||
<input type="text" name='p_career_year_sum' value='' style="text-align:right;width:50px" readonly="readonly" > <20><><!-- readonly -->
|
||||
<input type="text" name='p_career_month_sum' value='' style="text-align:right;width:50px" readonly="readonly" > <20><><EFBFBD><EFBFBD> <!-- readonly -->
|
||||
<b class="k_darkorange">(ȸ<><C8B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>ؾ߸<D8BE> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>˴ϴ<CBB4>.)</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ><3E><><EFBFBD>³<EFBFBD><C2B3><EFBFBD></td>
|
||||
<td ><3E>Ⱓ(<28><><EFBFBD><EFBFBD>)</td>
|
||||
<td >ȸ<><C8B8><EFBFBD><EFBFBD></td>
|
||||
<td ><3E>μ<EFBFBD><CEBC><EFBFBD></td>
|
||||
<td ><3E><><EFBFBD><EFBFBD></td>
|
||||
<td ><3E><><EFBFBD><EFBFBD></td>
|
||||
</tr>
|
||||
<%
|
||||
Dim career_date
|
||||
for i=1 to 5
|
||||
%>
|
||||
<tr class="career">
|
||||
<td >
|
||||
<input type="text" name='p_career_year' id="p_career_year_<%=i %>" value='' style="width:20px;" readonly="readonly" >
|
||||
<input type="text" name='p_career_month' id="p_career_month_<%=i %>" value='' style="width:20px;" readonly="readonly" >
|
||||
</td>
|
||||
<td >
|
||||
<img src="/images/common/btn_reply_del.jpg" align="absmiddle" onclick="txt_clear('career','<%=i%>');" style='CURSOR:pointer;'>
|
||||
<input type="text" class="date_picker" name="p_career_st_date" id="p_career_st_date_<%=i %>" value='' style="width:150px;" readonly="readonly" /> -
|
||||
<input type="text" class="date_picker" name="p_career_end_date" id="p_career_end_date_<%=i %>" value='' style="width:150px;" readonly="readonly" />
|
||||
</td>
|
||||
<td ><input type="text" name='p_company_name' value='' style="width:150px;" ></td>
|
||||
<td ><input type="text" name='p_company_part' value='' style="width:100px;" ></td>
|
||||
<td ><input type="text" name='p_company_part_job' value='' style="width:100px;" ></td>
|
||||
<td ><input type="text" name='p_company_part_grade' value='' style="width:60px;" ></td>
|
||||
</tr>
|
||||
<%
|
||||
next
|
||||
%>
|
||||
</table>
|
||||
<br>
|
||||
<table class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td width="120px" rowspan="4" ><3E>Ի<EFBFBD><D4BB><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td ><3E>Ի<EFBFBD><D4BB><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td >
|
||||
<td><3E>Ի<EFBFBD><D4BB><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td>
|
||||
<input type="text" class="date_picker" name="p_krc_in_date" id="p_krc_in_date" value="" style="width:150px;text-align:right" readonly="readonly" />
|
||||
</td>
|
||||
<td width="10%" rowspan="4" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td >
|
||||
<td style="text-align:center;"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td>
|
||||
<input type="text" class="date_picker" name="p_krc_out_date" id="p_krc_out_date" value="" style="width:150px;text-align:right" readonly="readonly" />
|
||||
</td>
|
||||
</tr>
|
||||
@@ -353,7 +122,7 @@
|
||||
<option value='' >= <20>Ի<EFBFBD><D4BB>μ<EFBFBD> = </option>
|
||||
<%
|
||||
SQL=" Select D_Code, D_Name, before_cd1, before_cd2, before_cd3 from N_Depart where flag='1' "
|
||||
adoRs.Open SQL, adoconn, 1
|
||||
adoRs.Open SQL, adoconn, 1
|
||||
while not adoRs.eof
|
||||
Response.Write "<option value='" & adoRs("D_Code") & "' "
|
||||
Response.Write ">" & adoRs("D_Name") & "</option>"
|
||||
@@ -363,7 +132,7 @@
|
||||
%>
|
||||
</select>
|
||||
</td>
|
||||
<td ><3E><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD></td>
|
||||
<td style="text-align:center;"><3E><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD></td>
|
||||
<td >
|
||||
<select name="sel_p_depart_last" id="sel_p_depart_last" >
|
||||
<option value='' >= <20><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD> =</option>
|
||||
@@ -377,7 +146,7 @@
|
||||
<option value='' >= <20>Ի<EFBFBD><D4BB><EFBFBD><EFBFBD><EFBFBD> = </option>
|
||||
<%
|
||||
SQL=" Select R_Code, R_name from N_Rank where flag='1' "
|
||||
adoRs.Open SQL, adoconn, 1
|
||||
adoRs.Open SQL, adoconn, 1
|
||||
while not adoRs.eof
|
||||
Response.Write "<option value='" & adoRs("R_Code") & "'"
|
||||
Response.Write ">" & adoRs("R_Name") & "</option>"
|
||||
@@ -387,7 +156,7 @@
|
||||
%>
|
||||
</select>
|
||||
</td>
|
||||
<td ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td style="text-align:center;"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td >
|
||||
<select name="sel_p_pos_last" id="sel_p_pos_last" >
|
||||
<option value='' >= <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> =</option>
|
||||
@@ -409,7 +178,7 @@
|
||||
<%
|
||||
If sel_list <> "" Then
|
||||
SQL=" Select D_Code, D_Name, before_cd1, before_cd2, before_cd3 from N_Depart where flag='1' "
|
||||
adoRs.Open SQL, adoconn, 1
|
||||
adoRs.Open SQL, adoconn, 1
|
||||
while not adoRs.eof
|
||||
Response.Write "<option value='" & adoRs("D_Code") & "' "
|
||||
Response.Write ">" & adoRs("D_Name") & "</option>"
|
||||
@@ -418,16 +187,16 @@
|
||||
adoRs.close
|
||||
End IF
|
||||
%>
|
||||
|
||||
|
||||
</select>
|
||||
</td>
|
||||
<td ><3E><></td>
|
||||
<td style="text-align:center;"><3E><></td>
|
||||
<td >
|
||||
<select name="sel_p_team" id="sel_p_team"><!--'<27><><EFBFBD><EFBFBD>-->
|
||||
<option value='' >= <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> =</option>
|
||||
</select>
|
||||
</td>
|
||||
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td ><3E><><EFBFBD><EFBFBD></td>
|
||||
@@ -437,7 +206,7 @@
|
||||
<%
|
||||
If sel_list<>"" Then
|
||||
SQL=" Select R_Code, R_name from N_Rank where flag='1' "
|
||||
adoRs.Open SQL, adoconn, 1
|
||||
adoRs.Open SQL, adoconn, 1
|
||||
while not adoRs.eof
|
||||
Response.Write "<option value='" & adoRs("R_Code") & "'"
|
||||
Response.Write ">" & adoRs("R_Name") & "</option>"
|
||||
@@ -448,13 +217,13 @@
|
||||
%>
|
||||
</select>
|
||||
</td>
|
||||
<td ><3E><>å</td>
|
||||
<td style="text-align:center;"><3E><>å</td>
|
||||
<td >
|
||||
<select name='sel_p_team_place'><!--'<27><><EFBFBD>忩<EFBFBD><E5BFA9>-->
|
||||
<option value='' >= ȸ<><C8B8> <20><> <20><>å =</option>
|
||||
<%
|
||||
SQL=" Select P_Code, P_name from N_Position where flag='1' "
|
||||
adoRs.Open SQL, adoconn, 1
|
||||
adoRs.Open SQL, adoconn, 1
|
||||
while not adoRs.eof
|
||||
Response.Write "<option value='" & adoRs("P_Code") & "'"
|
||||
Response.Write ">" & adoRs("P_Name") & "</option>"
|
||||
@@ -466,13 +235,13 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ><3E><><EFBFBD><EFBFBD></td>
|
||||
<td style="text-align:center;"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td >
|
||||
<select name="sel_p_krc_job_part" id="sel_p_krc_job_part" ><!--'<27><><EFBFBD><EFBFBD>-->
|
||||
<option value='' >= ȸ<>系 <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> =</option>
|
||||
<%
|
||||
SQL=" Select code, name from category_<79>λ<EFBFBD><CEBB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> where <20><><EFBFBD><EFBFBD>='<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' and d_yes_no='no' "
|
||||
adoRs.Open SQL, adoconn, 1
|
||||
adoRs.Open SQL, adoconn, 1
|
||||
while not adoRs.eof
|
||||
Response.Write "<option value='" & adoRs("code") & "'"
|
||||
Response.Write ">" & adoRs("name") & "</option>"
|
||||
@@ -485,10 +254,10 @@
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding:10 0 0 0;"><button type="button" class="btn btn-primary btn-block" onclick="gap_save();"><3E><><EFBFBD><EFBFBD><EFBFBD>ϱ<EFBFBD></button></td>
|
||||
</tr>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
@@ -497,173 +266,40 @@
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.content -->
|
||||
<script src="//t1.daumcdn.net/mapjsapi/bundle/postcode/prod/postcode.v2.js"></script>
|
||||
<!-- REQUIRED SCRIPTS -->
|
||||
<!-- REQUIRED SCRIPTS -->
|
||||
<script>
|
||||
function chkLen(str){//<2F>ֹι<D6B9>ȣ <20><><EFBFBD><EFBFBD> Ȯ<><C8AE>
|
||||
if(allTrim(str).length == 6) {
|
||||
document.frmmember.txt_jumin2.focus();
|
||||
}
|
||||
}
|
||||
function img_ajax(data){
|
||||
var chk
|
||||
$.ajax({
|
||||
url:"personnel_card_img_ajax.asp",
|
||||
enctype:'multipart/form-data',
|
||||
type:"POST",
|
||||
data:data,
|
||||
cache: false,
|
||||
async: false,
|
||||
contentType: false,
|
||||
processData: false,
|
||||
success:function(res){
|
||||
chk = res;
|
||||
},
|
||||
error:function(res){
|
||||
chk = '9';
|
||||
}
|
||||
});
|
||||
return chk;
|
||||
}
|
||||
|
||||
function gap_save(){
|
||||
//<2F>̹<EFBFBD><CCB9><EFBFBD> <20><><EFBFBD>ε<EFBFBD>
|
||||
var birth = $("#p_jumin1").val();
|
||||
var sex = $("#p_jumin2").val().charAt(0);
|
||||
var name = $("#p_name").val();
|
||||
|
||||
var img_name = birth+"_"+sex+"_"+name;
|
||||
|
||||
var formData = new FormData();
|
||||
formData.append("img_file", $("#img_up")[0].files[0]);
|
||||
formData.append("img_name", img_name);
|
||||
formData.append("ImgChk", "1");
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD>
|
||||
if(chk_data() == true){
|
||||
if($("#img_up")[0].files[0] == undefined){
|
||||
alert("<22>̹<EFBFBD><CCB9><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>ε<EFBFBD> <20>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
return false
|
||||
}else{
|
||||
if(img_ajax(formData) == "9"){
|
||||
alert("Error");
|
||||
return false;
|
||||
}else{
|
||||
document.frmmember.action="personnel_card_ok.asp";
|
||||
document.frmmember.submit();
|
||||
}
|
||||
}
|
||||
document.frmmember.action="personnel_card_ok.asp";
|
||||
document.frmmember.submit();
|
||||
}
|
||||
}
|
||||
|
||||
function chk_data() {
|
||||
var information_p;
|
||||
$(".information_p input").each(function () {
|
||||
if($(this).prop("type") != "file"){
|
||||
if ($(this).prop("disabled") == false) {
|
||||
if ($(this).val() == "") {
|
||||
information_p = false;
|
||||
return false;
|
||||
} else {
|
||||
information_p = true;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
if (information_p == false) {
|
||||
alert("<22>⺻ <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.(<28><><EFBFBD><EFBFBD>, <20>ֹι<D6B9>ȣ, <20><>ȭ <20><><EFBFBD><EFBFBD>)");
|
||||
if ($("#p_name").val() == "") {
|
||||
alert("<22><><EFBFBD><EFBFBD>(<28>ѱ<EFBFBD>)<29><> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
$("#p_name").focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($("#p_jumin1").val().toString().length != 6) {
|
||||
alert("<22>ֹι<D6B9>ȣ<EFBFBD><C8A3> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ٽ<EFBFBD> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($("#p_jumin2").val().toString().length != 7) {
|
||||
alert("<22>ֹι<D6B9>ȣ<EFBFBD><C8A3> <20><> 7<>ڸ<EFBFBD><DAB8><EFBFBD> <20>ٽ<EFBFBD> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
return false;
|
||||
}
|
||||
if ($(".address input").val() == "") {
|
||||
alert("<22>ּҸ<D6BC> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($(".general input").val() == "") {
|
||||
alert("<22>Ϲ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($(".mail_check").text() == "<22><><EFBFBD><EFBFBD><EFBFBD>Ұ<EFBFBD>(<28>ߺ<EFBFBD>)") {
|
||||
if ($(".mail_check").text() == "<22><><EFBFBD><EFBFBD><EFBFBD>Ұ<EFBFBD>(<28>ߺ<EFBFBD>)") {
|
||||
alert("ȸ<><C8B8> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ߺ<EFBFBD><DFBA>˴ϴ<CBB4>.\n<>ٽ<EFBFBD> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($("#military_x").is(":checked") == false) {
|
||||
if ($("#military_exmption").is(":checked") == true && $("#p_military_2").val() == "") {
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
return false;
|
||||
}
|
||||
if ($("#military_exmption").is(":checked") == false && $(".military_tr1 input").val() == "") {
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
var lincense;
|
||||
$(".license").each(function (i) {
|
||||
if ($("input[name=p_license_date]:eq(" + i + ")").val() != "") {
|
||||
if ($("input[name=p_license_name]:eq(" + i + ")").val() == "" || $("input[name=p_license_grade]:eq(" + i + ")").val() == "" || $("input[name=p_license_class]:eq(" + i + ")").val() == "") {
|
||||
lincense = false;
|
||||
return false;
|
||||
} else {
|
||||
lincense = true;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
if(lincense == false){
|
||||
alert("<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
return false;
|
||||
}
|
||||
|
||||
var education;
|
||||
$(".education").each(function (i) {
|
||||
if ($("input[name=p_edu_st_date]:eq(" + i + ")").val() != "") {
|
||||
if ($("input[name=p_edu_end_date]:eq(" + i + ")").val() == "" || $("input[name=p_edu_name]:eq(" + i + ")").val() == "" || $("input[name=p_edu_study]:eq(" + i + ")").val() == "" || $("input[name=p_edu_end_chk]:eq(" + i + ")").val() == "" || $("input[name=p_edu_point]:eq(" + i + ")").val() == "") {
|
||||
education = false;
|
||||
return false;
|
||||
} else {
|
||||
education = true;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
if (education == false) {
|
||||
alert("<22>з<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
var career;
|
||||
$(".career").each(function (i) {
|
||||
if ($("input[name=p_career_st_date]:eq(" + i + ")").val() != "") {
|
||||
if ($("input[name=p_career_end_date]:eq(" + i + ")").val() == "" || $("input[name=p_company_name]:eq(" + i + ")").val() == "" || $("input[name=p_company_part]:eq(" + i + ")").val() == "" || $("input[name=p_company_part_job]:eq(" + i + ")").val() == "" || $("input[name=p_company_part_grade]:eq(" + i + ")").val() == "") {
|
||||
career = false;
|
||||
return false;
|
||||
} else {
|
||||
career = true;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
if (career == false) {
|
||||
alert("<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($("#p_krc_in_date").val() == "" || $("#sel_p_depart_first").val() == "" || $("#sel_p_pos_first").val() == "") {
|
||||
alert("<22>Ի<EFBFBD><D4BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
return false;
|
||||
@@ -690,167 +326,23 @@
|
||||
$("#p_user_mail2").val($("#p_user_mail2_1").val() + "@" + $("#p_user_mail2_2").val());
|
||||
$("#p_user_mail").val($("#p_user_mail").val().split("@")[0] + "@kric.com");
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
//##### <20>ּ<EFBFBD> <20>˻<EFBFBD>
|
||||
function win_open(x) {
|
||||
new daum.Postcode({
|
||||
oncomplete: function (data) {
|
||||
$("input[name=p_zip_code" + x + "]").val((data.postcode != "" ? data.postcode.replace('-', '') : data.zonecode));
|
||||
if (data.userSelectedType == 'R') {
|
||||
$("input[name=p_address" + x + "_1]").val(data.roadAddress + " " + data.buildingName + "");
|
||||
} else {
|
||||
$("input[name=p_address" + x + "_1]").val(data.jibunAddress + " " + data.buildingName + "");
|
||||
}
|
||||
//console.log(data);
|
||||
}
|
||||
}).open();
|
||||
}
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD> ÷<><C3B7>
|
||||
function img_attach(e){
|
||||
$(".file_btn").empty();
|
||||
var files = this.files[0];
|
||||
var reader = new FileReader();
|
||||
reader.onload = function(f){
|
||||
var img = new Image();
|
||||
img.src = f.target.result;
|
||||
img.width = 120;
|
||||
img.height = 150;
|
||||
$(".file_btn").append("<a href=\"javascript:void(0);\" onclick=\"img_delete(\'" + files.name + "\')\" id=\"file_id\" class=\"file_id\"><img src=\'"+ f.target.result + "\' dtata-file = '" + files.name + "' class='sel_file' title='<27><><EFBFBD><EFBFBD>' style='width:100%;'></a>");
|
||||
}
|
||||
|
||||
reader.readAsDataURL(files);
|
||||
}
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
function img_delete(index){
|
||||
var agent = navigator.userAgent.toLowerCase();
|
||||
|
||||
if(confirm(index+"<22><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?")){
|
||||
$(".file_btn").empty();
|
||||
|
||||
$(".file_btn").append("<img src=\"/images/management/img_up.png\" id=\"p_img\" style=\"width:100%;cursor:pointer;\" title=\"<22>̹<EFBFBD><CCB9><EFBFBD> <20><><EFBFBD>ε<EFBFBD>(click)\" onclick=\"document.all.img_up.click();\">");
|
||||
|
||||
if (agent.indexOf("msie") != -1) { // ie <20>϶<EFBFBD>
|
||||
$("#img_up").replaceWith( $("#img_up").clone(true) );
|
||||
} else { // <20><EFBFBD>
|
||||
$("#img_up").val("");
|
||||
}
|
||||
|
||||
alert("<22><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD>");
|
||||
}else{
|
||||
alert("<22><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD>");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
//<2F>ֹι<D6B9>ȣ <20><>ȿ<EFBFBD><C8BF> üũ
|
||||
function JuminChk(jumin){
|
||||
var fmt = RegExp(/^\d{6}[1234]\d{6}$/);
|
||||
var buf = new Array(13);
|
||||
|
||||
if(!fmt.test(jumin)){
|
||||
alert("<22>ֹι<D6B9>ȣ <20><><EFBFBD>Ŀ<EFBFBD> <20><><EFBFBD><EFBFBD> <20>ʽ<EFBFBD><CABD>ϴ<EFBFBD>.");
|
||||
return false;
|
||||
}
|
||||
|
||||
for (var i=0; i< buf.length; i++){
|
||||
buf[i] = parseInt(jumin.charAt(i));
|
||||
}
|
||||
var multiple = [2,3,4,5,6,7,8,9,2,3,4,5];
|
||||
var sum = 0;
|
||||
|
||||
for (var i=0; i<12; i++){
|
||||
sum += (buf[i] *= multiple[i]);
|
||||
}
|
||||
|
||||
if ((11-(sum % 11)) % 10 != buf[12]){
|
||||
alert("<22>߸<EFBFBD><DFB8><EFBFBD> <20>ֹε<D6B9><CEB5>Ϲ<EFBFBD>ȣ <20>Դϴ<D4B4>.");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
$(function () {
|
||||
$("#p_military_2").prop('disabled', true);
|
||||
$("#p_military_2").css('background', "gray");
|
||||
//##### <20>ּ<EFBFBD> <20>˻<EFBFBD>
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD> <20><EFBFBD><EFBFBD>ε<EFBFBD>
|
||||
$("#img_up").click(function(e){
|
||||
if($("#p_jumin1").val() == "" || $("#p_jumin2").val() == ""){
|
||||
alert("<22><><EFBFBD><EFBFBD>, <20>ֹι<D6B9>ȣ<EFBFBD><C8A3> <20>Է<EFBFBD> <20><> <20>Ϸ<EFBFBD> <20><><EFBFBD>ֽʽÿ<CABD>..");
|
||||
return false;
|
||||
}else{
|
||||
$("#img_up").off().on("change", img_attach);
|
||||
}
|
||||
});
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD> ÷<EFBFBD><EFBFBD>
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
|
||||
//<2F>ֹι<D6B9>ȣ <20><>ȿ<EFBFBD><C8BF> üũ
|
||||
|
||||
$(function () {
|
||||
//<2F>ѱ<EFBFBD><D1B1>Է<EFBFBD> <20>ȵǰ<C8B5> ó<><C3B3>
|
||||
$(".en_num_cls").keydown(function (event) {
|
||||
var inputVal = $(this).val();
|
||||
$(this).css('ime-mode', 'disabled');
|
||||
$(this).val(inputVal.replace(/[<EFBFBD><EFBFBD>-<2D><>|<7C><>-<2D><>|<7C><>-Þ]/gi, ''));
|
||||
});
|
||||
|
||||
//<2F>ֹε<D6B9><CEB5><EFBFBD> <20><>Ŀ<EFBFBD><C4BF> <20>̵<EFBFBD>
|
||||
$("#p_jumin1").off().on("keyup",function(){
|
||||
if($(this).val().length == 6){
|
||||
$("#p_jumin1").blur();
|
||||
$("#p_jumin2").focus();
|
||||
}
|
||||
});
|
||||
|
||||
$("#jumin_chk").on("click", function(){
|
||||
var jumin1 = $("#p_jumin1").val();
|
||||
var jumin2 = $("#p_jumin2").val();
|
||||
|
||||
if(jumin1 == "" || jumin2 == ""){
|
||||
alert("<22>ֹι<D6B9>ȣ<EFBFBD><C8A3> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
jumin1 == "" ? $("#p_jumin1").focus() : $("#p_jumin2").focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if(JuminChk(jumin1+jumin2) == false){
|
||||
$("#jumin_ok").val("0");
|
||||
return false;
|
||||
}
|
||||
|
||||
$("#p_jumin1").after("<span>"+$("#p_jumin1").val()+"</span>");
|
||||
|
||||
var pattern = /.{6}$/;;
|
||||
jumin2 = jumin2.replace(pattern, '******');
|
||||
$("#p_jumin2").after("<span>"+jumin2+"</span>");
|
||||
$("#p_jumin1").attr("type","hidden");
|
||||
$("#p_jumin2").attr("type","hidden");
|
||||
$("#jumin_ok").val("1");
|
||||
$("#jumin_chk").replaceWith("<i class='ui-icon ui-icon-check'></i><i style=\"color:red;\"><3E><><EFBFBD><EFBFBD><EFBFBD>Ϸ<EFBFBD></i>");
|
||||
});
|
||||
|
||||
//<2F><>ȥ<EFBFBD><C8A5><EFBFBD><EFBFBD>
|
||||
$("input[name=p_marriage]").click(function () {
|
||||
var p_marriage = $(this).val();
|
||||
if (p_marriage == "<22><>ȥ") {
|
||||
$("input[name=p_marriage_date]").prop("disabled", true);
|
||||
$("input[name=p_marriage_date]").css("background", "gray");
|
||||
$("input[name=p_marriage_date]").val("");
|
||||
} else {
|
||||
$("input[name=p_marriage_date]").prop("disabled", false);
|
||||
$("input[name=p_marriage_date]").css("background", "");
|
||||
}
|
||||
});
|
||||
|
||||
//<2F>ּ<EFBFBD>
|
||||
$("#add_img").click(function () {
|
||||
if ($("#p_zip_code1").val() != "") {
|
||||
$("#p_zip_code2").val($("#p_zip_code1").val());
|
||||
$("#p_address2_1").val($("#p_address1_1").val());
|
||||
$("#p_address2_2").val($("#p_address1_2").val());
|
||||
} else {
|
||||
alert("<22>ֹε<D6B9><CEB5>ϻ<EFBFBD><CFBB><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
return false;
|
||||
}
|
||||
inputVal.replace(/[\u3131-\u314E\u314F-\u3163\uAC00-\uD7A3]/g, '')
|
||||
});
|
||||
|
||||
$("#p_name").keypress(function(e){
|
||||
@@ -979,174 +471,19 @@
|
||||
} else {
|
||||
$("#p_user_mail2_2").val("");
|
||||
$("#p_user_mail2_2").prop('readonly', false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$("#sel_mail").click(function () {
|
||||
eamil_check($("#sel_mail").val());
|
||||
});
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
$("#military_x").click(function () {
|
||||
var military_x = $(this);
|
||||
if (military_x.prop('checked')) {
|
||||
$(".military input").each(function () {
|
||||
if ($(this).prop("name") != "p_military_type") {
|
||||
$(this).prop('disabled', true);
|
||||
$(".military input:checkbox").prop('checked', false);
|
||||
$(this).css('background', "gray");
|
||||
$(this).val("");
|
||||
}
|
||||
$("#p_military_type").val("<22>ش<EFBFBD><D8B4><EFBFBD><EFBFBD><EFBFBD>");
|
||||
$("#p_military_type").prop("readonly", true);
|
||||
});
|
||||
} else {
|
||||
$("#p_military_type").prop("readonly", false);
|
||||
$("#military_exmption").prop("disabled", false);
|
||||
$(".military_tr1 input").prop('disabled', false);
|
||||
$(".military_tr1 input").css('background', "");
|
||||
$(".military_tr1 input").val("");
|
||||
}
|
||||
});
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD>)
|
||||
$("#military_exmption").click(function () {
|
||||
var military_exmption = $(this);
|
||||
if (military_exmption.prop('checked')) {
|
||||
$("#p_military_2").prop('disabled', false);
|
||||
$("#p_military_2").css('background', "");
|
||||
|
||||
$(".military_tr1 input").each(function () {
|
||||
if ($(this).prop("name") != "p_military_type") {
|
||||
$(this).prop('disabled', true);
|
||||
$(this).css('background', "gray");
|
||||
$(this).val("");
|
||||
}
|
||||
$("#p_military_type").val("<22><><EFBFBD><EFBFBD>");
|
||||
$("#p_military_type").prop("readonly", true);
|
||||
});
|
||||
} else {
|
||||
$("#p_military_type").prop("readonly", false);
|
||||
$("#p_military_2").prop('disabled', true);
|
||||
$("#p_military_2").css('background', "gray");
|
||||
$("#p_military_2").val("");
|
||||
|
||||
$(".military_tr1 input").prop('disabled', false);
|
||||
$(".military_tr1 input").css('background', "");
|
||||
$(".military_tr1 input").val("");
|
||||
}
|
||||
});
|
||||
|
||||
$("input[name=p_military_1]").click(function () {
|
||||
var st_date = $("input[name=military_service_st]").val().split('-');
|
||||
var end_date = $("input[name=military_service_end]").val().split('-');
|
||||
|
||||
var date1 = new Date(st_date[0], st_date[1], st_date[2]);
|
||||
var date2 = new Date(end_date[0], end_date[1], end_date[2]);
|
||||
|
||||
if (date1 > date2) {
|
||||
alert("<22>Ⱓ <20>Է<EFBFBD><D4B7><EFBFBD> <20>߸<EFBFBD> <20>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
|
||||
var end_date = $("input[name=military_service_end]").val("");
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
//<2F>з<EFBFBD> <20>Ⱓ
|
||||
$("input[name=p_edu_end_date]").each(function (i) {
|
||||
$("input[name=p_edu_name]:Eq(" + i + ")").click(function () {
|
||||
var st_date = $("input[name=p_edu_st_date]:Eq(" + i + ")").val().split('-');
|
||||
var end_date = $("input[name=p_edu_end_date]:Eq(" + i + ")").val().split('-');
|
||||
|
||||
var date1 = new Date(st_date[0], st_date[1]);
|
||||
var date2 = new Date(end_date[0], end_date[1]);
|
||||
|
||||
if (date1 > date2) {
|
||||
alert("<22>Ⱓ <20>Է<EFBFBD><D4B7><EFBFBD> <20>߸<EFBFBD> <20>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
|
||||
var end_date = $("input[name=p_edu_end_date]:Eq(" + i + ")").val("");
|
||||
return false;
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
//<2F><><EFBFBD>º<EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
$("input[name=p_career_end_date]").each(function (i) {
|
||||
$(this).on("change",function(){
|
||||
if ($("input[name=p_career_st_date]:Eq(" + i + ")").val() == "" || $("input[name=p_career_end_date]:Eq(" + i + ")") == "") {
|
||||
alert("<22>Ⱓ<EFBFBD><E2B0A3> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
return false;
|
||||
}
|
||||
|
||||
$("input[name=p_career_year_sum]").val("0");
|
||||
$("input[name=p_career_month_sum]").val("0");
|
||||
|
||||
var st_date = $("input[name=p_career_st_date]:Eq(" + i + ")").val().split('-');
|
||||
var end_date = $("input[name=p_career_end_date]:Eq(" + i + ")").val().split('-');
|
||||
|
||||
var date1 = new Date(st_date[0], st_date[1]);
|
||||
var date2 = new Date(end_date[0], end_date[1]);
|
||||
|
||||
if (date1 > date2) {
|
||||
alert("<22>Ⱓ <20>Է<EFBFBD><D4B7><EFBFBD> <20>߸<EFBFBD> <20>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
|
||||
var end_date = $("input[name=p_career_end_date]:Eq(" + i + ")").val("");
|
||||
return false;
|
||||
}
|
||||
|
||||
var diff1 = end_date[0] - st_date[0];
|
||||
var diff2 = (diff1 * 12 + end_date[1] * 1) - st_date[1];
|
||||
|
||||
var diff_year = parseInt(diff2 / 12);
|
||||
var diff_month = parseInt(diff2 % 12);
|
||||
|
||||
if (st_date = "" || end_date == "") {
|
||||
$("input[name=p_career_year]:eq(" + i + ")").val("");
|
||||
$("input[name=p_career_month]:eq(" + i + ")").val("");
|
||||
}
|
||||
|
||||
$("input[name=p_career_year]:eq(" + i + ")").val(diff_year);
|
||||
$("input[name=p_career_month]:eq(" + i + ")").val(diff_month);
|
||||
|
||||
var a = 0;
|
||||
var b = 0;
|
||||
$("input[name=p_career_year]").each(function (e) {
|
||||
if ($(this).val() != "") {
|
||||
a += parseInt($(this).val());
|
||||
b += parseInt($("input[name=p_career_month]").eq(e).val());
|
||||
}
|
||||
});
|
||||
|
||||
y_m_sum(a, b);
|
||||
});
|
||||
});
|
||||
|
||||
//<2F><> <20><>,<2C><><EFBFBD><EFBFBD>
|
||||
function y_m_sum(yy, mm) {
|
||||
var yy = parseInt(yy);
|
||||
var mm = parseInt(mm);
|
||||
var y_sum = parseInt($("input[name=p_career_year_sum]").val()) || 0;
|
||||
var m_sum = parseInt($("input[name=p_career_month_sum]").val()) || 0;
|
||||
|
||||
y_sum = y_sum + yy;
|
||||
m_sum = m_sum + mm;
|
||||
|
||||
if (m_sum > 11) {
|
||||
y_sum =y_sum + (parseInt(m_sum / 12));
|
||||
m_sum = m_sum - ((parseInt(m_sum / 12)) * 12);
|
||||
}
|
||||
|
||||
$("input[name=p_career_year_sum]").val(y_sum);
|
||||
$("input[name=p_career_month_sum]").val(m_sum);
|
||||
}
|
||||
|
||||
//<2F><EFBFBD>
|
||||
$(".date_picker").addClass("text-center");
|
||||
$(".date_picker").addClass("text-center");
|
||||
$(".date_picker").addClass("text-center");
|
||||
$(".date_picker").addClass("text-center");
|
||||
$(".date_picker").each(function () {
|
||||
var tag_name = $(this).prop("name");
|
||||
var d_format;
|
||||
if (tag_name == "p_military_service_st" || tag_name == "p_military_service_end" || tag_name == "p_license_date" || tag_name == "p_edu_st_date" || tag_name == "p_edu_end_date" || tag_name == "p_career_st_date" || tag_name == "p_career_end_date") {
|
||||
d_format = "yy-mm";
|
||||
} else {
|
||||
d_format = "yy-mm-dd";
|
||||
}
|
||||
$(this).datepicker();
|
||||
});
|
||||
|
||||
|
||||
@@ -32,23 +32,10 @@
|
||||
D_Code = Rs("p_depart_now")
|
||||
T_Code = Rs("p_team_now")
|
||||
|
||||
jumin = split(Rs("jumin"),"-")
|
||||
jumin_1 = jumin(0)
|
||||
jumin_2 = jumin(1)
|
||||
%>
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<style>
|
||||
.file_btn input[type="file"]{
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
padding: 0;
|
||||
margin: -1px;
|
||||
overflow: hidden;
|
||||
clip:rect(0,0,0,0);
|
||||
border: 0;
|
||||
}
|
||||
|
||||
td{
|
||||
text-align:center;
|
||||
@@ -85,143 +72,17 @@
|
||||
<td>
|
||||
<table class="information_p table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td rowspan="5" style='width:120px;'>
|
||||
<input type='file' name='img_up' id='img_up' accept="image/jpeg" style="display:none"/>
|
||||
<div class="file_btn" style='display:inline;'>
|
||||
<img src='' id="p_img" style='width:100%;cursor:pointer;' title="<22>̹<EFBFBD><CCB9><EFBFBD> <20><><EFBFBD>ε<EFBFBD>(click)" onclick="document.all.img_up.click();">
|
||||
</div>
|
||||
</td>
|
||||
<td colspan="4" ><b style="font-size:24px;"><3E><> <20><> <20><> <20><> ī <20><></b> (<28><><EFBFBD>ܺ<EFBFBD>)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ><3E><><EFBFBD><EFBFBD>(<28>ѱ<EFBFBD>)</td>
|
||||
<td class="nocenter">
|
||||
<td width="120px" style="text-align:center;vertical-align:middle;"><3E><><EFBFBD><EFBFBD>(<28>ѱ<EFBFBD>)</td>
|
||||
<td class="nocenter" colspan="3">
|
||||
<input type="text" name="p_name" id="p_name" value="<%=Rs("p_name") %>" />
|
||||
<img src="/images/common/btn_smallsrch2.gif" id="p_search" align="absmiddle" style="CURSOR:pointer;"/>
|
||||
</td>
|
||||
<td ><3E><><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD>)</td>
|
||||
<td class="nocenter">
|
||||
<input type="text" name ="p_name_eng" id="p_name_eng" value="<%=Rs("p_name_eng") %>" >
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ><3E>ֹι<D6B9>ȣ</td>
|
||||
<td class="nocenter">
|
||||
<input type="number" name = 'p_jumin1' id="p_jumin1" value="<%=jumin_1 %>" style="width:80px;" > -
|
||||
<input type="password" name = 'p_jumin2' id="p_jumin2" value="<%=jumin_2 %>" style="width:80px;" >
|
||||
<input type="hidden" name="jumin_ok" id="jumin_ok" value="1" />
|
||||
<button type="button" name="jumin_chk" id="jumin_chk" class="btn btn-sm btn-secondary"><3E><><EFBFBD><EFBFBD></button>
|
||||
</td>
|
||||
<td ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td> <img src="" />
|
||||
<td class="nocenter">
|
||||
<input type="text" class="date_picker" name="p_birthday" id="p_birthday" value="<%=mid(Rs("birthday"),1,10)%>" style="width:150px" />
|
||||
<%
|
||||
if Rs("birthday") <> "" then
|
||||
if cstr(mid(Rs("birthday"),12,1)) = "<22><>" then
|
||||
tmp_radio = "<22><>"
|
||||
elseif cstr(mid(Rs("birthday"),12,1)) = "<22><>" then
|
||||
tmp_radio = "<22><>"
|
||||
end if
|
||||
end if
|
||||
%>
|
||||
<input type="radio" class="none" name = 'p_sun_moon' value='<27><>' <% if tmp_radio = "<22><>" then %> checked <% end if %>> <20><><EFBFBD><EFBFBD>
|
||||
<input type="radio" class="none" name = 'p_sun_moon' value='<27><>' <% if tmp_radio = "<22><>" then %> checked <% end if %>> <20><><EFBFBD><EFBFBD>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><3E><>ȥ<EFBFBD><C8A5><EFBFBD><EFBFBD></td>
|
||||
<td class="nocenter">
|
||||
<%
|
||||
if Rs("marriage") <> "" then
|
||||
if Rs("marriage") = "<22><>ȥ" then
|
||||
tmp_radio = "<22><>ȥ"
|
||||
elseif Rs("marriage") = "<22><>ȥ" then
|
||||
tmp_radio = "<22><>ȥ"
|
||||
end if
|
||||
end if
|
||||
%>
|
||||
<input type="radio" class="none" name = 'p_marriage' value='<27><>ȥ' <% if tmp_radio = "<22><>ȥ" then %> checked <% end if %>> <20><>ȥ
|
||||
<input type="radio" class="none" name = 'p_marriage' value='<27><>ȥ' <% if tmp_radio = "<22><>ȥ" then %> checked <% end if %>> <20><>ȥ
|
||||
</td>
|
||||
<td><3E><>ȥ<EFBFBD><C8A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td class="nocenter">
|
||||
<input type="text" class="date_picker" name="p_marriage_date" id="p_marriage_date" value="<%=Rs("marriage_date")%>" style="width:150px;" <%if tmp_radio = "<22><>ȥ" Then Response.Write "disabled='disabled'" End If%> readonly="readonly">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȭ</td>
|
||||
<%
|
||||
|
||||
if Rs("p_tel") <> "" then
|
||||
tmpstr=split(Rs("p_tel"),"-")
|
||||
tmp_value1 = tmpstr(0)
|
||||
tmp_value2 = tmpstr(1)
|
||||
tmp_value3 = tmpstr(2)
|
||||
else
|
||||
tmp_value1 = ""
|
||||
tmp_value2 = ""
|
||||
tmp_value3 = ""
|
||||
end if
|
||||
%>
|
||||
<td class="nocenter">
|
||||
<input type="text" name ='p_tel1' value="<%=tmp_value1%>" style="width:50px" > -
|
||||
<input type="text" name ='p_tel2' value="<%=tmp_value2%>" style="width:50px" > -
|
||||
<input type="text" name ='p_tel3' value="<%=tmp_value3%>" style="width:50px" >
|
||||
</td>
|
||||
<td><3E><EFBFBD><DEB4><EFBFBD>ȭ</td>
|
||||
<%
|
||||
if Rs("p_tel2") <> "" then
|
||||
tmpstr=split(Rs("p_tel2"),"-")
|
||||
tmp_value1 = tmpstr(0)
|
||||
tmp_value2 = tmpstr(1)
|
||||
tmp_value3 = tmpstr(2)
|
||||
else
|
||||
tmp_value1 = ""
|
||||
tmp_value2 = ""
|
||||
tmp_value3 = ""
|
||||
end if
|
||||
%>
|
||||
<td class="nocenter">
|
||||
<input type="text" name ='p_move_tel1' value="<%=tmp_value1%>" style="width:50px" > -
|
||||
<input type="text" name ='p_move_tel2' value="<%=tmp_value2%>" style="width:50px" > -
|
||||
<input type="text" name ='p_move_tel3' value="<%=tmp_value3%>" style="width:50px" >
|
||||
</td>
|
||||
</tr>
|
||||
</table><br>
|
||||
<table class="address table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td width="120px" rowspan="6"><3E>ּ<EFBFBD></td>
|
||||
<td width="120px" rowspan="2"><3E><><EFBFBD><EFBFBD><br>(<28>ֹε<D6B9><CEB5>ϻ<EFBFBD>)</td>
|
||||
<td class="nocenter">
|
||||
<input type="text" name ='p_zip_code1' id="p_zip_code1" value='<%=Rs("zip_code1") %>' style="width:80px" readonly="readonly" />
|
||||
<a href="javascript:win_open('1')"><img src="/images/common/btn_post.gif" align="absmiddle"></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="nocenter">
|
||||
<input type="text" name ='p_address1_1' id="p_address1_1" value='<%=Rs("address1_1") %>' style="width:300px" readonly="readonly" />-
|
||||
<input type="text" name ='p_address1_2' id="p_address1_2" value='<%=Rs("address1_2") %>' style="width:250px" >
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td rowspan="2"><3E><><EFBFBD><EFBFBD><br>(<28>ǰ<EFBFBD><C7B0><EFBFBD><EFBFBD><EFBFBD>)</td>
|
||||
<td class="nocenter">
|
||||
<input type="text" name ='p_zip_code2' id="p_zip_code2" value='<%=Rs("zip_code2") %>' style="width:80px" readonly="readonly" />
|
||||
<a href="javascript:win_open('2')"><img src="/images/common/btn_post.gif" align="absmiddle"></a>
|
||||
<img src="/images/common/btn_same.gif" align="absmiddle" id="add_img" style="CURSOR:pointer;">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="nocenter">
|
||||
<input type="text" name ='p_address2_1' id="p_address2_1" value='<%=Rs("address2_1") %>' style="width:300px" readonly="readonly" />-
|
||||
<input type="text" name ='p_address2_2' id="p_address2_2" value='<%=Rs("address2_2") %>' style="width:250px" >
|
||||
</td>
|
||||
</tr>
|
||||
</table><br>
|
||||
<table class="general table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td width="120px" rowspan="4"><3E>Ϲݻ<CFB9><DDBB><EFBFBD></td>
|
||||
<td colspan="2">ȸ<><C8B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (ID<49><44> <20>ۼ<EFBFBD>)</td>
|
||||
<td style="text-align:center;" colspan="2">ȸ<><C8B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (ID<49><44> <20>ۼ<EFBFBD>)</td>
|
||||
<td colspan="4"><3E><><EFBFBD>θ<EFBFBD><CEB8><EFBFBD>(<28>ִ<EFBFBD> <font class="tahoma">30</font><3E><>)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -283,172 +144,18 @@
|
||||
<input type="hidden" name="p_krc_tel3" id="p_krc_tel3" value="<%=Rs("p_tel3") %>" />
|
||||
<button type="button" name='tel_edit' id='tel_edit'><3E><><EFBFBD><EFBFBD></button>
|
||||
</td>
|
||||
<td ><3E><><EFBFBD><EFBFBD> IP</td>
|
||||
<td width="120px" style="text-align:center;"><3E><><EFBFBD><EFBFBD> IP</td>
|
||||
<td >
|
||||
<input type="text" name ='p_krc_ip' id="p_krc_ip" value="<%=Rs("p_ip")%>" readonly="readonly" />
|
||||
<button type="button" name='ip_edit' id='ip_edit'><3E><><EFBFBD><EFBFBD></button>
|
||||
</td>
|
||||
<td ><3E><>ȭ<EFBFBD><C8AD> IP</td>
|
||||
<td width="120px" style="text-align:center;"><3E><>ȭ<EFBFBD><C8AD> IP</td>
|
||||
<td >
|
||||
<input type="text" name ='p_krc_tel_ip' id="p_krc_tel_ip" value="<%=replace(Rs("p_ip"),".13.",".14.")%>" readonly="readonly" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br/>
|
||||
<div style="text-align:left">
|
||||
<label><input type="checkbox" name="military_x" id="military_x" value="1" <%If Rs("military_type")="<22>ش<EFBFBD><D8B4><EFBFBD><EFBFBD><EFBFBD>" Then response.write "checked='checked'" End If %>/><3E>ش<EFBFBD> <20><><EFBFBD><EFBFBD></label>
|
||||
</div>
|
||||
<table class="military table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td width="120px" rowspan="3"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><br />
|
||||
<input type="checkbox" name="military_exmption" id="military_exmption" value="1" <%If Rs("military_type")="<22><><EFBFBD><EFBFBD>" Then response.write "checked='checked'" End If %>/><3E><><EFBFBD><EFBFBD>
|
||||
</td>
|
||||
<td><3E><><EFBFBD><EFBFBD><EFBFBD>Ⱓ</td>
|
||||
<td><3E><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD></td>
|
||||
<td><3E><><EFBFBD><EFBFBD></td>
|
||||
<td><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
</tr>
|
||||
<tr class="military_tr1">
|
||||
<td >
|
||||
<input type="text" class="date_picker" name ='p_military_service_st' id="p_military_service_st" value='<%=Rs("military_service_st_date") %>' style="width:150px;" readonly="readonly" > -
|
||||
<input type="text" class="date_picker" name ='p_military_service_end' id="p_military_service_end" value='<%=Rs("military_service_end_date") %>' style="width:150px;" readonly="readonly" >
|
||||
</td>
|
||||
<td ><input type="text" name="p_military_1" id="p_military_1" value='<%=Rs("military_1") %>' style="width:100%;"></td>
|
||||
<td ><input type="text" name="p_military_grade" id="p_military_grade" value='<%=Rs("military_grade") %>' style="width:100%;"></td>
|
||||
<td ><input type="text" name="p_military_type" id="p_military_type" value='<%=Rs("military_type") %>' style="width:100%;"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td colspan="4"><input type="text" name="p_military_2" id="p_military_2" value='<%=Rs("military_2")%>' style="width:100%;"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<table class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td width="70" rowspan="4"><3E><><EFBFBD><EFBFBD>/<2F>ڰ<EFBFBD><br><3E><><EFBFBD><EFBFBD></td>
|
||||
<td><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td><3E>ڰݸ<DAB0></td>
|
||||
<td><3E><><EFBFBD><EFBFBD></td>
|
||||
<td><3E><><EFBFBD><EFBFBD>û</td>
|
||||
</tr>
|
||||
<%
|
||||
x_position = x_position + 47
|
||||
for i=1 to 3
|
||||
%>
|
||||
<tr class="license">
|
||||
<td>
|
||||
<img src="/images/common/btn_reply_del.jpg" align="absmiddle" onclick="txt_clear('license','<%=i%>');" style='CURSOR:pointer;'>
|
||||
<input type="text" class="date_picker" name="p_license_date" id="p_license_date_<%=i %>" value='<%=Rs("license_date_"&i) %>' style="width:70px;" readonly="readonly" >
|
||||
</td>
|
||||
<td ><input type="text" name='p_license_name' value='<%=Rs("license_name_"&i) %>' style="width:250px;" ></td>
|
||||
<td ><input type="text" name='p_license_grade' value='<%=Rs("license_grage_"&i) %>' style="width:80px;" ></td>
|
||||
<td ><input type="text" name='p_license_class' value='<%=Rs("license_class_"&i) %>' style="width:150px;" ></td>
|
||||
</tr>
|
||||
<%
|
||||
next
|
||||
%>
|
||||
</table>
|
||||
<br>
|
||||
<table class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td width="120px" rowspan="6"><3E>з»<D0B7><C2BB><EFBFBD></td>
|
||||
<td><3E>з±<D0B7><C2B1><EFBFBD></td>
|
||||
<td><3E>Ⱓ(<28><><EFBFBD><EFBFBD>)</td>
|
||||
<td><3E>б<EFBFBD><D0B1><EFBFBD></td>
|
||||
<td><3E><><EFBFBD><EFBFBD></td>
|
||||
<td><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td><3E><><EFBFBD><EFBFBD></td>
|
||||
</tr>
|
||||
<%
|
||||
dim edu_date
|
||||
for i=1 to 5
|
||||
if Rs("edu_date_"&i)<>"" Then
|
||||
edu_date = split(Rs("edu_date_"&i),",")
|
||||
Else
|
||||
Redim edu_date(1)
|
||||
edu_date(0)=""
|
||||
edu_date(1)=""
|
||||
End If
|
||||
%>
|
||||
<tr class="education">
|
||||
<td>
|
||||
<%if i=1 then
|
||||
Response.Write "<22><><EFBFBD><EFBFBD><EFBFBD>б<EFBFBD>"
|
||||
elseif i = 2 then
|
||||
Response.Write "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
elseif i = 3 then
|
||||
Response.Write "<22><><EFBFBD>б<EFBFBD>"
|
||||
elseif i = 4 then
|
||||
Response.Write "<22><><EFBFBD>п<EFBFBD>(<28><>)"
|
||||
elseif i = 5 then
|
||||
Response.Write "<22><><EFBFBD>п<EFBFBD>(<28><>)"
|
||||
end if%>
|
||||
</td>
|
||||
<td>
|
||||
<img src="/images/common/btn_reply_del.jpg" align="absmiddle" onclick="txt_clear('edu','<%=i%>');" style='CURSOR:pointer;'>
|
||||
<input type="text" class="date_picker" name="p_edu_st_date" id="p_edu_st_date_<%=i %>" value='<%=edu_date(0) %>' style="width:150px;" readonly="readonly" /> -
|
||||
<input type="text" class="date_picker" name="p_edu_end_date" id="p_edu_end_date_<%=i %>" value='<%=edu_date(1) %>' style="width:150px;" readonly="readonly" />
|
||||
</td>
|
||||
<td ><input type="text" name='p_edu_name' value='<%=Rs("edu_name_"&i) %>' style="width:140px;" ></td>
|
||||
<td ><input type="text" name='p_edu_study' value='<%=Rs("edu_study_"&i) %>' style="width:110px;" ></td>
|
||||
<td ><input type="text" name='p_edu_end_chk' value='<%=Rs("edu_end_chk_"&i) %>' style="width:60px;" onclick="showHideLayersAll(edu_end,'<%=i%>');" style='CURSOR:pointer;'></td>
|
||||
<td ><input type="text" name='p_edu_point' value='<%=Rs("edu_point_"&i) %>' style="width:50px;" ></td>
|
||||
</tr>
|
||||
<%
|
||||
next
|
||||
%>
|
||||
</table>
|
||||
<br>
|
||||
<table class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td width="120px" rowspan="7"><3E><><EFBFBD>»<EFBFBD><C2BB><EFBFBD></td>
|
||||
<td colspan="6">
|
||||
<20><> <20><><EFBFBD>³<EFBFBD><C2B3><EFBFBD>
|
||||
<input type="text" name='p_career_year_sum' value='<%=Rs("career_year_sum") %>' style="text-align:right;width:50px" readonly="readonly" > <20><><!-- readonly -->
|
||||
<input type="text" name='p_career_month_sum' value='<%=Rs("career_month_sum") %>' style="text-align:right;width:50px" readonly="readonly" > <20><><EFBFBD><EFBFBD> <!-- readonly -->
|
||||
<b class="k_darkorange">(ȸ<><C8B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>ؾ߸<D8BE> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>˴ϴ<CBB4>.)</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><3E><><EFBFBD>³<EFBFBD><C2B3><EFBFBD></td>
|
||||
<td><3E>Ⱓ(<28><><EFBFBD><EFBFBD>)</td>
|
||||
<td>ȸ<><C8B8><EFBFBD><EFBFBD></td>
|
||||
<td><3E>μ<EFBFBD><CEBC><EFBFBD></td>
|
||||
<td><3E><><EFBFBD><EFBFBD></td>
|
||||
<td><3E><><EFBFBD><EFBFBD></td>
|
||||
</tr>
|
||||
<%
|
||||
x_position = x_position + 34
|
||||
Dim career_date
|
||||
for i=1 to 5
|
||||
if Rs("career_date_"&i)<>"" Then
|
||||
career_date = split(Rs("career_date_"&i),",")
|
||||
Else
|
||||
ReDim career_date(1)
|
||||
career_date(0)=""
|
||||
career_date(1)=""
|
||||
End If
|
||||
%>
|
||||
<tr class="career">
|
||||
<td>
|
||||
<input type="text" name='p_career_year' id="p_career_year_<%=i %>" value='<%=Rs("career_year_"&i) %>' style="width:20px;" readonly="readonly" >
|
||||
<input type="text" name='p_career_month' id="p_career_month_<%=i %>" value='<%=Rs("career_month_"&i) %>' style="width:20px;" readonly="readonly" >
|
||||
</td>
|
||||
<td>
|
||||
<img src="/images/common/btn_reply_del.jpg" align="absmiddle" onclick="txt_clear('career','<%=i%>');" style='CURSOR:pointer;'>
|
||||
<input type="text" class="date_picker" name="p_career_st_date" id="p_career_st_date_<%=i %>" value='<%=career_date(0) %>' style="width:150px;" readonly="readonly" /> -
|
||||
<input type="text" class="date_picker" name="p_career_end_date" id="p_career_end_date_<%=i %>" value='<%=career_date(1) %>' style="width:150px;" readonly="readonly" />
|
||||
</td>
|
||||
<td><input type="text" name='p_company_name' value='<%=Rs("career_company_name_"&i) %>' style="width:150px;" ></td>
|
||||
<td><input type="text" name='p_company_part' value='<%=Rs("career_company_part_"&i) %>' style="width:100px;" ></td>
|
||||
<td><input type="text" name='p_company_part_job' value='<%=Rs("career_company_part_job_"&i) %>' style="width:100px;" ></td>
|
||||
<td><input type="text" name='p_company_part_grade' value='<%=Rs("career_company_part_grade_"&i) %>' style="width:60px;" ></td>
|
||||
</tr>
|
||||
<%
|
||||
next
|
||||
%>
|
||||
</table>
|
||||
<br>
|
||||
<table class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td width="10%" rowspan="4"><3E>Ի<EFBFBD><D4BB><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
@@ -457,7 +164,7 @@
|
||||
<input type="text" class="date_picker" name="p_krc_in_date" id="p_krc_in_date" value="<%=Rs("krc_in_date") %>" style="width:150px;text-align:right" readonly="readonly" />
|
||||
</td>
|
||||
<td width="10%" rowspan="4"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td style="text-align:center;"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td >
|
||||
<input type="text" class="date_picker" name="p_krc_out_date" id="p_krc_out_date" value="<%=Rs("krc_out_date") %>" style="width:150px;text-align:right" readonly="readonly" />
|
||||
</td>
|
||||
@@ -482,7 +189,7 @@
|
||||
%>
|
||||
</select>
|
||||
</td>
|
||||
<td><3E><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD></td>
|
||||
<td style="text-align:center;"><3E><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD></td>
|
||||
<td >
|
||||
<select name="sel_p_depart_last" id="sel_p_depart_last" >
|
||||
<option value='' >= <20><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD> =</option>
|
||||
@@ -522,7 +229,7 @@
|
||||
%>
|
||||
</select>
|
||||
</td>
|
||||
<td><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td style="text-align:center;"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td >
|
||||
<select name="sel_p_pos_last" id="sel_p_pos_last" >
|
||||
<option value='' >= <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> =</option>
|
||||
@@ -571,7 +278,7 @@
|
||||
%>
|
||||
</select>
|
||||
</td>
|
||||
<td><3E><></td>
|
||||
<td style="text-align:center;"><3E><></td>
|
||||
<td >
|
||||
<select name="sel_p_team" id="sel_p_team"><!--'<27><><EFBFBD><EFBFBD>-->
|
||||
<option value='' >= <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> =</option>
|
||||
@@ -619,7 +326,7 @@
|
||||
%>
|
||||
</select>
|
||||
</td>
|
||||
<td><3E><>å</td>
|
||||
<td style="text-align:center;"><3E><>å</td>
|
||||
<td >
|
||||
<select name='sel_p_team_place'><!--'<27><><EFBFBD>忩<EFBFBD><E5BFA9>-->
|
||||
<option value='' >= ȸ<><C8B8> <20><> <20><>å =</option>
|
||||
@@ -640,7 +347,7 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><3E><><EFBFBD><EFBFBD></td>
|
||||
<td style="text-align:center;"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td >
|
||||
<select name="sel_p_krc_job_part" id="sel_p_krc_job_part" ><!--'<27><><EFBFBD><EFBFBD>-->
|
||||
<option value='' >= ȸ<>系 <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> =</option>
|
||||
@@ -675,96 +382,24 @@
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.content -->
|
||||
<script src="//t1.daumcdn.net/mapjsapi/bundle/postcode/prod/postcode.v2.js"></script>
|
||||
<!-- REQUIRED SCRIPTS -->
|
||||
<script>
|
||||
function JuminChk(jumin){
|
||||
|
||||
var fmt = RegExp(/^\d{6}[1234]\d{6}$/);
|
||||
var buf = new Array(13);
|
||||
|
||||
if(!fmt.test(jumin)){
|
||||
alert("<22>ֹι<D6B9>ȣ <20><><EFBFBD>Ŀ<EFBFBD> <20><><EFBFBD><EFBFBD> <20>ʽ<EFBFBD><CABD>ϴ<EFBFBD>.");
|
||||
return false;
|
||||
}
|
||||
|
||||
for (var i=0; i< buf.length; i++){
|
||||
buf[i] = parseInt(jumin.charAt(i));
|
||||
}
|
||||
var multiple = [2,3,4,5,6,7,8,9,2,3,4,5];
|
||||
var sum = 0;
|
||||
|
||||
for (var i=0; i<12; i++){
|
||||
sum += (buf[i] *= multiple[i]);
|
||||
}
|
||||
|
||||
if ((11-(sum % 11)) % 10 != buf[12]){
|
||||
alert("<22>߸<EFBFBD><DFB8><EFBFBD> <20>ֹε<D6B9><CEB5>Ϲ<EFBFBD>ȣ <20>Դϴ<D4B4>.");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
function gap_save() {
|
||||
//<2F>̹<EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>ε<EFBFBD>
|
||||
//<2F><><EFBFBD><EFBFBD>
|
||||
if (chk_data() == true) {
|
||||
if($("#img_up").length > 0){
|
||||
var birth = $("#p_jumin1").val();
|
||||
var sex = $("#p_jumin2").val().charAt(0);
|
||||
var name = $("#p_name").val();
|
||||
|
||||
var img_name = birth+"_"+sex+"_"+name;
|
||||
|
||||
var formData = new FormData();
|
||||
formData.append("img_file", $("#img_up")[0].files[0]);
|
||||
formData.append("img_name", img_name);
|
||||
formData.append("ImgChk", "1");
|
||||
|
||||
img_ajax(formData);
|
||||
}
|
||||
document.frmmember.action = "personnel_card_ok.asp";
|
||||
document.frmmember.submit();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function chkLen(str) {//<2F>ֹι<D6B9>ȣ <20><><EFBFBD><EFBFBD> Ȯ<><C8AE>
|
||||
if (allTrim(str).length == 6) {
|
||||
document.frmmember.txt_jumin2.focus();
|
||||
}
|
||||
}
|
||||
|
||||
function chk_data() {
|
||||
var information_p;
|
||||
$(".information_p input:not(#img_up)").each(function () {
|
||||
if ($(this).prop("disabled") == false) {
|
||||
if ($(this).val() == "") {
|
||||
information_p = false;
|
||||
return false;
|
||||
} else {
|
||||
information_p = true;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
})
|
||||
if (information_p == false) {
|
||||
alert("<22>⺻ <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.(<28><><EFBFBD><EFBFBD>, <20>ֹι<D6B9>ȣ, <20><>ȭ <20><><EFBFBD><EFBFBD>)");
|
||||
if ($("#p_name").val() == "") {
|
||||
alert("<22><><EFBFBD><EFBFBD>(<28>ѱ<EFBFBD>)<29><> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
$("#p_name").focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($("#p_jumin1").val().toString().length != 6) {
|
||||
alert("<22>ֹι<D6B9>ȣ<EFBFBD><C8A3> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ٽ<EFBFBD> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($("#p_jumin2").val().toString().length != 7) {
|
||||
alert("<22>ֹι<D6B9>ȣ<EFBFBD><C8A3> <20><> 7<>ڸ<EFBFBD><DAB8><EFBFBD> <20>ٽ<EFBFBD> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($(".address input").val() == "") {
|
||||
alert("<22>ּҸ<D6BC> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (($("#p_krc_tel").val() == "" ) || ($("#p_krc_ip").val() == "" ) || ($("#p_krc_tel_ip").val() == "" ) ){
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD>ý<EFBFBD><C3BD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
@@ -776,50 +411,6 @@
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($("#military_x").is(":checked") == false) {
|
||||
if ($("#military_exmption").is(":checked") == true && $("#p_military_2").val() == "") {
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
return false;
|
||||
}
|
||||
if ($("#military_exmption").is(":checked") == false && $(".military_tr1 input").val() == "") {
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
var lincense;
|
||||
$(".license").each(function (i) {
|
||||
if ($("input[name=p_license_date]:eq(" + i + ")").val() != "") {
|
||||
if ($("input[name=p_license_name]:eq(" + i + ")").val() == "") {
|
||||
lincense = false;
|
||||
return false;
|
||||
} else {
|
||||
lincense = true;
|
||||
}
|
||||
}
|
||||
});
|
||||
if (lincense == false) {
|
||||
alert("<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
return false;
|
||||
}
|
||||
|
||||
var career;
|
||||
$(".career").each(function (i) {
|
||||
if ($("input[name=p_career_st_date]:eq(" + i + ")").val() != "") {
|
||||
if ($("input[name=p_career_end_date]:eq(" + i + ")").val() == "" ) {
|
||||
career = false;
|
||||
return false;
|
||||
} else {
|
||||
career = true;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
if (career == false) {
|
||||
alert("<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($("#p_krc_in_date").val() == "" || $("#sel_p_depart_first").val() == "" || $("#sel_p_pos_first").val() == "") {
|
||||
alert("<22>Ի<EFBFBD><D4BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
return false;
|
||||
@@ -850,149 +441,22 @@
|
||||
return true;
|
||||
}
|
||||
//##### <20>ּ<EFBFBD> <20>˻<EFBFBD>
|
||||
function win_open(x) {
|
||||
new daum.Postcode({
|
||||
oncomplete: function (data) {
|
||||
$("input[name=p_zip_code" + x + "]").val((data.postcode != "" ? data.postcode.replace('-', '') : data.zonecode));
|
||||
if (data.userSelectedType == 'R') {
|
||||
$("input[name=p_address" + x + "_1]").val(data.roadAddress + " " + data.buildingName + "");
|
||||
} else {
|
||||
$("input[name=p_address" + x + "_1]").val(data.jibunAddress + " " + data.buildingName + "");
|
||||
}
|
||||
//console.log(data);
|
||||
}
|
||||
}).open();
|
||||
}
|
||||
|
||||
//img check
|
||||
function img_chk(){
|
||||
var img = new Image();
|
||||
|
||||
var url = '/images/management/img/<%=jumin(0)%>_<%=left(jumin(1),1) %>_<%=Rs("p_name")%>.jpg';
|
||||
img.src = url
|
||||
|
||||
img.onload = function(){
|
||||
$("#p_img").attr("src", url);
|
||||
}
|
||||
|
||||
img.onerror = function(){
|
||||
$("#p_img").attr("src", '/images/management/img_up.png');
|
||||
}
|
||||
}
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD> ÷<><C3B7>
|
||||
function img_attach(e){
|
||||
|
||||
$(".file_btn").empty();
|
||||
|
||||
var files = this.files[0];
|
||||
|
||||
var reader = new FileReader();
|
||||
|
||||
reader.onload = function(f){
|
||||
var img = new Image();
|
||||
img.src = f.target.result;
|
||||
img.width = 120;
|
||||
img.height = 150;
|
||||
$(".file_btn").append("<a href=\"javascript:void(0);\" onclick=\"img_delete(\'" + files.name + "\')\" id=\"file_id\" class=\"file_id\"><img src=\'"+ f.target.result + "\' dtata-file = '" + files.name + "' class='sel_file' title='<27><><EFBFBD><EFBFBD>' style='width:100%;'></a>");
|
||||
|
||||
}
|
||||
|
||||
reader.readAsDataURL(files);
|
||||
|
||||
}
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
function img_delete(index){
|
||||
var agent = navigator.userAgent.toLowerCase();
|
||||
|
||||
if(confirm(index+"<22><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?")){
|
||||
$(".file_btn").empty();
|
||||
|
||||
$(".file_btn").append("<img src=\"/images/management/img_up.png\" id=\"p_img\" style=\"width:100%;cursor:pointer;\" title=\"<22>̹<EFBFBD><CCB9><EFBFBD> <20><><EFBFBD>ε<EFBFBD>(click)\" onclick=\"document.all.img_up.click();\">");
|
||||
|
||||
if (agent.indexOf("msie") != -1) { // ie <20>϶<EFBFBD>
|
||||
$("#img_up").replaceWith( $("#img_up").clone(true) );
|
||||
} else { // <20><EFBFBD>
|
||||
$("#img_up").val("");
|
||||
}
|
||||
|
||||
alert("<22><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD>");
|
||||
}else{
|
||||
alert("<22><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD>");
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function img_ajax(data){
|
||||
var chk
|
||||
$.ajax({
|
||||
url:"personnel_card_img_ajax.asp",
|
||||
enctype:'multipart/form-data',
|
||||
type:"POST",
|
||||
data:data,
|
||||
cache: false,
|
||||
async: false,
|
||||
contentType: false,
|
||||
processData: false,
|
||||
success:function(res){
|
||||
chk = res;
|
||||
},
|
||||
error:function(res){
|
||||
chk = '9';
|
||||
}
|
||||
});
|
||||
return chk;
|
||||
}
|
||||
|
||||
$(function () {
|
||||
img_chk();
|
||||
|
||||
$("#img_up").click(function(e){
|
||||
if($("#p_jumin1").val() == "" || $("#p_jumin2").val() == ""){
|
||||
alert("<22><><EFBFBD><EFBFBD>, <20>ֹι<D6B9>ȣ<EFBFBD><C8A3> <20>Է<EFBFBD> <20><> <20>Ϸ<EFBFBD> <20><><EFBFBD>ֽʽÿ<CABD>..");
|
||||
return false;
|
||||
}else{
|
||||
$("#img_up").off().on("change", img_attach);
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
$("#p_military_2").prop('disabled', true);
|
||||
$("#p_military_2").css('background', "gray");
|
||||
|
||||
//<2F>ѱ<EFBFBD><D1B1>Է<EFBFBD> <20>ȵǰ<C8B5> ó<><C3B3>
|
||||
$(".en_num_cls").keydown(function (event) {
|
||||
var inputVal = $(this).val();
|
||||
$(this).css('ime-mode', 'disabled');
|
||||
$(this).val(inputVal.replace(/[<EFBFBD><EFBFBD>-<2D><>|<7C><>-<2D><>|<7C><>-ȹ]/gi, ''));
|
||||
inputVal.replace(/[\u3131-\u314E\u314F-\u3163\uAC00-\uD7A3]/g, '')
|
||||
});
|
||||
|
||||
//<2F><>ȥ<EFBFBD><C8A5><EFBFBD><EFBFBD>
|
||||
$("input[name=p_marriage]").click(function () {
|
||||
var p_marriage = $(this).val();
|
||||
if (p_marriage == "<22><>ȥ") {
|
||||
$("input[name=p_marriage_date]").prop("disabled", true);
|
||||
$("input[name=p_marriage_date]").css("background", "gray");
|
||||
$("input[name=p_marriage_date]").val("");
|
||||
} else {
|
||||
$("input[name=p_marriage_date]").prop("disabled", false);
|
||||
$("input[name=p_marriage_date]").css("background", "");
|
||||
}
|
||||
});
|
||||
|
||||
//<2F>ּ<EFBFBD>
|
||||
$("#add_img").click(function () {
|
||||
if ($("#p_zip_code1").val() != "") {
|
||||
$("#p_zip_code2").val($("#p_zip_code1").val());
|
||||
$("#p_address2_1").val($("#p_address1_1").val());
|
||||
$("#p_address2_2").val($("#p_address1_2").val());
|
||||
} else {
|
||||
alert("<22>ֹε<D6B9><CEB5>ϻ<EFBFBD><CFBB><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
//Jquery Dialog(Modal)
|
||||
$("#p_search").click(function () {
|
||||
@@ -1132,248 +596,16 @@
|
||||
eamil_check($("#sel_mail").val());
|
||||
});
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
$("#military_x").click(function () {
|
||||
var military_x = $(this);
|
||||
if (military_x.prop('checked')) {
|
||||
$(".military input").each(function () {
|
||||
if ($(this).prop("name") != "p_military_type") {
|
||||
$(this).prop('disabled', true);
|
||||
$(".military input:checkbox").prop('checked', false);
|
||||
$(this).css('background', "gray");
|
||||
$(this).val("");
|
||||
}
|
||||
$("#p_military_type").val("<22>ش<EFBFBD><D8B4><EFBFBD><EFBFBD><EFBFBD>");
|
||||
$("#p_military_type").prop("readonly", true);
|
||||
});
|
||||
} else {
|
||||
$("#p_military_type").prop("readonly", false);
|
||||
$("#military_exmption").prop("disabled", false);
|
||||
$(".military_tr1 input").prop('disabled', false);
|
||||
$(".military_tr1 input").css('background', "");
|
||||
$(".military_tr1 input").val("");
|
||||
}
|
||||
});
|
||||
|
||||
<%If Rs("military_type")="<22>ش<EFBFBD><D8B4><EFBFBD><EFBFBD><EFBFBD>" Then %>
|
||||
$(".military input").each(function () {
|
||||
if ($(this).prop("name") != "p_military_type") {
|
||||
$(this).prop('disabled', true);
|
||||
$(".military input:checkbox").prop('checked', false);
|
||||
$(this).css('background', "gray");
|
||||
$(this).val("");
|
||||
}
|
||||
$("#p_military_type").prop("readonly", true);
|
||||
});
|
||||
<%End If%>
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD>)
|
||||
$("#military_exmption").click(function () {
|
||||
var military_exmption = $(this);
|
||||
if (military_exmption.prop('checked')) {
|
||||
$("#p_military_2").prop('disabled', false);
|
||||
$("#p_military_2").css('background', "");
|
||||
|
||||
$(".military_tr1 input").each(function () {
|
||||
if ($(this).prop("name") != "p_military_type") {
|
||||
$(this).prop('disabled', true);
|
||||
$(this).css('background', "gray");
|
||||
$(this).val("");
|
||||
}
|
||||
$("#p_military_type").val("<22><><EFBFBD><EFBFBD>");
|
||||
$("#p_military_type").prop("readonly", true);
|
||||
});
|
||||
} else {
|
||||
$("#p_military_type").prop("readonly", false);
|
||||
$("#p_military_2").prop('disabled', true);
|
||||
$("#p_military_2").css('background', "gray");
|
||||
$("#p_military_2").val("");
|
||||
|
||||
$(".military_tr1 input").prop('disabled', false);
|
||||
$(".military_tr1 input").css('background', "");
|
||||
$(".military_tr1 input").val("");
|
||||
}
|
||||
});
|
||||
|
||||
<%If Rs("military_type")="<22><><EFBFBD><EFBFBD>" Then %>
|
||||
$("#p_military_2").prop('disabled', false);
|
||||
$("#p_military_2").css('background', "");
|
||||
|
||||
$(".military_tr1 input").each(function () {
|
||||
if ($(this).prop("name") != "p_military_type") {
|
||||
$(this).prop('disabled', true);
|
||||
$(this).css('background', "gray");
|
||||
$(this).val("");
|
||||
}
|
||||
$("#p_military_type").prop("readonly", true);
|
||||
});
|
||||
<%End If%>
|
||||
|
||||
|
||||
$("input[name=p_military_1]").click(function () {
|
||||
var st_date = $("input[name=military_service_st]").val().split('-');
|
||||
var end_date = $("input[name=military_service_end]").val().split('-');
|
||||
|
||||
var date1 = new Date(st_date[0], st_date[1]);
|
||||
var date2 = new Date(end_date[0], end_date[1]);
|
||||
|
||||
if (date1 > date2) {
|
||||
alert("<22>Ⱓ <20>Է<EFBFBD><D4B7><EFBFBD> <20>߸<EFBFBD> <20>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
|
||||
var end_date = $("input[name=military_service_end]").val("");
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
//<2F>з<EFBFBD> <20>Ⱓ
|
||||
$("input[name=p_edu_end_date]").each(function (i) {
|
||||
$("input[name=p_edu_name]:Eq(" + i + ")").click(function () {
|
||||
var st_date = $("input[name=p_edu_st_date]:Eq(" + i + ")").val().split('-');
|
||||
var end_date = $("input[name=p_edu_end_date]:Eq(" + i + ")").val().split('-');
|
||||
|
||||
var date1 = new Date(st_date[0], st_date[1]);
|
||||
var date2 = new Date(end_date[0], end_date[1]);
|
||||
|
||||
if (date1 > date2) {
|
||||
alert("<22>Ⱓ <20>Է<EFBFBD><D4B7><EFBFBD> <20>߸<EFBFBD> <20>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
|
||||
var end_date = $("input[name=p_edu_end_date]:Eq(" + i + ")").val("");
|
||||
return false;
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
$("#p_jumin1").off().on("keyup",function(){
|
||||
if($(this).val().length == 6)
|
||||
{
|
||||
$("#p_jumin1").blur();
|
||||
$("#p_jumin2").focus();
|
||||
}
|
||||
});
|
||||
|
||||
$("#jumin_chk").on("click", function(){
|
||||
var jumin1 = $("#p_jumin1").val();
|
||||
var jumin2 = $("#p_jumin2").val();
|
||||
|
||||
if(jumin1 == "" || jumin2 == ""){
|
||||
alert("<22>ֹι<D6B9>ȣ<EFBFBD><C8A3> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
jumin1 == "" ? $("#p_jumin1").focus() : $("#p_jumin2").focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if(JuminChk(jumin1+jumin2) == false){
|
||||
$("#jumin_ok").val("0");
|
||||
return false;
|
||||
}
|
||||
|
||||
$("#p_jumin1").after("<span>"+$("#p_jumin1").val()+"</span>");
|
||||
//var pattern = /(?<=.{1})./gi;
|
||||
var pattern = /.{6}$/;;
|
||||
jumin2 = jumin2.replace(pattern, '******');
|
||||
$("#p_jumin2").after("<span>"+jumin2+"</span>");
|
||||
$("#p_jumin1").attr("type","hidden");
|
||||
$("#p_jumin2").attr("type","hidden");
|
||||
$("#jumin_ok").val("1");
|
||||
$("#jumin_chk").replaceWith("<i class='ui-icon ui-icon-check'></i><i style=\"color:red;\"><3E><><EFBFBD><EFBFBD><EFBFBD>Ϸ<EFBFBD></i>");
|
||||
});
|
||||
|
||||
|
||||
//<2F><><EFBFBD>º<EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
$("input[name=p_career_end_date]").each(function (i) {
|
||||
$(this).on("change",function(){
|
||||
//$("input[name=p_company_name]:Eq(" + i + ")").click(function () {
|
||||
|
||||
if ($("input[name=p_career_st_date]:Eq(" + i + ")").val() == "" || $("input[name=p_career_end_date]:Eq(" + i + ")") == "") {
|
||||
alert("<22>Ⱓ<EFBFBD><E2B0A3> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
return false;
|
||||
}
|
||||
|
||||
$("input[name=p_career_year_sum]").val("0");
|
||||
$("input[name=p_career_month_sum]").val("0");
|
||||
|
||||
var st_date = $("input[name=p_career_st_date]:Eq(" + i + ")").val().split('-');
|
||||
var end_date = $("input[name=p_career_end_date]:Eq(" + i + ")").val().split('-');
|
||||
|
||||
var date1 = new Date(st_date[0], st_date[1]);
|
||||
var date2 = new Date(end_date[0], end_date[1]);
|
||||
|
||||
if (date1 > date2) {
|
||||
alert("<22>Ⱓ <20>Է<EFBFBD><D4B7><EFBFBD> <20>߸<EFBFBD> <20>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
|
||||
var end_date = $("input[name=p_career_end_date]:Eq(" + i + ")").val("");
|
||||
return false;
|
||||
}
|
||||
|
||||
var diff1 = end_date[0] - st_date[0];
|
||||
var diff2 = (diff1 * 12 + end_date[1] * 1) - st_date[1];
|
||||
|
||||
var diff_year = parseInt(diff2 / 12);
|
||||
var diff_month = parseInt(diff2 % 12);
|
||||
|
||||
if (st_date = "" || end_date == "") {
|
||||
$("input[name=p_career_year]:eq(" + i + ")").val("");
|
||||
$("input[name=p_career_month]:eq(" + i + ")").val("");
|
||||
}
|
||||
|
||||
$("input[name=p_career_year]:eq(" + i + ")").val(diff_year);
|
||||
$("input[name=p_career_month]:eq(" + i + ")").val(diff_month);
|
||||
|
||||
var a=0;
|
||||
var b=0;
|
||||
$("input[name=p_career_year]").each(function(e){
|
||||
if($(this).val() != ""){
|
||||
a += parseInt($(this).val());
|
||||
b += parseInt($("input[name=p_career_month]").eq(e).val());
|
||||
}
|
||||
});
|
||||
y_m_sum(a, b);
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
//<2F><> <20><>,<2C><><EFBFBD><EFBFBD>
|
||||
function y_m_sum(yy, mm) {
|
||||
var yy = parseInt(yy);
|
||||
var mm = parseInt(mm);
|
||||
var y_sum = parseInt($("input[name=p_career_year_sum]").val()) || 0;
|
||||
var m_sum = parseInt($("input[name=p_career_month_sum]").val()) || 0;
|
||||
|
||||
y_sum = y_sum + yy;
|
||||
m_sum = m_sum + mm;
|
||||
|
||||
if (m_sum > 11) {
|
||||
y_sum = y_sum + (parseInt(m_sum / 12));
|
||||
m_sum = m_sum - ((parseInt(m_sum / 12)) * 12);
|
||||
}
|
||||
|
||||
$("input[name=p_career_year_sum]").val(y_sum);
|
||||
$("input[name=p_career_month_sum]").val(m_sum);
|
||||
}
|
||||
|
||||
//<2F><EFBFBD>
|
||||
$(".date_picker").addClass("text-center");
|
||||
$(".date_picker").addClass("text-center");
|
||||
$(".date_picker").each(function () {
|
||||
var tag_name = $(this).prop("name");
|
||||
var d_format;
|
||||
if (tag_name == "p_military_service_st" || tag_name == "p_military_service_end" || tag_name == "p_license_date" || tag_name == "p_edu_st_date" || tag_name == "p_edu_end_date" || tag_name == "p_career_st_date" || tag_name == "p_career_end_date") {
|
||||
d_format = "yy-mm";
|
||||
} else {
|
||||
d_format = "yy-mm-dd";
|
||||
}
|
||||
$(this).
|
||||
changeYear: true,
|
||||
changeMonth: true,
|
||||
prevText: '<27><><EFBFBD><EFBFBD> <20><>',
|
||||
nextText: '<27><><EFBFBD><EFBFBD> <20><>',
|
||||
yearRange: '1900:+10',
|
||||
dateFormat: d_format,
|
||||
monthNames: ['1<><31>', '2<><32>', '3<><33>', '4<><34>', '5<><35>', '6<><36>', '7<><37>', '8<><38>', '9<><39>', '10<31><30>', '11<31><31>', '12<31><32>'],
|
||||
monthNamesShort: ['1<><31>', '2<><32>', '3<><33>', '4<><34>', '5<><35>', '6<><36>', '7<><37>', '8<><38>', '9<><39>', '10<31><30>', '11<31><31>', '12<31><32>'],
|
||||
showMonthAfterYear: true,
|
||||
yearSuffix: '<27><>'
|
||||
});
|
||||
$(this).datepicker();
|
||||
});
|
||||
|
||||
$("#sel_p_depart").change(function(){
|
||||
var d_code = $(this).val();
|
||||
var txt2 = "<option value='' >= <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> =</option>";
|
||||
var sel_html = $(this).html();
|
||||
$("#sel_p_depart_last").val($(this).val());
|
||||
$.ajax({
|
||||
|
||||
@@ -124,28 +124,28 @@
|
||||
|
||||
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(6) = ""
|
||||
gap(7) = ""
|
||||
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(8) = ""
|
||||
gap(9) = ""
|
||||
gap(10) = ""
|
||||
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(13) = ""
|
||||
gap(14) = ""
|
||||
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(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) = ""
|
||||
gap(24) = ""
|
||||
gap(25) = ""
|
||||
gap(26) = ""
|
||||
gap(27) = ""'request("txt_height")
|
||||
gap(28) = ""'request("txt_weight")
|
||||
gap(29) = ""'request("txt_eyesight_left")
|
||||
@@ -257,42 +257,32 @@
|
||||
|
||||
'<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)
|
||||
gap(62 + (i-1) * 4) = ""
|
||||
gap(63 + (i-1) * 4) = ""
|
||||
gap(64 + (i-1) * 4) = ""
|
||||
gap(65 + (i-1) * 4) = ""
|
||||
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)
|
||||
gap(74 + (i-1) * 5) = ""
|
||||
gap(75 + (i-1) * 5) = ""
|
||||
gap(76 + (i-1) * 5) = ""
|
||||
gap(77 + (i-1) * 5) = ""
|
||||
gap(78 + (i-1) * 5) = ""
|
||||
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")
|
||||
gap(99) = ""
|
||||
gap(100) = ""
|
||||
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)
|
||||
gap(101 + (i-1) * 7) = ""
|
||||
gap(102 + (i-1) * 7) = ""
|
||||
gap(103 + (i-1) * 7) = ""
|
||||
gap(104 + (i-1) * 7) = ""
|
||||
gap(105 + (i-1) * 7) = ""
|
||||
gap(106 + (i-1) * 7) = ""
|
||||
gap(107 + (i-1) * 7) = ""
|
||||
next
|
||||
|
||||
|
||||
@@ -327,8 +317,8 @@
|
||||
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(169) = ""'<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD>,
|
||||
gap(170) = ""'<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>
|
||||
|
||||
@@ -157,12 +157,12 @@ Case "ContactList"
|
||||
query = query &" isnull(PCode,'') PCode, isnull(PTeam,'') PTeam, p_sn, p_subject, p_cli_company_nm, '' as p_method, ''as p_sample ,"&VbCrlf
|
||||
query = query &" p_cont_cost, isnull(p_total_cost,0) as p_total_cost, '' as pc_con_cost, '' as sum_est, '' as rate_est, '' as sum_act, '' as rate_act, "&VbCrlf
|
||||
query = query &" '' as r_est, '' as r_act, '' as f_est, '' as f_act, convert(varchar(10), p_decide_date,23) p_decide_date,"&VbCrlf
|
||||
query = query &" '' as p_con_date_st, '' as p_con_date_end, p_state, '' as r_user, '' as f_user, p_input_user, p_name, convert(varchar(10), p_input_dt,23) p_input_dt, '' as p_input_progress from"&VbCrlf
|
||||
query = query &" '' as p_con_date_st, '' as p_con_date_end, p_state, '' as r_user, '' as f_user, p_input_user, p_name, convert(varchar(10), p_input_dt,23) p_input_dt, '' as p_input_progress, p_project_type_cd from"&VbCrlf
|
||||
query = query &" ("&VbCrlf
|
||||
query = query &" select f.Code as PCode, f.T_Name as PTeam,T.* from"&VbCrlf
|
||||
query = query &" ("&VbCrlf
|
||||
query = query &" select p_sn, p_subject, a.p_cli_company_cd, b.p_cli_company_nm, p_total_cost, p_obtain_cost,"&VbCrlf
|
||||
query = query &" p_cont_cost, p_decide_date, a.p_input_dt, a.p_input_user, e.p_name,"&VbCrlf
|
||||
query = query &" p_cont_cost, p_decide_date, a.p_input_dt, a.p_input_user, e.p_name, a.p_project_type_cd,"&VbCrlf
|
||||
query = query &" case p_state"&VbCrlf
|
||||
query = query &" when 'E' then '<27><><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD>)'"&VbCrlf
|
||||
query = query &" when 'K' then '<27><><EFBFBD><EFBFBD>'"&VbCrlf
|
||||
@@ -205,7 +205,7 @@ Case "ContactList"
|
||||
query = query &" END "&VbCrLf
|
||||
query = query &" ELSE '' "&VbCrLf
|
||||
query = query &" END + "&VbCrLf
|
||||
query = query &" CASE WHEN left(p_input_complete, 1) = 'x' OR substring(p_input_complete, 2, 1) = 'x' THEN '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>Է<EFBFBD>' ELSE '' END AS p_input_progress "&VbCrLf
|
||||
query = query &" CASE WHEN left(p_input_complete, 1) = 'x' OR substring(p_input_complete, 2, 1) = 'x' THEN '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>Է<EFBFBD>' ELSE '' END AS p_input_progress, p_project_type_cd "&VbCrLf
|
||||
query = query &" from"&VbCrlf
|
||||
query = query &" ("&VbCrlf
|
||||
query = query &" SELECT p_field_dept, p_is_dept,"&VbCrlf
|
||||
@@ -235,7 +235,7 @@ Case "ContactList"
|
||||
query = query &" ISNULL(TPM.p_research_complete, 0) AS p_research_complete,"&VbCrlf
|
||||
query = query &" ISNULL(TPM.p_field_complete, 0) AS p_field_complete,"&VbCrlf
|
||||
query = query &" ISNULL(TPM.p_dp_complete, 0) AS p_dp_complete,"&VbCrlf
|
||||
query = query &" TPM.p_sn, RU.p_name as r_user, FU.p_name as f_user, VP.p_name, TPB.p_input_user, TPM.p_input_dt,"&VbCrlf
|
||||
query = query &" TPM.p_sn, RU.p_name as r_user, FU.p_name as f_user, VP.p_name, TPB.p_input_user, TPM.p_input_dt, TPB.p_project_type_cd,"&VbCrlf
|
||||
query = query &" case p_progress_status when '008' then case when p_research_complete='1' and p_field_complete='1' and p_dp_complete='1' then '<27>Ϸ<EFBFBD>' else '<27><><EFBFBD><EFBFBD>' end else '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' end p_state"&VbCrlf
|
||||
query = query &" FROM project2.dbo.T_PROJECT_METHOD TPM LEFT JOIN"&VbCrlf
|
||||
query = query &" project2.dbo.T_PROJECT_BASE TPB on TPM.p_sn = TPB.p_sn LEFT JOIN"&VbCrlf
|
||||
@@ -370,6 +370,7 @@ Case "ContactList"
|
||||
Contact("p_con_date_st") = rsc("p_con_date_st")
|
||||
Contact("p_con_date_end") = rsc("p_con_date_end")
|
||||
Contact("p_state") = rsc("p_state")
|
||||
Contact("p_project_type_cd") = rsc("p_project_type_cd")
|
||||
If rsc("p_name") = "" then
|
||||
Contact("p_input_user") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
Else
|
||||
|
||||
@@ -69,6 +69,7 @@
|
||||
<tr>
|
||||
<th class="t_label select-filter"><3E>μ<EFBFBD></th>
|
||||
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></th>
|
||||
<th class="t_label select-filter">ȸ<><C8B8></th>
|
||||
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ<EFBFBD></th>
|
||||
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><></th>
|
||||
<th class="t_label select-filter">Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ <20><></th>
|
||||
@@ -105,15 +106,15 @@
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.content -->
|
||||
<!-- REQUIRED SCRIPTS -->
|
||||
<script>
|
||||
<!-- REQUIRED SCRIPTS -->
|
||||
<script>
|
||||
function numberPad(n, width) {
|
||||
n = n + '';
|
||||
return n.length >= width ? n : new Array(width - n.length + 1).join('0') + n;
|
||||
}
|
||||
var ColArr=[];
|
||||
$(document).ready(function(){
|
||||
|
||||
|
||||
if ($.cookie("p_column") != undefined){
|
||||
var p_column = $.cookie("p_column").split(',');
|
||||
for(var i=0; i<p_column.length; i++){
|
||||
@@ -171,7 +172,7 @@
|
||||
return commify(data);
|
||||
};
|
||||
var colNumCost = function(data, type, row, meta){
|
||||
return type !== "sort" ? commify(data) + (data != "" ? " <20><>": "") : data;
|
||||
return data;
|
||||
};
|
||||
var colNumRate = function(data, type, row, meta){
|
||||
return commify(data, true) + (data != "" ? " %": "");
|
||||
@@ -181,17 +182,19 @@
|
||||
ajax:{
|
||||
"type": "POST",
|
||||
"url": "project_AjaxSelect.asp",
|
||||
|
||||
"dataType": "JSON",
|
||||
"data":{
|
||||
"Flag":"ContactList",
|
||||
sdate: function(){ if($("#p_sdate").val() !=undefined){return $("#p_sdate").val()}else{ return now.getFullYear()+"-"+month+"-01" }},
|
||||
"Flag":"ContactList",
|
||||
sdate: function(){ if($("#p_sdate").val() !=undefined){return $("#p_sdate").val()}else{ return now.getFullYear()+"-"+month+"-01" }},
|
||||
edate: function(){ if($("#p_edate").val() !=undefined){return $("#p_edate").val()}else{ return ( new Date( now.getFullYear(), now.getMonth()+1, 0) ).getDate() }},
|
||||
Depart: function(){return $("#DepartAll").val() }
|
||||
},
|
||||
},
|
||||
},
|
||||
columns:[
|
||||
{"data": "Team", "class":"txt dt-body-center details-control"},
|
||||
{"data": "p_state", "class":"txt dt-body-center"},
|
||||
{"data": "p_project_type_cd", "class":"txt dt-body-center"},
|
||||
{"data": "p_sn", "class":"txt dt-body-center"},
|
||||
{"data": "p_subject", "class":"txt dt-body-left"},
|
||||
{"data": "p_cli_company_nm", "class":"txt dt-body-center"},
|
||||
@@ -220,13 +223,13 @@
|
||||
columnDefs: [
|
||||
{"className": "dt-head-center dt-body-center psn", "targets": "_all"},
|
||||
{"visible": false, "targets": ColArr}
|
||||
|
||||
|
||||
],
|
||||
createRow: function(row, data, index){
|
||||
$(row).addClass('hov');
|
||||
},
|
||||
fixedColumns: {
|
||||
leftColumns: 3
|
||||
leftColumns: 4
|
||||
},
|
||||
dom:'lBfrtip',
|
||||
scrollX: true,
|
||||
@@ -235,7 +238,7 @@
|
||||
language:lang_kor,
|
||||
paging:false,
|
||||
pageLength: 50,
|
||||
order: [[ 2, "asc" ]],
|
||||
order: [[ 3, "asc" ]],
|
||||
cache: false,
|
||||
buttons: [
|
||||
{
|
||||
@@ -253,16 +256,16 @@
|
||||
postfixButtons: [ 'colvisRestore' ]
|
||||
},
|
||||
],
|
||||
filterDropDown: {
|
||||
filterDropDown: {
|
||||
columns: [
|
||||
{
|
||||
{
|
||||
idx: 0
|
||||
},
|
||||
{
|
||||
{
|
||||
idx: 1
|
||||
},
|
||||
{
|
||||
idx: 5
|
||||
{
|
||||
idx: 6
|
||||
}
|
||||
],
|
||||
},
|
||||
@@ -270,10 +273,10 @@
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
$("#ContactList_filterWrapper").append(hh);
|
||||
|
||||
|
||||
|
||||
$(document).off("click", ".buttons-columnVisibility").on("click", ".buttons-columnVisibility", function(e){
|
||||
if($(this).hasClass("active")){
|
||||
var idx = ColArr.indexOf($(this).index());
|
||||
@@ -285,7 +288,7 @@
|
||||
}
|
||||
$.cookie("p_column",ColArr);
|
||||
});
|
||||
|
||||
|
||||
$(document).off("click", ".buttons-colvisRestore").on("click", ".buttons-colvisRestore", function(){
|
||||
if(confirm("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>÷<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ʱ<EFBFBD>ȭ <20>˴ϴ<CBB4>.")){
|
||||
$.removeCookie("p_column");
|
||||
@@ -340,13 +343,13 @@
|
||||
});
|
||||
|
||||
$(document).off("mouseover", "tbody > tr[role=row]").on("mouseover", "tbody > tr[role=row]", function(e){
|
||||
$(".DTFC_Cloned tbody > tr[role=row]").eq($(this).index()).css("background-color","#e9e9e9");
|
||||
$("tbody > tr[role=row]").eq($(this).index()).css("background-color","#e9e9e9");
|
||||
$(".DTFC_Cloned tbody > tr[role=row]").eq($(this).index()).css("background-color","#e9e9e9");
|
||||
$("tbody > tr[role=row]").eq($(this).index()).css("background-color","#e9e9e9");
|
||||
});
|
||||
|
||||
$(document).off("mouseout", "tbody > tr[role=row]").on("mouseout", "tbody > tr[role=row]", function(){
|
||||
$(".DTFC_Cloned tbody > tr[role=row]").eq($(this).index()).css("background-color","#ffffff");
|
||||
$("tbody > tr[role=row]").eq($(this).index()).css("background-color","#ffffff");
|
||||
$(".DTFC_Cloned tbody > tr[role=row]").eq($(this).index()).css("background-color","#ffffff");
|
||||
$("tbody > tr[role=row]").eq($(this).index()).css("background-color","#ffffff");
|
||||
});
|
||||
|
||||
$("#p_sdate").datepicker();
|
||||
@@ -370,21 +373,21 @@
|
||||
function TableFilter(){
|
||||
$("#ContactList_filterSelect0").empty();
|
||||
$("#ContactList_filterSelect1").empty();
|
||||
$("#ContactList_filterSelect5").empty();
|
||||
$("#ContactList_filterSelect6").empty();
|
||||
|
||||
$("#ContactList_filterSelect0").append("<option value=''><3E>μ<EFBFBD></option>");
|
||||
$.each(unique($.map(table.ajax.json().data, function(o){ return o.Team; })).sort(), function(i, o){
|
||||
$("#ContactList_filterSelect0").append("<option value='"+o+"'>"+o+"</option>");
|
||||
});
|
||||
|
||||
|
||||
$("#ContactList_filterSelect1").append("<option value=''><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></option>");
|
||||
$.each(unique($.map(table.ajax.json().data, function(o){ return o.p_state; })).sort(), function(i, o){
|
||||
$("#ContactList_filterSelect1").append("<option value='"+o+"'>"+o+"</option>");
|
||||
});
|
||||
|
||||
$("#ContactList_filterSelect5").append("<option value=''><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></option>");
|
||||
$("#ContactList_filterSelect6").append("<option value=''><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></option>");
|
||||
$.each(unique($.map(table.ajax.json().data, function(o){ return o.p_method; })).sort(), function(i, o){
|
||||
$("#ContactList_filterSelect5").append("<option value='"+o+"'>"+o+"</option>");
|
||||
$("#ContactList_filterSelect6").append("<option value='"+o+"'>"+o+"</option>");
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -17,24 +17,42 @@
|
||||
<table class="table table-sm table-bordered" style="font-size:13px;">
|
||||
<thead>
|
||||
<tr>
|
||||
<td align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD>ڵ<EFBFBD></td>
|
||||
<td align="center" width="430px"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE></td>
|
||||
<td align="center"><3E>ۼ<EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center"><3E>ۼ<EFBFBD><DBBC><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center" onclick="gwanshic(tbody01,0);" style="cursor:pointer"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD>ڵ<EFBFBD></td>
|
||||
<td align="center" width="410px" onclick="gwanshic(tbody01,1);" style="cursor:pointer"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE></td>
|
||||
<td align="center" width="60px" onclick="gwanshic(tbody01,2);" style="cursor:pointer"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center" width="90px" onclick="gwanshic(tbody01,3);" style="cursor:pointer"><3E>μ<EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center" width="50px" onclick="gwanshic(tbody01,4);" style="cursor:pointer"><3E>ۼ<EFBFBD><DBBC><EFBFBD></td>
|
||||
<td align="center" width="90px" onclick="gwanshic(tbody01,5);" style="cursor:pointer"><3E>ۼ<EFBFBD><DBBC><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center" colspan='2'><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center" colspan='2'><3E><><EFBFBD><EFBFBD> <20><>ü<EFBFBD><C3BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20><>ü<EFBFBD><C3BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center" width="430px"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td align="center" width="350px" onclick="gwanshic(tbody01,10);" style="cursor:pointer"><3E><><EFBFBD><EFBFBD></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="tbody01">
|
||||
<%
|
||||
Function GetLastApprovalDate(target100)
|
||||
Dim arr, i, result
|
||||
result = ""
|
||||
If target100 <> "" Then
|
||||
arr = Split(target100, "^^")
|
||||
For i = UBound(arr) To 0 Step -1
|
||||
If Trim(arr(i)) <> "" And Trim(arr(i)) <> "/" Then
|
||||
result = Trim(arr(i))
|
||||
Exit For
|
||||
End If
|
||||
Next
|
||||
End If
|
||||
GetLastApprovalDate = result
|
||||
End Function
|
||||
sql=""&VbCrlf
|
||||
sql=sql&" SELECT M.p_sn, p_subject, p_method_cd, d_write_name AS p_name, d_write_date, "&VbCrlf
|
||||
sql=sql&" SELECT M.p_sn, p.p_subject, VD.T_name AS dept_name, p_method_cd, d_write_name AS p_name, d_write_date, "&VbCrlf
|
||||
sql=sql&" target3 AS o_child_cost, target1 AS c_child_cost, "&VbCrlf
|
||||
sql=sql&" target4 AS o_cost, target5 AS c_cost, "&VbCrlf
|
||||
sql=sql&" target2 AS reason "&VbCrlf
|
||||
sql=sql&" target2 AS reason, target100 "&VbCrlf
|
||||
sql=sql&" FROM <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> M LEFT JOIN Document D ON M.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = D.d_no "&VbCrlf
|
||||
sql=sql&" LEFT JOIN T_PROJECT_METHOD P ON M.p_sn = P.p_child_sn "&VbCrlf
|
||||
sql=sql&" LEFT JOIN T_PROJECT_BASE TPB ON P.p_sn = TPB.p_sn "&VbCrlf
|
||||
sql=sql&" LEFT JOIN V_Department VD ON TPB.p_depart_dep = VD.before_t_cd1 "&VbCrlf
|
||||
sql=sql&" WHERE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><D7BC><EFBFBD>' "&VbCrlf
|
||||
sql=sql&" AND d_order_cnt = '77' AND del_yes_no = 'no' "&VbCrlf
|
||||
sql=sql&" AND d_write_date >= CONVERT(varchar(10), DATEADD(MONTH, -3, getdate()), 120) "&VbCrlf
|
||||
@@ -46,6 +64,8 @@
|
||||
<tr style="height:25px;">
|
||||
<td style="text-align:center;" ><a href="javascript:openit('','<%=left(Rs("p_sn"),7)%>','<%=mid(Rs("p_sn"),9,1)%>','<%=Rs("p_method_cd")%>','<%=Rs("p_sn")%>');"><%=Rs("p_sn")%></a></td>
|
||||
<td style="text-align:left;word-break:keep-all;" ><a href="javascript:openit('','<%=left(Rs("p_sn"),7)%>','<%=mid(Rs("p_sn"),9,1)%>','<%=Rs("p_method_cd")%>','<%=Rs("p_sn")%>');"><%=Rs("p_subject")%></a></td>
|
||||
<td style="text-align:center;" ><%=GetLastApprovalDate(Rs("target100"))%></td>
|
||||
<td style="text-align:center;" ><%=Rs("dept_name")%></td>
|
||||
<td style="text-align:center;" ><%=Rs("p_name")%></td>
|
||||
<td style="text-align:center;" ><%=Rs("d_write_date")%></td>
|
||||
<td style="text-align:center;" ><%if Rs("o_child_cost") <> Rs("c_child_cost") then %><%=formatnumber(Rs("o_child_cost"), 0)%><% end if %></td>
|
||||
@@ -82,6 +102,41 @@
|
||||
}
|
||||
winObj=window.open(url, '', 'left=0,top=0,width=' + tmp_width + ',height=' + tmp_height + ',scrollbars=yes,resizable=yes')
|
||||
}
|
||||
|
||||
var index;
|
||||
var toggleBool;
|
||||
function gwanshic(tbody, index){
|
||||
this.index = index;
|
||||
if(toggleBool){toggleBool = false;}
|
||||
else{toggleBool = true;}
|
||||
|
||||
var datas= new Array();
|
||||
var tbodyLength = tbody.rows.length;
|
||||
for(var i=0; i<tbodyLength; i++){datas[i] = tbody.rows[i];}
|
||||
datas.sort(compareCells);
|
||||
for(var i=0; i<tbody.rows.length; i++){tbody.appendChild(datas[i]);}
|
||||
}
|
||||
|
||||
function compareCells(a,b) {
|
||||
var aVal = a.cells[index].innerText;
|
||||
var bVal = b.cells[index].innerText;
|
||||
aVal = aVal.replace(/\,/g, '');
|
||||
bVal = bVal.replace(/\,/g, '');
|
||||
|
||||
if(toggleBool){
|
||||
var temp = aVal;
|
||||
aVal = bVal;
|
||||
bVal = temp;
|
||||
}
|
||||
|
||||
if(aVal.match(/^[0-9]+$/) && bVal.match(/^[0-9]+$/)){
|
||||
return parseFloat(aVal) - parseFloat(bVal);
|
||||
}else{
|
||||
if (aVal < bVal){ return -1;}
|
||||
else if (aVal > bVal){ return 1;}
|
||||
else{return 0;}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
|
||||
@@ -2604,7 +2604,7 @@
|
||||
<span style="position:absolute; top: 1px; left: 27px; font-size: 12pt; font-weight:bold;">÷<>ι<EFBFBD><CEB9><EFBFBD></span></div>
|
||||
<div style="float: left;" ><span style="color:red;" >
|
||||
* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD> <20><>ü<EFBFBD><C3BC> <20>ڷ<EFBFBD>(<28><><EFBFBD>ȼ<EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>)<29><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>Ե<EFBFBD> ȸ<><C8B8><EFBFBD><EFBFBD> <20>ڻ<EFBFBD><DABB>Դϴ<D4B4>.
|
||||
<br> <3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϰų<CFB0> <20>ܺη<DCBA> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>մϴ<D5B4>.
|
||||
<br> <3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϰų<CFB0> <20>ܺη<DCBA> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>մϴ<D5B4>. <strong style="font-weight:600;">(<28>ٿ<EFBFBD><D9BF>ε<EFBFBD> <20>α<EFBFBD> <20><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><CDB8><EFBFBD>)</strong>
|
||||
</span>
|
||||
</div>
|
||||
<div><img src="/images/project/btn_cost3.jpg" onClick="fileadd()" style='cursor:hand; position:absolute; top: 1px; right: 0px;' align="absmiddle"></div>
|
||||
@@ -2632,7 +2632,7 @@
|
||||
query = query & " WHERE f_p_sn = '"&p_sn& "' "
|
||||
query = query & " AND f_use_yn = 'Y' "
|
||||
query = query & " AND f_work_type = '001' and f_kind <> '099' "
|
||||
query = query & " order by f_kind, f_id "
|
||||
query = query & " order by CASE WHEN f_kind = '010' THEN 0 ELSE 1 END, f_kind, f_id "
|
||||
|
||||
Rs.Open query, adoConn, 1
|
||||
|
||||
@@ -2649,10 +2649,14 @@
|
||||
default_kind_code_flag = false
|
||||
kind_code = ""
|
||||
|
||||
i = 1
|
||||
i = 0
|
||||
row_cnt = 1
|
||||
Do While i < 10
|
||||
kind_code = "00" & CStr(i)
|
||||
If i = 0 Then
|
||||
kind_code = "010"
|
||||
Else
|
||||
kind_code = "00" & CStr(i)
|
||||
End If
|
||||
|
||||
If attach_file_count > 0 then
|
||||
If default_kind_code_flag Then
|
||||
@@ -2680,23 +2684,35 @@
|
||||
<tr>
|
||||
<td align="center" ><%=row_cnt%></td>
|
||||
<td align="center" >
|
||||
<input type="hidden" name="f_id[<%=row_cnt-1%>]" value="" class="file_id"/>
|
||||
<select name="f_kind[<%=row_cnt-1%>]">
|
||||
<option value=""><3E><><EFBFBD><EFBFBD></option>
|
||||
<% query = "select c_common_code, c_code_name from T_COMMON_CODE_DETAIL where c_kind_code = '001' and c_common_code <> '099' "
|
||||
rsa.Open query, adoConn, 1
|
||||
if rsa.RecordCount > 0 then
|
||||
for j = 1 to rsa.RecordCount %>
|
||||
<option value="<%=rsa("c_common_code")%>" <% if rsa("c_common_code") = kind_code then %> selected <% end if %>> <%=rsa("c_code_name")%></option>
|
||||
<% rsa.MoveNext
|
||||
next
|
||||
end if
|
||||
rsa.Close
|
||||
%>
|
||||
</select>
|
||||
<input type="hidden" name="f_id[<%=row_cnt-1%>]" value="" class="file_id"/>
|
||||
<% If kind_code = "010" Then %>
|
||||
<input type="hidden" name="f_kind[<%=row_cnt-1%>]" value="010"/>
|
||||
<input type="text" value="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD>༭" readonly style="border: 0px none0; text-align: center;"/>
|
||||
<% Else %>
|
||||
<select name="f_kind[<%=row_cnt-1%>]">
|
||||
<option value=""><3E><><EFBFBD><EFBFBD></option>
|
||||
<% query = "select c_common_code, c_code_name from T_COMMON_CODE_DETAIL where c_kind_code = '001' and c_common_code <> '099' "
|
||||
rsa.Open query, adoConn, 1
|
||||
if rsa.RecordCount > 0 then
|
||||
for j = 1 to rsa.RecordCount %>
|
||||
<option value="<%=rsa("c_common_code")%>" <% if rsa("c_common_code") = kind_code then %> selected <% end if %>> <%=rsa("c_code_name")%></option>
|
||||
<% rsa.MoveNext
|
||||
next
|
||||
end if
|
||||
rsa.Close
|
||||
%>
|
||||
</select>
|
||||
<% End If %>
|
||||
</td>
|
||||
<td align="left" >
|
||||
<input type="file" class="uploadFile_btn " name="ATTACH_FILENAME[<%=row_cnt-1%>]" maxlength="1" style="width:100%;" />
|
||||
<% If kind_code = "010" Then %>
|
||||
<div style="padding-top:4px; color:#000000; line-height:1.5;">
|
||||
<span style="color:#cc0000;">* '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD>༭', '<27>Ϲݿ뿪<DDBF><EBBFAA><EFBFBD>༭' <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>༭<EFBFBD><E0BCAD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>κ<EFBFBD> ÷<><C3B7></span>
|
||||
<br><3E><>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ Ư<><C6AF><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>༭<EFBFBD><E0BCAD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>, <20><><EFBFBD><EFBFBD> <20>Ǵ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Ȯ<><C8AE><EFBFBD>Ǿ<EFBFBD><C7BE>ٴ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>Ե<EFBFBD> <20><><EFBFBD><EFBFBD> <20>Ǵ<EFBFBD> <20≯<EFBFBD><CCB8><EFBFBD> <20><><EFBFBD><EFBFBD> ĸ<>ĺ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ü <20><><EFBFBD><EFBFBD>
|
||||
<br>(Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ<EFBFBD><C6AE>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD>缳<EFBFBD>谳<EFBFBD><E8B0B3>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20>ֿ䳻<D6BF><E4B3BB> <20>ݵ<EFBFBD><DDB5><EFBFBD> <20><><EFBFBD>ԵǾ<D4B5> <20>־<EFBFBD><D6BE><EFBFBD> <20>ԡ<EFBFBD>)
|
||||
</div>
|
||||
<% End If %>
|
||||
</td>
|
||||
<td align="center" ></td>
|
||||
<td align="center" ></td>
|
||||
@@ -2732,6 +2748,13 @@
|
||||
</td>
|
||||
<td align="left" >
|
||||
<input type="file" class="uploadFile_btn" name="ATTACH_FILENAME[<%=row_cnt-1%>]" maxlength="1" style="width:200px;" />
|
||||
<% If kind_code = "010" Then %>
|
||||
<div style="padding-top:4px; color:#000000; line-height:1.5;">
|
||||
<span style="color:#cc0000;">* '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD>༭', '<27>Ϲݿ뿪<DDBF><EBBFAA><EFBFBD>༭' <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>༭<EFBFBD><E0BCAD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>κ<EFBFBD> ÷<><C3B7></span>
|
||||
<br><3E><>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ Ư<><C6AF><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>༭<EFBFBD><E0BCAD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>, <20><><EFBFBD><EFBFBD> <20>Ǵ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Ȯ<><C8AE><EFBFBD>Ǿ<EFBFBD><C7BE>ٴ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>Ե<EFBFBD> <20><><EFBFBD><EFBFBD> <20>Ǵ<EFBFBD> <20≯<EFBFBD><CCB8><EFBFBD> <20><><EFBFBD><EFBFBD> ĸ<>ĺ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ü <20><><EFBFBD><EFBFBD>
|
||||
<br>(Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ<EFBFBD><C6AE>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD>缳<EFBFBD>谳<EFBFBD><E8B0B3>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20>ֿ䳻<D6BF><E4B3BB> <20>ݵ<EFBFBD><DDB5><EFBFBD> <20><><EFBFBD>ԵǾ<D4B5> <20>־<EFBFBD><D6BE><EFBFBD> <20>ԡ<EFBFBD>)
|
||||
</div>
|
||||
<% End If %>
|
||||
<input type="text" class='align-middle' <% If Session("teamplace") <> 10 Then %> onclick="download(<%=f_attach_info(f_attach_index, 0)%>)" <% end if %>
|
||||
<% If CInt(p_research_complete)+CInt(p_field_complete)+CInt(p_dp_complete) < 3 Then %>style="width:480px; color:blue; cursor:pointer;"<%Else %>style="width:540px; color:blue; cursor:pointer;"<%End If %> value = "<%=f_attach_info(f_attach_index, 2)%>" readonly/>
|
||||
<% If CInt(p_research_complete)+CInt(p_field_complete)+CInt(p_dp_complete) < 3 Then %>
|
||||
@@ -2760,23 +2783,35 @@
|
||||
<tr>
|
||||
<td align="center" ><%=row_cnt%></td>
|
||||
<td align="center" >
|
||||
<input type="hidden" name="f_id[<%=row_cnt-1%>]" value="" class="file_id"/>
|
||||
<select name="f_kind[<%=row_cnt-1%>]" >
|
||||
<option value=""><3E><><EFBFBD><EFBFBD></option>
|
||||
<% query = "select c_common_code, c_code_name from T_COMMON_CODE_DETAIL where c_kind_code = '001' and c_common_code <> '099' "
|
||||
rsa.Open query, adoConn, 1
|
||||
if rsa.RecordCount > 0 then
|
||||
for j = 1 to rsa.RecordCount %>
|
||||
<option value="<%=rsa("c_common_code")%>" <% if rsa("c_common_code") = ("00"&CStr(row_cnt)) then %> selected <% end if %>> <%=rsa("c_code_name")%></option>
|
||||
<% rsa.MoveNext
|
||||
next
|
||||
end if
|
||||
rsa.Close
|
||||
%>
|
||||
</select>
|
||||
<input type="hidden" name="f_id[<%=row_cnt-1%>]" value="" class="file_id"/>
|
||||
<% If kind_code = "010" Then %>
|
||||
<input type="hidden" name="f_kind[<%=row_cnt-1%>]" value="010"/>
|
||||
<input type="text" value="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD>༭" readonly style="border: 0px none0; text-align: center;"/>
|
||||
<% Else %>
|
||||
<select name="f_kind[<%=row_cnt-1%>]" >
|
||||
<option value=""><3E><><EFBFBD><EFBFBD></option>
|
||||
<% query = "select c_common_code, c_code_name from T_COMMON_CODE_DETAIL where c_kind_code = '001' and c_common_code <> '099' "
|
||||
rsa.Open query, adoConn, 1
|
||||
if rsa.RecordCount > 0 then
|
||||
for j = 1 to rsa.RecordCount %>
|
||||
<option value="<%=rsa("c_common_code")%>" <% if rsa("c_common_code") = kind_code then %> selected <% end if %>> <%=rsa("c_code_name")%></option>
|
||||
<% rsa.MoveNext
|
||||
next
|
||||
end if
|
||||
rsa.Close
|
||||
%>
|
||||
</select>
|
||||
<% End If %>
|
||||
</td>
|
||||
<td align="left" >
|
||||
<input type="file" class="uploadFile_btn" name="ATTACH_FILENAME[<%=row_cnt-1%>]" maxlength="1" style="width:565;" />
|
||||
<% If kind_code = "010" Then %>
|
||||
<div style="padding-top:4px; color:#000000; line-height:1.5;">
|
||||
<span style="color:#cc0000;">* '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD>༭', '<27>Ϲݿ뿪<DDBF><EBBFAA><EFBFBD>༭' <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>༭<EFBFBD><E0BCAD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>κ<EFBFBD> ÷<><C3B7></span>
|
||||
<br><3E><>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ Ư<><C6AF><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>༭<EFBFBD><E0BCAD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>, <20><><EFBFBD><EFBFBD> <20>Ǵ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Ȯ<><C8AE><EFBFBD>Ǿ<EFBFBD><C7BE>ٴ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>Ե<EFBFBD> <20><><EFBFBD><EFBFBD> <20>Ǵ<EFBFBD> <20≯<EFBFBD><CCB8><EFBFBD> <20><><EFBFBD><EFBFBD> ĸ<>ĺ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ü <20><><EFBFBD><EFBFBD>
|
||||
<br>(Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ<EFBFBD><C6AE>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD>缳<EFBFBD>谳<EFBFBD><E8B0B3>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20>ֿ䳻<D6BF><E4B3BB> <20>ݵ<EFBFBD><DDB5><EFBFBD> <20><><EFBFBD>ԵǾ<D4B5> <20>־<EFBFBD><D6BE><EFBFBD> <20>ԡ<EFBFBD>)
|
||||
</div>
|
||||
<% End If %>
|
||||
</td>
|
||||
<td align="center" ></td>
|
||||
<td align="center" ></td>
|
||||
@@ -3560,6 +3595,28 @@
|
||||
var fileAttachCcount = 0;
|
||||
var upload_Flag = true;
|
||||
var depart_no = document.pms.depart_no.value;
|
||||
var contractAttachFlag = false;
|
||||
|
||||
$("input[name^='f_kind'][value='010']").each(function () {
|
||||
var contractFileIndex = $(this).attr("name").replace("f_kind[", "").replace("]", "");
|
||||
var contractFileId = $("input[name='f_id[" + contractFileIndex + "]']").val();
|
||||
var contractUploadPath = $("input[name='ATTACH_FILENAME[" + contractFileIndex + "]']").val();
|
||||
|
||||
if ((contractFileId != null && contractFileId != "") || (contractUploadPath != null && contractUploadPath.length > 0)) {
|
||||
contractAttachFlag = true;
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
if (!contractAttachFlag) {
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD>༭<EFBFBD><E0BCAD> ÷<><C3B7><EFBFBD>Ͻʽÿ<CABD>.");
|
||||
$("input[name^='f_kind'][value='010']").each(function () {
|
||||
var contractFileIndex = $(this).attr("name").replace("f_kind[", "").replace("]", "");
|
||||
$("input[name='ATTACH_FILENAME[" + contractFileIndex + "]']").focus();
|
||||
return false;
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
$("input:file").each(function (index) {
|
||||
var uploadpath = $(this).val();
|
||||
|
||||
@@ -145,7 +145,7 @@ if command = "excel" then
|
||||
end if
|
||||
'======================================================
|
||||
%>
|
||||
<form name="pms" method="post">
|
||||
<form name="pms" method="post" onsubmit="chkit('1'); return false;">
|
||||
<input type="hidden" name="project_old_new_check" id= "project_old_new_check" value="<%=project_old_new %>">
|
||||
<input type="hidden" name="p_types1_check" id= "p_types1_check" value="<%=p_types1%>">
|
||||
<input type="hidden" name="p_types2_check" id= "p_types2_check" value="<%=p_types2%>">
|
||||
@@ -521,7 +521,7 @@ end if
|
||||
<tr>
|
||||
<td width="50" align=right> </td>
|
||||
<td align=center>
|
||||
<img src="/images/common/btn_search.jpg" align="absmiddle" style="cursor:pointer" onClick="chkit('1')">
|
||||
<input type="image" src="/images/common/btn_search.jpg" align="absmiddle" style="cursor:pointer" alt="Search">
|
||||
<!-- <img src="/images/common/btn_cancel.jpg" align="absmiddle" style="cursor:pointer" onClick="reloadit()"> -->
|
||||
</td>
|
||||
<td width="30" align=right><img src="/images/common/excel_down.png" width="40px" onclick='javascript:{excel_export();}' style='CURSOR:pointer;' title ='<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ޱ<EFBFBD>'></td>
|
||||
@@ -547,23 +547,23 @@ end if
|
||||
query = query & " ( "
|
||||
query = query & " select p_sn, p_subject, isnull(p_depart,'') as p_depart, p_method, p_cli_company, p_conv_date, c_code_name, "
|
||||
query = query & " count(f_id) as f_id, convert(varchar(10),count(f_file_name))+'<27><>' as f_file_name, "
|
||||
query = query & " '' as p_name, "
|
||||
query = query & " isnull(p_name, '') as p_name, "
|
||||
query = query & " '' as f_attach_date, p_sub_type, p_method_cd, p_child_sn, p_con_date_end, p_total_cost, p_cont_cost, p_sample "
|
||||
query = query & " FROM ( "
|
||||
query = query & " SELECT TPB.p_sn as p_sn, ISNULL(TPM.p_subject, TPB.p_subject) as p_subject, "
|
||||
query = query & " isnull(D.T_name, '') as p_depart, "
|
||||
query = query & " TPMC.p_method_nm as p_method, TCC.p_cli_company_nm as p_cli_company, "
|
||||
query = query & " TPM.p_decide_date as p_conv_date, '' as c_code_name, TSA.f_id as f_id, TSA.f_file_name as f_file_name, TSA.f_input_user as f_input_user, "
|
||||
query = query & " TPM.p_con_date_st as p_conv_date, '' as c_code_name, TSA.f_id as f_id, TSA.f_file_name as f_file_name, TSA.f_input_user as f_input_user, "
|
||||
query = query & " per.p_name as p_name, "
|
||||
query = query & " TSA.f_attach_date as f_attach_date, TPM.p_sub_type, TPM.p_method_cd, isnull(TPM.p_child_sn,tpb.p_sn) as p_child_sn, TPM.p_con_date_end, isnull(TPB.p_total_cost, '0') as p_total_cost, isnull(TPM.p_cont_cost, '0') as p_cont_cost, ISNULL(TPM.p_sample, '0') as p_sample "
|
||||
query = query & " FROM T_PROJECT_BASE TPB "
|
||||
query = query & " LEFT OUTER JOIN T_PROJECT_METHOD TPM ON TPM.p_sn = TPB.p_sn /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> */ "
|
||||
query = query & " LEFT OUTER JOIN T_PROJECT_METHOD_CD TPMC ON TPM.p_method_cd = TPMC.p_method_cd /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20≯<EFBFBD> <20><><EFBFBD><EFBFBD> */ "
|
||||
query = query & " LEFT OUTER JOIN V_Department D ON TPM.p_rsch_dept = D.before_t_cd1 /* <20>μ<EFBFBD><CEBC>ڵ<EFBFBD> */ "
|
||||
query = query & " LEFT OUTER JOIN V_Department D ON TPB.p_depart_dep = D.before_t_cd1 /* <20>μ<EFBFBD><CEBC>ڵ<EFBFBD> */ "
|
||||
query = query & " LEFT OUTER JOIN V_CLIENT_COMP TCC ON TPB.p_cli_company_cd = TCC.p_cli_company_cd /* ȸ<><C8B8><EFBFBD>ڵ<EFBFBD> <20><><EFBFBD><EFBFBD> */ "
|
||||
query = query & " LEFT OUTER JOIN T_SYSTEM_ATTACH TSA ON TPB.p_sn = TSA.f_p_sn AND f_use_yn = 'y' "
|
||||
query = query & " LEFT OUTER JOIN T_COMMON_CODE_DETAIL TCCD ON TSA.f_work_type = TCCD.c_kind_code AND TSA.f_kind = TCCD.c_common_code /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> */ "
|
||||
query = query & " LEFT OUTER JOIN person PER ON TSA.f_input_user = PER.P_NO "
|
||||
query = query & " LEFT OUTER JOIN person PER ON TPB.p_input_user = PER.P_NO "
|
||||
query = query & " WHERE TPB.p_sn <> '' "
|
||||
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ<EFBFBD>--------------------------------------------------
|
||||
if p_sn <> "" then
|
||||
@@ -659,7 +659,7 @@ end if
|
||||
query = query & " SELECT p.p_sn as p_sn, p.p_subject as p_subject, "
|
||||
query = query & " isnull(d.T_Name, '') as p_depart, "
|
||||
query = query & " pm.name1 as p_method, C.c_name as p_cli_company, "
|
||||
query = query & " p.p_conv_date as p_conv_date, TCCD.c_code_name as c_code_name, TSA.f_id as f_id, TSA.f_file_name as f_file_name, "
|
||||
query = query & " p.p_convdate_st as p_conv_date, TCCD.c_code_name as c_code_name, TSA.f_id as f_id, TSA.f_file_name as f_file_name, "
|
||||
query = query & " TSA.f_input_user as f_input_user, "
|
||||
query = query & " '' as p_name, "
|
||||
query = query & " TSA.f_attach_date as f_attach_date, '' as p_sub_type, '' as p_method_cd, '' as p_child_sn ,p.p_convdate_end as p_con_date_end, '' as p_total_cost, p.p_budget as p_cont_cost, ISNULL(P.p_sample, '0') as p_sample "
|
||||
@@ -809,7 +809,7 @@ end if
|
||||
query = query & " AND p_sn = '' "
|
||||
end if
|
||||
query = query & " ) T "
|
||||
query = query & " group by p_sn, p_subject, p_depart, p_method, p_cli_company, p_conv_date, c_code_name, p_sub_type, p_method_cd, p_child_sn, p_con_date_end, "
|
||||
query = query & " group by p_sn, p_subject, p_depart, p_method, p_cli_company, p_conv_date, c_code_name, p_name, p_sub_type, p_method_cd, p_child_sn, p_con_date_end, "
|
||||
query = query & " p_total_cost, p_cont_cost, p_sample"
|
||||
query = query & " ) A1 "
|
||||
query = query & " left join " '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȹ<EFBFBD><C8B9>
|
||||
@@ -1019,7 +1019,7 @@ end if
|
||||
<td width="50" align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="100" align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="120" align="center" height="24" >Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ</td>
|
||||
<td width="65" align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="65" align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="65" align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="65" align="center" height="24" ><3E><>ü<EFBFBD><C3BC><EFBFBD>ֱݾ<D6B1></td>
|
||||
<td width="65" align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
|
||||
@@ -1,13 +1,22 @@
|
||||
<!-- #include virtual = "include/header.asp" -->
|
||||
<!-- #include virtual = "include/left.asp" -->
|
||||
<%
|
||||
p_statistics = request("p_statistics")
|
||||
If p_statistics = "" Then
|
||||
p_statistics = year(date)
|
||||
p_statistics_start = request("p_statistics_start")
|
||||
p_statistics_end = request("p_statistics_end")
|
||||
If p_statistics_start = "" Then
|
||||
p_statistics_start = year(date)
|
||||
If cint(month(date)) <= 3 Then
|
||||
p_statistics = p_statistics - 1 ' 4<><34> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>̰<EFBFBD>
|
||||
p_statistics_start = p_statistics_start - 1 ' 4<><34> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>̰<EFBFBD>
|
||||
End If
|
||||
End If
|
||||
If p_statistics_end = "" Then
|
||||
p_statistics_end = p_statistics_start
|
||||
End If
|
||||
If cint(p_statistics_start) > cint(p_statistics_end) Then
|
||||
tmpYear = p_statistics_start
|
||||
p_statistics_start = p_statistics_end
|
||||
p_statistics_end = tmpYear
|
||||
End If
|
||||
nowDate = now()
|
||||
|
||||
p_costType = request("p_costType")
|
||||
@@ -91,7 +100,14 @@ p_costType = request("p_costType")
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
Filter <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>.
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td>Filter <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>.</td>
|
||||
<td align="right">
|
||||
<input type="button" id="btnExport" value="Excel Download"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -99,9 +115,15 @@ p_costType = request("p_costType")
|
||||
<table class="table table-sm table-sm2 table-bordered table-head tr-colors" style="font-size:12px;">
|
||||
<tr>
|
||||
<td bgcolor="#DFDFDF" style="padding-left:10px;">
|
||||
<select id="p_statistics">
|
||||
<select id="p_statistics_start">
|
||||
<% For i=2018 To year(date) %>
|
||||
<option value="<%=i%>" <%= iif(cint(i) = cint(p_statistics), " selected ", "") %>><%=cstr(i)%>~<%=RIGHT(cstr(i+1), 2)%></option>
|
||||
<option value="<%=i%>" <%= iif(cint(i) = cint(p_statistics_start), " selected ", "") %>><%=cstr(i)%></option>
|
||||
<% Next %>
|
||||
</select>
|
||||
~
|
||||
<select id="p_statistics_end">
|
||||
<% For i=2018 To year(date)+1 %>
|
||||
<option value="<%=i%>" <%= iif(cint(i) = cint(p_statistics_end), " selected ", "") %>><%=cstr(i)%></option>
|
||||
<% Next %>
|
||||
</select>
|
||||
</td>
|
||||
@@ -121,9 +143,6 @@ p_costType = request("p_costType")
|
||||
95% <20><> : <span class="rate_legend" style="background-color:#e85e5e;"></span>
|
||||
</span>
|
||||
</td>
|
||||
<td bgcolor="#DFDFDF" align="right" style="padding-right:10px;">
|
||||
<input type="button" id="btnExport" value="Excel Download"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
@@ -224,7 +243,7 @@ p_costType = request("p_costType")
|
||||
query = query & " WHERE CA.cost_money > 0 " & vbCrLf
|
||||
query = query & " GROUP BY CA.p_sn " & vbCrLf
|
||||
query = query & " ) JC ON TPM.p_child_sn = JC.p_sn " & vbCrLf
|
||||
query = query & " WHERE TPM.p_statistics in ('" & p_statistics & "','" & p_statistics+1 & "') " & vbCrLf
|
||||
query = query & " WHERE TPM.p_statistics BETWEEN '" & CInt(p_statistics_start) & "' AND '" & CInt(p_statistics_end) & "' " & vbCrLf
|
||||
if cint(session("Depart_Code")) >= 20 Then
|
||||
query = query & " AND (p_rsch_dept = '" & session("Depart_Code") & "' " & vbCrLf
|
||||
' if session("User_Number") = "20180701" Then '<27><>ȿ<EFBFBD><C8BF>
|
||||
@@ -455,8 +474,8 @@ p_costType = request("p_costType")
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
$("#p_statistics, #p_costType").on("change", function(){
|
||||
location.href="./projectlist_cost.asp?p_statistics=" + $("#p_statistics option:selected").val()+"&p_costType="+$("#p_costType option:selected").val();
|
||||
$("#p_statistics_start, #p_statistics_end, #p_costType").on("change", function(){
|
||||
location.href="./projectlist_cost.asp?p_statistics_start=" + $("#p_statistics_start option:selected").val()+"&p_statistics_end="+$("#p_statistics_end option:selected").val()+"&p_costType="+$("#p_costType option:selected").val();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user