2024-11-20 15:17:13 +01:00
|
|
|
|
using BS.Shared.DataContracts;
|
|
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Collections.Specialized;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
|
|
namespace BS.Shared.ReportRequests
|
|
|
|
|
|
{
|
|
|
|
|
|
public class GkvAbrechnungReportRequest : AbstractReportRequest
|
|
|
|
|
|
{
|
|
|
|
|
|
public const string PropertyStringOid = "oid";
|
2024-12-04 18:40:49 +01:00
|
|
|
|
public const string PropertyStringUrbelege = "urb";
|
2024-11-20 15:17:13 +01:00
|
|
|
|
|
|
|
|
|
|
public long Oid { get; set; }
|
2024-12-04 18:40:49 +01:00
|
|
|
|
public bool AddUrbelege { get; set; }
|
2024-11-20 15:17:13 +01:00
|
|
|
|
|
|
|
|
|
|
private GkvAbrechnungReportRequest() : base(ReportTypes.GkvAbrechnung)
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2024-12-04 18:40:49 +01:00
|
|
|
|
public GkvAbrechnungReportRequest(long poid, bool urbelege) : this()
|
2024-11-20 15:17:13 +01:00
|
|
|
|
{
|
|
|
|
|
|
Oid = poid;
|
2024-12-04 18:40:49 +01:00
|
|
|
|
AddUrbelege = urbelege;
|
2024-11-20 15:17:13 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
internal override NameValueCollection GetParameters() =>
|
|
|
|
|
|
new NameValueCollection()
|
|
|
|
|
|
{
|
2024-12-04 18:40:49 +01:00
|
|
|
|
{PropertyStringOid, Oid.ToString() },
|
|
|
|
|
|
{PropertyStringUrbelege, AddUrbelege.ToString() },
|
2024-11-20 15:17:13 +01:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
public static GkvAbrechnungReportRequest Parse(NameValueCollection collection)
|
|
|
|
|
|
{
|
|
|
|
|
|
var rtn = new GkvAbrechnungReportRequest();
|
|
|
|
|
|
|
|
|
|
|
|
foreach (string key in collection)
|
|
|
|
|
|
{
|
|
|
|
|
|
string value = collection[key];
|
|
|
|
|
|
|
|
|
|
|
|
switch (key)
|
|
|
|
|
|
{
|
|
|
|
|
|
case PropertyStringOid:
|
|
|
|
|
|
rtn.Oid = long.Parse(value);
|
|
|
|
|
|
break;
|
2024-12-04 18:40:49 +01:00
|
|
|
|
case PropertyStringUrbelege:
|
|
|
|
|
|
rtn.AddUrbelege = bool.Parse(value);
|
|
|
|
|
|
break;
|
2024-11-20 15:17:13 +01:00
|
|
|
|
default:
|
|
|
|
|
|
break;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return rtn;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|