public void GetSRICFAData(int _dataCaptYM) { FormsRepository formsRepository = new FormsRepository(); DataCaptYM = SessionManager.DataCaptYR > 0 ? SessionManager.DataCaptYR : (_dataCaptYM > 0 ? _dataCaptYM : 0); SricFAData = formsRepository.GetSricFAFormDataByID(DataCaptYM, SessionManager.DeptID); if (SricFAData == null || SricFAData.Count == 0) { SricFAData = new List <SricFA>(); SricFAData.Add(new SricFA()); DataStatus = (int)DataAccess.Enum.DataStatus.DataEntryStartedbyOperator; DataStatusName = (DataAccess.Enum.DataStatus.DataEntryStartedbyOperator).GetStringValue(); } else { DataStatus = SricFAData.First().DataStatus; DataStatusName = SricFAData.First().DataStatusName; } }