Files
SIPAIIS_WMS_JSSW/bin/WebRoot/jsp/plan/prodtaskView.jsp
2026-01-16 14:13:44 +08:00

160 lines
4.6 KiB
Plaintext

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%request.setAttribute("Flag_ERPConfirm",com.sipai.entity.plan.Prodtask.Flag_ERPConfirm);%>
<%request.setAttribute("Flag_Issued",com.sipai.entity.plan.Prodtask.Flag_Issued);%>
<%request.setAttribute("Flag_Working",com.sipai.entity.plan.Prodtask.Flag_Working);%>
<%request.setAttribute("Flag_Finish",com.sipai.entity.plan.Prodtask.Flag_Finish);%>
<%request.setAttribute("Flag_Closed",com.sipai.entity.plan.Prodtask.Flag_Closed);%>
<%request.setAttribute("Flag_Cancel",com.sipai.entity.plan.Prodtask.Flag_Cancel);%>
<%request.setAttribute("Flag_NoPlan",com.sipai.entity.plan.Prodtask.Flag_NoPlan);%>
<%request.setAttribute("Flag_ERPIssued",com.sipai.entity.plan.Prodtask.Flag_ERPIssued);%>
<%request.setAttribute("Type_RegularOrder",com.sipai.entity.plan.Prodtask.Type_RegularOrder);%>
<%request.setAttribute("Type_Rework",com.sipai.entity.plan.Prodtask.Type_Rework);%>
<html>
<head>
<title></title>
<jsp:include page="../inc.jsp"></jsp:include>
<style>
body{ text-align:center}
</style>
</head>
<body>
<form method="post" class="form">
<input type="hidden" name="id" value="${prodtask.id }"/>
<table class="table">
<tr>
<th>任务编号</th>
<td>
${prodtask.taskcode}</td>
</tr>
<tr>
<th>执行状态</th>
<td >
<c:if test="${prodtask.runstatus==Flag_Issued}">下发</c:if>
<c:if test="${prodtask.runstatus==Flag_Working}">开工</c:if>
<c:if test="${prodtask.runstatus==Flag_Finish}">完成</c:if>
<c:if test="${prodtask.runstatus==Flag_Closed}">结案</c:if>
<c:if test="${prodtask.runstatus==Flag_Cancel}">作废</c:if>
<c:if test="${prodtask.runstatus==Flag_NoPlan}">未排计划</c:if>
<c:if test="${prodtask.runstatus==Flag_ERPConfirm}">ERP确认</c:if>
<c:if test="${prodtask.runstatus==Flag_ERPIssued}">ERP下达</c:if></td>
</tr>
<tr>
<th>生产车间</th>
<td>
${prodtask.workshop }</td>
</tr>
<tr>
<th>物料长代码</th>
<td>
${prodtask.materialcode}</td>
</tr>
<tr>
<th>物料名称</th>
<td>
${prodtask.materialname }</td>
</tr>
<tr>
<th>规格型号</th>
<td>
${prodtask.model }</td>
</tr>
<tr>
<th>批号</th>
<td>
${prodtask.batch }</td>
</tr>
<tr>
<th>单位</th>
<td>
${prodtask.unit }</td>
</tr>
<tr>
<th>计划生产数</th>
<td >
${prodtask.planamount }</td>
</tr>
<tr>
<th>计划开工日期</th>
<td >
${prodtask.pstdate.substring(0,10)}</td>
</tr>
<tr>
<th>计划完工日期</th>
<td >
${prodtask.pendate.substring(0,10)}</td>
</tr>
<tr>
<th>生产类型</th>
<td >
<c:if test="${prodtask.type==Type_Rework}">返工</c:if>
<c:if test="${prodtask.type==Type_RegularOrder}">普通订单</c:if>
</td>
</tr>
<tr>
<th>BOM编号</th>
<td >
${prodtask.bomno }</td>
</tr>
<tr>
<th>成本对象</th>
<td >
${prodtask.costobject }</td>
</tr>
<tr>
<th>单据来源</th>
<td >
${prodtask.source }</td>
</tr>
<tr>
<th>计划订单号</th>
<td >
${prodtask.planno }</td>
</tr>
<tr>
<th>销售订单号</th>
<td >
${prodtask.salesno}</td>
</tr>
<tr>
<th>委托加工单位</th>
<td >
${prodtask.procompany }</td>
</tr>
<tr>
<th>常用单位</th>
<td >
${prodtask.commonunit }</td>
</tr>
<tr>
<th>单据状态</th>
<td>
<c:if test="${prodtask.billstatus==Flag_Issued}">下发</c:if>
<c:if test="${prodtask.billstatus==Flag_Working}">开工</c:if>
<c:if test="${prodtask.billstatus==Flag_Finish}">完成</c:if>
<c:if test="${prodtask.billstatus==Flag_Closed}">结案</c:if>
<c:if test="${prodtask.billstatus==Flag_Cancel}">作废</c:if>
<c:if test="${prodtask.billstatus==Flag_NoPlan}">未排计划</c:if>
<c:if test="${prodtask.billstatus==Flag_ERPConfirm}">ERP确认</c:if>
<c:if test="${prodtask.billstatus==Flag_ERPIssued}">ERP下达</c:if></td>
</tr>
<tr>
<th>计划类别</th>
<td >
${prodtask.plantype }</td>
</tr>
<tr>
<th>BOM类别</th>
<td >
${prodtask.bomtype }</td>
</tr>
</table>
</form>
</body>
</html>