<%@ Page Title="" Language="C#" MasterPageFile="~/Styles/MasterPage/MasterPage_Edit.master" AutoEventWireup="true" CodeFile="Digit_Edit.aspx.cs" Inherits="Base_Digit_Digit_Edit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <script type="text/javascript">
        function Save() {
            var digit_quantity = $("#digit_quantity").val();
            var digit_number = $("#digit_number").val();
            var digit_unit_price = $("#digit_unit_price").val();
            var digit_exch = $("#digit_exch").val();
            ShowLoadingMask(); //显示遮罩
            $.ajax({
                type: "POST",
                contentType: "application/json",
                url: 'Digit_Service.asmx/Save',
                data: "{digit_quantity:'" + digit_quantity + "',digit_number:'" + digit_number + "',digit_unit_price:'" + digit_unit_price + "',digit_exch:'" + digit_exch + "'}",
                dataType: 'json',
                success: function (result) {
                    HideLoadingMask(); //关闭遮罩
                    var r = result.d;
                    if (r == "success") {
                        AlertOK('保存成功!');
                    } else {
                        alert(r);
                    }
                }
            }); 
        }
    </script>
    <!--工具栏-->
    <div class="list_menu_bar">
        <a plain="true" class="easyui-linkbutton" iconcls="icon-save" onclick="javascript:Save()" >保存</a>
    </div>
    <div style="width:500px;height:300px;overflow:auto;">
        <div class="edit_area">
            <table>
            <tr>
                <td style='text-align:right'>单价:</td>
                <td>
                    <input type='text' class='edit_text_box' id='digit_unit_price' value='<%=xview["digit_unit_price"]%>' style='width:120px;'/></td>
            </tr>
            <tr>
                <td style='text-align:right'>数量:</td>
                <td>
                    <input type='text' class='edit_text_box' id='digit_quantity' value='<%=xview["digit_quantity"]%>' style='width:120px;'/></td>
            </tr>
            <tr>
                <td style='text-align:right'>件数:</td>
                <td>
                    <input type='text' class='edit_text_box' id='digit_number' value='<%=xview["digit_number"]%>' style='width:120px;'/></td>
            </tr>
            <tr>
                <td style='text-align:right'>换算率:</td>
                <td>
                    <input type='text' class='edit_text_box' id='digit_exch' value='<%=xview["digit_exch"]%>' style='width:120px;'/></td>
            </tr>
            </table>
        </div>
    </div>
</asp:Content>

