<%@ control language="C#" autoeventwireup="true" inherits="Admin_UserControl_AddGoodsWholesale, ShopWe" %>

<script type="text/javascript">
    function AddGoodsWholesale(GroupName,UserGroup,MeetNumber,Price)
{
   var largess=document.getElementById("WholesaleDiv");
   var ObjID=generateMixed(10);
   largess.innerHTML+="<div id=\""+ObjID+"\" class=\"spe_left\"><p>"
        +"<span class=\"h7ys\">会员等级：<span style=\"color: #666666\">"
        +GroupName
        +"<input name=\"WholesaleUserGroup\" type=\"hidden\" value=\"" + UserGroup + "\" />"
        +"</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"
        +"批发数量:<span style=\"color: #666666\">"+MeetNumber+"<input name=\"WholesaleMeetNumber\" type=\"hidden\" value=\"" + MeetNumber + "\" /></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"
        +"批发价:<span style=\"color: #666666\">￥"+Price+"<input name=\"WholesalePrice\" type=\"hidden\" value=\"" + Price + "\" /></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"
        +"<img src=\"../Themes/Default/Images/del_imgred.gif\" alt=\"删除\" /><a href='javascript:DeleteSelectGoodsWholesale(\"" + ObjID + "\")' class=\"grey\">删除</a>"
        +"</p></div>";
}
function DeleteSelectGoodsWholesale(ObjID)
{
   var Row= document.getElementById(ObjID);
   Row.parentNode.removeChild(Row);   //删除
   //document.getElementById("fileDiv").removeChild(document.getElementById("file" + obj));
}

function GetSelectText(SelectID)
{
   var select=document.getElementById(SelectID);
   return select.options[select.selectedIndex].text;   
}

function GetSelectValue(SelectID)
{
   var select=document.getElementById(SelectID);
   return select.options[select.selectedIndex].value;   
}
</script>

<div class="k_allhuiyuan">
    会员组：<asp:DropDownList ID="DropDownListSelectGroupName" runat="server" CssClass="input5"
        Style="width: 100px; height: 20px">
    </asp:DropDownList>&nbsp;&nbsp;批发数量：<input id="TextWholesaleNumber" type="text" value="1"
        class="input2" style="width: 40px" />&nbsp;&nbsp;批发价：<input id="TextWholesalePrice"
            type="text" value="0" class="input2" style="width: 60px" /><input type="button" value="添加批发价"
                onclick="AddGoodsWholesale(GetSelectText('AddGoodsWholesaleControl_DropDownListSelectGroupName'),GetSelectValue('AddGoodsWholesaleControl_DropDownListSelectGroupName'),document.getElementById('TextWholesaleNumber').value,document.getElementById('TextWholesalePrice').value);"
                class="kon_button2" style="width: 80px; height: 20px" />
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td>
                <div id="WholesaleDiv">
                </div>
                <asp:Literal ID="LiteralWholesale" runat="server"></asp:Literal>
            </td>
        </tr>
    </table>
</div>
