diff --git a/HRM.Report/Attendence/AttendenceDataSet/AttendenceDataSet.Designer.cs b/HRM.Report/Attendence/AttendenceDataSet/AttendenceDataSet.Designer.cs index 5ec9b2c..d703e29 100644 --- a/HRM.Report/Attendence/AttendenceDataSet/AttendenceDataSet.Designer.cs +++ b/HRM.Report/Attendence/AttendenceDataSet/AttendenceDataSet.Designer.cs @@ -15448,6 +15448,10 @@ namespace HRM.Report.Attendence.AttendenceDataSet { private global::System.Data.DataColumn columnShift; + private global::System.Data.DataColumn columnMinutes; + + private global::System.Data.DataColumn columnExtraAllowance; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] public MonthlyKPIDetailDataTable() { @@ -15633,6 +15637,22 @@ namespace HRM.Report.Attendence.AttendenceDataSet { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn MinutesColumn { + get { + return this.columnMinutes; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn ExtraAllowanceColumn { + get { + return this.columnExtraAllowance; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] [global::System.ComponentModel.Browsable(false)] @@ -15689,7 +15709,9 @@ namespace HRM.Report.Attendence.AttendenceDataSet { string Department, string Unit, string FunctionalUnit, - string Shift) { + string Shift, + double Minutes, + int ExtraAllowance) { MonthlyKPIDetailRow rowMonthlyKPIDetailRow = ((MonthlyKPIDetailRow)(this.NewRow())); object[] columnValuesArray = new object[] { EmployeeName, @@ -15710,7 +15732,9 @@ namespace HRM.Report.Attendence.AttendenceDataSet { Department, Unit, FunctionalUnit, - Shift}; + Shift, + Minutes, + ExtraAllowance}; rowMonthlyKPIDetailRow.ItemArray = columnValuesArray; this.Rows.Add(rowMonthlyKPIDetailRow); return rowMonthlyKPIDetailRow; @@ -15752,6 +15776,8 @@ namespace HRM.Report.Attendence.AttendenceDataSet { this.columnUnit = base.Columns["Unit"]; this.columnFunctionalUnit = base.Columns["FunctionalUnit"]; this.columnShift = base.Columns["Shift"]; + this.columnMinutes = base.Columns["Minutes"]; + this.columnExtraAllowance = base.Columns["ExtraAllowance"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -15795,6 +15821,10 @@ namespace HRM.Report.Attendence.AttendenceDataSet { base.Columns.Add(this.columnFunctionalUnit); this.columnShift = new global::System.Data.DataColumn("Shift", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnShift); + this.columnMinutes = new global::System.Data.DataColumn("Minutes", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnMinutes); + this.columnExtraAllowance = new global::System.Data.DataColumn("ExtraAllowance", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnExtraAllowance); this.columnAttenType.Caption = "AttnType"; } @@ -31459,6 +31489,38 @@ namespace HRM.Report.Attendence.AttendenceDataSet { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public double Minutes { + get { + try { + return ((double)(this[this.tableMonthlyKPIDetail.MinutesColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Minutes\' in table \'MonthlyKPIDetail\' is DBNull.", e); + } + } + set { + this[this.tableMonthlyKPIDetail.MinutesColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public int ExtraAllowance { + get { + try { + return ((int)(this[this.tableMonthlyKPIDetail.ExtraAllowanceColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'ExtraAllowance\' in table \'MonthlyKPIDetail\' is DBNull.", e); + } + } + set { + this[this.tableMonthlyKPIDetail.ExtraAllowanceColumn] = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] public bool IsEmployeeNameNull() { @@ -31686,6 +31748,30 @@ namespace HRM.Report.Attendence.AttendenceDataSet { public void SetShiftNull() { this[this.tableMonthlyKPIDetail.ShiftColumn] = global::System.Convert.DBNull; } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public bool IsMinutesNull() { + return this.IsNull(this.tableMonthlyKPIDetail.MinutesColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public void SetMinutesNull() { + this[this.tableMonthlyKPIDetail.MinutesColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public bool IsExtraAllowanceNull() { + return this.IsNull(this.tableMonthlyKPIDetail.ExtraAllowanceColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public void SetExtraAllowanceNull() { + this[this.tableMonthlyKPIDetail.ExtraAllowanceColumn] = global::System.Convert.DBNull; + } } /// diff --git a/HRM.Report/Attendence/AttendenceDataSet/AttendenceDataSet.xsd b/HRM.Report/Attendence/AttendenceDataSet/AttendenceDataSet.xsd index 6b1f092..ef9717d 100644 --- a/HRM.Report/Attendence/AttendenceDataSet/AttendenceDataSet.xsd +++ b/HRM.Report/Attendence/AttendenceDataSet/AttendenceDataSet.xsd @@ -649,6 +649,8 @@ + + @@ -698,7 +700,7 @@ - + @@ -730,7 +732,7 @@ - + diff --git a/HRM.Report/Attendence/AttendenceDataSet/AttendenceDataSet.xss b/HRM.Report/Attendence/AttendenceDataSet/AttendenceDataSet.xss index 13efdab..81a1969 100644 --- a/HRM.Report/Attendence/AttendenceDataSet/AttendenceDataSet.xss +++ b/HRM.Report/Attendence/AttendenceDataSet/AttendenceDataSet.xss @@ -4,48 +4,48 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + - - - + + + - - - - - + + + + + - + - - + + - + - - - - + + + + - - - - + + + + - - - - - - - - - + + + + + + + + + \ No newline at end of file diff --git a/HRM.Report/Attendence/Class/AttendanceReport.cs b/HRM.Report/Attendence/Class/AttendanceReport.cs index 065c9c6..6caaf01 100644 --- a/HRM.Report/Attendence/Class/AttendanceReport.cs +++ b/HRM.Report/Attendence/Class/AttendanceReport.cs @@ -1351,7 +1351,7 @@ namespace HRM.Report startTime = startTime.Value.AddMinutes(-15) > dAttnProcess.InTime ? startTime.Value.AddMinutes(-15) : dAttnProcess.InTime; endTime = dAttnProcess.OutTime; - if (endTime != DateTime.MinValue) + if (endTime != DateTime.MinValue && endTime != null) { if (endTime.Value.Subtract(startTime.Value).Add(TimeSpan.FromMinutes(1)).TotalHours >= dExtraAllowanceHours) { diff --git a/HRM.Report/Attendence/RDLC/rptMonthlyKPI.rdlc b/HRM.Report/Attendence/RDLC/rptMonthlyKPI.rdlc index 2b5a48d..7245e24 100644 --- a/HRM.Report/Attendence/RDLC/rptMonthlyKPI.rdlc +++ b/HRM.Report/Attendence/RDLC/rptMonthlyKPI.rdlc @@ -46,19 +46,19 @@ AttnDate - System.DateTime + System.String - - AttnType - System.Int16 + + AttenType + System.String OTHour - System.Double + System.String ReferenceID - System.Int32 + System.String KPIStatus @@ -88,10 +88,30 @@ Department System.String + + Unit + System.String + + + FunctionalUnit + System.String + + + Shift + System.String + + + Minutes + System.Double + + + ExtraAllowance + System.Int32 + AttendenceDataSet - D:\Local\EchoTex\Echo_Desktop\Payroll.Report\Attendence\AttendenceDataSet\AttendenceDataSet.xsd + D:\Git\EchoTex_Payroll\HRM.Report\Attendence\AttendenceDataSet\AttendenceDataSet.xsd MonthlyKPIDetail @@ -131,7 +151,7 @@ AttendenceDataSet - D:\Local\EchoTextPR\Echo_Desktop.root\Echo_Desktop\Payroll.Report\Attendence\AttendenceDataSet\AttendenceDataSet.xsd + D:\Git\EchoTex_Payroll\HRM.Report\Attendence\AttendenceDataSet\AttendenceDataSet.xsd MnthlyKPIDtlSummary @@ -931,7 +951,7 @@ - + =Math.Round(Sum(Fields!Minutes.Value)/60,2) @@ -1201,7 +1221,7 @@ - =iif(Sum(iif(Fields!AttnType.Value = 1 or Fields!AttnType.Value = 3 or Fields!AttnType.Value = 7 or Fields!AttnType.Value = 11 or Fields!AttnType.Value = 12,1,0))>0,"Yellow","White") + =iif(Sum(iif(Fields!AttenType.Value = 1 or Fields!AttenType.Value = 3 or Fields!AttenType.Value = 7 or Fields!AttenType.Value = 11 or Fields!AttenType.Value = 12,1,0))>0,"Yellow","White") 2pt 2pt 2pt @@ -1219,7 +1239,7 @@ - =Sum(iif(Fields!AttnType.Value = 5 or Fields!AttnType.Value = 8,1,0)) + =Sum(iif(Fields!AttenType.Value = 5 or Fields!AttenType.Value = 8,1,0)) @@ -1233,7 +1253,7 @@ - =IIF(Sum(iif(Fields!AttnType.Value = 5 or Fields!AttnType.Value = 8,1,0))>0,"Yellow","White") + =IIF(Sum(iif(Fields!AttenType.Value = 5 or Fields!AttenType.Value = 8,1,0))>0,"Yellow","White") 2pt 2pt 2pt @@ -1251,7 +1271,7 @@ - =Sum(iif(Fields!AttnType.Value = 2,1,0)) + =Sum(iif(Fields!AttenType.Value = 2,1,0)) @@ -1265,7 +1285,7 @@ - =IIF(Sum(iif(Fields!AttnType.Value = 2,1,0))>0,"Yellow","White") + =IIF(Sum(iif(Fields!AttenType.Value = 2,1,0))>0,"Yellow","White") 2pt 2pt 2pt @@ -4495,7 +4515,7 @@ 2.20187in 8.5in - 25in + 27in 0.375in 0.375in