public List <DistrictInfo> GetAllDistrictInfo()
        {
            try
            {
                List <DistrictInfo> OBJ_LIST_DistrictInfo = new List <DistrictInfo>();
                var _ListDistrictInfo = _IUoW.Repository <DistrictInfo>().Get(x => x.AuthStatusId == "A" && x.LastAction != "DEL").OrderByDescending(x => x.DistrictId);
                foreach (var item in _ListDistrictInfo)
                {
                    DistrictInfo        OBJ_DistrictInfo        = new DistrictInfo();
                    DivisionInfoService OBJ_DivisionInfoService = new DivisionInfoService();

                    OBJ_DistrictInfo.DistrictId      = item.DistrictId;
                    OBJ_DistrictInfo.DistrictNm      = item.DistrictNm;
                    OBJ_DistrictInfo.DistrictShortNm = item.DistrictShortNm;
                    OBJ_DistrictInfo.DivisionId      = item.DivisionId;
                    foreach (var item1 in OBJ_DivisionInfoService.GetDivisionInfoForDD())
                    {
                        if (item1.Value == OBJ_DistrictInfo.DivisionId)
                        {
                            OBJ_DistrictInfo.DivisionNm = item1.Text;
                        }
                    }
                    OBJ_DistrictInfo.AuthStatusId = item.AuthStatusId;
                    OBJ_DistrictInfo.LastAction   = item.LastAction;
                    OBJ_DistrictInfo.LastUpdateDT = item.LastUpdateDT;
                    OBJ_DistrictInfo.MakeBy       = item.MakeBy;
                    OBJ_DistrictInfo.MakeDT       = item.MakeDT;
                    OBJ_DistrictInfo.TransDT      = item.TransDT;
                    OBJ_LIST_DistrictInfo.Add(OBJ_DistrictInfo);
                }
                return(OBJ_LIST_DistrictInfo);
            }
            catch (Exception ex)
            {
                _ObjErrorLogService = new ErrorLogService();
                _ObjErrorLogService.AddErrorLog(ex, string.Empty, "GetAllDistrictInfo()", string.Empty);
                return(null);
            }
        }
Пример #2
0
        public List <CurrencyInfo> GetAllCurrencyInfo()
        {
            try
            {
                List <CurrencyInfo> OBJ_LIST_CurrencyInfo = new List <CurrencyInfo>();
                var _ListCurrencyInfo = _IUoW.Repository <CurrencyInfo>().Get(x => x.AuthStatusId == "A" && x.LastAction != "DEL").OrderByDescending(x => x.CurrencyId);
                foreach (var item in _ListCurrencyInfo)
                {
                    CurrencyInfo        OBJ_CurrencyInfo        = new CurrencyInfo();
                    DivisionInfoService OBJ_DivisionInfoService = new DivisionInfoService();

                    OBJ_CurrencyInfo.CurrencyId              = item.CurrencyId;
                    OBJ_CurrencyInfo.CurrencyNm              = item.CurrencyNm;
                    OBJ_CurrencyInfo.CurrencyShortNm         = item.CurrencyShortNm;
                    OBJ_CurrencyInfo.CurrencyReportNm        = item.CurrencyReportNm;
                    OBJ_CurrencyInfo.CurrencyDecimalNm       = item.CurrencyDecimalNm;
                    OBJ_CurrencyInfo.CBCode                  = item.CBCode;
                    OBJ_CurrencyInfo.InternationalName       = item.InternationalName;
                    OBJ_CurrencyInfo.BaseCurrencyConvertFlag = item.BaseCurrencyConvertFlag;
                    OBJ_CurrencyInfo.LocalVariable           = item.LocalVariable;
                    OBJ_CurrencyInfo.AuthStatusId            = item.AuthStatusId;
                    OBJ_CurrencyInfo.LastAction              = item.LastAction;
                    OBJ_CurrencyInfo.LastUpdateDT            = item.LastUpdateDT;
                    OBJ_CurrencyInfo.MakeBy                  = item.MakeBy;
                    OBJ_CurrencyInfo.MakeDT                  = item.MakeDT;
                    OBJ_CurrencyInfo.TransDT                 = item.TransDT;
                    OBJ_LIST_CurrencyInfo.Add(OBJ_CurrencyInfo);
                }
                return(OBJ_LIST_CurrencyInfo);
            }
            catch (Exception ex)
            {
                _ObjErrorLogService = new ErrorLogService();
                _ObjErrorLogService.AddErrorLog(ex, string.Empty, "GetAllCurrencyInfo()", string.Empty);
                return(null);
            }
        }
