<%@ Page Title="" Language="C#"  MasterPageFile="~/bps/basic.Master"  ClientIDMode="Static" AutoEventWireup="true" CodeBehind="Supply_Addedit.aspx.cs" Inherits="purchase.purchase.Supply_Addedit" %>
  
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    
    <script src="../javascript/layer/layer.js"></script>

                
    <script src="../UserControl/supply_js.aspx?index=0&id=<%=id %>"></script>

   
     <style>
        table.add th {
         font-weight:normal; text-align:right
        }
    </style> 


        <asp:Panel runat="server" ID="pnl_rotate">
 
 
    
    
          <table class="table add table-condensed" style=""  >
        
           
         
         
           <tr>      
     
             <th width="150px"><%=isen?"Supply Name":"供应商名称" %> <font color=red>*</font> </th>
             <td  >
             <asp:TextBox ID="supplyname" ClientIDMode="Static" Width="300px"  class="form-control"  runat="server"></asp:TextBox>  
                <asp:RequiredFieldValidator ControlToValidate="supplyname" ForeColor="Red" ID="RequiredFieldValidator2" runat="server" ErrorMessage="商户名不能够为空" Display="Dynamic"></asp:RequiredFieldValidator>

            </td>
            
            <th width="120px"><%=isen?"Vendor Number":"供应商号V.Nr" %> <font color=red>*</font> </th>

               <td>

               <asp:TextBox ID="supplycode" ClientIDMode="Static"  Width="300px" class="form-control"  runat="server"></asp:TextBox>  
                <asp:RequiredFieldValidator ControlToValidate="supplycode" ForeColor="Red" ID="RequiredFieldValidator1" runat="server" ErrorMessage="商户号不能够为空" Display="Dynamic"></asp:RequiredFieldValidator>


               </td>

            </tr>

            
            <tr>

                  <th ><%=isen?"Contact Person":"供应商联系人" %> </th>
             <td>
                  <asp:TextBox ID="contactname"  ClientIDMode="Static"   Width="300px" class="form-control"    runat="server"></asp:TextBox> 
                </td>
              <th ><%=isen?"Contact Mobile":"联系手机" %> </th>
          <td >  
              <asp:TextBox ID="mobile"  ClientIDMode="Static"  Width="300px"  class="form-control"   runat="server"></asp:TextBox>   
           </td>
              
            </tr>
                
                <tr> 
         
          

              <th ><%=isen?"Contact Email":"联系邮件" %> </th>
          <td >  
              <asp:TextBox ID="email"  ClientIDMode="Static"  Width="300px"  class="form-control"   runat="server"></asp:TextBox>   
           </td>


              <th ><%=isen?"Contact Tel":"固定电话" %> </th>
          <td >  
              <asp:TextBox ID="tel"   ClientIDMode="Static"   Width="300px" class="form-control"   runat="server"></asp:TextBox>   
           </td>
             
       </tr>


               <tr> 
          
                   
            <th ><%=isen?"Contact Fax":"商户传真" %> </th>
          <td >  
              <asp:TextBox ID="fax"  ClientIDMode="Static"  Width="300px"  class="form-control"   runat="server"></asp:TextBox>   
           </td>
             
        <th><%=isen?"In charge for Purchase":"公司采购人" %> (<a   href=# onclick="alert('请在后台用户列表里，给员工增加admin operator角色，提升用户为公司采购人'); return false;">+</a>)</th>
                <td>
                      <asp:DropDownList  ID="ddl_purchaseuser"  ClientIDMode="Static" 
                            class="form-control"    Width="300px" runat="server"></asp:DropDownList> 


                </td>
             
             
       </tr>






        

        <tr>
        
        
             
            <th ><%=isen?"Supply Site":"商户网站" %>  </th>
          <td >  
              <asp:TextBox ID="website"  ClientIDMode="Static"  Width="300px"  class="form-control"   runat="server"></asp:TextBox>   
           </td>
             
       <th>
                 <%=isen?"Incoterm":"商户术语" %>    
                </th>
                <td>
<asp:DropDownList runat="server" CssClass="form-control "  Width="300px" ClientIDMode="Static" ID="ddl_incoterm"></asp:DropDownList>  
     
                </td>
             
             
       </tr>
         



            <tr>


              <th > <%=isen?"Group":"所属分组" %>     </th>
          <td >  
             <asp:DropDownList runat="server" class="form-control"  Width="300px" ClientIDMode="Static" ID="ddl_groupname"></asp:DropDownList>
           </td>
             
         
         
        
              <th > <%=isen?"Pay Circle":"账期" %>  </th>
          <td >  
              <asp:DropDownList runat="server" CssClass="form-control "   Width="300px" ClientIDMode="Static" ID="ddl_paycircle"></asp:DropDownList>
       
                </td>

            </tr>




              
                        <tr>
         <td style="background-color:#f5f5f5" colspan="4">
             
         </td>
     </tr>




          <tr>
        <th>  <%=isen?"Bank Name":"银行名称" %> </th>
              <td>

                 <asp:TextBox ID="bankusername"  ClientIDMode="Static"  Width="300px"  class="form-control"   runat="server"></asp:TextBox>   
              </td>

         <th ><%=isen?"Bank Card Num":"银行名称" %> </th>
          <td >  
              <asp:TextBox ID="banknum"  ClientIDMode="Static"  Width="300px" class="form-control"   runat="server"></asp:TextBox>   
           </td>
              
         
        
             
             
       </tr>

        
       

          <tr>
        
         <th ><%=isen?"Pay Method":"付款方式" %> </th>
          <td >  
             <asp:DropDownList runat="server" CssClass="form-control"  Width="300px" ClientIDMode="Static" ID="ddl_payment"></asp:DropDownList>
           </td>
              
         
            <th ><%=isen?"Invoice Type":"发票类型" %>  </th>
          <td  class=" form-inline">  
  <asp:DropDownList runat="server" CssClass="form-control " Width="190px" ClientIDMode="Static" ID="ddl_invoicetype"></asp:DropDownList>  
        
          <%=isen?"Tax Rate":"税率" %>     <asp:TextBox runat="server" Width="100px" CssClass="form-control"  ID="taxrate"></asp:TextBox>%
                 </td>
             
             
             
       </tr>

       
            
        




       <tr>
          <th>    <%=isen?"Address":"商户地址" %>  </th>
       <td colspan="3"  >

          <asp:TextBox ID="address"  Width="600px"  ClientIDMode="Static"  class="form-control inline"   runat="server"></asp:TextBox>  
         

           </td>
       </tr> 


         <tr>
    
           <th> <%=isen?"Note":"商户备注" %> <br /> </th>
          
           <td  colspan="3" > 
            <asp:TextBox ID="note" TextMode="MultiLine"  ClientIDMode="Static" 
                class="form-control"   Height="71px"   runat="server"></asp:TextBox> 
              </td>
           </tr>

      <tr>
          <td  colspan="4" style="text-align:center">
               
    
                <asp:button  Text="添 加" runat=server ID="add"   class="btn btn-primary" 
                   onclick="add_Click" />
               
                <asp:button  Text="更 新" runat=server ID="edit"   class="  btn btn-primary" 
                   onclick="edit_Click" />

              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

                 <asp:button  Text="删 除" runat=server ID="delete"   OnClientClick="return confirm('确定删除吗？')" class="  btn btn-danger" 
                   onclick="delete_Click" />
               
 


         
       </td>
       </tr>
          
          </table>
             
            </asp:Panel>
            





    </asp:Content>