954 lines
40 KiB
Plaintext
954 lines
40 KiB
Plaintext
<!-- #include virtual = "include/header.asp" -->
|
||
<!-- #include virtual = "include/left.asp" -->
|
||
<!-- Content Wrapper. Contains page content -->
|
||
<%
|
||
|
||
Function My_IsNumeric(value)
|
||
My_IsNumeric = False
|
||
If IsNull(value) Then Exit Function
|
||
My_IsNumeric = IsNumeric(CStr(value))
|
||
End Function
|
||
|
||
%>
|
||
|
||
<div class="content-wrapper">
|
||
<style>
|
||
div.minimalistBlack {
|
||
border: 2px solid #000000;
|
||
width: 100%;
|
||
text-align: left;
|
||
border-collapse: collapse;
|
||
}
|
||
.divTable.minimalistBlack .divTableCell, .divTable.minimalistBlack .divTableHead {
|
||
border: 1px solid #000000;
|
||
padding: 5px 4px;
|
||
}
|
||
.divTable.minimalistBlack .divTableBody .divTableCell {
|
||
font-size: 12px;
|
||
}
|
||
|
||
.divTableCell_intxt{
|
||
text-align:right;
|
||
}
|
||
.divTableRow_subtotal{
|
||
background-color: antiquewhite;
|
||
}
|
||
.divTableRow_total{
|
||
background-color: #575757;
|
||
color:#fff;
|
||
}
|
||
|
||
.divTable.minimalistBlack .divTableHeading {
|
||
background: #CFCFCF;
|
||
background: -moz-linear-gradient(top, #dbdbdb 0%, #d3d3d3 66%, #CFCFCF 100%);
|
||
background: -webkit-linear-gradient(top, #dbdbdb 0%, #d3d3d3 66%, #CFCFCF 100%);
|
||
background: linear-gradient(to bottom, #dbdbdb 0%, #d3d3d3 66%, #CFCFCF 100%);
|
||
border-bottom: 3px solid #000000;
|
||
}
|
||
.divTable.minimalistBlack .divTableHeading .divTableHead {
|
||
font-size: 13px;
|
||
font-weight: bold;
|
||
color: #000000;
|
||
text-align: left;
|
||
min-width: 100px;
|
||
}
|
||
.minimalistBlack .tableFootStyle {
|
||
font-size: 14px;
|
||
font-weight: bold;
|
||
color: #000000;
|
||
border-top: 3px solid #000000;
|
||
}
|
||
.minimalistBlack .tableFootStyle {
|
||
font-size: 14px;
|
||
}
|
||
/* DivTable.com */
|
||
.divTable{ display: table; }
|
||
.divTableRow { display: table-row; }
|
||
.divTableHeading { display: table-header-group;}
|
||
.divTableCell, .divTableHead { display: table-cell;}
|
||
.divTableHeading { display: table-header-group;}
|
||
.divTableFoot { display: table-footer-group;}
|
||
.divTableBody { display: table-row-group;}
|
||
</style>
|
||
<!-- Content Header (Page header) -->
|
||
<div class="content-header">
|
||
<h1>Dashboard</h1>
|
||
</div>
|
||
<!-- /.content-header -->
|
||
<!-- Main content -->
|
||
<div class="content-body">
|
||
<div class="content">
|
||
<div class="container-fluid">
|
||
<div class="row">
|
||
<div class="col-12">
|
||
<table width="100%" cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;" >
|
||
<%
|
||
tmp_year = request("tmp_year")
|
||
tmp_week = request("tmp_week")
|
||
now_month = request("now_month")
|
||
|
||
if tmp_year = "" then
|
||
tmp_year = year(date)
|
||
end if
|
||
|
||
if( 2020 >= tmp_year )then
|
||
tmp_year = year(date)
|
||
end if
|
||
if( tmp_year > 2022 )then
|
||
tmp_year = year(date)
|
||
end if
|
||
|
||
|
||
'default
|
||
query = " select yearnum, weeknum, sdate, edate, CONVERT(varchar(7), sdate, 120) AS now_month "
|
||
query = query &" , CONVERT(varchar(7), dateadd(year,-1,sdate), 120) AS pre_month "
|
||
query = query &" , CASE WHEN DATEPART(mm,sdate) < 4 THEN DATEPART(yy,sdate) - 1 ELSE DATEPART(yy,sdate) END diy_month "
|
||
query = query &" FROM project2.dbo.BG_WEEKNUM with(nolock) "
|
||
query = query &" WHERE del_yn = 'N' "
|
||
query = query &" and yearnum = '"& tmp_year &"' "
|
||
if tmp_week = "" then
|
||
query = query &" AND CONVERT(VARCHAR(10), getdate(), 120) BETWEEN sdate AND edate "
|
||
else
|
||
query = query &" AND weeknum = '"& tmp_week &"' "
|
||
end if
|
||
|
||
' response.write query
|
||
|
||
adors.Open query, adoconn, adOpenStatic, adLockReadOnly
|
||
|
||
'adminView_hwkim(query)
|
||
|
||
' response.write "<br>----------query-------------"& query &"<br>"
|
||
' response.write "<br>----------adors.RecordCount-------------"& adors.RecordCount &"<br>"
|
||
' response.write "<br>----------yearnum-------------"& adors("yearnum") &"<br>"
|
||
' response.write "<br>----------weeknum-------------"& adors("weeknum") &"<br>"
|
||
' response.write "<br>----------diy_month-------------"& adors("diy_month") &"<br>"
|
||
' response.write "<br>----------year(date)-------------"& year(date) &"-12-15"
|
||
' response.write "<br>"
|
||
|
||
tmp_now_weeknum = adors("weeknum")
|
||
tmp_sdate = adors("sdate")
|
||
tmp_edate = adors("edate")
|
||
tmp_now_month = adors("now_month")
|
||
tmp_pre_month = adors("pre_month")
|
||
tmp_diy_month = adors("diy_month")
|
||
tmp_diy_month = tmp_diy_month &"-04"
|
||
|
||
adors.Close
|
||
|
||
if tmp_week = "" then
|
||
tmp_week = tmp_now_weeknum
|
||
end if
|
||
|
||
Dim arr_hd_sum()
|
||
|
||
Dim tmp_max_weeknum : tmp_max_weeknum = (tmp_now_weeknum + 2)
|
||
if( tmp_max_weeknum > 54 )then
|
||
tmp_max_weeknum = 54
|
||
end if
|
||
|
||
' response.write " year = "& tmp_year
|
||
' response.write " weeknum = "& tmp_week
|
||
' response.write " tmp_sdate = "& tmp_sdate
|
||
' response.write " tmp_edate = "& tmp_edate
|
||
' response.write "<br>"
|
||
|
||
Dim arr(15,3), arrSUM(30,17), arrSUMTT(30)
|
||
arr(0,0) = "BG_CODE" : arr(0,3) = "F": arr(0,1) = "Business Line" :arr(0,2) = "T"
|
||
arr(1,0) = "GP" : arr(1,3) = "F": arr(1,1) = "Group #" :arr(1,2) = "T"
|
||
arr(2,0) = "cro" : arr(2,3) = "I": arr(2,1) = "<22>̿<EFBFBD> <20><><EFBFBD><EFBFBD> <20>ݾ<EFBFBD><br>(Carry-over)" :arr(2,2) = "I"
|
||
arr(3,0) = "ctt_pre_ww" : arr(3,3) = "F": arr(3,1) = "<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>" :arr(3,2) = "I"
|
||
arr(4,0) = "ctt" : arr(4,3) = "F": arr(4,1) = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><br>("& tmp_now_month &"<22><>)" :arr(4,2) = "I"
|
||
arr(5,0) = "ctt_pre_mm" : arr(5,3) = "I": arr(5,1) = "<22>۳<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><br>("& tmp_pre_month &"<22><>)" :arr(5,2) = "I"
|
||
arr(6,0) = "mm_dif" : arr(6,3) = "F": arr(6,1) = "<22><> <20><><EFBFBD><EFBFBD>(%)" :arr(6,2) = "P"
|
||
arr(7,0) = "ctt_add" : arr(7,3) = "F": arr(7,1) = "<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><br>("& tmp_diy_month &"~"& tmp_now_month &")" :arr(7,2) = "I"
|
||
arr(8,0) = "ctt_add_pre" : arr(8,3) = "I": arr(8,1) = "<22>۳<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><br>(20.4~20.11)" :arr(8,2) = "I"
|
||
arr(9,0) = "ctt_add_dif" : arr(9,3) = "F": arr(9,1) = "<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>" :arr(9,2) = "P"
|
||
arr(10,0) = "sales_goal" : arr(10,3) = "I": arr(10,1) = "<22><><EFBFBD><EFBFBD> <20><>ǥ<br>21.04.01~22.03.31<br>(Carry over <20><><EFBFBD><EFBFBD>)" :arr(10,2) = "I"
|
||
arr(11,0) = "sales_pre_amount" : arr(11,3) = "F": arr(11,1) = "<22><><EFBFBD><EFBFBD><br><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" :arr(11,2) = "I"
|
||
arr(12,0) = "sales_goal_per" : arr(12,3) = "F": arr(12,1) = "<22><><EFBFBD><EFBFBD> <20><>ǥ <br><3E><EFBFBD><DEBC><EFBFBD>" :arr(12,2) = "P"
|
||
arr(13,0) = "sales_wip" : arr(13,3) = "I": arr(13,1) = "20<32><30> WIP<br><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>" :arr(13,2) = "I"
|
||
arr(14,0) = "sales_year_dif" : arr(14,3) = "F": arr(14,1) = "<22><><EFBFBD><EFBFBD> Vs.<2E><><EFBFBD><EFBFBD><br><3E><><EFBFBD><EFBFBD>" :arr(14,2) = "P"
|
||
|
||
' <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||
Dim arrvalW(15,3), arrvalM(15,3), arrvalC(15,3)
|
||
|
||
'//-- <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||
query = ""
|
||
query = query & " SELECT p_depart_dep "&VbCrlf
|
||
query = query & " , sum(p_total_cost) total_cost "&VbCrlf
|
||
query = query & " FROM T_PROJECT_BASE tpb "&VbCrlf
|
||
query = query & " WHERE 1 = 1 and p_state = 'P' AND CONVERT(varchar(10), p_decide_date, 120) BETWEEN '"& tmp_sdate &"'AND '"& tmp_edate &"' "&VbCrlf '//-- p_state = 'P' <20><><EFBFBD><EFBFBD>
|
||
query = query & " GROUP BY p_depart_dep "&VbCrlf
|
||
|
||
'Response.Write query & "<br>"
|
||
'adminView_hwkim("<br>1. <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><br>")
|
||
'adminView_hwkim(query)
|
||
|
||
adors.Open query, adoconn, adOpenStatic, adLockReadOnly
|
||
if adors.RecordCount > 0 then
|
||
For i = 1 To adors.RecordCount
|
||
arrvalW(i,0) = adors("p_depart_dep")
|
||
arrvalW(i,1) = adors("total_cost")
|
||
'response.write "//"& adors("p_depart_dep") & arrvalW(i,0) & arrvalW(i,1)
|
||
adors.MoveNext
|
||
Next
|
||
end if
|
||
adors.Close
|
||
'//-- <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||
query = ""
|
||
query = query & " SELECT p_depart_dep "&VbCrlf
|
||
query = query & " , sum(p_total_cost) total_cost "&VbCrlf
|
||
query = query & " FROM T_PROJECT_BASE tpb "&VbCrlf
|
||
query = query & " WHERE 1 = 1 and p_state = 'P' AND CONVERT(varchar(7), p_decide_date, 120) = '"& tmp_now_month &"' "&VbCrlf '//-- p_state = 'P' <20><><EFBFBD><EFBFBD>
|
||
query = query & " GROUP BY p_depart_dep "&VbCrlf
|
||
|
||
'Response.Write query & "<br>"
|
||
'adminView_hwkim("<br>2. <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><br>")
|
||
'adminView_hwkim(query)
|
||
|
||
adors.Open query, adoconn, adOpenStatic, adLockReadOnly
|
||
if adors.RecordCount > 0 then
|
||
For i = 1 To adors.RecordCount
|
||
arrvalM(i,0) = adors("p_depart_dep")
|
||
arrvalM(i,1) = adors("total_cost")
|
||
'response.write "//"& adors("p_depart_dep") & arrvalM(i,0) & arrvalM(i,1)
|
||
adors.MoveNext
|
||
Next
|
||
end if
|
||
adors.Close
|
||
'//-- <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||
query = ""
|
||
query = query & " SELECT p_depart_dep "&VbCrlf
|
||
query = query & " , sum(p_total_cost) total_cost "&VbCrlf
|
||
query = query & " FROM T_PROJECT_BASE tpb "&VbCrlf
|
||
query = query & " WHERE 1 = 1 and p_state = 'P' AND CONVERT(varchar(7), p_decide_date, 120) BETWEEN '"& tmp_diy_month &"'AND '"& tmp_now_month &"' "&VbCrlf '//-- p_state = 'P' <20><><EFBFBD><EFBFBD>
|
||
query = query & " GROUP BY p_depart_dep "&VbCrlf
|
||
|
||
'Response.Write query & "<br>"
|
||
'adminView_hwkim("<br>3. <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><br>")
|
||
'adminView_hwkim(query)
|
||
|
||
adors.Open query, adoconn, adOpenStatic, adLockReadOnly
|
||
if adors.RecordCount > 0 then
|
||
For i = 1 To adors.RecordCount
|
||
arrvalC(i,0) = adors("p_depart_dep")
|
||
arrvalC(i,1) = adors("total_cost")
|
||
'response.write "//"& adors("p_depart_dep") & arrvalC(i,0) & arrvalC(i,1)
|
||
adors.MoveNext
|
||
Next
|
||
end if
|
||
adors.Close
|
||
%>
|
||
<!-- < !-- #include virtual = "statistics/inc_team_project_ctt.asp" -- > -->
|
||
|
||
<!-- #include virtual = "statistics/inc_team_project_next.asp" -->
|
||
<tr>
|
||
<td>
|
||
<form name='team_project_count' method='post' >
|
||
<table width="100%" cellpadding="0" cellspacing="1" border="0" bgcolor="#c0c0c0">
|
||
<tr>
|
||
<td bgcolor="#DFDFDF" class='p-1 pl-2'>
|
||
<09><><EFBFBD>ϳ
|
||
<%
|
||
NowYear = year(date())
|
||
%>
|
||
<select name="tmp_year" id="tmp_year" style="width: 100px;">
|
||
<%For i = NowYear To 2021 Step - 1 %>
|
||
<OPTION value='<%=i%>' <%if cint(i) = cint(tmp_year) then%> selected <%end if%>><%=i%></OPTION>
|
||
<%next%>
|
||
</SELECT>
|
||
<select name="tmp_week" id="tmp_week" style="width: 120px;">
|
||
<option value="" > </option>
|
||
</SELECT>
|
||
<!-- <select name="tmp_week" id="tmp_week" style="width: 120px;">
|
||
<%for i= 1 to 54 step 1 %>
|
||
<OPTION value='<%=i%>' <%if cint(i) = cint(tmp_week) then%> selected <%end if%>><%=i%> weeknum</OPTION>
|
||
<%next%>
|
||
</SELECT> -->
|
||
|
||
|
||
(<%=tmp_sdate %> ~ <%=tmp_edate %> )
|
||
|
||
<button type="button" class="btn btn-sm btn-primary" onclick="goView();"><3E><> <20><></button>
|
||
<!--
|
||
|
||
<input type="button" name="" value="<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>̵<EFBFBD>" onclick="javascript:pageMove();"/>
|
||
-->
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</form>
|
||
</td>
|
||
</tr>
|
||
<!-- //-- CTT -->
|
||
<!-- 2021-11-17 -->
|
||
<%
|
||
query = " SELECT bc.idx as bc_idx "&vbCrLf
|
||
query = query & " , bc.BG_CODE "&vbCrLf
|
||
query = query & " , bc.BL "&vbCrLf
|
||
query = query & " , bc.GP "&vbCrLf
|
||
query = query & " , bc.team_cd "&vbCrLf
|
||
query = query & " , bc.subtotal_key "&vbCrLf
|
||
query = query & " , (CASE WHEN isnull(bwd.idx,'0') = 0 THEN 'insert' ELSE 'update' END) input_yn "&vbCrLf
|
||
query = query & " , bwd.idx as bwd_idx "&vbCrLf
|
||
query = query & " , isnull(bwd.yearnum,'"& tmp_year &"') yearnum "&vbCrLf
|
||
query = query & " , isnull(bwd.weeknum,'"& tmp_week &"') weeknum "&vbCrLf
|
||
query = query & " , bwd.cro "&vbCrLf
|
||
query = query & " , bwd.ctt_pre_ww "&vbCrLf
|
||
query = query & " , bwd.ctt "&vbCrLf
|
||
query = query & " , bwd.ctt_pre_mm "&vbCrLf
|
||
query = query & " , bwd.mm_dif "&vbCrLf
|
||
query = query & " , bwd.ctt_add "&vbCrLf
|
||
query = query & " , bwd.ctt_add_pre "&vbCrLf
|
||
query = query & " , bwd.ctt_add_dif "&vbCrLf
|
||
query = query & " , bwd.sales_goal "&vbCrLf
|
||
query = query & " , bwd.sales_pre_amount "&vbCrLf
|
||
query = query & " , bwd.sales_goal_per "&vbCrLf
|
||
query = query & " , bwd.sales_wip "&vbCrLf
|
||
query = query & " , bwd.sales_year_dif "&vbCrLf
|
||
query = query & " FROM BG_CATEGORY bc "&vbCrLf
|
||
query = query & " LEFT OUTER JOIN BG_WEEKNUM_DATA bwd "&vbCrLf
|
||
query = query & " ON bc.BG_CODE = bwd.BG_CODE "&vbCrLf
|
||
query = query & " AND bwd.del_yn = 'N' "&vbCrLf
|
||
query = query & " AND bwd.yearnum = '"& tmp_year &"' "&vbCrLf
|
||
query = query & " AND bwd.weeknum = '"& tmp_week &"' "&vbCrLf
|
||
query = query & "WHERE bc.del_yn = 'N' "&vbCrLf
|
||
query = query & "ORDER BY bc.sortnum ASC "
|
||
|
||
adors.Open query, adoconn, adOpenStatic, adLockReadOnly
|
||
|
||
'response.write "<br>----------query-------------<br><br>"& query &" <br><br>"
|
||
'response.write "<br>----------adors.RecordCount-------------"& adors.RecordCount &"///"
|
||
'response.write "<br>-----------------------"& adors("yearnum") &"///"
|
||
'response.write "<br>-----------------------"& adors("weeknum") &"///"
|
||
'response.write "<br>-----------------------"& year(date) &"-12-15"
|
||
|
||
'response.write "<br>"
|
||
|
||
tmp_now_weeknum = adors("weeknum")
|
||
|
||
'//-- adors.Close
|
||
%>
|
||
<tr>
|
||
<td>
|
||
<form id="cttForm" name="cttForm" method="post">
|
||
<div class="SaveWarp my-1">
|
||
<%
|
||
'response.write "<br>-----------------------"& Request.ServerVariables("REMOTE_ADDR")
|
||
'response.write "<br>-----------------------"& session("admin_ip")
|
||
if( session("admin_ip") <> "" or ( session("User_Number") = "20190301" or session("User_Number") = "20191202" ) )then '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ü <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||
'response.write "<br>-----------------------"& session("admin_ip") &"---------" %>
|
||
<div class="SaveContainer" style="width: 1000px;">
|
||
<button type='button' class="ui-button ui-widget ui-corner-all" name="cls_view" id="cls_view"><3E>Է<EFBFBD><D4B7>ϱ<EFBFBD></button>
|
||
|
||
<button type='button' class="ui-button ui-widget ui-corner-all" name="ContactTran" id="ContactTran" style="display:none;">(<28>ڵ<EFBFBD><DAB5><EFBFBD><EFBFBD>갪<EFBFBD><EAB0AA> <20>ڽ<EFBFBD><DABD><EFBFBD> <20>Է<EFBFBD>)</button>
|
||
|
||
<button type='button' class="ui-button ui-widget ui-corner-all" name="ContactSave" id="ContactSave" style="display:none;"><3E><><EFBFBD><EFBFBD></button>
|
||
|
||
<span class="cls_val_yn" style="display:none;color: red;font-weight: bold;" >* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>赥<EFBFBD><E8B5A5><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>. ȭ<>鿡 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD> <20><><EFBFBD><EFBFBD> input <20>ڽ<EFBFBD><DABD><EFBFBD> <20>Է<EFBFBD> <20><> "<22><><EFBFBD><EFBFBD>"<22>Ͻʽÿ<CABD>.</span>
|
||
</div>
|
||
<% end if %>
|
||
</div>
|
||
<div class="divTable minimalistBlack mb-2">
|
||
<div class="divTableHeading" >
|
||
<div class="divTableRow" >
|
||
<% for i = 1 to 14 step 1 %>
|
||
<div class="divTableHead" alt="<%=i %>.<%=arr(i,0) %>" ><%=arr(i,3) %>.<%=arr(i,1) %></div>
|
||
<% next %>
|
||
</div>
|
||
</div>
|
||
<div class="divTableBody" >
|
||
<%
|
||
for ii = 1 to adors.RecordCount
|
||
|
||
'response.write "-----------------"& InStr(adors("GP"), "Subtotal")
|
||
if( InStr(adors("GP"), "Subtotal") > 0 )then
|
||
div_list_bgcolor = "divTableRow_subtotal"
|
||
Else
|
||
div_list_bgcolor = ""
|
||
End If
|
||
|
||
if( adors("GP") = "Total" )then
|
||
div_list_bgcolor = "divTableRow_total"
|
||
end if
|
||
%>
|
||
<div class="divTableRow <%=div_list_bgcolor%> " >
|
||
<%'=adors("team_cd") %>
|
||
|
||
<div class="divTableCell" style="display:none;" ><%=ii %>
|
||
<input type="text" name="input_yn" value="<%=adors("input_yn") %>" >
|
||
<input type="text" name="yearnum" value="<%=adors("yearnum") %>" >
|
||
<input type="text" name="weeknum" value="<%=adors("weeknum") %>" >
|
||
<input type="text" name="bwd_idx" value="<%=adors("bwd_idx") %>" >
|
||
</div>
|
||
|
||
<% for i = 0 to 14 step 1
|
||
|
||
tmp_div_type = ""
|
||
tmp_input_type = "text"
|
||
'if( arr(i,0) = "BG_CODE" or arr(i,0) = "GP" )then
|
||
' tmp_input_type = "hidden"
|
||
'end if
|
||
view_val_acc = ""
|
||
view_val = adors(arr(i,0))
|
||
|
||
'//-----------------------------------------------------
|
||
'//-- cols
|
||
select case i
|
||
case "0":
|
||
tmp_div_type = "none"
|
||
tmp_input_type = "hidden"
|
||
select case adors(arr(i,0)):
|
||
case "BG00001","BG00002","BG00003","BG00004","BG00005","BG00006","BG00007","BG00008","BG00009": view_val = "Research&Consulting"
|
||
case "BG00010","BG00011","BG00012","BG00013","BG00014": view_val = "Data Innovation"
|
||
case "BG00015","BG00016","BG00017": view_val = "Digital Convergence"
|
||
case else: view_val = "Total"
|
||
end select
|
||
case "1":
|
||
tmp_input_type = "hidden"
|
||
view_val = adors(arr(i,0))
|
||
case else:
|
||
view_val = adors(arr(i,0))
|
||
'//-- <20><><EFBFBD><EFBFBD> 'arrSUM(30,17)
|
||
'//arrSUM(ii,i) = adors(arr(i,0))
|
||
arrSUMTT(ii) = adors("subtotal_key") '//-- subtotal Ȯ<><C8AE>Ű 'response.write arrSUM(ii,i) 'response.write "///"& adors("subtotal_key")
|
||
if( left(adors("subtotal_key"),2) <> "st" and adors("subtotal_key") <> "tt" )then
|
||
arrSUM(ii,i) = adors(arr(i,0))
|
||
end if
|
||
end select
|
||
'//-----------------------------------------------------
|
||
|
||
'/////view_val = 0
|
||
|
||
'ctt_pre_ww" ' <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||
if( arr(i,0) = "ctt_pre_ww" )then
|
||
for aw = 0 to Ubound(arrvalW)
|
||
'response.write aw&" - "& arrvalW(aw,0)
|
||
'response.write "--- "& adors("team_cd") &" - "& arrvalW(aw,0) &" - "& arrvalW(aw,1)
|
||
if( trim(adors("team_cd")) = trim(arrvalW(aw,0)) )then
|
||
'response.write "***--- "& adors("team_cd") &" - "& arrvalW(aw,0) &" - "& arrvalW(aw,1)
|
||
view_val_acc = arrvalW(aw,1)
|
||
end if
|
||
next
|
||
'response.write "--- "& adors("team_cd")
|
||
'response.write "--- "& arr(i,0)
|
||
'response.write "--- "& adors("ctt_pre_ww")
|
||
'response.write "--- "& adors("ctt_pre_mm")
|
||
end if
|
||
'//-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ctt
|
||
if( arr(i,0) = "ctt" )then
|
||
for aw = 0 to Ubound(arrvalM)
|
||
'response.write aw&" - "& arrvalM(aw,0)
|
||
'response.write "--- "& adors("team_cd") &" - "& arrvalM(aw,0) &" - "& arrvalM(aw,1)
|
||
if( trim(adors("team_cd")) = trim(arrvalM(aw,0)) )then
|
||
'response.write "***--- "& adors("team_cd") &" - "& arrvalM(aw,0) &" - "& arrvalM(aw,1)
|
||
view_val_acc = arrvalM(aw,1)
|
||
end if
|
||
next
|
||
'response.write "--- "& adors("team_cd")
|
||
'response.write "--- "& arr(i,0)
|
||
'response.write "--- "& adors("ctt")
|
||
'response.write "--- "& adors("ctt_pre_mm")
|
||
end if
|
||
|
||
'//-- <20><> <20><><EFBFBD><EFBFBD>(%)
|
||
'//-- ctt/ctt_pre_mm*100
|
||
if( arr(i,0) = "mm_dif" )then
|
||
if( adors("ctt_pre_mm") > 0 )then
|
||
view_val = adors("ctt") / adors("ctt_pre_mm")
|
||
else
|
||
view_val = 0
|
||
end if
|
||
if( view_val > 0 )then
|
||
view_val = view_val * 100
|
||
end if
|
||
'response.write "--- "& arr(i,0)
|
||
'response.write "--- "& adors("ctt")
|
||
'response.write "--- "& adors("ctt_pre_mm")
|
||
end if
|
||
|
||
'//-- .<2E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> arrvalC
|
||
if( arr(i,0) = "ctt_add" )then
|
||
for aw = 0 to Ubound(arrvalC)
|
||
'response.write aw&" - "& arrvalC(aw,0)
|
||
'response.write "--- "& adors("team_cd") &" - "& arrvalC(aw,0) &" - "& arrvalC(aw,1)
|
||
if( trim(adors("team_cd")) = trim(arrvalC(aw,0)) )then
|
||
'response.write "***--- "& adors("team_cd") &" - "& arrvalC(aw,0) &" - "& arrvalC(aw,1)
|
||
view_val_acc = arrvalC(aw,1)
|
||
end if
|
||
next
|
||
'response.write "--- "& adors("team_cd")
|
||
'response.write "--- "& arr(i,0)
|
||
'response.write "--- "& adors("ctt")
|
||
'response.write "--- "& adors("ctt_pre_mm")
|
||
end if
|
||
|
||
'//-- <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||
'//-- ctt_add/ctt_add_pre*100
|
||
if( arr(i,0) = "ctt_add_dif" )then
|
||
if( adors("ctt_add_pre") > 0 )then
|
||
view_val = adors("ctt_add") / adors("ctt_add_pre")
|
||
else
|
||
view_val = 0
|
||
end if
|
||
if( view_val > 0 )then
|
||
view_val = view_val * 100
|
||
end if
|
||
'response.write "--- "& arr(i,0)
|
||
'response.write "--- "& adors("ctt_add")
|
||
'response.write "--- "& adors("ctt_add_pre")
|
||
end if
|
||
'//-- <20><><EFBFBD><EFBFBD> <20><>ǥ <20><EFBFBD><DEBC><EFBFBD>
|
||
'//-- sales_goal/sales_pre_amount*100
|
||
if( arr(i,0) = "sales_goal_per" )then
|
||
if( adors("sales_pre_amount") > 0 )then
|
||
view_val = adors("sales_goal") / adors("sales_pre_amount")
|
||
else
|
||
view_val = 0
|
||
end if
|
||
if( view_val > 0 )then
|
||
view_val = view_val * 100
|
||
end if
|
||
'response.write "--- "& arr(i,0)
|
||
'response.write "--- "& adors("sales_goal")
|
||
'response.write "--- "& adors("sales_pre_amount")
|
||
end if
|
||
'//-- <20><><EFBFBD><EFBFBD> Vs.<2E><><EFBFBD><EFBFBD>
|
||
'//-- sales_goal/sales_wip*100
|
||
if( arr(i,0) = "sales_year_dif" )then
|
||
if( adors("sales_wip") > 0 )then
|
||
view_val = adors("sales_goal") / adors("sales_wip")
|
||
else
|
||
view_val = 0
|
||
end if
|
||
if( view_val > 0 )then
|
||
view_val = view_val * 100
|
||
end if
|
||
'response.write "--- "& arr(i,0)
|
||
'response.write "--- "& adors("sales_goal")
|
||
'response.write "--- "& adors("sales_wip")
|
||
end if
|
||
|
||
'//-----------------------------------------------------
|
||
'//-- subtotal, total
|
||
select case i
|
||
case "0":
|
||
case "1":
|
||
case else:
|
||
if( arr(i,2) = "P" )then '--per<65><72> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ڵ<EFBFBD> <20><><EFBFBD><EFBFBD>
|
||
view_val_acc = arr(i,2)
|
||
else
|
||
'//-- subtotal
|
||
if( left(adors("subtotal_key"),2) = "st" )then
|
||
subtotal_sum = 0
|
||
subtotal_gb = right(adors("subtotal_key"),1)
|
||
|
||
for is_acc = 0 to ii
|
||
if( subtotal_gb = arrSUMTT(is_acc) )then
|
||
'response.write "<br>** "& subtotal_gb &" - "& arrSUMTT(is_acc) &" "& arrSUM(is_acc,i) &" **"
|
||
subtotal_sum = subtotal_sum + arrSUM(is_acc,i)
|
||
end if
|
||
next
|
||
|
||
arrSUM(ii,i) = subtotal_sum
|
||
view_val_acc = subtotal_sum
|
||
end if
|
||
'//-- total
|
||
if( adors("subtotal_key") = "tt" )then
|
||
subtotal_sum = 0
|
||
|
||
for is_acc = 0 to ii
|
||
if( left(arrSUMTT(is_acc),2) <> "st" and arrSUMTT(is_acc) <> "tt" )then
|
||
'response.write "<br>** "& left(arrSUMTT(is_acc),2) &" - "& arrSUMTT(is_acc) &" "& arrSUM(is_acc,i) &" **"
|
||
subtotal_sum = subtotal_sum + arrSUM(is_acc,i)
|
||
end if
|
||
next
|
||
|
||
arrSUM(ii,i) = subtotal_sum
|
||
view_val_acc = subtotal_sum
|
||
end if
|
||
end if
|
||
|
||
end select
|
||
'//-----------------------------------------------------
|
||
|
||
'Response.Write "IsNull(view_val_acc) : //"& view_val_acc &"// " & IsNull(view_val_acc) & "<br>"
|
||
'Response.Write "IsEmpty(view_val_acc) : " & IsEmpty(view_val_acc) & "<br>"
|
||
'Response.Write "len(view_val_acc) : " & len(view_val_acc) & "<br>"
|
||
'Response.Write "My_IsNumeric(view_val_acc) : " & My_IsNumeric(view_val_acc) & "<br>"
|
||
|
||
if( len(view_val_acc) > 0 and My_IsNumeric(view_val_acc) = True )then
|
||
view_val_acc = formatNumber(view_val_acc,0)
|
||
end if
|
||
'response.write "*"& view_val_acc
|
||
|
||
|
||
|
||
'Response.Write "IsNull(view_val) : //"& view_val &"// " & IsNull(view_val) & "<br>"
|
||
'Response.Write "IsEmpty(view_val) : " & IsEmpty(view_val) & "<br>"
|
||
|
||
if( arr(i,2) = "I" and IsNull(view_val) = False )then
|
||
'view_val = formatNumber(view_val,6)
|
||
view_val = formatNumber(view_val,0)
|
||
end if
|
||
if( arr(i,2) = "P" and IsNull(view_val) = False )then
|
||
'view_val = formatNumber(view_val,6) &" %"
|
||
'view_val = formatNumber(view_val,2) &" %"
|
||
view_val = formatNumber(view_val,0) &" %"
|
||
end if
|
||
|
||
'//-- <20><><EFBFBD><EFBFBD><EFBFBD>Է<EFBFBD> <20>ƴ<EFBFBD> <20>κ<EFBFBD><CEBA><EFBFBD> hidden
|
||
'if( arr(i,3) = "F" )then
|
||
' tmp_input_type = "hidden"
|
||
'end if
|
||
'//-- % <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>κ<EFBFBD><CEBA><EFBFBD> hidden
|
||
if( arr(i,2) = "P" )then
|
||
tmp_input_type = "hidden"
|
||
end if
|
||
%>
|
||
<div class="divTableCell divTableCell_intxt row_<%=ii %> <%=arr(i,0) %>" style="display:<%=tmp_div_type %>" >
|
||
<span class="cls_val_yn cls_val_real" style="display:none;color: red;font-weight: bold;" ><%=view_val_acc %><br></span>
|
||
<%'=arrSUM(ii,i) &"<br>"%>
|
||
<%=view_val %>
|
||
<input type="<%=tmp_input_type %>" class="cls_val_yn cls_val_real_input" name="<%=arr(i,0) %>" value="<%=adors(arr(i,0)) %>" style="display:none;" >
|
||
</div>
|
||
<% next %>
|
||
|
||
</div>
|
||
<%
|
||
adors.MoveNext
|
||
next
|
||
|
||
'//-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̺<EFBFBD> Ȯ<>ο<EFBFBD>
|
||
''response.write "<table class='cls_val_yn' style='display:none;' >"
|
||
''for ii =0 to 30
|
||
'' for i = 0 to 17
|
||
'' response.write "<td>"& arrSUMTT(ii) &" "& arrSUM(ii,i) &" </td>"
|
||
'' next
|
||
'' response.write "</tr><tr>"
|
||
''next
|
||
''
|
||
''response.write "</table>"
|
||
%>
|
||
</div>
|
||
<div class="divTableFoot tableFootStyle" style="display:none;" >
|
||
<div class="divTableRow" >
|
||
<div class="divTableCell"><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD>Ʈ</div>
|
||
<div class="divTableCell"> - </div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</form>
|
||
<%
|
||
adors.Close
|
||
%>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td style="padding:15 0 0 0"><hr></td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<table style="width:100%;" >
|
||
<tr>
|
||
<td class="cls_att_yn" style="padding:5 0 0 0; display:;font-size:;vertical-align: top;width: 780px;">
|
||
<table class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||
<tr>
|
||
<td style="padding:15 0 0 0" colspan=4><font class="brown" size="3"><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD>Ʈ ( <%=tmp_sdate %> ~ <%=tmp_edate %> )</font></td>
|
||
</tr>
|
||
<tr>
|
||
<td width="10%" align="center"><3E>μ<EFBFBD></td>
|
||
<td width="10%" align="center" ><3E><>¥</td>
|
||
<td width="65%" align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE></td>
|
||
<td width="15%" align="center"><3E>ݾ<EFBFBD></td>
|
||
</tr>
|
||
<%
|
||
query = ""
|
||
query = query & " SELECT team_name, team_cd, p_subject "&VbCrlf
|
||
query = query & " , p_total_cost , p_cont_cost "&VbCrlf
|
||
query = query & " , CONVERT(varchar(10), p_input_dt, 120) p_input_dt "&VbCrlf
|
||
query = query & " , CONVERT(varchar(10), p_decide_date, 120) p_decide_date "&VbCrlf
|
||
query = query & " FROM T_PROJECT_BASE tpb "&VbCrlf
|
||
query = query & " LEFT OUTER JOIN (SELECT team_cd, team_name, id AS tg_idx FROM TEAM_GROUP TG WHERE TG.div_use = '1' ) TG "&VbCrlf
|
||
query = query & " ON p_depart_dep = team_cd "&VbCrlf
|
||
'query = query & " WHERE 1 = 1 and p_state = 'P' AND CONVERT(varchar(10), p_input_dt, 120) BETWEEN '"& tmp_sdate &"'AND '"& tmp_edate &"' "&VbCrlf
|
||
query = query & " WHERE 1 = 1 and p_state = 'P' AND CONVERT(varchar(10), p_decide_date, 120) BETWEEN '"& tmp_sdate &"'AND '"& tmp_edate &"' "&VbCrlf
|
||
query = query & " ORDER BY TG.tg_idx asc "
|
||
|
||
'Response.Write query & "<br>"
|
||
|
||
adors.Open query, adoconn, adOpenStatic, adLockReadOnly
|
||
|
||
if adors.RecordCount > 0 then
|
||
|
||
sum_cont_cost = 0
|
||
|
||
For i = 1 To adors.RecordCount
|
||
%>
|
||
<tr>
|
||
<td width="10%" class="tahoma" align="center"><%=adors("team_name") %></td>
|
||
<td width="10%" class="tahoma" align="center"><%=adors("p_decide_date") %></td>
|
||
<td width="65%" class="tahoma" align="left" ><%=adors("p_subject") %> </td>
|
||
<td width="15%" class="tahoma" align="right"><%=formatnumber(adors("p_total_cost"),0) %></td>
|
||
</tr>
|
||
<%
|
||
sum_cont_cost = sum_cont_cost + cdbl(adors("p_total_cost"))
|
||
|
||
adors.MoveNext
|
||
Next
|
||
%>
|
||
<tr bgcolor="#F7F2E0" style="border-top:1px solid gray;">
|
||
<td width="13%" class="tahoma" align="center" style="font-weight:bold;"><3E><> <20><></td>
|
||
<td width="13%" class="tahoma" align="center" style="font-weight:bold;"><3E><> <20><></td>
|
||
<td width="13%" class="tahoma" align="right" style="font-weight:bold;"></td>
|
||
<td width="13%" class="tahoma" align="right" style="font-weight:bold;"><%=formatnumber(sum_cont_cost,0) %></td>
|
||
</tr>
|
||
<%
|
||
else
|
||
%>
|
||
<tr>
|
||
<td colspan="4" align="center"><3E><>ȸ<EFBFBD><C8B8> <20><><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD></td>
|
||
</tr>
|
||
<%
|
||
end if
|
||
adors.Close
|
||
%>
|
||
</table>
|
||
</td>
|
||
<td class="cls_att_yn" > </td>
|
||
<td class="cls_att_yn" style="padding:5 0 0 0; display:;vertical-align: top;width: 780px;">
|
||
<table class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||
<tr>
|
||
<td style="padding:15 0 0 0" colspan=4><font class="brown" size="3"><3E><><EFBFBD>డ<EFBFBD><E0B0A1> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD>Ʈ </font></td>
|
||
</tr>
|
||
<tr>
|
||
<td width="10%" align="center"><3E>μ<EFBFBD></td>
|
||
<td width="10%" align="center" ><3E><>¥</td>
|
||
<td width="65%" align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE></td>
|
||
<td width="15%" align="center"><3E><><EFBFBD>ȱݾ<C8B1></td>
|
||
</tr>
|
||
<%
|
||
query = ""
|
||
query = query & " SELECT team_name, team_cd, p_subject "&VbCrlf
|
||
query = query & " , p_total_cost , p_cont_cost "&VbCrlf
|
||
query = query & " , CONVERT(varchar(10), p_input_dt, 120) p_input_dt "&VbCrlf
|
||
query = query & " , CONVERT(varchar(10), p_decide_date, 120) p_decide_date "&VbCrlf
|
||
query = query & " FROM T_PROJECT_BASE tpb "&VbCrlf
|
||
query = query & " LEFT OUTER JOIN (SELECT team_cd, team_name, id AS tg_idx FROM TEAM_GROUP TG WHERE TG.div_use = '1' ) TG "&VbCrlf
|
||
query = query & " ON p_depart_dep = team_cd "&VbCrlf
|
||
query = query & " WHERE 1 = 1 "&VbCrlf
|
||
'query = query & " and p_state = 'P' "&VbCrlf '<27><><EFBFBD><EFBFBD>
|
||
query = query & " and p_state = 'K' "&VbCrlf '<27><><EFBFBD><EFBFBD>
|
||
'query = query & " AND CONVERT(varchar(10), p_input_dt, 120) >= '2021-01-01' "&VbCrlf
|
||
''query = query & " AND CONVERT(varchar(10), p_input_dt, 120) BETWEEN '"& tmp_sdate &"'AND '"& tmp_edate &"' "&VbCrlf
|
||
query = query & " ORDER BY TG.tg_idx asc "
|
||
|
||
'Response.Write query & "<br>"
|
||
|
||
adors.Open query, adoconn, adOpenStatic, adLockReadOnly
|
||
|
||
if adors.RecordCount > 0 then
|
||
|
||
sum_cont_cost = 0
|
||
|
||
For i = 1 To adors.RecordCount
|
||
%>
|
||
<tr>
|
||
<td width="10%" class="tahoma" align="center"><%=adors("team_name") %></td>
|
||
<td width="10%" class="tahoma" align="center"><%=adors("p_input_dt") %></td>
|
||
<td width="65%" class="tahoma" align="left" ><%=adors("p_subject") %> </td>
|
||
<td width="15%" class="tahoma" align="right"><%=formatnumber(adors("p_cont_cost"),0) %></td>
|
||
</tr>
|
||
<%
|
||
sum_cont_cost = sum_cont_cost + cdbl(adors("p_cont_cost"))
|
||
|
||
adors.MoveNext
|
||
Next
|
||
%>
|
||
<tr bgcolor="#F7F2E0" style="border-top:1px solid gray;">
|
||
<td width="13%" class="tahoma" align="center" style="font-weight:bold;"><3E><> <20><></td>
|
||
<td width="13%" class="tahoma" align="center" style="font-weight:bold;"><3E><> <20><></td>
|
||
<td width="13%" class="tahoma" align="right" style="font-weight:bold;"></td>
|
||
<td width="13%" class="tahoma" align="right" style="font-weight:bold;"><%=formatnumber(sum_cont_cost,0) %></td>
|
||
</tr>
|
||
<%
|
||
else
|
||
%>
|
||
<tr>
|
||
<td colspan="4" align="center"><3E><>ȸ<EFBFBD><C8B8> <20><><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD></td>
|
||
</tr>
|
||
<%
|
||
end if
|
||
adors.Close
|
||
%>
|
||
</table>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</td>
|
||
</tr>
|
||
<!-- //-- CTT -->
|
||
</table>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<!-- /.content -->
|
||
<!-- REQUIRED SCRIPTS -->
|
||
<script>
|
||
function goView() {
|
||
var tmp_year = document.team_project_count.tmp_year.value;
|
||
var tmp_week = document.team_project_count.tmp_week.value;
|
||
|
||
var url = "";
|
||
url = "./dashboard_ctt.asp?tmp_year=" + tmp_year + "&tmp_week=" + tmp_week;
|
||
|
||
//eval("document.all.menuf.src = url;");
|
||
//alert(url);
|
||
document.team_project_count.action = url;
|
||
document.team_project_count.submit();
|
||
}
|
||
|
||
function getWeeknum(){
|
||
|
||
var params = {
|
||
tmp_year : $("#tmp_year").val()
|
||
}
|
||
console.log(params);
|
||
|
||
$.ajax({
|
||
url:"dashboard_ctt_cate_Ajax.asp",
|
||
method:"POST",
|
||
data:params,
|
||
contentType:"application/x-www-form-urlencoded; charset=euc-kr",
|
||
dataType: "JSON",
|
||
async:false,
|
||
success:function(res){
|
||
//console.log("y");
|
||
$("#tmp_week").empty();
|
||
//console.log(res.data);
|
||
$.each(res.data, function (index, value) {
|
||
$('#tmp_week').append('<option value="' + value.weeknum + '">' + value.weeknum + ' weeknum : '+ value.sdate +'~'+ value.edate +'</option>');
|
||
});
|
||
|
||
$("#tmp_week").val("<%=tmp_now_weeknum %>").prop("selected", true);
|
||
|
||
},
|
||
error:function(err){
|
||
alert("System Error\n<><6E><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>");
|
||
return false;
|
||
}
|
||
});
|
||
}
|
||
|
||
//-- <20>ڵ<EFBFBD><DAB5><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> input<75><74> <20>Է<EFBFBD>
|
||
function readyValtoInput(){
|
||
|
||
$.each( $(".cls_val_real"), function(index, item){
|
||
|
||
var real_acc_val = $(".cls_val_real:eq("+index+")").text();
|
||
real_acc_val = real_acc_val.replace(/,/g, "");
|
||
|
||
//console.log(index +' - '+ item );
|
||
if( $(".cls_val_real_input:eq("+index+")").attr("type") != "hidden" ){
|
||
//$(".cls_val_real_input:eq("+index+")").val($(".cls_val_real:eq("+index+")").text());
|
||
$(".cls_val_real_input:eq("+index+")").val(real_acc_val);
|
||
}
|
||
});
|
||
}
|
||
|
||
$(function(){
|
||
$("#cls_view").on("click", function(){
|
||
$(".cls_val_yn").toggle();
|
||
$("#ContactTran").toggle();
|
||
$("#ContactSave").toggle();
|
||
});
|
||
|
||
$("#cls_att_view").on("click", function(){
|
||
$(".cls_att_yn").toggle();
|
||
});
|
||
|
||
|
||
//-- top combo select - dashboard_ctt_cate_Ajax.asp
|
||
getWeeknum();
|
||
|
||
$("#tmp_year").on("change", function(){
|
||
getWeeknum();
|
||
});
|
||
$("#tmp_week").on("change", function(){
|
||
goView();
|
||
});
|
||
|
||
$("#ContactTran").on("click", function(){
|
||
readyValtoInput();
|
||
});
|
||
|
||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD>
|
||
$("#ContactSave").on("click", function(){
|
||
if(confirm("<22>Է»<D4B7><C2BB><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?")){
|
||
var params = jQuery("#cttForm").serialize(); // serialize() : <20>Էµ<D4B7> <20><><EFBFBD><EFBFBD>Element(<28><>)<29><> <20><><EFBFBD>ڿ<EFBFBD><DABF><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ϳ<EFBFBD> serialize <20>Ѵ<EFBFBD>.
|
||
//var params = jQuery("#cttForm").serializeArray();
|
||
console.log(params);
|
||
|
||
$.ajax({
|
||
url:"dashboard_ctt_AjaxSave.asp",
|
||
method:"POST",
|
||
data:params,
|
||
contentType:"application/x-www-form-urlencoded; charset=euc-kr",
|
||
async:false,
|
||
success:function(res){
|
||
alert("<22><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD>");
|
||
location.href="./dashboard_ctt.asp?tmp_year=<%=tmp_year %>&tmp_week=<%=tmp_week %>";
|
||
},
|
||
error:function(err){
|
||
alert("System Error\n<><6E><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>");
|
||
return false;
|
||
}
|
||
});
|
||
/*
|
||
$.ajax({
|
||
url:"dashboard_ctt_AjaxSave.asp",
|
||
method:"POST",
|
||
data:params,
|
||
contentType:"application/x-www-form-urlencoded; charset=euc-kr",
|
||
async:false,
|
||
success:function(res){
|
||
alert("<22><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD>");
|
||
//location.href="./dashboard_ctt.asp?tmp_year=<%=tmp_year %>&tmp_week=<%=tmp_week %>";
|
||
},
|
||
error:function(err){
|
||
alert("System Error\n<><6E><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>");
|
||
return false;
|
||
}
|
||
});
|
||
*/
|
||
}
|
||
});
|
||
});
|
||
function detailView(depart){
|
||
var tmp_year = document.team_project_count.tmp_year.value;
|
||
var tmp_month = "0";
|
||
var p_depart = depart;
|
||
|
||
var url = "team_project_popup.asp?tmp_year=" + tmp_year + "&tmp_month=" + tmp_month + "&p_depart="+p_depart;
|
||
url = url + "&command=popup";
|
||
|
||
window.open(url,"","left=50 ,top=0, menubar=no, location=no ,status=no ,toolbar=no ,width=950, height=650 ,scrollbars=yes ,resizable=yes");
|
||
}
|
||
|
||
function pageMove() {
|
||
var tmp_year = document.team_project_count.tmp_year.value;
|
||
//var tmp_month = document.team_project_count.tmp_month.value;
|
||
//var p_depart = document.team_project_count.p_depart.value;
|
||
|
||
var url = "team_project_count.asp?tmp_year=&tmp_month=&p_depart=";
|
||
//alert(url);
|
||
document.team_project_count.action = url;
|
||
document.team_project_count.submit();
|
||
}
|
||
</script>
|
||
</div>
|
||
<!-- /.content-wrapper -->
|
||
<!-- #include virtual = "include/footer.asp" --> |