<%@ page contentType="text/html;charset=Shift_JIS" language="java" %>
<%-- 共通ページヘッダ --%>
<%@ include file="/jsp/common/PageHeader.inc" %>
<%-- bean --%>
<jsp:useBean id="bug" scope="session" type="Bug" />

<html:html locale="true">
<head>
<title>解析状況</title>
<html:base/>
<LINK rel="stylesheet" href="style.css">
<SCRIPT LANGUAGE = "JavaScript" SRC="common.js"></SCRIPT>
</head>

<body>
<!--======================= メニュー ==============================-->
<%@ include file="/jsp/common/Menu2.inc" %>
<!--======================= メニュー end ==========================-->
<br>
<html:link forward="/bug1/show" name="bug" property="mapping">故障</html:link>
| <html:link forward="/bug2/show" name="bug" property="mapping">方針</html:link>
| <font size="4"><b>解析状況</b></font>
| <html:link forward="/bug4/show" name="bug" property="mapping">処置</html:link>
| <html:link forward="/bug5/show" name="bug" property="mapping">確認</html:link>
| <html:link forward="/showAll" name="bug" property="mapping">全部</html:link>
| <html:link forward="/bugAttachment/show" name="bug" property="mapping">添付</html:link>
| <html:link forward="/bugActivity" name="bug" property="mapping">履歴</html:link>
| <html:link forward="/bugDepndency" name="bug" property="mapping">関連</html:link>
| <html:link forward="/bugAssign" name="bug" property="mapping">担当</html:link>
<font color="red"><html:errors/></font>
<!--======================= BugHeader ==============================-->
<%@ include file="/jsp/common/BugHeader.inc" %>
<!--======================= BugHeader ==============================-->
<html:form action="/bugDetail3.do?action=submit">
  <table border="0" cellpadding="3" cellspacing="2">
    <tr> 
      <td class="labelHeader" colspan="4">故障原因</td>
    </tr> 
    <tr> 
      <td class="label2">対処方法：</td>
      <td class="bak1"> 
        <html:select property="resolution">
           <html:options collection="resolutions" property="code" labelProperty="nameLabel"/>
         </html:select>
      </td>
      <td class="label2">仕様変更番号：</td>
      <td class="bak1"> 
        <html:text property="scid" size="14" maxlength="12" />
      </td>
    </tr> 
    <tr> 
      <td class="bak1"colspan="4"> 
        <html:textarea property="addText" cols="80" rows="10" />
      </td>
    </tr> 
    <tr> 
      <td class="label2">提供予定日：</td>
      <td class="bak1"colspan="3"> 
        <html:text property="releaseSchDateString" size="20" maxlength="20" />
      </td>
    </tr>
  </table>
<%--  //実装が間に合わないためコメントアウト====================
  <table border="0" cellpadding="3" cellspacing="2">
    <tr> 
      <td class="labelHeader" colspan="4">関連故障</td>
    </tr>
    <tr> 
      <td class="label1">No</td>
      <td class="label1">ステータス</td>
      <td class="label1">タイトル</td>
      <td class="label1">　</td>
    </tr>
    <logic:iterate id="relBug" name="bug" property="reletedBug" scope="session" type="BugDepends" >
      <tr>
        <td class="bak1">
          <html:link forward="/showAll" name="relBug" property="mapping">
            <bean:write name="relBug" property="dependBnoString" />
          </html:link>
        </td>
        <td class="bak1"><bean:write name="relBug" property="statusString" /></td>
        <td class="bak1"><bean:write name="relBug" property="title" /></td>
        <td class="bak1"><html:submit value="削除" property="delDepends"/></td>
        <html:hidden name="relBug" property="delDependBno" value="dependBno" />
      </tr>
    </logic:iterate>
    <tr> 
      <td class="bak1" colspan="4"> 
        <html:text property="addDependBno" size="40" maxlength="40" />
        <html:submit value="追加" property="addDepends" /><br>
        <html:link forward="/showDepndncy" name="bug" property="mapping">依存関係を見る</html:link>
      </td>
    </tr>
  </table>
