<%@ Page Title="" Language="C#" MasterPageFile="~/Dialog/DialogMaster.Master" AutoEventWireup="true"
    CodeBehind="SpecsEdit.aspx.cs" Inherits="OAWeb.crm.product.SpecsEdit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server" >
    <div class="form" style="width: 600px; padding: 10px;">
        <table cellpadding="0" cellspacing="0" border="0" class="table_form">
            <tr>
                <td class="right">
                    <span class="red">*</span> 规格名称：
                </td>
                <td>
                    <asp:TextBox ID="txtSpecName" runat="server" CssClass="text width200"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="right">
                    显示类型：
                </td>
                <td>
                    <asp:RadioButtonList ID="rdoPic" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                        <asp:ListItem Selected="True" Value="0">文字</asp:ListItem>
                        <asp:ListItem Value="1">图片</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr>
                <td class="right">
                     排序：
                </td>
                <td>
                    <asp:TextBox ID="txtSortCode" runat="server" CssClass="text width40"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    <input id="btnSave" type="button" value=" 保 存 " class="btn_77px" />
                    <input id="btnClose" type="button" value=" 返 回 " onclick="art.dialog.close();return false;"
                        class="btn_77px" />
                </td>
            </tr>
        </table>
    </div>
    <script type="text/javascript">
        $(document).ready(function () {
            rulesValue = { '<%=txtSpecName.UniqueID %>': { required: true} };
            messagesValue = { '<%=txtSpecName.UniqueID %>': { required: "请输入规格名称"} }
            var form = jQuery.validator.ValidateForm($("#aspnetForm"), rulesValue, messagesValue);
            $("#btnSave").click(function () {
                if (form.form()) {
                    FormPostAjax("/crm/product/SpecsEdit.aspx?op=Save&TypeId=<%=TypeId %>", "ok", CloseReload);
                }
                return false;
            })
        });
    </script>
</asp:Content>
