
shr.defineClass("shr.affair.hrman.ResignBizBillMultiEntryHrManEditExt", shr.affair.hrman.ResignBizBillMultiEntryHrManEdit, {
	
	initalizeDOM : function () {
		var _self = this;
		shr.affair.hrman.ResignBizBillMultiEntryHrManEditExt.superClass.initalizeDOM.call(this);
		//_self.personDefult();
	},
	
	
	assembleCustomRowData : function(rowdata, data, commonData, defaultValue){
		var self = this;
//		if(defaultValue){
//			rowdata.hrBizDefine = {
//				id : defaultValue.hrAffairDefineId,
//				name : defaultValue.hrAffairDefineName
//			};
//		}
		if(commonData.person.number){
			rowdata.empNumber=commonData.person.number;
		}
		if(commonData.hrbizdefine[0].affairActionReason.length==1){
			rowdata.affairActionReason=commonData.hrbizdefine[0].affairActionReason[0];
		}
		if(commonData.hrbizdefine[0].variationReason.length==1){
			rowdata.variationReason=commonData.hrbizdefine[0].variationReason[0];
		}
		if(commonData.hrbizdefine[0].outEmpType.length==1){
			rowdata.empType=commonData.hrbizdefine[0].outEmpType[0];
		}
		var personId = rowdata.person.id;
		var oldPositionId = rowdata.oldPosition.id;
		shr.callHandler({
			handler:"com.kingdee.shr.affair.web.handler.hrman.FluctuationBizBillHrManEditHandlerEx",
			action:"getEmpOrgRelation",
			param:{
				"personId" : personId,
				"positionId" : oldPositionId},
			async:false,
			type:"POST",
			success:function(resultData){
				//【调动前直属上级】
				rowdata.lmanager = {id:resultData.leaderId,name:resultData.leaderName};
				//【员工类别】 
				rowdata.wcategory = {id:resultData.personTypeId,name:resultData.personTypeName};
				//【全职或兼职】
				//rowdata.fullorpart = {id:resultData.fullorpartID,name:resultData.fullorpartName};
				//【Academic Title】
				rowdata.academictitle = {id:resultData.academicId,name:resultData.academicName};
				//【Job2】
				rowdata.jobs = {id:resultData.jobTwoId,name:resultData.jobTwoName};
				//【Admin Title】
				rowdata.admintitle = resultData.admint;
				//【当前时薪】
				rowdata.hwage = resultData.hourlywage;
				
			}
		});
		return rowdata;
	},
	
	
	
});