최초커밋
This commit is contained in:
966
project/project_list2_withdate_2014.asp
Normal file
966
project/project_list2_withdate_2014.asp
Normal file
@@ -0,0 +1,966 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<!-- #include file = "../include/top_menu.asp" -->
|
||||
<%
|
||||
|
||||
''///==============================================
|
||||
''///==============================================
|
||||
''2014<31><34> 1<><31> 23<32><33> <20>η<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
'' <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>縦 <20><><EFBFBD><EFBFBD> <20>ʱ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է¿<D4B7><C2BF>δ<EFBFBD> direct_cost <20><><EFBFBD>̺<EFBFBD><CCBA><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ֳ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ǵ<EFBFBD>..
|
||||
''///==============================================
|
||||
''///==============================================
|
||||
''///==============================================
|
||||
SET rsp = server.CreateObject("ADODB.RECORDSET")
|
||||
SET rsa = server.CreateObject("ADODB.RECORDSET")
|
||||
|
||||
dim prj_list(20 , 25)
|
||||
Dim tmp_input_complete()
|
||||
|
||||
x = request("x")
|
||||
z = request("z") '1<><31> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȹ, 2<><32> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD>, 3<><33> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD>
|
||||
p_depart = request("p_depart")
|
||||
p_team = request("p_team")
|
||||
flag = request("flag") 'my_menu.asp<73><70><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> (tmp_stat_flag<61><67> <20><><EFBFBD><EFBFBD>)
|
||||
If request("tmp_sort") <> "" Then
|
||||
tmp_sort = request("tmp_sort")
|
||||
Else
|
||||
tmp_sort = "0"
|
||||
End if
|
||||
tmp_month = request("tmp_month")
|
||||
tmp_year = request("tmp_year")
|
||||
p_team_people = request("p_team_people")
|
||||
p_subject = request("p_subject")
|
||||
p_method_nm = request("p_method_nm")
|
||||
p_method_cd = request("p_method_cd")
|
||||
|
||||
chk = request("chk") '<27>μ<EFBFBD><CEBC><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ǹ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><>ü<EFBFBD><C3BC> <20>ʱ<EFBFBD>ȭ <20><>
|
||||
|
||||
if request("gotopage") <> "" then
|
||||
tmp_currentpage = request("gotopage")
|
||||
else
|
||||
tmp_currentpage = 1
|
||||
end if
|
||||
|
||||
If p_depart = "" Then
|
||||
p_depart = Session("Depart_Code")
|
||||
End if
|
||||
|
||||
'page config
|
||||
tmp_colspan = 9
|
||||
|
||||
if tmp_year = "" then
|
||||
tmp_year = cstr(year(date()))
|
||||
end if
|
||||
|
||||
if tmp_month = "" then
|
||||
tmp_month = cstr(month(date()))
|
||||
end if
|
||||
%>
|
||||
|
||||
<script language=javascript>
|
||||
|
||||
|
||||
function openit(a,z,x,y,v) {
|
||||
if (a == 1)
|
||||
{
|
||||
if (new_project_2014(z) == 1)
|
||||
{
|
||||
var url = 'project_list2_dep.asp?p_sn=' + z;
|
||||
}else{
|
||||
var url = 'project_list2_dep_2014.asp?p_sn=' + z;
|
||||
}
|
||||
var tmp_width = 1400;
|
||||
var tmp_height = 800;
|
||||
|
||||
if(v != ""){
|
||||
url = url + "&p_sub_type=" + x + "&p_method_cd=" + y + "&p_child_sn=" + v;
|
||||
}else{
|
||||
url = url + "&p_sub_type=" + x + "&p_method_cd=" + y;
|
||||
}
|
||||
}
|
||||
window.open(url,'','left=0,top=0,width='+tmp_width+',height='+tmp_height+',scrollbars=yes,resizable=yes')
|
||||
|
||||
}
|
||||
|
||||
function subit() {
|
||||
document.pms.action = "project_list2_withdate_2014.asp?z=<%=z %>";
|
||||
document.pms.submit();
|
||||
}
|
||||
</script>
|
||||
|
||||
<form name="pms" method="post">
|
||||
<input type="hidden" name="z" style="width:150;" value="<%=z%>">
|
||||
<td width="100%" valign="top">
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<!-- Ȯ<><C8AE> -->
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" style="padding:20;">
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td style="padding: 0 0 5 0;">
|
||||
<% If CInt(z) = 1 Then %>
|
||||
<span style="font-size: 12pt; font-weight: bold;"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȹ<EFBFBD><C8B9> <20>ۼ<EFBFBD></span>
|
||||
<% ElseIf CInt(z) = 2 Then %>
|
||||
<span style="font-size: 12pt; font-weight: bold;"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></span>
|
||||
<% ElseIf CInt(z) = 3 Then %>
|
||||
<span style="font-size: 12pt; font-weight: bold;"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>Ϸ<EFBFBD> <20><><EFBFBD><EFBFBD></span>
|
||||
<% Else %>
|
||||
<span style="font-size: 12pt; font-weight: bold;"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></span>
|
||||
<% End If %>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
<font class="brown"><3E>˻<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>.</font>
|
||||
</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding:5 0 0 0">
|
||||
<table width="100%" height="37" cellpadding="0" cellspacing="1" border="0" bgcolor="#c0c0c0">
|
||||
<tr>
|
||||
<td bgcolor="#DFDFDF" style="padding:0 0 0 10;">
|
||||
|
||||
|
||||
|
||||
<!-- -->
|
||||
|
||||
<09><><EFBFBD><EFBFBD>
|
||||
<select name="tmp_sort">
|
||||
<option value="" <% if tmp_sort = "0" then %> selected <% end if %>><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE></option>
|
||||
<option value="1" <% if tmp_sort = "1" then %> selected <% end if %>><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD>ڵ<EFBFBD></option>
|
||||
<option value="2" <% if tmp_sort = "2" then %> selected <% end if %>><3E><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD></option>
|
||||
<option value="3" <% if tmp_sort = "3" then %> selected <% end if %>><3E><><EFBFBD><EFBFBD><EFBFBD>Ͻ<EFBFBD></option>
|
||||
</select>
|
||||
|
||||
|
||||
<09>
|
||||
<select name="tmp_year" >
|
||||
<%
|
||||
for i = year(date()) to 2009 step -1
|
||||
%>
|
||||
<option value="<%=i%>" <% if tmp_year = cstr(i) then %> selected <% end if %>><%=i%><3E><></option>
|
||||
<%
|
||||
next
|
||||
%>
|
||||
</select>
|
||||
|
||||
|
||||
<09><>
|
||||
<select name="tmp_month" >
|
||||
<option value="0" <% if tmp_month = "0" then %> selected <% end if %>><3E><>ü</option>
|
||||
<%
|
||||
tmp_i = 12
|
||||
for i = 1 to tmp_i
|
||||
%>
|
||||
<option value="<%=i%>" <% if tmp_month = cstr(i) then %> selected <% end if %>><%=i%><3E><></option>
|
||||
<%
|
||||
next
|
||||
%>
|
||||
</select>
|
||||
<20>μ<EFBFBD> :
|
||||
<select name="p_depart" <% if Cint(Session("Depart_Code")) >= 20 AND Cint(Session("Depart_Code")) < 40 then %> style="display:none" <% end if %>>
|
||||
<%
|
||||
if view_depart = "" then
|
||||
%>
|
||||
<option value="0" <% if p_depart = "0" then %> selected <% end if %>><3E><>ü</option>
|
||||
<%
|
||||
end if
|
||||
|
||||
query = ""
|
||||
query = query & " SELECT DISTINCT before_t_cd1 as d_code, LEFT(T_Name, 8) as d_name "
|
||||
query = query & " FROM project2.dbo.v_Department "
|
||||
query = query & " WHERE (before_t_cd1 between 20 and 99 OR before_t_cd1 IN (90))"
|
||||
query = query & " order by LEFT(T_Name, 8) "
|
||||
rsc.Open query, adoConn, 1
|
||||
|
||||
if rsc.RecordCount > 0 then
|
||||
for i = 1 to rsc.RecordCount
|
||||
if cint(p_depart) = cint(rsc("d_code")) OR view_depart = "" then
|
||||
%>
|
||||
<option value="<%=rsc("d_code")%>" <% if cstr(p_depart) = cstr(rsc("d_code")) then %> selected <% end if %>><%=rsc("d_name")%></option>
|
||||
<%
|
||||
end if
|
||||
rsc.MoveNext
|
||||
next
|
||||
end if
|
||||
rsc.Close
|
||||
%>
|
||||
</select>
|
||||
|
||||
|
||||
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><> :
|
||||
<input type="text" style="width:120px" name="p_subject" maxlength=20 style='ime-mode:inactive;' value='<%=p_subject%>'>
|
||||
|
||||
<20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> :
|
||||
<select name="p_method_cd" style="width:100px">
|
||||
<option value="" <% if p_method_cd = "" then %> selected <% end if %>><3E><>ü</option>
|
||||
<option value="0" <% if p_method_cd = "0" then %> selected <% end if %>>Multi</option>
|
||||
<%
|
||||
query = " SELECT * "
|
||||
query = query & " FROM T_PROJECT_METHOD_CD "
|
||||
rsc.Open query, adoConn, 1
|
||||
for i=1 to rsc.recordcount
|
||||
%>
|
||||
<option value="<%=rsc("p_method_cd")%>" <% if trim(rsc("p_method_cd")) = p_method_cd then %> selected <% end if %>><%=rsc("p_method_nm")%></option>
|
||||
<%
|
||||
rsc.MoveNext
|
||||
next
|
||||
rsc.close
|
||||
%>
|
||||
</select>
|
||||
|
||||
<img src="/images/common/btn_smallsrch.gif" align="absmiddle" onclick="subit()" style='cursor:pointer' >
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding:10 0 0 0">
|
||||
<div id="popdiv_obj1" style="position:absolute; background-color:FFFFDD;color:black;border-color:black;border-width:20; display:none; left:25px; top:100px; z-index:10" onmouseover="overdiv=10;" onmouseout="overdiv=0;setTimeout('hideLayer()',1000)">asdf</div>
|
||||
<table width="100%" cellpadding="3" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<td align="center" width="20px">No.</td>
|
||||
<td align="center" width="70px"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD>ڵ<EFBFBD></td>
|
||||
<td align="center" width="38%"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE></td>
|
||||
<td align="center" width="12%"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center" width="12%"><3E><><EFBFBD>系<EFBFBD><E7B3BB></td>
|
||||
<td align="center" width="35px"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td align="center" width="12%"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center" class="tit_left tit_right" width="60px"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
</tr>
|
||||
<!-- loop start -->
|
||||
<%
|
||||
query = "SELECT * "
|
||||
query = query & "FROM ( "
|
||||
query = query & " SELECT TPB.p_sn "
|
||||
query = query & " ,TPB.p_cli_company "
|
||||
query = query & " ,TPB.p_cli_type "
|
||||
query = query & " ,TPB.p_subject "
|
||||
'query = query & " ,TPB.p_intention "
|
||||
query = query & " ,'Multi' as p_intention "
|
||||
query = query & " ,TPB.p_cp_code "
|
||||
query = query & " ,'' as p_memo "
|
||||
query = query & " ,TPB.p_budget as p_cont_cost"
|
||||
query = query & " ,TPB.p_decide_date "
|
||||
query = query & " ,TPB.p_con_date_st "
|
||||
query = query & " ,TPB.p_con_date_end "
|
||||
query = query & " ,TPB.p_export_range "
|
||||
query = query & " ,TPB.p_category "
|
||||
query = query & " ,TPB.p_state "
|
||||
query = query & " ,TPB.p_input_user "
|
||||
query = query & " ,TPB.p_depart "
|
||||
query = query & " ,TPB.p_depart_dep "
|
||||
query = query & " ,TPB.p_depart_team "
|
||||
query = query & " ,'' as p_method_cd "
|
||||
query = query & " ,'' as p_index "
|
||||
query = query & " ,TPM.p_sub_type "
|
||||
query = query & " ,'' as p_child_sn "
|
||||
query = query & " ,'' as p_sur_area "
|
||||
query = query & " ,'' as p_sur_target "
|
||||
query = query & " ,'' as p_sample "
|
||||
query = query & " ,'' as p_research_date_st "
|
||||
query = query & " ,'' as p_research_date_end "
|
||||
query = query & " ,'' as p_sur_part "
|
||||
query = query & " ,'' as p_field_process "
|
||||
query = query & " ,'' as p_rsch_dept "
|
||||
query = query & " ,'' as p_field_dept "
|
||||
query = query & " ,'' as p_is_dept "
|
||||
query = query & " ,'' as p_supp_dept "
|
||||
query = query & " ,'' as p_rsch_1_a "
|
||||
query = query & " ,'' as p_rsch_2_a "
|
||||
query = query & " ,'' as p_rsch_3_a "
|
||||
query = query & " ,'' as p_rsch_4_a "
|
||||
query = query & " ,'' as p_rsch_1_b "
|
||||
query = query & " ,'' as p_rsch_2_b "
|
||||
query = query & " ,'' as p_rsch_3_b "
|
||||
query = query & " ,'' as p_rsch_4_b "
|
||||
query = query & " ,'' as p_rsch_1_c "
|
||||
query = query & " ,'' as p_rsch_2_c "
|
||||
query = query & " ,'' as p_rsch_3_c "
|
||||
query = query & " ,'' as p_rsch_4_c "
|
||||
query = query & " ,'' as p_sv_1 "
|
||||
query = query & " ,'' as p_sv_2 "
|
||||
query = query & " ,'' as p_sv_3 "
|
||||
query = query & " ,'' as p_sv_4 "
|
||||
query = query & " ,'' as p_code_1 "
|
||||
query = query & " ,'' as p_code_2 "
|
||||
query = query & " ,'' as p_code_3 "
|
||||
query = query & " ,'' as p_code_4 "
|
||||
query = query & " ,'' as p_verify_1 "
|
||||
query = query & " ,'' as p_verify_2 "
|
||||
query = query & " ,'' as p_verify_3 "
|
||||
query = query & " ,'' as p_verify_4 "
|
||||
query = query & " ,'' as p_dp_1 "
|
||||
query = query & " ,'' as p_dp_2 "
|
||||
query = query & " ,'' as p_dp_3 "
|
||||
query = query & " ,'' as p_dp_4 "
|
||||
query = query & " ,'' as p_it_1 "
|
||||
query = query & " ,'' as p_it_2 "
|
||||
query = query & " ,'' as p_it_3 "
|
||||
query = query & " ,'' as p_it_4 "
|
||||
query = query & " ,'' as p_supp_1 "
|
||||
query = query & " ,'' as p_supp_2 "
|
||||
query = query & " ,'' as p_supp_3 "
|
||||
query = query & " ,'' as p_supp_4 "
|
||||
query = query & " ,'' as p_rsch_date_st "
|
||||
query = query & " ,'' as p_rsch_date_end "
|
||||
query = query & " ,'' as p_field_date_st "
|
||||
query = query & " ,'' as p_field_date_end "
|
||||
query = query & " ,'' as p_code_date_st "
|
||||
query = query & " ,'' as p_code_date_end "
|
||||
query = query & " ,'' as p_verify_date_st "
|
||||
query = query & " ,'' as p_verify_date_end "
|
||||
query = query & " ,'' as p_dp_date_st "
|
||||
query = query & " ,'' as p_dp_date_end "
|
||||
query = query & " ,'' as p_it_date_st "
|
||||
query = query & " ,'' as p_it_date_end "
|
||||
query = query & " ,'' as p_premeet_date "
|
||||
query = query & " ,'' as p_premeet_time "
|
||||
query = query & " ,'' as p_premeet_place "
|
||||
query = query & " ,'' as p_ot_date "
|
||||
query = query & " ,'' as p_ot_time "
|
||||
query = query & " ,'' as p_ot_place "
|
||||
query = query & " ,'' as p_sur_memo "
|
||||
query = query & " ,TPM.p_progress_status "
|
||||
query = query & " ,TPB.p_input_dt "
|
||||
query = query & " ,max(isnull(TPM.p_research_complete,0)) as p_research_complete "
|
||||
query = query & " ,max(isnull(TPM.p_field_complete,0)) as p_field_complete "
|
||||
query = query & " ,max(isnull(TPM.p_dp_complete ,0)) as p_dp_complete "
|
||||
query = query & " FROM V_PROJECT as TPB "
|
||||
query = query & " INNER JOIN V_PROJECT_METHOD as TPM "
|
||||
query = query & " ON TPB.p_sn = TPM.p_sn "
|
||||
query = query & " AND TPM.p_progress_status is not null "
|
||||
query = query & " AND TPM.p_sub_type = 'M' "
|
||||
if p_depart <> "0" AND p_depart <> "" then
|
||||
If p_depart >= 20 and p_depart < 40 then
|
||||
query = query & " WHERE p_depart_dep = " & p_depart & " "
|
||||
Else
|
||||
' query = query & " WHERE ( p_depart_dep = " & p_depart & " "
|
||||
' query = query & " or p_rsch_dept = " & p_depart & " "
|
||||
' query = query & " or p_field_dept = " & p_depart & " "
|
||||
' query = query & " or p_is_dept = " & p_depart & " "
|
||||
' query = query & " or p_supp_dept = " & p_depart & " "
|
||||
' query = query & " ) "
|
||||
End if
|
||||
End if
|
||||
query = query & " GROUP BY TPB.p_sn "
|
||||
query = query & " ,TPB.p_cli_company "
|
||||
query = query & " ,TPB.p_cli_type "
|
||||
query = query & " ,TPB.p_subject "
|
||||
query = query & " ,TPB.p_intention "
|
||||
query = query & " ,TPB.p_cp_code "
|
||||
' query = query & " --,TPB.p_memo "
|
||||
query = query & " ,TPB.p_budget"
|
||||
query = query & " ,TPB.p_decide_date "
|
||||
query = query & " ,TPB.p_con_date_st "
|
||||
query = query & " ,TPB.p_con_date_end "
|
||||
query = query & " ,TPB.p_export_range "
|
||||
query = query & " ,TPB.p_category "
|
||||
query = query & " ,TPB.p_state "
|
||||
query = query & " ,TPB.p_input_user "
|
||||
query = query & " ,TPB.p_depart "
|
||||
query = query & " ,TPB.p_depart_dep "
|
||||
query = query & " ,TPB.p_depart_team "
|
||||
' query = query & " --,TPM.p_method_cd "
|
||||
' query = query & " --,TPM.p_index "
|
||||
query = query & " ,TPM.p_sub_type "
|
||||
' query = query & " --,TPM.p_child_sn "
|
||||
' query = query & " --,TPM.p_sur_area "
|
||||
' query = query & " --,TPM.p_sur_target "
|
||||
' query = query & " --,TPM.p_sample "
|
||||
' query = query & " --,TPM.p_research_date_st "
|
||||
' query = query & " --,TPM.p_research_date_end "
|
||||
' query = query & " --,TPM.p_sur_part "
|
||||
' query = query & " --,TPM.p_field_process "
|
||||
' query = query & " --,TPM.p_rsch_dept "
|
||||
' query = query & " --,TPM.p_field_dept "
|
||||
' query = query & " --,TPM.p_is_dept "
|
||||
' query = query & " --,TPM.p_supp_dept "
|
||||
' query = query & " --,TPM.p_rsch_1_a "
|
||||
' query = query & " --,TPM.p_rsch_2_a "
|
||||
' query = query & " --,TPM.p_rsch_3_a "
|
||||
' query = query & " --,TPM.p_rsch_4_a "
|
||||
' query = query & " --,TPM.p_rsch_1_b "
|
||||
' query = query & " --,TPM.p_rsch_2_b "
|
||||
' query = query & " --,TPM.p_rsch_3_b "
|
||||
' query = query & " --,TPM.p_rsch_4_b "
|
||||
' query = query & " --,TPM.p_rsch_1_c "
|
||||
' query = query & " --,TPM.p_rsch_2_c "
|
||||
' query = query & " --,TPM.p_rsch_3_c "
|
||||
' query = query & " --,TPM.p_rsch_4_c "
|
||||
' query = query & " --,TPM.p_sv_1 "
|
||||
' query = query & " --,TPM.p_sv_2 "
|
||||
' query = query & " --,TPM.p_sv_3 "
|
||||
' query = query & " --,TPM.p_sv_4 "
|
||||
' query = query & " --,TPM.p_code_1 "
|
||||
' query = query & " --,TPM.p_code_2 "
|
||||
' query = query & " --,TPM.p_code_3 "
|
||||
' query = query & " --,TPM.p_code_4 "
|
||||
' query = query & " --,TPM.p_verify_1 "
|
||||
' query = query & " --,TPM.p_verify_2 "
|
||||
' query = query & " --,TPM.p_verify_3 "
|
||||
' query = query & " --,TPM.p_verify_4 "
|
||||
' query = query & " --,TPM.p_dp_1 "
|
||||
' query = query & " --,TPM.p_dp_2 "
|
||||
' query = query & " --,TPM.p_dp_3 "
|
||||
' query = query & " --,TPM.p_dp_4 "
|
||||
' query = query & " --,TPM.p_it_1 "
|
||||
' query = query & " --,TPM.p_it_2 "
|
||||
' query = query & " --,TPM.p_it_3 "
|
||||
' query = query & " --,TPM.p_it_4 "
|
||||
' query = query & " --,TPM.p_supp_1 "
|
||||
' query = query & " --,TPM.p_supp_2 "
|
||||
' query = query & " --,TPM.p_supp_3 "
|
||||
' query = query & " --,TPM.p_supp_4 "
|
||||
' query = query & " --,TPM.p_rsch_date_st "
|
||||
' query = query & " --,TPM.p_rsch_date_end "
|
||||
' query = query & " --,TPM.p_field_date_st "
|
||||
' query = query & " --,TPM.p_field_date_end "
|
||||
' query = query & " --,TPM.p_code_date_st "
|
||||
' query = query & " --,TPM.p_code_date_end "
|
||||
' query = query & " --,TPM.p_verify_date_st "
|
||||
' query = query & " --,TPM.p_verify_date_end "
|
||||
' query = query & " --,TPM.p_dp_date_st "
|
||||
' query = query & " --,TPM.p_dp_date_end "
|
||||
' query = query & " --,TPM.p_it_date_st "
|
||||
' query = query & " --,TPM.p_it_date_end "
|
||||
' query = query & " --,TPM.p_premeet_date "
|
||||
' query = query & " --,TPM.p_premeet_time "
|
||||
' query = query & " --,TPM.p_premeet_place "
|
||||
' query = query & " --,TPM.p_ot_date "
|
||||
' query = query & " --,TPM.p_ot_time "
|
||||
' query = query & " --,TPM.p_ot_place "
|
||||
' query = query & " --,TPM.p_sur_memo "
|
||||
query = query & " ,TPM.p_progress_status "
|
||||
query = query & " ,TPB.p_input_dt "
|
||||
query = query & " "
|
||||
query = query & " UNION ALL "
|
||||
query = query & " "
|
||||
query = query & " SELECT TPB.p_sn "
|
||||
query = query & " ,TPB.p_cli_company "
|
||||
query = query & " ,TPB.p_cli_type "
|
||||
query = query & " ,TPM.p_subject "
|
||||
query = query & " ,TPM.p_intention "
|
||||
query = query & " ,TPB.p_cp_code "
|
||||
query = query & " ,TPB.p_memo "
|
||||
query = query & " ,TPM.p_cont_cost "
|
||||
query = query & " ,TPM.p_decide_date "
|
||||
query = query & " ,TPM.p_con_date_st "
|
||||
query = query & " ,TPM.p_con_date_end "
|
||||
query = query & " ,TPM.p_export_range "
|
||||
query = query & " ,TPM.p_category "
|
||||
query = query & " ,TPB.p_state "
|
||||
query = query & " ,TPB.p_input_user "
|
||||
query = query & " ,TPB.p_depart "
|
||||
query = query & " ,TPB.p_depart_dep "
|
||||
query = query & " ,TPB.p_depart_team "
|
||||
query = query & " ,TPM.p_method_cd "
|
||||
query = query & " ,TPM.p_index "
|
||||
query = query & " ,TPM.p_sub_type "
|
||||
query = query & " ,TPM.p_child_sn "
|
||||
query = query & " ,TPM.p_sur_area "
|
||||
query = query & " ,TPM.p_sur_target "
|
||||
query = query & " ,TPM.p_sample "
|
||||
query = query & " ,TPM.p_research_date_st "
|
||||
query = query & " ,TPM.p_research_date_end "
|
||||
query = query & " ,TPM.p_sur_part "
|
||||
query = query & " ,TPM.p_field_process "
|
||||
query = query & " ,TPM.p_rsch_dept "
|
||||
query = query & " ,TPM.p_field_dept "
|
||||
query = query & " ,TPM.p_is_dept "
|
||||
query = query & " ,TPM.p_supp_dept "
|
||||
query = query & " ,TPM.p_rsch_1_a "
|
||||
query = query & " ,TPM.p_rsch_2_a "
|
||||
query = query & " ,TPM.p_rsch_3_a "
|
||||
query = query & " ,TPM.p_rsch_4_a "
|
||||
query = query & " ,TPM.p_rsch_1_b "
|
||||
query = query & " ,TPM.p_rsch_2_b "
|
||||
query = query & " ,TPM.p_rsch_3_b "
|
||||
query = query & " ,TPM.p_rsch_4_b "
|
||||
query = query & " ,TPM.p_rsch_1_c "
|
||||
query = query & " ,TPM.p_rsch_2_c "
|
||||
query = query & " ,TPM.p_rsch_3_c "
|
||||
query = query & " ,TPM.p_rsch_4_c "
|
||||
query = query & " ,TPM.p_sv_1 "
|
||||
query = query & " ,TPM.p_sv_2 "
|
||||
query = query & " ,TPM.p_sv_3 "
|
||||
query = query & " ,TPM.p_sv_4 "
|
||||
query = query & " ,TPM.p_code_1 "
|
||||
query = query & " ,TPM.p_code_2 "
|
||||
query = query & " ,TPM.p_code_3 "
|
||||
query = query & " ,TPM.p_code_4 "
|
||||
query = query & " ,TPM.p_verify_1 "
|
||||
query = query & " ,TPM.p_verify_2 "
|
||||
query = query & " ,TPM.p_verify_3 "
|
||||
query = query & " ,TPM.p_verify_4 "
|
||||
query = query & " ,TPM.p_dp_1 "
|
||||
query = query & " ,TPM.p_dp_2 "
|
||||
query = query & " ,TPM.p_dp_3 "
|
||||
query = query & " ,TPM.p_dp_4 "
|
||||
query = query & " ,TPM.p_it_1 "
|
||||
query = query & " ,TPM.p_it_2 "
|
||||
query = query & " ,TPM.p_it_3 "
|
||||
query = query & " ,TPM.p_it_4 "
|
||||
query = query & " ,TPM.p_supp_1 "
|
||||
query = query & " ,TPM.p_supp_2 "
|
||||
query = query & " ,TPM.p_supp_3 "
|
||||
query = query & " ,TPM.p_supp_4 "
|
||||
query = query & " ,TPM.p_rsch_date_st "
|
||||
query = query & " ,TPM.p_rsch_date_end "
|
||||
query = query & " ,TPM.p_field_date_st "
|
||||
query = query & " ,TPM.p_field_date_end "
|
||||
query = query & " ,TPM.p_code_date_st "
|
||||
query = query & " ,TPM.p_code_date_end "
|
||||
query = query & " ,TPM.p_verify_date_st "
|
||||
query = query & " ,TPM.p_verify_date_end "
|
||||
query = query & " ,TPM.p_dp_date_st "
|
||||
query = query & " ,TPM.p_dp_date_end "
|
||||
query = query & " ,TPM.p_it_date_st "
|
||||
query = query & " ,TPM.p_it_date_end "
|
||||
query = query & " ,TPM.p_premeet_date "
|
||||
query = query & " ,TPM.p_premeet_time "
|
||||
query = query & " ,TPM.p_premeet_place "
|
||||
query = query & " ,TPM.p_ot_date "
|
||||
query = query & " ,TPM.p_ot_time "
|
||||
query = query & " ,TPM.p_ot_place "
|
||||
query = query & " ,TPM.p_sur_memo "
|
||||
query = query & " ,TPM.p_progress_status "
|
||||
query = query & " ,TPM.p_input_dt "
|
||||
query = query & " ,TPM.p_research_complete "
|
||||
query = query & " ,TPM.p_field_complete "
|
||||
query = query & " ,TPM.p_dp_complete "
|
||||
query = query & " FROM V_PROJECT as TPB "
|
||||
query = query & " INNER JOIN V_PROJECT_METHOD as TPM "
|
||||
query = query & " ON TPB.p_sn = TPM.p_sn "
|
||||
query = query & " AND TPM.p_progress_status is not null "
|
||||
query = query & " AND TPM.p_sub_type = 'C' "
|
||||
''' response.write p_depart & "//" & p_depart
|
||||
'<27><>ȸ <20>ɼ<EFBFBD>
|
||||
if p_depart <> "0" AND p_depart <> "" then
|
||||
If p_depart = 17 Or p_depart = 18 then
|
||||
query = query & " WHERE (p_depart_dep <= 10 or (p_depart_dep >= 20 and p_depart_dep <=60) or (p_depart_dep >= 17 and p_depart_dep <=18) or p_rsch_dept = 90) "
|
||||
Else
|
||||
query = query & " WHERE ( p_depart_dep = " & p_depart & " "
|
||||
query = query & " or p_rsch_dept = " & p_depart & " "
|
||||
query = query & " or (p_rsch_dept = 90 and (TPM.p_rsch_1_a = '"& Session("User_Number") &"' or TPM.p_rsch_2_a = '"& Session("User_Number") &"' or TPM.p_rsch_3_a = '"& Session("User_Number") &"' or TPM.p_rsch_4_a = '"& Session("User_Number") &"' "
|
||||
query = query & " or TPM.p_rsch_1_b = '"& Session("User_Number") &"' or TPM.p_rsch_2_b = '"& Session("User_Number") &"' or TPM.p_rsch_3_b = '"& Session("User_Number") &"' or TPM.p_rsch_4_b = '"& Session("User_Number") &"' "
|
||||
query = query & " or TPM.p_rsch_1_c = '"& Session("User_Number") &"' or TPM.p_rsch_2_c = '"& Session("User_Number") &"' or TPM.p_rsch_3_c = '"& Session("User_Number") &"' or TPM.p_rsch_4_c = '"& Session("User_Number") &"' ))"
|
||||
|
||||
if p_depart = 12 then
|
||||
query = query & " or p_field_dept = 8 "
|
||||
query = query & " or p_field_dept = 9 "
|
||||
query = query & " or p_field_dept = 12 "
|
||||
end if
|
||||
query = query & " or p_field_dept = " & p_depart & " "
|
||||
query = query & " or p_is_dept = " & p_depart & " "
|
||||
query = query & " or p_supp_dept = " & p_depart & " "
|
||||
query = query & " ) "
|
||||
End if
|
||||
else
|
||||
query = query & " WHERE (p_depart_dep <= 10 or (p_depart_dep >= 20 and p_depart_dep <=60) "
|
||||
query = query & " or (p_rsch_dept = 90 and (TPM.p_rsch_1_a = '"& Session("User_Number") &"' or TPM.p_rsch_2_a = '"& Session("User_Number") &"' or TPM.p_rsch_3_a = '"& Session("User_Number") &"' or TPM.p_rsch_4_a = '"& Session("User_Number") &"' "
|
||||
query = query & " or TPM.p_rsch_1_b = '"& Session("User_Number") &"' or TPM.p_rsch_2_b = '"& Session("User_Number") &"' or TPM.p_rsch_3_b = '"& Session("User_Number") &"' or TPM.p_rsch_4_b = '"& Session("User_Number") &"' "
|
||||
query = query & " or TPM.p_rsch_1_c = '"& Session("User_Number") &"' or TPM.p_rsch_2_c = '"& Session("User_Number") &"' or TPM.p_rsch_3_c = '"& Session("User_Number") &"' or TPM.p_rsch_4_c = '"& Session("User_Number") &"' )))"
|
||||
|
||||
end If
|
||||
|
||||
query = query & " ) as T "
|
||||
'------------------------------------------------------
|
||||
|
||||
'z<>ɼ<EFBFBD>
|
||||
if z = 1 then
|
||||
query = query & " WHERE p_progress_status <= '007' "
|
||||
elseif z = 2 Then
|
||||
query = query & " WHERE p_progress_status > '007' and p_progress_status <> '999' "
|
||||
If CInt(p_depart) = 0 Or (CInt(p_depart) >= 20 And CInt(p_depart) <= 40) Then
|
||||
query = query & " and ( isnull(p_research_complete,0) = 0 ) "
|
||||
ElseIf p_depart = 12 Then
|
||||
query = query & " and ( isnull(p_field_complete,0) = 0 ) "
|
||||
ElseIf p_depart = 17 Then
|
||||
query = query & " and ( isnull(p_dp_complete,0) = 0 ) "
|
||||
Else
|
||||
query = query & " and ( isnull(p_research_complete,0) = 0 and isnull(p_field_complete,0) = 0 and isnull(p_dp_complete,0) = 0 ) "
|
||||
End If
|
||||
elseif z = 3 Then
|
||||
query = query & " WHERE p_progress_status > '007' "
|
||||
|
||||
If CInt(p_depart) = 0 Or (CInt(p_depart) >= 20 And CInt(p_depart) <= 40) Then
|
||||
query = query & " and ( p_research_complete = 1 ) "
|
||||
ElseIf p_depart = 12 Then
|
||||
query = query & " and ( p_field_complete = 1 ) "
|
||||
ElseIf p_depart = 17 Then
|
||||
query = query & " and ( p_dp_complete = 1 ) "
|
||||
Else
|
||||
query = query & " and ( p_research_complete = 1 or p_field_complete = 1 or p_dp_complete = 1 ) "
|
||||
End If
|
||||
|
||||
else
|
||||
query = query & " WHERE p_progress_status < '014' "
|
||||
end if
|
||||
'------------------------------------------------------
|
||||
|
||||
'<27><> <20>ɼ<EFBFBD>
|
||||
if tmp_year <> "0" and tmp_year <> "" then
|
||||
query = query & " AND SUBSTRING(convert(varchar(30), p_input_dt, 112), 1, 4) = '" & tmp_year & "' "
|
||||
else
|
||||
query = query & " AND SUBSTRING(convert(varchar(30), p_input_dt, 112), 1, 4) = '" & year(date()) & "' "
|
||||
end if
|
||||
'------------------------------------------------------
|
||||
|
||||
'<27><> <20>ɼ<EFBFBD>
|
||||
if tmp_month <> "0" and tmp_month <> "" then
|
||||
query = query & " AND SUBSTRING(convert(varchar(30), p_input_dt, 112), 5, 2) = '" & right("0" & tmp_month, 2) & "' "
|
||||
end if
|
||||
'------------------------------------------------------
|
||||
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><> <20>˻<EFBFBD> <20>ɼ<EFBFBD>
|
||||
if p_subject <> "" then
|
||||
query = query & " AND p_subject LIKE '%"&p_subject&"%' "
|
||||
end if
|
||||
'------------------------------------------------------
|
||||
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><> <20>˻<EFBFBD> <20>ɼ<EFBFBD>
|
||||
if p_method_cd <> "" then
|
||||
query = query & " AND p_method_cd = '"&p_method_cd&"' "
|
||||
end if
|
||||
'------------------------------------------------------
|
||||
|
||||
|
||||
'------------------------------------------------------
|
||||
'<27><><EFBFBD><EFBFBD> <20>ɼ<EFBFBD>
|
||||
if tmp_sort = "0" Then
|
||||
query = query & "ORDER BY p_subject "
|
||||
ElseIf tmp_sort = "1" Then
|
||||
query = query & "ORDER BY p_sn DESC "
|
||||
ElseIf tmp_sort = "2" Then
|
||||
query = query & "ORDER BY p_depart_dep "
|
||||
else
|
||||
query = query & "ORDER BY p_input_dt "
|
||||
end If
|
||||
'------------------------------------------------------
|
||||
|
||||
|
||||
rsp.Open query, adoConn, 1
|
||||
if rsp.RecordCount > 0 then
|
||||
|
||||
rsp.PageSize = 20
|
||||
|
||||
PageCount = rsp.PageCount
|
||||
rsp.absolutepage = tmp_Currentpage
|
||||
tmp_total_record = rsp.RecordCount
|
||||
tmp_for = Cint(tmp_total_record) - ((Cint(tmp_Currentpage) - 1) * rsp.PageSize)
|
||||
|
||||
if rsp.PageSize <= tmp_for then
|
||||
if rsp.RecordCount <= rsp.PageSize then
|
||||
tmp_for = rsp.recordcount
|
||||
else
|
||||
tmp_for = rsp.PageSize
|
||||
end if
|
||||
else
|
||||
tmp_for = tmp_for
|
||||
end if
|
||||
|
||||
for i = 1 to tmp_for
|
||||
|
||||
if Cint(tmp_Currentpage)=1 then
|
||||
Num=Cint(tmp_total_record)- i+1
|
||||
else
|
||||
Num=Cint(tmp_total_record) - ((Cint(tmp_Currentpage) - 1) * rsc.PageSize) - i +1
|
||||
end if
|
||||
|
||||
prj_list(i, 0) = rsp("p_sn")
|
||||
prj_list(i, 1) = rsp("p_subject")
|
||||
|
||||
|
||||
if Cint(tmp_Currentpage)=1 then
|
||||
Num=Cint(tmp_total_record)- i+1
|
||||
else
|
||||
Num=Cint(tmp_total_record) - ((Cint(tmp_Currentpage) - 1) * rsp.PageSize) - i +1
|
||||
end if
|
||||
|
||||
'------------------------------------------------------------------
|
||||
tmp_view = "0"
|
||||
if flag <> "" then '#### my_menu<6E><75><EFBFBD><EFBFBD> <20><EFBFBD><F1B1B3B0><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><EFBFBD><F1B1B3B0><EFBFBD> <20><><EFBFBD>缭 <20><><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD>
|
||||
if tmp_stat_flag_process = flag OR tmp_stat_flag_date = flag then '#### <20><EFBFBD><F1B1B3B0><EFBFBD> <20><><EFBFBD>ٸ<EFBFBD> <20><>ü<EFBFBD><C3BC> <20><><EFBFBD><EFBFBD>
|
||||
tmp_view = "1"
|
||||
else
|
||||
tmp_veiw = "0"
|
||||
end if
|
||||
else
|
||||
tmp_view = "1"
|
||||
end if
|
||||
|
||||
if tmp_view = "1" then
|
||||
|
||||
if i mod 2 = 0 then
|
||||
tmp_bgcolor="#dbe9f2"
|
||||
else
|
||||
tmp_bgcolor=""
|
||||
end if
|
||||
%>
|
||||
<tr bgcolor="<%=tmp_bgcolor%>" id='row<%=i%>'>
|
||||
<td align="center" ><%=Num%></td>
|
||||
<td align="center" ><a href="javascript:openit('1','<%=rsp("p_sn")%>','<%=rsp("p_sub_type")%>','<%=rsp("p_method_cd")%>','<%=rsp("p_child_sn")%>')" class="blue">
|
||||
<!-- <%=rsp("p_state")%><%=rsp("p_sn")%> -->
|
||||
<%
|
||||
If rsp("p_sub_type") = "M" Then
|
||||
%>
|
||||
<%=rsp("p_sn")%>_M01
|
||||
<% Else
|
||||
If rsp("p_child_sn") = "" Then
|
||||
%>
|
||||
<%=rsp("p_sn")%>_C01
|
||||
<% Else %>
|
||||
<%=rsp("p_child_sn")%>
|
||||
<% End If
|
||||
End If
|
||||
%>
|
||||
</a></td>
|
||||
<td align="left" >
|
||||
<a href="javascript:openit('1','<%=rsp("p_sn")%>','<%=rsp("p_sub_type")%>','<%=rsp("p_method_cd")%>','<%=rsp("p_child_sn")%>')" class="blue">
|
||||
<% If Len(rsp("p_subject")) > 35 Then %>
|
||||
<%=Left(rsp("p_subject"), 35) & "..."%>
|
||||
<% Else %>
|
||||
<%=rsp("p_subject")%>
|
||||
<% End If %>
|
||||
</a>
|
||||
</td>
|
||||
<td align="center" >
|
||||
<% If rsp("p_sub_type") = "M" Then %>
|
||||
Multi
|
||||
<% Else
|
||||
If rsp("p_method_cd") <> "" then
|
||||
q = "select p_method_cd, p_method_nm from T_PROJECT_METHOD_CD where p_method_cd = " & rsp("p_method_cd")
|
||||
rsc.Open q, adoConn, 1
|
||||
if rsc.RecordCount > 0 Then
|
||||
If Len(rsc("p_method_nm")) > 6 Then
|
||||
%>
|
||||
<%=Left(rsc("p_method_nm"), 6) & "..."%>
|
||||
<%
|
||||
Else
|
||||
%>
|
||||
<%=rsc("p_method_nm")%>
|
||||
<%
|
||||
End if
|
||||
end if
|
||||
rsc.Close
|
||||
Else
|
||||
%>
|
||||
|
||||
<%
|
||||
End if
|
||||
End If %>
|
||||
</td>
|
||||
<td align="left" >
|
||||
<% If Len(rsp("p_intention")) > 6 Then %>
|
||||
<%=Left(rsp("p_intention"), 6) & "..."%>
|
||||
<% Else %>
|
||||
<%=rsp("p_intention")%>
|
||||
<% End If %>
|
||||
</td>
|
||||
<td align="center" >
|
||||
<%
|
||||
'##### <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>(2019)
|
||||
'q = "select d_code, d_name from Depart where d_yes_no = 'Y' and d_code = '" & rsp("p_rsch_dept") & "' "
|
||||
'rsc.Open q, adoConn, 1
|
||||
dim t_name
|
||||
q = "Select T_name from V_department where before_t_cd1 = '"& rsp("p_rsch_dept") &"' "
|
||||
rsc.Open q, adoConn, 1
|
||||
If rsc.RecordCount > 0 Then
|
||||
If (Instr(rsc("T_name"),"<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>") <> 0) or (Instr(rsc("T_name"),"<22><><EFBFBD><EFBFBD>") <> 0) Then
|
||||
t_name = Right(rsc("T_name"),2)
|
||||
Else
|
||||
t_name = rsc("T_name")
|
||||
End If
|
||||
%>
|
||||
<%=t_name%>
|
||||
<%
|
||||
end if
|
||||
rsc.Close
|
||||
%>
|
||||
</td>
|
||||
<td align="center" >
|
||||
<%
|
||||
q = "select c_common_code, c_code_name from T_COMMON_CODE_DETAIL where c_kind_code = '010' and c_common_code = '" & rsp("p_progress_status") & "' "
|
||||
rsc.Open q, adoConn, 1
|
||||
|
||||
if rsc.RecordCount > 0 Then
|
||||
If rsc("c_code_name") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7><EFBFBD>" Then
|
||||
query = "select p_progress_flag, p_input_complete from T_PROJECT_METHOD where p_sn = '"&rsp("p_sn")&"' and p_sub_type = '"&rsp("p_sub_type")&"' "
|
||||
|
||||
If rsp("p_sub_type") = "C" Then
|
||||
query = query + " and p_child_sn = '"&rsp("p_child_sn")&"' "
|
||||
End if
|
||||
|
||||
'response.Write query
|
||||
|
||||
Dim direct_cost_depart
|
||||
ReDim tmp_input_complete(3)
|
||||
ReDim tmp_progress_flag(3)
|
||||
direct_cost_depart = ""
|
||||
rsa.Open query, adoConn, 1
|
||||
|
||||
if rsa.RecordCount > 0 Then
|
||||
If rsp("p_sub_type") = "C" Then
|
||||
if rsa("p_progress_flag") = "ooo" then
|
||||
if rsa("p_input_complete") = "ooo" Or rsa("p_input_complete") = "oooo" then
|
||||
direct_cost_depart = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD> <20>Ϸ<EFBFBD>"
|
||||
else
|
||||
if mid(rsa("p_input_complete"),1,1) = "x" then
|
||||
direct_cost_depart = "<22><><EFBFBD><EFBFBD> "
|
||||
end if
|
||||
if mid(rsa("p_input_complete"),2,1) = "x" then
|
||||
if direct_cost_depart <> "" then
|
||||
direct_cost_depart = direct_cost_depart & ", "
|
||||
End if
|
||||
direct_cost_depart = direct_cost_depart & "<22>ǻ<EFBFBD> "
|
||||
end If
|
||||
If rsa("p_input_complete") = "ooo" Then
|
||||
if mid(rsa("p_input_complete"),3,1) = "x" then
|
||||
if direct_cost_depart <> "" then
|
||||
direct_cost_depart = direct_cost_depart & ", "
|
||||
End If
|
||||
End if
|
||||
direct_cost_depart = direct_cost_depart & "QC "
|
||||
ElseIf rsa("p_input_complete") = "oooo" Then
|
||||
if mid(rsa("p_input_complete"),4,1) = "x" then
|
||||
if direct_cost_depart <> "" then
|
||||
direct_cost_depart = direct_cost_depart & ", "
|
||||
End if
|
||||
direct_cost_depart = direct_cost_depart & "DP "
|
||||
end if
|
||||
End If
|
||||
direct_cost_depart = direct_cost_depart & "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD> <20><>"
|
||||
end if
|
||||
else
|
||||
if mid(rsa("p_progress_flag"),1,1) = "x" then
|
||||
direct_cost_depart = "<22><><EFBFBD><EFBFBD> "
|
||||
end if
|
||||
if mid(rsa("p_progress_flag"),2,1) = "x" then
|
||||
if direct_cost_depart <> "" then
|
||||
direct_cost_depart = direct_cost_depart & ", "
|
||||
End if
|
||||
direct_cost_depart = direct_cost_depart & "<22>ǻ<EFBFBD> "
|
||||
end if
|
||||
if mid(rsa("p_progress_flag"),3,1) = "x" then
|
||||
if direct_cost_depart <> "" then
|
||||
direct_cost_depart = direct_cost_depart & ", "
|
||||
End if
|
||||
direct_cost_depart = direct_cost_depart & "DP "
|
||||
end if
|
||||
direct_cost_depart = direct_cost_depart & "<22><><EFBFBD><EFBFBD> <20>Է<EFBFBD> <20><>"
|
||||
end if
|
||||
Else
|
||||
Do while Not rsa.Eof
|
||||
if mid(rsa("p_input_complete"),1,1) = "x" then
|
||||
tmp_input_complete(0) = "x"
|
||||
end if
|
||||
if mid(rsa("p_input_complete"),2,1) = "x" then
|
||||
tmp_input_complete(1) = "x"
|
||||
end if
|
||||
if mid(rsa("p_input_complete"),3,1) = "x" then
|
||||
tmp_input_complete(2) = "x"
|
||||
end if
|
||||
|
||||
if mid(rsa("p_progress_flag"),1,1) = "x" then
|
||||
tmp_progress_flag(0) = "x"
|
||||
end if
|
||||
if mid(rsa("p_progress_flag"),2,1) = "x" then
|
||||
tmp_progress_flag(1) = "x"
|
||||
end if
|
||||
if mid(rsa("p_progress_flag"),3,1) = "x" then
|
||||
tmp_progress_flag(2) = "x"
|
||||
end if
|
||||
rsa.MoveNext
|
||||
loop
|
||||
|
||||
if tmp_progress_flag(0) <> "x" and tmp_progress_flag(1) <> "x" and tmp_progress_flag(2) <> "x" then
|
||||
|
||||
if tmp_input_complete(0) = "x" then
|
||||
direct_cost_depart = "<22><><EFBFBD><EFBFBD> "
|
||||
End if
|
||||
if tmp_input_complete(1) = "x" then
|
||||
if direct_cost_depart <> "" then
|
||||
direct_cost_depart = direct_cost_depart & ", "
|
||||
End if
|
||||
direct_cost_depart = direct_cost_depart & "<22>ǻ<EFBFBD> "
|
||||
End if
|
||||
if tmp_input_complete(2) = "x" then
|
||||
if direct_cost_depart <> "" then
|
||||
direct_cost_depart = direct_cost_depart & ", "
|
||||
End if
|
||||
direct_cost_depart = direct_cost_depart & "QC "
|
||||
End if
|
||||
direct_cost_depart = direct_cost_depart & "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD> <20><>"
|
||||
else
|
||||
if tmp_progress_flag(0) = "x" then
|
||||
direct_cost_depart = "<22><><EFBFBD><EFBFBD> "
|
||||
End if
|
||||
if tmp_progress_flag(1) = "x" then
|
||||
if direct_cost_depart <> "" then
|
||||
direct_cost_depart = direct_cost_depart & ", "
|
||||
End if
|
||||
direct_cost_depart = direct_cost_depart & "<22>ǻ<EFBFBD> "
|
||||
End if
|
||||
if tmp_progress_flag(2) = "x" then
|
||||
if direct_cost_depart <> "" then
|
||||
direct_cost_depart = direct_cost_depart & ", "
|
||||
End if
|
||||
direct_cost_depart = direct_cost_depart & "DP "
|
||||
End if
|
||||
direct_cost_depart = direct_cost_depart & "<22><><EFBFBD><EFBFBD> <20>Է<EFBFBD> <20><>"
|
||||
end if
|
||||
End if
|
||||
end if
|
||||
rsa.Close
|
||||
%>
|
||||
<%=direct_cost_depart%>
|
||||
<%
|
||||
else
|
||||
%>
|
||||
<%=Replace(rsc("c_code_name"), "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȹ<EFBFBD><C8B9> ", "<22><>ȹ<EFBFBD><C8B9> ")%>
|
||||
<%
|
||||
End if
|
||||
end if
|
||||
rsc.Close
|
||||
%>
|
||||
</td>
|
||||
<td align="center" ><%=Left(rsp("p_input_dt"), 10)%></td>
|
||||
</tr>
|
||||
<%
|
||||
end if
|
||||
rsp.MoveNext
|
||||
next
|
||||
end if
|
||||
rsp.Close
|
||||
%>
|
||||
<!-- loop end -->
|
||||
|
||||
<tr>
|
||||
<td colspan="12" bgcolor="#d5d5d5" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="12" style="padding:10 0 0 0">
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td width="100%" align="center">
|
||||
<!--- Paging Start --->
|
||||
<%=Pagelist("project_list2_withdate_2014.asp?z=" & z & "&",tmp_currentpage ,tmp_bcolor , "", pagecount, "&x=" & x & "&chk=" & chk & "&p_depart=" & p_depart & "&p_team=" & p_team & "&flag=" & flag & "&tmp_sort=" & tmp_sort & "&tmp_month=" & tmp_month & "&tmp_year=" & tmp_year & "&p_team_people=" & p_team_people)%>
|
||||
<!--- Paging End --->
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
|
||||
</form>
|
||||
Reference in New Issue
Block a user