71 lines
4.2 KiB
C#
71 lines
4.2 KiB
C#
using HRM.BO;
|
|
using Ease.Core.DataAccess;
|
|
using System;
|
|
using System.Data;
|
|
|
|
namespace HRM.DA
|
|
{
|
|
internal class JoiningPreparationDA
|
|
{
|
|
internal static void Insert(JoiningPreparation item, TransactionContext tc)
|
|
{
|
|
string sql = SQLParser.MakeSQL(@"Insert Into JoiningPreparation(JoiningPreparationID, RecruitmentLetterID, EMPLOYEEINFORMATIONBANKSTATUS,
|
|
JOININGREPORTDOCUMENTSTATUS, COLORPHOTOSTATUS, RELEASECLEARANCELETTERSTATUS,
|
|
EXPERIENCECERTIFICATELASTORGANIZATIONSTATUS, EXPERIENCECERTIFICATESTATUS,
|
|
EDUCATIONALCERTIFICATESTATUS, TRAININGCERTIFICATESTATUS, NIDSTATUS, ETINSTATUS,
|
|
HEALTHFITNESSCERTIFICATESTATUS, HEALTHINSURANCEFORMSTATUS, BANKACCOUNTINFORMATIONSTATUS,
|
|
NOMINEEFORMSTATUS, RECRUITMENTFEEDBACKFORMSTATUS, ACKNOWLEDGEMENTFORMSTATUS,
|
|
EMPLOYEEINFORMATIONBANKREMARKS, JOININGREPORTDOCUMENTREMARKS, COLORPHOTOREMARKS,
|
|
RELEASECLEARANCELETTERREMARKS, EXPERIENCECERTIFICATELASTORGANIZATIONREMARKS,
|
|
EXPERIENCECERTIFICATEREMARKS, EDUCATIONALCERTIFICATEREMARKS, TRAININGCERTIFICATEREMARKS,
|
|
NIDREMARKS, ETINREMARKS, HEALTHFITNESSCERTIFICATEREMARKS, HEALTHINSURANCEFORMREMARKS,
|
|
BANKACCOUNTINFORMATIONREMARKS, NOMINEEFORMREMARKS, RECRUITMENTFEEDBACKFORMREMARKS,
|
|
ACKNOWLEDGEMENTFORMREMARKS, CREATEDBY, CREATEDDATE)
|
|
Values(%n, %n, %n, %n, %n, %n, %n, %n, %n, %n, %n, %n, %n, %n, %n, %n, %n, %n, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %n, %D)",
|
|
item.ID, item.RecruitmentLetterID, item.EmployeeInformationBankStatus,
|
|
item.JoiningReportDocumentStatus, item.ColorPhotoStatus, item.ReleaseClearanceLetterStatus,
|
|
item.ExperienceCertificateLastOrganizationStatus, item.ExperienceCertificateStatus,
|
|
item.EducationalCertificateStatus, item.TrainingCertificateStatus, item.NIDStatus,
|
|
item.ETINStatus, item.HealthFitnessCertificateStatus, item.HealthInsuranceFormStatus,
|
|
item.BankAccountInformationStatus, item.NomineeFormStatus, item.RecruitmentFeedbackFormStatus,
|
|
item.AcknowledgementFormStatus, item.EmployeeInformationBankRemarks,
|
|
item.JoiningReportDocumentRemarks, item.ColorPhotoRemarks, item.ReleaseClearanceLetterRemarks,
|
|
item.ExperienceCertificateLastOrganizationRemarks, item.ExperienceCertificateRemarks,
|
|
item.EducationalCertificateRemarks, item.TrainingCertificateRemarks, item.NIDRemarks,
|
|
item.ETINRemarks, item.HealthFitnessCertificateRemarks, item.HealthInsuranceFormRemarks,
|
|
item.BankAccountInformationRemarks, item.NomineeFormRemarks,
|
|
item.RecruitmentFeedbackFormRemarks, item.AcknowledgementFormRemarks, item.CreatedBy, item.CreatedDate);
|
|
|
|
tc.ExecuteNonQuery(sql);
|
|
}
|
|
|
|
internal static void Update(InterviewSession item, TransactionContext tc)
|
|
{
|
|
string sql = SQLParser.MakeSQL(@"Update InterViewSession set interviewDate =%d ,StartTime =%D,
|
|
EndDate =%D, Remarks=%s, boardMemberSelfAssessment=%b, ModifiedDate = %D,ModifiedBy=%n, SessionStatus=%n where InterviewSessionID =%n
|
|
", item.interviewDate,
|
|
item.StartTime, item.EndTime, item.Remarks, item.boardMemberSelfAssessment, item.CreatedDate, item.CreatedBy, item.SessionStatus, item.ID);
|
|
tc.ExecuteNonQuery(sql);
|
|
}
|
|
|
|
internal static IDataReader getByRecruitmentLetterID(TransactionContext tc, int rID)
|
|
{
|
|
string sql = SQLParser.MakeSQL(@"select * from JOININGPREPARATION where RecruitmentLetterID =%n", rID);
|
|
return tc.ExecuteReader(sql);
|
|
}
|
|
|
|
internal static void Delete(InterviewSessionCandidate item, TransactionContext tc)
|
|
{
|
|
string sql = SQLParser.MakeSQL(@"Delete From JOININGPREPARATION where JoiningPreparationID =%n
|
|
", item.ID);
|
|
tc.ExecuteNonQuery(sql);
|
|
}
|
|
|
|
internal static void DeleteJPbyRecruitmentLetterID(int rID, TransactionContext tc)
|
|
{
|
|
string sql = SQLParser.MakeSQL(@"Delete From JOININGPREPARATION where RecruitmentLetterID =%n", rID);
|
|
tc.ExecuteNonQuery(sql);
|
|
}
|
|
}
|
|
}
|