%@ 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("")){ %> <% }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"); %>
|