<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> <%@include file="/field_manager/include/manager_head.jsp"%> <% String c_field = "" + session.getAttribute("manager_field_no"); String c_now = r_call(request.getParameter("c_now")); String where_text = " "; if(!c_field.equals("")){ where_text = where_text + " and c_field = " + c_field + " "; } if(!c_now.equals("")){ where_text = where_text + " and c_now = " + c_now + " "; } int col_no = 11; %>
Category & Project Management
Main Field Category status * Click on the current status to change it sequentially.
* Click the arrows to change the order.
* If the Category status is End, subproject registration is not possible.
* If the Category status is Progress or End, modification or deletion is not possible
* When category is deleted, sub-project is deleted together Please note the deletion.
<% int old_field = 0; int o_no = 0; int o_order = 0; int o_s_no = 0; int o_s_order = 0; String sql1=" SELECT a.*, b.c_name as f_name from tbl_project a inner join tbl_field b on b.c_no = a.c_field and b.c_relation = 0 and b.c_use = 0 where a.c_relation = 0 and a.c_use = 0 and c_type = 0 " + where_text + " order by b.c_name asc, a.c_order asc, a.c_no desc"; ResultSet rst = stmt.executeQuery(sql1); int i_no = 0; while (rst.next()) { i_no = i_no + 1; %> <% o_s_no = 0; o_s_order = 0; String sql_sub = " SELECT a.*, b.c_name as f_name "; sql_sub = sql_sub + " ,(select c_no from tbl_project_operation where c_project_no = a.c_no and c_manager_no = "+ session.getAttribute("manager_no") +" and c_use = 0 ) as c_op "; sql_sub = sql_sub + " from tbl_project a "; sql_sub = sql_sub + " inner join tbl_field b on b.c_no = a.c_field and b.c_relation = 0 and b.c_use = 0 "; sql_sub = sql_sub + " where a.c_relation = 0 and a.c_use = 0 and c_type = 1 and c_up_no = "+ rst.getInt("c_no") +" "; sql_sub = sql_sub + " order by a.c_order asc, a.c_no desc"; ResultSet rs_sub = stmt.executeQuery(sql_sub); while (rs_sub.next()) { %> <%if(rst.getInt("c_now") < 2){%> <%if(rs_sub.getInt("c_op") == 0 ){%> <%}else{%> <%}%> <%}%> <% } rs_sub.close(); %> <% o_no = rst.getInt("c_no"); o_order = rst.getInt("c_order"); } if(i_no == 0){ %> <% } rst.close(); %>
Field Name Category & Project Name Apply Survey Evaluation BMC Education Order Operation Program Status Date Edit Del
<% if(old_field != rst.getInt("c_field")){%> <%=rst.getString("f_name")%> <%}%> [ <%=rst.getString("c_name")%> ] <% if(old_field == rst.getInt("c_field")){%> &c_order=<%=rst.getInt("c_order")%>&o_no=<%=o_no%>&o_order=<%=o_order%>&c_field=<%=c_field%>"> <%}else{ old_field = rst.getInt("c_field"); %>   <%}%> <%if(rst.getInt("c_now") < 2){%> &c_field=<%=c_field%>">[Insert] <%}%> <%if(rst.getInt("c_now") == 0){%> &c_field=<%=c_field%>&c_now=1">Waiting <%}%> <%if(rst.getInt("c_now") == 1){%> &c_field=<%=c_field%>&c_now=2">Progress <%}%> <%if(rst.getInt("c_now") == 2){%> &c_field=<%=c_field%>&c_now=0">End <%}%> <%=rst.getString("c_date").substring(0,10)%> <%if(rst.getInt("c_now") == 0){%> &c_field=<%=c_field%>">[Edit] <%}%> <%if(rst.getInt("c_now") == 0){%> &c_field=<%=c_field%>'}">[Del] <%}%>
└ <%=rs_sub.getString("c_name")%> <%if(rs_sub.getInt("c_propose") == 0){%> &c_field=<%=c_field%>">O <%}else{%> &c_field=<%=c_field%>">X <%}%> <%if(rs_sub.getInt("c_survey") == 0){%> &c_field=<%=c_field%>">O <%}else{%> &c_field=<%=c_field%>">X <%}%> <%if(rs_sub.getInt("c_point") == 0){%> &c_field=<%=c_field%>">O <%}else{%> &c_field=<%=c_field%>">X <%}%> <%if(rs_sub.getInt("c_bcb") == 0){%> &c_field=<%=c_field%>">O <%}else{%> &c_field=<%=c_field%>">X <%}%> <%if(rs_sub.getInt("c_edu") == 0){%> &c_field=<%=c_field%>">O <%}else{%> &c_field=<%=c_field%>">X <%}%> <% if(o_s_no > 0){%> &c_order=<%=rs_sub.getInt("c_order")%>&o_no=<%=o_s_no%>&o_order=<%=o_s_order%>&c_field=<%=c_field%>"> <%}%> <% o_s_no = rs_sub.getInt("c_no"); o_s_order = rs_sub.getInt("c_order"); %> &c_field=<%=c_field%>">off &c_field=<%=c_field%>">on <%=rst.getString("c_date").substring(0,10)%> <%if(rst.getInt("c_now") == 0){%> &c_field=<%=c_field%>">[Edit] <%}%> <%if(rst.getInt("c_now") == 0){%> &c_field=<%=c_field%>'}">[Del] <%}%>
There is no data.
Insert Category
<%@include file="/field_manager/include/manager_bottom.jsp"%>