<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> <%@include file="/include/include.jsp"%> <%@include file="/include/head.jsp"%> <%@include file="/cms_for_bcb/show_top.jsp"%>

<% String c_channel = r_call(request.getParameter("c_channel")); String c_no = r_call(request.getParameter("c_no")); if(c_no.equals("")){ %> <% }else{ String sql_hypo_detail = "select a.*, b.c_name "; sql_hypo_detail = sql_hypo_detail + ", (select count(c.c_no) as 2count from tbl_interview_point c inner join tbl_interview d on d.c_no = c.c_interview_no and d.c_use = 0 where c.c_hypo_no = a.c_no and c_point= 2) as 2count"; sql_hypo_detail = sql_hypo_detail + ", (select count(c.c_no) as 1count from tbl_interview_point c inner join tbl_interview d on d.c_no = c.c_interview_no and d.c_use = 0 where c.c_hypo_no = a.c_no and c_point= 1) as 1count"; sql_hypo_detail = sql_hypo_detail + ", (select count(c.c_no) as 0count from tbl_interview_point c inner join tbl_interview d on d.c_no = c.c_interview_no and d.c_use = 0 where c.c_hypo_no = a.c_no and c_point= 0) as 0count"; sql_hypo_detail = sql_hypo_detail + " from tbl_hypo a inner join tbl_member b on b.c_no = a.c_member_no where a.c_no = "+ c_no +" "; ResultSet rs_hypo_detail = stmt2.executeQuery(sql_hypo_detail); if(rs_hypo_detail.next()){ String[] hy_title = new String[10]; hy_title[1] = "Key Partners"; hy_title[2] = "Key Activities"; hy_title[3] = "Value Propositions"; hy_title[4] = "Customer Relationships"; hy_title[5] = "Customer Segments"; hy_title[6] = "Key Resources"; hy_title[7] = "Channels"; hy_title[8] = "Cost Structure"; hy_title[9] = "Revenue Streams"; String[] span_title = new String[10]; span_title[1] = "We need to partner with..."; span_title[2] = "The most important things to do for our business model to work are..."; span_title[3] = "Our customers need help..."; span_title[4] = "We plan to GET/KEEP/GROW using..."; span_title[5] = "We are helping..."; span_title[6] = "The most important assets for our business model to work are..."; span_title[7] = "We deliver our product/service to our customer via..."; span_title[8] = "One of our operational costs to run the business is..."; span_title[9] = "We make money by..."; %>
<%for(int i = 1; i<10 ; i++){%> <%if(i==1 || i==6 || i==8){%> <%}%> <%if(i==5 || i==7 || i==9){%> <%}%> <%}%>
#EE0000<%}else{%>#ededed<%}%>" <%if(i<6){%>width="20%"<%}%> <%if(i==8 || i==9){%> width="50%" colspan=3<%}%> <%if(i==1 || i==3 || i==5){%>rowspan=2<%}%> <%if(i==3){%>colspan=2<%}%>>
<%=hy_title[rs_hypo_detail.getInt("c_channel")]%>   <%if(rs_hypo_detail.getInt("c_channel") == 5){%> ">■ <%}%> <%=rs_hypo_detail.getString("c_title")%>
Process

<% int now_process = 0; int process_history = 0; String sql_pro = " select c_now from tbl_hypo_history "; sql_pro = sql_pro + " where c_hypo_no = "+ rs_hypo_detail.getInt("c_no") +" order by c_no desc"; ResultSet rs_pro = stmt.executeQuery(sql_pro); if(rs_pro.next()){ process_history = 1; now_process = rs_pro.getInt("c_now"); } rs_pro.close(); %> <%if(now_process == 1){%> validated <%}else{%> <%if(session.getAttribute("member_type").equals("0") && make_ok == 0){%> <%}%> validated <%}%>    <%if(now_process == 0){%> Testing <%}else{%> <%if(session.getAttribute("member_type").equals("0") && make_ok == 0){%> <%}%> Testing <%}%>    <%if(now_process == 2){%> Invalidated <%}else{%> <%if(session.getAttribute("member_type").equals("0") && make_ok == 0){%> <%}%> Invalidated <%}%>
" type="hidden">
<%if(process_history == 1){%> Process History
<% sql_pro = " select a.*, b.c_name from tbl_hypo_history a "; sql_pro = sql_pro + " inner join tbl_member b on b.c_no = a.c_member_no "; sql_pro = sql_pro + " where a.c_hypo_no = "+ rs_hypo_detail.getInt("c_no") +" order by a.c_no desc"; rs_pro = stmt.executeQuery(sql_pro); while(rs_pro.next()){ %> <%if(rs_pro.getInt("c_now") == 2){%> <%}%> <% } rs_pro.close(); %>
reason for <%if(rs_pro.getInt("c_now") == 0){%> returning to Testing <%}%> <%if(rs_pro.getInt("c_now") == 1){%> validated <%}%> <%if(rs_pro.getInt("c_now") == 2){%> Invalidated <%}%> / <%=rs_pro.getString("c_name")%> <%if(rs_pro.getInt("c_member_type") == 0){%> Team_member <%}%> / <%=rs_pro.getString("c_date").substring(0,10)%>
<%=rs_pro.getString("c_now_type")%>
<%=rs_pro.getString("c_now_exp").replaceAll("\r\n","
")%>
<%}%>
<%if(rs_hypo_detail.getInt("c_channel") == 5 ){%> Hypothesis Relation

<% String sql_hypo = " select b.c_no, b.c_title, b.c_channel from tbl_hypo_cs a "; sql_hypo = sql_hypo + " inner join tbl_hypo b on b.c_no = a.c_hypo_no and b.c_use = 0"; sql_hypo = sql_hypo + " where a.c_cs_no = "+ rs_hypo_detail.getInt("c_no") +" order by a.c_no asc"; ResultSet rs_hypo = stmt.executeQuery(sql_hypo); while(rs_hypo.next()){ %> <% } rs_hypo.close(); %>
&c_no=<%=rs_hypo.getInt("c_no")%>"> <%=rs_hypo.getString("c_title")%>
<%}else{%> Customer Segment

<% String sql_hypo = " select b.c_no, b.c_color, b.c_title from tbl_hypo_cs a "; sql_hypo = sql_hypo + " inner join tbl_hypo b on b.c_no = a.c_cs_no and b.c_use = 0 "; sql_hypo = sql_hypo + " where a.c_hypo_no = "+ rs_hypo_detail.getInt("c_no") +" order by a.c_no asc"; ResultSet rs_hypo = stmt.executeQuery(sql_hypo); while(rs_hypo.next()){ %> <% } rs_hypo.close(); %>
">■ "> <%=rs_hypo.getString("c_title")%>
<%}%>
Interview Relation

<%=rs_hypo_detail.getInt("2count")%>    <%=rs_hypo_detail.getInt("1count")%>    <%=rs_hypo_detail.getInt("0count")%>
<% String sql_it = " select a.c_point, b.c_title, b.c_no from tbl_interview_point a "; sql_it = sql_it + " inner join tbl_interview b on a.c_interview_no = b.c_no and b.c_use = 0 "; sql_it = sql_it + " where a.c_hypo_no = " + rs_hypo_detail.getInt("c_no") + " "; sql_it = sql_it + " order by a.c_point desc "; ResultSet rs_it = stmt.executeQuery(sql_it); while(rs_it.next()){ %> <% } rs_it.close(); %>
<%if(rs_it.getInt("c_point") == 2){%> <%}%> <%if(rs_it.getInt("c_point") == 1){%> <%}%> <%if(rs_it.getInt("c_point") == 0){%> <%}%> &c_hypo_no=<%=rs_hypo_detail.getInt("c_no")%>"><%=rs_it.getString("c_title")%>
Experiment

<% sql_it = " select a.c_title, a.c_now, a.c_no, a.c_file from tbl_hypo_experiment a "; sql_it = sql_it + "where a.c_use = 0 and a.c_hypo_no = "+ rs_hypo_detail.getString("c_no") +" order by a.c_no asc "; rs_it = stmt.executeQuery(sql_it); String td_bg = "ffffff"; while(rs_it.next()){ if(td_bg == "efefef"){ td_bg = "ffffff"; }else{ td_bg = "efefef"; } %> <%if(!rs_it.getString("c_file").equals("")){%> <%}%> <% } rs_it.close(); %>
<%=rs_it.getString("c_title")%> <%if(rs_it.getInt("c_now") == 1){%> Pass <%}else{%> <%if(session.getAttribute("member_type").equals("0") && make_ok == 0){%>&c_now=1" target="exec"><%}%>Pass <%}%>    <%if(rs_it.getInt("c_now") == 2){%> Fail <%}else{%> <%if(session.getAttribute("member_type").equals("0") && make_ok == 0){%>&c_now=2" target="exec"><%}%>Fail <%}%>
Attach : "><%=rs_it.getString("c_file")%>
<%=rs_hypo_detail.getString("c_name")%> / <%=rs_hypo_detail.getString("c_date").substring(0,10)%>
Comment with Instructor, Mentor

<%if((session.getAttribute("member_type").equals("0") || session.getAttribute("member_type").equals("1") || session.getAttribute("member_type").equals("2")) && make_ok == 0){%>
" type="hidden">
<% String sql_in = "select c_photo from tbl_member where c_no = " + session.getAttribute("member_no"); ResultSet rs_in = stmt.executeQuery(sql_in); if(rs_in.next()){ %> <% } rs_in.close(); %>
<%if(!rs_in.getString("c_photo").equals("")){%> " width="50" height=50 style="border: 1px solid #ededed;border-radius: 50px; "> <%}%>
Insert
<%}%>
<% String sql_comment = " select a.c_content, a.c_date, b.c_photo, b.c_name, a.c_member_type from tbl_comment a "; sql_comment = sql_comment + " inner join tbl_member b on b.c_no = a.c_member_no "; sql_comment = sql_comment + " where a.c_type= 0 and a.c_relation = " + rs_hypo_detail.getInt("c_no") + " order by a.c_no desc "; ResultSet rs_comment = stmt.executeQuery(sql_comment); while(rs_comment.next()){ %> <% } rs_comment.close(); %>
<%if(!rs_comment.getString("c_photo").equals("")){%> " width="50" height=50 style="border: 1px solid #ededed;border-radius: 50px; "> <%}%> <%=rs_comment.getString("c_name")%>[ <%if(rs_comment.getInt("c_member_type") ==0){%> Team Member <%}%> <%if(rs_comment.getInt("c_member_type") ==1){%> Instructor <%}%> <%if(rs_comment.getInt("c_member_type") ==2){%> Mentor <%}%> ] / <%=rs_comment.getString("c_date")%>
<%=rs_comment.getString("c_content").replaceAll("\r\n","
")%>
Go to BMC

<%}else{ %> <% } rs_hypo_detail.close(); %> <%}%> <%@include file="/cms_for_bcb/show_bottom.jsp"%> <%@include file="/include/bottom.jsp"%> <%@include file="/include/include_b.jsp"%>