天津投入产出系统后端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

263 lines
8.7 KiB

<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master"
Inherits="System.Web.Mvc.ViewPage<QMAPP.FJC.Web.Models.ProductPetrospect.ProductArchivesModel>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
产品档案
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<style type="text/css">
.InfoTable
{
width: 100%; /* border-width: 0px; */
border-spacing: 1px; /* border-style: solid; */
font-size: 16px;
background-color: darkgray;
font-family: 微软雅黑;
}
.InfoTable tr
{
height: 35px;
}
.InfoTable th
{
background-color: #e0ecff;
text-align: right;
padding-right: 5px; /*width: 10%;*/
}
.InfoTable td
{
background-color: White;
text-align: left;
padding-left: 5px; /*width: 40%;*/
}
.InfoTable thead
{
}
.InfoTable thead td
{
background-color: #e0e4e8;
text-align: left;
padding-left: 15px;
font-weight: bold;
}
.PartList
{
width: 100%; /* border-width: 0px; */
border-spacing: 1px; /* border-style: solid; */
font-size: 12px;
background-color: darkgray;
font-family: 微软雅黑;
}
.PartList tr
{
height: 25px;
}
.PartList th
{
background-color: #e0ecff;
text-align: center;
padding-right: 5px;
width: 120px;
}
.PartList td
{
background-color: White;
text-align: left;
padding-left: 5px; /*width: 40%;*/
}
</style>
<%=Html.QPSeach(80, true)%>
<table id="condiTable">
<tr>
<th align="right">
<%=Html.QV(p=>p.ERMISCODE) %>
</th>
<td align="left">
<%=Html.QC(p => p.ERMISCODE)%>
</td>
</tr>
</table>
<%=Html.QPEnd()%>
<%//=Html.QPList() %>
<%if (Model != null && Model.ProductInfo != null)
{%>
<div id="tabsid" class="easyui-tabs" data-options="region:'center'" style="width: 100%;">
<div id='t1' title="产品档案" style="padding: 5px;">
<table class="InfoTable">
<thead>
<td colspan="4">
产品基本信息
</td>
</thead>
<tr>
<th>
产品条码
</th>
<td>
<%=Model.ProductInfo.PRODUCTCODE%>
</td>
<th>
总成码/FIS码
</th>
<td>
<%=Model.ProductInfo.MAIN_OR_PLAN%>
</td>
</tr>
<tr>
<th>
属性
</th>
<td>
<%=Model.ProductInfo.MATERIAL_ATTRIBUTE%>
</td>
<th>
物料分类
</th>
<td>
<%=Model.ProductInfo.MATERIAL_TYPE_NAME%>
</td>
</tr>
<tr>
<th>
物料号
</th>
<td>
<%=Model.ProductInfo.MATERIAL_CODE%>
</td>
<th>
物料名称
</th>
<td>
<%=Model.ProductInfo.MATERIAL_NAME%>
</td>
</tr>
<tr>
<th>
下线时间
</th>
<td>
<%=Model.ProductInfo.CREATEDATE.ToString("yyyy年M月d日 HH:mm:ss")%>
</td>
<th>
产品状态
</th>
<td>
<%=Model.ProductInfo.STATUSNAME%>
</td>
</tr>
<tr>
<th>
库存状态
</th>
<td>
<%=Model.ProductInfo.OUTFLAGNAME%>
</td>
<th>
数量
</th>
<td>
<%=Model.ProductInfo.CAPACITY%>
</td>
</tr>
<thead>
<td colspan="4">
零件组成
</td>
</thead>
<tr>
<td id="PartList" colspan="4">
加载中......
</td>
</tr>
<thead>
<td colspan="4">
发运记录
</td>
</thead>
<tbody id="Shipment">
<tr>
<td id="Td1" colspan="4">
加载中......
</td>
</tr>
</tbody>
</table>
</div>
<div id="t2" title="产品加工追溯" data-options="closable:false" style="padding: 5px;">
</div>
<%--<div id="t3" title="产品批次追溯" data-options="closable:false" style="padding: 20px;">
</div>--%>
</div>
<script type="text/javascript" language="javascript">
$(function () {
$.ajax({
url: "/ProductArchives/LoadPartList?productCode=<%=Model.ProductInfo.PRODUCTCODE %>",
dataType: "html",
success: function (data) {
$('#PartList').html(data);
}
});
$.ajax({
url: "/ProductArchives/LoadShipment?productCode=<%=string.IsNullOrWhiteSpace(Model.ProductInfo.MAIN_OR_PLAN)?Model.ProductInfo.PRODUCTCODE:Model.ProductInfo.MAIN_OR_PLAN %>",
dataType: "html",
success: function (data) {
$('#Shipment').html(data);
}
});
$('#tabsid').tabs({
border: false,
onSelect: function (title) {
if (title == "产品加工追溯") {
var html = $('#t2').html().trim();
if (html == "") {
$('#t2').html("正在加载...")
$.ajax({
url: "/ProductArchives/LoadProcessRecord?productCode=<%=Model.ProductInfo.PRODUCTCODE %>",
dataType: "html",
success: function (data) {
$('#t2').html(data);
},
error: function (XMLHttpRequest, textStatus, errorThrown) {
$('#t2').html("加载失败!")
}
});
}
}
else if (title == "产品批次追溯") {
$('#t3').html("12314");
}
}
});
});
</script>
<%} %>
<%//=Html.QPEnd() %>
<script type="text/javascript" language="javascript">
function GetProductInfo() {
//debugger;
var ermiscode = $('#ERMISCODE').val();
//var maincode = $('#MAINCODE').val();
if (ermiscode == "") {
MSI("提示", "请输入产品条码或是总成条码!")
return false;
}
submitByButton("Index");
}
</script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ToolContent" runat="server">
<table cellpadding="0" cellspacing="0">
<tr>
<td align="center">
<%=Html.QTButtonSearch("ProductArchives", "Index", "GetProductInfo()")%>
<%=Html.QTButton("export", "ExportExcelNew", QMFrameWork.WebUI.IconCls.redo, "Export()", (s, f) => { return true; })%>
<%=Html.QTButton("reset", "", QMFrameWork.WebUI.IconCls.reset, "Reset()", (s, f) => { return true; })%>
</td>
</tr>
</table>
</asp:Content>