최초커밋
This commit is contained in:
463
project/project_search_2014_p_sn.asp
Normal file
463
project/project_search_2014_p_sn.asp
Normal file
@@ -0,0 +1,463 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
p_sn = Request("p_sn")
|
||||
' p_subject = request("p_subject")
|
||||
' p_depart = request("p_depart")
|
||||
' p_method = request("p_method")
|
||||
' p_cli_company = request("p_cli_company")
|
||||
' p_category = request("p_category")
|
||||
' p_target_part = request("p_target_part")
|
||||
' p_area_part = request("p_area_part")
|
||||
' p_survey_part = request("p_survey_part")
|
||||
' p_field_process = request("p_field_process")
|
||||
' p_decide_date_st = request("p_decide_date_st")
|
||||
' p_decide_date_ed = request("p_decide_date_ed")
|
||||
' c_common_code = request("c_common_code") '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
' f_file_name = request("f_file_name")
|
||||
' p_client_type_cd = request("p_client_type_cd")
|
||||
' p_types1 = request("p_types1")
|
||||
' p_types2 = request("p_types2")
|
||||
' p_types3 = request("p_types3")
|
||||
' project_old_new = request("project_old_new")
|
||||
' p_export_range = request("p_export_range") '<27>뿪<EFBFBD><EBBFAA><EFBFBD><EFBFBD>
|
||||
' p_sample_st = request("p_sample_st") 'ǥ<><C7A5><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
' p_sample_ed = request("p_sample_ed") 'ǥ<><C7A5><EFBFBD><EFBFBD> <20><>
|
||||
|
||||
' p_intention= replace(replace(request("p_intention"),"'",""),"""","") '<27><><EFBFBD>系<EFBFBD><E7B3BB>
|
||||
' p_user=replace(replace(request("p_user"),"'",""),"""","") '<27><><EFBFBD><EFBFBD><EFBFBD>η<EFBFBD>
|
||||
|
||||
' print_gubn = request("print_gubn") '-- <20><><EFBFBD>±<EFBFBD><C2B1><EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȹ<EFBFBD><C8B9> , <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>) : <20>߰<EFBFBD> 20170721
|
||||
|
||||
'-- <20><><EFBFBD><EFBFBD><EFBFBD>η<EFBFBD> <20>˻<EFBFBD>
|
||||
if p_user<>"" then
|
||||
|
||||
w_sql = " select p_no from dbo.person "
|
||||
w_sql = w_sql & " where p_name='"&p_user&"' "
|
||||
w_sql = w_sql & " order by p_no desc "
|
||||
rs.Open w_sql, adoConn, 1
|
||||
if rs.recordCount>0 then p_user_ck="1" '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
new_p="" : old_p=""
|
||||
for i = 1 to rs.recordCount
|
||||
|
||||
|
||||
'-- <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ
|
||||
if cint(i)>1 then new_p = new_p & " or "
|
||||
new_p = new_p & " TPM.p_rsch_1_a='[krc_id]' or "
|
||||
new_p = new_p & " TPM.p_rsch_2_a='[krc_id]' or "
|
||||
new_p = new_p & " TPM.p_rsch_3_a='[krc_id]' or "
|
||||
new_p = new_p & " TPM.p_rsch_4_a='[krc_id]' or "
|
||||
new_p = new_p & " TPM.p_rsch_1_b='[krc_id]' or "
|
||||
new_p = new_p & " TPM.p_rsch_2_b='[krc_id]' or "
|
||||
new_p = new_p & " TPM.p_rsch_3_b='[krc_id]' or "
|
||||
new_p = new_p & " TPM.p_rsch_4_b='[krc_id]' or "
|
||||
new_p = new_p & " TPM.p_rsch_1_c='[krc_id]' or "
|
||||
new_p = new_p & " TPM.p_rsch_2_c='[krc_id]' or "
|
||||
new_p = new_p & " TPM.p_rsch_3_c='[krc_id]' or "
|
||||
new_p = new_p & " TPM.p_rsch_4_c='[krc_id]' or "
|
||||
new_p = new_p & " TPM.p_sv_1='[krc_id]' or "
|
||||
new_p = new_p & " TPM.p_sv_2='[krc_id]' or "
|
||||
new_p = new_p & " TPM.p_sv_3='[krc_id]' or "
|
||||
new_p = new_p & " TPM.p_sv_4='[krc_id]' or "
|
||||
new_p = new_p & " TPM.p_code_1='[krc_id]' or "
|
||||
new_p = new_p & " TPM.p_code_2='[krc_id]' or "
|
||||
new_p = new_p & " TPM.p_code_3='[krc_id]' or "
|
||||
new_p = new_p & " TPM.p_code_4='[krc_id]' or "
|
||||
new_p = new_p & " TPM.p_verify_1='[krc_id]' or "
|
||||
new_p = new_p & " TPM.p_verify_2='[krc_id]' or "
|
||||
new_p = new_p & " TPM.p_verify_3='[krc_id]' or "
|
||||
new_p = new_p & " TPM.p_verify_4='[krc_id]' or "
|
||||
new_p = new_p & " TPM.p_dp_1='[krc_id]' or "
|
||||
new_p = new_p & " TPM.p_dp_2='[krc_id]' or "
|
||||
new_p = new_p & " TPM.p_dp_3='[krc_id]' or "
|
||||
new_p = new_p & " TPM.p_dp_4='[krc_id]' or "
|
||||
new_p = new_p & " TPM.p_it_1='[krc_id]' or "
|
||||
new_p = new_p & " TPM.p_it_2='[krc_id]' or "
|
||||
new_p = new_p & " TPM.p_it_3='[krc_id]' or "
|
||||
new_p = new_p & " TPM.p_it_4='[krc_id]' or "
|
||||
new_p = new_p & " TPM.p_supp_1='[krc_id]' or "
|
||||
new_p = new_p & " TPM.p_supp_2='[krc_id]' or "
|
||||
new_p = new_p & " TPM.p_supp_3='[krc_id]' or "
|
||||
new_p = new_p & " TPM.p_supp_4='[krc_id]' "
|
||||
new_p=replace(new_p,"[krc_id]",rs(0))
|
||||
|
||||
|
||||
'-- <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ
|
||||
if cint(i)>1 then old_p = old_p & " or "
|
||||
old_p = old_p & " p.p_rsch_1='[krc_id]' or "
|
||||
old_p = old_p & " p.p_rsch_2='[krc_id]' or "
|
||||
old_p = old_p & " p.p_rsch_3='[krc_id]' or "
|
||||
old_p = old_p & " p.p_rsch_4='[krc_id]' or "
|
||||
old_p = old_p & " p.p_rsch_5='[krc_id]' or "
|
||||
old_p = old_p & " p.p_rsch_6='[krc_id]' "
|
||||
old_p=replace(old_p,"[krc_id]",rs(0))
|
||||
|
||||
|
||||
rs.movenext
|
||||
next
|
||||
rs.close
|
||||
|
||||
|
||||
'-- <20><><EFBFBD><EFBFBD> ---------------------------------------
|
||||
if len(new_p)>0 then new_p = " and ( " & new_p & ")"
|
||||
if len(old_p)>0 then old_p = " and ( " & old_p & ")"
|
||||
'----------------------------------------------
|
||||
|
||||
end if
|
||||
|
||||
s = request("s")
|
||||
|
||||
%>
|
||||
<head>
|
||||
<title><%=GNB_TITLE%></title>
|
||||
<link rel="stylesheet" type="text/css" href="../css/basic.css">
|
||||
<script language="javascript" src="../js/common.js"></script>
|
||||
<script src="/js/jquery.min.js"></script>
|
||||
<script src="/js/jquery-ajax-call.js"></script>
|
||||
<script src="/js/jquery.form.min.js"></script>
|
||||
|
||||
<script language="javascript">
|
||||
|
||||
function chkit(txt) {
|
||||
var f = document.pms;
|
||||
var url = "project_search_2014.asp";
|
||||
|
||||
/*
|
||||
if((f.p_sn.value=="")&&(f.p_subject.value=="")){
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD>ڵ<EFBFBD> <20>Ǵ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7><EFBFBD> <20>ּž<D6BC> <20>˻<EFBFBD><CBBB><EFBFBD> <20><><EFBFBD><EFBFBD> <20>մϴ<D5B4> ");
|
||||
return false;
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
|
||||
if (txt == "1") {
|
||||
url = url + '?s=1';
|
||||
}
|
||||
else {
|
||||
url = url + '?s=1&command=excel';
|
||||
}
|
||||
|
||||
// if (confirm('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ä<><C3A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>˻<EFBFBD><CBBB>ð<EFBFBD><C3B0><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ɸ<EFBFBD> <20><> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>')) {
|
||||
// alert(url);
|
||||
f.action = url;
|
||||
f.submit();
|
||||
// }
|
||||
}
|
||||
function download(p_sn,f_id) {
|
||||
url = jPath + "download";
|
||||
var param = "?p_sn=" + p_sn + "&f_id=" + f_id;
|
||||
$(location).attr("href", url + param);
|
||||
}
|
||||
function openit(a, z, x, y, v) {
|
||||
if (a == 1) {
|
||||
//<2F><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD> Ȯ<><C8AE>
|
||||
if (new_project_2014(z) == 1) {
|
||||
var url = 'project_list2_dep.asp?p_sn=' + z;
|
||||
} else {
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȹ<EFBFBD><C8B9> <20>Ǵ<EFBFBD>(p_subtype<70><65> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȹ<EFBFBD><C8B9><EFBFBD><EFBFBD> <20><><EFBFBD>ٰ<EFBFBD> <20>Ǵ<EFBFBD>)
|
||||
if (x != '') {
|
||||
var url = 'project_list2_dep_2014.asp?p_sn=' + z;
|
||||
} else {
|
||||
if(confirm("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȹ<EFBFBD><C8B9> <20>ۼ<EFBFBD><DBBC><EFBFBD><EFBFBD><EFBFBD> <20>ʾҽ<CABE><D2BD>ϴ<EFBFBD>.\n<><6E><EFBFBD>ȵ<EFBFBD><C8B5><EFBFBD> ȭ<><C8AD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>̵<EFBFBD><CCB5>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?")){
|
||||
var url = 'project_contact_2014.asp?p_sn=' + z;
|
||||
}else{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
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;
|
||||
}
|
||||
}
|
||||
winObj=window.open(url, '', 'left=0,top=0,width=' + tmp_width + ',height=' + tmp_height + ',scrollbars=yes,resizable=yes')
|
||||
|
||||
}
|
||||
function excel_export() {
|
||||
document.pms.action = "project_search_2014.asp?s=1&command=excel";
|
||||
document.pms.submit();
|
||||
}
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body topmargin="0" leftmargin="0" onclick="javascript:try{if(winObj.window.focus()){}}catch(exception){}" ondblclick="javascript:try{if(winObj.window.focus()){}}catch(exception){}" >
|
||||
<form name="pms" method="post">
|
||||
<input type="hidden" name="project_old_new_check" id= "project_old_new_check" value="<%=project_old_new %>">
|
||||
<input type="hidden" name="p_types1_check" id= "p_types1_check" value="<%=p_types1%>">
|
||||
<input type="hidden" name="p_types2_check" id= "p_types2_check" value="<%=p_types2%>">
|
||||
<input type="hidden" name="p_types3_check" id= "p_types3_check" value="<%=p_types3%>">
|
||||
<input type="hidden" id="tprint_gubn" value="<%=print_gubn%>" />
|
||||
<td width="100%" align="center" valign="top">
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td>
|
||||
<% '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>˻<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
if request("s") = 1 then
|
||||
'======================================================
|
||||
'<27>ű<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>˻<EFBFBD>
|
||||
query = " select p_sn, p_subject, isnull(p_depart,'') as p_depart, p_method, p_cli_company, p_conv_date, c_code_name, "
|
||||
query = query & " count(f_id) as f_id, convert(varchar(10),count(f_file_name))+'<27><>' as f_file_name, "
|
||||
query = query & " '' as p_name, '' as f_attach_date, p_sub_type, p_method_cd, p_child_sn, p_con_date_end, p_cont_cost, p_sample "
|
||||
query = query & " FROM ( "
|
||||
query = query & " SELECT TPB.p_sn as p_sn, TPB.p_subject as p_subject, isnull(D.d_name, '') as p_depart, TPMC.p_method_nm as p_method, TCC.p_cli_company_nm as p_cli_company, "
|
||||
query = query & " TPM.p_decide_date as p_conv_date, '' as c_code_name, TSA.f_id as f_id, TSA.f_file_name as f_file_name, TSA.f_input_user as f_input_user, per.p_name as p_name, "
|
||||
query = query & " TSA.f_attach_date as f_attach_date, TPM.p_sub_type, TPM.p_method_cd, isnull(TPM.p_child_sn,tpb.p_sn) as p_child_sn, TPM.p_con_date_end, isnull(TPM.p_cont_cost, '0') as p_cont_cost, ISNULL(TPM.p_sample, '0') as p_sample "
|
||||
query = query & " FROM T_PROJECT_BASE TPB "
|
||||
query = query & " LEFT OUTER JOIN T_PROJECT_METHOD TPM ON TPM.p_sn = TPB.p_sn /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> */ "
|
||||
query = query & " LEFT OUTER JOIN T_PROJECT_METHOD_CD TPMC ON TPM.p_method_cd = TPMC.p_method_cd /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20≯<EFBFBD> <20><><EFBFBD><EFBFBD> */ "
|
||||
query = query & " LEFT OUTER JOIN Depart D ON TPM.p_rsch_dept = D.d_code /* <20>μ<EFBFBD><CEBC>ڵ<EFBFBD> */ "
|
||||
query = query & " LEFT OUTER JOIN V_CLIENT_COMP TCC ON TPB.p_cli_company_cd = TCC.p_cli_company_cd /* ȸ<><C8B8><EFBFBD>ڵ<EFBFBD> <20><><EFBFBD><EFBFBD> */ "
|
||||
query = query & " LEFT OUTER JOIN T_SYSTEM_ATTACH TSA ON TPB.p_sn = TSA.f_p_sn AND f_use_yn = 'y' "
|
||||
query = query & " LEFT OUTER JOIN T_COMMON_CODE_DETAIL TCCD ON TSA.f_work_type = TCCD.c_kind_code AND TSA.f_kind = TCCD.c_common_code /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> */ "
|
||||
query = query & " LEFT OUTER JOIN person PER ON TSA.f_input_user = PER.P_NO "
|
||||
query = query & " WHERE TPB.p_sn='"&p_sn&"' "
|
||||
query = query & " UNION ALL "
|
||||
|
||||
'<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>˻<EFBFBD>
|
||||
query = query & " SELECT p.p_sn as p_sn, p.p_subject as p_subject, isnull(d.d_name, '') as p_depart, pm.name1 as p_method, C.c_name as p_cli_company, "
|
||||
query = query & " p.p_conv_date as p_conv_date, TCCD.c_code_name as c_code_name, TSA.f_id as f_id, TSA.f_file_name as f_file_name, "
|
||||
query = query & " TSA.f_input_user as f_input_user, per.p_name as p_name, TSA.f_attach_date as f_attach_date, '' as p_sub_type, '' as p_method_cd, '' as p_child_sn ,p.p_convdate_end as p_con_date_end, p.p_budget as p_cont_cost, ISNULL(P.p_sample, '0') as p_sample "
|
||||
query = query & " FROM project P LEFT OUTER JOIN Depart D ON p.p_depart = d.d_code /* <20>μ<EFBFBD><CEBC>ڵ<EFBFBD> <20><><EFBFBD><EFBFBD> */ "
|
||||
query = query & " LEFT OUTER JOIN p_method pm ON p.p_method = pm.code1 /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> */ "
|
||||
query = query & " LEFT OUTER JOIN Client C ON p.p_cli_company = C.c_code /* ȸ<><C8B8><EFBFBD≯<EFBFBD> <20><><EFBFBD><EFBFBD> */ "
|
||||
query = query & " LEFT OUTER JOIN T_SYSTEM_ATTACH TSA ON p.p_sn = TSA.f_p_sn AND TSA.f_use_yn = 'Y' /* ÷<><C3B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> */ "
|
||||
query = query & " LEFT OUTER JOIN T_COMMON_CODE_DETAIL TCCD ON TSA.f_work_type = TCCD.c_kind_code AND TSA.f_kind = TCCD.c_common_code /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> */ "
|
||||
query = query & " LEFT OUTER JOIN person PER ON TSA.f_input_user = PER.P_NO /* <20><><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7><EFBFBD> <20≯<EFBFBD> */ "
|
||||
query = query & " WHERE p_sn='"&p_sn&"' "
|
||||
query = query & " ) T "
|
||||
query = query & " where p_depart<>'' "
|
||||
query = query & " group by p_sn, p_subject, p_depart, p_method, p_cli_company, p_conv_date, c_code_name, p_sub_type, p_method_cd, p_child_sn, p_con_date_end, p_cont_cost, p_sample "
|
||||
query = query & " order by left(p_sn,7) desc, right(p_sn,2) desc "
|
||||
|
||||
rs.Open query, adoConn, 1
|
||||
|
||||
%>
|
||||
|
||||
<div id = "resultTable" >
|
||||
<table width="900px" cellpadding="0" cellspacing="0" border="0" align="center" >
|
||||
<tr>
|
||||
<td width="35" align="center" height="24" ><3E><><EFBFBD><EFBFBD></td>
|
||||
<td width="80" align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD>ڵ<EFBFBD></td>
|
||||
<td width="250" align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE></td>
|
||||
<td width="50" align="center" height="24" ><3E>μ<EFBFBD></td>
|
||||
<td width="100" align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="120" align="center" height="24" >Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ</td>
|
||||
<td width="65" align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="65" align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="65" align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="45" align="center" height="24" ><3E><><EFBFBD>ü<EFBFBD></td>
|
||||
<!-- <td width="60" align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td> -->
|
||||
<td width="80" align="center" height="24" ><3E><><EFBFBD><EFBFBD></td>
|
||||
<!-- <td width="55" align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="45" align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td> -->
|
||||
</tr>
|
||||
|
||||
<% if rs.recordCount = 0 then %>
|
||||
<tr height="70" bgcolor="#dbe9f2">
|
||||
<td width="" colspan="11" align="center" valign="center" style="height:160px"><font color="blue" ><3E><><EFBFBD>ϵ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD></font></td>
|
||||
</tr>
|
||||
|
||||
<% end if
|
||||
for i = 1 to rs.recordCount
|
||||
if i mod 2 = 0 then
|
||||
tmp_bgcolor = "#dbe9f2"
|
||||
else
|
||||
tmp_bgcolor = "#ffffff"
|
||||
end if
|
||||
p_sn = rs("p_sn")
|
||||
p_cont_cost=""
|
||||
if rs("p_cont_cost") <> "" then
|
||||
tmp_len = len(rs("p_cont_cost"))
|
||||
for j = 1 to int(tmp_len)
|
||||
if j mod 3 = 1 and j <> 1 then
|
||||
p_cont_cost = "," & p_cont_cost
|
||||
end if
|
||||
p_cont_cost = left(right(rs("p_cont_cost"),j), 1) & p_cont_cost
|
||||
next
|
||||
end If
|
||||
%>
|
||||
<tr height="24" bgcolor="<%=tmp_bgcolor%>">
|
||||
<td width="" align="center" ><%= i %></td>
|
||||
<td width="" align="center" >
|
||||
<% If rs("p_child_sn") = "" Then %>
|
||||
<%=rs("p_sn")%>
|
||||
<% Else %>
|
||||
<%=rs("p_child_sn")%>
|
||||
<% End If %>
|
||||
</td>
|
||||
<td width="" align="center" ><a href="javascript:openit('1','<%=rs("p_sn")%>','<%=rs("p_sub_type")%>','<%=rs("p_method_cd")%>','<%=rs("p_child_sn")%>')" class="blue"><%=rs("p_subject") %></a></td>
|
||||
<td width="" align="center" ><%= Replace(rs("p_depart"), "<22><><EFBFBD><EFBFBD> ", "") %></td>
|
||||
<td width="" align="center" ><%= rs("p_method") %></td>
|
||||
<td width="" align="center" ><%= rs("p_cli_company") %></td>
|
||||
<td width="" align="center" ><%= rs("p_conv_date") %></td>
|
||||
<td width="" align="center" ><%= rs("p_con_date_end") %></td>
|
||||
<td width="" align="center" ><%= p_cont_cost %></td>
|
||||
<td width="" align="center" ><%= rs("p_sample") %></td>
|
||||
<!-- <td width="" align="center" ><%= rs("c_code_name") %></td> -->
|
||||
<% if c_common_code <> "" then %>
|
||||
<td width="" align="center" >
|
||||
<% If Session("teamplace") <> 10 Then %>
|
||||
<a href="javascript:download('<%=rs("p_sn")%>','<%=rs("f_id")%>')" class="blue"><%= rs("f_file_name") %></a>
|
||||
<% else %>
|
||||
<%= rs("f_file_name") %>
|
||||
<%end if%>
|
||||
</td>
|
||||
<% else %>
|
||||
<td width="" align="center" ><%= rs("f_file_name") %></td>
|
||||
<% end if %>
|
||||
<!-- <td width="" align="center" ><%= rs("p_name") %></td>
|
||||
<td width="" align="center" ><%= rs("f_attach_date") %></td> -->
|
||||
</tr>
|
||||
<%
|
||||
rs.movenext
|
||||
next
|
||||
end if
|
||||
%>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</form>
|
||||
<body>
|
||||
<script language="javascript">
|
||||
/*
|
||||
$(document).ready(function () {
|
||||
// if ($('#p_client_type_cd').val() == "") {
|
||||
// $('#p_client_type_cd').css("display", "none");
|
||||
// }
|
||||
// if ($('#p_types1').val() == "") {
|
||||
// $('#p_types1').css("display", "none");
|
||||
// }
|
||||
// if ($('#p_types2').val() == "") {
|
||||
// $('#p_types2').css("display", "none");
|
||||
// }
|
||||
// if ($('#p_types3').val() == "") {
|
||||
// $('#p_types3').css("display", "none");
|
||||
// }
|
||||
|
||||
//alert($('#project_old_new_check').val());
|
||||
if ($('#project_old_new_check').val() == "") {
|
||||
$('#project_old_new_check').css("display", "none");
|
||||
} else if ($('#project_old_new_check').val() == "new") {
|
||||
$('#p_client_type_cd').css("display", "");
|
||||
$('#p_types1').css("display", "none");
|
||||
$('#p_types2').css("display", "none");
|
||||
$('#p_types3').css("display", "none");
|
||||
} else if ($('#project_old_new_check').val() == "old") {
|
||||
$('#p_client_type_cd').css("display", "none");
|
||||
$('#p_types1').css("display", "");
|
||||
if ($('#p_types1_check').val() != "") {
|
||||
$('#p_types2').css("display", "");
|
||||
ajaxCallJson("project_search_ajax_type2_2014.asp", { p_types1: $('#p_types1_check').val(), p_types2: $('#p_types2_check').val() }, null, "post", "type1ReturnFunc()");
|
||||
}
|
||||
if ($('#p_types2_check').val() != "") {
|
||||
$('#p_types3').css("display", "");
|
||||
ajaxCallJson("project_search_ajax_type3_2014.asp", { p_types1: $('#p_types1_check').val(), p_types2: $('#p_types2_check').val(), p_types3: $('#p_types3_check').val() }, null, "post", "type2ReturnFunc()");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
$("#searchHide").click(function () {
|
||||
if ($(this).is(':checked')) {
|
||||
$("#searchTable").hide();
|
||||
$("#resultTable").height("800px");
|
||||
} else {
|
||||
$("#searchTable").show();
|
||||
$("#resultTable").height("400px");
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
function old_new_change() {
|
||||
|
||||
var temp = $(':radio[name="project_old_new"]:checked').val();
|
||||
//alert(temp);
|
||||
if (temp == "") {
|
||||
$('#p_client_type_cd').css("display", "none");
|
||||
$('#p_types1').css("display", "none");
|
||||
$('#p_types2').css("display", "none");
|
||||
$('#p_types3').css("display", "none");
|
||||
$('#p_client_type_cd').val("");
|
||||
$('#p_types1').val("");
|
||||
$('#p_types2').val("");
|
||||
$('#p_types3').val("");
|
||||
}else if (temp == "old") {
|
||||
//alert(temp);
|
||||
$('#p_client_type_cd').css("display", "none");
|
||||
$('#p_types1').css("display", "");
|
||||
$('#p_client_type_cd').val("");
|
||||
} else if (temp == "new") {
|
||||
$('#p_client_type_cd').css("display", "");
|
||||
$('#p_types1').css("display", "none");
|
||||
$('#p_types2').css("display", "none");
|
||||
$('#p_types3').css("display", "none");
|
||||
$('#p_types1').val("");
|
||||
$('#p_types2').val("");
|
||||
$('#p_types3').val("");
|
||||
}
|
||||
}
|
||||
// function type_change(level) {
|
||||
// if ($('#p_types1').val() != "") {
|
||||
// $('#p_types2').css("display", "");
|
||||
// } else {
|
||||
// $('#p_types2').css("display", "");
|
||||
// }
|
||||
// }
|
||||
$('#p_types1').change(function () {
|
||||
$('#p_types3').css("display", "none");
|
||||
if ($('#p_types1').val() != "") {
|
||||
$('#p_types2').css("display", "");
|
||||
ajaxCallJson("project_search_ajax_type2_2014.asp", { p_types1: $('#p_types1').val() }, null, "post", "type1ReturnFunc()");
|
||||
|
||||
} else {
|
||||
$('#p_types2').css("display", "none");
|
||||
$('#p_types3').css("display", "none");
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
|
||||
$('#p_types2').change(function () {
|
||||
if ($('#p_types2').val() != "") {
|
||||
$('#p_types3').css("display", "");
|
||||
ajaxCallJson("project_search_ajax_type3_2014.asp", { p_types1: $('#p_types1').val(), p_types2: $('#p_types2').val() }, null, "post", "type2ReturnFunc()");
|
||||
} else {
|
||||
$('#p_types3').css("display", "none");
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
function type1ReturnFunc() {
|
||||
$("#p_types2 option").remove();
|
||||
$("#p_types2").append(ajaxResponse);
|
||||
}
|
||||
function type2ReturnFunc() {
|
||||
$("#p_types3 option").remove();
|
||||
$("#p_types3").append(ajaxResponse);
|
||||
}
|
||||
*/
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user