207 lines
6.0 KiB
Plaintext
207 lines
6.0 KiB
Plaintext
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
|
<%@include file="/include/include.jsp"%>
|
|
<%
|
|
String c_project_no = r_call(request.getParameter("c_project_no"));
|
|
String c_team_no = r_call(request.getParameter("c_team_no"));
|
|
int c_now_propose = 0;
|
|
if(c_project_no.equals("")){
|
|
%>
|
|
<script>
|
|
alert("Mala conexión.")
|
|
location.href="/"
|
|
</script>
|
|
<%
|
|
}else{
|
|
String slq_chekc = "select * from tbl_apply_team where c_project_no = "+ c_project_no + " and c_no = " + c_team_no + " and c_use = 0 ";
|
|
ResultSet rs_check = stmt.executeQuery(slq_chekc);
|
|
if (rs_check.next()) {
|
|
|
|
|
|
String sql_up = " SELECT c.*, a.c_name as u_name, b.c_name as f_name ";
|
|
sql_up = sql_up + " , (select c_now_propose from tbl_project_plan where c_relation = 0 and c_project_no = c.c_no) as c_now_propose " ;
|
|
sql_up = sql_up + " from tbl_project c ";
|
|
sql_up = sql_up + " inner join tbl_project a on a.c_no = c.c_up_no ";
|
|
sql_up = sql_up + " inner join tbl_field b on b.c_no = a.c_field ";
|
|
sql_up = sql_up + " where c.c_no = " + c_project_no;
|
|
|
|
ResultSet rs_up = stmt.executeQuery(sql_up);
|
|
if (rs_up.next()) {
|
|
c_now_propose = rs_up.getInt("c_now_propose");
|
|
|
|
|
|
%>
|
|
|
|
<link rel="stylesheet" type="text/css" href="manager_system.css" />
|
|
<link rel="stylesheet" type="text/css" href="style.css" />
|
|
<center>
|
|
<table width="1000" cellSpacing="0" cellPadding="0" border="0">
|
|
<tr >
|
|
<td >
|
|
<table width="100%" cellSpacing="0" cellPadding="0" border="0" bgcolor=ffffff>
|
|
<tr >
|
|
<td height="60" style="font-weight:bold;">
|
|
Información del equipo de solicitud del proyecto
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<!---------------------------------------------------------------------------------------->
|
|
|
|
<table width="50%" border="0" cellspacing="1" cellpadding="0" bgcolor=dddddd >
|
|
<tr height="40" bgcolor=ffffff>
|
|
<td colspan=2 width="25%" align=center style="font-weight:bold;"> Campo principal</td>
|
|
<td width="75%" style="padding:5px">
|
|
<b><%=rs_up.getString("f_name")%>
|
|
</td>
|
|
</tr>
|
|
<tr height="40" bgcolor=ffffff>
|
|
<td colspan=2 align=center style="font-weight:bold;"> Categoría</td>
|
|
<td style="padding:5px">
|
|
<b><%=rs_up.getString("u_name")%>
|
|
</td>
|
|
</tr>
|
|
<tr height="40" height=30 bgcolor=ffffff>
|
|
<td colspan=2 align=center style="font-weight:bold;"> Nombre del proyecto </td>
|
|
<td style="padding:5px">
|
|
<font color=red><b><%=rs_up.getString("c_name")%></b></font>
|
|
</tr>
|
|
|
|
</table>
|
|
<%
|
|
|
|
}
|
|
rs_up.close();
|
|
|
|
%>
|
|
<table width="100%" cellSpacing="0" cellPadding="0" border="0" bgcolor=ffffff>
|
|
<tr >
|
|
<td align=left style="line-height:120%;height:40px">
|
|
<b>* Información del equipo de aplicación</b>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor=dddddd >
|
|
<tr height="30" bgcolor=efefef>
|
|
<td align=center style="width:15%;min-width:50px" > Artículo</td>
|
|
<td align=center style="width:85%" > Contenido</td>
|
|
|
|
</tr>
|
|
<%
|
|
int i = 0;
|
|
int stu_check = 1;
|
|
String sql_field = " SELECT * from tbl_apply_field where c_project_no = " + c_project_no +" order by c_order asc ";
|
|
ResultSet rs_field = stmt.executeQuery(sql_field);
|
|
while (rs_field.next()) {
|
|
if(rs_field.getString("c_use_field").equals("c_grade")){
|
|
stu_check = 0;
|
|
}
|
|
i = i + 1;
|
|
%>
|
|
|
|
<tr bgcolor=ffffff>
|
|
|
|
<td height="30" align=center >
|
|
<%=rs_field.getString("c_name")%>
|
|
</td>
|
|
<td align=left style="padding:5px">
|
|
<%if(rs_field.getInt("c_type") == 1){%>
|
|
<%=rs_check.getString(rs_field.getString("c_use_field"))%>
|
|
<%}%>
|
|
<%if(rs_field.getInt("c_type") == 2){
|
|
%>
|
|
<%=rs_check.getString(rs_field.getString("c_use_field"))%>
|
|
<%}%>
|
|
<%if(rs_field.getInt("c_type") == 3){%>
|
|
<%=rs_check.getString(rs_field.getString("c_use_field"))%>
|
|
<%}%>
|
|
<%if(rs_field.getInt("c_type") == 4){%>
|
|
Archivo de registro : <a href="/upload/apply/<%=rs_check.getString(rs_field.getString("c_use_field"))%>"><%=rs_check.getString(rs_field.getString("c_use_field"))%></a>
|
|
|
|
<%}%>
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
|
|
<%
|
|
|
|
}
|
|
rs_field.close();
|
|
%>
|
|
</table>
|
|
<%
|
|
String major_t = "Departamento";
|
|
String grade_t = "calificación";
|
|
if( stu_check == 1){
|
|
major_t = "Departamento";
|
|
grade_t = "rango";
|
|
}
|
|
%>
|
|
<table width="100%" cellSpacing="0" cellPadding="0" border="0" bgcolor=ffffff>
|
|
<tr >
|
|
<td align=left style="line-height:120%;height:40px">
|
|
<b>* Información de los miembros del equipo</b>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor=dddddd >
|
|
<tr height="24" bgcolor=efefef>
|
|
<td align=center > Jefe de equipo.</td>
|
|
<td align=center > Email</td>
|
|
<td align=center > nombre</td>
|
|
<td align=center > teléfono</td>
|
|
<td align=center > <%=major_t%></td>
|
|
<td align=center > <%=grade_t%></td>
|
|
</tr>
|
|
<%
|
|
String slq_t = "select * from tbl_apply_team_member where c_project_no = "+ c_project_no + " and c_team_no = " + c_team_no + " and c_use = 0 order by c_type desc ";
|
|
ResultSet rs_t = stmt2.executeQuery(slq_t);
|
|
while(rs_t.next()) {
|
|
%>
|
|
<tr bgcolor=ffffff>
|
|
<td height="24" align=center>
|
|
<%if(rs_t.getInt("c_type") == 1){%>
|
|
Jefe de equipo
|
|
<%}else{%>
|
|
Miembros del equipo
|
|
<%}%>
|
|
</td>
|
|
<td align=center>
|
|
<%=rs_t.getString("c_email")%>
|
|
</td>
|
|
<td align=center>
|
|
<%=rs_t.getString("c_name")%>
|
|
</td>
|
|
<td align=center>
|
|
<%=rs_t.getString("c_phone")%>
|
|
</td>
|
|
<td align=center>
|
|
<%=rs_t.getString("c_major")%>
|
|
</td>
|
|
<td align=center>
|
|
<%=rs_t.getString("c_grade")%>
|
|
</td>
|
|
</tr>
|
|
<%}
|
|
rs_t.close();
|
|
%>
|
|
</table>
|
|
|
|
<br><br>
|
|
<br><br>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
<iframe name="exec" width=0 height=0 src=""></iframe>
|
|
<%}else{%>
|
|
<script>
|
|
alert("No hay ninguna aplicación para el programa seleccionado");
|
|
location.href="list.jsp?c_project_no=<%=c_project_no%>"
|
|
</script>
|
|
<%}
|
|
rs_check.close();
|
|
%>
|
|
<%}%>
|
|
<%@include file="/include/include_b.jsp"%>
|