📄 productcost.aspx
字号:
<%@ Page language="c#" Codebehind="productCost.aspx.cs" AutoEventWireup="false" Inherits="jpgSoftware_SM.financeManage.productCost" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
<title>成本核算</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name=vs_defaultClientScript content="JavaScript">
<meta name=vs_targetSchema content="http://schemas.microsoft.com/intellisense/ie5">
<link href="../styCss/sty1.css" rel="stylesheet" type="text/css">
<link href="../styCss/fontsty.css" rel="stylesheet" type="text/css">
<script language="javascript" type="text/javascript">
function editStorage(menuStr)
{
if(menuStr!='NaN')
{
window.showModalDialog('selectModalDialog.aspx?storage_edit.aspx?status=edit&id='+menuStr,'','dialogWidth:500px;dialogHeight:350px;help:yes;scroll:no;status:no');
}
else
{
alert('传入错误参数');
}
window.location.href = location.href;
}
function deleteOutStorage(menuStr,menuStr2)
{
if(window.confirm('确定要删除该物料出库记录吗?'))
{
window.showModalDialog('selectModalDialog.aspx?materielList_outStorageDelete.aspx?id='+menuStr+"&outID="+menuStr2,'','dialogWidth:10px;dialogHeight:10px;help:yes;scroll:no;status:no');
}
window.location.href = location.href;
}
function add_Materiel_OutStorage()
{
window.showModalDialog('selectModalDialog.aspx?materielOutStorage_Add.aspx','s','dialogWidth:650px;dialogHeight:680px;help:no;scroll:no;status:yes');
window.location.href = location.href;
}
function viewMaterielList(menuStr)
{
if(window.confirm('确定要核算该批物料生产的各种样式的成品成本吗?'))
{
window.open('productCostDetail.aspx?id='+menuStr,'s','width=710px,height=600px,resizable=no scrollbars=yes');
}
}
function RandomNum()
{
var today = new Date();
var yy = eval(today.getYear())+'';
var mon = eval(today.getMonth()) + '';
//mm=(mm.length>1)?mm:0+mm;
var dd = eval(today.getDate()) + '';
var hh = eval(today.getHours()) + '';
var mm = eval(today.getMinutes()) + '';
var ss = eval(today.getSeconds()) +'';
var vrand = Math.round(Math.random()*1000000);
//var vrand1 = Math.round(Math.random()*1000000);
//alert(ss.length);
if(mon.length==1)
{
mon = '0' + mon;
// alert(mon);
}
//alert(yy + mon + dd + hh + mm + ss + vrand);
return yy + mon +dd + "-" + hh + mm + ss + "-" + vrand;
}
var SelEmpl = '';
function SelectEmpl(eid)
{
if (SelEmpl != '')
{
document.all['NM'+SelEmpl].style.backgroundColor = '';
document.all['NM'+SelEmpl].style.color = '';
}
SelEmpl = eid;
document.all['NM'+eid].style.backgroundColor = 'gold';
document.all['NM'+SelEmpl].style.color = 'black';
//------------------------------------
var returnValue1="";
var reportID = "";
var TableRows=document.Form1.all["storageTable"].rows;
var ids = eid-1;
if(TableRows[ids].cells[0].childNodes[0].tagName=="INPUT")
{
returnValue1 = TableRows[ids].cells[0].childNodes[0].value;
}
}
</script>
</HEAD>
<body MS_POSITIONING="GridLayout" topmargin="0" leftmargin="0">
<form id="Form1" method="post" runat="server">
<table height="5">
<tr>
<td></td>
</tr>
</table>
<table width="760" height="98%" border="0" cellpadding="0" cellspacing="0" class="hTable_cro">
<tr>
<td valign="top">
<table width="760" cellpadding="0" cellspacing="0" id="storageTable">
<tr>
<td height="20" colspan="8" align="center" background="../Image/titleLine.gif" class="whitFont">成本核算</td>
</tr>
<asp:repeater id="outStorageListRp" runat="server">
<HeaderTemplate>
<tr class="table_botLine" align="center">
<td class="table_botLine table_topLine ">图标</td>
<td class="table_botLine table_leftLine table_topLine">出库编号</td>
<td class="table_botLine table_leftLine table_topLine">物料名称</td>
<td class="table_botLine table_leftLine table_topLine">时间</td>
<td class="table_botLine table_leftLine table_topLine ">事件</td>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr id="NM<%#DataBinder.Eval(Container.DataItem,"formID")%>" onMouseOver="this.bgColor='LemonChiffon'" onDblClick="viewMaterielList('<%#DataBinder.Eval(Container.DataItem,"formID")%>')" onMouseOut="this.bgColor=''" onClick="javascript:SelectEmpl('<%#DataBinder.Eval(Container.DataItem,"formID")%>')">
<td width="54" class="table_botLine "> </td>
<td width="141" class="table_botLine table_leftLine"> <%#DataBinder.Eval(Container.DataItem,"outmaterielStorageID")%>
</td>
<td width="339" class="table_botLine table_leftLine"> <%#DataBinder.Eval(Container.DataItem,"materielName")%>
</td>
<td width="140" class="table_botLine table_leftLine"> <%#DataBinder.Eval(Container.DataItem,"crdate")%>
</td>
<td width="84" class="table_botLine table_leftLine " align="center">
<a href="#" onClick="javascript:deleteOutStorage('<%#DataBinder.Eval(Container.DataItem,"formID")%>','<%#DataBinder.Eval(Container.DataItem,"outmaterielStorageID")%>')"><img src="../Image/delete.gif" width="12" height="13" border="0" alt="删除"></a></td>
</tr>
</ItemTemplate>
</asp:repeater>
<tr>
<td height="25" colspan="5" align=left>
<table width="550" border="0">
<tr class="font" align="center">
<td>当前页:
<asp:label id="currentNum" runat="server"></asp:label>
<asp:hyperlink id="first" runat="server">首页</asp:hyperlink>
<asp:hyperlink id="pre" runat="server">上页</asp:hyperlink>
<asp:hyperlink id="next" runat="server">下页</asp:hyperlink>
<asp:hyperlink id="last" runat="server">尾页</asp:hyperlink> 共
<asp:label id="totalPage" runat="server"></asp:label> 页
<asp:label id="recordNum" runat="server" CssClass="xingColor"></asp:label>条记录
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="25" width="54" align="right" >
<img src="../Image/add.gif" width="14" height="14" onClick="javascript:add_Materiel_OutStorage()"
alt="新建物料出库信息"> 新 建</td>
<td height="20" colspan="6" ></td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</body>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -