20260907 :: 김현정 > 260824 PMS 개선 요청_경영문화본부 1차 반영

This commit is contained in:
2026-09-07 14:55:51 +09:00
parent 60caf35218
commit e46f88d6fb
13 changed files with 729 additions and 1725 deletions

View File

@@ -157,12 +157,12 @@ Case "ContactList"
query = query &" isnull(PCode,'') PCode, isnull(PTeam,'') PTeam, p_sn, p_subject, p_cli_company_nm, '' as p_method, ''as p_sample ,"&VbCrlf
query = query &" p_cont_cost, isnull(p_total_cost,0) as p_total_cost, '' as pc_con_cost, '' as sum_est, '' as rate_est, '' as sum_act, '' as rate_act, "&VbCrlf
query = query &" '' as r_est, '' as r_act, '' as f_est, '' as f_act, convert(varchar(10), p_decide_date,23) p_decide_date,"&VbCrlf
query = query &" '' as p_con_date_st, '' as p_con_date_end, p_state, '' as r_user, '' as f_user, p_input_user, p_name, convert(varchar(10), p_input_dt,23) p_input_dt, '' as p_input_progress from"&VbCrlf
query = query &" '' as p_con_date_st, '' as p_con_date_end, p_state, '' as r_user, '' as f_user, p_input_user, p_name, convert(varchar(10), p_input_dt,23) p_input_dt, '' as p_input_progress, p_project_type_cd from"&VbCrlf
query = query &" ("&VbCrlf
query = query &" select f.Code as PCode, f.T_Name as PTeam,T.* from"&VbCrlf
query = query &" ("&VbCrlf
query = query &" select p_sn, p_subject, a.p_cli_company_cd, b.p_cli_company_nm, p_total_cost, p_obtain_cost,"&VbCrlf
query = query &" p_cont_cost, p_decide_date, a.p_input_dt, a.p_input_user, e.p_name,"&VbCrlf
query = query &" p_cont_cost, p_decide_date, a.p_input_dt, a.p_input_user, e.p_name, a.p_project_type_cd,"&VbCrlf
query = query &" case p_state"&VbCrlf
query = query &" when 'E' then '<27><><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD>)'"&VbCrlf
query = query &" when 'K' then '<27><><EFBFBD><EFBFBD>'"&VbCrlf
@@ -205,7 +205,7 @@ Case "ContactList"
query = query &" END "&VbCrLf
query = query &" ELSE '' "&VbCrLf
query = query &" END + "&VbCrLf
query = query &" CASE WHEN left(p_input_complete, 1) = 'x' OR substring(p_input_complete, 2, 1) = 'x' THEN '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>Է<EFBFBD>' ELSE '' END AS p_input_progress "&VbCrLf
query = query &" CASE WHEN left(p_input_complete, 1) = 'x' OR substring(p_input_complete, 2, 1) = 'x' THEN '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>Է<EFBFBD>' ELSE '' END AS p_input_progress, p_project_type_cd "&VbCrLf
query = query &" from"&VbCrlf
query = query &" ("&VbCrlf
query = query &" SELECT p_field_dept, p_is_dept,"&VbCrlf
@@ -235,7 +235,7 @@ Case "ContactList"
query = query &" ISNULL(TPM.p_research_complete, 0) AS p_research_complete,"&VbCrlf
query = query &" ISNULL(TPM.p_field_complete, 0) AS p_field_complete,"&VbCrlf
query = query &" ISNULL(TPM.p_dp_complete, 0) AS p_dp_complete,"&VbCrlf
query = query &" TPM.p_sn, RU.p_name as r_user, FU.p_name as f_user, VP.p_name, TPB.p_input_user, TPM.p_input_dt,"&VbCrlf
query = query &" TPM.p_sn, RU.p_name as r_user, FU.p_name as f_user, VP.p_name, TPB.p_input_user, TPM.p_input_dt, TPB.p_project_type_cd,"&VbCrlf
query = query &" case p_progress_status when '008' then case when p_research_complete='1' and p_field_complete='1' and p_dp_complete='1' then '<27>Ϸ<EFBFBD>' else '<27><><EFBFBD><EFBFBD>' end else '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' end p_state"&VbCrlf
query = query &" FROM project2.dbo.T_PROJECT_METHOD TPM LEFT JOIN"&VbCrlf
query = query &" project2.dbo.T_PROJECT_BASE TPB on TPM.p_sn = TPB.p_sn LEFT JOIN"&VbCrlf
@@ -370,6 +370,7 @@ Case "ContactList"
Contact("p_con_date_st") = rsc("p_con_date_st")
Contact("p_con_date_end") = rsc("p_con_date_end")
Contact("p_state") = rsc("p_state")
Contact("p_project_type_cd") = rsc("p_project_type_cd")
If rsc("p_name") = "" then
Contact("p_input_user") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
Else

