func (p *Employee) ResultToMap(res *df.ListResultBean) *df.List {
	reslist := df.CreateList()
	for _, e := range res.List.GetAsArray() {
		entityx := e.(*entity.Employee)
		var entityi df.Entity = entityx
		emap := p.EntityToMap(&entityi)
		emap["sec"] = dfweb.ConvWebData(entityx.GetUserTable_R().GetS1Data())
		reslist.Add(emap)
	}
	return reslist
}
func (p *Employee) Update(data map[string]interface{}) {
	p.ctx.Put("Process", "employee:update")
	entityx := entity.CreateEmployee()
	var e df.Entity = entityx
	dfweb.MapToEntity(data, &e, "Employee", true)
	//DupCheck
	old := p.getOld(entityx.GetId())
	if entityx.GetEmpCd() != old.GetEmpCd() &&
		p.DupCheck(entityx) {
		panic("この EmpCdは既に使用されています。")
	}
	_, err := bhv.EmployeeBhv_I.Update(entityx, p.tx, p.ctx)
	if err != nil {
		panic("Update Error:" + err.Error())
	}
	ut := p.GetUserTableSec(entityx.GetSecId())
	var ee df.Entity = entityx
	rmap := p.EntityToMap(&ee)
	rmap["sec"] = dfweb.ConvWebData(ut.GetS1Data())
	p.context.JSON(200, dfweb.SetSingleFetchResult(rmap))
}