Files
KIN/project/project_list2_dep.asp
2025-09-29 17:55:08 +09:00

2661 lines
78 KiB
Plaintext

<!-- #include virtual = "lib/config.asp" -->
<%
set rsp = server.CreateObject("ADODB.RECORDSET")
dim tmp_depart '연구부서 list배열
dim method() '조사방법
dim Sample_range(6,3) '샘플수
dim field_rank(3,2) '실사 난이도
dim category '카테고리
dim types '업종
dim tmp_field_admin
Dim tmp_area_part(5)
Dim tmp_view_grade(5, 2)
Dim tmp_survey_part(2)
Dim tmp_survey_times(10)
Dim tmp_field_process(3)
'경영지원실 실사경비 담당(경영전략실)
if int(Session("Depart_Code")) = 18 then
tmp_field_admin = "1"
else
tmp_field_admin = "0"
end if
tmp_area_part(1) = "서울"
tmp_area_part(2) = "수도권"
tmp_area_part(3) = "광역시"
tmp_area_part(4) = "전국"
tmp_area_part(5) = "기타"
tmp_view_grade(1, 1) = "1"
tmp_view_grade(2, 1) = "2"
tmp_view_grade(2, 2) = "연구부서"
tmp_view_grade(3, 1) = "3"
tmp_view_grade(4, 1) = "4"
tmp_view_grade(4, 2) = "부서장급"
tmp_view_grade(5, 1) = "5"
tmp_view_grade(5, 2) = "임원등급"
tmp_survey_part(1) = "리스트"
tmp_survey_part(2) = "비리스트"
tmp_survey_times(1) = "10분"
tmp_survey_times(2) = "20분"
tmp_survey_times(3) = "30분"
tmp_survey_times(4) = "40분"
tmp_survey_times(5) = "50분"
tmp_survey_times(6) = "1시간"
tmp_survey_times(7) = "1시간 30분"
tmp_survey_times(8) = "2시간"
tmp_survey_times(9) = "2시간 30분"
tmp_survey_times(10)= "3시간"
tmp_field_process(1) = "자체"
tmp_field_process(2) = "외주"
tmp_field_process(3) = "자체&외주"
tmp_colspan = 5
p_sn = request("p_sn")
teamname = request("teamname")
'Response.Write today & "<BR>"
'------------------------------------------------------
'연구부서 list목록
q = "SELECT max(d_mcode) as max_code "
q = q & "FROM Depart "
rsp.Open q, adoConn, 1
tmp_max = rsp("max_code")
rsp.Close
query = "SELECT * "
query = query & "FROM Depart "
query = query & "WHERE d_mcode>='0' "
query = query & " AND d_yes_no='Y' "
query = query & "ORDER BY d_mcode ASC "
rsp.open query, adoConn, 1
redim tmp_depart(int(tmp_max),2)
for i = 1 to int(rsp.RecordCount)
tmp_depart(int(rsp("d_mcode")),1) = rsp("d_mcode")
tmp_depart(int(rsp("d_mcode")),2) = rsp("d_mname_shot")
rsp.MoveNext
next
rsp.close
'------------------------------------------------------
'조사방법
query = "select * from p_Method order by code1 "
rsp.Open query, adoConn, 1
i = rsp.RecordCount
redim method(i,2)
i=0
method(0,0) = request("p_method") '선택된 조사방법
method(0,1) = "0"
method(0,2) = "== 전 체 =="
do while not rsp.EOF
i = i + 1
method(i,1) = rsp("code1")
method(i,2) = rsp("name1")
rsp.MoveNext
loop
rsp.Close
'------------------------------------------------------
''샘플수의 범위
Sample_range(0,0) = request("p_sample")
Sample_range(0,1) = "0"
Sample_range(0,2) = "&nbsp;&nbsp;&nbsp;== 전 체 =="
Sample_range(1,1) = "1"
Sample_range(1,2) = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;~ &nbsp;500"
Sample_range(1,3) = "500"
Sample_range(2,1) = "2"
Sample_range(2,2) = "&nbsp;&nbsp;&nbsp;501 ~ 1,000"
Sample_range(2,3) = "1,000"
Sample_range(3,1) = "3"
Sample_range(3,2) = "1,001 ~ 1,500"
Sample_range(3,3) = "1,500"
Sample_range(4,1) = "4"
Sample_range(4,2) = "1,501 ~ 2,000"
Sample_range(4,3) = "2,000"
Sample_range(5,1) = "5"
Sample_range(5,2) = "2,001 ~ 2,500"
Sample_range(5,3) = "2,500"
Sample_range(6,1) = "6"
Sample_range(6,2) = "2,501 ~ "
Sample_range(6,3) = "2,501"
'------------------------------------------------------
'실사 난이도별
field_rank(0,0) = request("p_field_rank")
field_rank(0,1) = "0"
field_rank(0,2) = "== 전 체 =="
field_rank(1,1) = "하"
field_rank(1,2) = "하"
field_rank(2,1) = "중"
field_rank(2,2) = "중"
field_rank(3,1) = "상"
field_rank(3,2) = "상"
'------------------------------------------------------
'category list
query = "SELECT * "
query = query & "FROM p_category "
query = query & "ORDER BY sort_key "
rsp.Open query, adoConn, 1
redim category(int(rsp.RecordCount), 2)
for i = 1 to rsp.RecordCount
category(i,1) = rsp("code1")
category(i,2) = rsp("name1")
rsp.MoveNext
next
rsp.Close
'------------------------------------------------------
'======================================================
'검색 query 만들기
'======================================================
query = "SELECT * "
query = query & "FROM project "
query = query & "WHERE p_sn='" & p_sn & "' "
rsc.Open query, adoConn, 1
if rsc.RecordCount > 0 then
if method(0, 0) <> "" then
tmp_method = method(0, 0)
else
tmp_method = rsc("p_method")
end if
'전산부서까지 프로젝트 등록이 완료 되었는지 확인함 (tmp_regok)
'완료되지 않았다면 로그인자가 어느 화면을 봐야 하는지 판단함 (tmp_view)
if trim(rsc("p_dper")) <> "" then
tmp_regok = 1 '프로젝트 3단계(연구,실사,전사) 등록 완료
tmp_view = 0 '전체를 보여줌
else
tmp_regok = 0 '프로젝트 등록중
query = "SELECT * "
query = query & "FROM depart "
query = query & "WHERE d_code = '" & Session("Depart_Code") & "' "
rsp.Open query, adoConn, 1
if rsp.RecordCount > 0 then
tmp_view = rsp("d_mcode") '해당부서를 가져옴
else
tmp_view = 99 '99는 기본정보만 볼 수 있음
end if
rsp.Close
end if
if tmp_admin_chk = "1" then
tmp_view = 0 '개발자라면 전체를 볼 수 있게 함
end if
query = "SELECT * "
query = query & "FROM depart "
query = query & "WHERE d_code = '" & Session("Depart_Code") & "' "
rsp.Open query, adoConn, 1
if rsp.RecordCount > 0 then
tmp_login_code = rsp("d_mcode") '해당부서를 가져옴
else
tmp_login_code = "0"
end if
rsp.Close
if request("p_types1") <> "" then
p_types1 = request("p_types1")
else
p_types1 = rsc("p_types1")
end if
if request("p_types2") <> "" then
p_types2 = request("p_types2")
else
p_types2 = rsc("p_types2")
end if
if request("p_types3") <> "" then
p_types3 = request("p_types3")
else
p_types3 = rsc("p_types3")
end if
y = request("y")
if y = "1" then
p_types2 = "0"
p_types3 = "0"
elseif y = "2" then
p_types3 = "0"
end if
''12년도와 13년도의 부서가 다르기에...(2013년 4월 16일)
if mid(p_sn,1,2) = "12" then
if cint(tmp_login_code) >= 31 and cint(tmp_login_code) <= 33 then
tmp_login_code = "1"
tmp_view = "1"
elseif cint(tmp_login_code) >= 35 and cint(tmp_login_code) <= 36 then
tmp_login_code = "2"
tmp_view = "2"
end if
end if
%>
<html>
<head>
<title><%=GNB_TITLE%></title>
<link rel="stylesheet" type="text/css" href="/css/basic.css">
</head>
<script language=javascript>
function modit(z,x) {
var url = 'project_list2_dep.asp?p_sn=' + z + '&teamname=' + x;
window.open(url,'','left=0,top=0,width=800,height=800,scrollbars=yes,resizable=yes')
}
function delit()
{
if (confirm("삭제한 프로젝트는 되돌릴 수 없습니다. 정말 삭제하시겠습니까?"))
{
document.pms.action = "project_list2_del_ok.asp";
document.pms.submit();
}
else
{
alert("취소되었습니다.")
}
}
function openit(a, b) {
if (b == 1)
{
var url = "project_list2_fileList_2014.asp?p_sn="+a;
var tmp_height = 600;
}
window.open(url,'','left=0,top=0,width=1050,height='+tmp_height+',scrollbars=yes,resizable=yes')
}
function search(theURL,winName,features) {
if (features == 'x') {
var width_size = screen.width - 770;
var height_size= screen.height;
features = "left=" + width_size + " top=5 width=770 height=500 scrollbars=yes statbar=no";
}
window.open(theURL,winName,features);
}
function autoday(txt) {
today = new Date();
if (txt == "day")
{
if (document.pms.today.checked == true) {
document.pms.toyear.checked = false;
month = today.getMonth() + 1;
if (month < 10) {
month = '0' + month;
} else {
month = month;
}
document.pms.p_reg_date_st.value = document.pms.p_reg_date_ed.value = today.getYear() + '-' + month;
}
else {
document.pms.p_reg_date_st.value = '';
document.pms.p_reg_date_ed.value = '';
}
}else{
if (document.pms.toyear.checked == true) {
document.pms.today.checked = false;
document.pms.p_reg_date_st.value = today.getYear() + '-' + '01'
document.pms.p_reg_date_ed.value = today.getYear() + '-' + '12';
}
else {
document.pms.p_reg_date_st.value = '';
document.pms.p_reg_date_ed.value = '';
}
}
}
function clsit(a) {
if (a == 1)
{
document.pms.p_reg_date_st.value = '';
document.pms.p_reg_date_ed.value = '';
document.pms.today.checked = false;
document.pms.toyear.checked = false;
}
else if (a == 2)
{
document.pms.p_cli_code.value = '';
document.pms.p_cli_company.value = '';
}
}
function chkit(txt) {
var f = document.pms;
if ((f.p_reg_date_st.value != '') || (f.p_reg_date_ed.value != '')) {
if ((f.p_reg_date_st.value == '') || (f.p_reg_date_ed.value == '')) {
alert('기간을 선택해 주십시오');
return false;
}
if (f.p_reg_date_st.value > f.p_reg_date_ed.value) {
alert('기간이 잘못 선택 되었습니다');
f.p_reg_date_ed.value = '';
return false;
}
}
if (txt == "1")
{
f.action = 'project_search.asp?s=1';
}
else
{
f.action = 'project_search2009.asp?w=1&command=excel';
}
if (confirm('조건을 채택하지 않으면 검색시간이 오래걸릴 수 있습니다')) {
f.submit();
}
}
function setFormatPrice(z) {
if (z == 1) {
strNum = document.pms.p_budget.value;
}
else if (z == 2)
{
strNum = document.pms.p_budget_chk.value;
}
strNum = strNum.replace(/,/g, "");
var result = '';
for(var i=0; i<strNum.length; i++) {
if(i%3==0 && i!=0) result = ',' + result;
result = strNum.charAt(strNum.length-(i+1)) + result;
}
if (z == 1) {
document.pms.p_budget.value = result;
}
else if (z == 2)
{
document.pms.p_budget_chk.value = result;
}
}
function reloadit(a)
{
if (a == 1 || a == 2)
{
document.pms.action = "project_list2_dep.asp?y="+a;
}
else
{
if (document.pms.p_method.value == "")
{
alert("조사방법을 선택해 주세요");
document.pms.p_method.focus();
return false;
}
document.pms.action = "project_list2_dep.asp";
}
document.pms.submit();
}
function autofnc()
{
//### 20100204 수정 : 연구부서 확정 전에 영향도를 평가하도록 함
var p_rsch_1p = 0;
var p_rsch_2p = 0;
var p_rsch_3p = 0;
var p_rsch_4p = 0;
if (document.pms.p_rsch_1p.value != "")
{
p_rsch_1p = document.pms.p_rsch_1p.value;
}
<%
if rsc("p_rsch_2") <> "" then
%>
if (document.pms.p_rsch_2p.value != "")
{
p_rsch_2p = document.pms.p_rsch_2p.value;
}
<%
end if
if rsc("p_rsch_3") <> "" then
%>
if (document.pms.p_rsch_3p.value != "")
{
p_rsch_3p = document.pms.p_rsch_3p.value;
}
<%
end if
if rsc("p_rsch_4") <> "" then
%>
if (document.pms.p_rsch_4p.value != "")
{
p_rsch_4p = document.pms.p_rsch_4p.value;
}
<%
end if
%>
if (parseInt(p_rsch_1p) + parseInt(p_rsch_2p) + parseInt(p_rsch_3p) + parseInt(p_rsch_4p) == 100)
{
}
else
{
alert('영향도 평가를 선택해 주세요');
document.pms.p_rsch_1p.focus();
//document.pms.p_reg_rsch[0].checked;
return false;
}
if (document.pms.p_reg_rsch[0].checked == true) {
document.pms.all.btn[0].style.display = '';
document.pms.all.btn[0].style.cursor = 'hand';
document.pms.all.btn[1].style.display = 'none';
}
else {
document.pms.all.btn[0].style.display = 'none';
document.pms.all.btn[1].style.display = '';
document.pms.all.btn[1].style.cursor = 'hand';
}
}
function onfile(theURL,winName,features) {
window.open(theURL,winName,features);
}
</script>
<script src="/lib/function.js" type="text/javascript1.3"></script>
<body topmargin="10" leftmargin="10">
<form name="pms" method="post">
<table border="0" cellspacing="0" cellpadding="4" width="800" style="border-collapse=collapse;">
<tr>
<td width="20%" bgcolor="#BBCEFD" height="2"></td>
<td width="80%" bgcolor="#DDDDDD" height="2" colspan="3"></td>
</tr>
<tr height="26">
<td width="20%" align="center" >프로젝트 번호</td>
<td width="30%" >
<b class="tahoma_blue"><%=rsc("p_sn")%></b>
<input type="hidden" name="p_sn" value="<%=rsc("p_sn")%>">
</td>
<td width="20%" align="center" >프로젝트 명</td>
<td width="30%" >
<input class="input tahoma_blue" type="text" name="p_subject" size="40" value="<%=rsc("p_subject")%>">
</td>
</tr>
<tr height="26">
<td align="center" >컨택일정</td>
<td >
<input class="input" type="text" name="p_contact_date" size="10" readonly value="<%=rsc("p_contact_date")%>">
<!--input type="button" value="선택" onClick="winopn('/include/calendar.html?actval=p_contact_date')" style="cursor:pointer"-->
</td>
<td align="center" >발생경로</td>
<td >
<select name="p_contactor">
<option value="">선택</option>
<%
query = "SELECT * "
query = query & "FROM person "
query = query & "WHERE p_depart <= 10 and p_admin = 1 and p_resign = 0 "
query = query & "ORDER BY p_order "
rsp.Open query, adoConn, 1
for i = 1 to rsp.RecordCount
%>
<option value="<%=rsp("p_no")%>" <% if int(rsc("p_contactor")) = rsp("p_no") then %> selected <% end if %>><%=rsp("p_name")%></option>
<%
rsp.MoveNext
next
rsp.Close
%>
</select>
</td>
</tr>
<tr height="26">
<td align="center" >클라이언트 명</td>
<td >
<%
query = "SELECT * "
query = query & "FROM [Client] "
query = query & "WHERE c_code='" & rsc("p_cli_company") & "' "
rsp.Open query, adoConn, 1
if rsp.RecordCount > 0 then
tmp_cli_company = rsp("c_name")
end if
rsp.Close
%>
<input class="input" type="text" name="p_cli_company" size="20" readonly value="<%=tmp_cli_company%>">
<input type="hidden" name="p_cli_code" value="<%=rsc("p_cli_company")%>">
</td>
<td align="center" >클라이언트 구분</td>
<td >
<select name="p_cli_class">
<option value="">선택</option>
<option value="신규" <% if rsc("p_cli_class") = "신규" then %> selected <% end if %>>신규</option>
<option value="기존" <% if rsc("p_cli_class") = "기존" then %> selected <% end if %>>기존</option>
</select>
</td>
</tr>
<tr height="26">
<td align="center" >클라이언트 담당자</td>
<td >
<%
query = "SELECT * "
query = query & "FROM Client_People "
query = query & "WHERE c_code='" & rsc("p_cli_company") & "' "
query = query & " AND cp_code='" & rsc("p_cp_code") & "' "
'Response.Write query & "<BR>"
rsp.Open query, adoConn, 1
if rsp.RecordCount > 0 then
tmp_cp_name = rsp("cp_name")
tmp_cli_depart = rsp("cp_depart")
end if
rsp.Close
%>
<input class="input" type="text" name="p_cli_name" size="10" value="<%=tmp_cp_name%>" readonly readonly onClick="search('cp_search.asp?p_cli_code='+document.pms.p_cli_code.value+'&v=1','ClientPeopleSearch','width=390,height=381,left=100,top=50,scrollbars=yes')" style="cursor:pointer">
<input type="hidden" name="cp_code" value="<%=rsc("p_cp_code")%>">
</td>
<td align="center" >클라이언트 타입</td>
<td >
<select name="p_cli_type2" disabled>
<option value="">자동선택</option>
<%
query = "SELECT * "
query = query & "FROM Client_Type "
rsp.Open query, adoConn, 1
for i = 1 to rsp.RecordCount
%>
<option value="<%=rsp("c_type_code")%>" <% if rsp("c_type_code") = rsc("p_cli_type") then %> selected <% end if %>><%=rsp("c_type_name")%></option>
<%
rsp.MoveNext
next
rsp.Close
%>
</select>
<input type="hidden" name="p_cli_type" value="<%=rsc("p_cli_type")%>">
</td>
</tr>
<tr height="26">
<!--td align="center" >회의 장소</td>
<td >
</td-->
<td align="center" >클라이언트 부서</td>
<td colspan=3>
<input class="input" type="hidden" name="p_contact_place" size="20" maxlength="50" value="<%=rsc("p_contact_place")%>" readonly title ="회의장소">
<input class="input" type="hidden" name="p_contact_content" size="20" maxlength="50" value="<%=ViewWord(rsc("p_contact_content"))%>" readonly title ="회의 내용">
<input class="input" type="text" name="p_cli_depart" size="25" value="<%=tmp_cli_depart%>" readonly>
</td>
</tr>
</table>
<p style="margin-top:8pt;margin-bottom:8pt;"></p>
<table border="0" cellspacing="0" cellpadding="4" width="800" style="border-collapse=collapse;">
<tr>
<td width="20%" bgcolor="#BBCEFD" height="2"></td>
<td width="30%" bgcolor="#DDDDDD" height="2"></td>
<td width="20%" bgcolor="#BBCEFD" height="2"></td>
<td width="30%" bgcolor="#DDDDDD" height="2"></td>
</tr>
<tr height="26">
<td align="center" >제안일정</td>
<td >
<input class="input" type="text" name="p_prop_date" size="10" readonly value="<%=rsc("p_prop_date")%>">
<!--input type="button" value="선택" onClick="winopn('/include/calendar.html?actval=p_prop_date')" style="cursor:pointer"-->
</td>
<td align="center" >조사목적</td>
<td >
<input class="input" type="text" name="p_intention" size="25" maxlength="100" value="<%=rsc("p_intention")%>" readonly style="width:100%">
</td>
</tr>
<tr height="26">
<td align="center" >업종</td>
<td colspan="3" >
<select name="p_types1" onChange="reloadit('1')">
<option value="">선택</option>
<%
q = "SELECT * "
q = q & "FROM p_types "
q = q & "WHERE t_type = '1' "
q = q & "ORDER BY t_sn "
rsp.Open q, adoConn, 1
if rsp.RecordCount > 0 then
for i = 1 to rsp.RecordCount
%>
<option value="<%=rsp("t_code1")%>" <% if int(rsp("t_code1")) = int(p_types1) then %> selected <% end if %>><%=rsp("t_name")%></option>
<%
rsp.MoveNext
next
end if
rsp.Close
%>
</select>
<%
if p_types1 <> "" then
%>
&nbsp;&nbsp;&nbsp;
<select name="p_types2" onChange="reloadit('2')">
<option value="">선택</option>
<%
q = "SELECT * "
q = q & "FROM p_types "
q = q & "WHERE t_type = '2' "
q = q & " AND t_code1 = '" & p_types1 & "' "
q = q & "ORDER BY t_sn "
rsp.Open q, adoConn, 1
if rsp.RecordCount > 0 then
for i = 1 to rsp.RecordCount
%>
<option value="<%=rsp("t_code2")%>" <% if int(rsp("t_code2")) = int(p_types2) then %> selected <% end if %>><%=rsp("t_name")%></option>
<%
rsp.MoveNext
next
end if
rsp.Close
%>
</select>
<%
if p_types2 <> "" and p_types2 <> "0" then
%>
&nbsp;&nbsp;&nbsp;
<select name="p_types3">
<option value="">선택</option>
<%
q = "SELECT * "
q = q & "FROM p_types "
q = q & "WHERE t_type = '3' "
q = q & " AND t_code1 = '" & p_types1 & "' "
q = q & " AND t_code2 = '" & p_types2 & "' "
q = q & "ORDER BY t_sn "
rsp.Open q, adoConn, 1
if rsp.RecordCount > 0 then
for i = 1 to rsp.RecordCount
%>
<option value="<%=rsp("t_code3")%>" <% if int(rsp("t_code3")) = int(p_types3) then %> selected <% end if %>><%=rsp("t_name")%></option>
<%
rsp.MoveNext
next
end if
rsp.Close
%>
<option value="99" <% if int(p_types3) = 99 then %> selected <% end if %>>기타</option>
</select>
<%
end if 'if p_types2 <> "" then
%>
<%
end if 'if p_types1 <> "" then
%>
</td>
</tr>
</table>
<p style="margin-top:8pt;margin-bottom:8pt;margin-left:10pt;">
<%
if rsc("p_reg_mana") = "1" then
%>
현재 프로젝트 최종완료 중 입니다
<%
elseif rsc("p_reg_rsch") = "1" then
%>
현재 프로젝트 완료 중 입니다
<%
elseif tmp_regok = 1 then
%>
현재 프로젝트 진행 중 입니다.
<%
else
if trim(rsc("p_sv")) <> "" then
'tmp_txt = "전산부서"
tmp_txt = "정보분석팀"
tmp_reg = 3
elseif trim(rsc("p_rsch_1")) <> "" then
tmp_txt = "실사부서"
tmp_reg = 2
else
tmp_txt = "연구부서"
tmp_reg = 1
end if
%>
현재 <font color="red"><%=tmp_txt%></font> 등록 진행 중 입니다.
<%
end if
%>
</p>
<table border="0" cellspacing="0" cellpadding="4" width="800" style="border-collapse=collapse;">
<tr>
<td width="20%" bgcolor="#BBCEFD" height="2"></td>
<td width="80%" bgcolor="#DDDDDD" height="2" colspan="3"></td>
</tr>
<%
if tmp_view = int(rsc("p_depart")) or tmp_admin_chk = "1" or tmp_regok = 1 then '로그인자가 해당연구원이거나 개발자라면 보여짐, 또는 3개부서 등록 완료 되면..
%>
<tr height="26">
<td align="center" >조사방법</td>
<td colspan="3" >
<select name="p_method" onChange="reloadit()">
<option value="">선택</option>
<%
q = "SELECT * "
q = q & "FROM p_method "
q = q & "ORDER BY name1 "
rsp.Open q, adoConn, 1
for i = 1 to cint(rsp.RecordCount)
%>
<option value="<%=rsp("code1")%>" <% if int(tmp_method) = int(rsp("code1")) then %> selected <% end if %>><%=rsp("name1")%></option>
<%
rsp.MoveNext
next
rsp.Close
%>
</select>
</td>
</tr>
<tr height="26">
<td align="center" >담당연구원</td>
<td colspan="3" >
&nbsp;정 :
<select name="p_rsch_1">
<option value="">담당자선택</option>
<%
tmp_name = ""
if rsc("p_rsch_1") <> "" then
q = "SELECT * "
q = q & "FROM Person "
q = q & "WHERE p_no='" & rsc("p_rsch_1") & "' "
rsp.Open q, adoConn, 1
tmp_name = rsp("p_name")
rsp.close
end if
tmp_slt = 0
q2 = "SELECT * "
q2 = q2 & "FROM Person "
q2 = q2 & "WHERE p_depart='" & Session("Depart_Code") & "' "
q2 = q2 & "AND p_resign='0' "
rsp.Open q2, adoConn, 1
if rsp.RecordCount > 0 then
for i = 1 to rsp.RecordCount
%>
<option value="<%=rsp("p_no")%>"
<%
if rsp("p_name") = tmp_name then
Response.Write "selected "
tmp_slt = 1
end if
%>
><%=rsp("p_name")%></option>
<%
rsp.MoveNext
next
end if
rsp.Close
if rsc("p_rsch_1") <> "" and tmp_slt <> 1 then
%>
<option value="<%=rsc("p_rsch_1")%>" selected><%=tmp_name%></option>
<% end if %>
</select>
&nbsp;부 :
<select name="p_rsch_2">
<option value="">담당자선택</option>
<%
tmp_name = ""
if rsc("p_rsch_2") <> "" then
q = "SELECT * "
q = q & "FROM Person "
q = q & "WHERE p_no='" & rsc("p_rsch_2") & "' "
rsp.Open q, adoConn, 1
tmp_name = rsp("p_name")
rsp.close
end if
tmp_slt = 0
rsp.Open q2, adoConn, 1
if rsp.RecordCount > 0 then
for i = 1 to rsp.RecordCount
%>
<option value="<%=rsp("p_no")%>"
<%
if rsp("p_name") = tmp_name then
Response.Write "selected "
tmp_slt = 1
end if
%>
><%=rsp("p_name")%></option>
<%
rsp.MoveNext
next
end if
rsp.Close
if rsc("p_rsch_2") <> "" and tmp_slt <> 1 then
%>
<option value="<%=rsc("p_rsch_2")%>" selected><%=tmp_name%></option>
<% end if %>
</select>
&nbsp;보1 :
<select name="p_rsch_3">
<option value="">담당자선택</option>
<%
tmp_name = ""
if rsc("p_rsch_3") <> "" then
q = "SELECT * "
q = q & "FROM Person "
q = q & "WHERE p_no='" & rsc("p_rsch_3") & "' "
rsp.Open q, adoConn, 1
tmp_name = rsp("p_name")
rsp.close
end if
tmp_slt = 0
rsp.Open q2, adoConn, 1
if rsp.RecordCount > 0 then
for i = 1 to rsp.RecordCount
%>
<option value="<%=rsp("p_no")%>"
<%
if rsp("p_name") = tmp_name then
Response.Write "selected "
tmp_slt = 1
end if
%>
><%=rsp("p_name")%></option>
<%
rsp.MoveNext
next
end if
rsp.Close
if rsc("p_rsch_3") <> "" and tmp_slt <> 1 then
%>
<option value="<%=rsc("p_rsch_3")%>" selected><%=tmp_name%></option>
<% end if %>
</select>
&nbsp;보2 :
<select name="p_rsch_4">
<option value="">담당자선택</option>
<%
tmp_name = ""
if rsc("p_rsch_4") <> "" then
q = "SELECT * "
q = q & "FROM Person "
q = q & "WHERE p_no='" & rsc("p_rsch_4") & "' "
rsp.Open q, adoConn, 1
tmp_name = rsp("p_name")
rsp.close
end if
tmp_slt = 0
rsp.Open q2, adoConn, 1
if rsp.RecordCount > 0 then
for i = 1 to rsp.RecordCount
%>
<option value="<%=rsp("p_no")%>"
<%
if rsp("p_name") = tmp_name then
Response.Write "selected "
tmp_slt = 1
end if
%>
><%=rsp("p_name")%></option>
<%
rsp.MoveNext
next
end if
rsp.Close
'만약 퇴사자이거나 팀을 옮겨 해당DB 리스트에 없을 경우 추가함
if rsc("p_rsch_4") <> "" and tmp_slt <> 1 then
%>
<option value="<%=rsc("p_rsch_4")%>" selected><%=tmp_name%></option>
<% end if %>
</select>
</td>
</tr>
<tr height="26">
<td align="center" >카테고리</td>
<td width="80%" colspan="3">
<select name="p_category">
<option value="">선택</option>
<%
q = "SELECT * "
q = q & "FROM p_category "
q = q & "ORDER BY sort_key "
rsp.Open q, adoConn, 1
if rsp.RecordCount > 0 then
for i = 1 to rsp.RecordCount
%>
<option value="<%=rsp("code1")%>"
<% if rsc("p_category") <> "" then
if int(rsc("p_category")) = int(rsp("code1")) then %>
selected
<% end if
end if %>><%=rsp("name1")%></option>
<%
rsp.MoveNext
next
end if
rsp.Close
%>
</select>
<%
if tmp_admin_chk = "1" then
%>
&nbsp;&nbsp;&nbsp;
<select name="p_category2">
<option value="">선택</option>
<%
q = "SELECT * "
q = q & "FROM p_category "
q = q & "ORDER BY sort_key "
rsp.Open q, adoConn, 1
if rsp.RecordCount > 0 then
for i = 1 to rsp.RecordCount
%>
<option value="<%=rsp("code1")%>"
<% if rsc("p_category") <> "" then
if int(rsc("p_category2")) = int(rsp("code1")) then %>
selected
<% end if
end if %>><%=rsp("name1")%></option>
<%
rsp.MoveNext
next
end if
rsp.Close
%>
</select>
&nbsp;&nbsp;&nbsp;
<select name="p_category3">
<option value="">선택</option>
<%
q = "SELECT * "
q = q & "FROM p_category "
q = q & "ORDER BY sort_key "
rsp.Open q, adoConn, 1
if rsp.RecordCount > 0 then
for i = 1 to rsp.RecordCount
%>
<option value="<%=rsp("code1")%>"
<% if rsc("p_category") <> "" then
if int(rsc("p_category3")) = int(rsp("code1")) then %>
selected
<% end if
end if %>><%=rsp("name1")%></option>
<%
rsp.MoveNext
next
end if
rsp.Close
%>
</select>
<%
end if
%>
</td>
</tr>
<tr height="26">
<td align="center" >표본수</td>
<td width="" >
<input class="input" type="text" name="p_sample" size="20" onkeypress="if (event.keyCode < 48 || event.keyCode > 57) event.returnValue = false;"
<%if isnull(rsc("p_sample")) then%>
value="1"
<%elseif clng(rsc("p_sample")) = 0 then %>
value="1"
<%else%>
value="<%=rsc("p_sample")%>"
<%end if%>
>
</td>
<% if tmp_method <> "15" and tmp_method <> "16" then %>
<td align="center" >표본추출방법</td>
<td width="" >
<input class="input" type="text" name="p_extract" size="20" value="<%=rsc("p_extract")%>" style="width:100%;">
</td>
<% end if %>
</tr>
<tr height="26">
<td align="center" >계약일자</td>
<td width="30%" >
<input class="input" type="text" name="p_conv_date" size="10" value="<%=rsc("p_conv_date")%>" readonly onClick="winopn('/include/calendar.html?actval=p_conv_date')" style="cursor:pointer">
<!--input type="button" value="선택" onClick="winopn('/include/calendar.html?actval=p_conv_date')" style="cursor:pointer"-->
</td>
<td align="center" >계약액</td>
<td width="30%" >
<%
if rsc("p_budget") <> "" then
tmp_len = len(rsc("p_budget"))
for i = 1 to int(tmp_len)
if i mod 3 = 1 and i <> 1 then
tmp_text = "," & tmp_text
end if
tmp_text = left(right(rsc("p_budget"),i), 1) & tmp_text
next
end if
if clng(tmp_text) = 0 then
tmp_text=1
end if
%>
<input class="input" type="text" name="p_budget" size="15" value="<%=tmp_text%>" onKeyUp="setFormatPrice('1')" style="text-align:right;" onkeypress="if (event.keyCode < 48 || event.keyCode > 57) event.returnValue = false;"> 원 (<font class="tahoma_red">VAT 별도</font>)
</td>
</tr>
<tr height="26">
<td align="center" >조사대상</td>
<td colspan="3" >
<select name="p_target_part">
<option value="">분류</option>
<%
query = "SELECT * "
query = query & "FROM p_target "
query = query & "WHERE t_type = 'p' "
rsp.Open query, adoConn, 1
if rsp.RecordCount > 0 then
for i = 1 to rsp.RecordCount
%>
<option value="<%=rsp("t_code")%>" <% if rsc("p_target_part") = rsp("t_code") then %> selected <% end if %>><%=rsp("t_name")%></option>
<%
rsp.MoveNext
next
end if
rsp.Close
%>
</select>
&nbsp;
<input class="input" type="text" name="p_target_text" size="69" value="<%=rsc("p_target_text")%>">
</td>
</tr>
<tr height="26">
<td align="center" >조사지역</td>
<td colspan="3" >
<select name="p_area_part">
<option value="">분류</option>
<%
for i = 1 to ubound(tmp_area_part)
if tmp_area_part(i) <> "" then
%>
<option value="<%=i%>" <% if i = rsc("p_area_part") then %> selected <% end if %>><%=tmp_area_part(i)%></option>
<%
end if
next
%>
</select>
&nbsp;
<input class="input" type="text" name="p_area" size="69" value="<%=rsc("p_area")%>">
</td>
</tr>
<tr>
<td colspan="4" class="yellow" align="center" style="padding:2 0 2 0;">프로젝트 관련 기간설정</td>
</tr>
<tr height="26">
<td align="center" >계약기간</td>
<td >
<input class="input" type="text" name="p_convdate_st" size="10" readonly value="<%=rsc("p_convdate_st")%>" onClick="winopn('/include/calendar.html?actval=p_convdate_st')" style="cursor:pointer">
<!--input type="button" value="선택" onClick="winopn('/include/calendar.html?actval=p_convdate_st')" style="cursor:pointer"-->
-
<input class="input" type="text" name="p_convdate_end" size="10" readonly value="<%=rsc("p_convdate_end")%>" onClick="winopn('/include/calendar.html?actval=p_convdate_end')" style="cursor:pointer">
<!--input type="button" value="선택" onClick="winopn('/include/calendar.html?actval=p_convdate_end')" style="cursor:pointer"-->
</td>
<td align="center" >계약기간(실)</td>
<td >
<%
if not isnull(rsc("p_convdate_st2")) and rsc("p_convdate_st2") <> "" then
Response.Write "<font class='tahoma'>" & rsc("p_convdate_st2") & " - " & rsc("p_convdate_end2") & "</font>"
end if
%>
</td>
</tr>
<tr height="26">
<td align="center" >보고서 작성기간</td>
<td width="" >
<input class="input" type="text" name="p_report_st" size="10" readonly value="<%=rsc("p_report_st")%>" onClick="winopn('/include/calendar.html?actval=p_report_st')" style="cursor:pointer">
-
<input class="input" type="text" name="p_report_end" size="10" readonly value="<%=rsc("p_report_end")%>" onClick="winopn('/include/calendar.html?actval=p_report_end')" style="cursor:pointer">
<!--input type="button" value="선택" onClick="winopn('/include/calendar.html?actval=p_report_date')" style="cursor:pointer"-->
</td>
<td align="center" >보고서 작성기간(실)</td>
<td width="" >
<%
if not isnull(rsc("p_report_st2")) and rsc("p_report_st2") <> "" then
Response.Write "<font class='tahoma'>" & rsc("p_report_st2") & " - " & rsc("p_report_end2") & "</font>"
end if
%>
</td>
</tr>
<tr height="26">
<td align="center" >내부미팅 일자</td>
<td width="" >
<input class="input" type="text" name="p_premeet_date" size="10" readonly value="<%=rsc("p_premeet_date")%>" onClick="winopn('/include/calendar.html?actval=p_premeet_date')" style="cursor:pointer">
</td>
<td align="center" >내부미팅 일자(실)</td>
<td width="" >
<%
if not isnull(rsc("p_premeet_date2")) and rsc("p_premeet_date2") <> "" then
Response.Write "<font class='tahoma'>" & rsc("p_premeet_date2") & "</font>"
end if
%>
</td>
</tr>
<% if tmp_method <> "15" and tmp_method <> "16" and tmp_method <> "23" and tmp_method <> "24" then %>
<tr height="26">
<td align="center" >면접원 OT일</td>
<td width="" >
<input class="input" type="text" name="p_ot_date" size="10" readonly value="<%=rsc("p_ot_date")%>" onClick="winopn('/include/calendar.html?actval=p_ot_date')" style="cursor:pointer">
</td>
<td align="center" >면접원 OT일(실)</td>
<td width="" >
<%
if not isnull(rsc("p_ot_date2")) and rsc("p_ot_date2") <> "" then
Response.Write "<font class='tahoma'>" & rsc("p_ot_date2") & "</font>"
end if
%>
</td>
</tr>
<% end if %>
<tr height="26">
<td align="center" >실사기간 (코딩+에디팅)</td>
<td width="" >
<input class="input" type="text" name="p_field_st" size="10" readonly value="<%=rsc("p_field_st")%>" onClick="winopn('/include/calendar.html?actval=p_field_st')" style="cursor:pointer">
-
<input class="input" type="text" name="p_field_end" size="10" readonly value="<%=rsc("p_field_end")%>" onClick="winopn('/include/calendar.html?actval=p_field_end')" style="cursor:pointer">
</td>
<td align="center" >실사기간(실) (코딩+에디팅)</td>
<td width="" >
<%
if not isnull(rsc("p_field_st2")) and rsc("p_field_st2") <> "" then
Response.Write "<font class='tahoma'>" & rsc("p_field_st2") & " - " & rsc("p_field_end2") & "</font>"
end if
%>
</td>
</tr>
<% if tmp_method <> "15" and tmp_method <> "16" then %>
<tr height="26">
<td align="center" >펀치기간</td>
<td width="" >
<input class="input" type="text" name="p_punch_st" size="10" readonly value="<%=rsc("p_punch_st")%>" onClick="winopn('/include/calendar.html?actval=p_punch_st')" style="cursor:pointer">
-
<input class="input" type="text" name="p_punch_end" size="10" readonly value="<%=rsc("p_punch_end")%>" onClick="winopn('/include/calendar.html?actval=p_punch_end')" style="cursor:pointer">
</td>
<td align="center" >펀치기간(실)</td>
<td width="" >
<%
if not isnull(rsc("p_punch_st2")) and rsc("p_punch_st2") <> "" then
Response.Write "<font class='tahoma'>" & rsc("p_punch_st2") & " - " & rsc("p_punch_end2") & "</font>"
end if
%>
</td>
</tr>
<tr height="26">
<td align="center" >DP 기간</td>
<td width="" >
<input class="input" type="text" name="p_dp_st" size="10" readonly value="<%=rsc("p_dp_st")%>" onClick="winopn('/include/calendar.html?actval=p_dp_st')" style="cursor:pointer">
-
<input class="input" type="text" name="p_dp_end" size="10" readonly value="<%=rsc("p_dp_end")%>" onClick="winopn('/include/calendar.html?actval=p_dp_end')" style="cursor:pointer">
</td>
<td align="center" >DP기간(실)</td>
<td width="" >
<%
if not isnull(rsc("p_dp_st2")) and rsc("p_dp_st2") <> "" then
Response.Write "<font class='tahoma'>" & rsc("p_dp_st2") & " - " & rsc("p_dp_end2") & "</font>"
end if
%>
</td>
</tr>
<tr>
<td colspan="4" class="yellow" align="center" height="3"></td>
</tr>
<% end if %>
<%
end if 'if tmp_view = int(rsc("p_depart")) or tmp_admin_chk = "1" or tmp_regok = 1 then '로그인자가 해당연구원이거나 개발자라면 보여짐, 또는 3개부서 등록 완료 되면..
%>
<%
if trim(rsc("p_rsch_1")) <> "" then '연구파트가 완료 되어야 실사가 자신의 것을 볼 수 있음
if tmp_view = 12 or tmp_view = 16 or tmp_admin_chk = "1" or tmp_regok = 1 then '로그인자가 실사부서원이거나 개발자라면 보여짐, 또는 3개부서 등록 완료 되면..
%>
<%
if tmp_regok = 1 or tmp_admin_chk = "1" then
%>
<tr height="1">
<td colspan="4" bgcolor="#85DF66"></td>
</tr>
<%
else
%>
<tr height="26">
<td align="center" >조사방법</td>
<td colspan="3" >
<%
q = "SELECT * "
q = q & "FROM p_method "
q = q & "WHERE code1 = '" & tmp_method & "' "
q = q & "ORDER BY name1 "
rsp.Open q, adoConn, 1
if rsp.RecordCount > 0 then
Response.Write "<font class='tahoma'>" & rsp("name1") & "</font>"
else
Response.Write "<font class='tahoma'>" & "DB오류" & "</font>"
end if
rsp.Close
%>
</td>
</tr>
<tr height="26">
<td align="center" >계약일자</td>
<td width="30%" >
<font class="tahoma">
<%=rsc("p_conv_date")%>
</font>
</td>
<td align="center" >계약기간</td>
<td width="30%" >
<font class="tahoma">
<%=rsc("p_convdate_st")%> - <%=rsc("p_convdate_end")%>
</font>
</td>
</tr>
<tr height="26">
<td align="center" >내부미팅 일자</td>
<td width="" >
<font class="tahoma">
<%=rsc("p_premeet_date")%>
</font>
</td>
<% if tmp_method <> "15" and tmp_method <> "16" and tmp_method <> "24" then %>
<td align="center" >면접원 OT일</td>
<td width="" >
<font class="tahoma">
<%=rsc("p_ot_date")%>
</font>
</td>
<% end if %>
</tr>
<tr height="26">
<td align="center" >실사시작일</td>
<td width="" >
<font class="tahoma">
<%=rsc("p_field_st")%>
</font>
</td>
<td align="center" >실사종료일 (코딩+에디팅)</td>
<td width="" >
<font class="tahoma">
<%=rsc("p_field_end")%>
</font>
</td>
</tr>
<% if tmp_method <> "15" and tmp_method <> "16" then %>
<tr height="26">
<td align="center" >펀치기간</td>
<td width="" >
<font class="tahoma">
<%=rsc("p_punch_st")%> - <%=rsc("p_punch_end")%>
</font>
</td>
<td align="center" >DP 기간</td>
<td width="" >
<font class="tahoma">
<%=rsc("p_dp_st")%> - <%=rsc("p_dp_end")%>
</font>
</td>
</tr>
<% end if %>
<%
end if 'if tmp_regok = 1 or tmp_admin_chk = "1" then
%>
<tr height="26">
<td align="center" >담당 SV</td>
<td width="30%" >
<select name="p_sv">
<option value="">선택</option>
<%
q = "SELECT * "
q = q & "FROM Person "
q = q & "WHERE ( p_depart='12' and p_job_part = '03' AND p_resign='0')" 'sv
q = q & "OR (p_depart='88' AND p_resign='0') " '기타
q = q & " order by p_depart, p_order "
Response.Write q & "<BR>"
person_search_chk = false
rsp.Open q, adoConn, 1
if rsp.RecordCount > 0 then
for i = 1 to rsp.RecordCount
%>
<option value="<%=rsp("p_no")%>"
<% if rsc("p_sv") <> "" then
if int(rsp("p_no")) = int(rsc("p_sv")) then%>
selected
<%person_search_chk = true
end if
end if%>><%=rsp("p_name")%></option>
<%
rsp.MoveNext
next
end if
rsp.Close
if person_search_chk = false and trim(rsc("p_sv")) <> "" then '사람을 못찾았으면 퇴직자임
q = "SELECT * "
q = q & "FROM Person "
'q = q & "WHERE ( p_resign='1' )"
q = q & " WHERE p_no = '" & rsc("p_sv") & "'"
q = q & "order by p_order "
rsp.Open q, adoConn, 1%>
<option value="<%=rsp("p_no")%>" selected><%=rsp("p_name")%></option>
<%rsp.Close
end if%>
</select>
<select name="p_sv2">
<option value="">선택</option>
<%
q = "SELECT * "
q = q & "FROM Person "
q = q & "WHERE ( p_depart='12' and p_job_part = '03' AND p_resign='0')" 'sv
q = q & "OR (p_depart='88' AND p_resign='0') " '기타
q = q & " order by p_depart, p_order "
person_search_chk = false
rsp.Open q, adoConn, 1
if rsp.RecordCount > 0 then
for i = 1 to rsp.RecordCount
%>
<option value="<%=rsp("p_no")%>"
<% if rsc("p_sv2") <> "" then
if int(rsp("p_no")) = int(rsc("p_sv2")) then%>
selected
<%person_search_chk = true
end if
end if%>><%=rsp("p_name")%></option>
<%
rsp.MoveNext
next
end if
rsp.Close
if person_search_chk = false and trim(rsc("p_sv2")) <> "" then '사람을 못찾았으면 퇴직자임
q = "SELECT * "
q = q & "FROM Person "
'q = q & "WHERE ( p_resign='1' )"
q = q & " WHERE p_no = '" & rsc("p_sv") & "'"
q = q & "order by p_order "
rsp.Open q, adoConn, 1%>
<option value="<%=rsp("p_no")%>" selected><%=rsp("p_name")%></option>
<%rsp.Close
end if%>
</select>
</td>
<td align="center" >실사난이도</td>
<td width="30%" >
<select name="p_field_rank">
<option value="하" <% if rsc("p_field_rank") = "하" then %> selected <% end if %>>하</option>
<option value="중" <% if rsc("p_field_rank") = "중" then %> selected <% end if %>>중</option>
<option value="상" <% if rsc("p_field_rank") = "상" then %> selected <% end if %>>상</option>
</select>
</td>
</tr>
<% if tmp_method <> "15" and tmp_method <> "16" then %>
<tr height="26">
<td align="center" >문항수 (오픈)</td>
<td width="" >
<input class="input" type="text" name="p_survey_cnt" size="10" value="<%=rsc("p_survey_cnt")%>" onkeypress="if (event.keyCode < 48 || event.keyCode > 57) event.returnValue = false;">
<font class="tahoma">( <%=rsc("p_survey_open")%> )</font>
</td>
<td align="center" >실제 조사샘플수</td>
<td width="30%" >
<font class="tahoma"><%=rsc("p_sample")%></font>
</td>
</tr>
<% end if %>
<tr height="26">
<td align="center" >담당 코더</td>
<td width="" >
<select name="p_coder">
<%
q = "SELECT * "
q = q & "FROM Person "
q = q & "WHERE ((p_job_part = '05') AND p_resign='0')" '코더
q = q & " OR (p_depart='88' AND p_resign='0') " '기타
q = q & "AND p_resign='0' order by p_depart, p_order "
person_search_chk = false
Response.Write q & "<BR>"
rsp.Open q, adoConn, 1
if rsp.RecordCount > 0 then
for i = 1 to rsp.RecordCount
%>
<option value="<%=rsp("p_no")%>"
<%if rsc("p_coder") <> "" then
if int(rsp("p_no")) = int(rsc("p_coder")) then%>
selected
<%person_search_chk = true
end if
end if%>><%=rsp("p_name")%></option>
<%
rsp.MoveNext
next
end if
rsp.Close
if person_search_chk = false and trim(rsc("p_coder")) <> "" then '사람을 못찾았으면 퇴직자임
q = "SELECT * "
q = q & "FROM Person "
'q = q & "WHERE ( p_resign='1' )"
q = q & " WHERE p_no = '" & rsc("p_coder") & "'"
q = q & "order by p_order "
rsp.Open q, adoConn, 1%>
<option value="<%=rsp("p_no")%>" selected><%=rsp("p_name")%></option>
<%rsp.Close
end if%>
</select>
</td>
<td align="center" >담당 검증</td>
<td width="" >
<%'담당 검증은 유수연으로 고정하여 수정할 수 없도록 함%>
<input class="input" type="text" name="p_verify_name" size="20" value="장은수" readonly>
<input type="hidden" name="p_verify" value="20101003">
</td>
</tr>
<tr height="26">
<%
p_budget = rsc("p_budget")
pay_estimate = formatnumber(rsc("p_esti_cost")+rsc("p_esti_cost_research"), 0)
pay_estimate_proportion = formatnumber((pay_estimate / CDbl(p_budget)) * 100, 2)
pay_actual = formatnumber(rsc("p_real_cost")+rsc("p_real_cost_research"), 0)
pay_actual_proportion = formatnumber((pay_actual / CDbl(p_budget)) * 100, 2)
'직접비 결재 상신이 되어 있어야 하고 부서장 이상의 결제가 되어 있어야 함
query = "SELECT * "
query = query & "FROM Document as a "
query = query & " INNER JOIN 문서내용 as b on a.d_no = b.문서번호 "
'query = query & "WHERE a.d_no='" & d_no & "' "
query = query & "WHERE a.d_no<>'' "
query = query & " AND b.p_sn = '" & p_sn & "' "
query = query & " AND b.del_yes_no='no' "
query = query & " AND a.d_delok = 'N' "
query = query & " AND a.d_name = '직접비' "
query = query & "ORDER BY a.d_sn DESC "
''2014년 1월 15일부로 직접비 결재를 하지 않기에 단순히 실사 직접비가 들어있나만 확인하기
query = "select * from direct_cost where p_sn = '" & p_sn & "' " & _
" and del_yes_no = 'no'"
rsp.Open query, adoConn, 1
if rsp.RecordCount > 0 then
else
pay_estimate = ""
pay_estimate_proportion = ""
pay_actual = ""
pay_actual_proportion = ""
%>
<input type="hidden" name="f" value="<%=p_sn%>">
<script language="javascript">
//alert(document.pms.f.value);
alert('직접비가 입력안되었습니다.');
opener.location.href = "../inspection/project_direct_cost.asp?p_sn="+document.pms.f.value;
self.close();
</script>
<%
end if
rsp.Close
if tmp_admin_chk = "1" and pay_estimate = "" then '개발자라면 직접비 체크로직을 넘길 수 있도록 함
pay_estimate = "1"
'Response.Write "sadfsfsda"
end if
%>
<td align="center" >예상 직접비(연구+실사)</td>
<td width="" >
<% if pay_estimate <> "" then %>
<font color="tahoma_blue"><b><%=pay_estimate%></b></font> 원
<% end if %>
<input type="hidden" name="pay_estimate" value="<%=pay_estimate%>">
</td>
<td align="center" >예상 직접비 비율</td>
<td width="" >
<% if pay_estimate_proportion <> "" then %>
<font color="tahoma_blue"><b><%=pay_estimate_proportion%></b></font> %
<% end if %>
</td>
</tr>
<tr height="26">
<td align="center" >실제 직접비(연구+실사)</td>
<td width="" >
<% if pay_actual <> "" then %>
<font color="tahoma_blue"><b><%=pay_actual%></b></font> 원
<% end if %>
<input type="hidden" name="pay_actual" value="<%=pay_actual%>">
</td>
<td align="center" >실제 직접비 비율</td>
<td width="" >
<% if pay_actual_proportion <> "" then %>
<font color="tahoma_blue"><b><%=pay_actual_proportion%></b></font> %
<% end if %>
</td>
</tr>
<%
end if 'if tmp_view = 12 or tmp_admin_chk = "1" or tmp_regok = 1 then
end if 'if trim(rsc("p_rsch_1")) <> "" then
%>
<%
if trim(rsc("p_rsch_1")) <> "" and trim(rsc("p_sv")) <> "" then '연구파트와 실사파트가 완료 되어야 전산부서는 자신의 것을 볼 수 있음
if tmp_view = 15 OR tmp_view = 17 or tmp_admin_chk = "1" or tmp_regok = 1 then '로그인자가 전산부서원이거나 개발자라면 보여짐, 또는 3개부서 등록 완료 되면..
%>
<%
if tmp_regok = 1 or tmp_admin_chk = "1" then
%>
<tr height="1">
<td colspan="4" bgcolor="#85DF66"></td>
</tr>
<%
else
%>
<tr height="26">
<td align="center" >조사방법</td>
<td colspan="3" >
<%
q = "SELECT * "
q = q & "FROM p_method "
q = q & "WHERE code1 = '" & tmp_method & "' "
q = q & "ORDER BY name1 "
rsp.Open q, adoConn, 1
if rsp.RecordCount > 0 then
Response.Write "<font class='tahoma'>" & rsp("name1") & "</font>"
else
Response.Write "<font class='tahoma'>" & "DB오류" & "</font>"
end if
rsp.Close
%>
</td>
</tr>
<tr height="26">
<td align="center" >계약일자</td>
<td width="30%" >
<font class="tahoma">
<%=rsc("p_conv_date")%>
</font>
</td>
<td align="center" >계약기간</td>
<td width="30%" >
<font class="tahoma">
<%=rsc("p_convdate_st")%> - <%=rsc("p_convdate_end")%>
</font>
</td>
</tr>
<tr height="26">
<td align="center" >내부미팅 일자</td>
<td width="" >
<font class="tahoma">
<%=rsc("p_premeet_date")%>
</font>
</td>
<% if tmp_method <> "15" and tmp_method <> "16" and tmp_method <> "24" then %>
<td align="center" >면접원 OT일</td>
<td width="" >
<font class="tahoma">
<%=rsc("p_ot_date")%>
</font>
</td>
<% end if %>
</tr>
<tr height="26">
<td align="center" >실사시작일</td>
<td width="" >
<font class="tahoma">
<%=rsc("p_field_st")%>
</font>
</td>
<td align="center" >실사종료일 (코딩+에디팅)</td>
<td width="" >
<font class="tahoma">
<%=rsc("p_field_end")%>
</font>
</td>
</tr>
<% if tmp_method <> "15" and tmp_method <> "16" then %>
<tr height="26">
<td align="center" >펀치기간</td>
<td width="" >
<font class="tahoma">
<%=rsc("p_punch_st")%> - <%=rsc("p_punch_end")%>
</font>
</td>
<td align="center" >DP 기간</td>
<td width="" >
<font class="tahoma">
<%=rsc("p_dp_st")%> - <%=rsc("p_dp_end")%>
</font>
</td>
</tr>
<% end if %>
<%
end if 'if tmp_regok = 1 or tmp_admin_chk = "1" then
%>
<tr height="26">
<td align="center" >담당 전산</td>
<td width="30%" >
<select name="p_dper">
<option value="">선택</option>
<%'역시 DB에서 읽어 오도록...%>
<%
q = "SELECT * "
q = q & "FROM Person "
q = q & "WHERE ((p_depart='15' OR p_depart='17') AND p_resign='0' and p_job_part = '07')" '전산의 dp
q = q & "OR (p_depart='88' AND p_resign='0') " '기타
q = q & "order by p_order "
Response.Write "q : " & q & "<BR>"
rsp.Open q, adoConn, 1
person_search_chk = false
if rsp.RecordCount > 0 then
for i = 1 to rsp.RecordCount
%>
<option value="<%=rsp("p_no")%>"
<%if rsc("p_dper") <> "" then
if int(rsp("p_no")) = int(rsc("p_dper")) then%>
selected
<%person_search_chk = true
end if
end if%>><%=rsp("p_name")%></option>
<%
rsp.MoveNext
next
end if
rsp.Close
if person_search_chk = false and trim(rsc("p_dper")) <> "" then '사람을 못찾았으면 퇴직자임
q = "SELECT * "
q = q & "FROM Person "
q = q & "WHERE ( p_resign='1' )" '전산의 dp
q = q & " and p_no = '" & rsc("p_dper") & "'"
q = q & "order by p_order "
Response.Write q
rsp.Open q, adoConn, 1
if rsp.RecordCount > 0 then
%>
<option value="<%=rsp("p_no")%>" selected><%=rsp("p_name")%></option>
<%
end if
rsp.Close
end if%>
</select>
<select name="p_dper2">
<option value="">선택</option>
<%'역시 DB에서 읽어 오도록...%>
<%
q = "SELECT * "
q = q & "FROM Person "
q = q & "WHERE ((p_depart='15' OR p_depart='17') AND p_resign='0' and p_job_part = '07')" '전산의 dp
q = q & "OR (p_depart='88' AND p_resign='0') " '기타
q = q & "order by p_order "
Response.Write "q : " & q & "<BR>"
rsp.Open q, adoConn, 1
person_search_chk = false
if rsp.RecordCount > 0 then
for i = 1 to rsp.RecordCount
%>
<option value="<%=rsp("p_no")%>"
<%if rsc("p_dper2") <> "" then
if int(rsp("p_no")) = int(rsc("p_dper2")) then%>
selected
<%person_search_chk = true
end if
end if%>><%=rsp("p_name")%></option>
<%
rsp.MoveNext
next
end if
rsp.Close
if person_search_chk = false and trim(rsc("p_dper2")) <> "" then '사람을 못찾았으면 퇴직자임
q = "SELECT * "
q = q & "FROM Person "
q = q & "WHERE ( p_resign='1' )" '전산의 dp
q = q & " and p_no = '" & rsc("p_dper2") & "'"
q = q & "order by p_order "
Response.Write q
rsp.Open q, adoConn, 1
if rsp.RecordCount > 0 then
%>
<option value="<%=rsp("p_no")%>" selected><%=rsp("p_name")%></option>
<%
end if
rsp.Close
end if%>
</select>
<select name="p_dper3">
<option value="">선택</option>
<%'역시 DB에서 읽어 오도록...%>
<%
q = "SELECT * "
q = q & "FROM Person "
q = q & "WHERE ((p_depart='15' OR p_depart='17') AND p_resign='0' and p_job_part = '07')" '전산의 dp
q = q & "OR (p_depart='88' AND p_resign='0') " '기타
q = q & "order by p_order "
rsp.Open q, adoConn, 1
person_search_chk = false
if rsp.RecordCount > 0 then
for i = 1 to rsp.RecordCount
%>
<option value="<%=rsp("p_no")%>"
<%if rsc("p_dper3") <> "" then
if int(rsp("p_no")) = int(rsc("p_dper3")) then%>
selected
<%person_search_chk = true
end if
end if%>><%=rsp("p_name")%></option>
<%
rsp.MoveNext
next
end if
rsp.Close
if person_search_chk = false and trim(rsc("p_dper3")) <> "" then '사람을 못찾았으면 퇴직자임
q = "SELECT * "
q = q & "FROM Person "
q = q & "WHERE ( p_resign='1' )" '전산의 dp
q = q & " and p_no = '" & rsc("p_dper3") & "'"
q = q & "order by p_order "
Response.Write q
rsp.Open q, adoConn, 1
if rsp.RecordCount > 0 then
%>
<option value="<%=rsp("p_no")%>" selected><%=rsp("p_name")%></option>
<%
end if
rsp.Close
end if%>
</select>
</td>
<td align="center" >전산 난이도</td>
<td width="30%" >
<select name="p_dp_rank">
<option value="하" <% if rsc("p_dp_rank") = "하" then %> selected <% end if %>>하</option>
<option value="중" <% if rsc("p_dp_rank") = "중" then %> selected <% end if %>>중</option>
<option value="상" <% if rsc("p_dp_rank") = "상" then %> selected <% end if %>>상</option>
</select>
</td>
</tr>
<%
end if 'if tmp_view = 15 or tmp_admin_chk = "1" or tmp_regok = 1 then
end if 'if trim(rsc("p_rsch_1")) <> "" and trim(rsc("p_sv")) <> "" then
%>
<%
if tmp_view = int(rsc("p_depart")) or tmp_admin_chk = "1" or tmp_regok = 1 then '로그인자가 해당연구원이거나 개발자라면 보여짐, 또는 3개부서 등록 완료 되면..
%>
<tr height="26">
<td align="center" ><font class="tahoma">SPSS</font> 버젼</td>
<td colspan="3" >
<select name="p_spss">
<option value="">선택</option>
<%
if isnull(rsc("p_spss")) then
tmp_spss = ""
else
tmp_spss = rsc("p_spss")
end if
%>
<option value="Dos. 단, 명령어는 Full Name" <% if trim(tmp_spss) = "Dos. 단, 명령어는 Full Name" then %> selected <% end if %>>Dos. 단, 명령어는 Full Name</option>
<option value="Win ver 10.0" <% if trim(tmp_spss) = "Win ver 10.0" then %> selected <% end if %>>Win ver 10.0</option>
</select>
</td>
</tr>
<tr height="26">
<td align="center" >기타전달사항 (수정사유) </td>
<td colspan="3" >
<%
if isnull(rsc("p_memo")) then
tmp_area = ""
else
tmp_area = rsc("p_memo")
end if
%>
<textarea cols="98" rows="3" name="p_memo"><%=ViewWord(tmp_area)%></textarea>
</td>
</tr>
<%
end if 'if tmp_view = 2 or tmp_admin_chk = "1" or tmp_regok = 1 then
%>
</table>
<%
if tmp_admin_chk = "1" or tmp_regok = 1 then '로그인자가 개발자라면 보여짐, 또는 3개부서 등록 완료 되면..
%>
<p style="margin-top:8pt;margin-bottom:8pt;margin-left:10pt;">
</p>
<table border="0" cellspacing="0" cellpadding="4" width="800" style="border-collapse=collapse;">
<tr>
<td width="20%" bgcolor="#BBCEFD" height="2"></td>
<td width="80%" bgcolor="#DDDDDD" height="2" colspan="3"></td>
</tr>
<tr height="26">
<%
if rsc("p_cross_app_yes_no") = "yes" then
tmp_cross_app = "<font color='blue'>평가대상</font>"
tmp_cross_date = rsc("p_cross_app_end_date")
else
tmp_cross_app = "해당없음"
tmp_cross_date = ""
end if
%>
<td align="center" >크로스평가 해당</td>
<td width="30%" >
<%
if Session("admin_Code") = "1" or tmp_admin_chk = "1" then '부서장이나 개발자라면
%>
<select name="p_cross_app_yes_no">
<option value="yes" <% if rsc("p_cross_app_yes_no") = "yes" then %> selected <% end if %>>평가대상</option>
<option value="no" <% if rsc("p_cross_app_yes_no") = "no" then %> selected <% end if %>>해당없음</option>
</select>
<%
else
Response.Write tmp_cross_app
end if
%>
</td>
<td align="center" >크로스평가 마감일</td>
<td width="30%" >
<input class="input" type="text" name="tmp_cross_date" value="<%=tmp_cross_date%>" size="10" readonly>
</td>
</tr>
<tr height="26">
<td align="center" >업로드 기한</td>
<td >
<input class="input" type="text" name="p_upload_date" size="10"
value="<% if rsc("p_upload_date") <> "" and not isnull(rsc("p_upload_date")) then
Response.Write rsc("p_upload_date")
else
Response.Write ""
end if %>" readonly onClick="winopn('/include/calendar.html?actval=p_upload_date')" style="cursor:pointer">
<%
if tmp_admin_chk = "1" then '업로드 기한을 표시,
%>
<!--input type="button" value="선택" onClick="winopn('/include/calendar.html?actval=p_upload_date')" style="cursor:pointer"-->
<%
end if
%>
</td>
<% if tmp_method <> "15" and tmp_method <> "16" then %>
<td align="center" >설문지 폐기일</td>
<td width="" >
<input class="input" type="text" name="p_survey_date" size="10" readonly value="<%=rsc("p_survey_date")%>" onClick="winopn('/include/calendar.html?actval=p_survey_date')" style="cursor:pointer">
<%
if tmp_admin_chk = "1" then '업로드 기한을 표시,
%>
<!--input type="button" value="선택" onClick="winopn('/include/calendar.html?actval=p_survey_date')" style="cursor:pointer"-->
<%
end if
%>
</td>
<% end if %>
</tr>
<%
'### 20100127 수정 : 부서장은 각 연구원에 대한 프로젝트 영향도를 평가해야함
'### 뷰는 부서장이상 (다른 파트 임원은 어떻게 해야?)
'if tmp_admin_chk = "1" then
if ((Session("Depart_Code") = rsc("p_depart") OR Session("teamplace") >= "5") AND Session("admin_Code") = "1" ) OR tmp_admin_chk = "1" then
%>
<tr height="26">
<td align="center" >연구원 영향도</td>
<td colspan="3">
&nbsp;정 :
<select name="p_rsch_1p">
<option value="">선택</option>
<%
for i = 0 to 100 step 5
%>
<option value="<%=i%>" <% if rsc("p_rsch_1p") = i then %> selected <% end if %>><%=i%> %</option>
<%
next
%>
</select>
<%
if rsc("p_rsch_2") <> "" then
%>
&nbsp;&nbsp;&nbsp;
부 :
<select name="p_rsch_2p">
<option value="">선택</option>
<%
for i = 0 to 100 step 5
%>
<option value="<%=i%>" <% if rsc("p_rsch_2p") = i then %> selected <% end if %>><%=i%> %</option>
<%
next
%>
</select>
<%
end if
%>
<%
if rsc("p_rsch_3") <> "" then
%>
&nbsp;&nbsp;&nbsp;
보1 :
<select name="p_rsch_3p">
<option value="">선택</option>
<%
for i = 0 to 100 step 5
%>
<option value="<%=i%>" <% if rsc("p_rsch_3p") = i then %> selected <% end if %>><%=i%> %</option>
<%
next
%>
</select>
<%
end if
%>
<%
if rsc("p_rsch_4") <> "" then
%>
&nbsp;&nbsp;&nbsp;
보2 :
<select name="p_rsch_4p">
<option value="">선택</option>
<%
for i = 0 to 100 step 5
%>
<option value="<%=i%>" <% if rsc("p_rsch_4p") = i then %> selected <% end if %>><%=i%> %</option>
<%
next
%>
</select>
<%
end if
%>
</select>
</tr>
<%
end if
%>
<tr height="26">
<td align="center" >관람등급</td>
<td >
<%
if Session("admin_Code") = "1" or tmp_admin_chk = "1" then '부서장이나 개발자라면
%>
<select name="p_view_grade">
<option value="">등급선택</option>
<%
for i = 1 to ubound(tmp_view_grade)
if tmp_view_grade(i, 2) <> "" then
if i = 4 then '강제로 부서장급이상으로 동결
%>
<option value="<%=tmp_view_grade(i, 1)%>" <% if int(tmp_view_grade(i, 1)) = rsc("p_view_grade") then %> selected <% end if %>><%=tmp_view_grade(i, 2)%></option>
<%
end if
end if
next
%>
</select>
<%
else
if rsc("p_view_grade") = "" or isnull(rsc("p_view_grade")) then
%>
현재 관람등급 <font color="red">미설정</font> 중입니다.
<%
else
%>
등급이 <font color="blue"><%=tmp_view_grade(rsc("p_view_grade"), 2)%></font>으로 설정되었습니다.
<%
end if
end if
%>
</td>
<%
if rsc("p_reg_rsch") = "0" or isnull(rsc("p_reg_rsch")) then
tmp = "<font color='red'>미확정</font>"
tmp_a = "0"
else
tmp = "<font color='blue'>확정</font>"
tmp_a = "1"
end if
'확정버튼을 활성화 하기 위한 조건 (1. 관람등급, 2. 3개부서 파일업로드 완료, 3. 3개부서 등록 완료, 4. 3개부서 실제기간 입력완료)
tmp_reg_rsch = 0
'1번 처리
if rsc("p_view_grade") = "" or isnull(rsc("p_view_grade")) then
tmp_reg_1 = 0
else
tmp_reg_1 = 1
end if
'2번 처리
query = "SELECT * "
query = query & "FROM file_log "
query = query & "WHERE p_sn = '" & p_sn & "' "
rsp.Open query, adoConn, 1
if rsp.RecordCount > 0 then
'파일체크 로직 변경 (실사와 전산파일은 담당자의 유무로 체크함)
if (int(rsc("p_sv")) > 99999000 OR rsc("p_sv") = "19999999") AND (int(rsc("p_coder")) > 99999000 OR rsc("p_coder") = "19999999") then '실사담당자 없음
tmp_fieldwork = "1"
else 'sv나 코더 담당자 있음
if rsp("fieldwork") = "1" then
tmp_fieldwork = "1"
else
tmp_fieldwork = "0"
end if
end if
'2011년 2월 22일 수정 - 실사는 무조건 올린것으로 간주함 (파일체크 안함)
tmp_fieldwork = "1"
if (int(rsc("p_dper")) > 99999000 OR rsc("p_dper") = "19999999") then '전산담당자 없음
tmp_computer = "1"
else '전산담당자 있음
if rsp("computer") = "1" then
tmp_computer = "1"
else
tmp_computer = "0"
end if
end if
if rsp.RecordCount > 0 then
if rsp("research") = "1" and tmp_fieldwork = "1" and tmp_computer = "1" then
tmp_reg_2 = 1
tmp_real_date = 1
else
tmp_reg_2 = 0
tmp_real_date = 0
end if
else
tmp_reg_2 = 0
tmp_real_date = 0
end if
else
tmp_fieldwork = "0"
tmp_computer = "0"
tmp_reg_2 = 0
tmp_real_date = 0
end if
rsp.Close
'4번 처리
tmp_reg_4 = 0
if isnull(rsc("p_convdate_st2")) OR rsc("p_convdate_st2") = "" then '계약기간(연구파트) 없으면 안됨
tmp_reg_4 = 0
else
tmp_reg_4 = 1
end if
if isnull(rsc("p_field_st")) OR rsc("p_field_st") = "" then '실사기간(실사파트) 없으면 안됨
tmp_reg_4 = 0
else
tmp_reg_4 = 1
end if
if tmp_method <> "15" and tmp_method <> "16" then '조사방법 중 일부는 전산파트가 없을 수 있음
if isnull(rsc("p_dp_st2")) OR rsc("p_dp_st2") = "" then 'DP기간(전산파트) 없으면 안됨
tmp_reg_4 = 0
else
tmp_reg_4 = 1
end if
end if
if tmp_reg_1 = 1 and tmp_reg_2 = 1 and tmp_reg_4 = 1 then
tmp_reg_rsch = 1
else
tmp_reg_rsch = 0
end if
%>
<td align="center" >연구부서 완료</td>
<td >
<%
'if rsc("p_depart") = tmp_login_code or tmp_admin_chk = "1" then '내부서 프로젝트일 때만 확정할 수 있음, 개발자는 볼 수 있음
'### 100127 수정 : 내부서 프로젝트의 부서장만 클릭할 수 있음
if (Session("Depart_Code") = rsc("p_depart") AND Session("admin_Code") = "1") then' OR tmp_admin_chk = "1" then
%>
&nbsp;&nbsp;&nbsp;
<input type="radio" name="p_reg_rsch" value="0" <% if tmp_a = "0" then %> checked <% end if %> onClick="autofnc()"> 진행중
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="radio" name="p_reg_rsch" value="1" <% if tmp_a = "1" then %> checked <% end if %> <% if tmp_reg_rsch = 0 then %> disabled <% end if %> onClick="autofnc()"> 완료
<%
else
if tmp_a = "0" then
tmp_imsi = "<font class='tahoma_red'>진행중</font>"
elseif tmp_a = "1" then
tmp_imsi = "<font class='tahoma_blue'>완료</font>"
end if
%>
&nbsp;&nbsp;&nbsp;&nbsp;연구 <%=tmp_imsi%>
<%
end if
%>
</td>
</tr>
<tr>
<td width="20%" bgcolor="#BBCEFD" height="2"></td>
<td width="80%" bgcolor="#DDDDDD" height="2" colspan="3"></td>
</tr>
</table>
<%
if (rsc("p_reg_rsch") = "1") and (Session("Depart_Code") = "18" or tmp_admin_chk = "1") then '최종완료(경영지원실) 용
if rsc("p_reg_mana") = "0" or isnull(rsc("p_reg_mana")) then
tmp = "<font color='red'>미확정</font>"
tmp_a = "0"
else
tmp = "<font color='blue'>확정</font>"
tmp_a = "1"
end if
query = "SELECT * "
query = query & "FROM file_log "
query = query & "WHERE p_sn = '" & p_sn & "' "
rsp.Open query, adoConn, 1
if rsp.RecordCount > 0 then
'if rsp("research") = "1" and rsp("fieldwork") = "1" and rsp("computer") = "1" and rsp("manager") = "1" then
if rsp("research") = "1" and tmp_fieldwork = "1" and tmp_computer = "1" and rsp("manager") = "1" then
tmp_reg_2 = 1
else
tmp_reg_2 = 0
end if
else
tmp_reg_2 = 0
end if
rsp.Close
if rsc("p_tax") = "0" then
tmp_reg_2 = 0
end if
'### 크로스평가
if tmp_reg_2 <> 0 then
query = "SELECT a.*, B.insert_user_research AS insert_user_research, B.insert_user_sv AS insert_user_sv, "
query = query & " B.insert_user_coder AS insert_user_coder, B.insert_user_dp AS insert_user_dp, "
query = query & " B.insert_user_it AS insert_user_it "
query = query & " FROM project a LEFT OUTER JOIN "
query = query & " Cross_Appraisal b ON a.p_sn = b.p_sn "
query = query & " where substring(a.p_field_end,1,4) = '" & sc_year & "' " '년도는 실사종료일을 기준으로함
query = query & " and (p_cross_app_yes_no = 'yes') " '크로스평가 해당 프로젝트만
query = query & " AND a.p_sn='" & p_sn & "' "
rsp.Open query, adoconn, 1
if rsp.RecordCount > 0 then
redim prj_list(1, 10) 'x:순서, y:1:프로젝트코드(p_sn), 2:프로젝트제목, ,
' 3-7:이미평가했나 확인(1:평가,0:미평가) =>3:연구원, 4:수퍼바이저, 5:코딩, 6:dp, 7:it,8:마감기한일, 9:p_name, 10:담당자들(연구, sv, 코딩, dp, it)
'크로스평가 해당 유무
tmp_i2 = 1
if isnull(rsp("insert_user_research")) then
prj_list(tmp_i2,3) ="0" '미평가
else
prj_list(tmp_i2,3) ="1" '평가
end if
if isnull(rsp("insert_user_sv")) then
prj_list(tmp_i2,4) ="0" '미평가
else
prj_list(tmp_i2,4) ="1" '평가
end if
if isnull(rsp("insert_user_coder")) then
prj_list(tmp_i2,5) ="0" '미평가
else
prj_list(tmp_i2,5) ="1" '평가
end if
if isnull(rsp("insert_user_dp")) then
prj_list(tmp_i2,6) ="0" '미평가
else
prj_list(tmp_i2,6) ="1" '평가
end if
if isnull(rsp("insert_user_it")) then
prj_list(tmp_i2,7) ="0" '미평가
else
prj_list(tmp_i2,7) ="1" '평가
end if
if rsp("p_sv") = "19999999" or (rsp("p_sv")) >= "99999996" or trim(rsp("p_sv")) = "" or isnull(rsp("p_sv")) then '기타, 없음, 외주, 외부s/v, 배정이 안됐음 이면
prj_list(tmp_i2,4) = "2"
end if
if rsp("p_coder") = "19999999" or (rsp("p_coder")) >= "99999996" or trim(rsp("p_coder")) = "" or isnull(rsp("p_coder")) then '기타, 없음, 외주, 배정이 안됐음 이면
prj_list(tmp_i2,5) = "2"
end if
if rsp("p_dper") = "19999999" or (rsp("p_dper")) >= "99999996" or trim(rsp("p_dper")) = "" or isnull(rsp("p_dper")) then '기타, 없음, 외주, 배정이 안됐음 이면
prj_list(tmp_i2,6) = "2"
end if
if rsp("p_it") = "19999999" or (rsp("p_it")) >= "99999996" or trim(rsp("p_it")) = "" or isnull(rsp("p_it")) then '기타, 없음, 외주, 배정이 안됐음 이면
prj_list(tmp_i2,7) = "2"
end if
if prj_list(tmp_i2,3) = "0" or prj_list(tmp_i2,4) = "0" or prj_list(tmp_i2,5) = "0" or prj_list(tmp_i2,6) = "0" or prj_list(tmp_i2,7) = "0" then
tmp_reg_2 = 0
end if
else
if rsc("p_cross_app_yes_no") = "yes" then
tmp_reg_2 = 0
end if
end if
rsp.Close
end if 'if tmp_reg_2 <> 0 then
'### 크로스평가 관련
%>
<table border="0" cellspacing="0" cellpadding="4" width="800" style="border-collapse=collapse;">
<tr>
<td width="20%" bgcolor="#BBCEFD" height="2"></td>
<td width="80%" bgcolor="#DDDDDD" height="2" colspan="3"></td>
</tr>
<tr height="26">
<td align="center" >세금계산서</td>
<td >
<input type="radio" name="p_tax" value="0" <% if rsc("p_tax") = "0" then %> checked <% end if %>> 발행전
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="radio" name="p_tax" value="1" <% if rsc("p_tax") = "1" then %> checked <% end if %>> 발행완료
</td>
<% if tmp_method <> "15" and tmp_method <> "16" then %>
<td align="center" >최종완료</td>
<td width="" >
<input type="radio" name="p_reg_mana" value="0" <% if tmp_a = "0" then %> checked <% end if %>> 미확정
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="radio" name="p_reg_mana" value="1" <% if tmp_a = "1" then %> checked <% end if %> <% if tmp_reg_2 = 0 then %> disabled <% end if %>> 확정
</td>
<% end if %>
</tr>
<tr>
<td width="20%" bgcolor="#BBCEFD" height="2"></td>
<td width="80%" bgcolor="#DDDDDD" height="2" colspan="3"></td>
</tr>
</table>
<%
end if 'if (rsc("p_reg_rsch") = "1") and (tmp_view = "18" or tmp_admin_chk = "1") then
%>
<%
end if 'if tmp_admin_chk = "1" or tmp_regok = 1 then
%>
<%
if (tmp_field_admin = "1" or tmp_admin_chk = "1") and (tmp_regok = 1) then '경영지원실 실사경비 담당(김영희) 이거나 어드민이면 보임, 3개부서 완료
%>
<table border="0" cellspacing="0" cellpadding="4" width="800" style="border-collapse=collapse;">
<tr>
<td width="20%" bgcolor="#BBCEFD" height="2"></td>
<td width="80%" bgcolor="#DDDDDD" height="2" colspan="3"></td>
</tr>
<tr height="26">
<td width="20%" align="center" >조사방법 (확정)</td>
<td width="30%" >
<input class="input" type="text" name="p_method_chk" size="20" maxlength="25" value="<%=rsc("p_method_chk")%>">
</td>
<td width="20%" align="center" >표본수 (확정)</td>
<td width="30%" width="" >
<input class="input" type="text" name="p_sample_chk" size="20" onkeypress="if (event.keyCode < 48 || event.keyCode > 57) event.returnValue = false;"
<%if isnull(rsc("p_sample_chk")) then%>
value="1"
<%elseif clng(rsc("p_sample_chk")) = 0 then %>
value="1"
<%else%>
value="<%=rsc("p_sample_chk")%>"
<%end if%>>
</td>
</tr>
<tr height="26">
<td align="center" >계약액 (확정)</td>
<td >
<%
tmp_text = ""
if rsc("p_budget_chk") <> "" then
tmp_len = len(rsc("p_budget_chk"))
for i = 1 to int(tmp_len)
if i mod 3 = 1 and i <> 1 then
tmp_text = "," & tmp_text
end if
tmp_text = left(right(rsc("p_budget_chk"),i), 1) & tmp_text
next
end if
if trim(tmp_text) <> "" then
if clng(tmp_text) = 0 then
tmp_text=1
end if
else
tmp_text=1
end if
%>
<input class="input" type="text" name="p_budget_chk" size="15" value="<%=tmp_text%>" onKeyUp="setFormatPrice('2')" style="text-align:right;" onkeypress="if (event.keyCode < 48 || event.keyCode > 57) event.returnValue = false;"> 원 (<font color="red">VAT 별도</font>)
</td>
<td align="center" >샘플당단가</td>
<td width="" >
<input class="input" type="text" name="p_sample_value_chk" size="10" value="<%=rsc("p_sample_value_chk")%>" onkeypress="if (event.keyCode < 48 || event.keyCode > 57) event.returnValue = false;">
</td>
</tr>
<tr height="26">
<td align="center" >문항수 (확정)</td>
<td >
<input class="input" type="text" name="p_survey_cnt_chk" size="10" value="<%=rsc("p_survey_cnt_chk")%>">
</td>
<td align="center" >오픈수 (확정)</td>
<td width="" >
<input class="input" type="text" name="p_survey_open" size="10" value="<%=rsc("p_survey_open")%>" onkeypress="if (event.keyCode < 48 || event.keyCode > 57) event.returnValue = false;">
</td>
</tr>
<tr height="26">
<td align="center" >조사분류</td>
<td >
<select name="p_survey_part">
<option value="0">선택</option>
<%
for i = 1 to ubound(tmp_survey_part)
%>
<option value="<%=i%>" <% if i = int(rsc("p_survey_part")) then %> selected <% end if %>><%=tmp_survey_part(i)%></option>
<%
next
%>
</select>
</td>
<td align="center" >면접소요시간</td>
<td width="" >
<select name="p_survey_times">
<option value="0">선택</option>
<%
for i = 1 to ubound(tmp_survey_times)
%>
<option value="<%=i%>" <% if i = int(rsc("p_survey_times")) then %> selected <% end if %>><%=tmp_survey_times(i)%></option>
<%
next
%>
</select>
</td>
</tr>
<tr height="26">
<td align="center" >기준Pay단가</td>
<td >
&nbsp;
</td>
<td align="center" >실사수행</td>
<td width="" >
<select name="p_field_process">
<option value="0">선택</option>
<%
for i = 1 to ubound(tmp_field_process)
%>
<option value="<%=i%>" <% if i = int(rsc("p_field_process")) then %> selected <% end if %>><%=tmp_field_process(i)%></option>
<%
next
%>
</select>
</td>
</tr>
<tr height="26">
<td align="center" >검증부수</td>
<td >
<input class="input" type="text" name="p_verify_chk" size="10" value="<%=rsc("p_verify_chk")%>" onkeypress="if (event.keyCode < 48 || event.keyCode > 57) event.returnValue = false;">
</td>
<td align="center" >검증률</td>
<td width="" >
<input class="input" type="text" name="p_verify_prop_chk" size="10" value="<%=rsc("p_verify_prop_chk")%>">
</td>
</tr>
<tr height="26">
<td align="center" >에러부수</td>
<td >
<input class="input" type="text" name="p_error_chk" size="10" value="<%=rsc("p_error_chk")%>" onkeypress="if (event.keyCode < 48 || event.keyCode > 57) event.returnValue = false;">
</td>
<td align="center" >에러율</td>
<td width="" >
<input class="input" type="text" name="p_error_prop_chk" size="10" value="<%=rsc("p_error_prop_chk")%>">
</td>
</tr>
<tr height="26">
<td align="center" >교육참가인원</td>
<td >
<input class="input" type="text" name="p_otjoin_chk" size="10" value="<%=rsc("p_otjoin_chk")%>" onkeypress="if (event.keyCode < 48 || event.keyCode > 57) event.returnValue = false;">
</td>
<td align="center" >총면접인원</td>
<td width="" >
<input class="input" type="text" name="p_people_chk" size="10" value="<%=rsc("p_people_chk")%>" onkeypress="if (event.keyCode < 48 || event.keyCode > 57) event.returnValue = false;">
</td>
</tr>
<tr height="26">
<td align="center" >전체검증이관부수</td>
<td >
<input class="input" type="text" name="p_verify_total_chk" size="10" value="<%=rsc("p_verify_total_chk")%>" onkeypress="if (event.keyCode < 48 || event.keyCode > 57) event.returnValue = false;">
</td>
<td align="center" >AS투여시간</td>
<td width="" >
<input class="input" type="text" name="p_astime_chk" size="10" value="<%=rsc("p_astime_chk")%>" onkeypress="if (event.keyCode < 48 || event.keyCode > 57) event.returnValue = false;">
</td>
</tr>
<tr height="26">
<td align="center" >실사난이도</td>
<td colspan="3">
<select name="p_field_rank_chk">
<option value="">선택</option>
<option value="하" <% if rsc("p_field_rank_chk") = "하" then %> selected <% end if %>>하</option>
<option value="중" <% if rsc("p_field_rank_chk") = "중" then %> selected <% end if %>>중</option>
<option value="상" <% if rsc("p_field_rank_chk") = "상" then %> selected <% end if %>>상</option>
</select>
</td>
</tr>
<tr>
<td width="20%" bgcolor="#BBCEFD" height="2"></td>
<td width="80%" bgcolor="#DDDDDD" height="2" colspan="3"></td>
</tr>
</table>
<%
end if
%>
<table border="0" cellspacing="0" cellpadding="4" width="800" style="border-collapse=collapse;">
<tr>
<%
If Session("teamplace") <> 10 Then '인턴,계약직,프리랜서일 경우 안보이도록
if tmp_view = int(rsc("p_depart")) or tmp_admin_chk = "1" or tmp_regok = 1 then '연구부서이거나 어드민 이거나 3개부서 등록완료
tmp_button = 1
elseif (tmp_view = 12 OR tmp_view = 16) and trim(rsc("p_rsch_1")) <> "" then
tmp_button = 1
elseif (tmp_view = 15 OR tmp_view = 17) and trim(rsc("p_rsch_1")) <> "" and trim(rsc("p_sv")) <> "" then
tmp_button = 1
else
tmp_button = 0
end if
if rsc("p_reg_rsch") = "0" or isnull(rsc("p_reg_rsch")) then
tmp_style1 = ""
tmp_style2 = "none"
tmp_report = "0"
else
tmp_style1 = "none"
tmp_style2 = ""
tmp_report = "1"
end if
%>
<td colspan="4" align="center" style="padding:10 0 0 0">
<%
if tmp_button = 1 then '3개부서 등록 완료거나 자기부서 등록차례라면 버튼이 보이도록 함
'* 만약 경영지원실에서 최종완료를 하면 경영지원실을 제외한 전부서가 저장버튼을 사용 할 수 없게 함
if rsc("p_reg_mana") = "1" then
if Session("Depart_Code") = "18" or tmp_admin_chk = "1" then
tmp_chk = "1"
else
tmp_chk = "0"
end if
else
if rsc("p_reg_rsch") = "1" then '연구부서 완료시(경영지원실은 미완료중) 연구부서만 확인버튼 보임
if cint(rsc("p_depart")) = cint(tmp_login_code) or tmp_admin_chk = "1" then '내부서 프로젝트일 때만 확정할 수 있음
tmp_chk = "1"
else
tmp_chk = "0"
end if
else
if cint(rsc("p_depart")) = cint(tmp_login_code) or (int(tmp_login_code) > 10 and int(tmp_login_code) < 20) then '내부서 프로젝트이거나 실사,전산부서일 때만 확정할 수 있음
tmp_chk = "1"
else
tmp_chk = "0"
end if
end if
end if
'----------------------------------------------------------------------------------------
'2014-10-07 수정 : 테이블 바뀜. 데이터 있어야 다운로드 보임.
query = "SELECT * "
query = query & "FROM T_SYSTEM_ATTACH "
query = query & "WHERE f_p_sn = '" & rsc("p_sn") & "' "
query = query & "AND f_use_yn = 'Y' "
rsp.Open query, adoConn, 1
if rsp.RecordCount > 0 then
tmp_down_view = "1"
else
tmp_down_view = "0"
end if
rsp.Close
'----------------------------------------------------------------------------------------
if tmp_regok = "1" AND tmp_down_view = "1" then
%>
<img title='다운로드' src="/images/project/btn_sdownload.gif" border="0" style="CURSOR:pointer;" onClick="openit('<%=p_sn%>','1')">
<%
end if
end if
%>
<img title='닫기' src="/images/project/btn_sclose.gif" border="0" onClick="javascript:self.close()" style="CURSOR:pointer;">
&nbsp;&nbsp;
<%
if (cint(rsc("p_depart")) = cint(tmp_login_code) AND my_pos >= 2) then' or tmp_admin_chk = "1" then
%>
<img title='삭제' src="/images/project/btn_sdelete.gif" border="0" onClick="delit()" style="CURSOR:pointer;">
<%
end if
end if '인턴,계약직,프리랜서일 경우 안보이도록
%>
</td>
</tr>
<input type="hidden" name="p_sample_project_log" readonly value="<%=rsc("p_sample")%>">
</table>
</form>
</body>
</html>
<%
end if
rsc.Close
%>