<% dim command command = Request("command") if command <> "excel" then %>

프로젝트 검색

<% End If '#### funs ↓######################################### function fnc_replace(mo,motype) dim tval : tval="" select case motype case "0" tval=replace(mo,"'", "") tval=replace(tval,"""", "") end select fnc_replace=tval end function '#### funs ↑######################################### dim xxlist : xxlist="0" p_sn = fnc_replace(Request("p_sn"),"0") p_subject = fnc_replace(request("p_subject"),"0") p_depart = request("p_depart") p_method = request("p_method") p_cli_company = fnc_replace(request("p_cli_company"),"0") 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") '문서종류 f_file_name = fnc_replace(request("f_file_name"),"0") 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") '용역범위 p_sample_st = fnc_replace(replace(request("p_sample_st"),",",""),"0") '표본수 시작 p_sample_ed = fnc_replace(replace(request("p_sample_ed"),",",""),"0") '표본수 끝 p_intention= replace(replace(request("p_intention"),"'",""),"""","") '조사내용 p_user=replace(replace(request("p_user"),"'",""),"""","") '참여인력 p_no = fnc_replace(Request("p_no"),"0") print_gubn = request("print_gubn") '-- 출력구분(프로젝트 수행계획서 , 제안 등록) : 추가 20170721 pps_state_nm = request("pps_state_nm") '-- 제안등록 상태 : 추가 20170723 '-- 참여인력 검색 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" '-- 사원정보 있음 new_p="" : old_p="" for i = 1 to rs.recordCount '-- 현재 프로젝트 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)) '-- 과거 프로젝트 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 '-- 정리 --------------------------------------- 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") if command = "excel" then Response.CacheControl = "public" Response.ContentType = "application/vnd.ms-excel" Response.AddHeader "Content-Disposition","attachment;filename=검색_("&replace(cstr(date()),"-","")&").xls" end if '====================================================== %>
<%if command <> "excel" then 'excel export[2] %> <%end if 'excel export[2] %>
검색을 원하시는 프로젝트 조건을 설정하시고, 찾기 버튼을 클릭해 주세요.
<%if command <> "excel" then 'excel export[3] %>
프로젝트 코드 프로젝트 명
부서   /   조사방법
클라이언트명 카테고리
업종 checked <% end if %>/>선택안함 checked <% end if %>/>신규프로젝트 (2014-07 이후 프로젝트)    checked <% end if %>/>구프로젝트        
조사대상 조사지역
조사분류 실사수행
조사내용
참여인력 <%if len(p_user)>0 and p_user_ck="" then %> ※ 사원이름이 정확하지 않습니다. 정확하게 입력하신후 찾기버튼을 눌러 주세요<%end if%>
계약기간   ~  
용역범위
(2014-07 이후 프로젝트)
표본수 " style='ime-mode:active;' onchange="getNumber(this);" onkeyup="getNumber(this);" style="text-align:right;" >   ~   " style='ime-mode:active;' onchange="getNumber(this);" onkeyup="getNumber(this);" style="text-align:right;" >
문서종류 파일명
출력 구분    
       
