<%@ Page Title="" Language="C#" MasterPageFile="~/Public/SitePublic.Master" AutoEventWireup="true" CodeBehind="ViewCustomer.aspx.cs" Inherits="Crm25175.ViewCustomer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link rel="stylesheet" href="../assets/css/jquery.gritter_25175.css" />
    <script type="text/javascript">
        function JS_Ldelay(ShowType) {
            if (ShowType == "show") {
                Ldelay.className = 'icon-calendar alert-success';
            }
            else {
                Ldelay.className = 'hidden';
            }
        };

        function JS_LTypeAttribute(ShowType) {
            if (ShowType == "show") {
                LTypeAttribute.className = 'icon-file-text alert-danger';
            }
            else {
                LTypeAttribute.className = 'hidden';
            }
        };

        function JS_LnotStart(ShowType) {
            if (ShowType == "show") {
                LnotStart.className = 'icon-calendar alert-warning';
            }
            else {
                LnotStart.className = 'hidden';
            }
        };
        
    </script>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="breadcrumbs" id="breadcrumbs">
		<script type="text/javascript">
		    try { ace.settings.check('breadcrumbs', 'fixed') } catch (e) { }
		</script>
		
		<div class="row">
	        <div class="col-xs-12">
                <ul class="breadcrumb">
                    <li>
				    <i class="icon-home"></i>
                    查看客户资料
                    </li>
                    <li>
                    <asp:Label ID="LabTitle" runat="server"></asp:Label>
                    </li>
                </ul>
			</div>
        </div>
	</div>

    <div class="page-content">
        <div class="row">
	        <div class="col-xs-12">
                <div id="dialog-edit" class="row">
                    <div class="col-xs-6">
                        <div class="row">
				            <div class="profile-info-row">
					            <div class="profile-info-name">客户姓名</div>
					            <div class="profile-info-value">
                                    <asp:Label ID="LabCustName" runat="server"></asp:Label>
                                </div>
				            </div>
				            <div class="profile-info-row">
					            <div class="profile-info-name">客户来源</div>
                                <div class="profile-info-value">
                                    <asp:Label ID="LabCustFrom" runat="server"></asp:Label>
                                </div>
				            </div>
                            <div class="profile-info-row">
					            <div class="profile-info-name">意向产品</div>
					            <div class="profile-info-value">
                                    <asp:Label ID="LabCustProduct" runat="server"></asp:Label>
					            </div>
				            </div>
                            <div class="profile-info-row">
					            <div class="profile-info-name">QQ/微信</div>
					            <div class="profile-info-value">
                                    <asp:Label ID="LabCustQQ" runat="server"></asp:Label>
					            </div>
				            </div>
                        </div>
                    </div>

                    <div class="col-xs-6">
                        <div class="row">				    
				            <div class="profile-info-row">
					            <div class="profile-info-name">生日</div>
					            <div class="profile-info-value">
                                    <asp:Label ID="LabCustBirth" runat="server"></asp:Label>
                                </div>
				            </div>
				            <div class="profile-info-row">
					            <div class="profile-info-name">客户类型</div>
					            <div class="profile-info-value">
                                    <asp:Label ID="LabCustType" runat="server"></asp:Label>
                                    <label id="LTypeAttribute" class="icon-file-text alert-primary hidden">已归档</label>
					            </div>
				            </div>
                            <div class="profile-info-row">
					            <div class="profile-info-name">联系电话</div>
					            <div class="profile-info-value">
                                    <asp:Label ID="LabCustPhone" runat="server"></asp:Label>
					            </div>
				            </div>
                            <div class="profile-info-row">
					            <div class="profile-info-name">成交金额</div>
					            <div class="profile-info-value">
                                    <asp:Label ID="LabAmount" runat="server"></asp:Label>
					            </div>
				            </div>
			            </div>
                    </div>

                    <div class="col-xs-12">
                        <div class="row">				    
				            <div class="profile-info-row">
					            <div class="profile-info-name">客户地址</div>
					            <div class="profile-info-value">
                                    <asp:Label ID="LabCustAddress" runat="server"></asp:Label>
					            </div>
				            </div>
			            </div>
                    </div>

                    <div class="col-xs-4">
                        <div class="row">
				            <div class="profile-info-row">
					            <div class="profile-info-name">首次登记</div>
					            <div class="profile-info-value">
                                    <asp:Label ID="LabCreateDate" runat="server"></asp:Label>
					            </div>
				            </div>			    
				            <div class="profile-info-row">
					            <div class="profile-info-name">最后跟进</div>
					            <div class="profile-info-value">
                                    <asp:Label ID="LabLastFollowDate" runat="server"></asp:Label>
					            </div>
				            </div>
                        </div>
                    </div>
                    <div class="col-xs-4">
                        <div class="row">
				            <div class="profile-info-row">
					            <div class="profile-info-name">到期时间</div>
					            <div class="profile-info-value">
                                    <asp:Label ID="LabExpirationDate" runat="server"></asp:Label>
					            </div>
				            </div>				    
				            <div class="profile-info-row">
					            <div class="profile-info-name">超期时间</div>
					            <div class="profile-info-value">
                                    <asp:Label ID="LabExpHour" runat="server"></asp:Label>
					            </div>
				            </div>
			            </div>
                    </div>
                    <div class="col-xs-4">
                        <div class="row">                                
				            <div class="profile-info-row">
					            <div class="profile-info-name">设定周期</div>
					            <div class="profile-info-value">
                                    <asp:Label ID="LabCurrentDays" runat="server"></asp:Label>
                                    <label id="Ldelay" class="icon-calendar alert-success hidden">延期客户</label>
                                    <label id="LnotStart" class="icon-calendar alert-warning hidden">周期停止</label>
					            </div>
				            </div>			                    
                            <div class="profile-info-row">
					            <div class="profile-info-name">客户归属</div>
					            <div class="profile-info-value">
                                    <asp:Label ID="LabBelongUserName" runat="server"></asp:Label>
					            </div>
				            </div>
                        </div>
			        </div> 
                                   
                </div>

                <div class="space-2">
                </div>

                <%--<asp:GridView ID="GridView1" runat="server" 
                    CssClass="table table-striped table-bordered table-hover" 
                    AutoGenerateColumns="False" OnPageIndexChanging="GridView1_PageIndexChanging" 
                    AllowPaging="True" >
                    <Columns>
                        <asp:BoundField DataField="CFTranType" HeaderText="类别" ReadOnly="True"> 
                            <ItemStyle CssClass="col-xs-1" />
                        </asp:BoundField>
                        <asp:BoundField DataField="CFDate" HeaderText="时间" ReadOnly="True">
                            <ItemStyle CssClass="col-xs-2" />
                        </asp:BoundField>
                        <asp:BoundField DataField="UserNameFollow" HeaderText="操作员" ReadOnly="True"> 
                            <ItemStyle CssClass="col-xs-1" />
                        </asp:BoundField>
                        <asp:BoundField DataField="FollTypeName" HeaderText="跟进方式" ReadOnly="True"> 
                            <ItemStyle CssClass="col-xs-1" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="其他(房屋类型/房屋性质/装修进度/跟进阶段/客户类型)">
                            <ItemTemplate>
                                <div class="col-xs-2">
                                    <asp:Label ID="Label2" runat="server" Text='<%# Bind("HouseModelName") %>'></asp:Label>
                                </div>
                                <div class="col-xs-2">
                                    <asp:Label ID="Label3" runat="server" Text='<%# Bind("HousePropertyName") %>'></asp:Label>
                                </div>
                                <div class="col-xs-2">
                                    <asp:Label ID="Label5" runat="server" Text='<%# Bind("DecorateProgressName") %>'></asp:Label>
                                </div>
                                <div class="col-xs-2">
                                    <asp:Label ID="Label6" runat="server" Text='<%# Bind("FollowStageName") %>'></asp:Label>
                                </div>
                                <div class="col-xs-2">
                                    <asp:Label ID="Label7" runat="server" Text='<%# Bind("TypeName") %>'></asp:Label>
                                </div>
                                <div class="col-xs-12">
                                    <asp:Label ID="Label8" runat="server" Text='<%# Bind("CFOther") %>'></asp:Label>
                                </div>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <PagerSettings Mode="NumericFirstLast" />
                </asp:GridView>--%>


                <asp:GridView ID="GridView1" runat="server" 
                    CssClass="table table-striped table-bordered table-hover" 
                    AutoGenerateColumns="False" OnPageIndexChanging="GridView1_PageIndexChanging" 
                    AllowPaging="True" >
                    <Columns>
                        <asp:BoundField DataField="CFDate" HeaderText="时间" ReadOnly="True"/>
                        <asp:BoundField DataField="CFTranType" HeaderText="类别" ReadOnly="True"/>                         
                        <asp:BoundField DataField="UserNameFollow" HeaderText="操作员" ReadOnly="True"/> 
                        <asp:BoundField DataField="FollTypeName" HeaderText="跟进方式" ReadOnly="True"/> 
                        <asp:BoundField DataField="HouseModelName" HeaderText="房屋类型" ReadOnly="True"/>   
                        <asp:BoundField DataField="HousePropertyName" HeaderText="房屋性质" ReadOnly="True"/> 
                        <asp:BoundField DataField="DecorateProgressName" HeaderText="装修进度" ReadOnly="True"/> 
                        <asp:BoundField DataField="FollowStageName" HeaderText="跟进阶段" ReadOnly="True"/> 
                        <asp:BoundField DataField="TypeName" HeaderText="客户类型" ReadOnly="True"/>
                        <asp:BoundField DataField="FollMarkName" HeaderText="跟进备注" ReadOnly="True"/>
                        <asp:TemplateField HeaderText="其他">
                            <ItemTemplate>
                                <Button runat="server" class="btn btn-success btn-xs smaller-80" name="gritter-without-image" Text='<%#Eval("CFOther") %>' ToolTip='<%#Eval("CFDate")%>'>View</Button>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <PagerSettings Mode="NumericFirstLast" />
                    <HeaderStyle Wrap="False" />
                    <RowStyle Wrap="False" />
                </asp:GridView>
                <span class="col-sm-12">
					<label class="pull-right inline">
						<small class="muted">深色:</small>
						<input id="gritter-light" checked="" type="checkbox" class="ace ace-switch ace-switch-5" />
						<span class="lbl"></span>
                    </label>
				</span>
                
                <div class="col-xs-12">
                    <div class="center">
                        <a href="JavaScript:window.close()" class="btn btn-danger"><i class="icon-exclamation-sign"></i>关闭</a>
			        </div>
                </div>

		    </div>
	    </div>
    </div>
    
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder_Footer" runat="server">

    <script type="text/javascript" src="../assets/js/jquery-2.0.3.min.js"></script>

	<script type="text/javascript">
	    window.jQuery || document.write("<script src='../assets/js/jquery-2.0.3.min.js'>" + "<" + "/script>");
	</script>

	<script type="text/javascript">
	    if ("ontouchend" in document) document.write("<script src='../assets/js/jquery.mobile.custom.min.js'>" + "<" + "/script>");
	</script>
	<script type="text/javascript" src="../assets/js/bootstrap.min.js"></script>
	<script type="text/javascript" src="../assets/js/typeahead-bs2.min.js"></script>

	<!-- page specific plugin scripts -->
	<script type="text/javascript" src="../assets/js/jquery.gritter.min.js"></script>

	<!-- ace scripts -->

	<script type="text/javascript" src="../assets/js/ace-elements.min.js"></script>
	<script type="text/javascript" src="../assets/js/ace.min.js"></script>

    <script type="text/javascript">
        jQuery(function ($) {

            //$('#gritter-without-image').on(ace.click_event, function () {
            $(document.getElementsByName("gritter-without-image")).on(ace.click_event, function () {
                var FoContent = $(this).attr("text");
                var FoTime = $(this).attr("ToolTip");
                $.gritter.add({
                    // (string | mandatory) the heading of the notification
                    title: FoTime,
                    // (string | mandatory) the text inside the notification
                    text: FoContent,
                    class_name: 'gritter-success' + (!$('#gritter-light').get(0).checked ? ' gritter-light' : '')
                });
                return false;
            });
            
        });
	</script>

</asp:Content>
