public void GetDFNPData(int _dataCaptYM) { FormsRepository formsRepository = new FormsRepository(); var DataCaptYM = SessionManager.DataCaptYR > 0 ? SessionManager.DataCaptYR : (_dataCaptYM > 0 ? _dataCaptYM : 0); string deptID = string.IsNullOrEmpty(SessionManager.EmpDeptID) ? SessionManager.DeptID : SessionManager.EmpDeptID; finInfo = formsRepository.GetDFNPDataByID(DataCaptYM, deptID); if (finInfo == null) { finInfo = new FinInfo(); } if (finInfo.DataStatus == 0) { finInfo.DataCaptYM = DataCaptYM; finInfo.DataStatus = (int)DataAccess.Enum.DataStatus.DataEntryStartedbyOperator; finInfo.DataStatusName = (DataAccess.Enum.DataStatus.DataEntryStartedbyOperator).GetStringValue(); } }