최초커밋
This commit is contained in:
307
project/project_ing_info.asp
Normal file
307
project/project_ing_info.asp
Normal file
@@ -0,0 +1,307 @@
|
||||
<!-- #include virtual = "include/header.asp" -->
|
||||
<!-- #include virtual = "include/left.asp" -->
|
||||
<%
|
||||
'-- ~<7E><><EFBFBD><EFBFBD>
|
||||
dim s_date_st
|
||||
if request.form("s_date_st")="" then
|
||||
s_date_st=left(date(),7)&"-01"
|
||||
else
|
||||
s_date_st=request.form("s_date_st")
|
||||
end if
|
||||
|
||||
'-- ~<7E><><EFBFBD><EFBFBD>
|
||||
dim s_date_end
|
||||
if request.form("s_date_end")="" then
|
||||
s_date_end=left(date(),7)&"-31"
|
||||
else
|
||||
s_date_end=request.form("s_date_end")
|
||||
end if
|
||||
|
||||
|
||||
dim ttgubn
|
||||
if request.form("ttgubn")="" then
|
||||
ttgubn="<22>ǻ<EFBFBD><C7BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
else
|
||||
ttgubn=request.form("ttgubn")
|
||||
end if
|
||||
%>
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
<div class="content-header">
|
||||
<h1><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></h1>
|
||||
</div>
|
||||
<!-- /.content-header -->
|
||||
<!-- Main content -->
|
||||
<div class="content-body">
|
||||
<div class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-12" onclick="javascript:try{if(winObj.window.focus()){}}catch(exception){}" ondblclick="javascript:try{if(winObj.window.focus()){}}catch(exception){}">
|
||||
<form method='post' id='xform' name='xform'>
|
||||
<table class='w-100'>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td align="right">
|
||||
<select name="ttgubn" >
|
||||
<option value="<22>ǻ<EFBFBD><C7BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" <%if ttgubn="<22>ǻ<EFBFBD><C7BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" then %> selected <%end if %> ><3E>ǻ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></option>
|
||||
<option value="DP<44><50><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" <%if ttgubn="DP<44><50><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" then %> selected <%end if %> >DP <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></option>
|
||||
<option value="OT<4F><54>" <%if ttgubn="OT<4F><54>" then %> selected <%end if %> >OT <20><></option>
|
||||
</select>
|
||||
<input type="text" style="width:120;text-align:center;CURSOR: pointer;" value="<%=s_date_st%>" name="s_date_st" readonly OnClick="winopn_two('../include/calendar.html?actval=s_date_st')">
|
||||
<img src="/images/common/btn_calendar.jpg" align="absmiddle" OnClick="winopn_two('../include/calendar.html?actval=s_date_st')" style="cursor:pointer;" >
|
||||
~
|
||||
<input type="text" style="width:120;text-align:center;CURSOR: pointer;" value="<%=s_date_end%>" name="s_date_end" readonly OnClick="winopn_two('../include/calendar.html?actval=s_date_end')">
|
||||
<img src="/images/common/btn_calendar.jpg" align="absmiddle" OnClick="winopn_two('../include/calendar.html?actval=s_date_end')" style="cursor:pointer;">
|
||||
<a href="javascript:search_go(xform);"><img src="/images/common/btn_smallsrch.gif" /></a>
|
||||
<a href="javascript:excel_go(xform);"><img src="/images/common/btn_smallexcel.gif" /></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table class="table table-sm table-bordered" style='font-size:13px;'>
|
||||
<thead>
|
||||
<tr>
|
||||
<td onclick="gwanshic(tbody01,0);" class="text-center" style="cursor:pointer">No</td>
|
||||
<td onclick="gwanshic(tbody01,1);" class="text-center" style="cursor:pointer"><3E><>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD><br><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ</td>
|
||||
<td onclick="gwanshic(tbody01,3);" class="text-center" style="cursor:pointer"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE></td>
|
||||
<td onclick="gwanshic(tbody01,4);" class="text-center" style="cursor:pointer"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȳ</td>
|
||||
<td onclick="gwanshic(tbody01,5);" class="text-center" style="cursor:pointer"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td onclick="gwanshic(tbody01,6);" class="text-center" style="cursor:pointer"><3E><><EFBFBD><EFBFBD><br><3E><><EFBFBD><EFBFBD></td>
|
||||
<td onclick="gwanshic(tbody01,7);" class="text-center" style="cursor:pointer"><3E>ǻ<EFBFBD><br><3E><><EFBFBD><EFBFBD></td>
|
||||
<td onclick="gwanshic(tbody01,8);" class="text-center" style="cursor:pointer"><3E>ڵ<EFBFBD><br><3E><><EFBFBD><EFBFBD></td>
|
||||
<td onclick="gwanshic(tbody01,9);" class="text-center" style="cursor:pointer"><3E><>ġ<br><3E><><EFBFBD><EFBFBD></td>
|
||||
<td onclick="gwanshic(tbody01,10);" class="text-center" style="cursor:pointer">DP<br><3E><><EFBFBD><EFBFBD></td>
|
||||
<td onclick="gwanshic(tbody01,11);" class="text-center" style="cursor:pointer">ǥ<><C7A5><EFBFBD><EFBFBD></td>
|
||||
<td onclick="gwanshic(tbody01,12);" class="text-center" style="cursor:pointer">OT<4F><54></td>
|
||||
<td onclick="gwanshic(tbody01,13);" class="text-center" style="cursor:pointer"><3E>ǻ<EFBFBD><br><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td onclick="gwanshic(tbody01,14);" class="text-center" style="cursor:pointer">DP<br><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="tbody01">
|
||||
<%
|
||||
sql=""&VbCrlf
|
||||
sql=sql&" select AAA.* from "&VbCrlf
|
||||
sql=sql&" ( "&VbCrlf
|
||||
sql=sql&" select "&VbCrlf
|
||||
sql=sql&" C5.team_name, "&VbCrlf
|
||||
sql=sql&" C0.p_rsch_name, "&VbCrlf
|
||||
sql=sql&" C1.p_sv_name, "&VbCrlf
|
||||
sql=sql&" C2.p_code_name, "&VbCrlf
|
||||
sql=sql&" C3.p_punch_name, "&VbCrlf
|
||||
sql=sql&" C4.p_dp_name, "&VbCrlf
|
||||
sql=sql&" AA.* "&VbCrlf
|
||||
sql=sql&" from "&VbCrlf
|
||||
sql=sql&" ( "&VbCrlf
|
||||
sql=sql&" select "&VbCrlf
|
||||
sql=sql&" A.p_child_sn as <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD>ڵ<EFBFBD>, "&VbCrlf
|
||||
sql=sql&" A.p_subject as <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE>, "&VbCrlf
|
||||
sql=sql&" A.p_method_cd, "&VbCrlf
|
||||
sql=sql&" B.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, "&VbCrlf
|
||||
|
||||
sql=sql&" case when A.p_rsch_1_a<>'' then A.p_rsch_1_a "&VbCrlf
|
||||
sql=sql&" when A.p_rsch_2_a<>'' then A.p_rsch_2_a "&VbCrlf
|
||||
sql=sql&" when A.p_rsch_3_a<>'' then A.p_rsch_3_a "&VbCrlf
|
||||
sql=sql&" when A.p_rsch_4_a<>'' then A.p_rsch_4_a else '' end as p_rsch, "&VbCrlf
|
||||
|
||||
sql=sql&" case when A.p_sv_1<>'' then A.p_sv_1 "&VbCrlf
|
||||
sql=sql&" when A.p_sv_2<>'' then A.p_sv_2 "&VbCrlf
|
||||
sql=sql&" when A.p_sv_3<>'' then A.p_sv_3 "&VbCrlf
|
||||
sql=sql&" when A.p_sv_4<>'' then A.p_sv_4 else '' end as p_sv, "&VbCrlf
|
||||
|
||||
sql=sql&" case when A.p_code_1<>'' then A.p_code_1 "&VbCrlf
|
||||
sql=sql&" when A.p_code_2<>'' then A.p_code_2 "&VbCrlf
|
||||
sql=sql&" when A.p_code_3<>'' then A.p_code_3 "&VbCrlf
|
||||
sql=sql&" when A.p_code_4<>'' then A.p_code_4 else '' end as p_code, "&VbCrlf
|
||||
|
||||
sql=sql&" case when A.p_punch_1<>'' then A.p_punch_1 "&VbCrlf
|
||||
sql=sql&" when A.p_punch_2<>'' then A.p_punch_2 "&VbCrlf
|
||||
sql=sql&" when A.p_punch_3<>'' then A.p_punch_3 "&VbCrlf
|
||||
sql=sql&" when A.p_punch_4<>'' then A.p_punch_4 else '' end as p_punch, "&VbCrlf
|
||||
|
||||
sql=sql&" case when A.p_dp_1<>'' then A.p_dp_1 "&VbCrlf
|
||||
sql=sql&" when A.p_dp_2<>'' then A.p_dp_2 "&VbCrlf
|
||||
sql=sql&" when A.p_dp_3<>'' then A.p_dp_3 "&VbCrlf
|
||||
sql=sql&" when A.p_dp_4<>'' then A.p_dp_4 else '' end as p_dp, "&VbCrlf
|
||||
sql=sql&" A.p_sample as ǥ<><C7A5><EFBFBD><EFBFBD>, "&VbCrlf
|
||||
sql=sql&" A.p_ot_date as OT<4F><54>, "&VbCrlf
|
||||
sql=sql&" A.p_field_date_end as <20>ǻ<EFBFBD><C7BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, "&VbCrlf
|
||||
sql=sql&" A.p_dp_date_end as DP<44><50><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, "&VbCrlf
|
||||
sql=sql&" A.p_rsch_dept as <20><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD>, "&VbCrlf
|
||||
sql=sql&" A.p_progress_status as <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȳ "&VbCrlf
|
||||
' sql=sql&" -- ,A.* "
|
||||
sql=sql&" from "&VbCrlf
|
||||
sql=sql&" ( "&VbCrlf
|
||||
sql=sql&" select * from [dbo].[T_PROJECT_METHOD] "&VbCrlf
|
||||
sql=sql&" where p_complete_date is null "&VbCrlf
|
||||
sql=sql&" ) A "&VbCrlf
|
||||
sql=sql&" left join "&VbCrlf
|
||||
sql=sql&" (select p_method_cd, p_method_nm as <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> from [dbo].[T_PROJECT_METHOD_CD]) B "&VbCrlf
|
||||
sql=sql&" on A.p_method_cd=B.p_method_cd "&VbCrlf
|
||||
sql=sql&" ) AA "&VbCrlf
|
||||
|
||||
sql=sql&" left join " &VbCrlf
|
||||
sql=sql&" (select p_no, p_name as p_rsch_name from person) C0 "&VbCrlf'##### <20><><EFBFBD><EFBFBD>
|
||||
sql=sql&" on AA.p_rsch=C0.p_no "&VbCrlf
|
||||
|
||||
sql=sql&" left join "&VbCrlf
|
||||
sql=sql&" (select p_no, p_name as p_sv_name from person) C1 "&VbCrlf'##### <20>ǻ<EFBFBD>
|
||||
sql=sql&" on AA.p_sv=C1.p_no "&VbCrlf
|
||||
|
||||
sql=sql&" left join "&VbCrlf
|
||||
sql=sql&" (select p_no, p_name as p_code_name from person) C2 "&VbCrlf '##### <20>ڵ<EFBFBD>
|
||||
sql=sql&" on AA.p_code=C2.p_no "&VbCrlf
|
||||
|
||||
sql=sql&" left join "&VbCrlf
|
||||
sql=sql&" (select p_no, p_name as p_punch_name from person) C3 "&VbCrlf '##### <20><>ġ
|
||||
sql=sql&" on AA.p_code=C3.p_no "&VbCrlf
|
||||
|
||||
sql=sql&" left join "&VbCrlf
|
||||
sql=sql&" (select p_no, p_name as p_dp_name from person) C4 "&VbCrlf '##### dp
|
||||
sql=sql&" on AA.p_dp=C4.p_no "&VbCrlf
|
||||
|
||||
sql=sql&" left join "&VbCrlf
|
||||
sql=sql&" (select team_cd,team_name from TEAM_GROUP) C5 "&VbCrlf
|
||||
sql=sql&" on AA.<2E><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD>=C5.team_cd "&VbCrlf
|
||||
|
||||
sql=sql&" ) AAA "&VbCrlf
|
||||
'-- sql=sql&" where AAA.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD>ڵ<EFBFBD><>'' "
|
||||
sql=sql&" where len(isnull(AAA.OT<4F><54>,''))+len(isnull(AAA.<2E>ǻ<EFBFBD><C7BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,''))+len(isnull(AAA.DP<44><50><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,''))>0 "&VbCrlf
|
||||
sql=sql&" and left(AAA."&ttgubn&",10) between '"&s_date_st&"' and '"&s_date_end&"' "&VbCrlf
|
||||
|
||||
select case ttgubn
|
||||
case "<22>ǻ<EFBFBD><C7BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" : sql=sql&" order by AAA.<2E>ǻ<EFBFBD><C7BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> asc "&VbCrlf
|
||||
case "DP<44><50><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" : sql=sql&" order by AAA.DP<44><50><EFBFBD><EFBFBD><EFBFBD><EFBFBD> asc "&VbCrlf
|
||||
case "OT<4F><54>" : sql=sql&" order by AAA.OT<4F><54> asc "&VbCrlf
|
||||
end select
|
||||
|
||||
|
||||
|
||||
|
||||
Rs.Open sql, adoConn, 1
|
||||
dim acnt : acnt=1
|
||||
dim pro
|
||||
dim pro_style
|
||||
while not Rs.Eof
|
||||
Select case Rs("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȳ")
|
||||
case "006"
|
||||
pro="<22>μ<EFBFBD><CEBC><EFBFBD><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7><EFBFBD>"
|
||||
pro_style=""
|
||||
case "007"
|
||||
pro="<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
pro_style=""
|
||||
case "008"
|
||||
pro="<22><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD>"
|
||||
pro_style="color:red;"
|
||||
End Select
|
||||
%>
|
||||
<tr>
|
||||
<td style="text-align:center;" ><%=acnt%></td>
|
||||
<td style="text-align:center;" ><%=Rs("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD>ڵ<EFBFBD>")%></td>
|
||||
<td style="text-align:left;" ><% if Rs("<22><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD>") = session("depart_code") OR Cint(session("depart_code")) < 20 then %>
|
||||
<a href="javascript:openit('','<%=left(Rs("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD>ڵ<EFBFBD>"),7)%>','<%=mid(Rs("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD>ڵ<EFBFBD>"),9,1)%>','<%=Rs("p_method_cd")%>','<%=Rs("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD>ڵ<EFBFBD>")%>');" ><%=Rs("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE>")%></a><%else
|
||||
%><%=Rs("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE>")%><%End IF%>
|
||||
</td>
|
||||
<td style="text-align:center;<%=pro_style %>" ><%=pro%></td>
|
||||
<td style="text-align:center;" ><%=Rs("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")%></td>
|
||||
<td style="text-align:center;" ><%=Rs("p_rsch_name")%></td>
|
||||
<td style="text-align:center;" ><%=Rs("p_sv_name")%></td>
|
||||
<td style="text-align:center;" ><%=Rs("p_code_name")%></td>
|
||||
<td style="text-align:center;" ><%=Rs("p_punch_name")%></td>
|
||||
<td style="text-align:center;" ><%=Rs("p_dp_name")%></td>
|
||||
<% If isnull(Rs("ǥ<><C7A5><EFBFBD><EFBFBD>")) Then %>
|
||||
<td style="text-align:right;" >-- </td>
|
||||
<% Else %>
|
||||
<td style="text-align:right;" ><%=formatnumber(Rs("ǥ<><C7A5><EFBFBD><EFBFBD>"),0)%> </td>
|
||||
<% End If %>
|
||||
<td style="text-align:center;" ><%=left(Rs("OT<4F><54>"),10)%></td>
|
||||
<td style="text-align:center;" ><%=left(Rs("<22>ǻ<EFBFBD><C7BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"),10)%></td>
|
||||
<td style="text-align:center;" ><%=left(Rs("DP<44><50><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"),10)%></td>
|
||||
</tr>
|
||||
<%
|
||||
acnt=acnt+1
|
||||
Rs.movenext
|
||||
Wend
|
||||
Rs.Close
|
||||
%>
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.content -->
|
||||
<!-- REQUIRED SCRIPTS -->
|
||||
<script>
|
||||
function openit(a, z, x, y, v) {
|
||||
var url = 'project_list2_dep_2014.asp?p_sn=' + z;
|
||||
var tmp_width = 1400;
|
||||
var tmp_height = 800;
|
||||
if (v != "") {
|
||||
url = url + "&p_sub_type=" + x + "&p_method_cd=" + y + "&p_child_sn=" + v;
|
||||
} else {
|
||||
url = url + "&p_sub_type=" + x + "&p_method_cd=" + y;
|
||||
}
|
||||
winObj=window.open(url, '', 'left=0,top=0,width=' + tmp_width + ',height=' + tmp_height + ',scrollbars=yes,resizable=yes');
|
||||
}
|
||||
|
||||
function winopn_two(urlstr) {
|
||||
var pwidth=250;
|
||||
var pheight=300;
|
||||
var tleft=(screen.width-pwidth)/2;
|
||||
var ttop=(screen.height-pheight)/2;
|
||||
winObj=window.open(urlstr, "wins2", "left="+tleft+", top="+ttop+", menubar=no, location=no, status=no, toolbar=no, width="+pwidth+", height="+pheight+", scrollbars=yes ,resizable=no");
|
||||
winObj.focus();
|
||||
}
|
||||
|
||||
function search_go(x){
|
||||
x.target="";
|
||||
x.action="project_ing_info.asp";
|
||||
x.submit();
|
||||
}
|
||||
|
||||
function excel_go(x){
|
||||
x.target="";
|
||||
x.action="project_ing_info_excel.asp";
|
||||
x.submit();
|
||||
}
|
||||
|
||||
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 -->
|
||||
<!-- #include virtual = "include/footer.asp" -->
|
||||
Reference in New Issue
Block a user