Пример #3
0
        public List <BranchInfo> GetAllBranchInfo()
        {
            try
            {
                List <BranchInfo> OBJ_LIST_BranchInfo = new List <BranchInfo>();
                var _ListBranchInfo = _IUoW.Repository <BranchInfo>().Get(x => x.AuthStatusId == "A" && x.LastAction != "DEL").OrderByDescending(x => x.BranchId);
                foreach (var item in _ListBranchInfo)
                {
                    BranchInfo          OBJ_BranchInfo          = new BranchInfo();
                    CurrencyInfoService OBJ_CurrencyInfoService = new CurrencyInfoService();
                    CityInfoService     OBJ_CityInfoService     = new CityInfoService();
                    DistrictInfoService OBJ_DistrictInfoService = new DistrictInfoService();
                    DivisionInfoService OBJ_DivisionInfoService = new DivisionInfoService();
                    CountryInfoService  OBJ_CountryInfoService  = new CountryInfoService();
                    PSInfoService       OBJ_PSInfoService       = new PSInfoService();

                    OBJ_BranchInfo.BranchId      = item.BranchId;
                    OBJ_BranchInfo.BranchNm      = item.BranchNm;
                    OBJ_BranchInfo.BranchShortNm = item.BranchShortNm;
                    OBJ_BranchInfo.CurrencyId    = item.CurrencyId;
                    foreach (var item1 in OBJ_CurrencyInfoService.GetCurrencyInfoForDD())
                    {
                        if (item1.Value == OBJ_BranchInfo.CurrencyId)
                        {
                            OBJ_BranchInfo.CurrencyNm = item1.Text;
                        }
                    }
                    OBJ_BranchInfo.BranchClosedFlag         = item.BranchClosedFlag;
                    OBJ_BranchInfo.BranchGrade              = item.BranchGrade;
                    OBJ_BranchInfo.BranchClosedDate         = item.BranchClosedDate;
                    OBJ_BranchInfo.BranchIdCBClearing       = item.BranchIdCBClearing;
                    OBJ_BranchInfo.BranchIdCBCL             = item.BranchIdCBCL;
                    OBJ_BranchInfo.BranchIdCBSBS            = item.BranchIdCBSBS;
                    OBJ_BranchInfo.BranchIdCBCIB            = item.BranchIdCBCIB;
                    OBJ_BranchInfo.BranchIdCBADFX           = item.BranchIdCBADFX;
                    OBJ_BranchInfo.BranchIdCBCTR            = item.BranchIdCBCTR;
                    OBJ_BranchInfo.ControllingBRCSHFlag     = item.ControllingBRCSHFlag;
                    OBJ_BranchInfo.ControllingBRCLGFlag     = item.ControllingBRCLGFlag;
                    OBJ_BranchInfo.RuralBranchFlag          = item.RuralBranchFlag;
                    OBJ_BranchInfo.UrbanBranchFlag          = item.UrbanBranchFlag;
                    OBJ_BranchInfo.InsuranceVaultCashFlag   = item.InsuranceVaultCashFlag;
                    OBJ_BranchInfo.InsuranceTransitCashFlag = item.InsuranceTransitCashFlag;
                    OBJ_BranchInfo.Address1 = item.Address1;
                    OBJ_BranchInfo.Address2 = item.Address2;
                    OBJ_BranchInfo.CityId   = item.CityId;
                    foreach (var item1 in OBJ_CityInfoService.GetCityInfoForDD())
                    {
                        if (item1.Value == OBJ_BranchInfo.CityId)
                        {
                            OBJ_BranchInfo.CityNm = item1.Text;
                        }
                    }
                    OBJ_BranchInfo.DistrictId = item.DistrictId;
                    foreach (var item1 in OBJ_DistrictInfoService.GetDistrictInfoForDD())
                    {
                        if (item1.Value == OBJ_BranchInfo.DistrictId)
                        {
                            OBJ_BranchInfo.DistrictNm = item1.Text;
                        }
                    }
                    OBJ_BranchInfo.DivisionId = item.DivisionId;
                    foreach (var item1 in OBJ_DivisionInfoService.GetDivisionInfoForDD())
                    {
                        if (item1.Value == OBJ_BranchInfo.DivisionId)
                        {
                            OBJ_BranchInfo.DivisionNm = item1.Text;
                        }
                    }
                    OBJ_BranchInfo.CountryId = item.CountryId;
                    foreach (var item1 in OBJ_CountryInfoService.GetCountryInfoForDD())
                    {
                        if (item1.Value == OBJ_BranchInfo.CountryId)
                        {
                            OBJ_BranchInfo.CountryNm = item1.Text;
                        }
                    }
                    OBJ_BranchInfo.PoliceStationId = item.PoliceStationId;
                    foreach (var item1 in OBJ_PSInfoService.GetPSInfoForDD())
                    {
                        if (item1.Value == OBJ_BranchInfo.PoliceStationId)
                        {
                            OBJ_BranchInfo.PoliceStationNm = item1.Text;
                        }
                    }
                    OBJ_BranchInfo.Phone        = item.Phone;
                    OBJ_BranchInfo.FAX          = item.FAX;
                    OBJ_BranchInfo.TELEX        = item.TELEX;
                    OBJ_BranchInfo.SWIFT        = item.SWIFT;
                    OBJ_BranchInfo.Email        = item.Email;
                    OBJ_BranchInfo.ZipCode      = item.ZipCode;
                    OBJ_BranchInfo.AuthStatusId = item.AuthStatusId;
                    OBJ_BranchInfo.LastAction   = item.LastAction;
                    OBJ_BranchInfo.LastUpdateDT = item.LastUpdateDT;
                    OBJ_BranchInfo.MakeBy       = item.MakeBy;
                    OBJ_BranchInfo.MakeDT       = item.MakeDT;
                    OBJ_BranchInfo.TransDT      = item.TransDT;
                    OBJ_LIST_BranchInfo.Add(OBJ_BranchInfo);
                }
                return(OBJ_LIST_BranchInfo);
            }
            catch (Exception ex)
            {
                _ObjErrorLogService = new ErrorLogService();
                _ObjErrorLogService.AddErrorLog(ex, string.Empty, "GetAllBranchInfo()", string.Empty);
                return(null);
            }
        }