<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AfterConsumptionList.aspx.cs" Inherits="CY.WebForm.Pages.sysInquiry.AfterConsumptionList" %>
|
|
<%@ Register src="PrintType.ascx" tagname="PrintType" tagprefix="uc1" %>
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
<head id="Head1" runat="server">
|
<title></title>
|
<uc:CMSHead ID="CMSHead1" runat="server" />
|
<script type="text/javascript">
|
function onClick(e, treeId, treeNode) {
|
//单击展开
|
var zTree = $.fn.zTree.getZTreeObj("PrintTypeTree");
|
zTree.expandNode(treeNode);
|
|
//存储点击节点id
|
jQuery.jCookie('AfterTreeNodeId', treeNode.id.toString());
|
|
|
if (!treeNode.isParent) {
|
|
var printTypeId = treeNode.id;
|
window.location.href = "/Pages/sysInquiry/AfterConsumptionList.aspx?Operate=afterConsumption&PrintingTypeId=" + printTypeId;
|
|
}
|
parent.iframeHeight('frmrightChild');
|
}
|
|
$(
|
function () {
|
var hidPrintTypeId = $("#hidPrintTypeId").val();
|
var zTree = $.fn.zTree.getZTreeObj("PrintTypeTree");
|
var selTreeId = jQuery.jCookie('AfterTreeNodeId');
|
var node;
|
if (selTreeId != "") {
|
var printType = '<%=Request["PrintingTypeId"]%>';
|
node = zTree.getNodeByParam("id", selTreeId);
|
if (printType == 'null' || printType == "") {
|
if (node) {
|
onClick(zTree, node.id, node);
|
}
|
else {
|
Init();
|
}
|
}
|
zTree.selectNode(node);
|
}
|
else {
|
Init();
|
}
|
setInterval("parent.iframeHeight('frmrightChild')", 1000);
|
}
|
);
|
|
function Init() {
|
var zTree = $.fn.zTree.getZTreeObj("PrintTypeTree");
|
var printType = '<%=Request["PrintingTypeId"]%>';
|
if (printType == 'null' || printType == "") {
|
var root = zTree.getNodes()[0];
|
var node;
|
try {
|
node = root.children[0].children[0];
|
}
|
catch (ex) {
|
node = root;
|
node.id = -2;
|
}
|
onClick(zTree, node.id, node);
|
}
|
}
|
</script>
|
</head>
|
<body>
|
<form id="form1" runat="server">
|
<div id="scrollContent">
|
<div style="float: left; margin-right: 10px">
|
<uc1:PrintType ID="PrintType1" runat="server" OnClick="onClick" UserType="2" />
|
<input type="hidden" id="hidPrintTypeId" value="<%=PrintingTypeId %>"/>
|
</div>
|
<div style="float: left; width: 80%">
|
<div>
|
<span style="color:Red"><%=GetFastSetMsg(PrintingTypeId)%></span>
|
</div>
|
<table class="table2" style=" margin-top:0px;">
|
<tr>
|
<td align="left"><b>印刷消耗</b></td>
|
<td style="width: 50px;">
|
<asp:Button ID="btnSave_Basic" Text="保存" runat="server" CssClass="Btn" OnClick="btnSave_Basic_Click" OnClientClick="showWait();"/>
|
</td>
|
</tr>
|
</table>
|
<table class="tableStyle" useMultColor="true">
|
<tr><td>印刷消耗比例(%):</td><td><input type="text" id="txtBasicRatio_Basic" runat="server" value="0" class="validateFloat"/></td><td>最低消耗数量(张):</td><td><input id="txtMinNumber_Basic" type="text" runat="server" value="0" class="validateInt"/></td></tr>
|
</table>
|
<br />
|
<asp:Panel ID="panPrintColor" runat="server">
|
<table class="table2" style=" margin-top:0px;">
|
<tr>
|
<td align="left"><b>印刷颜色消耗</b></td>
|
<td style="width: 50px;">
|
<asp:Button ID="btnSave_PrintColor" Text="保存" runat="server" CssClass="Btn" OnClick="btnSave_PrintColor_Click" OnClientClick="showWait();"/>
|
</td>
|
</tr>
|
</table>
|
<asp:Repeater ID="RepPrintColorConsumptionList" runat="server">
|
<HeaderTemplate>
|
<table class="tableStyle" useMultColor="true">
|
<tr>
|
<th>印刷颜色</th>
|
<th>基本消耗比例(%)</th>
|
<th>最低消耗数量(张)</th>
|
</tr>
|
</HeaderTemplate>
|
<ItemTemplate>
|
<tr>
|
<td><asp:Label ID="lblColorName" Text='<%#Eval("ColorName")%>' runat="server"></asp:Label></td>
|
<td><asp:TextBox id="txtBasicRatio" Text='<%#GetDecimalStr(Eval("BasicRatio"))%>' runat="server" CssClass="validateFloat"></asp:TextBox></td>
|
<td><asp:TextBox id="txtMinNumber" Text='<%#Eval("MinNumber")%>' runat="server" CssClass="validateInt"></asp:TextBox></td>
|
</tr>
|
</ItemTemplate>
|
<FooterTemplate>
|
</table>
|
</FooterTemplate>
|
</asp:Repeater>
|
</asp:Panel>
|
<asp:Panel ID="panAfter" runat="server">
|
<table class="table2" style=" margin-top:0px;">
|
<tr>
|
<td align="left"><b>后道消耗</b></td>
|
<td style="width: 50px;">
|
<asp:Button ID="btnSave" Text="保存" runat="server" CssClass="Btn" OnClick="btnSave_Click" OnClientClick="showWait();"/>
|
</td>
|
</tr>
|
</table>
|
<asp:Repeater ID="RepAfterConsumptionList" runat="server">
|
<HeaderTemplate>
|
<table class="tableStyle" useMultColor="true">
|
<tr>
|
<th>后道类型</th>
|
<th>基本消耗比例(%)</th>
|
<th>最低消耗数量(张)</th>
|
<th style="display:none"></th>
|
</tr>
|
</HeaderTemplate>
|
<ItemTemplate>
|
<tr>
|
<td><%#Eval("AfterParameterName")%></td>
|
<td><asp:TextBox id="txtBasicRatio" Text='<%#GetDecimalStr(Eval("BasicRatio"))%>' runat="server" CssClass="validateFloat"></asp:TextBox></td>
|
<td><asp:TextBox id="txtMinNumber" Text='<%#Eval("MinNumber")%>' runat="server" CssClass="validateInt"></asp:TextBox></td>
|
<td style="display:none"><asp:Label ID="lblAfterParameterId" Text='<%#Eval("AfterParameterId")%>' runat="server"></asp:Label></td>
|
</tr>
|
</ItemTemplate>
|
<FooterTemplate>
|
</table>
|
</FooterTemplate>
|
</asp:Repeater>
|
</asp:Panel>
|
</div>
|
</div>
|
|
</form>
|
</body>
|
</html>
|