servicebook
This commit is contained in:
parent
ed13e02cff
commit
f9f0fde437
|
@ -13,7 +13,7 @@ namespace HRM.Report
|
||||||
{
|
{
|
||||||
public class rptDigitalServiceBook
|
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();
|
DataSet dSet = new DataSet();
|
||||||
DataRow oDR = null;
|
DataRow oDR = null;
|
||||||
|
@ -21,6 +21,12 @@ namespace HRM.Report
|
||||||
if (sEmpIDs != null)
|
if (sEmpIDs != null)
|
||||||
empID = Convert.ToInt32(sEmpIDs);
|
empID = Convert.ToInt32(sEmpIDs);
|
||||||
|
|
||||||
|
AuthorizedPerson authPerson = null;
|
||||||
|
if(authorizePersionID != null)
|
||||||
|
{
|
||||||
|
authPerson = new AuthorizedPersonService().Get((int)authorizePersionID);
|
||||||
|
}
|
||||||
|
|
||||||
//string TargetFolder = @"Documents\EMPPHOTO\";
|
//string TargetFolder = @"Documents\EMPPHOTO\";
|
||||||
//string currentDirectory = Directory.GetCurrentDirectory();
|
//string currentDirectory = Directory.GetCurrentDirectory();
|
||||||
string TargetFolder = System.IO.Path.Combine(System.Environment.CurrentDirectory + @"\Documents\EMPPHOTO\");
|
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["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"]));
|
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);
|
dTable.Rows.Add(oDR);
|
||||||
//count++;
|
//count++;
|
||||||
|
|
|
@ -481,6 +481,8 @@ namespace HRM.Report.PayrollDataSet {
|
||||||
|
|
||||||
private global::System.Data.DataColumn columnSIGNATURE;
|
private global::System.Data.DataColumn columnSIGNATURE;
|
||||||
|
|
||||||
|
private global::System.Data.DataColumn columnAUTHSIGN;
|
||||||
|
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||||
public EMPDigitalServiceBookDataTable() {
|
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.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||||
[global::System.ComponentModel.Browsable(false)]
|
[global::System.ComponentModel.Browsable(false)]
|
||||||
|
@ -823,7 +833,8 @@ namespace HRM.Report.PayrollDataSet {
|
||||||
string VILLAGETA,
|
string VILLAGETA,
|
||||||
string ROADNOTA,
|
string ROADNOTA,
|
||||||
string WARDNOTA,
|
string WARDNOTA,
|
||||||
string SIGNATURE) {
|
string SIGNATURE,
|
||||||
|
string AUTHSIGN) {
|
||||||
EMPDigitalServiceBookRow rowEMPDigitalServiceBookRow = ((EMPDigitalServiceBookRow)(this.NewRow()));
|
EMPDigitalServiceBookRow rowEMPDigitalServiceBookRow = ((EMPDigitalServiceBookRow)(this.NewRow()));
|
||||||
object[] columnValuesArray = new object[] {
|
object[] columnValuesArray = new object[] {
|
||||||
EMPLOYEEID,
|
EMPLOYEEID,
|
||||||
|
@ -855,7 +866,8 @@ namespace HRM.Report.PayrollDataSet {
|
||||||
VILLAGETA,
|
VILLAGETA,
|
||||||
ROADNOTA,
|
ROADNOTA,
|
||||||
WARDNOTA,
|
WARDNOTA,
|
||||||
SIGNATURE};
|
SIGNATURE,
|
||||||
|
AUTHSIGN};
|
||||||
rowEMPDigitalServiceBookRow.ItemArray = columnValuesArray;
|
rowEMPDigitalServiceBookRow.ItemArray = columnValuesArray;
|
||||||
this.Rows.Add(rowEMPDigitalServiceBookRow);
|
this.Rows.Add(rowEMPDigitalServiceBookRow);
|
||||||
return rowEMPDigitalServiceBookRow;
|
return rowEMPDigitalServiceBookRow;
|
||||||
|
@ -908,6 +920,7 @@ namespace HRM.Report.PayrollDataSet {
|
||||||
this.columnROADNOTA = base.Columns["ROADNOTA"];
|
this.columnROADNOTA = base.Columns["ROADNOTA"];
|
||||||
this.columnWARDNOTA = base.Columns["WARDNOTA"];
|
this.columnWARDNOTA = base.Columns["WARDNOTA"];
|
||||||
this.columnSIGNATURE = base.Columns["SIGNATURE"];
|
this.columnSIGNATURE = base.Columns["SIGNATURE"];
|
||||||
|
this.columnAUTHSIGN = base.Columns["AUTHSIGN"];
|
||||||
}
|
}
|
||||||
|
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
|
@ -973,6 +986,8 @@ namespace HRM.Report.PayrollDataSet {
|
||||||
base.Columns.Add(this.columnWARDNOTA);
|
base.Columns.Add(this.columnWARDNOTA);
|
||||||
this.columnSIGNATURE = new global::System.Data.DataColumn("SIGNATURE", typeof(string), null, global::System.Data.MappingType.Element);
|
this.columnSIGNATURE = new global::System.Data.DataColumn("SIGNATURE", typeof(string), null, global::System.Data.MappingType.Element);
|
||||||
base.Columns.Add(this.columnSIGNATURE);
|
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()]
|
[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.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||||
public bool IsEMPLOYEEIDNull() {
|
public bool IsEMPLOYEEIDNull() {
|
||||||
|
@ -3077,6 +3108,18 @@ namespace HRM.Report.PayrollDataSet {
|
||||||
public void SetSIGNATURENull() {
|
public void SetSIGNATURENull() {
|
||||||
this[this.tableEMPDigitalServiceBook.SIGNATUREColumn] = global::System.Convert.DBNull;
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
@ -45,6 +45,7 @@
|
||||||
<xs:element name="ROADNOTA" msprop:Generator_ColumnPropNameInRow="ROADNOTA" msprop:Generator_ColumnPropNameInTable="ROADNOTAColumn" msprop:Generator_ColumnVarNameInTable="columnROADNOTA" msprop:Generator_UserColumnName="ROADNOTA" type="xs:string" minOccurs="0" />
|
<xs:element name="ROADNOTA" msprop:Generator_ColumnPropNameInRow="ROADNOTA" msprop:Generator_ColumnPropNameInTable="ROADNOTAColumn" msprop:Generator_ColumnVarNameInTable="columnROADNOTA" msprop:Generator_UserColumnName="ROADNOTA" type="xs:string" minOccurs="0" />
|
||||||
<xs:element name="WARDNOTA" msprop:Generator_ColumnPropNameInRow="WARDNOTA" msprop:Generator_ColumnPropNameInTable="WARDNOTAColumn" msprop:Generator_ColumnVarNameInTable="columnWARDNOTA" msprop:Generator_UserColumnName="WARDNOTA" type="xs:string" minOccurs="0" />
|
<xs:element name="WARDNOTA" msprop:Generator_ColumnPropNameInRow="WARDNOTA" msprop:Generator_ColumnPropNameInTable="WARDNOTAColumn" msprop:Generator_ColumnVarNameInTable="columnWARDNOTA" msprop:Generator_UserColumnName="WARDNOTA" type="xs:string" minOccurs="0" />
|
||||||
<xs:element name="SIGNATURE" msprop:Generator_ColumnPropNameInRow="SIGNATURE" msprop:Generator_ColumnPropNameInTable="SIGNATUREColumn" msprop:Generator_ColumnVarNameInTable="columnSIGNATURE" msprop:Generator_UserColumnName="SIGNATURE" type="xs:string" minOccurs="0" />
|
<xs:element name="SIGNATURE" msprop:Generator_ColumnPropNameInRow="SIGNATURE" msprop:Generator_ColumnPropNameInTable="SIGNATUREColumn" msprop:Generator_ColumnVarNameInTable="columnSIGNATURE" msprop:Generator_UserColumnName="SIGNATURE" type="xs:string" minOccurs="0" />
|
||||||
|
<xs:element name="AUTHSIGN" msprop:Generator_ColumnPropNameInRow="AUTHSIGN" msprop:Generator_ColumnPropNameInTable="AUTHSIGNColumn" msprop:Generator_ColumnVarNameInTable="columnAUTHSIGN" msprop:Generator_UserColumnName="AUTHSIGN" type="xs:string" minOccurs="0" />
|
||||||
</xs:sequence>
|
</xs:sequence>
|
||||||
</xs:complexType>
|
</xs:complexType>
|
||||||
</xs:element>
|
</xs:element>
|
||||||
|
|
|
@ -137,6 +137,10 @@
|
||||||
<DataField>SIGNATURE</DataField>
|
<DataField>SIGNATURE</DataField>
|
||||||
<rd:TypeName>System.String</rd:TypeName>
|
<rd:TypeName>System.String</rd:TypeName>
|
||||||
</Field>
|
</Field>
|
||||||
|
<Field Name="AUTHSIGN">
|
||||||
|
<DataField>AUTHSIGN</DataField>
|
||||||
|
<rd:TypeName>System.String</rd:TypeName>
|
||||||
|
</Field>
|
||||||
</Fields>
|
</Fields>
|
||||||
<rd:DataSetInfo>
|
<rd:DataSetInfo>
|
||||||
<rd:DataSetName>DigitalServiceBookDataSet</rd:DataSetName>
|
<rd:DataSetName>DigitalServiceBookDataSet</rd:DataSetName>
|
||||||
|
@ -912,7 +916,7 @@
|
||||||
<Top>9.38506in</Top>
|
<Top>9.38506in</Top>
|
||||||
<Left>0.71685in</Left>
|
<Left>0.71685in</Left>
|
||||||
<Height>0.25in</Height>
|
<Height>0.25in</Height>
|
||||||
<Width>0.8125in</Width>
|
<Width>1.15624in</Width>
|
||||||
<ZIndex>18</ZIndex>
|
<ZIndex>18</ZIndex>
|
||||||
<Style>
|
<Style>
|
||||||
<Border>
|
<Border>
|
||||||
|
@ -5358,6 +5362,23 @@
|
||||||
</Border>
|
</Border>
|
||||||
</Style>
|
</Style>
|
||||||
</Image>
|
</Image>
|
||||||
|
<Image Name="image4">
|
||||||
|
<Source>Database</Source>
|
||||||
|
<Value>=First(Fields!AUTHSIGN.Value, "EMPDigitalServiceBook")</Value>
|
||||||
|
<MIMEType>image/jpeg</MIMEType>
|
||||||
|
<Sizing>Fit</Sizing>
|
||||||
|
<Top>8.5959in</Top>
|
||||||
|
<Left>4.7911in</Left>
|
||||||
|
<Height>0.67708in</Height>
|
||||||
|
<Width>1.8729in</Width>
|
||||||
|
<ZIndex>63</ZIndex>
|
||||||
|
<ToolTip>=First(Fields!AUTHSIGN.Value, "EMPDigitalServiceBook")</ToolTip>
|
||||||
|
<Style>
|
||||||
|
<Border>
|
||||||
|
<Style>None</Style>
|
||||||
|
</Border>
|
||||||
|
</Style>
|
||||||
|
</Image>
|
||||||
</ReportItems>
|
</ReportItems>
|
||||||
<Height>20.35496in</Height>
|
<Height>20.35496in</Height>
|
||||||
<Style />
|
<Style />
|
||||||
|
@ -5405,12 +5426,6 @@
|
||||||
<AllowBlank>true</AllowBlank>
|
<AllowBlank>true</AllowBlank>
|
||||||
<Prompt>ReportParameter1</Prompt>
|
<Prompt>ReportParameter1</Prompt>
|
||||||
</ReportParameter>
|
</ReportParameter>
|
||||||
<ReportParameter Name="Photo">
|
|
||||||
<DataType>String</DataType>
|
|
||||||
<Nullable>true</Nullable>
|
|
||||||
<AllowBlank>true</AllowBlank>
|
|
||||||
<Prompt>ReportParameter1</Prompt>
|
|
||||||
</ReportParameter>
|
|
||||||
</ReportParameters>
|
</ReportParameters>
|
||||||
<ReportParametersLayout>
|
<ReportParametersLayout>
|
||||||
<GridLayoutDefinition>
|
<GridLayoutDefinition>
|
||||||
|
@ -5442,11 +5457,6 @@
|
||||||
<RowIndex>1</RowIndex>
|
<RowIndex>1</RowIndex>
|
||||||
<ParameterName>Phone</ParameterName>
|
<ParameterName>Phone</ParameterName>
|
||||||
</CellDefinition>
|
</CellDefinition>
|
||||||
<CellDefinition>
|
|
||||||
<ColumnIndex>1</ColumnIndex>
|
|
||||||
<RowIndex>1</RowIndex>
|
|
||||||
<ParameterName>Photo</ParameterName>
|
|
||||||
</CellDefinition>
|
|
||||||
</CellDefinitions>
|
</CellDefinitions>
|
||||||
</GridLayoutDefinition>
|
</GridLayoutDefinition>
|
||||||
</ReportParametersLayout>
|
</ReportParametersLayout>
|
||||||
|
|
|
@ -3963,8 +3963,8 @@ namespace HRM.Report
|
||||||
|
|
||||||
GetParameters(payrollTypeId);
|
GetParameters(payrollTypeId);
|
||||||
////GetImageFromEmpFileUpload(empId);
|
////GetImageFromEmpFileUpload(empId);
|
||||||
rParam = new ReportParameter("Photo", _PATH);
|
//rParam = new ReportParameter("Photo", _PATH);
|
||||||
reportParameters.Add(rParam);
|
//reportParameters.Add(rParam);
|
||||||
if (reportParameters != null)
|
if (reportParameters != null)
|
||||||
localReport.SetParameters(reportParameters);
|
localReport.SetParameters(reportParameters);
|
||||||
Warning[] warnings;
|
Warning[] warnings;
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<div class="p-grid card">
|
<div class="p-grid card">
|
||||||
<div class="p-col-12 p-md-12" style="padding: 7px;">
|
<div class="p-col-12 p-md-12" style="padding: 7px;">
|
||||||
<div class="p-grid">
|
<div class="p-grid">
|
||||||
<div class="p-col-5">
|
<div class="p-col-12 p-md-5">
|
||||||
<app-employee-picker (ItemSelected)="GetSelectedEmployee($event)"></app-employee-picker>
|
<app-employee-picker (ItemSelected)="GetSelectedEmployee($event)"></app-employee-picker>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -14,9 +14,18 @@
|
||||||
style="width:100%">
|
style="width:100%">
|
||||||
</kendo-datepicker>
|
</kendo-datepicker>
|
||||||
</div> -->
|
</div> -->
|
||||||
<div class="p-col-5">
|
<div class="p-col-12 p-md-1" style="margin: auto"></div>
|
||||||
|
<div class="p-col-6 p-md-2" style="margin: auto">
|
||||||
|
<label>Authorized Person</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="p-col-2">
|
<div class="p-col-6 p-md-2">
|
||||||
|
|
||||||
|
<kendo-dropdownlist [data]="authorizedPersonList"
|
||||||
|
[defaultItem]="{ name: 'Select..', id: null }" [textField]="'name'" [valueField]="'id'"
|
||||||
|
[valuePrimitive]="true" [(ngModel)]="selectedPersonID" id="signatory">
|
||||||
|
</kendo-dropdownlist>
|
||||||
|
</div>
|
||||||
|
<div class="p-col-12 p-md-2">
|
||||||
<button kendoButton style="width: 100%; margin-right: 5%" (click)="onPreview('PDF')"
|
<button kendoButton style="width: 100%; margin-right: 5%" (click)="onPreview('PDF')"
|
||||||
class="k-primary">Preview</button>
|
class="k-primary">Preview</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -11,8 +11,8 @@ import { AttendanceServices } from '../../_services/attendance/attendance.servic
|
||||||
import { LoanService } from 'src/app/_services/payroll/loan.service';
|
import { LoanService } from 'src/app/_services/payroll/loan.service';
|
||||||
import { SalaryService } from '../../_services/payroll/salary.service';
|
import { SalaryService } from '../../_services/payroll/salary.service';
|
||||||
import { LeaveService } from '../../_services/leave/leave.service';
|
import { LeaveService } from '../../_services/leave/leave.service';
|
||||||
import {PayrollType} from '../../_models/Authentication/payrollType';
|
import { PayrollType } from '../../_models/Authentication/payrollType';
|
||||||
import { SearchEmployee, SearchManager } from '../../_models/Employee/searchEmployee';
|
import { SearchEmployee, SearchManager } from '../../_models/Employee/searchEmployee';
|
||||||
import {
|
import {
|
||||||
EnumBloodGroup,
|
EnumBloodGroup,
|
||||||
EnumExtension,
|
EnumExtension,
|
||||||
|
@ -31,6 +31,8 @@ import { ApiService } from '../../app.api.service';
|
||||||
import { NgxExtendedPdfViewerService, PDFPrintRange } from 'ngx-extended-pdf-viewer';
|
import { NgxExtendedPdfViewerService, PDFPrintRange } from 'ngx-extended-pdf-viewer';
|
||||||
import { Employee } from '../../_models/Employee/employee';
|
import { Employee } from '../../_models/Employee/employee';
|
||||||
import { saveAs } from 'file-saver';
|
import { saveAs } from 'file-saver';
|
||||||
|
import { LetterRequestService } from 'src/app/_services/letter-request/letter-request.service';
|
||||||
|
import { AuthorizedPerson } from 'src/app/adhoc-feature/authorized-persons/authorizedPerson';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-digital-service-book',
|
selector: 'app-digital-service-book',
|
||||||
|
@ -49,6 +51,8 @@ export class DigitalServiceBookComponent implements OnInit {
|
||||||
fromDate: Date = new Date();
|
fromDate: Date = new Date();
|
||||||
toDate: Date = new Date();
|
toDate: Date = new Date();
|
||||||
payrolltype: PayrollType;
|
payrolltype: PayrollType;
|
||||||
|
authorizedPersonList: AuthorizedPerson[] = [];
|
||||||
|
selectedPersonID: number;
|
||||||
// user: User;
|
// user: User;
|
||||||
|
|
||||||
constructor(public employeeService: EmployeeServices,
|
constructor(public employeeService: EmployeeServices,
|
||||||
|
@ -64,6 +68,7 @@ export class DigitalServiceBookComponent implements OnInit {
|
||||||
public taxService: TaxService,
|
public taxService: TaxService,
|
||||||
public salaryService: SalaryService,
|
public salaryService: SalaryService,
|
||||||
public leaveYearService: LeaveService,
|
public leaveYearService: LeaveService,
|
||||||
|
public letterRequestService: LetterRequestService,
|
||||||
public router: Router,
|
public router: Router,
|
||||||
public authService: AuthService) {
|
public authService: AuthService) {
|
||||||
this.apiService.selectedMenuName = 'Digital Service Book';
|
this.apiService.selectedMenuName = 'Digital Service Book';
|
||||||
|
@ -95,7 +100,7 @@ export class DigitalServiceBookComponent implements OnInit {
|
||||||
// this.setSelectableSettings();
|
// this.setSelectableSettings();
|
||||||
// this.loadBank();
|
// this.loadBank();
|
||||||
|
|
||||||
|
this.loadDataAuthorizedPersons();
|
||||||
this.loadLoggedInEmployee();
|
this.loadLoggedInEmployee();
|
||||||
}
|
}
|
||||||
loadLoggedInEmployee() {
|
loadLoggedInEmployee() {
|
||||||
|
@ -135,13 +140,14 @@ export class DigitalServiceBookComponent implements OnInit {
|
||||||
|
|
||||||
const data = {
|
const data = {
|
||||||
reportid: 1000,
|
reportid: 1000,
|
||||||
itemid: 0,
|
itemid: this.selectedPersonID != undefined ? this.selectedPersonID : null,
|
||||||
// empIds: '',
|
// empIds: '',
|
||||||
empIds: this.selectedEmp.employeeID,
|
empIds: this.selectedEmp.employeeID,
|
||||||
reportType: type,
|
reportType: type,
|
||||||
// fromDate: this.selectedMonth,
|
// fromDate: this.selectedMonth,
|
||||||
fromDate: new Date().toDateString(),
|
fromDate: new Date().toDateString(),
|
||||||
toDate: new Date().toDateString()
|
toDate: new Date().toDateString(),
|
||||||
|
|
||||||
};
|
};
|
||||||
this.loadingPanel.ShowLoadingPanel = true;
|
this.loadingPanel.ShowLoadingPanel = true;
|
||||||
console.log(data);
|
console.log(data);
|
||||||
|
@ -211,4 +217,20 @@ export class DigitalServiceBookComponent implements OnInit {
|
||||||
this.printService.print();
|
this.printService.print();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
loadDataAuthorizedPersons() {
|
||||||
|
this.loadingPanel.ShowLoadingPanel = true;
|
||||||
|
this.letterRequestService.getAuthorisedPersons().subscribe(
|
||||||
|
(resp) => {
|
||||||
|
this.authorizedPersonList = resp;
|
||||||
|
},
|
||||||
|
(err) => {
|
||||||
|
this.notificationService.showError(err.error);
|
||||||
|
this.loadingPanel.ShowLoadingPanel = false;
|
||||||
|
},
|
||||||
|
() => {
|
||||||
|
this.loadingPanel.ShowLoadingPanel = false;
|
||||||
|
},
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -633,7 +633,7 @@ namespace HRM.UI.Controllers.Report
|
||||||
bytes = rptLeave.ShowCCWiseLeaveEncashmentReturn(itemid, payrollTypeId, reportType);
|
bytes = rptLeave.ShowCCWiseLeaveEncashmentReturn(itemid, payrollTypeId, reportType);
|
||||||
break;
|
break;
|
||||||
case EnumReportType.DigitalServiceBook:
|
case EnumReportType.DigitalServiceBook:
|
||||||
bytes = new rptDigitalServiceBook().DigitalServiceBook(currentUser.EmployeeID.HasValue ? currentUser.EmployeeID.Value : 0, (int)currentUser.PayrollTypeID, fromDate, sEmpIDs, reportType);
|
bytes = new rptDigitalServiceBook().DigitalServiceBook(currentUser.EmployeeID.HasValue ? currentUser.EmployeeID.Value : 0, (int)currentUser.PayrollTypeID, fromDate, sEmpIDs, itemid == 0 ? null : itemid, reportType);
|
||||||
break;
|
break;
|
||||||
case EnumReportType.SalaryAllocationReportEmployeeWise:
|
case EnumReportType.SalaryAllocationReportEmployeeWise:
|
||||||
bytes = new rptJV().showJVSalaryDetailEmployeeWReport(1, GlobalFunctions.LastDateOfMonth(fromDate), null, payrollTypeId, reportType);
|
bytes = new rptJV().showJVSalaryDetailEmployeeWReport(1, GlobalFunctions.LastDateOfMonth(fromDate), null, payrollTypeId, reportType);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user