<%
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
%>
<%'=adors("team_cd") %>
<%=ii %>
" >
" >
" >
" >
<% 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))
'//-- 집계 'arrSUM(30,17)
'//arrSUM(ii,i) = adors(arr(i,0))
arrSUMTT(ii) = adors("subtotal_key") '//-- subtotal 확인키 '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" ' 전주 계약
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
'//-- 당월계약 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
'//-- 월 비교(%)
'//-- 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
'//-- .올해 누적계약 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
'//-- 누적 계약 비교
'//-- 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
'//-- 매출 목표 달성율
'//-- 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
'//-- 올해 Vs.전년
'//-- 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는 저장된 데이터 자동 계산
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 "
** "& 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 "
** "& 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) & "
"
'Response.Write "IsEmpty(view_val_acc) : " & IsEmpty(view_val_acc) & "
"
'Response.Write "len(view_val_acc) : " & len(view_val_acc) & "
"
'Response.Write "My_IsNumeric(view_val_acc) : " & My_IsNumeric(view_val_acc) & "
"
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) & "
"
'Response.Write "IsEmpty(view_val) : " & IsEmpty(view_val) & "
"
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
'//-- 수동입력 아닌 부분은 hidden
'if( arr(i,3) = "F" )then
' tmp_input_type = "hidden"
'end if
'//-- % 로 나오는 부분은 hidden
if( arr(i,2) = "P" )then
tmp_input_type = "hidden"
end if
%>
<%=view_val_acc %>
<%'=arrSUM(ii,i) &"
"%>
<%=view_val %>
<% next %>
<%
adors.MoveNext
next
'//-- 집계테이블 확인용
''response.write "