<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CustomerEdit.aspx.cs" Inherits="Archives.Website.Admin.CustomerEdit" %>
<!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 id="Head1" runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>编辑业主信息 - 施工进度后台管理系统</title>
<link rel="stylesheet" href="../css/style.default.css" type="text/css" />
<script type="text/javascript" src="../js/plugins/jquery-1.7.min.js"></script>
<script type="text/javascript" src="../js/plugins/jquery-ui-1.8.16.custom.min.js"></script>
<script type="text/javascript" src="../js/plugins/jquery.cookie.js"></script>
<script type="text/javascript" src="../js/plugins/jquery.uniform.min.js"></script>
<script type="text/javascript" src="../js/plugins/jquery.validate.min.js"></script>
<script type="text/javascript" src="../js/plugins/jquery.tagsinput.min.js"></script>
<script type="text/javascript" src="../js/plugins/charCount.js"></script>
<script type="text/javascript" src="../js/plugins/ui.spinner.min.js"></script>
<script type="text/javascript" src="../js/plugins/chosen.jquery.min.js"></script>
<script type="text/javascript" src="../js/custom/general.js"></script>
<script type="text/javascript" src="../js/calendar/calendar.js"></script>
<script type="text/javascript" src="../js/calendar/WdatePicker.js"></script>

<!--[if IE 9]>
    <link rel="stylesheet" media="screen" href="../css/style.ie9.css"/>
<![endif]-->
<!--[if IE 8]>
    <link rel="stylesheet" media="screen" href="../css/style.ie8.css"/>
<![endif]-->
<!--[if lt IE 9]>
	<script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script>
<![endif]-->
<script type="text/javascript">
    jQuery(document).ready(function () {

        ///// FORM TRANSFORMATION /////
        jQuery('input:checkbox, input:radio, select.uniformselect, input:file').uniform();

        ///// FORM VALIDATION /////
        jQuery("#form1").validate({
            rules: {
                CustomerName: "required",
                CellPhone: { required: true, digits: true, minlength: 11, maxlength: 11 },
                IDNumber: { rangelength: [15, 18] },
                BuildingName: "required",
                HouseAddress: "required",
                HouseType: "required",
                HouseArea: { required: true, number: true },
                DecorationStyle: "required",
                StartTime: "required",
                Remark: { maxlength: 300 }
            },
            messages: {
                CustomerName: "请输入业主姓名！",
                CellPhone: { required: "请输入手机号码！", digits: "请输入正确的手机号码！", minlength: "请输入正确的手机号码！", maxlength: "请输入正确的手机号码！" },
                IDNumber: { rangelength: "请输入正确的身份证号码！" },
                BuildingName: "请输入楼盘名称！",
                HouseAddress: "请输入工地地址！",
                HouseType: "请输入户型结构！",
                HouseArea: { required: "请输入房屋面积！", number: "请输入有效的房屋面积！" },
                DecorationStyle: "请输入装修风格！",
                StartTime: "请选择开工时间！",
                Remark: { maxlength: "超度不能超过300字符！" }
            }
        });
    });			
</script>
</head>

