<? session_start();
if ($_SESSION['Company']==''){
//exit;
}
$path = dirname(__FILE__);
require_once($path.'/../../Module/Factory.php');
try {
$Factory = new Factory();
$BLL_Personnel = $Factory->FactoryPersonnel();
$Personnel = new Personnel();
$Personnel->WebID = $_POST['WebID'];
$Personnel->Password = md5($_POST['PassWord']);
$Personnel->Recommand = $_POST['Recommand'];
$Personnel->TrueName = $_POST['TrueName'];
$Personnel->Job->ID = $_POST['Job'];
$Personnel->JoinTime = time();
$Personnel->Sex = $_POST['Sex'];
$Personnel->Identity = $_POST['Identity'];
$Personnel->Tel = $_POST['Tel'];
$Personnel->Address = $_POST['Address'];
$Personnel->Email = $_POST['Email'];
$Personnel->BankSN = $_POST['BankSN'];
$BLL_Personnel->CreatePersonnel($Personnel);
echo '登录员工成功';
}
catch (Exception $Err)
{
echo $Err->getMessage();
}
?>