<%@ page language="C#" autoeventwireup="true" inherits="general_Contract_ProductRecord, CrmCommand" %>
<%@ Register TagPrefix="C1WebGrid" Namespace="C1.Web.C1WebGrid" Assembly="C1.Web.C1WebGrid.2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
    <script src="../../Javascript/CheckALL.js" type="text/javascript"></script>
    <script language=javascript type="text/javascript">
    function openwin()
    {
      var url="AddClientProduct.aspx?ConNum="+document.getElementById("Hid").value;
      var dd=window.showModalDialog(url,"水平","dialogWidth=785px;dialogHeight=400px");
      location.reload();
    }
    </script>
    <script src="../../Javascript/CheckALL.js" type="text/javascript"></script>
</head>
<body class ="bodycolor" leftmargin="0" topmargin="0" >
    <form id="form1" runat="server">
    <div>
      <C1WebGrid:C1WebGrid ID="C1WebGrid1" runat="server"  AllowSorting="True"
            AutoGenerateColumns="False" CallbackOptions="Paging,Sorting,Selection" CssClass="c1report"
            DataKeyField="Contract_ID" HScrollBarStyle="Automatic" VScrollBarStyle=Always AllowColSizing=true 
            OnSortingCommand="C1WebGrid1_SortingCommand"
             SkinID="gridviewSkin"  width="807px" height=250px >
            <Columns>
                
                  
                <C1WebGrid:C1BoundColumn DataField="Contract_ID"  Visible=False  HeaderText="序号" SortExpression="Contract_ID">
                </C1WebGrid:C1BoundColumn>
                <C1WebGrid:C1BoundColumn DataField="Contract_Num" Fixed=True  HeaderText="合同编号" SortExpression="Contract_Num">
                </C1WebGrid:C1BoundColumn>
                <C1WebGrid:C1TemplateColumn SortExpression="Product_Name" HeaderText="产品名称"><ItemTemplate><%#Eval("Product_Name")%></ItemTemplate></C1WebGrid:C1TemplateColumn>
                <C1WebGrid:C1BoundColumn DataField="Product_Num" HeaderText="产品数量"  SortExpression="Product_Num">
                </C1WebGrid:C1BoundColumn>
                <C1WebGrid:C1BoundColumn DataField="Product_SinglePrice" DataFormatString="{0:C}" HeaderText="产品单价"  SortExpression="Product_SinglePrice">
                </C1WebGrid:C1BoundColumn>
                <C1WebGrid:C1BoundColumn DataField="Product_TotalPrice" DataFormatString="{0:C}" HeaderText="产品总价"  SortExpression="Product_TotalPrice">
                </C1WebGrid:C1BoundColumn>
                <C1WebGrid:C1TemplateColumn HeaderText="开始日期"  SortExpression="Product_BeginTime" ><ItemTemplate><%#string.Format("{0:d}", Eval("Product_BeginTime"))%></ItemTemplate><ItemStyle HorizontalAlign="Center" Wrap="True" />
                    <HeaderStyle HorizontalAlign="Center" /></C1WebGrid:C1TemplateColumn>
                    <C1WebGrid:C1TemplateColumn HeaderText="结束日期"  SortExpression="Product_EndTime" ><ItemTemplate><%#string.Format("{0:d}", Eval("Product_EndTime"))%></ItemTemplate><ItemStyle HorizontalAlign="Center" Wrap="True" />
                    <HeaderStyle HorizontalAlign="Center" /></C1WebGrid:C1TemplateColumn>
                   
            </Columns>
        </C1WebGrid:C1WebGrid>
        &nbsp;<input id="Hid" runat="server" type="hidden" /></div>
    </form>
</body>
</html>
