diff --git a/HRM.BO/HREmployee/HREmployee.cs b/HRM.BO/HREmployee/HREmployee.cs index 5fc00d4..fec50cc 100644 --- a/HRM.BO/HREmployee/HREmployee.cs +++ b/HRM.BO/HREmployee/HREmployee.cs @@ -259,7 +259,9 @@ namespace HRM.BO public Relation ContactPersonRelation { get; set; } public string PermanentAddressInBangla { get; set; } public string PresentAddressInBangla { get; set; } + public string PresentPO { get; set; } public string PresentPOInBangla { get; set; } + public string PermanentPO { get; set; } public string ParmanentPOInBangla { get; set; } //#region Property PermanentDistrict : District diff --git a/HRM.DA/DA/HREmployee/HREmployeeDA.cs b/HRM.DA/DA/HREmployee/HREmployeeDA.cs index b05dcd4..102745b 100644 --- a/HRM.DA/DA/HREmployee/HREmployeeDA.cs +++ b/HRM.DA/DA/HREmployee/HREmployeeDA.cs @@ -434,12 +434,12 @@ namespace HRM.DA "EmployeeID, ContactID, PARMANENTADDRESS, PARMANENTDISTRICTID, PARMANENTTHANAID, PARMANENTTELEPHONE," + " PresentAddress, PresentDistrictID, PresentThanaID, PresentTelephone, Mobile, PersonalEmail," + " OfficialEMail, Fax, EmergencyContactAddress, EmergencyContactPerson, EmergencyTelephone, PARMANENTMOBILE, " + - " PRESENTMOBILE, PERSONALTELEPHONE, EMERGENCYMOBILE, CPRELATIONID,ProfileStatus,PermanentAddressInBangla,PresentAddressInBangla,PermanentPostCodeNo,PresentPostCodeNo, PresentPOInBangla, ParmanentPOInBangla)" + + " PRESENTMOBILE, PERSONALTELEPHONE, EMERGENCYMOBILE, CPRELATIONID,ProfileStatus,PermanentAddressInBangla,PresentAddressInBangla,PermanentPostCodeNo,PresentPostCodeNo, PresentPOInBangla, ParmanentPOInBangla, PresentPO, PermanentPO)" + " VALUES(" + " %n, %n, %s, %n, %n, %s, " + " %s, %n, %n, %s, %s, %s," + " %s, %s, %s, %s, %s, %s," + - " %s, %s, %s, %n,%n, %u, %u, %s, %s, %u, %u)", + " %s, %s, %s, %n,%n, %u, %u, %s, %s, %u, %u, %s, %s)", item.EmployeeID, item.ID, item.PermanentAddress, DataReader.GetNullValue(item.PermanentDistrictID, 0), DataReader.GetNullValue(item.PermanentThanaID, 0), item.PermanentTelephone, item.PresentAddress, DataReader.GetNullValue(item.PresentDistrictID, 0), @@ -448,7 +448,7 @@ namespace HRM.DA item.EmergencyTelephone, DataReader.GetNullValue(item.PermanentMobile), DataReader.GetNullValue(item.PresentMobile), DataReader.GetNullValue(item.PersonalTelephone), DataReader.GetNullValue(item.EmergencyMobile), - DataReader.GetNullValue(item.ContactPersonRelationId, 0), item.ProfileStatus, item.PermanentAddressInBangla, item.PresentAddressInBangla, item.PermanentPostCodeNo, item.PresentPostCodeNo, item.PresentPOInBangla, item.ParmanentPOInBangla); + DataReader.GetNullValue(item.ContactPersonRelationId, 0), item.ProfileStatus, item.PermanentAddressInBangla, item.PresentAddressInBangla, item.PermanentPostCodeNo, item.PresentPostCodeNo, item.PresentPOInBangla, item.ParmanentPOInBangla, item.PresentPO, item.PermanentPO); tc.ExecuteNonQuery(sql); } @@ -459,7 +459,7 @@ namespace HRM.DA "PARMANENTADDRESS =%s , PARMANENTDISTRICTID =%n, PARMANENTTHANAID =%n, PARMANENTTELEPHONE=%s," + " PresentAddress=%s, PresentDistrictID=%n, PresentThanaID=%n, PresentTelephone=%s, Mobile =%s, PersonalEmail=%s," + " OfficialEMail=%s, Fax=%s, EmergencyContactAddress=%s, EmergencyContactPerson=%s, EmergencyTelephone=%s, PARMANENTMOBILE=%s, " + - " PRESENTMOBILE=%s, PERSONALTELEPHONE=%s, EMERGENCYMOBILE=%s, CPRELATIONID=%n,ProfileStatus=%n,PermanentAddressInBangla=%u,PresentAddressInBangla=%u,PermanentPostCodeNo=%s,PresentPostCodeNo=%s, PresentPOInBangla = %u, ParmanentPOInBangla = %u" + + " PRESENTMOBILE=%s, PERSONALTELEPHONE=%s, EMERGENCYMOBILE=%s, CPRELATIONID=%n,ProfileStatus=%n,PermanentAddressInBangla=%u,PresentAddressInBangla=%u,PermanentPostCodeNo=%s,PresentPostCodeNo=%s, PresentPOInBangla = %u, ParmanentPOInBangla = %u, PresentPO = %s, PermanentPO = %s" + " where EmployeeID =%n and ContactID =%n ", item.PermanentAddress, DataReader.GetNullValue(item.PermanentDistrictID, 0), DataReader.GetNullValue(item.PermanentThanaID, 0), item.PermanentTelephone, @@ -469,7 +469,7 @@ namespace HRM.DA item.EmergencyTelephone, DataReader.GetNullValue(item.PermanentMobile), DataReader.GetNullValue(item.PresentMobile), DataReader.GetNullValue(item.PersonalTelephone), DataReader.GetNullValue(item.EmergencyMobile), - DataReader.GetNullValue(item.ContactPersonRelationId, 0), item.ProfileStatus, item.PermanentAddressInBangla, item.PresentAddressInBangla, item.PermanentPostCodeNo, item.PresentPostCodeNo, item.PresentPOInBangla, item.ParmanentPOInBangla, item.EmployeeID, item.ID); + DataReader.GetNullValue(item.ContactPersonRelationId, 0), item.ProfileStatus, item.PermanentAddressInBangla, item.PresentAddressInBangla, item.PermanentPostCodeNo, item.PresentPostCodeNo, item.PresentPOInBangla, item.ParmanentPOInBangla, item.PresentPO, item.PermanentPO, item.EmployeeID, item.ID); tc.ExecuteNonQuery(sql); } diff --git a/HRM.DA/DA/SearchReport/SearchEmployeeDA.cs b/HRM.DA/DA/SearchReport/SearchEmployeeDA.cs index 899fe5d..19fbd65 100644 --- a/HRM.DA/DA/SearchReport/SearchEmployeeDA.cs +++ b/HRM.DA/DA/SearchReport/SearchEmployeeDA.cs @@ -385,9 +385,16 @@ END;"; if (name != string.Empty) sqlClause = SQLParser.TagSQL(sqlClause) + SQLParser.MakeSQL("Name LIKE %s", ("%" + name + "%")); + //string finalSQl = SQLParser.MakeSQL( + // "%q Select %q EmployeeID, EmployeeNo, Name, categoryID, GradeID, LocationID, designationid, DepartmentID From Employee %q %q Order by %s", + // recurSqlClause, top, sqlClause, recurWhereClause, orderby); + + string finalSQl = SQLParser.MakeSQL( - "%q Select %q EmployeeID, EmployeeNo, Name, categoryID, GradeID, LocationID, designationid, DepartmentID From Employee %q %q Order by %s", - recurSqlClause, top, sqlClause, recurWhereClause, orderby); + "%q Select %q EmployeeID, EmployeeNo, Name, categoryID, GradeID, LocationID, designationid, DepartmentID From Employee %q %q " + + " UNION Select %q EmployeeID, EmployeeNo, Name, categoryID, GradeID, LocationID, designationid, DepartmentID From Employee %q " + + " Order by %s", + recurSqlClause, top, sqlClause, recurWhereClause, top, sqlClause, orderby); return tc.ExecuteReader(finalSQl); } diff --git a/HRM.DA/Service/HREmployee/HREmployeeService.cs b/HRM.DA/Service/HREmployee/HREmployeeService.cs index e9f9459..9d2fca3 100644 --- a/HRM.DA/Service/HREmployee/HREmployeeService.cs +++ b/HRM.DA/Service/HREmployee/HREmployeeService.cs @@ -254,6 +254,8 @@ namespace HRM.DA oEmpContact.ProfileStatus = (EnumProfileStatus)oReader.GetInt32("ProfileStatus").GetValueOrDefault(); oEmpContact.PresentPOInBangla = oReader.GetString("PresentPOInBangla", true, null); oEmpContact.ParmanentPOInBangla = oReader.GetString("ParmanentPOInBangla", true, null); + oEmpContact.PresentPO = oReader.GetString("PresentPO", true, null); + oEmpContact.PermanentPO = oReader.GetString("PermanentPO", true, null); this.SetObjectState(oEmpContact, ObjectState.Saved); } diff --git a/HRM.UI/ClientApp/src/app/_models/HREmployee/empContact.ts b/HRM.UI/ClientApp/src/app/_models/HREmployee/empContact.ts index e7972d6..a7224f8 100644 --- a/HRM.UI/ClientApp/src/app/_models/HREmployee/empContact.ts +++ b/HRM.UI/ClientApp/src/app/_models/HREmployee/empContact.ts @@ -36,7 +36,9 @@ export class EmpContact extends BaseObject { presentAddressInBangla: string; permanentPostCodeNo: string; presentPostCodeNo: string; + presentPO: string; presentPOInBangla: string; + permanentPO: string; parmanentPOInBangla: string; constructor() { super(); diff --git a/HRM.UI/ClientApp/src/app/_models/enums.ts b/HRM.UI/ClientApp/src/app/_models/enums.ts index f5b3fe2..853e1cb 100644 --- a/HRM.UI/ClientApp/src/app/_models/enums.ts +++ b/HRM.UI/ClientApp/src/app/_models/enums.ts @@ -3150,14 +3150,15 @@ export enum EnumSuccessorReadiness { } export let BloodGroupList = [ - { name: "A+", value: 1 }, - { name: "A-", value: 2 }, - { name: "B+", value: 3 }, - { name: "B-", value: 4 }, - { name: "O+", value: 5 }, - { name: "O-", value: 6 }, - { name: "AB+", value: 7 }, - { name: "AB-", value: 8 }, + { name: "N/A", value: 1 }, + { name: "A+", value: 2 }, + { name: "A-", value: 3 }, + { name: "B+", value: 4 }, + { name: "B-", value: 5 }, + { name: "O+", value: 6 }, + { name: "O-", value: 7 }, + { name: "AB+", value: 8 }, + { name: "AB-", value: 9 }, ]; export class EnumExtension { diff --git a/HRM.UI/ClientApp/src/app/app.api.service.ts b/HRM.UI/ClientApp/src/app/app.api.service.ts index 8c79343..c8d4dc6 100644 --- a/HRM.UI/ClientApp/src/app/app.api.service.ts +++ b/HRM.UI/ClientApp/src/app/app.api.service.ts @@ -13,7 +13,7 @@ export class ApiService { public isSSO = false; public versionDeployement = false; - public versionNumber = `V-${GlobalfunctionExtension.generateVersionNumber(new Date(2025, 1, 5))}-`+"01"; + public versionNumber = `V-${GlobalfunctionExtension.generateVersionNumber(new Date(2025, 1, 23))}-`+"01"; public static BASE_URL = ''; public base_url = ''; // public currentLink = ''; diff --git a/HRM.UI/ClientApp/src/app/core-hr/employee-profile/contact/contact.component.html b/HRM.UI/ClientApp/src/app/core-hr/employee-profile/contact/contact.component.html index 370a8ef..9bbd7ea 100644 --- a/HRM.UI/ClientApp/src/app/core-hr/employee-profile/contact/contact.component.html +++ b/HRM.UI/ClientApp/src/app/core-hr/employee-profile/contact/contact.component.html @@ -57,6 +57,21 @@ [(ngModel)]="contact.permanentTelephone" type="text" pInputText style="width:100%"> +
+ +
+
+ +
+ +
+ +
+
+ +
@@ -65,21 +80,15 @@ [(ngModel)]="contact.parmanentPOInBangla" type="text" pInputText style="width:100%"> +
- -
-
- -
-
-
+