<%@ page language="C#" autoeventwireup="true" inherits="general_Contract_ContractJbInfo, CrmCommand" %>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>单个合同的基本信息</title>
<script language="javascript">
function SetHeight()
{
if(parent.document.getElementById('IFR')!=null)
{
parent.document.all('IFR').style.height=document.body.scrollHeight+20;
}
if(parent.document.getElementById('menu_main')!=null)
{
parent.document.all('menu_main').style.height=document.body.scrollHeight+20;
}
else
{
}
}
</script>
	<style type="text/css">
.style1 {
	font-size: x-small;
}
</style>
</head>
<body class ="bodycolor" leftmargin="0" topmargin="0" onload="SetHeight()">
    <form id="form1" runat="server">
        <table align="center" cellpadding="5" cellspacing="0" class="small" style="border-right: #000000 1px groove;
            border-top: #000000 1px groove; border-left: #000000 1px groove; width: 790px;
            border-bottom: #000000 1px groove">
            <tr>
                <td colspan="2" style="height: 75px">
                    <fieldset name="Group1">
                        <legend class="style1" >基本信息</legend>
                        <table cellpadding="0" cellspacing="0" style="width: 100%; height: 65px">
                            <tr>
                                <td style="width: 98px" class="style1">
                                    合同类型:</td>
                                <td colspan="2">
                                    <asp:TextBox ID="TxtType" runat="server" CssClass="BigInput" ReadOnly="True"
                                        Width="200px" Font-Size="X-Small"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td style="width: 98px; height: 24px;" class="style1">
                                    合同编号:</td>
                                <td colspan="2" style="height: 24px">
                                    <asp:TextBox ID="TxtContractNo" runat="server" CssClass="BigInput" ReadOnly="True"
                                        Width="200px" Font-Size="X-Small"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td style="width: 98px" class="style1">
                                    合同状态:</td>
                                <td colspan="2">
                                    <asp:TextBox ID="TxtState" runat="server" CssClass="BigInput" ReadOnly="True"
                                        Width="200px" Font-Size="X-Small"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td style="width: 98px;" class="style1">
                                    签约日期:</td>
                                <td colspan="2">
                                        <asp:TextBox
                                        ID="TxtCheckInData" runat="server" CssClass="BigInput" ReadOnly="True" Width="200px" Font-Size="X-Small"></asp:TextBox>
                                    </td>
                            </tr>
                            <tr>
                                <td style="width: 98px" class="style1">
                                    结束日期:</td>
                                <td colspan="2">
                                    <asp:TextBox
                                        ID="TxtEnddata" runat="server" CssClass="BigInput" ReadOnly="True" Width="200px" Font-Size="X-Small"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td style="width: 98px" class="style1">
                                    付款方式:</td>
                                <td colspan="2">
                                    <asp:TextBox ID="TxtMethod" runat="server" CssClass="BigInput" ReadOnly="True" Width="200px" Font-Size="X-Small"></asp:TextBox>
									<span class="style1">&nbsp;</span></td>
                            </tr>
                        </table>
                    </fieldset><span class="style1"> </span>
                    </td>
            </tr>
            <tr>
                <td style="width: 404px; height: 123px" valign="top">
                    <fieldset name="Group1">
                        <legend class="style1" >买方(乙方)</legend>
                        <table cellpadding="0" cellspacing="0">
                            <tr>
                                <td style="width: 80px" class="style1">
                                    公司名称</td>
                                <td>
                                    <asp:TextBox ID="TxtClientName" runat="server" CssClass="BigInput" ReadOnly="True"
                                        Width="280px" Font-Size="X-Small"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 72px" class="style1">
                                    公司地址</td>
                                <td>
                                    <asp:TextBox ID="TxtAddr" runat="server" CssClass="BigInput" ReadOnly="True" Width="280px" Font-Size="X-Small"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 72px" class="style1">
                                    联系电话</td>
                                <td>
                                    <asp:TextBox ID="TxtClientComTel" runat="server" CssClass="BigInput" ReadOnly="True"
                                        Width="174px" Font-Size="X-Small"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 72px" class="style1">
                                    公司传真</td>
                                <td >
                                    <asp:TextBox ID="TxtClientFax" runat="server" CssClass="BigInput" ReadOnly="True"
                                        Width="174px" Font-Size="X-Small"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 72px" class="style1">
                                    联系人</td>
                                <td>
                                    <asp:TextBox ID="TxtClientContact" runat="server" CssClass="BigInput" ReadOnly="True"
                                        Width="174px" Font-Size="X-Small"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 72px" class="style1">
                                    签约人</td>
                                <td>
                                    <asp:TextBox ID="TxtBuyCheckPeo" runat="server" CssClass="BigInput" ReadOnly="True"
                                        Width="174px" Font-Size="X-Small"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 72px" class="style1">
                                    联系手机</td>
                                <td>
                                    <asp:TextBox ID="TxtClientMobile" runat="server" CssClass="BigInput" ReadOnly="True"
                                        Width="174px" Font-Size="X-Small"></asp:TextBox>
                                </td>
                            </tr>
                        </table>
                    </fieldset><span class="style1"> </span>
                  </td>
                <td style="height: 123px" valign="top">
                    <fieldset name="Group1" style="width: 380px">
                        <legend class="style1" >卖方(甲方)</legend>
                        <table cellpadding="0" cellspacing="0" style="width: 388px">
                            <tr>
                                <td style="width: 80px" class="style1">
                                    公司名称</td>
                                <td>
                                    <asp:TextBox ID="TxtMyComName" runat="server" CssClass="BigInput" ReadOnly="True"
                                        Width="280px" Font-Size="X-Small"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 72px" class="style1">
                                    公司地址</td>
                                <td>
                                    <asp:TextBox ID="TxtMyAddr0" runat="server" CssClass="BigInput" ReadOnly="True" Width="280px" Font-Size="X-Small"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 72px" class="style1">
                                    联系电话</td>
                                <td>
                                    <asp:TextBox ID="TxtMyTel" runat="server" CssClass="BigInput" ReadOnly="True" Width="174px" Font-Size="X-Small"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 72px" class="style1">
                                    公司传真</td>
                                <td>
                                    <asp:TextBox ID="MyClientFax0" runat="server" CssClass="BigInput" ReadOnly="True"
                                        Width="174px" Font-Size="X-Small"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 72px" class="style1">
                                    联系人</td>
                                <td>
                                    <asp:TextBox ID="TxtMyPeople" runat="server" CssClass="BigInput" ReadOnly="True"
                                        Width="174px" Font-Size="X-Small"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td style="width: 72px" class="style1">
                                    签约人</td>
                                <td>
                                    <asp:TextBox ID="TxtMyCheckIn" runat="server" CssClass="BigInput" Width="174px" Font-Size="X-Small"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td style="width: 72px" class="style1">
                                    联系手机</td>
                                <td>
                                    <asp:TextBox ID="TxtMyMobile" runat="server" CssClass="BigInput" ReadOnly="True"
                                        Width="174px" Font-Size="X-Small"></asp:TextBox></td>
                            </tr>
                        </table>
                    </fieldset><span class="style1"> </span>
                    </td>
            </tr>
            <tr><td colspan="2" class="TableData" valign="top" ><fieldset name="Group1">
                                <legend class="style1" >合同产品信息 </legend>
                                <table cellspacing="0" cellpadding="0" style="width: 413px" align=center>
            <tr><td >
				<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="Contract_ID"
                                       Width="760px" Font-Size="X-Small" OnRowDataBound="GridView1_RowDataBound">
                                        <Columns>
											<asp:templatefield HeaderText="产品名称">
												<ItemStyle Width="100px" HorizontalAlign="Center" />
												<HeaderStyle Font-Size="Small" />
												<ItemTemplate>
													<%#Eval("Product_Name").ToString()%>
												</ItemTemplate>
											</asp:templatefield>
											<asp:templatefield HeaderText="产品单价">
												<EditItemTemplate>
													<asp:TextBox Text='<%#Eval("Product_SinglePrice").ToString()%>' runat="server" ID="txtsingel" Width="30px">
													</asp:TextBox>
												</EditItemTemplate>
												<ItemStyle Width="70px" HorizontalAlign="Center" />
												<HeaderStyle Font-Size="Small" />
												<ItemTemplate>
													<%#Eval("Product_SinglePrice").ToString()%>
												</ItemTemplate>
											</asp:templatefield>
											<asp:templatefield HeaderText="产品数量">
												<EditItemTemplate>
													<asp:TextBox Text='<%#Eval("Product_Num").ToString()%>' runat="server" ID="txtnum" Width="30px">
													</asp:TextBox>
												</EditItemTemplate>
												<ItemStyle Width="70px" HorizontalAlign="Center" />
												<HeaderStyle Font-Size="Small" />
												<ItemTemplate>
													<%#Eval("Product_Num").ToString()%>
												</ItemTemplate>
											</asp:templatefield>
											<asp:templatefield HeaderText="产品总价">
												<EditItemTemplate>
													<asp:TextBox Text='<%#Eval("Product_TotalPrice").ToString()%>' runat="server" ID="txtTotal" Width="40px">
													</asp:TextBox>
												</EditItemTemplate>
												<ItemStyle Width="70px" HorizontalAlign="Center" />
												<HeaderStyle Font-Size="Small" />
												<ItemTemplate>
													<%#Eval("Product_TotalPrice").ToString()%>
												</ItemTemplate>
											</asp:templatefield>
											<asp:templatefield HeaderText="开始日期">
												<ItemStyle Width="80px" HorizontalAlign="Center" />
												<HeaderStyle Font-Size="Small" />
												<ItemTemplate>
													<%#string.Format("{0:d}",Eval("Product_BeginTime"))%>
												</ItemTemplate>
											</asp:templatefield>
											<asp:templatefield HeaderText="结束日期">
												<ItemStyle Width="80px" HorizontalAlign="Center" />
												<HeaderStyle Font-Size="Small" />
												<ItemTemplate>
													<%#string.Format("{0:d}",Eval("Product_EndTime"))%>
												</ItemTemplate>
											</asp:templatefield>
											<asp:templatefield HeaderText="产品备注">
												<EditItemTemplate>
													<asp:TextBox Text='<%#Eval("Product_Remark").ToString()%>' runat="server" ID="txtRemark" Width="150px">
													</asp:TextBox>
												</EditItemTemplate>
												<ItemStyle Width="150px" HorizontalAlign="Center" />
												<HeaderStyle Font-Size="Small" />
												<ItemTemplate>
													<%#Eval("Product_Remark").ToString()%>
												</ItemTemplate>
											</asp:templatefield>
										</Columns>
                                    </asp:GridView></td></tr></table>
								<span class="style1"><br />
       							</span>
       </fieldset><span class="style1"> </span>
                                            </td></tr> 
            <tr>
                <td colspan="2" valign="top">
                    <fieldset name="Group1">
                        <legend class="style1" >附加及其他</legend>
                        <table cellpadding="0" cellspacing="0" style="width: 100%">
                            <tr>
                                <td style="width: 72px" class="style1">
                                    付款日期:</td>
                                <td>
                                   <asp:TextBox
                                        ID="TxtCPaydata" runat="server" CssClass="BigInput" ReadOnly="True" Width="200px" Font-Size="X-Small"></asp:TextBox>
                                    </td>
                                <td class="style1">
                                
                                    &nbsp;</td>
                                <td class="style1">
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td style="width: 72px" class="style1">
                                    发票:</td>
                                <td>
                                    <asp:TextBox ID="TxtBill" runat="server" CssClass="BigInput" ReadOnly="True" Width="93px" Font-Size="X-Small"></asp:TextBox></td>
                                <td class="style1">
                                    &nbsp;</td>
                                <td class="style1">
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td style="width: 72px" class="style1">
                                    其他说明:</td>
                                <td>
                                    <asp:TextBox ID="TxtCremark" runat="server" BorderColor="#d4d0c8" BorderWidth="1px" Height="110px" ReadOnly="True"
                                        TextMode="MultiLine" Width="470px" Font-Size="X-Small"></asp:TextBox></td>
                                <td class="style1">
                                    &nbsp;</td>
                                <td class="style1">
                                    &nbsp;</td>
                            </tr>
                           <tr>
                                <td colspan="4" style="height: 19px">
                                  	<table style="width: 100%" cellspacing="0" cellpadding="0">
		<tr>
			<td class="style1">创建者: </td>
			<td>
                                    <asp:TextBox ID="TxtCreatePeople" runat="server" CssClass="BigInput" Height="22px"
                                        ReadOnly="True" Width="87px" Font-Size="X-Small"></asp:TextBox>
                                    </td>
			<td class="style1">创建日期:</td>
			<td>
			<asp:TextBox ID="TxtCreateData" runat="server" CssClass="BigInput" Height="22px"
                                        ReadOnly="True" Width="87px" Font-Size="X-Small"></asp:TextBox>
			</td>
			<td class="style1">最后更新者:</td>
			<td>
                                    <asp:TextBox ID="TxtUpdate" runat="server" CssClass="BigInput" Height="22px" ReadOnly="True"
                                        Width="87px" Font-Size="X-Small"></asp:TextBox></td>
			<td class="style1">更新日期:</td>
			<td>
			<asp:TextBox ID="txtUpdataTime" runat="server" CssClass="BigInput"
                                            Height="23px" ReadOnly="True" Width="87px" Font-Size="X-Small"></asp:TextBox>
			</td>
		</tr>
	</table>
		</td>
                            </tr>                        </table>
                    </fieldset><span class="style1"> </span>
</td>
            </tr>
        </table>
    
    </form>
</body>
</html>
