MH: RosterRO Fix
This commit is contained in:
@@ -751,8 +751,11 @@ namespace Host
|
||||
long wOid = int.Parse(Request.Params["wid"]);
|
||||
int sortIndex = int.Parse(Request.Params["si"]);
|
||||
bool aufsteigend = int.Parse(Request.Params["order"]) == 0 ? false : true;
|
||||
long creator = int.Parse(Request.Params["creator"]);
|
||||
|
||||
long creator = 1;
|
||||
string creatorParam = Request.Params["creator"];
|
||||
if (creatorParam != null)
|
||||
creator = int.Parse(Request.Params["creator"]);
|
||||
|
||||
List<int> feiertage = new List<int>();
|
||||
|
||||
if (Request.Params["ft"] != null)
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace BeWo.Report.ReportObjects
|
||||
public List<RosterReportRow> RosterReportRows { get; set; }
|
||||
public int FirstWeekDay { get; set; }
|
||||
public List<int> Feiertage { get; set; }
|
||||
|
||||
public EmployeeDC Creator { get; set; }
|
||||
public RosterRO()
|
||||
{
|
||||
RosterReportRows = new List<RosterReportRow>();
|
||||
@@ -84,7 +84,7 @@ namespace BeWo.Report.ReportObjects
|
||||
return res;
|
||||
}
|
||||
public static RosterRO CreateNew(List<DienstEintragDC> dienstEintragDCs, List<DienstvertretungDC> dienstvertretungDCs, List<EmployeeDC> employee,
|
||||
List<DienstInfoDC> dienstInfoDCs, BS.Shared.DataContracts.Compact.CompactWohnheimDC compactWohnheimDC, int year, int month, List<int> feiertage, int sortingIndex, bool aufsteigend)
|
||||
List<DienstInfoDC> dienstInfoDCs, BS.Shared.DataContracts.Compact.CompactWohnheimDC compactWohnheimDC, int year, int month, List<int> feiertage, int sortingIndex, bool aufsteigend, EmployeeDC creator)
|
||||
{
|
||||
var dt = new DateTime(year, month, 1);
|
||||
// Result
|
||||
@@ -93,7 +93,8 @@ namespace BeWo.Report.ReportObjects
|
||||
WohnheimName = compactWohnheimDC.WohnheimName,
|
||||
ReportDateTime = dt,
|
||||
FirstWeekDay = ((int)dt.DayOfWeek - 1) % 7,
|
||||
Feiertage = feiertage
|
||||
Feiertage = feiertage,
|
||||
Creator = creator
|
||||
};
|
||||
// WD V F Formel
|
||||
// Mo 1 0 (tag - 1) / 7
|
||||
|
||||
Reference in New Issue
Block a user