<body class="withvernav">
<form id="form1" runat="server">
<div class="bodywrapper">
    <div class="topheader">
        <div class="left">
            <h1 class="logo">蛐蛐·<span>施工进度查询系统</span></h1>
            <span class="slogan">企业后台管理中心</span>
           
            <br clear="all" />
            
        </div><!--left-->
        
        <div class="right">
            <div class="userinfo">
            	<img src="../images/thumbs/avatar.png" alt="" />
                <span><%=CurOperator.UserName%></span>
            </div><!--userinfo-->
            
            <div class="userinfodrop">
            	<div class="avatar">
                	<a href=""><img src="../images/thumbs/avatarbig.png" alt="" /></a>
                    <div class="changetheme">
                    	切换主题: <br />
                    	<a class="default"></a>
                        <a class="blueline"></a>
                        <a class="greenline"></a>
                        <a class="contrast"></a>
                        <!--<a class="custombg"></a>-->
                    </div>
                </div><!--avatar-->
                <div class="userdata">
                	<h4><%=CurOperator.UserName%></h4>
                    <span class="email">管理员</span>
                    <ul>
                    	<li><a href="Index.aspx">系统首页</a></li>
                        <li><a href="ChangePassword.aspx">修改密码</a></li>
                        <li><a href="http://www.sojump.com/jq/5099502.aspx" target="_blank">建议反馈</a></li>
                        <li><a href="Logout.aspx">退出</a></li>
                    </ul>
                </div><!--userdata-->
            </div><!--userinfodrop-->
        </div><!--right-->
    </div><!--topheader-->
    
    <div class="header">
    	<ul class="headermenu">
        	<li><a href="Index.aspx"><span class="icon icon-flatscreen"></span>系统首页</a></li>
            <li class="current"><a href="CustomerList.aspx"><span class="icon icon-pencil"></span>业主中心</a></li>
			<li><a href="ArchiveList.aspx"><span class="icon icon-chart"></span>施工进度</a></li>
            <li><a href="NoticeList.aspx"><span class="icon icon-message"></span>通知管理</a></li>
        </ul>
        
       <div class="headerwidget">

        </div><!--headerwidget-->
        
    </div><!--header-->
    
    <div class="vernav2 iconmenu">
    	<ul>
			<li><a href="Index.aspx" class="widgets">系统首页</a></li>
        	<li class="current"><a href="#formsub" class="editor">业主中心</a>
            	<span class="arrow"></span>
            	<ul id="formsub">
               		<li class="current"><a href="CustomerList.aspx">业主列表</a></li>
                    <li><a href="CustomerAdd.aspx">添加业主</a></li>
                </ul>
            </li>			
        	<li><a href="#formsub2" class="gallery">施工进度</a>
            	<span class="arrow"></span>
            	<ul id="formsub2">
               		<li><a href="ArchiveList.aspx">施工进度列表</a></li>
                </ul>
            </li>	
        	<li><a href="#formsub3" class="calendar">通知管理</a>
            	<span class="arrow"></span>
            	<ul id="formsub3">
               		<li><a href="NoticeList.aspx">通知列表</a></li>
                    <li><a href="NoticeAdd.aspx">发布通知</a></li>
                </ul>
            </li>				
            <%if (CurOperator.IsManager == 1)
              { %>			
        	<li><a href="#formsub4" class="elements">操作员管理</a>
            	<span class="arrow"></span>
            	<ul id="formsub4">
               		<li><a href="OperatorList.aspx">操作员列表</a></li>
                    <li><a href="OperatorAdd.aspx">添加操作员</a></li>
                </ul>
            </li>	
            <%} %>				
        	<li><a href="#formsub5" class="tables">账号设置</a>
            	<span class="arrow"></span>
            	<ul id="formsub5">
               		<li><a href="ChangePassword.aspx">修改密码</a></li>
                    <li><a href="UserLog.aspx">登录日志</a></li>
                </ul>
            </li>
			<li><a href="Support.aspx" class="support">技术支持</a></li>
        </ul>
        <a class="togglemenu"></a>
        <br /><br />
    </div><!--leftmenu-->
        
    <div class="centercontent">
    
        <div class="pageheader notab">
            <h1 class="pagetitle">编辑业主信息</h1>
        </div><!--pageheader-->
        
        <div id="contentwrapper" class="contentwrapper">

        	<div id="basicform" class="subcontent">
					<div class="stdform stdform2">
                    	<p>
                        	<label>业主姓名<span class="waring">*</span></label>
                            <span class="field"><input type="text" runat="server" name="CustomerName" id="CustomerName" class="mediuminput" maxlength="20" /></span>
                        </p>
                        <p>
                        	<label>手机号码 (业主编号)<span class="waring">*</span></label>
                            <span class="field"><input type="text" runat="server" name="CellPhone" id="CellPhone" class="smallinput" maxlength="11" />&nbsp;&nbsp;用于接收工地施工进度更新短信！</span>
                        </p>
                        <p>
                        	<label>联系电话</label>
                            <span class="field"><input type="text" runat="server" name="TelPhone" id="TelPhone" class="smallinput" maxlength="20" /></span>
                        </p>
                        <p>
                        	<label>身份证号码</label>
                            <span class="field"><input type="text" runat="server" name="IDNumber" id="IDNumber" class="mediuminput" maxlength="18" /></span>
                        </p>
                        <p>
                        	<label>楼盘名称<span class="waring">*</span></label>
                            <span class="field"><input type="text" runat="server" name="BuildingName" id="BuildingName" class="mediuminput" maxlength="20" /></span>
                        </p>
                        <p>
                        	<label>工地地址<span class="waring">*</span></label>
                            <span class="field"><input type="text" runat="server" name="HouseAddress" id="HouseAddress" class="mediuminput" maxlength="50" /></span>
                        </p>
                        <p>
                        	<label>户型结构<span class="waring">*</span></label>
                            <span class="field">
                                <input type="text" runat="server" name="HouseType" id="HouseType" class="smallinput" maxlength="20" />&nbsp;&nbsp;如：三室两厅一厨一卫
                            </span>
                        </p>
                        <p>
                        	<label>房屋面积<span class="waring">*</span></label>
                            <span class="field">
								<input type="text" runat="server" name="HouseArea" id="HouseArea" class="smallinput" maxlength="6" />&nbsp;&nbsp;单位：平米&nbsp;&nbsp;<span style="color:#FF0000">*</span>请填写数字
							</span>
                        </p>
                        <p>
                        	<label>装修风格<span class="waring">*</span></label>
                            <span class="field"><input type="text" runat="server" name="DecorationStyle" id="DecorationStyle" class="smallinput" maxlength="20" /></span>
                        </p>
                        <p>
                        	<label>开工时间<span class="waring">*</span></label>
                            <span class="field"><input type="text" runat="server" name="StartTime" id="StartTime" class="smallinput"  onfocus="WdatePicker({ dateFmt: 'yyyy-MM-dd' , maxDate: '#F{$dp.$D(\'EndTime\',{d:0});}' })"/></span>
                        </p>
                        <p>
                        	<label>完工时间</label>
                            <span class="field"><input type="text" runat="server" name="EndTime" id="EndTime" class="smallinput"  onfocus="WdatePicker({ dateFmt: 'yyyy-MM-dd' , minDate: '#F{$dp.$D(\'StartTime\',{d:0});}' })"/></span>
                        </p> 
						<p>
                            <label>工程状态</label>
                            <span class="field">
                                <asp:DropDownList ID="ConstructionStatus" runat="server" style="width:15%;min-width:15%;" >
                                    <asp:ListItem Value="1" Text="设计阶段" Selected="True"></asp:ListItem>
                                    <asp:ListItem Value="2" Text="材料选购"></asp:ListItem>
                                    <asp:ListItem Value="3" Text="施工阶段"></asp:ListItem>
                                    <asp:ListItem Value="4" Text="竣工验收"></asp:ListItem>
                                </asp:DropDownList>
                            </span>
                        </p>                         	
						<p>
                            <label>是否接收短信提醒</label>
                            <span class="field">
                                <asp:DropDownList ID="IsReceiveSMS" runat="server" style="width:15%;min-width:15%;" >
                                    <asp:ListItem Value="1" Text="是" Selected="True"></asp:ListItem>
                                    <asp:ListItem Value="0" Text="否"></asp:ListItem>
                                </asp:DropDownList>
                            </span>
                        </p>
                        <p>
                        	<label>备注</label>
                            <span class="field"><textarea runat="server" cols="80" rows="5" name="Remark" id="Remark" class="mediuminput"></textarea></span>
                        </p>
                        <p class="stdformbutton" style="text-align:center;">
                            <asp:Button ID="btnSubmit" runat="server" Text=" 提 交 " class="submit radius2" onclick="btnSubmit_Click"/>
							<span style="padding-left:30px;"></span>
                            <input type="reset" class="reset radius2" value=" 重 置 " />
                        </p>
                    </div>

            </div><!--subcontent-->
                            
        </div><!--contentwrapper-->
        
	</div><!-- centercontent -->
    <div style="display:none">
        <script src="http://s11.cnzz.com/stat.php?id=1255823829&web_id=1255823829" language="JavaScript"></script>    
    </div>			
</div><!--bodywrapper-->
</form>
</body>
</html>
