1397 lines
68 KiB
Plaintext
1397 lines
68 KiB
Plaintext
<!-- #include virtual = "lib/config.asp" -->
|
||
<!-- #include file = "../include/top_menu.asp" -->
|
||
<OBJECT RUNAT=Server PROGID=ADODB.Recordset id=rsp></OBJECT>
|
||
<OBJECT RUNAT=Server PROGID=ADODB.Recordset id=rsa></OBJECT>
|
||
<%
|
||
Dim p_sn
|
||
|
||
project_document_flag = Request("project_document_flag")
|
||
|
||
'---------------------------------------
|
||
'p_sn만들기
|
||
query = "SELECT p_sn "
|
||
query = query & "FROM T_PROJECT_BASE "
|
||
query = query & "WHERE substring(p_sn, 0, 5) = '" & right("0" & year(date()), 2) & right("0" & month(date()), 2) & "' "
|
||
query = query & " AND substring(p_sn, 5, 3) <> '000' "
|
||
query = query & " AND substring(p_sn, 8, 1) <> '_' " '서브 프로젝트가 상위로 올라오는 것을 막음
|
||
query = query & "ORDER BY p_sn DESC "
|
||
|
||
rsc.Open query, adoConn, 1
|
||
if rsc.RecordCount > 0 then
|
||
if instr(1, rsc("p_sn"), "_") then
|
||
p_sn = right("0" & year(date()), 2) & right("0" & month(date()), 2) & right("000" & int(left(right(rsc("p_sn"), 5), 3)) + 1, 3)
|
||
else
|
||
p_sn = right("0" & year(date()), 2) & right("0" & month(date()), 2) & right("000" & int(right(rsc("p_sn"), 3)) + 1, 3)
|
||
end if
|
||
else
|
||
p_sn = right("0" & year(date()), 2) & right("0" & month(date()), 2) & "001"
|
||
end if
|
||
rsc.Close
|
||
|
||
if request("p_sn") <> "" then
|
||
p_sn = request("p_sn")
|
||
Else
|
||
p_sn = RIGHT(year(Now()), 2) & RIGHT("0" & month(Now()), 2) & "000"
|
||
end if
|
||
|
||
'프로젝트 기본 정보 가져오기
|
||
query = " SELECT p_sn, PB.p_cli_company_cd as p_cli_company_cd, PB.p_cli_per_cd as p_cli_per_cd, "
|
||
query = query & " p_state, p_subject, p_cli_company_nm, CP.p_cli_depart as p_cli_depart, "
|
||
query = query & " p_cli_per_nm, p_cli_per_com_tel, p_cli_per_tel, p_cli_per_email, p_contactor, PB.p_input_user, "
|
||
query = query & " PB.p_client_type_cd as p_client_type_cd, p_total_cost, p_obtain_cost, p_cont_cost, p_decide_date, "
|
||
query = query & " p_memo, p_state, pb.p_depart_dep as p_depart_dep , isnull(p_drop_reason, '') as p_drop_reason, "
|
||
query = query & " isnull(p_cost_rate, '0') as p_cost_rate, p_cost_rate_chk "
|
||
query = query & " FROM "
|
||
query = query & " T_PROJECT_BASE PB LEFT OUTER JOIN V_CLIENT_COMP CC ON PB.p_cli_company_cd = CC.p_cli_company_cd "
|
||
query = query & " LEFT OUTER JOIN V_CLIENT_PERSON CP ON PB.P_CLI_PER_CD = CP.P_CLI_PER_CD AND PB.p_cli_company_cd = CP.p_cli_company_cd "
|
||
query = query & " LEFT OUTER JOIN T_CLIENT_TYPE_CD CTC ON PB.p_client_type_cd = CTC.p_client_type_cd "
|
||
query = query & " WHERE p_sn = '"&p_sn& "'"
|
||
|
||
rsc.Open query, adoConn, 1
|
||
|
||
|
||
'조사방법 가져오기
|
||
query = " SELECT TPM.* "
|
||
query = query & " FROM T_PROJECT_METHOD TPM LEFT OUTER JOIN T_PROJECT_METHOD_CD TPMC ON TPM.p_method_cd = TPMC.p_method_cd "
|
||
query = query & " WHERE p_sn = '"&p_sn& "' ORDER BY TPMC.p_gubn, TPMC.p_method_nm "
|
||
|
||
rsa.Open query, adoConn, 1
|
||
|
||
'저장된 파일 가져오기
|
||
query = " select T.*, A.* from ( "
|
||
query = query & " SELECT '001' as attach_gubun, COUNT(*) cnt FROM T_SYSTEM_ATTACH WHERE f_p_sn = '"&p_sn& "' AND f_use_yn = 'Y' AND f_work_type = '001' AND f_kind = '001' "
|
||
query = query & " union all "
|
||
query = query & " SELECT '002' as attach_gubun, COUNT(*) cnt FROM T_SYSTEM_ATTACH WHERE f_p_sn = '"&p_sn& "' AND f_use_yn = 'Y' AND f_work_type = '001' AND f_kind = '002' "
|
||
query = query & " union all "
|
||
query = query & " SELECT '003' as attach_gubun, COUNT(*) cnt FROM T_SYSTEM_ATTACH WHERE f_p_sn = '"&p_sn& "' AND f_use_yn = 'Y' AND f_work_type = '001' AND f_kind = '003' "
|
||
query = query & " ) as T "
|
||
query = query & " left outer join T_SYSTEM_ATTACH as A "
|
||
query = query & " on T.attach_gubun = A.f_kind "
|
||
query = query & " and A.f_p_sn = '"&p_sn& "' AND A.f_use_yn = 'Y' AND A.f_work_type = '001' "
|
||
query = query & " order by attach_gubun, f_id "
|
||
|
||
rsp.Open query, adoConn, 1
|
||
|
||
|
||
'화면 초기값 설정.
|
||
'------------------------------------------------------------------------------------
|
||
'조사방법을 제외한 컬럼들의 초기값
|
||
|
||
p_cli_company_cd = "" '회사 코드
|
||
p_cli_per_cd = "" '담당자 코드
|
||
|
||
p_state = "" '프로젝트 현재 상태(K:제안, P:수주, 연기:D, 탈락 : X)
|
||
p_subject = "" '프로젝트명
|
||
p_contactor = "" '발생 경로
|
||
|
||
p_cli_company_nm = "" '회사명
|
||
p_cli_depart = "" '부서명
|
||
p_cli_per_nm = "" '담당자 이름
|
||
p_cli_per_com_tel = "" '담당자 전화번호
|
||
p_cli_per_tel = "" '담당자 전화번호
|
||
p_cli_per_email = "" '담당자 이메일
|
||
p_client_type_cd = "" '업종
|
||
|
||
p_cont_cost = "" '예상 계약액
|
||
p_decide_date = "" '결정 예정일
|
||
p_memo = "" '메모
|
||
p_depart_dep = "" '입력한 부서
|
||
|
||
p_total_cost = "" '전체 수주금액(실제계약액)
|
||
|
||
p_drop_reason = "" '탈락 사유
|
||
|
||
p_cost_rate = "0" '직접비율 (예상)
|
||
p_cost_rate_chk = "" '직접비율 대표님 확인 여부
|
||
|
||
if rsc.RecordCount > 0 then
|
||
if rsc("p_state") <> "" then
|
||
p_cli_company_cd = rsc("p_cli_company_cd")
|
||
p_cli_per_cd = rsc("p_cli_per_cd")
|
||
p_contactor = rsc("p_contactor")
|
||
|
||
p_state = rsc("p_state")
|
||
p_subject = rsc("p_subject")
|
||
p_cli_company_nm = rsc("p_cli_company_nm")
|
||
p_cli_depart = rsc("p_cli_depart")
|
||
p_cli_per_nm = rsc("p_cli_per_nm")
|
||
p_cli_per_com_tel = rsc("p_cli_per_com_tel")
|
||
p_cli_per_tel = rsc("p_cli_per_tel")
|
||
p_cli_per_email = rsc("p_cli_per_email")
|
||
p_client_type_cd = rsc("p_client_type_cd")
|
||
p_depart_dep = rsc("p_depart_dep")
|
||
|
||
insert_user = rsc("p_input_user")
|
||
|
||
p_drop_reason = rsc("p_drop_reason")
|
||
|
||
p_cost_rate = rsc("p_cost_rate")
|
||
p_cost_rate_chk = rsc("p_cost_rate_chk")
|
||
|
||
if rsc("p_total_cost") <> "" then
|
||
tmp_len = len(rsc("p_total_cost"))
|
||
for i = 1 to int(tmp_len)
|
||
if i mod 3 = 1 and i <> 1 then
|
||
p_total_cost = "," & p_total_cost
|
||
end if
|
||
p_total_cost = left(right(rsc("p_total_cost"),i), 1) & p_total_cost
|
||
next
|
||
end If
|
||
|
||
'예상 계약액 ,수정
|
||
if rsc("p_obtain_cost") <> "" then
|
||
tmp_len = len(rsc("p_obtain_cost"))
|
||
for i = 1 to int(tmp_len)
|
||
if i mod 3 = 1 and i <> 1 then
|
||
p_cont_cost = "," & p_cont_cost
|
||
end if
|
||
p_cont_cost = left(right(rsc("p_obtain_cost"),i), 1) & p_cont_cost
|
||
next
|
||
end If
|
||
|
||
if int(p_cont_cost) = 0 then
|
||
p_cont_cost=1
|
||
end if
|
||
|
||
p_decide_date = rsc("p_decide_date")
|
||
p_memo = rsc("p_memo")
|
||
|
||
end if
|
||
end if
|
||
|
||
|
||
'조사방법 초기값
|
||
Dim p_method_cd(17)
|
||
Dim p_progress_status
|
||
|
||
'조사방법에 아무것도 없을때
|
||
if rsa.recordCount > 0 then
|
||
'기존 조사방법 저장
|
||
for i=1 to rsa.recordCount
|
||
p_method_cd(i) = rsa("p_method_cd")
|
||
p_sub_type = rsa("p_sub_type")
|
||
p_progress_status = rsa("p_progress_status")
|
||
|
||
rsa.MoveNext
|
||
next
|
||
else
|
||
p_method_cd(1) = "0"
|
||
p_progress_status = ""
|
||
end if
|
||
|
||
|
||
dim f_id()
|
||
dim f_kind()
|
||
dim ATTACH_FILENAME()
|
||
|
||
Dim f_kind_001_cnt
|
||
Dim f_kind_002_cnt
|
||
Dim f_kind_003_cnt
|
||
|
||
f_kind_001_cnt = 0
|
||
f_kind_002_cnt = 0
|
||
f_kind_003_cnt = 0
|
||
|
||
attach_file_count = rsp.recordCount
|
||
|
||
If attach_file_count < 3 Then
|
||
attach_file_count = 3
|
||
End if
|
||
|
||
ReDim f_id(attach_file_count)
|
||
ReDim f_kind(attach_file_count)
|
||
ReDim ATTACH_FILENAME(attach_file_count)
|
||
|
||
Dim f_kind_001_file_blank
|
||
Dim f_kind_002_file_blank
|
||
Dim f_kind_003_file_blank
|
||
|
||
f_kind_001_file_blank = false
|
||
f_kind_002_file_blank = false
|
||
f_kind_003_file_blank = false
|
||
|
||
'저장된 파일 초기값
|
||
if attach_file_count > 0 then
|
||
for i=0 to attach_file_count-1
|
||
f_id(i) = ""
|
||
ATTACH_FILENAME(i) = ""
|
||
|
||
If i < rsp.recordCount Then
|
||
If IsNull(rsp("f_id")) Then
|
||
'f_id 가 Null이면 그냥 건너뜀
|
||
Else
|
||
f_id(i) = rsp("f_id")
|
||
f_kind(i) = rsp("f_kind")
|
||
ATTACH_FILENAME(i) = rsp("f_file_name")
|
||
|
||
if rsp("f_kind") = "001" then
|
||
f_kind_001_cnt = f_kind_001_cnt + 1
|
||
end if
|
||
|
||
if rsp("f_kind") = "002" Then
|
||
f_kind_002_cnt = f_kind_002_cnt + 1
|
||
end if
|
||
|
||
if rsp("f_kind") = "003" Then
|
||
f_kind_003_cnt = f_kind_003_cnt + 1
|
||
end If
|
||
End if
|
||
rsp.movenext
|
||
End if
|
||
Next
|
||
|
||
If f_kind_001_cnt = 0 Then
|
||
f_kind_001_cnt = 1
|
||
f_kind_001_file_blank = true
|
||
End If
|
||
|
||
If f_kind_002_cnt = 0 Then
|
||
f_kind_002_cnt = 1
|
||
f_kind_002_file_blank = true
|
||
End If
|
||
|
||
If f_kind_003_cnt = 0 Then
|
||
f_kind_003_cnt = 1
|
||
f_kind_003_file_blank = true
|
||
End if
|
||
|
||
Dim f_kind_001_list()
|
||
Dim f_kind_002_list()
|
||
Dim f_kind_003_list()
|
||
ReDim f_kind_001_list(f_kind_001_cnt, 3)
|
||
ReDim f_kind_002_list(f_kind_002_cnt, 3)
|
||
ReDim f_kind_003_list(f_kind_003_cnt, 3)
|
||
|
||
tmp_001_cnt = 0
|
||
tmp_002_cnt = 0
|
||
tmp_003_cnt = 0
|
||
|
||
For i = 0 To attach_file_count - 1
|
||
If f_kind(i) = "001" Then
|
||
f_kind_001_list(tmp_001_cnt, 0) = f_id(i)
|
||
f_kind_001_list(tmp_001_cnt, 1) = f_kind(i)
|
||
f_kind_001_list(tmp_001_cnt, 2) = ATTACH_FILENAME(i)
|
||
tmp_001_cnt = tmp_001_cnt + 1
|
||
End If
|
||
|
||
If f_kind(i) = "002" Then
|
||
f_kind_002_list(tmp_002_cnt, 0) = f_id(i)
|
||
f_kind_002_list(tmp_002_cnt, 1) = f_kind(i)
|
||
f_kind_002_list(tmp_002_cnt, 2) = ATTACH_FILENAME(i)
|
||
tmp_002_cnt = tmp_002_cnt + 1
|
||
End If
|
||
|
||
If f_kind(i) = "003" Then
|
||
f_kind_003_list(tmp_003_cnt, 0) = f_id(i)
|
||
f_kind_003_list(tmp_003_cnt, 1) = f_kind(i)
|
||
f_kind_003_list(tmp_003_cnt, 2) = ATTACH_FILENAME(i)
|
||
tmp_003_cnt = tmp_003_cnt + 1
|
||
End If
|
||
next
|
||
end if
|
||
|
||
|
||
'------------------------------------------------------------------------------------
|
||
|
||
rsa.close
|
||
rsc.close
|
||
rsp.close
|
||
%>
|
||
<meta http-equiv="content-type" content="text/html; charset=EUC-KR">
|
||
<script src="/lib/function.js" type="text/javascript1.3">
|
||
|
||
</script>
|
||
<script language=javascript>
|
||
function search(theURL, winName, features) {
|
||
//alert("클라이언트의 이메일 입력을 권장합니다.");
|
||
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 setFormatPrice() {
|
||
strNum = document.pms.p_cont_cost.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;
|
||
}
|
||
document.pms.p_cont_cost.value = result;
|
||
}
|
||
|
||
function subit(x, p_sn) {
|
||
document.pms.p_subject.value=document.pms.p_subject.value.replace("“","\"");
|
||
document.pms.p_subject.value=document.pms.p_subject.value.replace("”","\"");
|
||
if (x != 9){
|
||
if (document.pms.p_subject.value == "") {
|
||
alert("제안명을 입력하세요");
|
||
document.pms.p_subject.focus();
|
||
return false;
|
||
}
|
||
if (document.pms.p_contactor.value == "") {
|
||
alert("발생경로를 선택하세요.");
|
||
document.pms.p_contactor.focus();
|
||
return false;
|
||
}
|
||
if (document.pms.p_cli_company_nm.value == "") {
|
||
alert("회사 명을 입력하세요");
|
||
document.pms.p_cli_company_nm.focus();
|
||
return false;
|
||
}
|
||
if (document.pms.p_cli_per_nm.value == "") {
|
||
alert("담당자를 선택하세요");
|
||
document.pms.p_cli_per_nm.focus();
|
||
return false;
|
||
}
|
||
if (document.pms.p_client_type_cd.value == "") {
|
||
alert("업종을 선택하세요");
|
||
document.pms.p_client_type_cd.focus();
|
||
return false;
|
||
}
|
||
if (document.pms.p_cont_cost.value == "") {
|
||
alert("계약액(수주금액)을 입력하세요");
|
||
document.pms.p_cont_cost.focus();
|
||
return false;
|
||
}
|
||
if (document.pms.p_cost_rate.value == "" || document.pms.p_cost_rate.value == "0"){
|
||
alert("예상직접비율을 입력하세요");
|
||
document.pms.p_cost_rate.focus();
|
||
return false;
|
||
}
|
||
|
||
var sum = 0
|
||
var count = document.pms.p_method_cd.length;
|
||
for (var i = 0; i < count; i++) {
|
||
if (document.pms.p_method_cd[i].checked == true){
|
||
sum += 1;
|
||
}
|
||
}
|
||
if (sum == 0 ) {
|
||
alert("조사방법 선택하세요");
|
||
return false;
|
||
}
|
||
}
|
||
var fileCount = 0;
|
||
var fileAttachCcount = 0;
|
||
var upload_Flag = true;
|
||
|
||
$("input:file").each(function (index) {
|
||
var uploadpath = $(this).val();
|
||
fileCount++;
|
||
if (uploadpath.length > 0) {
|
||
fileAttachCcount++;
|
||
var fileExtension = uploadpath.substring(uploadpath.lastIndexOf(".") + 1, uploadpath.length);
|
||
|
||
if (fileExtension.toLowerCase() == "zip" || fileExtension.toLowerCase() == "rar" || fileExtension.toLowerCase() == "arj" || fileExtension.toLowerCase() == "egg") {
|
||
alert("압축 파일은 업로드 할 수 없습니다.");
|
||
upload_Flag = false;
|
||
return false;
|
||
}
|
||
}
|
||
});
|
||
|
||
document.pms.fileCount.value = fileCount;
|
||
|
||
// ##### 제안등록 파일 업로드 체크 ↓ ###########################################
|
||
// 001 :공개입찰, 002 :제안경쟁, 003 :가격입찰, 004 :수의계약
|
||
|
||
if(x=="1"){ // 신규등록
|
||
|
||
|
||
if((pms.p_contactor.value=="001")||(pms.p_contactor.value=="002")){
|
||
if(pms.elements["ATTACH_FILENAME[1]"].value==""){
|
||
alert("[공개입찰] [제안경쟁] 은 [제안서]를 필수적으로 등록해 주셔야 합니다 ");
|
||
return false;
|
||
}
|
||
}
|
||
|
||
|
||
if((pms.p_contactor.value=="003")||(pms.p_contactor.value=="004")){
|
||
if(pms.elements["ATTACH_FILENAME[2]"].value==""){
|
||
alert("[수의계약] [가격입찰] 은 [견적서]를 필수적으로 등록해 주셔야 합니다 ");
|
||
return false;
|
||
}
|
||
}
|
||
}
|
||
|
||
|
||
//-- 업로드할 파일을 선택한경우 체크 ↓ ----------------
|
||
|
||
// RFP 등록파일이 있는경우.. 체크(PDF 파일 가능)
|
||
if(pms.elements["ATTACH_FILENAME[0]"].value!=""){
|
||
if(!fileCheck(pms.elements["ATTACH_FILENAME[0]"].value,"1","RFP등은 ")){return false;}
|
||
}
|
||
|
||
if(pms.elements["ATTACH_FILENAME[1]"].value!=""){
|
||
if(!fileCheck(pms.elements["ATTACH_FILENAME[1]"].value,"0","제안서는 ")){return false;}
|
||
}
|
||
|
||
if(pms.elements["ATTACH_FILENAME[2]"].value!=""){
|
||
if(!fileCheck(pms.elements["ATTACH_FILENAME[2]"].value,"0","견적서는 ")){return false;}
|
||
}
|
||
|
||
//-- 업로드할 파일을 선택한경우 체크 ↑ -----------------
|
||
// ##### 제안등록 파일 업로드 체크 ↑ ###########################################
|
||
|
||
|
||
|
||
if(upload_Flag){
|
||
if(x == 3 || x == 9){
|
||
save(x, p_sn, fileAttachCcount);
|
||
}else{
|
||
if (confirm("제안사항을 저장 하시겠습니까?")) {
|
||
ajaxCallJson("project_code_reg_ajax_2014.asp", null, null, "post", "projectCodeGetComplete("+x+", "+p_sn+", "+fileAttachCcount+")");
|
||
} else {
|
||
return;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
|
||
|
||
//################## 업로드 파일속성 체크 ↓ ########################################
|
||
function fileCheck(xfile,xfile_type,xmsg) {
|
||
|
||
var file = xfile;
|
||
var fileExt = file.substring(file.lastIndexOf('.')+1); //파일의 확장자를 구합니다.
|
||
|
||
if(!file){
|
||
alert( "파일을 선택하여 주세요! ");
|
||
return false;
|
||
}
|
||
|
||
if(xfile_type=="0"){
|
||
if((fileExt.toUpperCase() == "PDF") || (fileExt.toUpperCase() == "TXT") || (fileExt.toUpperCase() == "JPG") || (fileExt.toUpperCase() == "JPEG") || (fileExt.toUpperCase() == "PNG") || (fileExt.toUpperCase() == "GIF") || (fileExt.toUpperCase() == "EXE") || (fileExt.toUpperCase() == "PSD")){
|
||
alert(xmsg+" 엑셀, 워드, 파워포인트, 한글 파일 외에는 업로드 하실수 없습니다 ");
|
||
return false;
|
||
}
|
||
}
|
||
|
||
|
||
|
||
if(xfile_type=="1"){ // PDF 가능
|
||
if((fileExt.toUpperCase() == "TXT") || (fileExt.toUpperCase() == "JPG") || (fileExt.toUpperCase() == "JPEG") || (fileExt.toUpperCase() == "PNG") || (fileExt.toUpperCase() == "GIF") || (fileExt.toUpperCase() == "EXE") || (fileExt.toUpperCase() == "PSD")){
|
||
alert(xmsg+" PDF, 엑셀, 워드, 파워포인트, 한글 파일 외에는 업로드 하실수 없습니다 ");
|
||
return false;
|
||
}
|
||
}
|
||
|
||
|
||
return true;
|
||
|
||
}
|
||
//################## 업로드 파일속성 체크 ↑ ########################################
|
||
|
||
|
||
|
||
function projectCodeGetComplete(x, p_sn, fileAttachCcount){
|
||
if(x == 1){
|
||
document.pms.p_sn.value = ajaxResponse;
|
||
save(x, ajaxResponse, fileAttachCcount);
|
||
}else{
|
||
save(x, p_sn, fileAttachCcount);
|
||
}
|
||
}
|
||
|
||
function chkboxSum(chk) {
|
||
var pms = document.pms;
|
||
var checkItem;
|
||
checkSum = 0;
|
||
|
||
for (i = 0; i < pms.p_method_cd.length; i++) {
|
||
if (pms.p_method_cd[i].checked == true) {
|
||
checkSum++;
|
||
}
|
||
}
|
||
if (checkSum > 7) {
|
||
alert("선택은 7개까지만 가능합니다.");
|
||
chk.checked = false;
|
||
return;
|
||
}
|
||
|
||
}
|
||
|
||
function save(x, p_sn, f_count) {
|
||
var rowCount = 0;
|
||
var saveValidFlag = false;
|
||
|
||
if (f_count > 0) {
|
||
saveValidFlag = true;
|
||
}
|
||
|
||
if (saveValidFlag) {
|
||
var tempSampleCount = 0;
|
||
|
||
document.pms.action = jPath + "system/uploadFiles";
|
||
document.pms.enctype = "multipart/form-data";
|
||
document.pms.encoding = "multipart/form-data";
|
||
document.charset = "UTF-8";
|
||
|
||
|
||
$("#proposalForm").ajaxForm({
|
||
enctype: "multipart/form-data",
|
||
encoding: "multipart/form-data",
|
||
contentType: false,
|
||
processData: false,
|
||
beforeSubmit: showRequest,
|
||
success: function(response, textStatus, jqXHR){
|
||
if (response == "{'success':true}") {
|
||
if (x != 9){
|
||
formDataSave(x, p_sn);
|
||
}else{
|
||
document.pms.enctype = "application/x-www-form-urlencoded";
|
||
document.pms.encoding = "application/x-www-form-urlencoded";
|
||
document.charset = "EUC-KR";
|
||
|
||
document.pms.action = './project_contact_2014.asp?p_sn='+p_sn;
|
||
document.pms.submit();
|
||
}
|
||
}else{
|
||
saveFail();
|
||
}
|
||
},
|
||
error: function () {
|
||
saveFail();
|
||
},
|
||
complete: function () {
|
||
},
|
||
dataType: "text"
|
||
}).submit();
|
||
} else {
|
||
document.pms.enctype = "application/x-www-form-urlencoded";
|
||
if (x == 1)
|
||
{
|
||
<%
|
||
if tmp_admin_chk = "1" then
|
||
%>
|
||
formDataSave(x,p_sn);
|
||
<%
|
||
Else
|
||
%>
|
||
alert("1개 이상의 파일을 첨부 하셔야 합니다.");
|
||
<%
|
||
end if
|
||
%>
|
||
}else{
|
||
if(x != 9) {
|
||
formDataSave(x,p_sn);
|
||
}else{
|
||
alert("1개 이상의 파일을 첨부 하셔야 합니다.");
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
function formDataSave(x, p_sn) {
|
||
document.pms.enctype = "application/x-www-form-urlencoded";
|
||
document.pms.encoding = "application/x-www-form-urlencoded";
|
||
document.charset = "EUC-KR";
|
||
if (x == 1) {
|
||
document.pms.action = 'project_contact_reg_2014.asp';
|
||
document.pms.submit();
|
||
} else if (x == 2) {
|
||
document.pms.action = 'project_contact_update_2014.asp';
|
||
document.pms.submit();
|
||
} else if (x == 3) {
|
||
var project_document_flag = document.pms.project_document_flag.value;
|
||
|
||
if(project_document_flag == ""){
|
||
document.pms.project_document_flag.value = "project_processing";
|
||
document.pms.action = 'project_contact_update_2014.asp';
|
||
document.pms.submit();
|
||
}else{
|
||
var url = 'project_list2_dep_2014.asp?initstatus=init&p_sn=' + p_sn;
|
||
var tmp_width = 1050;
|
||
var tmp_height = 800;
|
||
|
||
var p_method_label = "";
|
||
var p_method_CD = "";
|
||
var p_method_count = 0;
|
||
var count = document.pms.p_method_cd.length;
|
||
for (var i = 0; i < count; i++) {
|
||
if (document.pms.p_method_cd[i].checked == true){
|
||
if(p_method_label != ""){
|
||
p_method_label = p_method_label + ", ";
|
||
}else{
|
||
p_method_CD = document.pms.p_method_cd[i].value;
|
||
}
|
||
|
||
p_method_label = p_method_label + document.pms.p_method_cd[i].nextSibling.nodeValue;
|
||
p_method_count ++;
|
||
}
|
||
}
|
||
|
||
if(document.pms.p_progress_status.value == ""){
|
||
if(p_method_count > 1){
|
||
//if(confirm("프로젝트 계약금액, 직접비예산을\n\n조사방법별("+p_method_label+")로\n\n나누어 개별 프로젝트 형태로 관리 하시겠습니까?")){
|
||
url = url + "&p_sub_type=C&p_method_cd="+p_method_CD;
|
||
//}else{
|
||
// url = url + "&p_sub_type=M";
|
||
//}
|
||
window.open(url,'','left=0,top=0,width='+tmp_width+',height='+tmp_height+',scrollbars=yes,resizable=yes');
|
||
}else{
|
||
url = url + "&p_sub_type=C&p_method_cd="+p_method_CD;
|
||
window.open(url,'','left=0,top=0,width='+tmp_width+',height='+tmp_height+',scrollbars=yes,resizable=yes');
|
||
}
|
||
}else{
|
||
alert("이미 수행계획서 작성 및 검토 중 입니다.");
|
||
}
|
||
document.pms.project_document_flag.value = "";
|
||
}
|
||
} else if (x == 4) {
|
||
document.pms.action = 'project_contact_change_2014.asp?state=D';
|
||
document.pms.submit();
|
||
} else if (x == 5) {
|
||
window.open('./project_contact_drop_reason.asp?p_sn=' + p_sn + '&state=X','','left=400,top=400,width=400,height=400,scrollbars=no,resizable=no');
|
||
//document.pms.action = 'project_contact_change_2014.asp?state=X';
|
||
//document.pms.submit();
|
||
}
|
||
}
|
||
|
||
function saveComplete() {
|
||
alert("저장이 완료 되었습니다.");
|
||
//document.pms.submit();
|
||
}
|
||
|
||
function saveFail() {
|
||
alert("첨부파일 저장 중 오류가 발생 하였습니다.\n관리자에게 문의 바랍니다.");
|
||
}
|
||
|
||
function delete_file(f_id) {
|
||
if (f_id == null) {
|
||
alert("삭제할 파일이 없습니다");
|
||
return false;
|
||
}
|
||
|
||
|
||
if (confirm("정말 삭제하시겠습니까?") == true) { //확인
|
||
var url = jPath + "system/deleteFiles";
|
||
var p_sn = document.pms.p_sn.value;
|
||
|
||
//alert(url + "//" + p_sn + "//" + f_id);
|
||
//ajaxCall(url, {"p_sn": p_sn, "f_id":f_id}, null, "post", deleteComplete());
|
||
|
||
//document.pms.enctype = "application/x-www-form-urlencoded";
|
||
//document.pms.encoding = "application/x-www-form-urlencoded";
|
||
document.pms.action = url;
|
||
document.pms.enctype = "multipart/form-data";
|
||
document.pms.encoding = "multipart/form-data";
|
||
//document.charset = "UTF-8";
|
||
document.pms.del_f_id.value = f_id;
|
||
|
||
$("#proposalForm").ajaxForm({
|
||
data: {"del_f_id" : f_id},
|
||
success: function (data) {
|
||
deleteComplete(data)
|
||
},
|
||
error: function (jqXHR, exception) {
|
||
if(jqXHR.status === 0){
|
||
//alert('Not connect.\n Verify Network.');
|
||
}else if(jqXHR.status == 404){
|
||
//alert('Requested page not found. [404]');
|
||
}else if(jqXHR.status == 500){
|
||
//alert('Internal Server Error [500].');
|
||
}else if(exception === 'parsererror'){
|
||
//alert('Requested JSON parse failed.');
|
||
}else if (exception === 'timeout'){
|
||
//alert('Time out error.');
|
||
}else if (exception === 'abort'){
|
||
//alert('Ajax request aborted.');
|
||
}else {
|
||
//alert('Uncaught Error.\n' + jqXHR.responseText);
|
||
}
|
||
|
||
alert("삭제 중 오류 발생!\n 관리자에게 문의바랍니다. ");
|
||
},
|
||
complete: function () {
|
||
},
|
||
dataType: "text"
|
||
}).submit();
|
||
} else { //취소
|
||
return;
|
||
}
|
||
}
|
||
|
||
|
||
function deleteComplete(data) {
|
||
if (data == "{'success':true}") {
|
||
var p_sn = document.pms.p_sn.value;
|
||
alert("해당 파일이 삭제 되었습니다.");
|
||
document.pms.action = 'project_contact_2014.asp?p_sn=' + p_sn;
|
||
document.pms.submit();
|
||
} else {
|
||
alert("삭제가 되지 않았습니다. \n 관리자에게 문의바랍니다. ");
|
||
}
|
||
}
|
||
|
||
|
||
function download(f_id) {
|
||
url = jPath + "download";
|
||
var p_sn = document.pms.p_sn.value;
|
||
var param = "?p_sn=" + p_sn + "&f_id=" + f_id;
|
||
//파일 다운로드 로그
|
||
ajaxCallJson("/include/download_log.asp", { "f_id": f_id }, null, "POST");
|
||
$(location).attr("href", url + param);
|
||
}
|
||
|
||
function clsit() {
|
||
document.pms.action = 'project_contactlist_2014.asp';
|
||
document.pms.submit();
|
||
}
|
||
|
||
$(document).ready(function (){
|
||
var project_document_flag = document.pms.project_document_flag.value;
|
||
if(project_document_flag == "project_processing"){
|
||
formDataSave(3, document.pms.p_sn.value)
|
||
}
|
||
|
||
});
|
||
|
||
function showRequest(formData, jqForm, options) {
|
||
var queryString = $.param(formData);
|
||
return true;
|
||
}
|
||
|
||
function fileadd(target){
|
||
}
|
||
function fileadd2(target){
|
||
var attach_count = 0;
|
||
var attach_type_count = 0;
|
||
|
||
$(".file_id").each(function (index){
|
||
attach_count++;
|
||
});
|
||
|
||
$(".f_kind_"+target+"_info").each(function (index){
|
||
attach_type_count++;
|
||
});
|
||
|
||
$(".f_file_title").attr("rowspan", attach_count+2);
|
||
$(".f_kind_"+target).attr("rowspan", attach_type_count+1);
|
||
|
||
var attach_file_info_html = '<tr class=f_kind_'+target+'_tr>'+
|
||
'<td class="tit5 f_kind_'+target+'_info">'+
|
||
'<input type="hidden" name="f_id['+attach_count+']" value="" class="file_id"/>'+
|
||
'<input type="hidden" name="f_kind['+attach_count+']" value="'+target+'"/>'+
|
||
'<input type="file" class="uploadFile_btn" name="ATTACH_FILENAME['+attach_count+']" maxlength="1" style="width:220;" /> 저장된 파일 : '+
|
||
'<input type="text" style="width:220;" value="" readonly/> '+
|
||
'<button type="button" style="width:60;" value="삭제" onclick="delete_file(null)">삭제</button>'+
|
||
'</td>'+
|
||
'</tr>';
|
||
$(".f_kind_"+target+"_tr:last").after(attach_file_info_html);
|
||
}
|
||
|
||
function insertAfter(newElement, targetClassName) {
|
||
var targetElement = targetElementArray.item(targetElementArray.length-1);
|
||
var parent = targetElement.parentNode;
|
||
|
||
parent.insertBefore(newElement, targetElement.nextSibling);
|
||
}
|
||
|
||
function direct_input() {
|
||
//alert("클라이언트의 이메일 입력을 권장합니다.");
|
||
if ($("input:checkbox[id='direct_input_company']").is(":checked") == true) {
|
||
$("#direct_input_company").val("true")
|
||
$("input[name='p_cli_company_nm']").attr("readonly", false);
|
||
$("input[name='p_cli_depart']").attr("readonly", false);
|
||
$("input[name='p_cli_per_nm']").attr("readonly", false);
|
||
$("input[name='p_cli_per_com_tel']").attr("readonly", false);
|
||
$("input[name='p_cli_per_tel']").attr("readonly", false);
|
||
$("input[name='p_cli_per_email']").attr("readonly", false);
|
||
document.pms.p_cli_company_nm.focus();
|
||
$("#search_btn").hide();
|
||
} else {
|
||
$("#direct_input_company").val("false")
|
||
$("input[name='p_cli_company_nm']").attr("readonly", true);
|
||
$("input[name='p_cli_depart']").attr("readonly", true);
|
||
$("input[name='p_cli_per_nm']").attr("readonly", true);
|
||
$("input[name='p_cli_per_com_tel']").attr("readonly", true);
|
||
$("input[name='p_cli_per_tel']").attr("readonly", true);
|
||
$("input[name='p_cli_per_email']").attr("readonly", true);
|
||
$("#search_btn").show();
|
||
}
|
||
}
|
||
|
||
function projectCostChange(p_sn){
|
||
var obtain_cost = ($("input[name='p_cont_cost']").val()).replace(/,/g, "");
|
||
if(parseInt(obtain_cost, 10) > 0){
|
||
if (confirm("전체수주(예상)금액을 수정 하시겠습니까?")) {
|
||
ajaxCallJson("project_cost_change_ajax_2014.asp", {"p_sn": p_sn, "cost": obtain_cost}, null, "post", "projectCostChangeComplete()");
|
||
} else {
|
||
return;
|
||
}
|
||
}
|
||
}
|
||
|
||
function projectCostChangeComplete(){
|
||
alert("전체수주(예상)금액을 "+ajaxResponse+"원(VAT별도)으로 수정 하였습니다.");
|
||
}
|
||
|
||
function projectTotalCost(p_sn){
|
||
if(document.pms.p_cli_per_email.value == "" && (document.pms.p_cli_per_com_tel.value == "" || document.pms.p_cli_per_tel.value == "")){
|
||
alert("Client 담당자의 Email과 \n휴대폰번호 또는 회사 전화번호 입력은 필수입니다.");
|
||
return;
|
||
}
|
||
if(document.pms.p_cost_rate_chk.value != "확인" && (document.pms.p_cost_rate.value * 1) >= 55){
|
||
alert("대표이사 확인여부가 미확인 입니다.\n확인 후 다시 진행해주세요.");
|
||
return;
|
||
}
|
||
if(document.pms.p_cost_rate.value == "0"){
|
||
alert("예상직접비율을 입력해주세요.");
|
||
return;
|
||
}
|
||
window.open('./project_total_cost.asp?p_sn=' + p_sn,'','left=300,top=200,width=400,height=250,scrollbars=no,resizable=no');
|
||
}
|
||
|
||
</script>
|
||
<form id="proposalForm" name="pms" method="post">
|
||
<input type="hidden" name="p_sn" value="<%=p_sn %>"/>
|
||
<input type="hidden" name="p_sub_type" value="<%=p_sub_type%>"/>
|
||
<input type="hidden" name="p_progress_status" value="<%=p_progress_status%>"/>
|
||
<input type="hidden" name="state" value="<%=p_state %>"/>
|
||
<input type="hidden" name="user_no" value="<%=Session("User_Number")%>"/>
|
||
<input type="hidden" name="f_work_type" value="001"/>
|
||
<input type="hidden" name="del_f_id" value=""/>
|
||
<input type="hidden" name="fileCount" value=""/>
|
||
<input type="hidden" name="project_document_flag" value="<%=project_document_flag%>"/>
|
||
<input type="hidden" name="initstatus" value="init"/>
|
||
|
||
<input type="hidden" name="attach_file_count" value="<%=attach_file_count%>"/>
|
||
|
||
<!-- 제안등록 리스트 페이지로 돌아갈때 ↓-->
|
||
|
||
<input type="hidden" name="content_list" value="<%=request.form("content_list")%>" />
|
||
<input type="hidden" name="li_search_sub" value="<%=request.form("search_sub")%>" />
|
||
<input type="hidden" name="li_pp_sn" value="<%=request.form("pp_sn")%>" />
|
||
<input type="hidden" name="li_p_method" value="<%=request.form("p_method")%>" />
|
||
<input type="hidden" name="li_p_client_type_cd" value="<%=request.form("p_client_type_cd")%>" />
|
||
<input type="hidden" name="li_p_decide_date_st" value="<%=request.form("p_decide_date_st")%>" />
|
||
<input type="hidden" name="li_p_decide_date_ed" value="<%=request.form("p_decide_date_ed")%>" />
|
||
<input type="hidden" name="li_p_base_money_st" value="<%=replace(request.form("p_base_money_st"),",","")%>" />
|
||
<input type="hidden" name="li_p_base_money_ed" value="<%=replace(request.form("p_base_money_ed"),",","")%>" />
|
||
<input type="hidden" name="li_p_area_part" value="<%=request.form("p_area_part")%>" />
|
||
<input type="hidden" name="li_p_survey_part" value="<%=request.form("p_survey_part")%>" />
|
||
<input type="hidden" name="li_p_intention" value="<%=request.form("p_intention")%>" />
|
||
<input type="hidden" name="li_p_target_part" value="<%=request.form("p_target_part")%>" />
|
||
<input type="hidden" name="li_p_category" value="<%=request.form("p_category")%>" />
|
||
<input type="hidden" name="li_p_export_range" value="<%=request.form("p_export_range")%>" />
|
||
<input type="hidden" name="li_p_sample_st" value="<%=replace(request.form("p_sample_st"),",","")%>" />
|
||
<input type="hidden" name="li_p_sample_ed" value="<%=replace(request.form("p_sample_ed"),",","")%>" />
|
||
<input type="hidden" name="li_p_depart" value="<%=request.form("p_depart")%>" />
|
||
<input type="hidden" name="li_tmp_year" value="<%=request.form("tmp_year")%>" />
|
||
<input type="hidden" name="li_tmp_month" value="<%=request.form("tmp_month")%>" />
|
||
<input type="hidden" name="li_tmp_state" value="<%=request.form("tmp_state")%>" />
|
||
<input type="hidden" name="li_p_subject" value="<%=request.form("p_subject")%>" />
|
||
<input type="hidden" name="li_p_cli_company_nm" value="<%=request.form("p_cli_company_nm")%>" />
|
||
|
||
|
||
<!-- 제안등록 리스트용 ↑-->
|
||
<td width="100%" valign="top">
|
||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||
<tr>
|
||
<!-- 확인 -->
|
||
</tr>
|
||
<tr>
|
||
<td colspan="2" style="padding:20;">
|
||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||
<tr>
|
||
<td style="padding:5 0 0 0;">
|
||
<table width="850" cellpadding="3" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||
<tr>
|
||
<td colspan="3" height="4" align="center" style="font-size:13px;font-weight:bold;font-family:'malgun gothic;'">제안 등록</td>
|
||
</tr>
|
||
<tr>
|
||
<td colspan="3" height="4" ><font color="red"><b>※ 제안서의 진행상태가 [제안] -> [수주] 되는 시점은 <br /> 수행계획서가 결재 완료되는 시점입니다.</b></font></td>
|
||
</tr>
|
||
<tr>
|
||
<td colspan="2" width="15%" align="center" >제안 번호</td>
|
||
<td width="85%" >
|
||
<input type="text" style="width:300;" name="p_sn_show" value="<%=p_sn %>" readonly>
|
||
<% If Right(p_sn, 3) = "000" Then %>
|
||
제안 번호는 저장시 자동 생성 됩니다.
|
||
<% End If %>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td colspan="2" align="center" >제안명</td>
|
||
<td >
|
||
<input type="text" style="width:300;" name="p_subject" value="<%=replace(p_subject,chr(34),""") %>" > <br />
|
||
<font color="green"><b>
|
||
※ 업체명_용역명(업체명과 용역명 사이에 언더바 사용) 예시-> 광동제약_브랜드컨셉 수립</b></font>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td colspan="2" align="center" >발생 경로</td>
|
||
<td >
|
||
<select name="p_contactor">
|
||
<option value="">선택</option>
|
||
<option value="001" <% if p_contactor = "001" then %> selected <% end if %>>공개입찰</option>
|
||
<option value="002" <% if p_contactor = "002" then %> selected <% end if %>>제안경쟁</option>
|
||
<option value="003" <% if p_contactor = "003" then %> selected <% end if %>>가격입찰</option>
|
||
<option value="004" <% if p_contactor = "004" then %> selected <% end if %>>수의계약</option>
|
||
</select>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td rowspan="7" >클라이언트</td>
|
||
</tr>
|
||
<tr>
|
||
<td align="center" >회사</td>
|
||
<td >
|
||
<input type="text" style="width:200;" name="p_cli_company_nm" value="<%=p_cli_company_nm %>" readonly style="cursor:pointer" />
|
||
<img id="search_btn" src='/images/common/btn_smallsrch.gif' style='cursor:pointer' onclick="search('./cli_search_2014.asp','ClientSearch','width=390,height=381,left=100,top=50,scrollbars=yes')" title ='찾기' align="absmiddle" />
|
||
<input type="hidden" name="p_cli_company_cd" value="<%=p_cli_company_cd %>" />
|
||
<input type="hidden" name="p_cli_per_cd" value="<%=p_cli_per_cd %>" />
|
||
<!--<input type="checkbox" name ="direct_input_company" id="direct_input_company" onclick="direct_input()" value="false">직접 입력</input>-->
|
||
</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td align="center" >부서</td>
|
||
<td >
|
||
<input type="text" style="width:300;" name="p_cli_depart" id="p_cli_depart" value="<%=p_cli_depart %>" readonly />
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td align="center" >담당자 이름</td>
|
||
<td >
|
||
<input type="text" style="width:300;" name="p_cli_per_nm" value="<%=p_cli_per_nm %>" readonly>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td align="center" >회사 전화번호</td>
|
||
<td >
|
||
<input type="text" style="width:300;" name="p_cli_per_com_tel" value="<%=p_cli_per_com_tel %>" readonly>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td align="center" >담당자<br /> 휴대폰</td>
|
||
<td >
|
||
<input type="text" style="width:300;" name="p_cli_per_tel" value="<%=p_cli_per_tel %>" readonly>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td align="center" >이메일</td>
|
||
<td >
|
||
<input type="text" style="width:300;" name="p_cli_per_email" value="<%=p_cli_per_email %>" readonly>
|
||
</td>
|
||
</tr>
|
||
|
||
|
||
<tr><td></td></tr>
|
||
|
||
<tr>
|
||
<td colspan="2" align="center" >업종</td>
|
||
<td >
|
||
<select name="p_client_type_cd">
|
||
<option value="">선택</option>
|
||
<%
|
||
q = "SELECT * "
|
||
q = q & "FROM T_CLIENT_TYPE_CD "
|
||
|
||
rsp.Open q, adoConn, 1
|
||
if rsp.RecordCount > 0 then
|
||
for i = 1 to rsp.RecordCount
|
||
%>
|
||
<option value="<%=rsp("p_client_type_cd")%>" <% if p_client_type_cd = rsp("p_client_type_cd") then %> selected <% end if %>> <%=rsp("p_client_type_nm")%></option>
|
||
|
||
<%
|
||
rsp.MoveNext
|
||
next
|
||
end if
|
||
rsp.Close
|
||
%>
|
||
</select>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td colspan="2" align="center" >조사방법</td>
|
||
<td >
|
||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||
<tr>
|
||
<td colspan="5" class="tit9" align="center"<>
|
||
<font color="green"><b>정 량</b></font>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<%
|
||
dim tmp_index
|
||
q = "SELECT * "
|
||
q = q & "FROM T_PROJECT_METHOD_CD "
|
||
q = q & " where p_use_yn = 'Y' " '//-- 2020-10-21 12:01:10
|
||
q = q & " and p_method_yn not in ('17','15') " '//-- 2020-10-21 12:01:10
|
||
q = q & " ORDER BY p_gubn, p_method_nm "
|
||
|
||
'response.write q
|
||
|
||
rsp.Open q, adoConn, 1
|
||
i=0
|
||
j=1
|
||
tmp_index=1
|
||
do while not rsp.eof
|
||
i=i+1
|
||
if rsp("p_gubn") = "1" Then
|
||
%>
|
||
|
||
<td><input type="checkbox" class="none" name="p_method_cd" value="<%=rsp("p_method_cd") %>" onClick="chkboxSum(this)"
|
||
<% if p_method_cd(j) = rsp("p_method_cd") then
|
||
j=j+1 %> checked <% end if %>><%=rsp("p_method_nm") %></input></td>
|
||
|
||
<% if i mod 5 = 0 then %>
|
||
</tr><tr>
|
||
<% end if
|
||
end if
|
||
if rsp("p_gubn") = "2" Then
|
||
if tmp_index <> rsp("p_gubn") Then
|
||
tmp_index = rsp("p_gubn")
|
||
%>
|
||
</tr>
|
||
<tr>
|
||
<td colspan="5" class="tit9" align="center"<>
|
||
<font color="green"><b>정 성</b></font>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<%
|
||
end if
|
||
%>
|
||
<td><input type="checkbox" class="none" name="p_method_cd" value="<%=rsp("p_method_cd") %>" onClick="chkboxSum(this)"
|
||
<% if p_method_cd(j) = rsp("p_method_cd") then
|
||
j=j+1 %> checked <% end if %>><%=rsp("p_method_nm") %></input></td>
|
||
|
||
<% if i mod 5 = 0 then %>
|
||
</tr>
|
||
<tr>
|
||
<% end if
|
||
end if
|
||
if rsp("p_gubn") = "3" Then
|
||
if tmp_index <> rsp("p_gubn") Then
|
||
tmp_index = rsp("p_gubn")
|
||
%>
|
||
</tr>
|
||
<tr>
|
||
<td colspan="5" class="tit9" align="center"<>
|
||
<font color="green"><b>D e s k w o r k</b></font>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<%
|
||
end if
|
||
%>
|
||
<td><input type="checkbox" class="none" name="p_method_cd" value="<%=rsp("p_method_cd") %>" onClick="chkboxSum(this)"
|
||
<% if p_method_cd(j) = rsp("p_method_cd") then
|
||
j=j+1 %> checked <% end if %>><%=rsp("p_method_nm") %></input></td>
|
||
|
||
<% if i mod 5 = 0 then %>
|
||
</tr>
|
||
<% end if
|
||
end if
|
||
rsp.movenext
|
||
loop
|
||
rsp.close
|
||
%>
|
||
</table>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td colspan="2" align="center" >
|
||
예상계약액(수주예상금액)
|
||
</td>
|
||
<td >
|
||
<input class="input" type="text" name="p_cont_cost" value="<%=p_cont_cost %>" style="width:100;text-align:right;" onKeyUp="setFormatPrice()" onkeypress="return event.charCode >= 48 && event.charCode <= 57;"> 원 (<font class="tahoma_red">VAT 별도</font>)
|
||
<!--<img src="/images/common/btn_smallmodif.gif" align="absmiddle" OnClick="javascript:projectCostChange('<%=p_sn%>');" style="CURSOR:pointer;"> -->
|
||
</td>
|
||
</tr>
|
||
<%
|
||
if p_total_cost <> "" then
|
||
%>
|
||
<tr>
|
||
<td colspan="2" align="center" >
|
||
실제계약액(전체수주금액)
|
||
</td>
|
||
<td >
|
||
<%=p_total_cost %> 원 (<font class="tahoma_red">VAT 별도</font>)
|
||
</td>
|
||
</tr>
|
||
<%
|
||
end if
|
||
%>
|
||
<tr>
|
||
<td colspan="2" align="center" > 예상직접비율(%)</td>
|
||
<td >
|
||
<input class="input" type="text" name="p_cost_rate" maxlength="2" size="10" value="<%=p_cost_rate %>" onkeypress="return event.charCode >= 48 && event.charCode <= 57;">
|
||
<% if cint(p_cost_rate) >= 55 then %>( 대표이사 확인여부 : <% response.Write iif(p_cost_rate_chk = "확인", "<b>확인</b>", "<font color='red'>미확인</font>") %> )<% end if %>
|
||
<input class="input" type="hidden" name="p_cost_rate_chk" value="<%=p_cost_rate_chk %>" >
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td colspan="2" align="center" > 결정 예정일</td>
|
||
<td >
|
||
<input class="input" type="text" name="p_decide_date" size="10" value="<%=p_decide_date %>" readonly>
|
||
<img src="/images/common/btn_calendar.jpg" align="absmiddle" OnClick="winopn('/include/calendar.html?actval=p_decide_date')" style="CURSOR:pointer;">
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td colspan="2" align="center" >비고</td>
|
||
<td >
|
||
<textarea style="width:99%;height:60;" name="p_memo"><%=p_memo %></textarea>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td rowspan="<%=(attach_file_count+1)%>" class="tit2 f_file_title" align="center">첨부파일</td>
|
||
<td align="center" ></td>
|
||
<td >
|
||
<font color="red"><b>※ 원본 파일(엑셀, 워드, 파워포인트, 한글) 첨부 가능, pdf파일은 재사용이 불가하므로 첨부 불가</b></font>
|
||
</td>
|
||
</tr>
|
||
|
||
<%
|
||
Dim file_index
|
||
file_index = 0
|
||
''' response.write "f_kind_001_list Length : " & UBound(f_kind_001_list)
|
||
%>
|
||
<tr class="f_kind_001_tr">
|
||
<td align="center" class="tit2 f_kind_001" rowspan="<%=f_kind_001_cnt%>">RFP등</td>
|
||
<td class="tit5 f_kind_001_info">
|
||
<% If UBound(f_kind_001_list) > 0 Then %>
|
||
<input type="hidden" name="f_id[0]" value="<%=f_kind_001_list(0, 0)%>" class="file_id"/>
|
||
<% Else %>
|
||
<input type="hidden" name="f_id[0]" value="" class="file_id"/>
|
||
<% End If %>
|
||
<input type="hidden" name="f_kind[0]" value="001"/>
|
||
<input type="file" class="uploadFile_btn" name="ATTACH_FILENAME[0]" maxlength="1" style="width:220;" />
|
||
|
||
저장된 파일 :
|
||
<% If UBound(f_kind_001_list) > 0 Then %>
|
||
<% if f_kind_001_list(0, 0) <> "" then %>
|
||
<input type="text" onclick="download(<%=f_kind_001_list(0, 0)%>)" style="width:220; color:blue; CURSOR:pointer;" value = "<%=f_kind_001_list(0, 2)%>" readonly/>
|
||
<% if Session("Depart_Code") = p_depart_dep and (isnull(p_progress_status) or p_progress_status = "" ) And p_state = "K" then %>
|
||
<button type="button" style="width:60;" value="삭제" onclick="delete_file(<%=f_kind_001_list(0, 0)%>)">삭제</button>
|
||
<% End if%>
|
||
<% else %>
|
||
<input type="text" style="width:220;" readonly/>
|
||
<% if Session("Depart_Code") = p_depart_dep and (isnull(p_progress_status) or p_progress_status = "" ) And p_state = "K" then %>
|
||
<button type="button" style="width:60;" value="삭제" onclick="delete_file(null)">삭제</button>
|
||
<% End if%>
|
||
<% end if %>
|
||
<% end if %>
|
||
<img src="/images/common/upload/btn_fileadd_nor.gif" align="absmiddle" style="cursor:pointer" onClick="fileadd('001')">
|
||
</td>
|
||
</tr>
|
||
|
||
<% If UBound(f_kind_001_list) > 0 Then
|
||
For i = 1 To UBound(f_kind_001_list) -1
|
||
file_index = file_index + 1 %>
|
||
<tr class=f_kind_<%=f_kind_001_list(i, 1)%>_tr>
|
||
<td class="tit5 f_kind_<%=f_kind_001_list(i, 1)%>_info">
|
||
<input type="hidden" name="f_id[<%=file_index%>]" value="<%=f_kind_001_list(i, 0)%>" class="file_id"/>
|
||
<input type="hidden" name="f_kind[<%=file_index%>]" value="<%=f_kind_001_list(i, 1)%>"/>
|
||
<input type="file" class="uploadFile_btn" name="ATTACH_FILENAME[<%=file_index%>]" maxlength="1" style="width:220;" /> 저장된 파일 :
|
||
<input type="text" onclick="download(<%=f_kind_001_list(i, 0)%>)" style="width:220; color:blue; CURSOR:pointer;" value = "<%=f_kind_001_list(i, 2)%>" readonly/>
|
||
<button type="button" style="width:60;" value="삭제" onclick="delete_file(<%=f_kind_001_list(i, 0)%>)">삭제</button>
|
||
</td>
|
||
</tr>
|
||
<% Next
|
||
End If %>
|
||
|
||
<%
|
||
file_index = file_index + 1
|
||
%>
|
||
<tr class="f_kind_002_tr">
|
||
<td align="center" class="tit2 f_kind_002" rowspan="<%=f_kind_002_cnt%>">제안서</td>
|
||
<td class="tit5 f_kind_002_info">
|
||
<% If UBound(f_kind_001_list) > 0 Then %>
|
||
<input type="hidden" name="f_id[<%=file_index%>]" value="<%=f_kind_002_list(0, 0)%>" class="file_id"/>
|
||
<% Else %>
|
||
<input type="hidden" name="f_id[<%=file_index%>]" value="" class="file_id"/>
|
||
<% End If %>
|
||
<input type="hidden" name="f_kind[<%=file_index%>]" value="002"/>
|
||
<input type="file" class="uploadFile_btn" name="ATTACH_FILENAME[<%=file_index%>]" maxlength="1" style="width:220;" />
|
||
|
||
저장된 파일 :
|
||
<% If UBound(f_kind_002_list) > 0 Then %>
|
||
<% if f_kind_002_list(0, 0) <> "" then %>
|
||
<input type="text" onclick="download(<%=f_kind_002_list(0, 0)%>)" style="width:220; color:blue; CURSOR:pointer;" value = "<%=f_kind_002_list(0, 2)%>" readonly/>
|
||
<% if Session("Depart_Code") = p_depart_dep and (isnull(p_progress_status) or p_progress_status = "" ) And p_state = "K" then %>
|
||
<button type="button" style="width:60;" value="삭제" onclick="delete_file(<%=f_kind_002_list(0, 0)%>)">삭제</button>
|
||
<% End if%>
|
||
<% else %>
|
||
<input type="text" style="width:220;" readonly/>
|
||
<% if Session("Depart_Code") = p_depart_dep and (isnull(p_progress_status) or p_progress_status = "" ) And p_state = "K" then %>
|
||
<button type="button" style="width:60;" value="삭제" onclick="delete_file(null)">삭제</button>
|
||
<% End if%>
|
||
<% end if %>
|
||
<% end if %>
|
||
<img src="/images/common/upload/btn_fileadd_nor.gif" align="absmiddle" style="cursor:pointer" onClick="fileadd('002')">
|
||
<br />발생경로 -> <font color="red"><b>제안경쟁,공개입찰 *첨부필수</b></font>
|
||
</td>
|
||
</tr>
|
||
|
||
<% If UBound(f_kind_002_list) > 0 Then
|
||
For i = 1 To UBound(f_kind_002_list) -1
|
||
file_index = file_index + 1 %>
|
||
<tr class=f_kind_<%=f_kind_002_list(i, 1)%>_tr>
|
||
<td class="tit5 f_kind_<%=f_kind_002_list(i, 1)%>_info">
|
||
<input type="hidden" name="f_id[<%=file_index%>]" value="<%=f_kind_002_list(i, 0)%>" class="file_id"/>
|
||
<input type="hidden" name="f_kind[<%=file_index%>]" value="<%=f_kind_002_list(i, 1)%>"/>
|
||
<input type="file" class="uploadFile_btn" name="ATTACH_FILENAME[<%=file_index%>]" maxlength="1" style="width:220;" /> 저장된 파일 :
|
||
<input type="text" onclick="download(<%=f_kind_002_list(i, 0)%>)" style="width:220; color:blue; CURSOR:pointer;" value = "<%=f_kind_002_list(i, 2)%>" readonly/>
|
||
<button type="button" style="width:60;" value="삭제" onclick="delete_file(<%=f_kind_002_list(i, 0)%>)">삭제</button>
|
||
</td>
|
||
</tr>
|
||
<% Next
|
||
End If %>
|
||
|
||
<%
|
||
file_index = file_index + 1
|
||
%>
|
||
<tr class="f_kind_003_tr">
|
||
<td align="center" class="tit2 f_kind_003" rowspan="<%=f_kind_003_cnt%>">견적서</td>
|
||
<td class="tit5 f_kind_003_info">
|
||
<% If UBound(f_kind_003_list) > 0 Then %>
|
||
<input type="hidden" name="f_id[<%=file_index%>]" value="<%=f_kind_003_list(0, 0)%>" class="file_id"/>
|
||
<% Else %>
|
||
<input type="hidden" name="f_id[<%=file_index%>]" value="" class="file_id"/>
|
||
<% End If %>
|
||
<input type="hidden" name="f_kind[<%=file_index%>]" value="003"/>
|
||
<input type="file" class="uploadFile_btn" name="ATTACH_FILENAME[<%=file_index%>]" maxlength="1" style="width:220;" />
|
||
|
||
저장된 파일 :
|
||
<% If UBound(f_kind_003_list) > 0 Then %>
|
||
<% if f_kind_003_list(0, 0) <> "" then %>
|
||
<input type="text" onclick="download(<%=f_kind_003_list(0, 0)%>)" style="width:220; color:blue; CURSOR:pointer;" value = "<%=f_kind_003_list(0, 2)%>" readonly/>
|
||
<% if Session("Depart_Code") = p_depart_dep and (isnull(p_progress_status) or p_progress_status = "" ) And p_state = "K" then %>
|
||
<button type="button" style="width:60;" value="삭제" onclick="delete_file(<%=f_kind_003_list(0, 0)%>)">삭제</button>
|
||
<% End if%>
|
||
<% else %>
|
||
<input type="text" style="width:220;" readonly/>
|
||
<% if Session("Depart_Code") = p_depart_dep and (isnull(p_progress_status) or p_progress_status = "" ) And p_state = "K" then %>
|
||
<button type="button" style="width:60;" value="삭제" onclick="delete_file(null)">삭제</button>
|
||
<% End if%>
|
||
<% end if %>
|
||
<% end if %>
|
||
<img src="/images/common/upload/btn_fileadd_nor.gif" align="absmiddle" style="cursor:pointer" onClick="fileadd('003')">
|
||
<br />발생경로 -> <font color="red"><b>수의계약,가격입찰 *첨부필수</b></font>
|
||
</td>
|
||
</tr>
|
||
|
||
<% If UBound(f_kind_003_list) > 0 Then
|
||
For i = 1 To UBound(f_kind_003_list) -1
|
||
file_index = file_index + 1 %>
|
||
<tr class=f_kind_<%=f_kind_003_list(i, 1)%>_tr>
|
||
<td class="tit5 f_kind_<%=f_kind_003_list(i, 1)%>_info">
|
||
<input type="hidden" name="f_id[<%=file_index%>]" value="<%=f_kind_003_list(i, 0)%>" class="file_id"/>
|
||
<input type="hidden" name="f_kind[<%=file_index%>]" value="<%=f_kind_003_list(i, 1)%>"/>
|
||
<input type="file" class="uploadFile_btn" name="ATTACH_FILENAME[<%=file_index%>]" maxlength="1" style="width:220;" /> 저장된 파일 :
|
||
<input type="text" onclick="download(<%=f_kind_003_list(i, 0)%>)" style="width:220; color:blue; CURSOR:pointer;" value = "<%=f_kind_003_list(i, 2)%>" readonly/>
|
||
<button type="button" style="width:60;" value="삭제" onclick="delete_file(<%=f_kind_003_list(i, 0)%>)">삭제</button>
|
||
</td>
|
||
</tr>
|
||
<% Next
|
||
End If
|
||
if request("cutmenu") <> "1" then
|
||
%>
|
||
<tr>
|
||
<td align="center" colspan="3" style="padding:10 0 0 0">
|
||
<% if Request("p_sn") = "" then %>
|
||
<img src="/images/project/btn_save.jpg" align="absmiddle" style="cursor:pointer" onClick="subit(1,<%=p_sn %>)"> <!-- 저장하기 -->
|
||
<% else %>
|
||
<img src="/images/common/btn_list.jpg" align="absmiddle" style="cursor:pointer" onClick="clsit()">
|
||
<%
|
||
'같은 부서 or 원성훈 상무님의 경우 1본부 or 이주황 상무님의 경우 2본부 or 프로젝트 진행상태가 없어야 하며 or 상태값이 k이어야 한다.
|
||
if ( _
|
||
Session("Depart_Code") = p_depart_dep _
|
||
or (Session("User_Number") = "20000201" and (p_depart_dep = "31" or p_depart_dep = "32" or p_depart_dep = "33" or p_depart_dep = "34")) _
|
||
or (Session("User_Number") = "20140702" and (p_depart_dep = "35" or p_depart_dep = "36" or p_depart_dep = "37" or p_depart_dep = "38" )) _
|
||
or (Session("User_Number") = "20160603" and (p_depart_dep = "39" or p_depart_dep = "30")) _
|
||
) and (isnull(p_progress_status) or p_progress_status = "" ) And p_state = "K" then %>
|
||
<img src="/images/project/btn_save.jpg" align="absmiddle" style="cursor:pointer" onClick="subit(2,<%=p_sn %>)"> <!-- 수정하기 -->
|
||
|
||
<img src="/images/project/btn_project_plan.jpg" align="absmiddle" style="cursor:pointer" onClick="projectTotalCost('<%=p_sn %>')"> <!-- 수행계획서 작성 -->
|
||
<img src="/images/project/btn_delay2.JPG" align="absmiddle" style="cursor:pointer" onClick="subit(4,<%=p_sn %>)"> <!-- 연기/취소 -->
|
||
<img src="/images/project/btn_drop.JPG" align="absmiddle" style="cursor:pointer" onClick="subit(5,<%=p_sn %>)"> <!-- 탈락 -->
|
||
|
||
<%
|
||
'-- 연기:D 일때도 변경할수 있도록 처리(20170719)
|
||
ElseIf ( _
|
||
Session("Depart_Code") = p_depart_dep _
|
||
or (Session("User_Number") = "20000201" and (p_depart_dep = "31" or p_depart_dep = "32" or p_depart_dep = "33" or p_depart_dep = "34")) _
|
||
or (Session("User_Number") = "20140702" and (p_depart_dep = "35" or p_depart_dep = "36" or p_depart_dep = "37" or p_depart_dep = "38" )) _
|
||
or (Session("User_Number") = "20160603" and (p_depart_dep = "39" or p_depart_dep = "30")) _
|
||
) And p_state = "D" then %>
|
||
<!-- <img src="/images/project/btn_save.jpg" align="absmiddle" style="cursor:pointer" onClick="subit(2,<%=p_sn %>)"> --> <!-- 수정하기 -->
|
||
|
||
<img src="/images/project/btn_project_plan.jpg" align="absmiddle" style="cursor:pointer" onClick="projectTotalCost('<%=p_sn %>')"> <!-- 수행계획서 작성 -->
|
||
<!--<img src="/images/project/btn_delay2.JPG" align="absmiddle" style="cursor:pointer" onClick="subit(4,<%=p_sn %>)">--> <!-- 연기/취소 -->
|
||
<img src="/images/project/btn_drop.JPG" align="absmiddle" style="cursor:pointer" onClick="subit(5,<%=p_sn %>)"> <!-- 탈락 -->
|
||
<br><br><br><font color=red><b><center>현재 [제안 보류] 상태 입니다</center></b></font><br><br>
|
||
|
||
<%
|
||
ElseIf ( _
|
||
(insert_user = "20000201" And p_depart_dep = "0" And ( Session("Depart_Code") = "31" Or Session("Depart_Code") = "32" Or Session("Depart_Code") = "33" Or Session("Depart_Code") = "34")) _
|
||
Or (insert_user = "20140702" And p_depart_dep = "0" And ( Session("Depart_Code") = "35" Or Session("Depart_Code") = "36" Or Session("Depart_Code") = "37" Or Session("Depart_Code") = "38")) _
|
||
Or (insert_user = "20160603" And p_depart_dep = "0" And ( Session("Depart_Code") = "39" or Session("Depart_Code") = "30")) _
|
||
) Then %>
|
||
<img src="/images/project/btn_save.jpg" align="absmiddle" style="cursor:pointer" onClick="subit(2,<%=p_sn %>)"> <!-- 수정하기 -->
|
||
|
||
<img src="/images/project/btn_project_plan.jpg" align="absmiddle" style="cursor:pointer" onClick="projectTotalCost('<%=p_sn %>')"> <!-- 수행계획서 작성 -->
|
||
<img src="/images/project/btn_delay2.JPG" align="absmiddle" style="cursor:pointer" onClick="subit(4,<%=p_sn %>)"> <!-- 연기/취소 -->
|
||
<img src="/images/project/btn_drop.JPG" align="absmiddle" style="cursor:pointer" onClick="subit(5,<%=p_sn %>)"> <!-- 탈락 -->
|
||
<% ElseIf p_state = "X" and _
|
||
Session("Depart_Code") = p_depart_dep _
|
||
or (Session("User_Number") = "20000201" and (p_depart_dep = "31" or p_depart_dep = "32" or p_depart_dep = "33" or p_depart_dep = "34")) _
|
||
or (Session("User_Number") = "20140702" and (p_depart_dep = "35" or p_depart_dep = "36" or p_depart_dep = "37" or p_depart_dep = "38")) or (Session("User_Number") = "20160603" and (p_depart_dep = "39" or p_depart_dep = "30")) and (isnull(p_progress_status) or p_progress_status = "" ) _
|
||
then
|
||
%>
|
||
<img src="/images/project/btn_save.jpg" align="absmiddle" style="cursor:pointer" onClick="subit(2,<%=p_sn %>)"> <!-- 수정하기 -->
|
||
<% end if %>
|
||
|
||
<% if Session("Depart_Code") = "18" then '임시로 수정버튼 보이도록 %>
|
||
<img src="/images/project/btn_f_modify.jpg" align="absmiddle" style="cursor:pointer" onClick="subit(9,<%=p_sn %>)">
|
||
<% end if %>
|
||
|
||
<% end if %>
|
||
</td>
|
||
</tr>
|
||
<% end if %>
|
||
</table>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
<!-- 확인용 --><!--<%=insert_user%>:<%=p_depart_dep%>:<%=Session("Depart_Code")%>-->
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
<% if p_state = "X" then %>
|
||
<div style="z-index:10;position:absolute; top:120px; left:720px;;width:340px;height:320px;background-color:#F8E0E0;">
|
||
<div style="z-index:100;position:absolute; top:5px; left:5px;width:330px;height:310px;background-color:#FFFFFF;">
|
||
<table style="z-index:150;position:absolute; top:25px; left:25px;;width:280px;height:260px;background-color:#E6E6E6;" cellpadding="0" cellspacing="0" border="0">
|
||
<tr>
|
||
<td align="center" style="font-family:'malgun gothic';"><font color="red" size="3"><b>탈락 사유</b></font></td>
|
||
</tr>
|
||
<tr height="180px">
|
||
<td align="LEFT" style="font-family:'malgun gothic';">
|
||
<div style="z-index:200;position:absolute; top:60px; left:3px;width:250px;height:170px;background-color:#FFFFFF;margin:15px;overflow:auto;">
|
||
<%=replace(p_drop_reason, chr(13), "<br>") %>
|
||
</div>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
<% end if %>
|
||
</td>
|
||
<input type="hidden" name="cutmenu" value="<%=request("cutmenu") %>" />
|
||
</form>
|