Ejemplo n.º 1
0
        private void AuditTrailForClientCLose(Reginfo prevRegInfo, Reginfo currentReginfo, string remarks)
        {
            currentReginfo.Remarks = remarks;
            AuditTrail auditTrail = new AuditTrail();

            auditTrail.Who               = currentReginfo.UpdateBy;
            auditTrail.WhatActionId      = 4;
            auditTrail.WhichParentMenuId = 2;
            auditTrail.WhichMenu         = "Client Profile";
            auditTrail.WhichId           = currentReginfo.Mphone;
            var diffList = auditTrailService.GetAuditTrialFeildByDifferenceBetweenObject(currentReginfo, prevRegInfo);

            auditTrail.InputFeildAndValue = diffList;
            if (currentReginfo.Status == "C")
            {
                auditTrail.Response = "Close Performed Successfully";
            }
            else
            {
                auditTrail.Response = "Active Performed Successfully";
            }

            //auditTrail.InputFeildAndValue = new List<AuditTrialFeild>
            //{
            //	new AuditTrialFeild
            //	{
            //		WhichFeildName = "Status",
            //		WhichValue= prevRegInfo.Status,
            //		WhatValue = reginfo.Status
            //	}
            //};
            auditTrailService.InsertIntoAuditTrail(auditTrail);
        }
Ejemplo n.º 2
0
        private object AuditTrailForAddRemoveDormant(DormantAcc dormantModel, Reginfo prevReginfo, string status)
        {
            Reginfo    currentReginfo = (Reginfo)_kycService.GetRegInfoByMphone(dormantModel.Mphone);
            var        diffList       = auditTrailService.GetAuditTrialFeildByDifferenceBetweenObject(currentReginfo, prevReginfo);
            AuditTrail auditTrail     = new AuditTrail();

            auditTrail.Who               = dormantModel._ActionBy;
            auditTrail.WhatActionId      = 4;
            auditTrail.WhichParentMenuId = 2;
            auditTrail.WhichMenu         = "Client Profile";
            auditTrail.WhichId           = dormantModel.Mphone;
            if (status == "D")
            {
                auditTrail.Response = "Revoked from Dormant Successfully";
            }
            else
            {
                auditTrail.Response = "Dormant Perform Successfully";
            }
            auditTrail.InputFeildAndValue = diffList;
            auditTrailService.InsertIntoAuditTrail(auditTrail);
            return(currentReginfo);
        }