ow
This commit is contained in:
1 parent
d2c2b3cf59
commit
4359903d9c
33 files changed
+2708
-246
No files matched your search
@@ -48,6 +48,33 @@ this.familyTreeService= familyTreeService;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public class FindByCurrentPersonCompositionData
|
||||
{
|
||||
public string key { get; set; }
|
||||
public string personId { get; set; }
|
||||
|
||||
}
|
||||
[PermissionOperate(name: "FamilyTree", operate: "Find")]
|
||||
[HttpPost]
|
||||
public dynamic FindByCurrentPerson(FindByCurrentPersonCompositionData compositionData)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
var result = familyTreeService.FindByCurrentPerson(compositionData.key,compositionData.personId);
|
||||
return result;
|
||||
}
|
||||
catch (ValidatedException vex)
|
||||
{
|
||||
return vex;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
return new ServiceErrorException(ex);
|
||||
}
|
||||
}
|
||||
|
||||
[PermissionOperate(name: "FamilyTree", operate: "Find")]
|
||||
[HttpPost]
|
||||
public dynamic FindBySearchCriteria(FamilyTreeSearchCriteria criteria)
|
||||
|
||||
@@ -53,6 +53,33 @@ this.localeService= localeService;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public class FindSelectOptionCompositionData
|
||||
{
|
||||
public string groupName { get; set; }
|
||||
public bool blank { get; set; }
|
||||
|
||||
}
|
||||
[AllowAnonymous]
|
||||
[HttpPost]
|
||||
public dynamic FindSelectOption(FindSelectOptionCompositionData compositionData)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
var result = localeService.FindSelectOption(compositionData.groupName,compositionData.blank);
|
||||
return result;
|
||||
}
|
||||
catch (ValidatedException vex)
|
||||
{
|
||||
return vex;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
return new ServiceErrorException(ex);
|
||||
}
|
||||
}
|
||||
|
||||
[AllowAnonymous]
|
||||
[HttpPost]
|
||||
public dynamic FindBySearchCriteria(LocaleSearchCriteria criteria)
|
||||
|
||||
Reference in new issue
Block a user