2026년 그룹운영비 임시예산 반영
- <식대와 교통비>, <회식비와 기타항목> 통합 - 디지털서비스본부는 그룹별 예산이 아닌 본부예산으로 통합
This commit is contained in:
@@ -166,20 +166,22 @@
|
||||
</div>
|
||||
<table class="table table-sm table-sm2 table-bordered table-head tr-colors" id="topTb">
|
||||
<tr>
|
||||
<td width="10%" align="center"><%=now_month %></td>
|
||||
<td width="20%" align="center"><%=now_month %></td>
|
||||
<td width="13%" align="center"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" align="center"><3E>Ĵ<EFBFBD></td>
|
||||
<td width="11%" align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" align="center">ȸ<>ĺ<EFBFBD></td>
|
||||
<td width="11%" align="center"><3E><>ǰ<EFBFBD><C7B0><EFBFBD>Ժ<EFBFBD></td>
|
||||
<td width="11%" align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" align="center"><3E><>Ÿ</td>
|
||||
<td width="11%" align="center"><3E>հ<EFBFBD></td>
|
||||
<!-- <td width="11%" align="center"><3E>Ĵ<EFBFBD></td>-->
|
||||
<!-- <td width="11%" align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>-->
|
||||
<!-- <td width="11%" align="center">ȸ<>ĺ<EFBFBD></td>-->
|
||||
<!-- <td width="11%" align="center"><3E><>ǰ<EFBFBD><C7B0><EFBFBD>Ժ<EFBFBD></td>-->
|
||||
<!-- <td width="11%" align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>-->
|
||||
<!-- <td width="11%" align="center"><3E><>Ÿ</td>-->
|
||||
<td width="20%" align="center"><3E>Ĵ<EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="20%" style="text-align:center;">ȸ<>ĺ<EFBFBD> <20><> <20><>Ÿ</td>
|
||||
<td width="20%" align="center"><3E>հ<EFBFBD></td>
|
||||
</tr>
|
||||
<%
|
||||
Dim depart_cd_string
|
||||
Dim total_est, total_use, total_res
|
||||
Dim hang1_res_cost, hang2_res_cost, hang3_res_cost, hang4_res_cost, hang5_res_cost, hang6_res_cost
|
||||
Dim hang1_res_cost, hang2_res_cost, hang3_res_cost, hang4_res_cost, hang5_res_cost, hang6_res_cost, hang7_res_cost, hang8_res_cost, hang9_res_cost
|
||||
depart_cd_string = ""
|
||||
total_est = 0
|
||||
total_use = 0
|
||||
@@ -200,33 +202,52 @@
|
||||
Query = Query & " ,ISNULL(SUM(hang4_cost),0) as hang4_cost "
|
||||
Query = Query & " ,ISNULL(SUM(hang5_cost),0) as hang5_cost "
|
||||
Query = Query & " ,ISNULL(SUM(hang6_cost),0) as hang6_cost "
|
||||
Query = Query & " ,ISNULL(SUM(hang7_cost),0) as hang7_cost "
|
||||
Query = Query & " ,ISNULL(SUM(hang8_cost),0) as hang8_cost "
|
||||
Query = Query & " ,ISNULL(SUM(hang9_cost),0) as hang9_cost "
|
||||
Query = Query & " ,ISNULL(SUM(hang1_use_cost),0) as hang1_use_cost "
|
||||
Query = Query & " ,ISNULL(SUM(hang2_use_cost),0) as hang2_use_cost "
|
||||
Query = Query & " ,ISNULL(SUM(hang3_use_cost),0) as hang3_use_cost "
|
||||
Query = Query & " ,ISNULL(SUM(hang4_use_cost),0) as hang4_use_cost "
|
||||
Query = Query & " ,ISNULL(SUM(hang5_use_cost),0) as hang5_use_cost "
|
||||
Query = Query & " ,ISNULL(SUM(hang6_use_cost),0) as hang6_use_cost "
|
||||
Query = Query & " ,ISNULL(SUM(hang7_use_cost),0) as hang7_use_cost "
|
||||
Query = Query & " ,ISNULL(SUM(hang8_use_cost),0) as hang8_use_cost "
|
||||
Query = Query & " ,ISNULL(SUM(hang9_use_cost),0) as hang9_use_cost "
|
||||
Query = Query & " from( "
|
||||
END IF
|
||||
Query = Query & " SELECT GCE.depart_nm, GCE.depart_cd, hang1_cost, hang2_cost, hang3_cost, hang4_cost, hang5_cost, hang6_cost, "
|
||||
Query = Query & " SELECT GCE.depart_nm, GCE.depart_cd, hang1_cost, hang2_cost, hang3_cost, hang4_cost, hang5_cost, hang6_cost, hang7_cost, hang8_cost, hang9_cost, "
|
||||
Query = Query & " ISNULL(SUM(CASE WHEN VGC.txt_hangmok = '<27>Ĵ<EFBFBD>' THEN VGC.cost ELSE 0 END), 0) AS hang1_use_cost, "
|
||||
Query = Query & " ISNULL(SUM(CASE WHEN VGC.txt_hangmok = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' THEN VGC.cost ELSE 0 END), 0) AS hang2_use_cost, "
|
||||
Query = Query & " ISNULL(SUM(CASE WHEN VGC.txt_hangmok = 'ȸ<>ĺ<EFBFBD>' THEN VGC.cost ELSE 0 END), 0) AS hang3_use_cost, "
|
||||
Query = Query & " ISNULL(SUM(CASE WHEN VGC.txt_hangmok = '<27><>ǰ<EFBFBD><C7B0><EFBFBD>Ժ<EFBFBD>' THEN VGC.cost ELSE 0 END), 0) AS hang4_use_cost, "
|
||||
Query = Query & " ISNULL(SUM(CASE WHEN VGC.txt_hangmok = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' THEN VGC.cost ELSE 0 END), 0) AS hang5_use_cost, "
|
||||
Query = Query & " ISNULL(SUM(CASE WHEN VGC.txt_hangmok = '<27><>Ÿ' THEN VGC.cost ELSE 0 END), 0) AS hang6_use_cost "
|
||||
Query = Query & " ISNULL(SUM(CASE WHEN VGC.txt_hangmok = '<27><>Ÿ' THEN VGC.cost ELSE 0 END), 0) AS hang6_use_cost, "
|
||||
Query = Query & " ISNULL(SUM(CASE WHEN VGC.txt_hangmok = '<27>Ĵ<EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' THEN VGC.cost ELSE 0 END), 0) AS hang7_use_cost, "
|
||||
Query = Query & " ISNULL(SUM(CASE WHEN VGC.txt_hangmok = 'ȸ<>ĺ<EFBFBD> <20><> <20><>Ÿ' THEN VGC.cost ELSE 0 END), 0) AS hang8_use_cost, "
|
||||
Query = Query & " ISNULL(SUM(CASE WHEN VGC.txt_hangmok = 'Ȱ<><C8B0><EFBFBD><EFBFBD>' THEN VGC.cost ELSE 0 END), 0) AS hang9_use_cost "
|
||||
Query = Query & " FROM GROUP_COST_EST GCE LEFT JOIN V_GROUP_COST_NEW VGC "
|
||||
Query = Query & " ON CHARINDEX(VGC.d_code, GCE.depart_cd) > 0 AND VGC.cost_date BETWEEN GCE.st_date AND GCE.ed_date "
|
||||
Query = Query & " ON VGC.d_code IN ( "
|
||||
Query = Query & " CASE WHEN GCE.depart_cd = 'S801' THEN 'S301' ELSE GCE.depart_cd END, "
|
||||
Query = Query & " CASE WHEN GCE.depart_cd = 'S801' THEN 'S401' ELSE GCE.depart_cd END, "
|
||||
Query = Query & " CASE WHEN GCE.depart_cd = 'S801' THEN 'S501' ELSE GCE.depart_cd END, "
|
||||
Query = Query & " CASE WHEN GCE.depart_cd = 'S801' THEN 'S601' ELSE GCE.depart_cd END "
|
||||
Query = Query & " ) "
|
||||
Query = Query & " AND VGC.cost_date BETWEEN GCE.st_date AND GCE.ed_date "
|
||||
Query = Query & " WHERE use_yn = '1' "
|
||||
'<27><><EFBFBD>ؼ<EFBFBD> 2023-05-02 <20><>Ʈ<EFBFBD>ʵ<EFBFBD> <20>ѵ<EFBFBD> <20>߰<EFBFBD>
|
||||
If Session("User_Number") = "20151203" OR Session("User_Number") = "20031102" OR Session("N_Depart") = "E" Then
|
||||
Query = Query & " AND GCE.partner_no = '" & Session("User_Number") & "' "
|
||||
Else
|
||||
Query = Query & " AND CHARINDEX('" & Session("N_depart") & Session("N_team") & "', GCE.depart_cd) > 0 "
|
||||
End If
|
||||
If Session("N_depart") = "S" And (Session("N_team") = "301" Or Session("N_team") = "401" Or Session("N_team") = "501" Or Session("N_team") = "601") Then
|
||||
Query = Query & " AND GCE.depart_cd = 'S801' "
|
||||
Else
|
||||
Query = Query & " AND GCE.depart_cd = '" & Session("N_depart") & Session("N_team") & "' "
|
||||
END IF
|
||||
End If
|
||||
|
||||
Query = Query & " AND '" & now_month & "-01' BETWEEN GCE.st_date AND GCE.ed_date "
|
||||
Query = Query & " GROUP BY GCE.depart_nm, GCE.depart_cd, hang1_cost, hang2_cost, hang3_cost, hang4_cost, hang5_cost, hang6_cost "
|
||||
Query = Query & " GROUP BY GCE.depart_nm, GCE.depart_cd, hang1_cost, hang2_cost, hang3_cost, hang4_cost, hang5_cost, hang6_cost, hang7_cost, hang8_cost, hang9_cost "
|
||||
'2023-05-15 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>Ʈ<EFBFBD>ʴ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD> <20><> <20><EFBFBD><D7B7><EFBFBD> & <20><><EFBFBD>볻<EFBFBD><EBB3BB> <20><><EFBFBD><EFBFBD> (<28><> <20><EFBFBD><D7B7><EFBFBD><EFBFBD><EFBFBD> 2<><32> <20><> <20>̻<EFBFBD><CCBB><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ջ<EFBFBD><D5BB>ؼ<EFBFBD> <20><><EFBFBD><EFBFBD>)
|
||||
If Session("User_Number") = "20151203" OR Session("User_Number") = "20031102" OR Session("N_Depart") = "E" Then
|
||||
Query = Query & " ) GROUP_COST "
|
||||
@@ -239,8 +260,8 @@
|
||||
depart_cd_string = adoRs("depart_cd_string")
|
||||
END IF
|
||||
|
||||
total_est = adoRs("hang1_cost") + adoRs("hang2_cost") + adoRs("hang3_cost") + adoRs("hang4_cost") + adoRs("hang5_cost") + adoRs("hang6_cost")
|
||||
total_use = adoRs("hang1_use_cost") + adoRs("hang2_use_cost") + adoRs("hang3_use_cost") + adoRs("hang4_use_cost") + adoRs("hang5_use_cost") + adoRs("hang6_use_cost")
|
||||
total_est = adoRs("hang1_cost") + adoRs("hang2_cost") + adoRs("hang3_cost") + adoRs("hang4_cost") + adoRs("hang5_cost") + adoRs("hang6_cost") + adoRs("hang7_cost") + adoRs("hang8_cost")
|
||||
total_use = adoRs("hang1_use_cost") + adoRs("hang2_use_cost") + adoRs("hang3_use_cost") + adoRs("hang4_use_cost") + adoRs("hang5_use_cost") + adoRs("hang6_use_cost") + adoRs("hang7_use_cost") + adoRs("hang8_use_cost")
|
||||
total_res = total_est - total_use
|
||||
|
||||
hang1_res_cost = adoRs("hang1_cost") - adoRs("hang1_use_cost")
|
||||
@@ -249,6 +270,9 @@
|
||||
hang4_res_cost = adoRs("hang4_cost") - adoRs("hang4_use_cost")
|
||||
hang5_res_cost = adoRs("hang5_cost") - adoRs("hang5_use_cost")
|
||||
hang6_res_cost = adoRs("hang6_cost") - adoRs("hang6_use_cost")
|
||||
hang7_res_cost = adoRs("hang7_cost") - adoRs("hang7_use_cost")
|
||||
hang8_res_cost = adoRs("hang8_cost") - adoRs("hang8_use_cost")
|
||||
hang9_res_cost = adoRs("hang9_cost") - adoRs("hang9_use_cost")
|
||||
%>
|
||||
|
||||
|
||||
@@ -264,32 +288,20 @@
|
||||
<% end if %>
|
||||
</td>
|
||||
<td align="center" ><3E><><EFBFBD><EFBFBD></td>
|
||||
<td align="center" ><input type="text" class="number" style="width:70px; font-size:12px; text-align:right;" value="<%= FormatNumber(adoRs("hang1_cost"), 0) %>" readonly /></td>
|
||||
<td align="center" ><input type="text" class="number" style="width:70px; font-size:12px; text-align:right;" value="<%= FormatNumber(adoRs("hang2_cost"), 0) %>" readonly /></td>
|
||||
<td align="center" ><input type="text" class="number" style="width:70px; font-size:12px; text-align:right;" value="<%= FormatNumber(adoRs("hang3_cost"), 0) %>" readonly /></td>
|
||||
<td align="center" ><input type="text" class="number" style="width:70px; font-size:12px; text-align:right;" value="<%= FormatNumber(adoRs("hang4_cost"), 0) %>" readonly /></td>
|
||||
<td align="center" ><input type="text" class="number" style="width:70px; font-size:12px; text-align:right;" value="<%= FormatNumber(adoRs("hang5_cost"), 0) %>" readonly /></td>
|
||||
<td align="center" ><input type="text" class="number" style="width:70px; font-size:12px; text-align:right;" value="<%= FormatNumber(adoRs("hang6_cost"), 0) %>" readonly /></td>
|
||||
<td align="center" ><input type="text" class="number" style="width:70px; font-size:12px; text-align:right;" value="<%= FormatNumber(adoRs("hang7_cost"), 0) %>" readonly /></td>
|
||||
<td style="text-align:center;" ><input type="text" class="number" style="width:70px; font-size:12px; text-align:right;" value="<%= FormatNumber(adoRs("hang8_cost"), 0) %>" readonly /></td>
|
||||
<td align="center" ><input type="text" class="number" style="width:78px; font-size:12px; text-align:right;" value="<%= FormatNumber(total_est, 0) %>" readonly /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" ><3E><><EFBFBD><EFBFBD></td>
|
||||
<td align="center" ><input type="text" class="number" style="width:70px; font-size:12px; text-align:right;" value="<%= FormatNumber(adoRs("hang1_use_cost"), 0) %>" readonly /></td>
|
||||
<td align="center" ><input type="text" class="number" style="width:70px; font-size:12px; text-align:right;" value="<%= FormatNumber(adoRs("hang2_use_cost"), 0) %>" readonly /></td>
|
||||
<td align="center" ><input type="text" class="number" style="width:70px; font-size:12px; text-align:right;" value="<%= FormatNumber(adoRs("hang3_use_cost"), 0) %>" readonly /></td>
|
||||
<td align="center" ><input type="text" class="number" style="width:70px; font-size:12px; text-align:right;" value="<%= FormatNumber(adoRs("hang4_use_cost"), 0) %>" readonly /></td>
|
||||
<td align="center" ><input type="text" class="number" style="width:70px; font-size:12px; text-align:right;" value="<%= FormatNumber(adoRs("hang5_use_cost"), 0) %>" readonly /></td>
|
||||
<td align="center" ><input type="text" class="number" style="width:70px; font-size:12px; text-align:right;" value="<%= FormatNumber(adoRs("hang6_use_cost"), 0) %>" readonly /></td>
|
||||
<td align="center" ><input type="text" class="number" style="width:70px; font-size:12px; text-align:right;" value="<%= FormatNumber(adoRs("hang7_use_cost"), 0) %>" readonly /></td>
|
||||
<td style="text-align:center;" ><input type="text" class="number" style="width:70px; font-size:12px; text-align:right;" value="<%= FormatNumber(adoRs("hang8_use_cost"), 0) %>" readonly /></td>
|
||||
<td align="center" ><input type="text" class="number" style="width:78px; font-size:12px; text-align:right;" value="<%= FormatNumber(total_use, 0) %>" readonly /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" ><3E>ܿ<EFBFBD></td>
|
||||
<td align="center" ><input type="text" class="number" style="width:70px; font-size:12px; text-align:right;" value="<%= FormatNumber(hang1_res_cost, 0) %>" readonly /></td>
|
||||
<td align="center" ><input type="text" class="number" style="width:70px; font-size:12px; text-align:right;" value="<%= FormatNumber(hang2_res_cost, 0) %>" readonly /></td>
|
||||
<td align="center" ><input type="text" class="number" style="width:70px; font-size:12px; text-align:right;" value="<%= FormatNumber(hang3_res_cost, 0) %>" readonly /></td>
|
||||
<td align="center" ><input type="text" class="number" style="width:70px; font-size:12px; text-align:right;" value="<%= FormatNumber(hang4_res_cost, 0) %>" readonly /></td>
|
||||
<td align="center" ><input type="text" class="number" style="width:70px; font-size:12px; text-align:right;" value="<%= FormatNumber(hang5_res_cost, 0) %>" readonly /></td>
|
||||
<td align="center" ><input type="text" class="number" style="width:70px; font-size:12px; text-align:right;" value="<%= FormatNumber(hang6_res_cost, 0) %>" readonly /></td>
|
||||
<td align="center" ><input type="text" class="number" style="width:70px; font-size:12px; text-align:right;" value="<%= FormatNumber(hang7_res_cost, 0) %>" readonly /></td>
|
||||
<td style="text-align:center;" ><input type="text" class="number" style="width:70px; font-size:12px; text-align:right;" value="<%= FormatNumber(hang8_res_cost, 0) %>" readonly /></td>
|
||||
<td align="center" ><input type="text" class="number" style="width:78px; font-size:12px; text-align:right;" value="<%= FormatNumber(total_res, 0) %>" readonly /></td>
|
||||
</tr>
|
||||
<%
|
||||
@@ -303,30 +315,34 @@
|
||||
<tr>
|
||||
<td width="10%" align="center"><%=now_month %></td>
|
||||
<td width="13%" align="center"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" align="center"><3E>Ĵ<EFBFBD></td>
|
||||
<td width="11%" align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" align="center">ȸ<>ĺ<EFBFBD></td>
|
||||
<td width="11%" align="center"><3E><>ǰ<EFBFBD><C7B0><EFBFBD>Ժ<EFBFBD></td>
|
||||
<td width="11%" align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" align="center"><3E><>Ÿ</td>
|
||||
<!-- <td width="11%" align="center"><3E>Ĵ<EFBFBD></td>-->
|
||||
<!-- <td width="11%" align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>-->
|
||||
<!-- <td width="11%" align="center">ȸ<>ĺ<EFBFBD></td>-->
|
||||
<!-- <td width="11%" align="center"><3E><>ǰ<EFBFBD><C7B0><EFBFBD>Ժ<EFBFBD></td>-->
|
||||
<!-- <td width="11%" align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>-->
|
||||
<!-- <td width="11%" align="center"><3E><>Ÿ</td>-->
|
||||
<td width="11%" style="text-align:center;">Ȱ<><C8B0><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" align="center"><3E>հ<EFBFBD></td>
|
||||
</tr>
|
||||
<%
|
||||
Dim total_est2, total_use2, total_res2
|
||||
Dim hang1_res_cost2, hang2_res_cost2, hang3_res_cost2, hang4_res_cost2, hang5_res_cost2, hang6_res_cost2
|
||||
Dim hang1_res_cost2, hang2_res_cost2, hang3_res_cost2, hang4_res_cost2, hang5_res_cost2, hang6_res_cost2, hang7_res_cost2, hang8_res_cost2
|
||||
total_est2 = 0
|
||||
total_use2 = 0
|
||||
total_res2 = 0
|
||||
over_hang = ""
|
||||
|
||||
Query = ""
|
||||
Query = Query & " SELECT GCE.depart_nm, hang1_cost, hang2_cost, hang3_cost, hang4_cost, hang5_cost, hang6_cost, "
|
||||
Query = Query & " SELECT GCE.depart_nm, hang1_cost, hang2_cost, hang3_cost, hang4_cost, hang5_cost, hang6_cost, hang7_cost, hang8_cost, hang9_cost, "
|
||||
Query = Query & " ISNULL(SUM(CASE WHEN VGC.txt_hangmok = '<27>Ĵ<EFBFBD>' THEN VGC.cost ELSE 0 END), 0) AS hang1_use_cost, "
|
||||
Query = Query & " ISNULL(SUM(CASE WHEN VGC.txt_hangmok = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' THEN VGC.cost ELSE 0 END), 0) AS hang2_use_cost, "
|
||||
Query = Query & " ISNULL(SUM(CASE WHEN VGC.txt_hangmok = 'ȸ<>ĺ<EFBFBD>' THEN VGC.cost ELSE 0 END), 0) AS hang3_use_cost, "
|
||||
Query = Query & " ISNULL(SUM(CASE WHEN VGC.txt_hangmok = '<27><>ǰ<EFBFBD><C7B0><EFBFBD>Ժ<EFBFBD>' THEN VGC.cost ELSE 0 END), 0) AS hang4_use_cost, "
|
||||
Query = Query & " ISNULL(SUM(CASE WHEN VGC.txt_hangmok = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' THEN VGC.cost ELSE 0 END), 0) AS hang5_use_cost, "
|
||||
Query = Query & " ISNULL(SUM(CASE WHEN VGC.txt_hangmok = '<27><>Ÿ' THEN VGC.cost ELSE 0 END), 0) AS hang6_use_cost "
|
||||
Query = Query & " ISNULL(SUM(CASE WHEN VGC.txt_hangmok = '<27><>Ÿ' THEN VGC.cost ELSE 0 END), 0) AS hang6_use_cost, "
|
||||
Query = Query & " ISNULL(SUM(CASE WHEN VGC.txt_hangmok = '<27>Ĵ<EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' THEN VGC.cost ELSE 0 END), 0) AS hang7_use_cost, "
|
||||
Query = Query & " ISNULL(SUM(CASE WHEN VGC.txt_hangmok = 'ȸ<>ĺ<EFBFBD> <20><> <20><>Ÿ' THEN VGC.cost ELSE 0 END), 0) AS hang8_use_cost, "
|
||||
Query = Query & " ISNULL(SUM(CASE WHEN VGC.txt_hangmok = 'Ȱ<><C8B0><EFBFBD><EFBFBD>' THEN VGC.cost ELSE 0 END), 0) AS hang9_use_cost "
|
||||
Query = Query & " FROM GROUP_COST_EST GCE LEFT JOIN V_GROUP_COST_NEW VGC "
|
||||
IF Session("User_Number") = "20151203" OR Session("User_Number") = "20031102" OR Session("N_Depart") = "E" THEN
|
||||
Query = Query & " ON VGC.d_code = 'E101' AND VGC.cost_date BETWEEN GCE.st_date AND GCE.ed_date "
|
||||
@@ -340,22 +356,28 @@
|
||||
Query = Query & " WHERE use_yn = '1' "
|
||||
Query = Query & " AND GCE.depart_cd='" & Session("User_Number") & "'"
|
||||
Query = Query & " AND '" & now_month & "-01' BETWEEN GCE.st_date AND GCE.ed_date "
|
||||
Query = Query & " GROUP BY GCE.depart_nm, hang1_cost, hang2_cost, hang3_cost, hang4_cost, hang5_cost, hang6_cost "
|
||||
Query = Query & " GROUP BY GCE.depart_nm, hang1_cost, hang2_cost, hang3_cost, hang4_cost, hang5_cost, hang6_cost, hang7_cost, hang8_cost, hang9_cost "
|
||||
|
||||
'Response.Write Query
|
||||
adoRs.open Query, adoconn,adopenstatic, adlockreadonly
|
||||
|
||||
if adoRs.recordCount > 0 Then
|
||||
total_est2 = adoRs("hang1_cost") + adoRs("hang2_cost") + adoRs("hang3_cost") + adoRs("hang4_cost") + adoRs("hang5_cost") + adoRs("hang6_cost")
|
||||
total_use2 = adoRs("hang1_use_cost") + adoRs("hang2_use_cost") + adoRs("hang3_use_cost") + adoRs("hang4_use_cost") + adoRs("hang5_use_cost") + adoRs("hang6_use_cost")
|
||||
'total_est2 = adoRs("hang1_cost") + adoRs("hang2_cost") + adoRs("hang3_cost") + adoRs("hang4_cost") + adoRs("hang5_cost") + adoRs("hang6_cost") + adoRs("hang7_cost") + adoRs("hang8_cost")
|
||||
'total_use2 = adoRs("hang1_use_cost") + adoRs("hang2_use_cost") + adoRs("hang3_use_cost") + adoRs("hang4_use_cost") + adoRs("hang5_use_cost") + adoRs("hang6_use_cost") + adoRs("hang7_use_cost") + adoRs("hang8_use_cost")
|
||||
total_est2 = adoRs("hang9_cost")
|
||||
total_use2 = adoRs("hang9_use_cost")
|
||||
total_res2 = total_est2 - total_use2
|
||||
|
||||
hang1_res_cost2 = adoRs("hang1_cost") - adoRs("hang1_use_cost")
|
||||
hang2_res_cost2 = adoRs("hang2_cost") - adoRs("hang2_use_cost")
|
||||
hang3_res_cost2 = adoRs("hang3_cost") - adoRs("hang3_use_cost")
|
||||
hang4_res_cost2 = adoRs("hang4_cost") - adoRs("hang4_use_cost")
|
||||
hang5_res_cost2 = adoRs("hang5_cost") - adoRs("hang5_use_cost")
|
||||
hang6_res_cost2 = adoRs("hang6_cost") - adoRs("hang6_use_cost")
|
||||
'hang1_res_cost2 = adoRs("hang1_cost") - adoRs("hang1_use_cost")
|
||||
'hang2_res_cost2 = adoRs("hang2_cost") - adoRs("hang2_use_cost")
|
||||
'hang3_res_cost2 = adoRs("hang3_cost") - adoRs("hang3_use_cost")
|
||||
'hang4_res_cost2 = adoRs("hang4_cost") - adoRs("hang4_use_cost")
|
||||
'hang5_res_cost2 = adoRs("hang5_cost") - adoRs("hang5_use_cost")
|
||||
'hang6_res_cost2 = adoRs("hang6_cost") - adoRs("hang6_use_cost")
|
||||
'hang7_res_cost2 = adoRs("hang7_cost") - adoRs("hang7_use_cost")
|
||||
'hang8_res_cost2 = adoRs("hang8_cost") - adoRs("hang8_use_cost")
|
||||
hang9_res_cost2 = adoRs("hang9_cost") - adoRs("hang9_use_cost")
|
||||
hang9_res_cost = adoRs("hang9_cost") - adoRs("hang9_use_cost")
|
||||
%>
|
||||
<tr>
|
||||
<td align="center" rowspan="3" class="align-middle">
|
||||
@@ -372,22 +394,12 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" ><3E><><EFBFBD><EFBFBD></td>
|
||||
<td align="center" ><input type="text" class="number" style="width:70px; font-size:12px; text-align:right;" value="<%= FormatNumber(adoRs("hang1_use_cost"), 0) %>" readonly /></td>
|
||||
<td align="center" ><input type="text" class="number" style="width:70px; font-size:12px; text-align:right;" value="<%= FormatNumber(adoRs("hang2_use_cost"), 0) %>" readonly /></td>
|
||||
<td align="center" ><input type="text" class="number" style="width:70px; font-size:12px; text-align:right;" value="<%= FormatNumber(adoRs("hang3_use_cost"), 0) %>" readonly /></td>
|
||||
<td align="center" ><input type="text" class="number" style="width:70px; font-size:12px; text-align:right;" value="<%= FormatNumber(adoRs("hang4_use_cost"), 0) %>" readonly /></td>
|
||||
<td align="center" ><input type="text" class="number" style="width:70px; font-size:12px; text-align:right;" value="<%= FormatNumber(adoRs("hang5_use_cost"), 0) %>" readonly /></td>
|
||||
<td align="center" ><input type="text" class="number" style="width:70px; font-size:12px; text-align:right;" value="<%= FormatNumber(adoRs("hang6_use_cost"), 0) %>" readonly /></td>
|
||||
<td style="text-align:center;" ><input type="text" class="number" style="width:70px; font-size:12px; text-align:right;" value="<%= FormatNumber(adoRs("hang9_use_cost"), 0) %>" readonly /></td>
|
||||
<td align="center" ><input type="text" class="number" style="width:78px; font-size:12px; text-align:right;" value="<%= FormatNumber(total_use2, 0) %>" readonly /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" ><3E>ܿ<EFBFBD></td>
|
||||
<td align="center" ><input type="text" class="number" style="width:70px; font-size:12px; text-align:right;" value="<%= FormatNumber(hang1_res_cost2, 0) %>" readonly /></td>
|
||||
<td align="center" ><input type="text" class="number" style="width:70px; font-size:12px; text-align:right;" value="<%= FormatNumber(hang2_res_cost2, 0) %>" readonly /></td>
|
||||
<td align="center" ><input type="text" class="number" style="width:70px; font-size:12px; text-align:right;" value="<%= FormatNumber(hang3_res_cost2, 0) %>" readonly /></td>
|
||||
<td align="center" ><input type="text" class="number" style="width:70px; font-size:12px; text-align:right;" value="<%= FormatNumber(hang4_res_cost2, 0) %>" readonly /></td>
|
||||
<td align="center" ><input type="text" class="number" style="width:70px; font-size:12px; text-align:right;" value="<%= FormatNumber(hang5_res_cost2, 0) %>" readonly /></td>
|
||||
<td align="center" ><input type="text" class="number" style="width:70px; font-size:12px; text-align:right;" value="<%= FormatNumber(hang6_res_cost2, 0) %>" readonly /></td>
|
||||
<td style="text-align:center;" ><input type="text" class="number" style="width:70px; font-size:12px; text-align:right;" value="<%= FormatNumber(hang9_res_cost2, 0) %>" readonly /></td>
|
||||
<td align="center" ><input type="text" class="number" style="width:78px; font-size:12px; text-align:right;" value="<%= FormatNumber(total_res2, 0) %>" readonly /></td>
|
||||
</tr>
|
||||
<%
|
||||
@@ -402,7 +414,7 @@
|
||||
<td align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ</td>
|
||||
<td align="center" ><3E><EFBFBD></td>
|
||||
<td align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td style="text-align:center;" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center" ><3E>ݾ<EFBFBD></td>
|
||||
</tr>
|
||||
<!-- loop start -->
|
||||
@@ -428,12 +440,19 @@
|
||||
<td align="center" >
|
||||
<select name="txt_HangMok" style="width:100px;">
|
||||
<option value=""><3E><><EFBFBD><EFBFBD></option>
|
||||
<option value="<22>Ĵ<EFBFBD>"><3E>Ĵ<EFBFBD></option>
|
||||
<option value="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></option>
|
||||
<option value="ȸ<>ĺ<EFBFBD>">ȸ<>ĺ<EFBFBD></option>
|
||||
<option value="<22><>ǰ<EFBFBD><C7B0><EFBFBD>Ժ<EFBFBD>"><3E><>ǰ<EFBFBD><C7B0><EFBFBD>Ժ<EFBFBD></option>
|
||||
<option value="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></option>
|
||||
<option value="<22><>Ÿ"><3E><>Ÿ</option>
|
||||
<!-- <option value="<22>Ĵ<EFBFBD>"><3E>Ĵ<EFBFBD></option> -->
|
||||
<!-- <option value="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></option> -->
|
||||
<!-- <option value="ȸ<>ĺ<EFBFBD>">ȸ<>ĺ<EFBFBD></option> -->
|
||||
<!-- <option value="<22><>ǰ<EFBFBD><C7B0><EFBFBD>Ժ<EFBFBD>"><3E><>ǰ<EFBFBD><C7B0><EFBFBD>Ժ<EFBFBD></option> -->
|
||||
<!-- <option value="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></option> -->
|
||||
<!-- <option value="<22><>Ÿ"><3E><>Ÿ</option> -->
|
||||
<!-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> Ȱ<><C8B0><EFBFBD><EFBFBD> <20>ܿ<D7BF><DCBF><EFBFBD> <20>Ĵ<EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>/ȸ<>ĺ<EFBFBD> <20><> <20><>Ÿ -->
|
||||
<%If Session("User_Number") = "20151203" OR Session("User_Number") = "20031102" OR Session("N_Depart") = "E" Then %>
|
||||
<option value="Ȱ<><C8B0><EFBFBD><EFBFBD>">Ȱ<><C8B0><EFBFBD><EFBFBD></option>
|
||||
<% else %>
|
||||
<option value="<22>Ĵ<EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"><3E>Ĵ<EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></option>
|
||||
<option value="ȸ<>ĺ<EFBFBD> <20><> <20><>Ÿ">ȸ<>ĺ<EFBFBD> <20><> <20><>Ÿ</option>
|
||||
<% End if %>
|
||||
</select>
|
||||
</td>
|
||||
|
||||
@@ -653,9 +672,20 @@
|
||||
alert("<22><>Ÿ <20><EFBFBD><D7B8><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ʰ<EFBFBD><CAB0>Ͽ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͻ<EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>.\n");
|
||||
return false;
|
||||
}
|
||||
if(<%= hang7_res_cost %> - +(tmp_use_sum["<22>Ĵ<EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"] || 0) < 0){
|
||||
alert("<22>Ĵ<EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><EFBFBD><D7B8><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ʰ<EFBFBD><CAB0>Ͽ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͻ<EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>.\n");
|
||||
return false;
|
||||
}
|
||||
if(<%= hang8_res_cost %> - +(tmp_use_sum["ȸ<>ĺ<EFBFBD> <20><> <20><>Ÿ"] || 0) < 0){
|
||||
alert("ȸ<>ĺ<EFBFBD> <20><> <20><>Ÿ <20><EFBFBD><D7B8><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ʰ<EFBFBD><CAB0>Ͽ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͻ<EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>.\n");
|
||||
return false;
|
||||
}
|
||||
if(<%= hang9_res_cost %> - +(tmp_use_sum["Ȱ<><C8B0><EFBFBD><EFBFBD>"] || 0) < 0){
|
||||
alert("Ȱ<><C8B0><EFBFBD><EFBFBD> <20><EFBFBD><D7B8><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ʰ<EFBFBD><CAB0>Ͽ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͻ<EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>.\n");
|
||||
return false;
|
||||
}
|
||||
<% End If %>
|
||||
|
||||
|
||||
|
||||
if (tmp_cost_sum * 1 == 0) {
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>ϼ<EFBFBD><CFBC><EFBFBD>.");
|
||||
|
||||
Reference in New Issue
Block a user