From f9f0fde437fcd97220002a7dbf05bba921f9693a Mon Sep 17 00:00:00 2001 From: mashfiq Date: Tue, 29 Jul 2025 18:16:27 +0600 Subject: [PATCH] servicebook --- HRM.Report/Class/rptDigitalServiceBook.cs | 11 ++++- .../DigitalServiceBookDataSet.Designer.cs | 47 ++++++++++++++++++- .../DigitalServiceBookDataSet.xsd | 1 + HRM.Report/RDLC/DigitalServiceBook.rdlc | 34 +++++++++----- HRM.Report/ReportProcessor.cs | 4 +- .../digital-service-book.component.html | 15 ++++-- .../digital-service-book.component.ts | 32 +++++++++++-- HRM.UI/Controllers/Report/ReportController.cs | 2 +- 8 files changed, 119 insertions(+), 27 deletions(-) diff --git a/HRM.Report/Class/rptDigitalServiceBook.cs b/HRM.Report/Class/rptDigitalServiceBook.cs index 019a5b3..dfddd4c 100644 --- a/HRM.Report/Class/rptDigitalServiceBook.cs +++ b/HRM.Report/Class/rptDigitalServiceBook.cs @@ -13,7 +13,7 @@ namespace HRM.Report { public class rptDigitalServiceBook { - public byte[] DigitalServiceBook(int empID, int payrollTypeID, DateTime fromDate, string sEmpIDs, string reportType) + public byte[] DigitalServiceBook(int empID, int payrollTypeID, DateTime fromDate, string sEmpIDs, int? authorizePersionID, string reportType) { DataSet dSet = new DataSet(); DataRow oDR = null; @@ -21,6 +21,12 @@ namespace HRM.Report if (sEmpIDs != null) empID = Convert.ToInt32(sEmpIDs); + AuthorizedPerson authPerson = null; + if(authorizePersionID != null) + { + authPerson = new AuthorizedPersonService().Get((int)authorizePersionID); + } + //string TargetFolder = @"Documents\EMPPHOTO\"; //string currentDirectory = Directory.GetCurrentDirectory(); string TargetFolder = System.IO.Path.Combine(System.Environment.CurrentDirectory + @"\Documents\EMPPHOTO\"); @@ -83,7 +89,8 @@ namespace HRM.Report oDR["PHOTO"] = System.IO.Path.Combine(TargetFolder + string.Format("Image-{0}.jpg", oDRow["EMPLOYEENO"])); oDR["SIGNATURE"] = System.IO.Path.Combine(TargetFolder + string.Format("Signature-{0}.jpg", oDRow["EMPLOYEENO"])); - + if (authPerson != null) + oDR["AUTHSIGN"] = authPerson.Signature; dTable.Rows.Add(oDR); //count++; diff --git a/HRM.Report/PayrollDataSet/DigitalServiceBookDataSet.Designer.cs b/HRM.Report/PayrollDataSet/DigitalServiceBookDataSet.Designer.cs index 6fa7d05..b6019a4 100644 --- a/HRM.Report/PayrollDataSet/DigitalServiceBookDataSet.Designer.cs +++ b/HRM.Report/PayrollDataSet/DigitalServiceBookDataSet.Designer.cs @@ -481,6 +481,8 @@ namespace HRM.Report.PayrollDataSet { private global::System.Data.DataColumn columnSIGNATURE; + private global::System.Data.DataColumn columnAUTHSIGN; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] public EMPDigitalServiceBookDataTable() { @@ -756,6 +758,14 @@ namespace HRM.Report.PayrollDataSet { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn AUTHSIGNColumn { + get { + return this.columnAUTHSIGN; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] [global::System.ComponentModel.Browsable(false)] @@ -823,7 +833,8 @@ namespace HRM.Report.PayrollDataSet { string VILLAGETA, string ROADNOTA, string WARDNOTA, - string SIGNATURE) { + string SIGNATURE, + string AUTHSIGN) { EMPDigitalServiceBookRow rowEMPDigitalServiceBookRow = ((EMPDigitalServiceBookRow)(this.NewRow())); object[] columnValuesArray = new object[] { EMPLOYEEID, @@ -855,7 +866,8 @@ namespace HRM.Report.PayrollDataSet { VILLAGETA, ROADNOTA, WARDNOTA, - SIGNATURE}; + SIGNATURE, + AUTHSIGN}; rowEMPDigitalServiceBookRow.ItemArray = columnValuesArray; this.Rows.Add(rowEMPDigitalServiceBookRow); return rowEMPDigitalServiceBookRow; @@ -908,6 +920,7 @@ namespace HRM.Report.PayrollDataSet { this.columnROADNOTA = base.Columns["ROADNOTA"]; this.columnWARDNOTA = base.Columns["WARDNOTA"]; this.columnSIGNATURE = base.Columns["SIGNATURE"]; + this.columnAUTHSIGN = base.Columns["AUTHSIGN"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -973,6 +986,8 @@ namespace HRM.Report.PayrollDataSet { base.Columns.Add(this.columnWARDNOTA); this.columnSIGNATURE = new global::System.Data.DataColumn("SIGNATURE", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnSIGNATURE); + this.columnAUTHSIGN = new global::System.Data.DataColumn("AUTHSIGN", typeof(byte[]), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnAUTHSIGN); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -2718,6 +2733,22 @@ namespace HRM.Report.PayrollDataSet { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public string AUTHSIGN { + get { + try { + return ((string)(this[this.tableEMPDigitalServiceBook.AUTHSIGNColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'AUTHSIGN\' in table \'EMPDigitalServiceBook\' is DBNull.", e); + } + } + set { + this[this.tableEMPDigitalServiceBook.AUTHSIGNColumn] = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] public bool IsEMPLOYEEIDNull() { @@ -3077,6 +3108,18 @@ namespace HRM.Report.PayrollDataSet { public void SetSIGNATURENull() { this[this.tableEMPDigitalServiceBook.SIGNATUREColumn] = global::System.Convert.DBNull; } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public bool IsAUTHSIGNNull() { + return this.IsNull(this.tableEMPDigitalServiceBook.AUTHSIGNColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public void SetAUTHSIGNNull() { + this[this.tableEMPDigitalServiceBook.AUTHSIGNColumn] = global::System.Convert.DBNull; + } } /// diff --git a/HRM.Report/PayrollDataSet/DigitalServiceBookDataSet.xsd b/HRM.Report/PayrollDataSet/DigitalServiceBookDataSet.xsd index e40fd38..3b1207e 100644 --- a/HRM.Report/PayrollDataSet/DigitalServiceBookDataSet.xsd +++ b/HRM.Report/PayrollDataSet/DigitalServiceBookDataSet.xsd @@ -45,6 +45,7 @@ + diff --git a/HRM.Report/RDLC/DigitalServiceBook.rdlc b/HRM.Report/RDLC/DigitalServiceBook.rdlc index 237ff0e..5c0a315 100644 --- a/HRM.Report/RDLC/DigitalServiceBook.rdlc +++ b/HRM.Report/RDLC/DigitalServiceBook.rdlc @@ -137,6 +137,10 @@ SIGNATURE System.String + + AUTHSIGN + System.String + DigitalServiceBookDataSet @@ -912,7 +916,7 @@ 9.38506in 0.71685in 0.25in - 0.8125in + 1.15624in 18 + + Database + =First(Fields!AUTHSIGN.Value, "EMPDigitalServiceBook") + image/jpeg + Fit + 8.5959in + 4.7911in + 0.67708in + 1.8729in + 63 + =First(Fields!AUTHSIGN.Value, "EMPDigitalServiceBook") + + + + 20.35496in