============================================================= --%>
  <table border="0" cellpadding="3" cellspacing="2">
    <tr> 
      <td colspan="4" class="labelHeader">エラー分析</td>
    </tr>
    <tr> 
      <td class="label2">摘出工程：</td>
      <td class="bak1">
        <bean:write name="bug" property="issuPnoName" />
      </td>
      <td class="label2">エラー機能：</td>
      <td class="bak1">
        <html:select property="errorPoint">
           <html:options collection="errorPoints" property="code" labelProperty="nameLabel"/>
         </html:select>
      </td>
    </tr>
    <tr>
      <td class="label2">混入工程：</td>
      <td class="bak1"> 
        <html:select property="trainPno">
           <html:options collection="processNames" property="code" labelProperty="nameLabel"/>
         </html:select>
      </td>
      <td class="label2">エラー内容：</td>
      <td class="bak1"> 
        <html:select property="errorType">
           <html:options collection="errorTypes" property="code" labelProperty="nameLabel"/>
         </html:select>
      </td>
    </tr>
    <tr> 
      <td class="label2">摘出すべき工程：</td>
      <td class="bak1"> 
        <html:select property="shouldFindPno">
           <html:options collection="processNames" property="code" labelProperty="nameLabel"/>
         </html:select>
      </td>
      <td class="label2">エラー原因：</td>
      <td class="bak1"> 
        <html:select property="errorCause">
           <html:options collection="errorCauses" property="code" labelProperty="nameLabel"/>
         </html:select>
      </td>
    </tr>
    <tr> 
      <td class="label2">摘出遅延理由：</td>
      <td class="bak1" colspan="3"> 
        <html:select property="errorDelayReason">
           <html:options collection="errorDelayReasons" property="code" labelProperty="nameLabel"/>
         </html:select>
      </td>
    </tr>
  </table>
  <p> 
    <html:radio property="submitType" value="repairedSelf" />
    自分で<b>修正</b>する<br>
    <html:radio property="submitType" value="repaired" />
    ステータスを<b>修正中</b>にして
    <html:select property="requestUpdater">
      <html:options collection="allUsers" property="uno" labelProperty="nickname"/>
    </html:select>
    にディスパッチする。<br>
    <html:radio property="submitType" value="investigation" />
    ステータスを<b>解析中</b>にして
    <html:select property="requestAnalyst">
      <html:options collection="allUsers" property="uno" labelProperty="nickname"/>
    </html:select>
    にディスパッチする。<br>
    <html:radio property="submitType" value="same" />
    ステータスを<b>このまま</b>にする<br>
    <html:radio property="submitType" value="statusWhitebord" />
    ステータスを<b>このまま</b>にして、ステータス状況を<br>
    <html:text property="requestStatusWhitebord" size="80" maxlength="80" />
    にする<br>
    <html:hidden name="bug" property="bno" />
    <html:button value="投入する" property="dummy" onclick="doSubmit()"/> 
    <html:reset value="リセットする" />
    <html:checkbox property="dontSendMail" />メール送信しない
    <br>
  </html:form>
  <a name="content"></a>
  <table border="0" cellpadding="3" cellspacing="2">
    <logic:iterate id="text" name="bug" property="allAddText" type="AddText" >
      <tr> 
        <td class="bak1">
          【<bean:write name="text" property="textTypeString" />】<a href="mailto:<%= text.getEntryUmail() %>" ><bean:write name="text" property="entryUname" /></a>(<bean:write name="text" property="entryDateString" />)
        </td>
      </tr> 
      <tr> 
        <td>
          <blockquote><bean:write name="text" property="contentString" filter="false"/></blockquote>
        </td> 
      </tr> 
    </logic:iterate>
  </table>

<%-- 共通ページフッダ --%>
<%@ include file="/jsp/common/PageFooter.inc" %>
</body>
</html:html>