<%end if 'excel export[3] %> <% '프로젝트 검색 했을때 '##### 조직 개편(2019) if request("s") = 1 then '====================================================== '신규 프로젝트 검색 query = "" query = query & " select " query = query & " A1.*, " query = query & " isnull(A2.child_est_money_sum,0) as child_est_money_sum, " query = query & " isnull(A2.child_act_money_sum,0) as child_act_money_sum, " query = query & " isnull(A3.est_money_sum,0) as est_money_sum, " query = query & " isnull(A3.act_money_sum,0) as act_money_sum " query = query & " from " query = query & " ( " query = 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))+'개' as f_file_name, " query = query & " '' as p_name, " query = query & " '' as f_attach_date, p_sub_type, p_method_cd, p_child_sn, p_con_date_end, p_total_cost, p_cont_cost, p_sample " query = query & " FROM ( " query = query & " SELECT TPB.p_sn as p_sn, ISNULL(TPM.p_subject, TPB.p_subject) as p_subject, " query = query & " isnull(D.T_name, '') as p_depart, " query = query & " 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, " query = query & " 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(TPB.p_total_cost, '0') as p_total_cost, 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 /* 조사방법 맵핑 */ " query = query & " LEFT OUTER JOIN T_PROJECT_METHOD_CD TPMC ON TPM.p_method_cd = TPMC.p_method_cd /* 조사방법 이름 맵핑 */ " query = query & " LEFT OUTER JOIN V_Department D ON TPM.p_rsch_dept = D.before_t_cd1 /* 부서코드 */ " query = query & " LEFT OUTER JOIN V_CLIENT_COMP TCC ON TPB.p_cli_company_cd = TCC.p_cli_company_cd /* 회사코드 맵핑 */ " 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 /* 문서종류 맵핑 */ " query = query & " LEFT OUTER JOIN person PER ON TSA.f_input_user = PER.P_NO " query = query & " WHERE TPB.p_sn <> '' " '프로젝트 코드-------------------------------------------------- if p_sn <> "" then query = query & " AND (TPB.p_sn LIKE '%" & p_sn & "%' OR TPM.p_child_sn LIKE '%" & replace(p_sn, "_", "[_]") & "%') " end if '프로젝트 명-------------------------------------------------- if p_subject <> "" then query = query & " AND (TPM.p_subject LIKE '%" & replace(p_subject, "_", "[_]") & "%' OR TPB.p_subject LIKE '%" & replace(p_subject, "_", "[_]") & "%')" end if '조사내용(20170619) ------------------------------- if p_intention <> "" then query = query & " AND TPM.p_intention LIKE '%" & replace(p_intention, "_", "[_]") & "%' " end if '참여자 (20170619) -------------------------------- if new_p<>"" then query = query & new_p end if '부서-------------------------------------------------- if p_depart <> "" then query = query & " AND (TPB.p_depart_dep = '" & p_depart & "' " query = query & " OR per.p_no in (select p_no from person where p_depart = '" & p_depart & "' )) " '//-- 2020-10-20 16:49:55 end if if p_no <> "" then query = query & " AND per.p_no = '" & p_no & "' " '//-- 2020-10-20 16:49:55 end if '조사방법---------------------------------------------- if p_method <> "" then query = query & " AND TPM.p_method_cd = '" & p_method & "' " end if '클라이언트명------------------------------------------ if p_cli_company <> "" then query = query & " AND TCC.p_cli_company_nm LIKE '%" & p_cli_company & "%' " end if '카테고리-------------------------------------------- if p_category <> "" then query = query & " AND (TPB.p_category LIKE '%" & p_category & ",%' OR TPM.p_category LIKE '%" & p_category & ",%') " end if '업종-------------------------------------------- if p_client_type_cd <> "" then query = query & " AND TPM.p_client_type_cd = '" & p_client_type_cd & "' " end if if project_old_new = "old" then '업종을 구 프로젝트를 선택하면 신규프로젝트는 검색안하게. query = query & " AND TPM.p_sn = '' " end if '용역범위-------------------------------------------- if p_export_range <> "" then query = query & " AND TPM.p_export_range = '" & p_export_range & "' " end if '표본수 시작-------------------------------------------- if p_sample_st <> "" then query = query & " AND TPM.p_sample >= '" & p_sample_st & "' " end if '표본수 끝-------------------------------------------- if p_sample_ed <> "" then query = query & " AND TPM.p_sample <= '" & p_sample_ed & "' " end if '조사대상-------------------------------------------- if p_target_part <> "" then query = query & " AND TPM.p_sur_target = '" & p_target_part & "' " end if '조사지역-------------------------------------------- if p_area_part <> "" then query = query & " AND TPM.p_sur_area = '" & p_area_part & "' " end if '조사분류-------------------------------------------- if p_survey_part <> "" then query = query & " AND TPM.p_sur_part = '" & p_survey_part & "' " end if '실사수행-------------------------------------------- if p_field_process <> "" then query = query & " AND TPM.p_field_process = '" & p_field_process & "' " end if '계약기간-------------------------------------------- if p_decide_date_st <> "" and p_decide_date_ed <> "" then query = query & " AND TPM.p_decide_date Between '" & p_decide_date_st & "' AND '" & p_decide_date_ed & "' " end if '문서종류-------------------------------------------- if c_common_code <> "" then query = query & " AND TCCD.c_common_code = '" & c_common_code & "' " end if '파일명-------------------------------------------- if f_file_name <> "" then query = query & " AND TSA.f_file_name LIKE '%" & f_file_name & "%' " end if '수행계획서만 검색시 20170807 (추가) ------------------- if print_gubn <> "" then query = query & " and len(TPM.p_child_sn)=11 " end if query = query & " UNION ALL " '예전 프로젝트 검색 query = query & " SELECT p.p_sn as p_sn, p.p_subject as p_subject, " query = query & " isnull(d.T_Name, '') as p_depart, " query = query & " 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, " query = query & " '' as p_name, " query = query & " 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, '' as p_total_cost, p.p_budget as p_cont_cost, ISNULL(P.p_sample, '0') as p_sample " query = query & " FROM project P LEFT OUTER JOIN V_Department D ON p.p_depart = d.before_t_cd1 /* 부서코드 맵핑 */ " query = query & " LEFT OUTER JOIN p_method pm ON p.p_method = pm.code1 /* 조사방법 맵핑 */ " query = query & " LEFT OUTER JOIN Client C ON p.p_cli_company = C.c_code /* 회사이름 맵핑 */ " query = query & " LEFT OUTER JOIN T_SYSTEM_ATTACH TSA ON p.p_sn = TSA.f_p_sn AND TSA.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 /* 문서종류 맵핑 */ " query = query & " LEFT OUTER JOIN person PER ON TSA.f_input_user = PER.P_NO /* 문서 입력자 이름 */ " query = query & " WHERE p_sn <> '' " query = query & " AND LEFT(p_sn, 4) <> '9999' " '프로젝트 코드-------------------------------------------------- if p_sn <> "" then query = query & " AND p.p_sn LIKE '%" & replace(p_sn, "_", "[_]") & "%' " end if '프로젝트 명-------------------------------------------------- if p_subject <> "" then query = query & " AND p.p_subject LIKE '%" & replace(p_subject, "_", "[_]") & "%' " end if '조사내용(20170619) ------------------------------- if p_intention <> "" then query = query & " AND p.p_intention LIKE '%" & replace(p_intention, "_", "[_]") & "%' " end if '참여자 (20170619) -------------------------------- if old_p <> "" then query = query & old_p end if '부서-------------------------------------------------- if p_depart <> "" then query = query & " AND (p.p_depart = '" & p_depart & "' " query = query & " OR per.p_no in (select p_no from person where p_depart = '" & p_depart & "' )) " '//-- 2020-10-20 16:49:55 end if if p_no <> "" then query = query & " AND per.p_no = '" & p_no & "' " '//-- 2020-10-20 16:49:55 end if '조사방법---------------------------------------------- if p_method <> "" then if p_method = "1" then p_method = "11,17" elseif p_method = "2" then p_method = "13" elseif p_method = "3" then p_method = "15" elseif p_method = "4" then p_method = "16" elseif p_method = "5" then p_method = "24" elseif p_method = "6" then p_method = "6" elseif p_method = "7" then p_method = "21,22" elseif p_method = "8" then p_method = "20" elseif p_method = "9" then p_method = "19" elseif p_method = "10" then p_method = "18" elseif p_method = "11" then p_method = "25" elseif p_method = "12" then p_method = "12" elseif p_method = "13" then p_method = "27" elseif p_method = "14" then p_method = "26" elseif p_method = "15" then p_method = "15" elseif p_method = "16" then p_method = "16" elseif p_method = "17" then p_method = "23" end if query = query & " AND p.p_method IN (" & p_method & ") " end if '클라이언트명------------------------------------------ if p_cli_company <> "" then query = query & " AND c.c_name LIKE '%" & p_cli_company & "%' " end if '카테고리-------------------------------------------- if p_category <> "" then query = query & " AND p.p_category = '" & p_category & "' " end if '조사대상-------------------------------------------- if p_target_part <> "" then query = query & " AND p.p_target_part = '" & p_target_part & "' " end if '조사지역-------------------------------------------- if p_area_part <> "" then if p_area_part = "001" then p_area_part = "1,2" elseif p_area_part = "002" then p_area_part = "3" elseif p_area_part = "003" then p_area_part = "4" elseif p_area_part = "004" then p_area_part = "4" elseif p_area_part = "005" then p_area_part = "5" end if query = query & " AND p.p_area_part IN (" & p_area_part & ") " end if '조사분류-------------------------------------------- if p_survey_part <> "" then query = query & " AND p.p_survey_part = '" & CInt(p_survey_part) & "' " end if '실사수행-------------------------------------------- if p_field_process <> "" then query = query & " AND p.p_field_process = '" & CInt(p_field_process) & "' " end if '표본수 시작-------------------------------------------- if p_sample_st <> "" then query = query & " AND p.p_sample >= '" & p_sample_st & "' " end if '표본수 끝-------------------------------------------- if p_sample_ed <> "" then query = query & " AND p.p_sample <= '" & p_sample_ed & "' " end if '계약기간-------------------------------------------- if p_decide_date_st <> "" and p_decide_date_ed <> "" then query = query & " AND p.p_conv_date Between '" & p_decide_date_st & "' AND '" & p_decide_date_ed & "' " end if '문서종류-------------------------------------------- if c_common_code <> "" then query = query & " AND TCCD.c_common_code = '" & c_common_code & "' " end if '파일명-------------------------------------------- if f_file_name <> "" then query = query & " AND TSA.f_file_name LIKE '%" & f_file_name & "%' " end if '업종------------------------------------------------------ if p_types1 <> "" then query = query & "AND (" query = query & " p_types1 = '" & p_types1 & "' " if p_types2 <> "" then query = query & " AND p_types2 = '" & p_types2 & "' " end if if p_types3 <> "" then query = query & " AND p_types3 = '" & p_types3 & "' " end if query = query & ") " end if if project_old_new = "new" then '업종을 신규 프로젝트를 선택하면 구프로젝트는 검색안하게. query = query & " AND p_sn = '' " end if query = query & " ) T " 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, " query = query & " p_total_cost, p_cont_cost, p_sample" query = query & " ) A1 " query = query & " left join " '-- 수행계획서 query = query & " ( " query = query & " select " query = query & " p_child_sn, " query = query & " sum(cast(isnull(est_money,'0') as money)) as child_est_money_sum, " '-- 예산 query = query & " sum(cast(isnull(act_money,'0') as money)) as child_act_money_sum " '-- 사용 query = query & " from [dbo].[direct_cost] " query = query & " where del_yes_no='no' " query = query & " group by p_child_sn " query = query & " ) A2 " query = query & " on A1.p_child_sn=A2.p_child_sn " query = query & " left join " '-- 제안/등록 query = query & " ( " query = query & " select " query = query & " p_sn, " query = query & " sum(cast(isnull(est_money,'0') as money)) as est_money_sum, " '-- 예산 query = query & " sum(cast(isnull(act_money,'0') as money)) as act_money_sum " '-- 사용 query = query & " from [dbo].[direct_cost] " query = query & " where del_yes_no='no' " query = query & " group by p_sn " query = query & " ) A3 " query = query & " on A1.p_sn=A3.p_sn " dim psql : psql="" select case print_gubn case "pps" '-- 제안등록 검색시 psql="" psql=psql&" select A1.*, " psql=psql& " isnull(A3.est_money_sum,0) as est_money_sum, " psql=psql& " isnull(A3.act_money_sum,0) as act_money_sum " psql=psql& " from " psql=psql&" ( " psql=psql&" SELECT p_sn, PB.p_cli_company_cd, PB.p_client_type_cd, p_subject, PB.p_cli_per_cd, PB.p_state, E.p_cli_company_nm, CP.p_cli_depart, " psql=psql&" CP.p_cli_per_com_tel, CP.p_cli_per_nm, CP.p_cli_per_tel, CP.p_cli_per_email, " psql=psql&" case when p_contactor = '001' then '공개입찰' when p_contactor = '002' then '제안경쟁' when p_contactor = '003' then '가격입찰' " psql=psql&" when p_contactor = '004' then '수의계약' else '' end as p_contactor_label, " psql=psql&" CT.p_client_type_nm, ISNULL(STUFF(( SELECT ',' + p_method_nm FROM T_PROJECT_METHOD TPM LEFT " psql=psql&" OUTER JOIN " psql=psql&" T_PROJECT_METHOD_CD TPMC " psql=psql&" ON TPM.p_method_cd = TPMC.p_method_cd " psql=psql&" AND TPMC.p_method_yn='y' " psql=psql&" WHERE p_sn = PB.p_sn " psql=psql&" ORDER BY TPMC.p_method_cd " psql=psql&" FOR XML PATH ('')),1,1,''), '') AS p_method_str, " psql=psql&" p_memo, isnull(p_total_cost,0) as p_total_cost, p_cont_cost, p_decide_date, PB.p_input_dt, " psql=psql&" case when p_state='K' then '제안' " psql=psql&" when p_state='P' then '수주' " psql=psql&" when p_state='D' then '연기' " psql=psql&" when p_state='X' then '탈락' " psql=psql&" else '-' end as p_state_nm " psql=psql&" , PB.p_input_user, p_depart_dep, p_depart_team, " psql=psql&" p.p_name as p_name, p.p_depart, D.T_name " psql=psql&" FROM T_PROJECT_BASE PB INNER JOIN person P " psql=psql&" ON PB.p_input_user = P.P_NO " psql=psql&" left outer join V_CLIENT_COMP as E on PB.p_cli_company_cd = E.p_cli_company_cd " psql=psql&" left outer join V_CLIENT_PERSON as CP on PB.p_cli_company_cd = CP.p_cli_company_cd AND PB.p_cli_per_cd = CP.p_cli_per_cd " psql=psql&" left outer join T_CLIENT_TYPE_CD as CT on PB.p_client_type_cd = CT.p_client_type_cd " psql=psql&" INNER JOIN V_Department D ON PB.p_depart_dep = d.before_t_cd1 " psql=psql&" WHERE p_sn in ( " psql=psql&" select AA.p_sn from ("&query&") AA group by AA.p_sn " psql=psql&" ) " psql=psql&" ) A1 " psql=psql&" left join " '-- 제안/등록 psql=psql &" ( " psql=psql &" select " psql=psql &" p_sn, " psql=psql &" sum(cast(isnull(est_money,'0') as money)) as est_money_sum, " '-- 예산 psql=psql &" sum(cast(isnull(act_money,'0') as money)) as act_money_sum " '-- 사용 psql=psql &" from [dbo].[direct_cost] " psql=psql &" where del_yes_no='no' " psql=psql &" group by p_sn " psql=psql &" ) A3 " psql=psql &" on A1.p_sn=A3.p_sn " psql=psql &" where 1=1 " if pps_state_nm<>"" then '-- 제안등록 상태 검색시 psql=psql&" and A1.p_state='"&pps_state_nm&"' " end if psql=psql&" order by A1.p_sn desc " query=psql case "prj_ing" '-- 프로젝트 "수행계획서"만 검색시 query = query & " order by left(A1.p_sn,7) desc, right(A1.p_sn,2) desc " case else '-- "제안등록" + "수행계획서" query = query & " order by left(A1.p_sn,7) desc, right(A1.p_sn,2) desc " end Select rs.Open query, adoConn, 1 %>
<%if print_gubn="pps" then %> <%if command <> "excel" then 'excel export %> <% end if %> <% if rs.recordCount = 0 then %> <% end if for i = 1 to rs.recordCount %> <% xxlist="1" '-- excel 다운로드 체크용 rs.movenext next %>
    검색조건 숨기기
