<%@ Page Language="C#" AutoEventWireup="true" Inherits="Hidistro.UI.Web.Admin.ExpressComputerpes" MasterPageFile="~/Admin/Admin.Master" %>
<%@ Register TagPrefix="UI" Namespace="ASPNET.WebControls" Assembly="ASPNET.WebControls" %>
<%@ Register TagPrefix="Hi" Namespace="Hidistro.UI.Common.Controls" Assembly="Hidistro.UI.Common.Controls" %>
<asp:Content ID="Content2" ContentPlaceHolderID="contentHolder" runat="server">
<div class="dataarea mainwidth td_top_ccc">
    <div class="toptitle">
		  <em><img src="../images/03.gif" width="32" height="32" /></em>
		  
          <h1 class="title_height"><strong>物流公司</strong></h1>
          <span>物流公司中的快递100Code是物流跟踪所需要的，淘宝Code是同步淘宝发货所需要的，请不要随意修改</span>
		</div>
   <div class="functionHandleArea clearfix">
			<!--分页功能-->
			   <div class="pageHandleArea">
				<ul><li><a href="#" onclick="javascript:ShowAddSKUValueDiv('添加','','','')" class="submit_jia">添加物流公司</a></li></ul>
			</div>
			<table>
			    <tr>
			        <td>公司名称：<asp:TextBox ID="txtcompany" runat="server"></asp:TextBox></td>
			        <td>快递100Code：<asp:TextBox ID="txtKuaidi100Code" runat="server"></asp:TextBox></td>
			        <td>淘宝Code：<asp:TextBox ID="txtTaobaoCode" runat="server"></asp:TextBox></td>
			        <td><asp:Button ID="btnSearchButton" runat="server" class="searchbutton" Text="查询" /></td>
			    </tr>
			</table>
			
			<!--结束-->
	  </div>
	<!--数据列表区域-->
	<div class="datalist">
	<div>
	 <UI:Grid ID="grdExpresscomputors" runat="server" ShowHeader="true" DataKeyNames="Name" AutoGenerateColumns="false" GridLines="None" Width="100%" HeaderStyle-CssClass="border_background">
          <HeaderStyle CssClass="table_title" />
            <Columns>   
                    <asp:TemplateField HeaderText="物流公司"  HeaderStyle-CssClass="td_right">
                        <ItemTemplate><%#Eval("Name") %></ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="快递100Code" HeaderStyle-CssClass="td_right">
                        <ItemTemplate><%# Eval("Kuaidi100Code")%></ItemTemplate>
                    </asp:TemplateField>
                     <asp:TemplateField HeaderText="淘宝Code" HeaderStyle-CssClass="td_right">
                        <ItemTemplate><%# Eval("TaobaoCode")%></ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="操作" HeaderStyle-CssClass="border_top border_bottom">
                        <ItemStyle CssClass="spanD spanN" />
                           <ItemTemplate>
	                           <span class="submit_bianji"><a href="javascript:void(0)" onclick="ShowAddSKUValueDiv('编辑','<%# Eval("Name") %>','<%# Eval("Kuaidi100Code") %>', '<%# Eval("TaobaoCode") %>')" class="SmallCommonTextButton">编辑</a></span>
	                           <span class="submit_shanchu"><Hi:ImageLinkButton runat="server" ID="Delete" CommandName="Delete" CommandArgument=<%# Eval("Name") %>   IsShow="true" CssClass="SmallCommonTextButton" Text="删除"/></span>
                           </ItemTemplate>
                    </asp:TemplateField>                                         
            </Columns>
        </UI:Grid>
</div>
<div class="blank12 clearfix"></div>
	 <div class="page">
      </div>
      </div>
<!--数据列表底部功能区域-->
</div>  
<div class="Pop_up" id="divexpresscomputers" style="display: none;">
<input type="hidden" id="hdcomputers" runat="server" />
    <h1>
    
       <span id="spExpressCmp"> 添加&quot;&quot;信息</span>
    </h1>
    <div class="img_datala">
        <img src="../images/icon_dalata.gif" width="38" height="20" /></div>
    <div class="mianform">
        <span id="spMsg" style="color:Red; margin-bottom:5px;"></span>        
        <ul id="valueStr">
            <li><span class="formitemtitle Pw_110">公司名称：<em>*</em></span>
                <asp:TextBox ID="txtAddCmpName" CssClass="forminput" Width="250" runat="server" />
            </li>
            <li><span class="formitemtitle Pw_110">快递100Code：<em>*</em></span>
            <asp:TextBox ID="txtAddKuaidi100Code" CssClass="forminput" Width="250" runat="server"></asp:TextBox>
            </li>
            <li><span class="formitemtitle Pw_110">淘宝Code：<em>*</em></span>
            <asp:TextBox ID="txtAddTaobaoCode" CssClass="forminput" Width="250" runat="server"></asp:TextBox>
            </li>
        </ul>
            <div class="clear"></div>
        <ul class="up Pa_100">
            <asp:Button ID="btnCreateValue" runat="server" Text="确 定" CssClass="submit_DAqueding" />
        </ul>
    
    </div>
</div>
<script>
function ShowAddSKUValueDiv(opers,strname,strKuaidi100Code, strTaobaoCode){
    $("#<%=hdcomputers.ClientID %>").val(strname);
    if(strname!=""){
         $("#spExpressCmp").html(opers+'&quot;'+strname+'&quot;信息');
         $("#spMsg").html("快递100Code是物流跟踪所需要的，淘宝Code是同步淘宝发货所需要的，请不要随意修改！");
    }else{
         $("#spExpressCmp").html(opers+'物流公司信息');
         $("#spMsg").html("快递100Code是物流跟踪所需要的，淘宝Code是同步淘宝发货所需要的,请填写正确！");
    }

     $("#<%=txtAddCmpName.ClientID %>").val(strname);
     $("#<%=txtAddKuaidi100Code.ClientID %>").val(strKuaidi100Code);
     $("#<%=txtAddTaobaoCode.ClientID %>").val(strTaobaoCode);
    DivWindowOpen(540,300,'divexpresscomputers');
}
</script> 
</asp:Content>