View File

@@ -69,6 +69,7 @@
<tr>
<th class="t_label select-filter"><3E>μ<EFBFBD></th>
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></th>
<th class="t_label select-filter">ȸ<><C8B8></th>
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ<EFBFBD></th>
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><></th>
<th class="t_label select-filter">Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ <20><></th>
@@ -105,15 +106,15 @@
</div>
</div>
<!-- /.content -->
<!-- REQUIRED SCRIPTS -->
<script>
<!-- REQUIRED SCRIPTS -->
<script>
function numberPad(n, width) {
n = n + '';
return n.length >= width ? n : new Array(width - n.length + 1).join('0') + n;
}
var ColArr=[];
$(document).ready(function(){
if ($.cookie("p_column") != undefined){
var p_column = $.cookie("p_column").split(',');
for(var i=0; i<p_column.length; i++){
@@ -171,7 +172,7 @@
return commify(data);
};
var colNumCost = function(data, type, row, meta){
return type !== "sort" ? commify(data) + (data != "" ? " <20><>": "") : data;
return data;
};
var colNumRate = function(data, type, row, meta){
return commify(data, true) + (data != "" ? " %": "");
@@ -181,17 +182,19 @@
ajax:{
"type": "POST",
"url": "project_AjaxSelect.asp",
"dataType": "JSON",
"data":{
"Flag":"ContactList",
sdate: function(){ if($("#p_sdate").val() !=undefined){return $("#p_sdate").val()}else{ return now.getFullYear()+"-"+month+"-01" }},
"Flag":"ContactList",
sdate: function(){ if($("#p_sdate").val() !=undefined){return $("#p_sdate").val()}else{ return now.getFullYear()+"-"+month+"-01" }},
edate: function(){ if($("#p_edate").val() !=undefined){return $("#p_edate").val()}else{ return ( new Date( now.getFullYear(), now.getMonth()+1, 0) ).getDate() }},
Depart: function(){return $("#DepartAll").val() }
},
},
},
columns:[
{"data": "Team", "class":"txt dt-body-center details-control"},
{"data": "p_state", "class":"txt dt-body-center"},
{"data": "p_project_type_cd", "class":"txt dt-body-center"},
{"data": "p_sn", "class":"txt dt-body-center"},
{"data": "p_subject", "class":"txt dt-body-left"},
{"data": "p_cli_company_nm", "class":"txt dt-body-center"},
@@ -220,13 +223,13 @@
columnDefs: [
{"className": "dt-head-center dt-body-center psn", "targets": "_all"},
{"visible": false, "targets": ColArr}
],
createRow: function(row, data, index){
$(row).addClass('hov');
},
fixedColumns: {
leftColumns: 3
leftColumns: 4
},
dom:'lBfrtip',
scrollX: true,
@@ -235,7 +238,7 @@
language:lang_kor,
paging:false,
pageLength: 50,
order: [[ 2, "asc" ]],
order: [[ 3, "asc" ]],
cache: false,
buttons: [
{
@@ -253,16 +256,16 @@
postfixButtons: [ 'colvisRestore' ]
},
],
filterDropDown: {
filterDropDown: {
columns: [
{
{
idx: 0
},
{
{
idx: 1
},
{
idx: 5
{
idx: 6
}
],
},
@@ -270,10 +273,10 @@
}
});
$("#ContactList_filterWrapper").append(hh);
$(document).off("click", ".buttons-columnVisibility").on("click", ".buttons-columnVisibility", function(e){
if($(this).hasClass("active")){
var idx = ColArr.indexOf($(this).index());
@@ -285,7 +288,7 @@
}
$.cookie("p_column",ColArr);
});
$(document).off("click", ".buttons-colvisRestore").on("click", ".buttons-colvisRestore", function(){
if(confirm("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>÷<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ʱ<EFBFBD>ȭ <20>˴ϴ<CBB4>.")){
$.removeCookie("p_column");
@@ -340,13 +343,13 @@
});
$(document).off("mouseover", "tbody > tr[role=row]").on("mouseover", "tbody > tr[role=row]", function(e){
$(".DTFC_Cloned tbody > tr[role=row]").eq($(this).index()).css("background-color","#e9e9e9");
$("tbody > tr[role=row]").eq($(this).index()).css("background-color","#e9e9e9");
$(".DTFC_Cloned tbody > tr[role=row]").eq($(this).index()).css("background-color","#e9e9e9");
$("tbody > tr[role=row]").eq($(this).index()).css("background-color","#e9e9e9");
});
$(document).off("mouseout", "tbody > tr[role=row]").on("mouseout", "tbody > tr[role=row]", function(){
$(".DTFC_Cloned tbody > tr[role=row]").eq($(this).index()).css("background-color","#ffffff");
$("tbody > tr[role=row]").eq($(this).index()).css("background-color","#ffffff");
$(".DTFC_Cloned tbody > tr[role=row]").eq($(this).index()).css("background-color","#ffffff");
$("tbody > tr[role=row]").eq($(this).index()).css("background-color","#ffffff");
});
$("#p_sdate").datepicker();
@@ -370,21 +373,21 @@
function TableFilter(){
$("#ContactList_filterSelect0").empty();
$("#ContactList_filterSelect1").empty();
$("#ContactList_filterSelect5").empty();
$("#ContactList_filterSelect6").empty();
$("#ContactList_filterSelect0").append("<option value=''><3E>μ<EFBFBD></option>");
$.each(unique($.map(table.ajax.json().data, function(o){ return o.Team; })).sort(), function(i, o){
$("#ContactList_filterSelect0").append("<option value='"+o+"'>"+o+"</option>");
});
$("#ContactList_filterSelect1").append("<option value=''><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></option>");
$.each(unique($.map(table.ajax.json().data, function(o){ return o.p_state; })).sort(), function(i, o){
$("#ContactList_filterSelect1").append("<option value='"+o+"'>"+o+"</option>");
});
$("#ContactList_filterSelect5").append("<option value=''><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></option>");
$("#ContactList_filterSelect6").append("<option value=''><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></option>");
$.each(unique($.map(table.ajax.json().data, function(o){ return o.p_method; })).sort(), function(i, o){
$("#ContactList_filterSelect5").append("<option value='"+o+"'>"+o+"</option>");
$("#ContactList_filterSelect6").append("<option value='"+o+"'>"+o+"</option>");
});
}

View File

@@ -17,24 +17,42 @@
<table class="table table-sm table-bordered" style="font-size:13px;">
<thead>
<tr>
<td align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD>ڵ<EFBFBD></td>
<td align="center" width="430px"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE></td>
<td align="center"><3E>ۼ<EFBFBD><EFBFBD><EFBFBD></td>
<td align="center"><3E>ۼ<EFBFBD><DBBC><EFBFBD><EFBFBD><EFBFBD></td>
<td align="center" onclick="gwanshic(tbody01,0);" style="cursor:pointer"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD>ڵ<EFBFBD></td>
<td align="center" width="410px" onclick="gwanshic(tbody01,1);" style="cursor:pointer"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE></td>
<td align="center" width="60px" onclick="gwanshic(tbody01,2);" style="cursor:pointer"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td align="center" width="90px" onclick="gwanshic(tbody01,3);" style="cursor:pointer"><3E>μ<EFBFBD><EFBFBD><EFBFBD></td>
<td align="center" width="50px" onclick="gwanshic(tbody01,4);" style="cursor:pointer"><3E>ۼ<EFBFBD><DBBC><EFBFBD></td>
<td align="center" width="90px" onclick="gwanshic(tbody01,5);" style="cursor:pointer"><3E>ۼ<EFBFBD><DBBC><EFBFBD><EFBFBD><EFBFBD></td>
<td align="center" colspan='2'><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td align="center" colspan='2'><3E><><EFBFBD><EFBFBD> <20><>ü<EFBFBD><C3BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20><>ü<EFBFBD><C3BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td align="center" width="430px"><3E><><EFBFBD><EFBFBD></td>
<td align="center" width="350px" onclick="gwanshic(tbody01,10);" style="cursor:pointer"><3E><><EFBFBD><EFBFBD></td>
</tr>
</thead>
<tbody id="tbody01">
<%
Function GetLastApprovalDate(target100)
Dim arr, i, result
result = ""
If target100 <> "" Then
arr = Split(target100, "^^")
For i = UBound(arr) To 0 Step -1
If Trim(arr(i)) <> "" And Trim(arr(i)) <> "/" Then
result = Trim(arr(i))
Exit For
End If
Next
End If
GetLastApprovalDate = result
End Function
sql=""&VbCrlf
sql=sql&" SELECT M.p_sn, p_subject, p_method_cd, d_write_name AS p_name, d_write_date, "&VbCrlf
sql=sql&" SELECT M.p_sn, p.p_subject, VD.T_name AS dept_name, p_method_cd, d_write_name AS p_name, d_write_date, "&VbCrlf
sql=sql&" target3 AS o_child_cost, target1 AS c_child_cost, "&VbCrlf
sql=sql&" target4 AS o_cost, target5 AS c_cost, "&VbCrlf
sql=sql&" target2 AS reason "&VbCrlf
sql=sql&" target2 AS reason, target100 "&VbCrlf
sql=sql&" FROM <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> M LEFT JOIN Document D ON M.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = D.d_no "&VbCrlf
sql=sql&" LEFT JOIN T_PROJECT_METHOD P ON M.p_sn = P.p_child_sn "&VbCrlf
sql=sql&" LEFT JOIN T_PROJECT_BASE TPB ON P.p_sn = TPB.p_sn "&VbCrlf
sql=sql&" LEFT JOIN V_Department VD ON TPB.p_depart_dep = VD.before_t_cd1 "&VbCrlf
sql=sql&" WHERE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD><EFBFBD>׼<EFBFBD><D7BC><EFBFBD>' "&VbCrlf
sql=sql&" AND d_order_cnt = '77' AND del_yes_no = 'no' "&VbCrlf
sql=sql&" AND d_write_date >= CONVERT(varchar(10), DATEADD(MONTH, -3, getdate()), 120) "&VbCrlf
@@ -46,6 +64,8 @@
<tr style="height:25px;">
<td style="text-align:center;" ><a href="javascript:openit('','<%=left(Rs("p_sn"),7)%>','<%=mid(Rs("p_sn"),9,1)%>','<%=Rs("p_method_cd")%>','<%=Rs("p_sn")%>');"><%=Rs("p_sn")%></a></td>
<td style="text-align:left;word-break:keep-all;" ><a href="javascript:openit('','<%=left(Rs("p_sn"),7)%>','<%=mid(Rs("p_sn"),9,1)%>','<%=Rs("p_method_cd")%>','<%=Rs("p_sn")%>');"><%=Rs("p_subject")%></a></td>
<td style="text-align:center;" ><%=GetLastApprovalDate(Rs("target100"))%></td>
<td style="text-align:center;" ><%=Rs("dept_name")%></td>
<td style="text-align:center;" ><%=Rs("p_name")%></td>
<td style="text-align:center;" ><%=Rs("d_write_date")%></td>
<td style="text-align:center;" ><%if Rs("o_child_cost") <> Rs("c_child_cost") then %><%=formatnumber(Rs("o_child_cost"), 0)%><% end if %></td>
@@ -82,6 +102,41 @@
}
winObj=window.open(url, '', 'left=0,top=0,width=' + tmp_width + ',height=' + tmp_height + ',scrollbars=yes,resizable=yes')
}
var index;
var toggleBool;
function gwanshic(tbody, index){
this.index = index;
if(toggleBool){toggleBool = false;}
else{toggleBool = true;}
var datas= new Array();
var tbodyLength = tbody.rows.length;
for(var i=0; i<tbodyLength; i++){datas[i] = tbody.rows[i];}
datas.sort(compareCells);
for(var i=0; i<tbody.rows.length; i++){tbody.appendChild(datas[i]);}
}
function compareCells(a,b) {
var aVal = a.cells[index].innerText;
var bVal = b.cells[index].innerText;
aVal = aVal.replace(/\,/g, '');
bVal = bVal.replace(/\,/g, '');
if(toggleBool){
var temp = aVal;
aVal = bVal;
bVal = temp;
}
if(aVal.match(/^[0-9]+$/) && bVal.match(/^[0-9]+$/)){
return parseFloat(aVal) - parseFloat(bVal);
}else{
if (aVal < bVal){ return -1;}
else if (aVal > bVal){ return 1;}
else{return 0;}
}
}
</script>
</div>
<!-- /.content-wrapper -->

View File

@@ -2604,7 +2604,7 @@
<span style="position:absolute; top: 1px; left: 27px; font-size: 12pt; font-weight:bold;">÷<>ι<EFBFBD><CEB9><EFBFBD></span></div>
<div style="float: left;" ><span style="color:red;" >
* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD> <20><>ü<EFBFBD><C3BC> <20>ڷ<EFBFBD>(<28><><EFBFBD>ȼ<EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>)<29><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>Ե<EFBFBD> ȸ<><C8B8><EFBFBD><EFBFBD> <20>ڻ<EFBFBD><DABB>Դϴ<D4B4>.
<br>&nbsp;&nbsp;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD>࿡ <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϰų<CFB0> <20>ܺη<DCBA> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>մϴ<D5B4>.
<br>&nbsp;&nbsp;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD>࿡ <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϰų<CFB0> <20>ܺη<DCBA> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>մϴ<D5B4>. <strong style="font-weight:600;">(<28>ٿ<EFBFBD><D9BF>ε<EFBFBD> <20>α<EFBFBD> <20><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>͸<EFBFBD><CDB8><EFBFBD>)</strong>
</span>
</div>
<div><img src="/images/project/btn_cost3.jpg" onClick="fileadd()" style='cursor:hand; position:absolute; top: 1px; right: 0px;' align="absmiddle"></div>
@@ -2632,7 +2632,7 @@
query = query & " WHERE f_p_sn = '"&p_sn& "' "
query = query & " AND f_use_yn = 'Y' "
query = query & " AND f_work_type = '001' and f_kind <> '099' "
query = query & " order by f_kind, f_id "
query = query & " order by CASE WHEN f_kind = '010' THEN 0 ELSE 1 END, f_kind, f_id "
Rs.Open query, adoConn, 1
@@ -2649,10 +2649,14 @@
default_kind_code_flag = false
kind_code = ""
i = 1
i = 0
row_cnt = 1
Do While i < 10
kind_code = "00" & CStr(i)
If i = 0 Then
kind_code = "010"
Else
kind_code = "00" & CStr(i)
End If
If attach_file_count > 0 then
If default_kind_code_flag Then
@@ -2680,23 +2684,35 @@
<tr>
<td align="center" ><%=row_cnt%></td>
<td align="center" >
<input type="hidden" name="f_id[<%=row_cnt-1%>]" value="" class="file_id"/>
<select name="f_kind[<%=row_cnt-1%>]">
<option value=""><3E><><EFBFBD><EFBFBD></option>
<% query = "select c_common_code, c_code_name from T_COMMON_CODE_DETAIL where c_kind_code = '001' and c_common_code <> '099' "
rsa.Open query, adoConn, 1
if rsa.RecordCount > 0 then
for j = 1 to rsa.RecordCount %>
<option value="<%=rsa("c_common_code")%>" <% if rsa("c_common_code") = kind_code then %> selected <% end if %>> <%=rsa("c_code_name")%></option>
<% rsa.MoveNext
next
end if
rsa.Close
%>
</select>
<input type="hidden" name="f_id[<%=row_cnt-1%>]" value="" class="file_id"/>
<% If kind_code = "010" Then %>
<input type="hidden" name="f_kind[<%=row_cnt-1%>]" value="010"/>
<input type="text" value="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD>༭" readonly style="border: 0px none0; text-align: center;"/>
<% Else %>
<select name="f_kind[<%=row_cnt-1%>]">
<option value=""><3E><><EFBFBD><EFBFBD></option>
<% query = "select c_common_code, c_code_name from T_COMMON_CODE_DETAIL where c_kind_code = '001' and c_common_code <> '099' "
rsa.Open query, adoConn, 1
if rsa.RecordCount > 0 then
for j = 1 to rsa.RecordCount %>
<option value="<%=rsa("c_common_code")%>" <% if rsa("c_common_code") = kind_code then %> selected <% end if %>> <%=rsa("c_code_name")%></option>
<% rsa.MoveNext
next
end if
rsa.Close
%>
</select>
<% End If %>
</td>
<td align="left" >
<input type="file" class="uploadFile_btn " name="ATTACH_FILENAME[<%=row_cnt-1%>]" maxlength="1" style="width:100%;" />
<% If kind_code = "010" Then %>
<div style="padding-top:4px; color:#000000; line-height:1.5;">
<span style="color:#cc0000;">* '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD>༭', '<27>Ϲݿ뿪<DDBF><EBBFAA><EFBFBD>༭' <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>༭<EFBFBD><E0BCAD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>κ<EFBFBD> ÷<><C3B7></span>
<br><3E><>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ Ư<><C6AF><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>༭<EFBFBD><E0BCAD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>, <20><><EFBFBD><EFBFBD> <20>Ǵ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Ȯ<><C8AE><EFBFBD>Ǿ<EFBFBD><C7BE>ٴ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>Ե<EFBFBD> <20><><EFBFBD><EFBFBD> <20>Ǵ<EFBFBD> <20≯<EFBFBD><CCB8><EFBFBD> <20><><EFBFBD><EFBFBD> ĸ<>ĺ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ü <20><><EFBFBD><EFBFBD>
<br>(Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ<EFBFBD><C6AE>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD>缳<EFBFBD>谳<EFBFBD><E8B0B3>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20>ֿ䳻<D6BF><E4B3BB> <20>ݵ<EFBFBD><DDB5><EFBFBD> <20><><EFBFBD>ԵǾ<D4B5> <20>־<EFBFBD><D6BE><EFBFBD> <20>ԡ<EFBFBD>)
</div>
<% End If %>
</td>
<td align="center" ></td>
<td align="center" ></td>
@@ -2732,6 +2748,13 @@
</td>
<td align="left" >
<input type="file" class="uploadFile_btn" name="ATTACH_FILENAME[<%=row_cnt-1%>]" maxlength="1" style="width:200px;" />
<% If kind_code = "010" Then %>
<div style="padding-top:4px; color:#000000; line-height:1.5;">
<span style="color:#cc0000;">* '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD>༭', '<27>Ϲݿ뿪<DDBF><EBBFAA><EFBFBD>༭' <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>༭<EFBFBD><E0BCAD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>κ<EFBFBD> ÷<><C3B7></span>
<br><3E><>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ Ư<><C6AF><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>༭<EFBFBD><E0BCAD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>, <20><><EFBFBD><EFBFBD> <20>Ǵ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Ȯ<><C8AE><EFBFBD>Ǿ<EFBFBD><C7BE>ٴ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>Ե<EFBFBD> <20><><EFBFBD><EFBFBD> <20>Ǵ<EFBFBD> <20≯<EFBFBD><CCB8><EFBFBD> <20><><EFBFBD><EFBFBD> ĸ<>ĺ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ü <20><><EFBFBD><EFBFBD>
<br>(Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ<EFBFBD><C6AE>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD>缳<EFBFBD>谳<EFBFBD><E8B0B3>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20>ֿ䳻<D6BF><E4B3BB> <20>ݵ<EFBFBD><DDB5><EFBFBD> <20><><EFBFBD>ԵǾ<D4B5> <20>־<EFBFBD><D6BE><EFBFBD> <20>ԡ<EFBFBD>)
</div>
<% End If %>
<input type="text" class='align-middle' <% If Session("teamplace") <> 10 Then %> onclick="download(<%=f_attach_info(f_attach_index, 0)%>)" <% end if %>
<% If CInt(p_research_complete)+CInt(p_field_complete)+CInt(p_dp_complete) < 3 Then %>style="width:480px; color:blue; cursor:pointer;"<%Else %>style="width:540px; color:blue; cursor:pointer;"<%End If %> value = "<%=f_attach_info(f_attach_index, 2)%>" readonly/>
<% If CInt(p_research_complete)+CInt(p_field_complete)+CInt(p_dp_complete) < 3 Then %>
@@ -2760,23 +2783,35 @@
<tr>
<td align="center" ><%=row_cnt%></td>
<td align="center" >
<input type="hidden" name="f_id[<%=row_cnt-1%>]" value="" class="file_id"/>
<select name="f_kind[<%=row_cnt-1%>]" >
<option value=""><3E><><EFBFBD><EFBFBD></option>
<% query = "select c_common_code, c_code_name from T_COMMON_CODE_DETAIL where c_kind_code = '001' and c_common_code <> '099' "
rsa.Open query, adoConn, 1
if rsa.RecordCount > 0 then
for j = 1 to rsa.RecordCount %>
<option value="<%=rsa("c_common_code")%>" <% if rsa("c_common_code") = ("00"&CStr(row_cnt)) then %> selected <% end if %>> <%=rsa("c_code_name")%></option>
<% rsa.MoveNext
next
end if
rsa.Close
%>
</select>
<input type="hidden" name="f_id[<%=row_cnt-1%>]" value="" class="file_id"/>
<% If kind_code = "010" Then %>
<input type="hidden" name="f_kind[<%=row_cnt-1%>]" value="010"/>
<input type="text" value="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD>༭" readonly style="border: 0px none0; text-align: center;"/>
<% Else %>
<select name="f_kind[<%=row_cnt-1%>]" >
<option value=""><3E><><EFBFBD><EFBFBD></option>
<% query = "select c_common_code, c_code_name from T_COMMON_CODE_DETAIL where c_kind_code = '001' and c_common_code <> '099' "
rsa.Open query, adoConn, 1
if rsa.RecordCount > 0 then
for j = 1 to rsa.RecordCount %>
<option value="<%=rsa("c_common_code")%>" <% if rsa("c_common_code") = kind_code then %> selected <% end if %>> <%=rsa("c_code_name")%></option>
<% rsa.MoveNext
next
end if
rsa.Close
%>
</select>
<% End If %>
</td>
<td align="left" >
<input type="file" class="uploadFile_btn" name="ATTACH_FILENAME[<%=row_cnt-1%>]" maxlength="1" style="width:565;" />
<% If kind_code = "010" Then %>
<div style="padding-top:4px; color:#000000; line-height:1.5;">
<span style="color:#cc0000;">* '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD>༭', '<27>Ϲݿ뿪<DDBF><EBBFAA><EFBFBD>༭' <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>༭<EFBFBD><E0BCAD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>κ<EFBFBD> ÷<><C3B7></span>
<br><3E><>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ Ư<><C6AF><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>༭<EFBFBD><E0BCAD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>, <20><><EFBFBD><EFBFBD> <20>Ǵ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Ȯ<><C8AE><EFBFBD>Ǿ<EFBFBD><C7BE>ٴ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>Ե<EFBFBD> <20><><EFBFBD><EFBFBD> <20>Ǵ<EFBFBD> <20≯<EFBFBD><CCB8><EFBFBD> <20><><EFBFBD><EFBFBD> ĸ<>ĺ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ü <20><><EFBFBD><EFBFBD>
<br>(Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ<EFBFBD><C6AE>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD>缳<EFBFBD>谳<EFBFBD><E8B0B3>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20>ֿ䳻<D6BF><E4B3BB> <20>ݵ<EFBFBD><DDB5><EFBFBD> <20><><EFBFBD>ԵǾ<D4B5> <20>־<EFBFBD><D6BE><EFBFBD> <20>ԡ<EFBFBD>)
</div>
<% End If %>
</td>
<td align="center" ></td>
<td align="center" ></td>
@@ -3560,6 +3595,28 @@
var fileAttachCcount = 0;
var upload_Flag = true;
var depart_no = document.pms.depart_no.value;
var contractAttachFlag = false;
$("input[name^='f_kind'][value='010']").each(function () {
var contractFileIndex = $(this).attr("name").replace("f_kind[", "").replace("]", "");
var contractFileId = $("input[name='f_id[" + contractFileIndex + "]']").val();
var contractUploadPath = $("input[name='ATTACH_FILENAME[" + contractFileIndex + "]']").val();
if ((contractFileId != null && contractFileId != "") || (contractUploadPath != null && contractUploadPath.length > 0)) {
contractAttachFlag = true;
return false;
}
});
if (!contractAttachFlag) {
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD>༭<EFBFBD><E0BCAD> ÷<><C3B7><EFBFBD>Ͻʽÿ<CABD>.");
$("input[name^='f_kind'][value='010']").each(function () {
var contractFileIndex = $(this).attr("name").replace("f_kind[", "").replace("]", "");
$("input[name='ATTACH_FILENAME[" + contractFileIndex + "]']").focus();
return false;
});
return;
}
$("input:file").each(function (index) {
var uploadpath = $(this).val();

View File

@@ -145,7 +145,7 @@ if command = "excel" then
end if
'======================================================
%>
<form name="pms" method="post">
<form name="pms" method="post" onsubmit="chkit('1'); return false;">
<input type="hidden" name="project_old_new_check" id= "project_old_new_check" value="<%=project_old_new %>">
<input type="hidden" name="p_types1_check" id= "p_types1_check" value="<%=p_types1%>">
<input type="hidden" name="p_types2_check" id= "p_types2_check" value="<%=p_types2%>">
@@ -521,7 +521,7 @@ end if
<tr>
<td width="50" align=right>&nbsp;</td>
<td align=center>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<img src="/images/common/btn_search.jpg" align="absmiddle" style="cursor:pointer" onClick="chkit('1')">
<input type="image" src="/images/common/btn_search.jpg" align="absmiddle" style="cursor:pointer" alt="Search">
<!--&nbsp;<img src="/images/common/btn_cancel.jpg" align="absmiddle" style="cursor:pointer" onClick="reloadit()"> -->
</td>
<td width="30" align=right><img src="/images/common/excel_down.png" width="40px" onclick='javascript:{excel_export();}' style='CURSOR:pointer;' title ='<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ޱ<EFBFBD>'></td>
@@ -547,23 +547,23 @@ end if
query = query & " ( "
query = query & " select p_sn, p_subject, isnull(p_depart,'') as p_depart, p_method, p_cli_company, p_conv_date, c_code_name, "
query = query & " count(f_id) as f_id, convert(varchar(10),count(f_file_name))+'<27><>' as f_file_name, "
query = query & " '' as p_name, "
query = query & " isnull(p_name, '') as p_name, "
query = query & " '' as f_attach_date, p_sub_type, p_method_cd, p_child_sn, p_con_date_end, p_total_cost, p_cont_cost, p_sample "
query = query & " FROM ( "
query = query & " SELECT TPB.p_sn as p_sn, ISNULL(TPM.p_subject, TPB.p_subject) as p_subject, "
query = query & " isnull(D.T_name, '') as p_depart, "
query = query & " TPMC.p_method_nm as p_method, TCC.p_cli_company_nm as p_cli_company, "
query = query & " TPM.p_decide_date as p_conv_date, '' as c_code_name, TSA.f_id as f_id, TSA.f_file_name as f_file_name, TSA.f_input_user as f_input_user, "
query = query & " TPM.p_con_date_st as p_conv_date, '' as c_code_name, TSA.f_id as f_id, TSA.f_file_name as f_file_name, TSA.f_input_user as f_input_user, "
query = query & " per.p_name as p_name, "
query = query & " TSA.f_attach_date as f_attach_date, TPM.p_sub_type, TPM.p_method_cd, isnull(TPM.p_child_sn,tpb.p_sn) as p_child_sn, TPM.p_con_date_end, isnull(TPB.p_total_cost, '0') as p_total_cost, isnull(TPM.p_cont_cost, '0') as p_cont_cost, ISNULL(TPM.p_sample, '0') as p_sample "
query = query & " FROM T_PROJECT_BASE TPB "
query = query & " LEFT OUTER JOIN T_PROJECT_METHOD TPM ON TPM.p_sn = TPB.p_sn /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> */ "
query = query & " LEFT OUTER JOIN T_PROJECT_METHOD_CD TPMC ON TPM.p_method_cd = TPMC.p_method_cd /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20≯<EFBFBD> <20><><EFBFBD><EFBFBD> */ "
query = query & " LEFT OUTER JOIN V_Department D ON TPM.p_rsch_dept = D.before_t_cd1 /* <20>μ<EFBFBD><CEBC>ڵ<EFBFBD> */ "
query = query & " LEFT OUTER JOIN V_Department D ON TPB.p_depart_dep = D.before_t_cd1 /* <20>μ<EFBFBD><CEBC>ڵ<EFBFBD> */ "
query = query & " LEFT OUTER JOIN V_CLIENT_COMP TCC ON TPB.p_cli_company_cd = TCC.p_cli_company_cd /* ȸ<><C8B8><EFBFBD>ڵ<EFBFBD> <20><><EFBFBD><EFBFBD> */ "
query = query & " LEFT OUTER JOIN T_SYSTEM_ATTACH TSA ON TPB.p_sn = TSA.f_p_sn AND f_use_yn = 'y' "
query = query & " LEFT OUTER JOIN T_COMMON_CODE_DETAIL TCCD ON TSA.f_work_type = TCCD.c_kind_code AND TSA.f_kind = TCCD.c_common_code /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> */ "
query = query & " LEFT OUTER JOIN person PER ON TSA.f_input_user = PER.P_NO "
query = query & " LEFT OUTER JOIN person PER ON TPB.p_input_user = PER.P_NO "
query = query & " WHERE TPB.p_sn <> '' "
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ<EFBFBD>--------------------------------------------------
if p_sn <> "" then
@@ -659,7 +659,7 @@ end if
query = query & " SELECT p.p_sn as p_sn, p.p_subject as p_subject, "
query = query & " isnull(d.T_Name, '') as p_depart, "
query = query & " pm.name1 as p_method, C.c_name as p_cli_company, "
query = query & " p.p_conv_date as p_conv_date, TCCD.c_code_name as c_code_name, TSA.f_id as f_id, TSA.f_file_name as f_file_name, "
query = query & " p.p_convdate_st as p_conv_date, TCCD.c_code_name as c_code_name, TSA.f_id as f_id, TSA.f_file_name as f_file_name, "
query = query & " TSA.f_input_user as f_input_user, "
query = query & " '' as p_name, "
query = query & " TSA.f_attach_date as f_attach_date, '' as p_sub_type, '' as p_method_cd, '' as p_child_sn ,p.p_convdate_end as p_con_date_end, '' as p_total_cost, p.p_budget as p_cont_cost, ISNULL(P.p_sample, '0') as p_sample "
@@ -809,7 +809,7 @@ end if
query = query & " AND p_sn = '' "
end if
query = query & " ) T "
query = query & " group by p_sn, p_subject, p_depart, p_method, p_cli_company, p_conv_date, c_code_name, p_sub_type, p_method_cd, p_child_sn, p_con_date_end, "
query = query & " group by p_sn, p_subject, p_depart, p_method, p_cli_company, p_conv_date, c_code_name, p_name, p_sub_type, p_method_cd, p_child_sn, p_con_date_end, "
query = query & " p_total_cost, p_cont_cost, p_sample"
query = query & " ) A1 "
query = query & " left join " '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȹ<EFBFBD><C8B9>
@@ -1019,7 +1019,7 @@ end if
<td width="50" align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td width="100" align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td width="120" align="center" height="24" >Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ</td>
<td width="65" align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td width="65" align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td width="65" align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td width="65" align="center" height="24" ><3E><>ü<EFBFBD><C3BC><EFBFBD>ֱݾ<D6B1></td>
<td width="65" align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>