<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <%@ include file="../../common/head.jsp"%>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<link href="../res/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet" />
    <script src="../res/js/plugins/bootstrap-table/bootstrap-table.js"></script>
    <script src="../res/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script>
    <script src="../res/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
	<cs:initFile/>
	<script>
	var index=0;
	function transferOder(id){		
		$.openDlg({
			url:'transferOder.cs?id=' + id,
			title:'指派销售员',
			width:'60%',
			height:'95%'
		});
		
	}
	</script>
</head>

<body>
    <div class="wrapper wrapper-content">
        <div class="row">
            <div class="col-sm-12">
            	 <cs:form_validate formId="editUserForm"/>
                  <form class="form-horizontal" action="transferAction.cs" id="editUserForm" method="POST">
					
					<input type="hidden" value="${mgmOrder.id }" name="orderId" id="orderId">
                     <div class="form-group">
                          <label class="col-sm-3 control-label">转单类型：</label>
                          <div class="col-sm-6">
                               <select class="form-control m-b" validate="{required:true}" validateMessage="{required:'请选择转单类型'}" name="type" id="type">
                                    <option value="" selected>请选择转单类型</option>
                                    <option value="离职">离职</option>
                                    <option value="换人">换人</option>
                                </select>
                          </div>
                      </div>
                       <div class="form-group">                          
                          <label class="col-sm-3 control-label">原销售人员：</label>
                           <div class="col-sm-6">
                              <input id="fromUsename" name="fromUsename" class="form-control" validate="{required:false}"  value="${mgmSalerUser.name }" validateMessage="{required:'请输入名称'}" >
                              <input type="hidden" value="${mgmSalerUser.id }" name="fromUserid" id="fromUserid">
                          </div>
                      </div>
                      <div class="form-group">                          
                          <label class="col-sm-3 control-label">现销售人员：</label>
                           <div class="col-sm-6">
                              <input id="toUsername" name="toUsername" class="form-control" validate="{required:true}" readonly value="" validateMessage="{required:'请输入现销售人员'}" onclick="transferOder('${mgmOrder.id }')">
                              <input type="hidden" value="" name="toUserid" id="toUserid">
                          </div>
                      </div>
                      
                      
                     <div class="form-group">
                          <label class="col-sm-3 control-label">转单原因 ：</label>
                          <div class="col-sm-6">
                              <textarea id="reason" name="reason" validate="{required:true}" validateMessage="{required:'请输入转单原因'}" class="form-control" style="height: 310px;"></textarea>
                          </div>
                      </div>
                     
                      <div class="form-group">
                                <div class="col-sm-4 col-sm-offset-3 pull-left">
                                    <button class="btn btn-default btn-dlg-close">取消</button>
                                    <button class="btn btn-primary" type="submit">提交</button>
                                </div>
                       </div>
                      
                  </form>
            </div>
        </div>

    </div>


</body>

</html>

