<%@ page language="C#" autoeventwireup="true" inherits="ims.rows, ims.web" enableviewstatemac="false" enableEventValidation="false" %>
<!DOCTYPE html>
<html id="rows">
<head runat="server"><title></title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge" /><meta name="viewport" content="width=device-width,initial-scale=1">
</head>
<body class="waiting" onbeforeunload="confirmExit();" runat="server" id="body">
    <div class="hide"><img src="images/loading.gif" />处理中，请稍候 …</div>
    <div runat="server" id="loadLink" class="center mtop_m gray" visible="false"></div>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="sm" runat="server" OnAsyncPostBackError="AsyncError" />
        <asp:HiddenField runat="server" ID="keyValue" />
        <table class="normal disselect" id="main">
            <tbody runat="server" id="tbody"></tbody>
        </table>
        <table class="normal" id="helper" runat="server">
            <tr>
                <td onclick="addRow(1);" class="no" oncontextmenu="return showToolMenu();" title="单击添加新行，右键弹出菜单"></td>
                <td id="tdScan" class="hide">
                    <div class="corner middle" id="scanArea">
                        <span id="switcher"> </span>
                        <input type="text" id="tbScan" autocomplete="off" /><div id="scanTotal"><i>总计：</i><i id="total">0</i><i id="priceUnit">元</i></div>
                    </div>
                </td>
            </tr>
        </table>
        <div runat="server" id="divMore" class="center mtop_s mbottom_s" visible="false"></div>
        <asp:UpdatePanel ID="upBtns" runat="server" RenderMode="Block" UpdateMode="conditional">
        <ContentTemplate>
            <asp:Button ID="btnSave" runat="server" OnClientClick="return doValidate();" Text="保存" OnClick="Save" CssClass="btn big" />
            <asp:Button ID="btnSave_New" runat="server" OnClientClick="return doValidate();" Text="保存并继续添加" OnClick="Save" CssClass="btn" />
            <input type="button" runat="server" id="btnLayout" value="版式" onclick="return showLayouts();" class="btn" />
            <input type="button" onclick="back();" value="返回" class="btn" />
            <input type="button" value="帮助" class="btn" onclick="showHelp();" />
        </ContentTemplate>
        </asp:UpdatePanel>
        <ims:Pop runat="server" ID="scan" OnOkClick="SaveScanset" Title="设置扫码输入" HelpSubject="RowsScan" ShowProgress="false">
            <ContentTemplate>
                扫码输入：<asp:DropDownList runat="server" ID="ddlScan"></asp:DropDownList><br />
                数量字段：<asp:DropDownList runat="server" ID="ddlCount"></asp:DropDownList><br />
                单价字段：<asp:DropDownList runat="server" ID="ddlPrice"></asp:DropDownList><br />
                系数字段：<asp:DropDownList runat="server" ID="ddlCoeff"></asp:DropDownList><img src="images/what.gif" title="说明" onclick="What('coeff')" class="what" />
                <div class="sepline"></div>
                <asp:CheckBox runat="server" id="cbDefault" Text="默认启用扫码输入" />
            </ContentTemplate>
        </ims:Pop>
        <div class="menu" id="tools" runat="server">
            <a accesskey="C" id="aPaste" href="#" onclick="return pasteAsNew();">粘贴　　　　 Alt+P</a>
            <div></div>
            <a href="#" onclick="return addRow(3);">添加 3 行</a>
            <a href="#" onclick="return addRow(10);">添加10行</a>
        </div>
        <div class="menu" id="rowMenu">
            <a accesskey="C" id="aCopy" href="#" onclick="return setSource('copy');">复制　　　　 Alt+C</a>
            <a accesskey="X" id="aCut" runat="server" href="#" onclick="return setSource('cut');">剪切　　　　 Alt+X</a>
            <a accesskey="D" id="aDel" runat="server" href="#" onclick="return del();">删除　　　　 Alt+D</a>
            <a accesskey="R" id="aClear" href="#" onclick="return clearData();">清空　　　　 Alt+R</a>
            <div id="sep"></div>
            <a accesskey="P" id="aClone" href="#" onclick="return pasteRows(false);">粘贴　　　　 Alt+P</a>
            <a accesskey="R" id="aInsert" runat="server" href="#" onclick="return pasteRows(true);">插入到此处　 Alt+R</a>
        </div>
        <div class="menu" id="layouts" runat="server"></div>
    <script src="js/comm.js"></script><script src="js/rows.js"></script>
    </form>
</body>
</html>