예제 #1
0
        public bool MonitorLoan(int fileId, bool activeLoan, ref string err)
        {
            err = "";
            if (fileId <= 0)
            {
                err = "MonitorLoan:: Invalid FileId = " + fileId;
                int Event_id = 7016;
                EventLog.WriteEntry(InfoHubEventLog.LogSource, err, EventLogEntryType.Warning, Event_id, Category);
                return(false);
            }
            if (m_da == null)
            {
                m_da = new DataAccess.DataAccess();
            }

            m_da.CheckLoanStages(fileId, ref err);

            if (activeLoan)
            {
                MonitorRateLock(fileId, ref err);
                return(MonitorTasks(fileId, ref err));
            }
            return(m_da.DeleteLoanAlerts(fileId, ref err));
        }