순번 제안번호 제안 명 고객사 고객부서 업종 조사방법 예상계약액 실제계약액 제안부서 상태 예산 직접비
검색 결과가 없습니다.
<%= i %> <%=rs("p_sn")%> <%if command <> "excel" then 'excel export %> ');" class="blue"><%=rs("p_subject")%> <%else%> <%=rs("p_subject")%> <%end if%> <%=rs("p_cli_company_nm")%> <%=rs("p_cli_depart")%> <%=rs("p_client_type_nm")%> <%=rs("p_method_str")%> <%=formatnumber(rs("p_cont_cost"),0)%> <%=formatnumber(rs("p_total_cost"),0)%> <%=rs("T_name")%> <%=rs("p_state_nm")%> <%=formatnumber(rs("est_money_sum"),0)%> <%=formatnumber(rs("act_money_sum"),0)%>
<%else %> <%if command <> "excel" then 'excel export %> <% end if %> <% if rs.recordCount = 0 then %> <% end if for i = 1 to rs.recordCount 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 %> <% if c_common_code <> "" then %> <% else %> <% end if %> <% If rs("p_child_sn") = "" Then %> <%else%> <%end if%> <% xxlist="1" '-- excel 다운로드 체크용 rs.movenext next end if %>
검색조건 숨기기
순번 프로젝트코드 프로젝트명 부서 등록인 조사방법 클라이언트 계약일 계약종료일 전체수주금액 단위계약액 샘플수 파일 예산 직접비
검색 결과가 없습니다.
<%= i %> <% If rs("p_child_sn") = "" Then %> <%=rs("p_sn")%> <% Else %> <%=rs("p_child_sn")%> <% End If %> <%if command <> "excel" then 'excel export %>','<%=rs("p_sub_type")%>','<%=rs("p_method_cd")%>','<%=rs("p_child_sn")%>')" class="blue"><%end if%> <%=rs("p_subject") %> <%if command <> "excel" then 'excel export %><%end if%> <%= rs("p_depart")%> <%= rs("p_name")%> <%= rs("p_method") %> <%= rs("p_cli_company") %> <%= rs("p_conv_date") %> <%= rs("p_con_date_end") %> <%= formatnumber(rs("p_total_cost"), 0) %> <%= p_cont_cost %> <%= rs("p_sample") %> <% If Session("teamplace") <> 10 Then %> <%if command <> "excel" then 'excel export %> ','<%=rs("f_id")%>')" class="blue"><%= rs("f_file_name") %> <%else%> <%= rs("f_file_name") %> <%end if%> <% else %> <%= rs("f_file_name") %> <%end if%> <%= rs("f_file_name") %><%=formatnumber(rs("est_money_sum"),0)%> <%=formatnumber(rs("act_money_sum"),0)%><%=formatnumber(rs("child_est_money_sum"),0)%> <%=formatnumber(rs("child_act_money_sum"),0)%>
<%end if%>
<% if command <> "excel" then%>
<% end if %>