Neuen SupportConceptValidator hinzugefügt
This commit is contained in:
@@ -1943,13 +1943,113 @@ namespace BeWo.Core
|
||||
return lValid;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Erzeugt einen Report mit Hilfe des ReportServices und zeigt ihn in einem BeWoWindow
|
||||
/// </summary>
|
||||
/// <param name="title">Titel des Fensters</param>
|
||||
/// <param name="variablen">Dictionary mit Variablen für das ReportObject</param>
|
||||
/// <param name="reportType">Der Typ des Reports (z.B. KalenderMonatsformatReport)</param>
|
||||
public static void ShowReport(string title, Dictionary<string, object> variablen, ReportEnum reportType)
|
||||
public static bool ValidateSupportConceptVM(SupportConceptVM vm)
|
||||
{
|
||||
var lValid = true;
|
||||
var dc = vm.CommitToDataContract();
|
||||
var r = ServiceFacade.DoOperationsServiceSync(o => o.ValidateSupportConcept(dc));
|
||||
|
||||
if (r.Count > 0)
|
||||
{
|
||||
bool allowSave = true;
|
||||
|
||||
StringBuilder msg = new StringBuilder();
|
||||
|
||||
foreach (var result in r)
|
||||
{
|
||||
if (msg.Length > 0)
|
||||
{
|
||||
msg.AppendLine();
|
||||
}
|
||||
msg.AppendLine(result.Message);
|
||||
|
||||
if (!result.AllowSave)
|
||||
{
|
||||
allowSave = false;
|
||||
}
|
||||
}
|
||||
|
||||
msg.AppendLine();
|
||||
|
||||
if (allowSave)
|
||||
{
|
||||
msg.Append(String.Format("Sind Sie sicher, dass Sie den Hilfeplan speichern möchten?", vm));
|
||||
|
||||
if (MessageBox.Show(msg.ToString(), "Speichern", MessageBoxButton.YesNo, MessageBoxImage.Warning).Equals(MessageBoxResult.No))
|
||||
{
|
||||
lValid = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
msg.Append("Der Hilfeplan kann leider nicht gespeichert werden.");
|
||||
|
||||
MessageBox.Show(msg.ToString(), "Speichern nicht möglich", MessageBoxButton.OK, MessageBoxImage.Error);
|
||||
lValid = false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return lValid;
|
||||
}
|
||||
|
||||
public static bool ValidateSupportConceptDeletion(CompactSupportConceptDC dc)
|
||||
{
|
||||
var lValid = true;
|
||||
|
||||
var r = ServiceFacade.DoOperationsServiceSync(o => o.ValidateSupportConceptDeletion(dc.SupportConceptOid));
|
||||
|
||||
bool allowSave = true;
|
||||
|
||||
StringBuilder msg = new StringBuilder();
|
||||
|
||||
foreach (var result in r)
|
||||
{
|
||||
if (msg.Length > 0)
|
||||
{
|
||||
msg.AppendLine();
|
||||
}
|
||||
msg.AppendLine(result.Message);
|
||||
|
||||
if (!result.AllowSave)
|
||||
{
|
||||
allowSave = false;
|
||||
}
|
||||
}
|
||||
|
||||
if (msg.Length > 0)
|
||||
{
|
||||
msg.AppendLine();
|
||||
}
|
||||
|
||||
if (allowSave)
|
||||
{
|
||||
msg.Append(String.Format("Sind Sie sicher, dass Sie den gewählten Hilfeplan {0} {1} löschen möchten?", dc.CustomerName, dc));
|
||||
|
||||
if (MessageBox.Show(msg.ToString(), "Löschen", MessageBoxButton.YesNo, MessageBoxImage.Exclamation).Equals(MessageBoxResult.No))
|
||||
{
|
||||
lValid = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
msg.Append("Der gewählte Hilfeplan kann leider nicht gelöscht werden.");
|
||||
|
||||
MessageBox.Show(msg.ToString(), "Löschen nicht möglich", MessageBoxButton.OK, MessageBoxImage.Error);
|
||||
lValid = false;
|
||||
}
|
||||
|
||||
|
||||
return lValid;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Erzeugt einen Report mit Hilfe des ReportServices und zeigt ihn in einem BeWoWindow
|
||||
/// </summary>
|
||||
/// <param name="title">Titel des Fensters</param>
|
||||
/// <param name="variablen">Dictionary mit Variablen für das ReportObject</param>
|
||||
/// <param name="reportType">Der Typ des Reports (z.B. KalenderMonatsformatReport)</param>
|
||||
public static void ShowReport(string title, Dictionary<string, object> variablen, ReportEnum reportType)
|
||||
{
|
||||
switch (reportType)
|
||||
{
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -17,6 +17,99 @@ namespace BeWo.ServiceProxy
|
||||
public interface IEmployeeService
|
||||
{
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/FindLeadingCompactTeamsOfEmployee", ReplyAction="http://tempuri.org/IEmployeeService/FindLeadingCompactTeamsOfEmployeeResponse")]
|
||||
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/FindLeadingCompactTeamsOfEmployeeBeWoFaultFau" +
|
||||
"lt", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
|
||||
System.Collections.Generic.List<BS.Shared.DataContracts.Compact.CompactTeamDC> FindLeadingCompactTeamsOfEmployee(long employeeOid);
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/GetAllGroupsCompact", ReplyAction="http://tempuri.org/IEmployeeService/GetAllGroupsCompactResponse")]
|
||||
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/GetAllGroupsCompactBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
|
||||
System.Collections.Generic.List<BS.Shared.DataContracts.Compact.CompactGroupOfPeopleDC> GetAllGroupsCompact(System.Nullable<long> employeeOid);
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/GetAllGroups", ReplyAction="http://tempuri.org/IEmployeeService/GetAllGroupsResponse")]
|
||||
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/GetAllGroupsBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
|
||||
System.Collections.Generic.List<BS.Shared.DataContracts.GroupOfPeopleDC> GetAllGroups(System.Nullable<long> employeeOid);
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/LoadCompactTeam", ReplyAction="http://tempuri.org/IEmployeeService/LoadCompactTeamResponse")]
|
||||
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/LoadCompactTeamBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
|
||||
BS.Shared.DataContracts.Compact.CompactTeamDC LoadCompactTeam(long pTeamOid);
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/LoadCompactEmployee", ReplyAction="http://tempuri.org/IEmployeeService/LoadCompactEmployeeResponse")]
|
||||
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/LoadCompactEmployeeBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
|
||||
BS.Shared.DataContracts.Compact.CompactEmployeeDC LoadCompactEmployee(long pEmployeeOid);
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/IsAssessmentSheetEntryBelongingToAS", ReplyAction="http://tempuri.org/IEmployeeService/IsAssessmentSheetEntryBelongingToASResponse")]
|
||||
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/IsAssessmentSheetEntryBelongingToASBeWoFaultF" +
|
||||
"ault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
|
||||
bool IsAssessmentSheetEntryBelongingToAS(long assessmentSheetCategoryOid);
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/IsAssessmentSheetCategoryBelongingToAS", ReplyAction="http://tempuri.org/IEmployeeService/IsAssessmentSheetCategoryBelongingToASRespons" +
|
||||
"e")]
|
||||
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/IsAssessmentSheetCategoryBelongingToASBeWoFau" +
|
||||
"ltFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
|
||||
bool IsAssessmentSheetCategoryBelongingToAS(long assessmentSheetCategoryOid);
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/GetAllOvertimesFromEmployee", ReplyAction="http://tempuri.org/IEmployeeService/GetAllOvertimesFromEmployeeResponse")]
|
||||
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/GetAllOvertimesFromEmployeeBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
|
||||
System.Collections.Generic.List<BS.Shared.DataContracts.OvertimeDC> GetAllOvertimesFromEmployee(long employeeOid);
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/GetAllOvertimes", ReplyAction="http://tempuri.org/IEmployeeService/GetAllOvertimesResponse")]
|
||||
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/GetAllOvertimesBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
|
||||
System.Collections.Generic.List<BS.Shared.DataContracts.OvertimeDC> GetAllOvertimes();
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/DeleteOvertimes", ReplyAction="http://tempuri.org/IEmployeeService/DeleteOvertimesResponse")]
|
||||
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/DeleteOvertimesBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
|
||||
void DeleteOvertimes(System.Collections.Generic.Dictionary<long, long> pOid2Version);
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/InsertOvertimes", ReplyAction="http://tempuri.org/IEmployeeService/InsertOvertimesResponse")]
|
||||
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/InsertOvertimesBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
|
||||
System.Collections.Generic.List<long> InsertOvertimes(System.Collections.Generic.List<BS.Shared.DataContracts.OvertimeDC> pOvertimes);
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/UpdateOvertimes", ReplyAction="http://tempuri.org/IEmployeeService/UpdateOvertimesResponse")]
|
||||
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/UpdateOvertimesBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
|
||||
System.Collections.Generic.List<long> UpdateOvertimes(System.Collections.Generic.List<BS.Shared.DataContracts.OvertimeDC> pOvertimes);
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/GetAllAuszahlungsarten", ReplyAction="http://tempuri.org/IEmployeeService/GetAllAuszahlungsartenResponse")]
|
||||
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/GetAllAuszahlungsartenBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
|
||||
System.Collections.Generic.List<BS.Shared.DataContracts.AuszahlungsartDC> GetAllAuszahlungsarten();
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/InsertAuszahlungsarten", ReplyAction="http://tempuri.org/IEmployeeService/InsertAuszahlungsartenResponse")]
|
||||
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/InsertAuszahlungsartenBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
|
||||
System.Collections.Generic.List<long> InsertAuszahlungsarten(System.Collections.Generic.List<BS.Shared.DataContracts.AuszahlungsartDC> pAuszahlungsarten);
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/UpdateAuszahlungsarten", ReplyAction="http://tempuri.org/IEmployeeService/UpdateAuszahlungsartenResponse")]
|
||||
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/UpdateAuszahlungsartenBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
|
||||
System.Collections.Generic.List<long> UpdateAuszahlungsarten(System.Collections.Generic.List<BS.Shared.DataContracts.AuszahlungsartDC> pAuszahlungsarten);
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/DeleteAuszahlungsarten", ReplyAction="http://tempuri.org/IEmployeeService/DeleteAuszahlungsartenResponse")]
|
||||
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/DeleteAuszahlungsartenBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
|
||||
void DeleteAuszahlungsarten(System.Collections.Generic.Dictionary<long, long> pOid2Version);
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/GetTeamOidsByEmployee", ReplyAction="http://tempuri.org/IEmployeeService/GetTeamOidsByEmployeeResponse")]
|
||||
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/GetTeamOidsByEmployeeBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
|
||||
System.Collections.Generic.List<BS.Shared.DataContracts.Compact.CompactTeamDC> GetTeamOidsByEmployee(long pEmployeeOid);
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/LoadLoggedOnEmployee", ReplyAction="http://tempuri.org/IEmployeeService/LoadLoggedOnEmployeeResponse")]
|
||||
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/LoadLoggedOnEmployeeBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
|
||||
BS.Shared.DataContracts.EmployeeDC LoadLoggedOnEmployee(long pEmployeeOid);
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/GetAllChatActiveEmployeesCompact", ReplyAction="http://tempuri.org/IEmployeeService/GetAllChatActiveEmployeesCompactResponse")]
|
||||
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/GetAllChatActiveEmployeesCompactBeWoFaultFaul" +
|
||||
"t", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
|
||||
System.Collections.Generic.List<BS.Shared.DataContracts.Compact.CompactEmployeeDC> GetAllChatActiveEmployeesCompact();
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/GetAllEmployeeAppCodes", ReplyAction="http://tempuri.org/IEmployeeService/GetAllEmployeeAppCodesResponse")]
|
||||
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/GetAllEmployeeAppCodesBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
|
||||
System.Collections.Generic.List<BS.Shared.DataContracts.EmployeeAPPCodeDC> GetAllEmployeeAppCodes(long pEmployeeOid);
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/GetEmployeeImage", ReplyAction="http://tempuri.org/IEmployeeService/GetEmployeeImageResponse")]
|
||||
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/GetEmployeeImageBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
|
||||
byte[] GetEmployeeImage(long employeeOid);
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/GetEmployeeThumbnail", ReplyAction="http://tempuri.org/IEmployeeService/GetEmployeeThumbnailResponse")]
|
||||
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/GetEmployeeThumbnailBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
|
||||
byte[] GetEmployeeThumbnail(long employeeOid);
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/DeleteEmployeeCustomerRelationForEmployee", ReplyAction="http://tempuri.org/IEmployeeService/DeleteEmployeeCustomerRelationForEmployeeResp" +
|
||||
"onse")]
|
||||
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/DeleteEmployeeCustomerRelationForEmployeeBeWo" +
|
||||
@@ -212,11 +305,6 @@ namespace BeWo.ServiceProxy
|
||||
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/LoadCompactTeamsByOidBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
|
||||
System.Collections.Generic.List<BS.Shared.DataContracts.Compact.CompactTeamDC> LoadCompactTeamsByOid(System.Collections.Generic.List<long> teamOids);
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/FindLeadingCompactTeamsOfEmployee", ReplyAction="http://tempuri.org/IEmployeeService/FindLeadingCompactTeamsOfEmployeeResponse")]
|
||||
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/FindLeadingCompactTeamsOfEmployeeBeWoFaultFau" +
|
||||
"lt", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
|
||||
System.Collections.Generic.List<BS.Shared.DataContracts.Compact.CompactTeamDC> FindLeadingCompactTeamsOfEmployee(long employeeOid);
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/ArchiveEmployee", ReplyAction="http://tempuri.org/IEmployeeService/ArchiveEmployeeResponse")]
|
||||
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/ArchiveEmployeeBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
|
||||
void ArchiveEmployee(long pOid, long pVersion);
|
||||
@@ -494,94 +582,6 @@ namespace BeWo.ServiceProxy
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/UpdateGroupOfPeople", ReplyAction="http://tempuri.org/IEmployeeService/UpdateGroupOfPeopleResponse")]
|
||||
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/UpdateGroupOfPeopleBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
|
||||
long UpdateGroupOfPeople(BS.Shared.DataContracts.GroupOfPeopleDC pGroupOfPeople);
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/GetAllGroupsCompact", ReplyAction="http://tempuri.org/IEmployeeService/GetAllGroupsCompactResponse")]
|
||||
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/GetAllGroupsCompactBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
|
||||
System.Collections.Generic.List<BS.Shared.DataContracts.Compact.CompactGroupOfPeopleDC> GetAllGroupsCompact(System.Nullable<long> employeeOid);
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/GetAllGroups", ReplyAction="http://tempuri.org/IEmployeeService/GetAllGroupsResponse")]
|
||||
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/GetAllGroupsBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
|
||||
System.Collections.Generic.List<BS.Shared.DataContracts.GroupOfPeopleDC> GetAllGroups(System.Nullable<long> employeeOid);
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/LoadCompactTeam", ReplyAction="http://tempuri.org/IEmployeeService/LoadCompactTeamResponse")]
|
||||
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/LoadCompactTeamBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
|
||||
BS.Shared.DataContracts.Compact.CompactTeamDC LoadCompactTeam(long pTeamOid);
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/LoadCompactEmployee", ReplyAction="http://tempuri.org/IEmployeeService/LoadCompactEmployeeResponse")]
|
||||
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/LoadCompactEmployeeBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
|
||||
BS.Shared.DataContracts.Compact.CompactEmployeeDC LoadCompactEmployee(long pEmployeeOid);
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/IsAssessmentSheetEntryBelongingToAS", ReplyAction="http://tempuri.org/IEmployeeService/IsAssessmentSheetEntryBelongingToASResponse")]
|
||||
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/IsAssessmentSheetEntryBelongingToASBeWoFaultF" +
|
||||
"ault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
|
||||
bool IsAssessmentSheetEntryBelongingToAS(long assessmentSheetCategoryOid);
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/IsAssessmentSheetCategoryBelongingToAS", ReplyAction="http://tempuri.org/IEmployeeService/IsAssessmentSheetCategoryBelongingToASRespons" +
|
||||
"e")]
|
||||
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/IsAssessmentSheetCategoryBelongingToASBeWoFau" +
|
||||
"ltFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
|
||||
bool IsAssessmentSheetCategoryBelongingToAS(long assessmentSheetCategoryOid);
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/GetAllOvertimesFromEmployee", ReplyAction="http://tempuri.org/IEmployeeService/GetAllOvertimesFromEmployeeResponse")]
|
||||
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/GetAllOvertimesFromEmployeeBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
|
||||
System.Collections.Generic.List<BS.Shared.DataContracts.OvertimeDC> GetAllOvertimesFromEmployee(long employeeOid);
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/GetAllOvertimes", ReplyAction="http://tempuri.org/IEmployeeService/GetAllOvertimesResponse")]
|
||||
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/GetAllOvertimesBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
|
||||
System.Collections.Generic.List<BS.Shared.DataContracts.OvertimeDC> GetAllOvertimes();
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/DeleteOvertimes", ReplyAction="http://tempuri.org/IEmployeeService/DeleteOvertimesResponse")]
|
||||
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/DeleteOvertimesBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
|
||||
void DeleteOvertimes(System.Collections.Generic.Dictionary<long, long> pOid2Version);
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/InsertOvertimes", ReplyAction="http://tempuri.org/IEmployeeService/InsertOvertimesResponse")]
|
||||
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/InsertOvertimesBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
|
||||
System.Collections.Generic.List<long> InsertOvertimes(System.Collections.Generic.List<BS.Shared.DataContracts.OvertimeDC> pOvertimes);
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/UpdateOvertimes", ReplyAction="http://tempuri.org/IEmployeeService/UpdateOvertimesResponse")]
|
||||
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/UpdateOvertimesBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
|
||||
System.Collections.Generic.List<long> UpdateOvertimes(System.Collections.Generic.List<BS.Shared.DataContracts.OvertimeDC> pOvertimes);
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/GetAllAuszahlungsarten", ReplyAction="http://tempuri.org/IEmployeeService/GetAllAuszahlungsartenResponse")]
|
||||
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/GetAllAuszahlungsartenBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
|
||||
System.Collections.Generic.List<BS.Shared.DataContracts.AuszahlungsartDC> GetAllAuszahlungsarten();
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/InsertAuszahlungsarten", ReplyAction="http://tempuri.org/IEmployeeService/InsertAuszahlungsartenResponse")]
|
||||
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/InsertAuszahlungsartenBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
|
||||
System.Collections.Generic.List<long> InsertAuszahlungsarten(System.Collections.Generic.List<BS.Shared.DataContracts.AuszahlungsartDC> pAuszahlungsarten);
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/UpdateAuszahlungsarten", ReplyAction="http://tempuri.org/IEmployeeService/UpdateAuszahlungsartenResponse")]
|
||||
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/UpdateAuszahlungsartenBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
|
||||
System.Collections.Generic.List<long> UpdateAuszahlungsarten(System.Collections.Generic.List<BS.Shared.DataContracts.AuszahlungsartDC> pAuszahlungsarten);
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/DeleteAuszahlungsarten", ReplyAction="http://tempuri.org/IEmployeeService/DeleteAuszahlungsartenResponse")]
|
||||
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/DeleteAuszahlungsartenBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
|
||||
void DeleteAuszahlungsarten(System.Collections.Generic.Dictionary<long, long> pOid2Version);
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/GetTeamOidsByEmployee", ReplyAction="http://tempuri.org/IEmployeeService/GetTeamOidsByEmployeeResponse")]
|
||||
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/GetTeamOidsByEmployeeBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
|
||||
System.Collections.Generic.List<BS.Shared.DataContracts.Compact.CompactTeamDC> GetTeamOidsByEmployee(long pEmployeeOid);
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/LoadLoggedOnEmployee", ReplyAction="http://tempuri.org/IEmployeeService/LoadLoggedOnEmployeeResponse")]
|
||||
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/LoadLoggedOnEmployeeBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
|
||||
BS.Shared.DataContracts.EmployeeDC LoadLoggedOnEmployee(long pEmployeeOid);
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/GetAllChatActiveEmployeesCompact", ReplyAction="http://tempuri.org/IEmployeeService/GetAllChatActiveEmployeesCompactResponse")]
|
||||
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/GetAllChatActiveEmployeesCompactBeWoFaultFaul" +
|
||||
"t", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
|
||||
System.Collections.Generic.List<BS.Shared.DataContracts.Compact.CompactEmployeeDC> GetAllChatActiveEmployeesCompact();
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/GetAllEmployeeAppCodes", ReplyAction="http://tempuri.org/IEmployeeService/GetAllEmployeeAppCodesResponse")]
|
||||
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/GetAllEmployeeAppCodesBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
|
||||
System.Collections.Generic.List<BS.Shared.DataContracts.EmployeeAPPCodeDC> GetAllEmployeeAppCodes(long pEmployeeOid);
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/GetEmployeeImage", ReplyAction="http://tempuri.org/IEmployeeService/GetEmployeeImageResponse")]
|
||||
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/GetEmployeeImageBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
|
||||
byte[] GetEmployeeImage(long employeeOid);
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/GetEmployeeThumbnail", ReplyAction="http://tempuri.org/IEmployeeService/GetEmployeeThumbnailResponse")]
|
||||
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/GetEmployeeThumbnailBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
|
||||
byte[] GetEmployeeThumbnail(long employeeOid);
|
||||
}
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
|
||||
@@ -618,6 +618,116 @@ namespace BeWo.ServiceProxy
|
||||
{
|
||||
}
|
||||
|
||||
public System.Collections.Generic.List<BS.Shared.DataContracts.Compact.CompactTeamDC> FindLeadingCompactTeamsOfEmployee(long employeeOid)
|
||||
{
|
||||
return base.Channel.FindLeadingCompactTeamsOfEmployee(employeeOid);
|
||||
}
|
||||
|
||||
public System.Collections.Generic.List<BS.Shared.DataContracts.Compact.CompactGroupOfPeopleDC> GetAllGroupsCompact(System.Nullable<long> employeeOid)
|
||||
{
|
||||
return base.Channel.GetAllGroupsCompact(employeeOid);
|
||||
}
|
||||
|
||||
public System.Collections.Generic.List<BS.Shared.DataContracts.GroupOfPeopleDC> GetAllGroups(System.Nullable<long> employeeOid)
|
||||
{
|
||||
return base.Channel.GetAllGroups(employeeOid);
|
||||
}
|
||||
|
||||
public BS.Shared.DataContracts.Compact.CompactTeamDC LoadCompactTeam(long pTeamOid)
|
||||
{
|
||||
return base.Channel.LoadCompactTeam(pTeamOid);
|
||||
}
|
||||
|
||||
public BS.Shared.DataContracts.Compact.CompactEmployeeDC LoadCompactEmployee(long pEmployeeOid)
|
||||
{
|
||||
return base.Channel.LoadCompactEmployee(pEmployeeOid);
|
||||
}
|
||||
|
||||
public bool IsAssessmentSheetEntryBelongingToAS(long assessmentSheetCategoryOid)
|
||||
{
|
||||
return base.Channel.IsAssessmentSheetEntryBelongingToAS(assessmentSheetCategoryOid);
|
||||
}
|
||||
|
||||
public bool IsAssessmentSheetCategoryBelongingToAS(long assessmentSheetCategoryOid)
|
||||
{
|
||||
return base.Channel.IsAssessmentSheetCategoryBelongingToAS(assessmentSheetCategoryOid);
|
||||
}
|
||||
|
||||
public System.Collections.Generic.List<BS.Shared.DataContracts.OvertimeDC> GetAllOvertimesFromEmployee(long employeeOid)
|
||||
{
|
||||
return base.Channel.GetAllOvertimesFromEmployee(employeeOid);
|
||||
}
|
||||
|
||||
public System.Collections.Generic.List<BS.Shared.DataContracts.OvertimeDC> GetAllOvertimes()
|
||||
{
|
||||
return base.Channel.GetAllOvertimes();
|
||||
}
|
||||
|
||||
public void DeleteOvertimes(System.Collections.Generic.Dictionary<long, long> pOid2Version)
|
||||
{
|
||||
base.Channel.DeleteOvertimes(pOid2Version);
|
||||
}
|
||||
|
||||
public System.Collections.Generic.List<long> InsertOvertimes(System.Collections.Generic.List<BS.Shared.DataContracts.OvertimeDC> pOvertimes)
|
||||
{
|
||||
return base.Channel.InsertOvertimes(pOvertimes);
|
||||
}
|
||||
|
||||
public System.Collections.Generic.List<long> UpdateOvertimes(System.Collections.Generic.List<BS.Shared.DataContracts.OvertimeDC> pOvertimes)
|
||||
{
|
||||
return base.Channel.UpdateOvertimes(pOvertimes);
|
||||
}
|
||||
|
||||
public System.Collections.Generic.List<BS.Shared.DataContracts.AuszahlungsartDC> GetAllAuszahlungsarten()
|
||||
{
|
||||
return base.Channel.GetAllAuszahlungsarten();
|
||||
}
|
||||
|
||||
public System.Collections.Generic.List<long> InsertAuszahlungsarten(System.Collections.Generic.List<BS.Shared.DataContracts.AuszahlungsartDC> pAuszahlungsarten)
|
||||
{
|
||||
return base.Channel.InsertAuszahlungsarten(pAuszahlungsarten);
|
||||
}
|
||||
|
||||
public System.Collections.Generic.List<long> UpdateAuszahlungsarten(System.Collections.Generic.List<BS.Shared.DataContracts.AuszahlungsartDC> pAuszahlungsarten)
|
||||
{
|
||||
return base.Channel.UpdateAuszahlungsarten(pAuszahlungsarten);
|
||||
}
|
||||
|
||||
public void DeleteAuszahlungsarten(System.Collections.Generic.Dictionary<long, long> pOid2Version)
|
||||
{
|
||||
base.Channel.DeleteAuszahlungsarten(pOid2Version);
|
||||
}
|
||||
|
||||
public System.Collections.Generic.List<BS.Shared.DataContracts.Compact.CompactTeamDC> GetTeamOidsByEmployee(long pEmployeeOid)
|
||||
{
|
||||
return base.Channel.GetTeamOidsByEmployee(pEmployeeOid);
|
||||
}
|
||||
|
||||
public BS.Shared.DataContracts.EmployeeDC LoadLoggedOnEmployee(long pEmployeeOid)
|
||||
{
|
||||
return base.Channel.LoadLoggedOnEmployee(pEmployeeOid);
|
||||
}
|
||||
|
||||
public System.Collections.Generic.List<BS.Shared.DataContracts.Compact.CompactEmployeeDC> GetAllChatActiveEmployeesCompact()
|
||||
{
|
||||
return base.Channel.GetAllChatActiveEmployeesCompact();
|
||||
}
|
||||
|
||||
public System.Collections.Generic.List<BS.Shared.DataContracts.EmployeeAPPCodeDC> GetAllEmployeeAppCodes(long pEmployeeOid)
|
||||
{
|
||||
return base.Channel.GetAllEmployeeAppCodes(pEmployeeOid);
|
||||
}
|
||||
|
||||
public byte[] GetEmployeeImage(long employeeOid)
|
||||
{
|
||||
return base.Channel.GetEmployeeImage(employeeOid);
|
||||
}
|
||||
|
||||
public byte[] GetEmployeeThumbnail(long employeeOid)
|
||||
{
|
||||
return base.Channel.GetEmployeeThumbnail(employeeOid);
|
||||
}
|
||||
|
||||
public void DeleteEmployeeCustomerRelationForEmployee(long employeeOid)
|
||||
{
|
||||
base.Channel.DeleteEmployeeCustomerRelationForEmployee(employeeOid);
|
||||
@@ -833,11 +943,6 @@ namespace BeWo.ServiceProxy
|
||||
return base.Channel.LoadCompactTeamsByOid(teamOids);
|
||||
}
|
||||
|
||||
public System.Collections.Generic.List<BS.Shared.DataContracts.Compact.CompactTeamDC> FindLeadingCompactTeamsOfEmployee(long employeeOid)
|
||||
{
|
||||
return base.Channel.FindLeadingCompactTeamsOfEmployee(employeeOid);
|
||||
}
|
||||
|
||||
public void ArchiveEmployee(long pOid, long pVersion)
|
||||
{
|
||||
base.Channel.ArchiveEmployee(pOid, pVersion);
|
||||
@@ -1157,110 +1262,5 @@ namespace BeWo.ServiceProxy
|
||||
{
|
||||
return base.Channel.UpdateGroupOfPeople(pGroupOfPeople);
|
||||
}
|
||||
|
||||
public System.Collections.Generic.List<BS.Shared.DataContracts.Compact.CompactGroupOfPeopleDC> GetAllGroupsCompact(System.Nullable<long> employeeOid)
|
||||
{
|
||||
return base.Channel.GetAllGroupsCompact(employeeOid);
|
||||
}
|
||||
|
||||
public System.Collections.Generic.List<BS.Shared.DataContracts.GroupOfPeopleDC> GetAllGroups(System.Nullable<long> employeeOid)
|
||||
{
|
||||
return base.Channel.GetAllGroups(employeeOid);
|
||||
}
|
||||
|
||||
public BS.Shared.DataContracts.Compact.CompactTeamDC LoadCompactTeam(long pTeamOid)
|
||||
{
|
||||
return base.Channel.LoadCompactTeam(pTeamOid);
|
||||
}
|
||||
|
||||
public BS.Shared.DataContracts.Compact.CompactEmployeeDC LoadCompactEmployee(long pEmployeeOid)
|
||||
{
|
||||
return base.Channel.LoadCompactEmployee(pEmployeeOid);
|
||||
}
|
||||
|
||||
public bool IsAssessmentSheetEntryBelongingToAS(long assessmentSheetCategoryOid)
|
||||
{
|
||||
return base.Channel.IsAssessmentSheetEntryBelongingToAS(assessmentSheetCategoryOid);
|
||||
}
|
||||
|
||||
public bool IsAssessmentSheetCategoryBelongingToAS(long assessmentSheetCategoryOid)
|
||||
{
|
||||
return base.Channel.IsAssessmentSheetCategoryBelongingToAS(assessmentSheetCategoryOid);
|
||||
}
|
||||
|
||||
public System.Collections.Generic.List<BS.Shared.DataContracts.OvertimeDC> GetAllOvertimesFromEmployee(long employeeOid)
|
||||
{
|
||||
return base.Channel.GetAllOvertimesFromEmployee(employeeOid);
|
||||
}
|
||||
|
||||
public System.Collections.Generic.List<BS.Shared.DataContracts.OvertimeDC> GetAllOvertimes()
|
||||
{
|
||||
return base.Channel.GetAllOvertimes();
|
||||
}
|
||||
|
||||
public void DeleteOvertimes(System.Collections.Generic.Dictionary<long, long> pOid2Version)
|
||||
{
|
||||
base.Channel.DeleteOvertimes(pOid2Version);
|
||||
}
|
||||
|
||||
public System.Collections.Generic.List<long> InsertOvertimes(System.Collections.Generic.List<BS.Shared.DataContracts.OvertimeDC> pOvertimes)
|
||||
{
|
||||
return base.Channel.InsertOvertimes(pOvertimes);
|
||||
}
|
||||
|
||||
public System.Collections.Generic.List<long> UpdateOvertimes(System.Collections.Generic.List<BS.Shared.DataContracts.OvertimeDC> pOvertimes)
|
||||
{
|
||||
return base.Channel.UpdateOvertimes(pOvertimes);
|
||||
}
|
||||
|
||||
public System.Collections.Generic.List<BS.Shared.DataContracts.AuszahlungsartDC> GetAllAuszahlungsarten()
|
||||
{
|
||||
return base.Channel.GetAllAuszahlungsarten();
|
||||
}
|
||||
|
||||
public System.Collections.Generic.List<long> InsertAuszahlungsarten(System.Collections.Generic.List<BS.Shared.DataContracts.AuszahlungsartDC> pAuszahlungsarten)
|
||||
{
|
||||
return base.Channel.InsertAuszahlungsarten(pAuszahlungsarten);
|
||||
}
|
||||
|
||||
public System.Collections.Generic.List<long> UpdateAuszahlungsarten(System.Collections.Generic.List<BS.Shared.DataContracts.AuszahlungsartDC> pAuszahlungsarten)
|
||||
{
|
||||
return base.Channel.UpdateAuszahlungsarten(pAuszahlungsarten);
|
||||
}
|
||||
|
||||
public void DeleteAuszahlungsarten(System.Collections.Generic.Dictionary<long, long> pOid2Version)
|
||||
{
|
||||
base.Channel.DeleteAuszahlungsarten(pOid2Version);
|
||||
}
|
||||
|
||||
public System.Collections.Generic.List<BS.Shared.DataContracts.Compact.CompactTeamDC> GetTeamOidsByEmployee(long pEmployeeOid)
|
||||
{
|
||||
return base.Channel.GetTeamOidsByEmployee(pEmployeeOid);
|
||||
}
|
||||
|
||||
public BS.Shared.DataContracts.EmployeeDC LoadLoggedOnEmployee(long pEmployeeOid)
|
||||
{
|
||||
return base.Channel.LoadLoggedOnEmployee(pEmployeeOid);
|
||||
}
|
||||
|
||||
public System.Collections.Generic.List<BS.Shared.DataContracts.Compact.CompactEmployeeDC> GetAllChatActiveEmployeesCompact()
|
||||
{
|
||||
return base.Channel.GetAllChatActiveEmployeesCompact();
|
||||
}
|
||||
|
||||
public System.Collections.Generic.List<BS.Shared.DataContracts.EmployeeAPPCodeDC> GetAllEmployeeAppCodes(long pEmployeeOid)
|
||||
{
|
||||
return base.Channel.GetAllEmployeeAppCodes(pEmployeeOid);
|
||||
}
|
||||
|
||||
public byte[] GetEmployeeImage(long employeeOid)
|
||||
{
|
||||
return base.Channel.GetEmployeeImage(employeeOid);
|
||||
}
|
||||
|
||||
public byte[] GetEmployeeThumbnail(long employeeOid)
|
||||
{
|
||||
return base.Channel.GetEmployeeThumbnail(employeeOid);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -17,6 +17,18 @@ namespace BeWo.ServiceProxy
|
||||
public interface IResourceService
|
||||
{
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IResourceService/OverlappingAppointmentsExistForMultiple", ReplyAction="http://tempuri.org/IResourceService/OverlappingAppointmentsExistForMultipleRespon" +
|
||||
"se")]
|
||||
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IResourceService/OverlappingAppointmentsExistForMultipleBeWoFa" +
|
||||
"ultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
|
||||
System.Collections.Generic.Dictionary<BS.Shared.DataContracts.SchedulerAppointmentDC, bool> OverlappingAppointmentsExistForMultiple(System.Collections.Generic.List<BS.Shared.DataContracts.SchedulerAppointmentDC> appointments);
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IResourceService/FindAppointmentsInRangeForIntervalFinder", ReplyAction="http://tempuri.org/IResourceService/FindAppointmentsInRangeForIntervalFinderRespo" +
|
||||
"nse")]
|
||||
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IResourceService/FindAppointmentsInRangeForIntervalFinderBeWoF" +
|
||||
"aultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
|
||||
System.Collections.Generic.Dictionary<BS.Shared.Core.DateTimeSpan, System.Collections.Generic.Dictionary<System.DateTime, bool>> FindAppointmentsInRangeForIntervalFinder(int duration, System.DateTime startDate, System.DateTime endDate, System.Collections.Generic.List<long> resourceOids, System.Collections.Generic.List<long> customerOids, System.Collections.Generic.List<long> employeeOids, long loggedInEmployeeOid, int intervalBuffer, bool skipWeekends);
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IResourceService/DeactivateResource", ReplyAction="http://tempuri.org/IResourceService/DeactivateResourceResponse")]
|
||||
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IResourceService/DeactivateResourceBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
|
||||
void DeactivateResource(long pOid, long pVersion);
|
||||
@@ -315,18 +327,6 @@ namespace BeWo.ServiceProxy
|
||||
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IResourceService/DeleteOrUpdateSchedulerAppointmentsBeWoFaultF" +
|
||||
"ault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
|
||||
void DeleteOrUpdateSchedulerAppointments(System.Collections.Generic.List<BS.Shared.DataContracts.SchedulerAppointmentDC> appointments2DeleteOrUpdate);
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IResourceService/OverlappingAppointmentsExistForMultiple", ReplyAction="http://tempuri.org/IResourceService/OverlappingAppointmentsExistForMultipleRespon" +
|
||||
"se")]
|
||||
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IResourceService/OverlappingAppointmentsExistForMultipleBeWoFa" +
|
||||
"ultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
|
||||
System.Collections.Generic.Dictionary<BS.Shared.DataContracts.SchedulerAppointmentDC, bool> OverlappingAppointmentsExistForMultiple(System.Collections.Generic.List<BS.Shared.DataContracts.SchedulerAppointmentDC> appointments);
|
||||
|
||||
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IResourceService/FindAppointmentsInRangeForIntervalFinder", ReplyAction="http://tempuri.org/IResourceService/FindAppointmentsInRangeForIntervalFinderRespo" +
|
||||
"nse")]
|
||||
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IResourceService/FindAppointmentsInRangeForIntervalFinderBeWoF" +
|
||||
"aultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
|
||||
System.Collections.Generic.Dictionary<BS.Shared.Core.DateTimeSpan, System.Collections.Generic.Dictionary<System.DateTime, bool>> FindAppointmentsInRangeForIntervalFinder(int duration, System.DateTime startDate, System.DateTime endDate, System.Collections.Generic.List<long> resourceOids, System.Collections.Generic.List<long> customerOids, System.Collections.Generic.List<long> employeeOids, long loggedInEmployeeOid, int intervalBuffer, bool skipWeekends);
|
||||
}
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
|
||||
@@ -363,6 +363,16 @@ namespace BeWo.ServiceProxy
|
||||
{
|
||||
}
|
||||
|
||||
public System.Collections.Generic.Dictionary<BS.Shared.DataContracts.SchedulerAppointmentDC, bool> OverlappingAppointmentsExistForMultiple(System.Collections.Generic.List<BS.Shared.DataContracts.SchedulerAppointmentDC> appointments)
|
||||
{
|
||||
return base.Channel.OverlappingAppointmentsExistForMultiple(appointments);
|
||||
}
|
||||
|
||||
public System.Collections.Generic.Dictionary<BS.Shared.Core.DateTimeSpan, System.Collections.Generic.Dictionary<System.DateTime, bool>> FindAppointmentsInRangeForIntervalFinder(int duration, System.DateTime startDate, System.DateTime endDate, System.Collections.Generic.List<long> resourceOids, System.Collections.Generic.List<long> customerOids, System.Collections.Generic.List<long> employeeOids, long loggedInEmployeeOid, int intervalBuffer, bool skipWeekends)
|
||||
{
|
||||
return base.Channel.FindAppointmentsInRangeForIntervalFinder(duration, startDate, endDate, resourceOids, customerOids, employeeOids, loggedInEmployeeOid, intervalBuffer, skipWeekends);
|
||||
}
|
||||
|
||||
public void DeactivateResource(long pOid, long pVersion)
|
||||
{
|
||||
base.Channel.DeactivateResource(pOid, pVersion);
|
||||
@@ -682,15 +692,5 @@ namespace BeWo.ServiceProxy
|
||||
{
|
||||
base.Channel.DeleteOrUpdateSchedulerAppointments(appointments2DeleteOrUpdate);
|
||||
}
|
||||
|
||||
public System.Collections.Generic.Dictionary<BS.Shared.DataContracts.SchedulerAppointmentDC, bool> OverlappingAppointmentsExistForMultiple(System.Collections.Generic.List<BS.Shared.DataContracts.SchedulerAppointmentDC> appointments)
|
||||
{
|
||||
return base.Channel.OverlappingAppointmentsExistForMultiple(appointments);
|
||||
}
|
||||
|
||||
public System.Collections.Generic.Dictionary<BS.Shared.Core.DateTimeSpan, System.Collections.Generic.Dictionary<System.DateTime, bool>> FindAppointmentsInRangeForIntervalFinder(int duration, System.DateTime startDate, System.DateTime endDate, System.Collections.Generic.List<long> resourceOids, System.Collections.Generic.List<long> customerOids, System.Collections.Generic.List<long> employeeOids, long loggedInEmployeeOid, int intervalBuffer, bool skipWeekends)
|
||||
{
|
||||
return base.Channel.FindAppointmentsInRangeForIntervalFinder(duration, startDate, endDate, resourceOids, customerOids, employeeOids, loggedInEmployeeOid, intervalBuffer, skipWeekends);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -334,13 +334,6 @@ namespace BeWo.View.Detail
|
||||
}
|
||||
}
|
||||
|
||||
//var mehrAlsHundertProzentBetreuungsschluessel = ViewModel.CostBearerRelations.VMList.Any(a => a.ApprovalPeriodList.VMList.Any(a2 => a2.SupportConceptApprovalEmployeeRelations.VMList.Sum(s => s.Betreuungsschluessel) > 100));
|
||||
//if (mehrAlsHundertProzentBetreuungsschluessel)
|
||||
//{
|
||||
// MessageBox.Show("Die Summe der Anteile liegt bei über 100%. Hinzufügen nicht möglich.", "Fehler", MessageBoxButton.OK, MessageBoxImage.Warning);
|
||||
// return;
|
||||
//}
|
||||
|
||||
|
||||
var lDataContract = ViewModel.CommitToDataContract();
|
||||
|
||||
@@ -353,6 +346,7 @@ namespace BeWo.View.Detail
|
||||
if (!BeWoApp.LoggedOnUser.HasRight(UserRightType.BookServiceRecordOutOfSupportConcept))
|
||||
{
|
||||
MessageBox.Show(Translator.Translate("Es existiert mindestens eine Buchung außerhalb des Hilfeplanzeitraums."), "Speichern nicht möglich", MessageBoxButton.OK, MessageBoxImage.Warning);
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -365,6 +359,10 @@ namespace BeWo.View.Detail
|
||||
}
|
||||
}
|
||||
|
||||
if (!BeWoUtils.ValidateSupportConceptVM(ViewModel))
|
||||
{
|
||||
return;
|
||||
}
|
||||
try
|
||||
{
|
||||
//#region Neue Individuelle Ziele speichern
|
||||
|
||||
@@ -321,41 +321,18 @@ namespace BeWo.View.Navigation
|
||||
var dc = obj as CompactSupportConceptDC;
|
||||
if (dc != null)
|
||||
{
|
||||
if (MessageBox.Show(Translator.Translate("Wollen Sie den Hilfeplan wirklich löschen?"), "Löschen", MessageBoxButton.YesNo, MessageBoxImage.Exclamation) == MessageBoxResult.Yes)
|
||||
var valid = BeWoUtils.ValidateSupportConceptDeletion(dc);
|
||||
|
||||
if (valid)
|
||||
{
|
||||
var list = ServiceFacade.DoOperationsServiceSync(s => s.GetSupportConceptInfosForSupportConceptOid(dc.SupportConceptOid));
|
||||
var delete = true;
|
||||
|
||||
if (list != null && list.Count > 0)
|
||||
ServiceFacade.DoCustomerServiceAsync(s =>
|
||||
{
|
||||
var containsServiceRecords = false;
|
||||
foreach (var info in list.Where(info => info.RecordedHours > 0))
|
||||
{
|
||||
containsServiceRecords = true;
|
||||
}
|
||||
s.DeactivateSupportConcept(dc.SupportConceptOid, dc.SupportConceptVersion);
|
||||
return dc;
|
||||
}, cb => dc.Version++);
|
||||
|
||||
if (containsServiceRecords)
|
||||
{
|
||||
if (MessageBox.Show(Translator.Translate("Für den gewählten Hilfeplan wurden bereits Leistungen hinterlegt.\n Möchten Sie wirklich fortfahren und den Hilfeplan löschen?"), "Löschen", MessageBoxButton.YesNo, MessageBoxImage.Exclamation) == MessageBoxResult.No)
|
||||
{
|
||||
delete = false;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
if (delete)
|
||||
{
|
||||
ServiceFacade.DoCustomerServiceAsync(s =>
|
||||
{
|
||||
s.DeactivateSupportConcept(dc.SupportConceptOid, dc.SupportConceptVersion);
|
||||
return dc;
|
||||
}, cb => dc.Version++);
|
||||
|
||||
Cache.GetInstance().ClearSupportConceptTree();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Cache.GetInstance().ClearSupportConceptTree();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
72
Service/Plugins/SupportConceptValidator.cs
Normal file
72
Service/Plugins/SupportConceptValidator.cs
Normal file
@@ -0,0 +1,72 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using BeWo.Data.Access;
|
||||
using BeWo.Data.Entities;
|
||||
using BeWo.Service.DCEntityMapper;
|
||||
|
||||
using BS.Shared;
|
||||
using BS.Shared.Core;
|
||||
using BS.Shared.DataContracts;
|
||||
using BS.Shared.DataContracts.Compact;
|
||||
using BS.Shared.Extensions;
|
||||
using BS.Shared.Services;
|
||||
using BeWo.Service.Configuration;
|
||||
using BeWo.Data.Security;
|
||||
|
||||
using SecurityUtils = BeWo.Service.Security.SecurityUtils;
|
||||
using BeWo.Service.ServiceImplementations;
|
||||
|
||||
namespace BeWo.Service.Plugins
|
||||
{
|
||||
public class SupportConceptValidator
|
||||
{
|
||||
public virtual List<ValidationResultDC> ValidateSupportConcept(SupportConceptDC supportConcept)
|
||||
{
|
||||
var result = new List<ValidationResultDC>();
|
||||
|
||||
bool isNew = !supportConcept.SupportConceptOid.HasValue;
|
||||
|
||||
|
||||
// 1. Prüfe Datumsbereiche. Startdatum darf nicht größer als Enddatum sein
|
||||
|
||||
//ValidationResultDC resultDc = new ValidationResultDC();
|
||||
//resultDc.Message = "Alles doof! Darfst nicht speichern!";
|
||||
//resultDc.AllowSave = true;
|
||||
// result.Add(resultDc);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
public virtual List<ValidationResultDC> ValidateSupportConceptDeletion(long supportConceptOid)
|
||||
{
|
||||
var result = new List<ValidationResultDC>();
|
||||
|
||||
var os = new OperationsServiceImp();
|
||||
|
||||
var list = os.GetSupportConceptInfosForSupportConceptOid(supportConceptOid);
|
||||
|
||||
if (list != null && list.Count > 0)
|
||||
{
|
||||
var containsServiceRecords = false;
|
||||
foreach (var info in list.Where(info => info.RecordedHours > 0))
|
||||
{
|
||||
containsServiceRecords = true;
|
||||
}
|
||||
|
||||
if (containsServiceRecords)
|
||||
{
|
||||
|
||||
ValidationResultDC resultDc = new ValidationResultDC();
|
||||
resultDc.Message = "Für den gewählten Hilfeplan wurden bereits Leistungen hinterlegt.";
|
||||
resultDc.AllowSave = true;
|
||||
result.Add(resultDc);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -476,6 +476,7 @@
|
||||
<Compile Include="Plugins\AccountingService.cs" />
|
||||
<Compile Include="Plugins\CustomerService.cs" />
|
||||
<Compile Include="Plugins\ResourceService.cs" />
|
||||
<Compile Include="Plugins\SupportConceptValidator.cs" />
|
||||
<Compile Include="Plugins\UserService.cs" />
|
||||
<Compile Include="Plugins\FlexibleReportService.cs" />
|
||||
<Compile Include="Plugins\OperationService.cs" />
|
||||
|
||||
@@ -427,6 +427,14 @@ namespace BeWo.Service.ServiceContracts
|
||||
[OperationContract]
|
||||
List<ServiceRecordValidationResultDC> ValidateServiceRecordDeletion(ServiceRecordDC serviceRecord, long employeeOid);
|
||||
|
||||
[FaultContract(typeof(BeWoFault))]
|
||||
[OperationContract]
|
||||
List<ValidationResultDC> ValidateSupportConcept(SupportConceptDC supportConcept);
|
||||
|
||||
[FaultContract(typeof(BeWoFault))]
|
||||
[OperationContract]
|
||||
List<ValidationResultDC> ValidateSupportConceptDeletion(long supportConceptOid);
|
||||
|
||||
[FaultContract(typeof (BeWoFault))]
|
||||
[OperationContract]
|
||||
List<long> InsertNewAdditionalServices(IEnumerable<AdditionalServiceDC> pAdditionalServiceDcs);
|
||||
|
||||
@@ -2754,6 +2754,32 @@ namespace BeWo.Service.ServiceImplementations
|
||||
|
||||
}
|
||||
|
||||
public List<ValidationResultDC> ValidateSupportConcept(SupportConceptDC supportConcept)
|
||||
{
|
||||
try
|
||||
{
|
||||
var validator = PluginLoader.FindClass<SupportConceptValidator>();
|
||||
return validator.ValidateSupportConcept(supportConcept);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
throw Utils.CreateBeWoFaultException(e);
|
||||
}
|
||||
}
|
||||
|
||||
public List<ValidationResultDC> ValidateSupportConceptDeletion(long supportConceptOid)
|
||||
{
|
||||
try
|
||||
{
|
||||
var validator = PluginLoader.FindClass<SupportConceptValidator>();
|
||||
return validator.ValidateSupportConceptDeletion(supportConceptOid);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
throw Utils.CreateBeWoFaultException(e);
|
||||
}
|
||||
}
|
||||
|
||||
public ServiceRecordValidationResultDC CheckForExistingSignature(ServiceRecordDC serviceRecord)
|
||||
{
|
||||
var validator = PluginLoader.FindClass<ServiceRecordValidator>();
|
||||
|
||||
30
Shared/DataContracts/ValidationResultDC.cs
Normal file
30
Shared/DataContracts/ValidationResultDC.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
namespace BS.Shared.DataContracts
|
||||
{
|
||||
[DebuggerDisplay("{Message} {AllowSave}")]
|
||||
[DataContract]
|
||||
public class ValidationResultDC : IDataContract
|
||||
{
|
||||
[DataMember]
|
||||
public String Message { get; set; }
|
||||
|
||||
[DataMember]
|
||||
public bool AllowSave { get; set; }
|
||||
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
if(obj is ValidationResultDC validationResult)
|
||||
{
|
||||
var areEqual = (Message?.Equals(validationResult.Message) ?? false) &&
|
||||
AllowSave.Equals(validationResult.AllowSave);
|
||||
|
||||
return areEqual;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -341,6 +341,7 @@
|
||||
<Compile Include="DataContracts\CustomerTokenRelationDC.cs" />
|
||||
<Compile Include="DataContracts\EmployeeTokenRelationDC.cs" />
|
||||
<Compile Include="DataContracts\ChatBewoMessageSyncDC.cs" />
|
||||
<Compile Include="DataContracts\ValidationResultDC.cs" />
|
||||
<Compile Include="DataContracts\StoredFileDC.cs" />
|
||||
<Compile Include="DataContracts\VertreterSucheFilterDC.cs" />
|
||||
<Compile Include="DataContracts\SbdConfigDC.cs" />
|
||||
|
||||
Reference in New Issue
Block a user