%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@include file="/field_manager/include/manager_head.jsp"%>
<%
String c_no = r_call(request.getParameter("c_project_no"));
if(c_no.equals("")){
%>
<%
}else{
String sql_up = " SELECT c.*, a.c_name as u_name, b.c_name as f_name 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_no;
ResultSet rs_up = stmt.executeQuery(sql_up);
if (rs_up.next()) {
String sql_sub = "select * from tbl_project_plan where c_relation = 0 and c_project_no = " + c_no;
ResultSet rs_sub = stmt.executeQuery(sql_sub);
if (!rs_sub.next()) {
String sql_ins = "insert into tbl_project_plan (c_relation, c_project_no,c_propose_s_date,c_propose_e_date,c_bcb_s_date,c_bcb_e_date,c_bcb_period,c_date) values (0,"+ c_no +", CURDATE(),CURDATE(),CURDATE(),CURDATE(),1,now())";
stmt2.execute(sql_ins);
sql_ins = "insert into tbl_project_plan_bcb_period (c_project_no,c_period_no,c_s_date,c_e_date) values ("+ c_no +", 1,CURDATE(),CURDATE())";
stmt2.execute(sql_ins);
}
rs_sub.close();
sql_sub = "select * from tbl_project_plan where c_relation = 0 and c_project_no = " + c_no;
rs_sub = stmt.executeQuery(sql_sub);
if (rs_sub.next()) {
%>
Project operation schedule management
|
* The project operation schedule is linked to the project related items.
|
Field |
<%=rs_up.getString("f_name")%>
|
Category |
<%=rs_up.getString("u_name")%>
|
Project Name |
<%=rs_up.getString("c_name")%>
|
Project Status |
<%if(rs_sub.getInt("c_now") == 0){%>
Waiting
<%}%>
<%if(rs_sub.getInt("c_now") == 1){%>
Proceeding
<%}%>
<%if(rs_sub.getInt("c_now") == 2){%>
End
<%}%>
* You can change it by clicking on the status.
|
|
<%if(rs_up.getInt("c_propose") == 0){%>
Application schedule |
Now Status |
<%if(rs_sub.getInt("c_now") < 2){%>
<%if(rs_sub.getInt("c_now_propose") == 0){%>
Waiting
<%}%>
<%if(rs_sub.getInt("c_now_propose") == 1){%>
Proceeding
<%}%>
<%if(rs_sub.getInt("c_now_propose") == 2){%>
End
<%}%>
* You can change it by clicking on the status.
<%}else{%>
* If the project is closed, it is not possible to change the status.
<%}%>
|
term |
<%=rs_sub.getString("c_propose_s_date").substring(0,16)%> ~ <%=rs_sub.getString("c_propose_e_date").substring(0,16)%>
<%if(rs_sub.getInt("c_now") < 2 && rs_sub.getInt("c_now_propose") < 2){%>
[Edit]
<%}%>
<%
String d1 = rs_sub.getString("c_propose_s_date").substring(0,10);
String d2 = rs_sub.getString("c_propose_e_date").substring(0,10);
int h1 = Integer.parseInt(rs_sub.getString("c_propose_s_date").substring(11,13));
int h2 = Integer.parseInt(rs_sub.getString("c_propose_e_date").substring(11,13));
int m1 = Integer.parseInt(rs_sub.getString("c_propose_s_date").substring(14,16));
int m2 = Integer.parseInt(rs_sub.getString("c_propose_e_date").substring(14,16));
%>
|
<%}else{%>
Apply Schedule |
Not use
|
<%}%>
<%if(rs_up.getInt("c_survey") == 0){%>
Survey schedule |
Current Status |
<%if(rs_sub.getInt("c_now") < 2){%>
<%if(rs_sub.getInt("c_now_survey") == 0){%>
Waiting
<%}%>
<%if(rs_sub.getInt("c_now_survey") == 1){%>
Proceeding
<%}%>
<%if(rs_sub.getInt("c_now_survey") == 2){%>
End
<%}%>
* You can change it by clicking on the status.
<%}else{%>
* If the project is closed, it is not possible to change the status.
<%}%>
|
<%}else{%>
Survey schedule |
Not Use
|
<%}%>
<%if(rs_up.getInt("c_point") == 0){%>
Evaluation schedule |
Current Status |
<%if(rs_sub.getInt("c_now") < 2){%>
<%if(rs_sub.getInt("c_now_point") == 0){%>
Waiting
<%}%>
<%if(rs_sub.getInt("c_now_point") == 1){%>
Proceeding
<%}%>
<%if(rs_sub.getInt("c_now_point") == 2){%>
End
<%}%>
* You can change it by clicking on the status.
<%}else{%>
* If the project is closed, it is not possible to change the status.
<%}%>
|
<%}else{%>
Evaluation schedule |
Not Use
|
<%}%>
<%if(rs_up.getInt("c_bcb") == 0){%>
BMC Schedule |
Current Status |
<%if(rs_sub.getInt("c_now") < 2){%>
<%if(rs_sub.getInt("c_now_bcb") == 0){%>
Waiting
<%}%>
<%if(rs_sub.getInt("c_now_bcb") == 1){%>
Proceeding
<%}%>
<%if(rs_sub.getInt("c_now_bcb") == 2){%>
End
<%}%>
* You can change it by clicking on the status.
<%}else{%>
* If the project is closed, it is not possible to change the status.
<%}%>
|
The whole period |
<%=rs_sub.getString("c_bcb_s_date").substring(0,10)%> ~ <%=rs_sub.getString("c_bcb_e_date").substring(0,10)%>
* PIf you edit eriod, it will change automatically.
|
Period |
Total <%=rs_sub.getInt("c_bcb_period")%> Period
<%if(rs_sub.getInt("c_now") < 2 && rs_sub.getInt("c_now_bcb") < 2){%>
[Edit]
<%}%>
<%
String d21 = rs_sub.getString("c_bcb_s_date").substring(0,10);
String d22 = rs_sub.getString("c_bcb_e_date").substring(0,10);
int m22 = rs_sub.getInt("c_bcb_period");
%>
|
<%}else{%>
BMC Schedulr |
Not Use
|
<%}%>
|
<%
}
rs_sub.close();
}
rs_up.close();
}%>
<%@include file="/field_manager/include/manager_bottom.jsp"%>