<% '-- ~부터 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 '-- ~까지 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="실사종료일" else ttgubn=request.form("ttgubn") end if %>

프로젝트 진행일정

  ~       
<% 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 프로젝트코드, "&VbCrlf sql=sql&" A.p_subject as 프로젝트명, "&VbCrlf sql=sql&" A.p_method_cd, "&VbCrlf sql=sql&" B.조사방법, "&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 표본수, "&VbCrlf sql=sql&" A.p_ot_date as OT일, "&VbCrlf sql=sql&" A.p_field_date_end as 실사종료일, "&VbCrlf sql=sql&" A.p_dp_date_end as DP종료일, "&VbCrlf sql=sql&" A.p_rsch_dept as 진행부서, "&VbCrlf sql=sql&" A.p_progress_status as 진행상황 "&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 조사방법 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'##### 연구 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'##### 실사 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 '##### 코딩 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 '##### 펀치 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.진행부서=C5.team_cd "&VbCrlf sql=sql&" ) AAA "&VbCrlf '-- sql=sql&" where AAA.프로젝트코드<>'' " sql=sql&" where len(isnull(AAA.OT일,''))+len(isnull(AAA.실사종료일,''))+len(isnull(AAA.DP종료일,''))>0 "&VbCrlf sql=sql&" and left(AAA."&ttgubn&",10) between '"&s_date_st&"' and '"&s_date_end&"' "&VbCrlf select case ttgubn case "실사종료일" : sql=sql&" order by AAA.실사종료일 asc "&VbCrlf case "DP종료일" : sql=sql&" order by AAA.DP종료일 asc "&VbCrlf case "OT일" : sql=sql&" order by AAA.OT일 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("진행상황") case "006" pro="부서정보/예산 입력중" pro_style="" case "007" pro="결재 진행중" pro_style="" case "008" pro="결재 완료" pro_style="color:red;" End Select %> <% If isnull(Rs("표본수")) Then %> <% Else %> <% End If %> <% acnt=acnt+1 Rs.movenext Wend Rs.Close %>
No 인트라넷
프로젝트
프로젝트명 진행상황 조사방법 연구
담당
실사
담당
코딩
담당
펀치
담당
DP
담당
표본수 OT일 실사
종료일
DP
종료일
<%=acnt%> <%=Rs("프로젝트코드")%> <% if Rs("진행부서") = session("depart_code") OR Cint(session("depart_code")) < 20 then %>  ','<%=mid(Rs("프로젝트코드"),9,1)%>','<%=Rs("p_method_cd")%>','<%=Rs("프로젝트코드")%>');" ><%=Rs("프로젝트명")%><%else %><%=Rs("프로젝트명")%><%End IF%> <%=pro%> <%=Rs("조사방법")%> <%=Rs("p_rsch_name")%> <%=Rs("p_sv_name")%> <%=Rs("p_code_name")%> <%=Rs("p_punch_name")%> <%=Rs("p_dp_name")%>--  <%=formatnumber(Rs("표본수"),0)%>  <%=left(Rs("OT일"),10)%> <%=left(Rs("실사종료일"),10)%> <%=left(Rs("DP종료일"),10)%>