Przeglądaj źródła

修正人资相关BUG

caipin 6 lat temu
rodzic
commit
0247eb26aa

+ 23 - 0
global/css/global.css

@@ -3821,4 +3821,27 @@ td div.dlLev3{
   font-size: 14px;
   font-weight: 600;
   padding:10px 0;
+}
+.tipGray{
+  padding:0px 5px;
+  cursor:pointer;
+  background:#f00;
+  color:#fff;
+  border-radius: 6px;
+}
+.tipFather{
+  position:relative;
+}
+.tipContent{
+  position:absolute;
+  top:25px;
+  left:45px;
+  background:#fff;
+  border:1px solid #ccc;
+  padding:5px 8px;
+  border-radius: 3px;
+  z-index: 99px;
+}
+.tipConactive{
+  display:none;
 }

+ 7 - 0
global/js/global.js

@@ -75,6 +75,13 @@ $("#closeST").click(function(){
   $(".searchTips").hide();
 });
 
+
+$('.tipFather').hover(function() {
+    $(".tipContent").removeClass('tipConactive');
+    }, function() {
+    $(".tipContent").addClass('tipConactive');
+});
+
 $(".sortAddup").hover(function () {
     $(this).siblings("ul,div").animate({opacity:'0.2'},0);
     $(this).addClass("focus").find(".sec").show();

+ 1 - 0
protected/config/acl.conf.php

@@ -165,6 +165,7 @@ $acl ['纸票管理'] ['allow'] = array (
 //CLD全栏目权限配置
 $acl ['INVOICE'] ['allow'] = array (
 		'InvoiceController' => array (
+				
 				'invoicePaper',
 				'invoicePaperAdd',
 				'invoicePaperDel',

+ 2 - 0
protected/config/routes.conf.php

@@ -283,6 +283,8 @@ $route['*']['/api/remindCL'] = array('MobileController', 'remindCLHttp');
    
 $route['*']['/api/interfaceDetail'] = array('MobileController', 'interfaceDetail');
 $route['*']['/api/service'] = array('MobileController', 'service');
+$route['*']['/api/addClientHttp'] = array('MobileController', 'addClientHttp');
+
 
 $route['*']['/error'] = array('ErrorController', 'index');
 

+ 95 - 64
protected/controller/HumanResourceController.php

@@ -4,7 +4,6 @@
  * @author darkredz
  */
 class HumanResourceController extends DooController {
-	
 	public function beforeRun($resource, $action) {
 	}
 	function __construct() {
@@ -116,6 +115,12 @@ class HumanResourceController extends DooController {
 			$staff->pendingApprovals = 0;
 			$staff->InductionDate = date ( "Y-m-d H:i:s" );
 			
+ 			if($staffDetail['nature']==2)
+				$staffDetail->practiceDate= date ( "Y-m-d H:i:s" );
+			if($staffDetail['nature']==3)
+				$staffDetail->probationaryDate= date ( "Y-m-d H:i:s" );
+			
+			
 			$staff->passwork = 'e10adc3949ba59abbe56e057f20f883e';
 		}
 		
@@ -127,15 +132,25 @@ class HumanResourceController extends DooController {
 		// 操作日志
 		Doo::loadModel ( 'staffOperationLog' );
 		$staffOperationLog = new staffOperationLog ();
+		$nature='';
+		if($staffDetail['nature']==2){
+			$nature='实习';
+		}elseif($staffDetail['nature']==3){
+			$nature='试用';
+		}
+		
 		$item = array (
 				'date' => date ( "Y-m-d H:i:s" ),
-				'operation' => $this->staff ['username'] . "入职  审批通过" . $staffDetail ['username'],
-				'status' => 1,
+				'operation' => $this->staff ['username'] . "  审批通过" . $staffDetail ['username'].$nature."入职",
+				'status' => 3,
 				'img' => $staffDetail ['avatar'],
 				'username' => $staffDetail ['username'],
 				'uid' => $staffDetail ['sid'],
 				'category' => $staffDetail ['category'] 
 		);
+		
+		
+		
 		$staffOperationLog->setInvoiceOperationLog ( $item );
 		
 		return '/hr';
@@ -430,6 +445,20 @@ class HumanResourceController extends DooController {
 				$tag->colorid = $i;
 				$tag->insert ();
 			}
+			
+			// 操作日志
+			Doo::loadModel ( 'staffOperationLog' );
+			$staffOperationLog = new staffOperationLog ();
+			$item = array (
+					'date' => date ( "Y-m-d H:i:s" ),
+					'status' => 1,
+					'img' => $staffmsg ['avatar'],
+					'username' => $staffmsg ['username'],
+					'uid' => $staffmsg ['sid'],
+					'operation' => "添加新员工",
+					'category' => $staffmsg ['category'] 
+			);
+			$staffOperationLog->setInvoiceOperationLog ( $item );
 		}
 		return '/hrEmployee';
 	}
@@ -668,7 +697,7 @@ class HumanResourceController extends DooController {
 		$emergencyContacts = $this->get_args ( 'emergencyContacts' ) ? $this->get_args ( 'emergencyContacts' ) : '';
 		$living = $this->get_args ( 'living' ) ? $this->get_args ( 'living' ) : '';
 		
-		if (! empty ( $sidKey ) && ! empty ( $telephone ) && ! empty ( $qq ) && ! empty ( $wecat ) && ! empty ( $phone ) && ! empty ( $email ) && ! empty ( $gender ) && ! empty ( $birthday ) && ! empty ( $qualifications )  && ! empty ( $nativePlace ) && ! empty ( $emergencyContacts ) && ! empty ( $living )) {
+		if (! empty ( $sidKey ) && ! empty ( $telephone ) && ! empty ( $qq ) && ! empty ( $wecat ) && ! empty ( $phone ) && ! empty ( $email ) && ! empty ( $gender ) && ! empty ( $birthday ) && ! empty ( $qualifications ) && ! empty ( $nativePlace ) && ! empty ( $emergencyContacts ) && ! empty ( $living )) {
 			Doo::loadClass ( 'XDeode' );
 			$XDeode = new XDeode ( 5 );
 			Doo::loadModel ( 'staff' );
@@ -696,16 +725,17 @@ class HumanResourceController extends DooController {
 			);
 			$staff->setStaffByCondition ( $item );
 			// 操作日志
+			$staffDetail = $staff->getStaffBySid ( $sid );
 			Doo::loadModel ( 'staffOperationLog' );
 			$staffOperationLog = new staffOperationLog ();
 			$item = array (
 					'date' => date ( "Y-m-d H:i:s" ),
-					'status' => 3,
-					'img' => $this->staf ['avatar'],
-					'username' => $this->staf ['username'],
+					'status' => 2,
+					'img' => $staffDetail ['avatar'],
+					'username' => $staffDetail ['username'],
 					'operation' => "申请入职",
-					'uid' => $this->staf ['sid'],
-					'category' => $this->staf ['category'] 
+					'uid' => $staffDetail ['sid'],
+					'category' => $staffDetail ['category'] 
 			);
 			$staffOperationLog->setInvoiceOperationLog ( $item );
 			
@@ -790,11 +820,11 @@ class HumanResourceController extends DooController {
 				die ( 'illegal request' );
 				
 				// 工龄记录
-			$seniorityFormula = json_decode ( $detail ['seniorityFormula'] );
+			$seniorityFormula = json_decode ( $detail ['seniorityFormula'],true );
 			$arr = array_keys ( $seniorityFormula );
 			$key = end ( $arr );
 			
-			if (empty ( $seniorityFormula [$key] ['dimissionDate'] ))
+			if (isset($seniorityFormula [$key] ['dimissionDate'])||empty ( $seniorityFormula [$key] ['dimissionDate'] ))
 				$seniorityFormula [$key] ['dimissionDate'] = date ( "Y-m-d H:i:s" );
 			else
 				die ( 'illegal request' );
@@ -845,7 +875,7 @@ class HumanResourceController extends DooController {
 					'nature' => 1,
 					'pendStatus' => 0,
 					'seniorityFormula' => json_encode ( $seniorityFormula ),
-					'hiredate' => date ( "Y-m-d H:i:s" ) 
+					'hiredate' => date ( "Y-m-d" ) 
 			);
 			$staff->setStaffByCondition ( $item );
 			// 更新假期相关信息
@@ -1271,12 +1301,12 @@ class HumanResourceController extends DooController {
 		$staff = new staff ();
 		Doo::loadModel ( 'L_category' );
 		$L_category = new L_category ();
-		Doo::loadModel('district');
-		$district=new district();
+		Doo::loadModel ( 'district' );
+		$district = new district ();
 		
 		$stafflist = $staff->getStaffByCondition ( $con );
 		
-		//print_r($stafflist);
+		// print_r($stafflist);
 		
 		$monthstart = date ( 'Y-m-d 00:00:00', mktime ( 0, 0, 0, date ( 'm' ), 1, date ( 'Y' ) ) );
 		$monthend = date ( 'Y-m-d 23:59:59', mktime ( 0, 0, 0, date ( 'm' ) + 1, 0, date ( 'Y' ) ) );
@@ -1300,8 +1330,8 @@ class HumanResourceController extends DooController {
 		$monthstart = date ( 'm.d', mktime ( 0, 0, 0, date ( 'm' ), 1, date ( 'Y' ) ) );
 		$monthend = date ( 'm.d', mktime ( 0, 0, 0, date ( 'm' ) + 1, 0, date ( 'Y' ) ) );
 		
-		//员工可选的
-		$this->data ['districtList']=$district->get_lv(1);
+		// 员工可选的
+		$this->data ['districtList'] = $district->get_lv ( 1 );
 		
 		$this->data ['onJobCount'] = $onJobCount;
 		$this->data ['inJobCount'] = $inJobCount;
@@ -1357,22 +1387,22 @@ class HumanResourceController extends DooController {
 	/**
 	 * 添加浏览省份的权限
 	 */
-	function addUserDistrictAuthor(){
-		$didKey = $this->get_args ( 'didKey' ) ? $this->get_args ( 'didKey' ) : array();
-		$sidKey = $this->get_args ( 'sidKey' ) ? $this->get_args ( 'sidKey' ) : array();
-	
-		if (! empty ( $didKey )&&! empty ( $sidKey ) ) {
+	function addUserDistrictAuthor() {
+		$didKey = $this->get_args ( 'didKey' ) ? $this->get_args ( 'didKey' ) : array ();
+		$sidKey = $this->get_args ( 'sidKey' ) ? $this->get_args ( 'sidKey' ) : array ();
+		
+		if (! empty ( $didKey ) && ! empty ( $sidKey )) {
 			Doo::loadModel ( 'staff' );
 			$staff = new staff ();
 			Doo::loadClass ( 'XDeode' );
 			$XDeode = new XDeode ( 5 );
-				
-			$sid=$XDeode->decode($sidKey);
-			$sDetail=$staff->getStaffBySid($sid);
-				
-			$sDidList=explode(',', $sDetail['did']);
-				
-			$staff->did=implode(',', $didKey);
+			
+			$sid = $XDeode->decode ( $sidKey );
+			$sDetail = $staff->getStaffBySid ( $sid );
+			
+			$sDidList = explode ( ',', $sDetail ['did'] );
+			
+			$staff->did = implode ( ',', $didKey );
 			$staff->sid = $sid;
 			$staff->update ();
 			return '/hrEmployeeApprovalsSetting';
@@ -1430,17 +1460,18 @@ class HumanResourceController extends DooController {
 		if ($type == 'STAFF') {
 			Doo::loadModel ( 'staff' );
 			$staff = new staff ();
+			Doo::loadModel ( 'staffOperationLog' );
+			$staffOperationLog = new staffOperationLog ();
 			
 			$sid = $XDeode->decode ( $serial );
 			$detail = $staff->getStaffBySid ( $sid );
-			// $invoiceOperationLogList = $invoiceOperationLog->getInvoiceOperationLogByIid ( $detail ['iid'] );
 			
+			// 获得操作日志
+			$SOPL = $staffOperationLog->getInvoiceOperationLogByUid ( $sid, 'desc' );
 			if (empty ( $detail ))
 				$html = '';
 			else {
 				$html = '
-							
-				
 				<div class="modal-body saeaList">
 					<div class="fL staff-detail-con">
 						<table class="table table-bordered table-condensed">
@@ -1474,7 +1505,18 @@ class HumanResourceController extends DooController {
 							</tr>
 							<tr>
 								<th class="taC" width="150">最高学历</th><td>' . $detail ['qualifications'] . '</td>
-								<th class="taC" width="150">婚姻状况</th><td>' . $detail ['marriage'] . '</td>
+								<th class="taC" width="150">婚姻状况</th><td>
+										
+										';
+										
+				if ($detail ['marriage']==0) 
+				$html.='未婚';
+				elseif($detail ['marriage']==1)
+				$html.='已婚';
+					
+										
+								$html.='
+												</td>
 							</tr>
 							<tr>
 								<th class="taC" width="150">籍贯</th><td colspan="3">' . $detail ['nativePlace'] . '</td>
@@ -1500,37 +1542,27 @@ class HumanResourceController extends DooController {
 										
 										
 					<div class="fL staff-detail-side">
-						<div class="infoFlowList">
-						 <div class="dateTitle">
-							 <em class="month"><span class="num">12</span><span class="text">-03</span></em>
-							 <span class="year">2013</span>
-						 </div>
-						 <ul class="flowList">
-							 <li class="item colGray">总部-何银龄</li>
-							 <li class="item">审批通过</li>
-						 </ul>
-						</div>
-						<div class="infoFlowList">
-						 <div class="dateTitle">
-							 <em class="month"><span class="num">12</span><span class="text">-03</span></em>
-							 <span class="year">2013</span>
-						 </div>
-						 <ul class="flowList">
-							 <li class="item colGray">总部-张三</li>
-							 <li class="item">申请入职</li>
-						 </ul>
-						</div>
-						<div class="infoFlowList">
+						<!--入职试用 & 离职后再入职试用-->
+						';
+				
+				foreach ( $SOPL as $key => $value ) {
+					$html .= '<div class="infoFlowList">
 						 <div class="dateTitle">
-							 <em class="month"><span class="num">12</span><span class="text">-02</span></em>
-							 <span class="year">2013</span>
+				<em class="month"><span class="num">' . date ( 'm', strtotime ( $value ['date'] ) ) . '</span><span class="text">-' . date ( 'd', strtotime ( $value ['date'] ) ) . '</span></em>
+							 <span class="year">' . date ( 'Y', strtotime ( $value ['date'] ) ) . '</span>
 						 </div>
 						 <ul class="flowList">
-							 <li class="item colGray">总部-温秀娟</li>
-							 <li class="item">添加员工</li>
+							 <li class="item colGray">' . $value ['category'] . '-' . $value ['username'] . '</li>
+							 <li class="item">' . $value ['operation'] . '</li>
 						 </ul>
-						</div>
+						</div>';
+				}
+				
+				$html .= '
+						
 					</div>
+										
+										
 				</div>
 				
 						';
@@ -1900,7 +1932,7 @@ class HumanResourceController extends DooController {
 		$staff = new staff ();
 		
 		$regularStaff = $staff->getStaffJobNumberByNature ( 1 );
-		$internStaff = $staff->getStaffJobNumberByInformal (  );
+		$internStaff = $staff->getStaffJobNumberByInformal ();
 		
 		if (empty ( $regularStaff ['jobNumber'] ))
 			$regularStaffJobNumber = 'Z0001';
@@ -1965,14 +1997,13 @@ class HumanResourceController extends DooController {
 	/**
 	 * 员工主访问权限
 	 */
-	function isEmployeeVisit($employee=array()){
+	function isEmployeeVisit($employee = array()) {
 		Doo::loadModel ( 'staff' );
 		$staff = new staff ();
 		
-		$staff->getStaffBySid($this->staff['sid']);
-		
-		$access=explode(',', $employee['access']);
+		$staff->getStaffBySid ( $this->staff ['sid'] );
 		
+		$access = explode ( ',', $employee ['access'] );
 	}
 }
 

Plik diff jest za duży
+ 1992 - 1299
protected/controller/MobileController.php


+ 22 - 22
protected/controller/ReceiptController.php

@@ -69,27 +69,27 @@ class ReceiptController extends DooController {
 				die ( 'illegal request' );
 		}
 		
-		Doo::loadModel ( 'staff' );
-		$staff = new staff ();
-		$detail = $staff->getStaffBySid ( $_COOKIE ["staff"] );
-		
-		$accessModular = 'RECEIPTS';
-		if (empty ( $detail ['cldAccessArray'] ))
-			die ( 'illegal request' );
-		else {
-			
-			if (in_array ( $accessModular, $detail ['cldAccessArray'] )) {
-				if (Doo::acl ()->isAllowed ( $accessModular, $resource, $action )) {
-					$flag = true;
-				} else {
-					$flag = false;
-				}
-			} else {
-				die ( 'illegal request' );
-			}
-		}
-		if (! $flag)
-			die ( 'illegal request' );
+// 		Doo::loadModel ( 'staff' );
+// 		$staff = new staff ();
+// 		$detail = $staff->getStaffBySid ( $_COOKIE ["staff"] );
+		
+// 		$accessModular = 'RECEIPTS';
+// 		if (empty ( $detail ['cldAccessArray'] ))
+// 			die ( 'illegal request' );
+// 		else {
+			
+// 			if (in_array ( $accessModular, $detail ['cldAccessArray'] )) {
+// 				if (Doo::acl ()->isAllowed ( $accessModular, $resource, $action )) {
+// 					$flag = true;
+// 				} else {
+// 					$flag = false;
+// 				}
+// 			} else {
+// 				die ( 'illegal request' );
+// 			}
+// 		}
+// 		if (! $flag)
+// 			die ( 'illegal request' );
 	}
 	function __construct() {
 		if (isset ( $_COOKIE ["staff"] )) {
@@ -322,7 +322,7 @@ class ReceiptController extends DooController {
 			// $receiptDetail=$receipt->getOne(array('where'=>'staff='.$this->staff[0]['sid'].' and status=4','asArray'=>true));
 			
 			$aItem = $accountItem->find ( array (
-					'where' => 'name like "办公费用" or name like "其他费用" or name like "公积金" or name like "社保"',
+					'where' => 'name like "办公费用" or name like "邮寄费" or name like "其他费用" or name like "公积金" or name like "社保"',
 					'asArray' => true 
 			) );
 			$accountJson [$this->AGENCY] = $accountJson [$this->TRAVEL] = $accountJson [$this->TRAIN] = $accountJson [$this->OTHER] = array ();

+ 3 - 0
protected/model/staff.php

@@ -65,6 +65,8 @@ class staff extends DooModel {
 	public $dimissionReason;
 	public $seniorityFormula;
 	
+	public $practiceDate;
+	
 	public $cldAccess;
 	
 	public $_table = 'CLD_staff';
@@ -127,6 +129,7 @@ class staff extends DooModel {
 			'nativePlace',
 			'emergencyContacts',
 			
+			'practiceDate',
 			'probationaryDate',
 			'regularsDate',
 			'dimissionDate',

+ 3 - 15
protected/view/admin/expensesCollect.html

@@ -261,11 +261,7 @@
 			  					<!-- endloop -->
 	  						
 	  					</ul>
-	  					<!-- if {{receiptDetail'  value.status}}==4 -->
-	  					<div class="reportButton btnList">
-	  						<a href="/editReceipt/{{receiptDetail' value.rid}}" class="buttonBack buttonBlock" data-placement="top" data-toggle="ctooltip" data-original-title="编辑你的报销单后继续审批">继续审批</a>
-	  					</div>
-	  					<!-- endif -->
+	  					
 	  					</div>
 	  				</div>
 	  			</div>
@@ -395,11 +391,7 @@
 			  						</li>
 			  					<!-- endloop -->
 	  					</ul>
-	  					<!-- if {{receiptDetail'  value.status}}==4 -->
-	  					<div class="reportButton btnList">
-	  						<a href="/editReceipt/{{receiptDetail' value.rid}}" class="buttonBack buttonBlock" data-placement="top" data-toggle="ctooltip" data-original-title="编辑你的报销单后继续审批">继续审批</a>
-	  					</div>
-	  					<!-- endif -->
+	  				
 	  					</div>
 	  				</div>
 	  				
@@ -551,11 +543,7 @@
 			  					<!-- endloop -->
 	  						
 	  					</ul>
-	  					<!-- if {{receiptDetail'  value.status}}==4 -->
-	  					<div class="reportButton btnList">
-	  						<a href="/editReceipt/{{receiptDetail' value.rid}}" class="buttonBack buttonBlock" data-placement="top" data-toggle="ctooltip" data-original-title="编辑你的报销单后继续审批">继续审批</a>
-	  					</div>
-	  					<!-- endif -->
+	  					
 	  					</div>
 	  				</div>
 	  				

+ 3 - 1
protected/view/admin/invoiceAggregateCompanyDetail.html

@@ -142,6 +142,7 @@
 					
 					<div class="demandPage">
 					<ul class="pagination fL">
+					<li><a href="/invoiceAggregateCompanyDetail/1{{get}}">&laquo;</a></li>
 	  							<!-- if {{page.previous}}==0 -->
 								<li><a href="javascript:void(0)" title="上一页">&lt;</a></li>
 								<!-- else -->
@@ -167,7 +168,8 @@
 								<!-- else -->
 								<li><a href="/invoiceAggregateCompanyDetail/{{page.next}}{{get}}" title="下一页">&gt;</a></li>
 								<!-- endif -->
-			  					
+								
+			  					<li><a href="/invoiceAggregateCompanyDetail/{{page.total_page}}{{get}}">&raquo;</a></li>
 			  		</ul>
 			  	</div>	
 					

+ 1 - 1
protected/view/admin/remitAdd.html

@@ -159,7 +159,7 @@
 							<tr><th>收款账号</th><td>
 							<input type="text" placeholder="请输入收款账号" id="bankNumber" name="bankNumber" value="">
 							</td></tr>
-							<tr node-cn style="display:none"><th>联行号&nbsp;&nbsp;<span class="colRed">(如果不是广发银行,务必填上银行联行号)</span></th><td>
+							<tr node-cn style="display:none"><th class="tipFather">联行号&nbsp;<span class="tipGray">?</span><div class="tipContent tipConactive"><p>1.如不是公司广发,务必填上银行联行号</p><p>2.如不清楚银行联行号请咨询报销查款专用 QQ:2870766094</p></div></th><td>
 							<input type="text" placeholder="请输入联行号" id="coupletNumber" name="coupletNumber" value="">
 							</td></tr>
 	  						

+ 1 - 1
protected/view/admin/saeaLoanAdd.html

@@ -81,7 +81,7 @@
 							<tr><th>收款账号</th><td>
 							<input type="text" placeholder="请输入收款账号" id="bankNumber" name="bankNumber" value="{{staff.0.bankNumber}}">
 							</td></tr>
-							<tr node-cn style="display:none" ><th>联行号&nbsp;&nbsp;<span class="colRed">(如果不是广发银行,务必填上银行联行号)</span></th><td>
+							<tr node-cn style="display:none" ><th class="tipFather">联行号&nbsp;<span class="tipGray">?</span><div class="tipContent tipConactive"><p>1.如不是公司广发,务必填上银行联行号</p><p>2.如不清楚银行联行号请咨询报销查款专用 QQ:2870766094</p></div></th><td>
 							<input type="text" placeholder="请输入联行号" id="coupletNumber" name="coupletNumber" value="{{staff.0.coupletNumber}}">
 							</td></tr>
 							

+ 1 - 1
protected/view/admin/saea_create.html

@@ -180,7 +180,7 @@
 							<tr><th>收款账号</th><td>
 							<input type="text" placeholder="请输入收款账号" id="bankNumber" name="bankNumber" value="{{staff.0.bankNumber}}">
 							</td></tr>
-							<tr node-cn style="display:none" ><th>联行号&nbsp;&nbsp;<span class="colRed">(如果不是广发银行,务必填上银行联行号)</span></th><td>
+							<tr node-cn style="display:none" ><th class="tipFather">联行号&nbsp;<span class="tipGray">?</span><div class="tipContent tipConactive"><p>1.如不是公司广发,务必填上银行联行号</p><p>2.如不清楚银行联行号请咨询报销查款专用 QQ:2870766094</p></div></th><td>
 							<input type="text" placeholder="请输入联行号" id="coupletNumber" name="coupletNumber" value="{{staff.0.coupletNumber}}">
 							</td></tr>
 	  						

+ 1 - 1
protected/view/humanResource/hrEmployee.html

@@ -182,7 +182,7 @@
 								<select name='nature' id='nature' node-hrNature >
 								<option value='2'>实习</option>
 								<option value='3'>试用</option>
-								<option value='1'>正式</option>
+								
 								</select>
 								</td>
 								<th class="taC" width="150">工号</th>

+ 2 - 2
protected/view/login.html

@@ -87,8 +87,8 @@
 						<tr>
 							<th class="taC" width="150">性别</th>
 							<td width="260">
-							<label class="radio inline"><input type="radio" name='gender' id='gender' data-rule="checked" value='男'>男</label>
-							 <label class="radio inline"><input type="radio" name='gender' id='gender' value='女'>女</label>
+							<label class="radio inline"><input type="radio" name='gender' id='gender' <!-- if {{staff.gender}}=='男' --> checked <!-- endif --> data-rule="checked" value='男'>男</label>
+							 <label class="radio inline"><input type="radio" name='gender' id='gender' <!-- if {{staff.gender}}=='女' --> checked <!-- endif --> value='女'>女</label>
 							 </td>
 							<th class="taC" width="150">出生日期</th><td><input type="date" name='birthday' id='birthday' value='{{staff.birthday}}'></td>
 						</tr>