프로젝트 직접비 현황 : 실사직접비만 조회 가능하도록 filter 추가
This commit is contained in:
@@ -9,6 +9,8 @@ If p_statistics = "" Then
|
||||
End If
|
||||
End If
|
||||
nowDate = now()
|
||||
|
||||
p_costType = request("p_costType")
|
||||
%>
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
@@ -105,6 +107,12 @@ nowDate = now()
|
||||
</td>
|
||||
<td bgcolor="#DFDFDF" class="tbFilter tahoma_blk" style="padding-left:10px;"></td>
|
||||
<td bgcolor="#DFDFDF" style="padding-left:10px;">
|
||||
<select id="p_costType">
|
||||
<option value="all"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28><>ü)</option>
|
||||
<option value="field" <% If p_costType = "field" Then Response.Write "selected" %>><3E>ǻ<EFBFBD></option>
|
||||
</select>
|
||||
</td>
|
||||
<td bgcolor="#DFDFDF" style="padding-left:10px;">
|
||||
<span>
|
||||
<b><3E><><EFBFBD><EFBFBD></b> - <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
65-75% : <span class="rate_legend" style="background-color:#ffdb9c;"></span>
|
||||
@@ -172,7 +180,11 @@ nowDate = now()
|
||||
query = query & " TPM.p_child_sn, TPM.p_subject, VCC.p_cli_company_nm, " & vbCrLf
|
||||
query = query & " TPM.p_method_cd, TPMC.p_method_nm, ISNULL(TPM.p_sample, 0) as p_sample, " & vbCrLf
|
||||
query = query & " TPM.p_cont_cost, ISNULL(DC.sum_est, 0) AS sum_est, " & vbCrLf
|
||||
query = query & " (ISNULL(DC.sum_act, 0) + ISNULL(MC.marketing_cost, 0) + ISNULL(JC.job_money, 0)) AS sum_act, " & vbCrLf
|
||||
If LCase(Trim(p_costType)) = "field" Then
|
||||
query = query & " ISNULL(DC.sum_act, 0) AS sum_act, " & vbCrLf
|
||||
Else
|
||||
query = query & " (ISNULL(DC.sum_act, 0) + ISNULL(MC.marketing_cost, 0) + ISNULL(JC.job_money, 0)) AS sum_act, " & vbCrLf
|
||||
End If
|
||||
query = query & " ISNULL(DC.sum_act, 0) AS sum_act_tmp, " & vbCrLf
|
||||
query = query & " TPM.p_con_date_st, TPM.p_con_date_end, " & vbCrLf
|
||||
query = query & " TPM.p_progress_status, TPM.p_input_complete, " & vbCrLf
|
||||
@@ -194,6 +206,9 @@ nowDate = now()
|
||||
query = query & " sum(CONVERT(money, act_money)) AS sum_act " & vbCrLf
|
||||
query = query & " FROM project2.dbo.direct_cost " & vbCrLf
|
||||
query = query & " WHERE p_child_sn > '17' AND del_yes_no = 'no' " & vbCrLf
|
||||
If LCase(Trim(p_costType)) = "field" Then
|
||||
query = query & " AND cost_type = 'field' " & vbCrLf
|
||||
End If
|
||||
query = query & " GROUP BY p_child_sn " & vbCrLf
|
||||
query = query & " ) DC ON TPM.p_child_sn = DC.p_child_sn LEFT JOIN " & vbCrLf
|
||||
query = query & " ( " & vbCrLf
|
||||
@@ -440,8 +455,8 @@ nowDate = now()
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
$("#p_statistics").on("change", function(){
|
||||
location.href="./projectlist_cost.asp?p_statistics=" + $("#p_statistics option:selected").val();
|
||||
$("#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();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user