Example #1
0
        public IList <BCIRMappingViewModel> GetReportsList(int daId)
        {
            try
            {
                Mapping_ForAllManager mappingManager = new Mapping_ForAllManager();
                var reportsData = mappingManager.GetReportsData(daId);

                IList <BCIRMappingViewModel> reportsMappingViewModelList = new List <BCIRMappingViewModel>();
                foreach (var item in reportsData)
                {
                    BCIRMappingViewModel reportMappingViewModelItem = new BCIRMappingViewModel();
                    reportMappingViewModelItem.report_ID         = Convert.ToInt32(item.ReportID);
                    reportMappingViewModelItem.Period_Desc       = item.PeriodTypeDesc;
                    reportMappingViewModelItem.transactionSeq    = Convert.ToInt32(item.TransactionSeq);;
                    reportMappingViewModelItem.Test_Condition_ID = item.HighLevelTxnDesc;
                    reportMappingViewModelItem.reportName        = item.ReportName;

                    reportsMappingViewModelList.Add(reportMappingViewModelItem);
                }
                return(reportsMappingViewModelList);
            }
            catch (Exception)
            {
                throw;
            }
        }
Example #2
0
        public IList <BCIRMappingViewModel> GetChannelAlertsList(int daId)
        {
            try
            {
                Mapping_ForAllManager mappingManager = new Mapping_ForAllManager();
                var channelAlertData = mappingManager.GetChannelAlertData(daId);

                IList <BCIRMappingViewModel> channelAlertMappingViewModelList = new List <BCIRMappingViewModel>();
                foreach (var item in channelAlertData)
                {
                    BCIRMappingViewModel channelAlertMappingViewModelItem = new BCIRMappingViewModel();
                    channelAlertMappingViewModelItem.ChannelAlert_Id   = Convert.ToInt32(item.ChannelAlertID);
                    channelAlertMappingViewModelItem.message_Desc      = item.MessageDesc;
                    channelAlertMappingViewModelItem.isManual          = item.IsManual;
                    channelAlertMappingViewModelItem.modeType_Desc     = item.ModeTypeDesc;
                    channelAlertMappingViewModelItem.freq_Desc         = item.FreqTypeDesc;
                    channelAlertMappingViewModelItem.transactionSeq    = Convert.ToInt32(item.TransactionSeq);
                    channelAlertMappingViewModelItem.Test_Condition_ID = item.HighLevelTxnDesc;
                    channelAlertMappingViewModelItem.attr1             = item.AttributeDesc1;
                    channelAlertMappingViewModelItem.attrValue1        = item.AttributeValue1;
                    channelAlertMappingViewModelItem.attr2             = item.AttributeDesc2;
                    channelAlertMappingViewModelItem.attrValue2        = item.AttributeValue2;
                    channelAlertMappingViewModelItem.attr3             = item.AttributeDesc3;
                    channelAlertMappingViewModelItem.attrValue3        = item.AttributeValue3;
                    channelAlertMappingViewModelItem.attr4             = item.AttributeDesc4;
                    channelAlertMappingViewModelItem.attrValue4        = item.AttributeValue4;
                    channelAlertMappingViewModelItem.attr5             = item.AttributeDesc5;
                    channelAlertMappingViewModelItem.attrValue5        = item.AttributeValue5;
                    channelAlertMappingViewModelItem.attr6             = item.AttributeDesc6;
                    channelAlertMappingViewModelItem.attrValue6        = item.AttributeValue6;
                    channelAlertMappingViewModelItem.attr7             = item.AttributeDesc7;
                    channelAlertMappingViewModelItem.attrValue7        = item.AttributeValue7;
                    channelAlertMappingViewModelItem.attr8             = item.AttributeDesc8;
                    channelAlertMappingViewModelItem.attrValue8        = item.AttributeValue8;
                    channelAlertMappingViewModelItem.attr9             = item.AttributeDesc9;
                    channelAlertMappingViewModelItem.attrValue9        = item.AttributeValue9;
                    channelAlertMappingViewModelItem.attr10            = item.AttributeDesc10;
                    channelAlertMappingViewModelItem.attrValue10       = item.AttributeValue10;

                    channelAlertMappingViewModelList.Add(channelAlertMappingViewModelItem);
                }
                return(channelAlertMappingViewModelList);
            }
            catch (Exception)
            {
                throw;
            }
        }
Example #3
0
        public IList <BCIRMappingViewModel> GetInterfaceList(int daId)
        {
            try
            {
                Mapping_ForAllManager mappingManager = new Mapping_ForAllManager();
                var interfaceData = mappingManager.GetInterfaceMappingData(daId);

                IList <BCIRMappingViewModel> interfaceMappingViewModelList = new List <BCIRMappingViewModel>();
                foreach (var item in interfaceData)
                {
                    BCIRMappingViewModel interfaceMappingViewModelItem = new BCIRMappingViewModel();
                    interfaceMappingViewModelItem.Interface_Id      = Convert.ToInt32(item.InterfaceID);
                    interfaceMappingViewModelItem.Rule_Description  = item.InterfaceDesc;
                    interfaceMappingViewModelItem.Source_Desc       = item.SourceDesc;
                    interfaceMappingViewModelItem.Dest_Desc         = item.DestDesc;
                    interfaceMappingViewModelItem.Mode_Desc         = item.ModeTypeDesc;
                    interfaceMappingViewModelItem.transactionSeq    = Convert.ToInt32(item.TransactionSeq);
                    interfaceMappingViewModelItem.Test_Condition_ID = item.HighLevelTxnDesc;
                    interfaceMappingViewModelItem.attr1             = item.AttributeDesc1;
                    interfaceMappingViewModelItem.attrValue1        = item.AttributeValue1;
                    interfaceMappingViewModelItem.attr2             = item.AttributeDesc2;
                    interfaceMappingViewModelItem.attrValue2        = item.AttributeValue2;
                    interfaceMappingViewModelItem.attr3             = item.AttributeDesc3;
                    interfaceMappingViewModelItem.attrValue3        = item.AttributeValue3;
                    interfaceMappingViewModelItem.attr4             = item.AttributeDesc4;
                    interfaceMappingViewModelItem.attrValue4        = item.AttributeValue4;
                    interfaceMappingViewModelItem.attr5             = item.AttributeDesc5;
                    interfaceMappingViewModelItem.attrValue5        = item.AttributeValue5;
                    interfaceMappingViewModelItem.attr6             = item.AttributeDesc6;
                    interfaceMappingViewModelItem.attrValue6        = item.AttributeValue6;
                    interfaceMappingViewModelItem.attr7             = item.AttributeDesc7;
                    interfaceMappingViewModelItem.attrValue7        = item.AttributeValue7;
                    interfaceMappingViewModelItem.attr8             = item.AttributeDesc8;
                    interfaceMappingViewModelItem.attrValue8        = item.AttributeValue8;
                    interfaceMappingViewModelItem.attr9             = item.AttributeDesc9;
                    interfaceMappingViewModelItem.attrValue9        = item.AttributeValue9;
                    interfaceMappingViewModelItem.attr10            = item.AttributeDesc10;
                    interfaceMappingViewModelItem.attrValue10       = item.AttributeValue10;

                    interfaceMappingViewModelList.Add(interfaceMappingViewModelItem);
                }
                return(interfaceMappingViewModelList);
            }
            catch (Exception)
            {
                throw;
            }
        }
Example #4
0
        public IList <BCIRMappingViewModel> GetBuzRulesList(int daId)
        {
            try
            {
                Mapping_ForAllManager mappingManager = new Mapping_ForAllManager();
                var buzRulesData = mappingManager.GetBuzRulesMappingData(daId);

                IList <BCIRMappingViewModel> buzRulesMappingViewModelList = new List <BCIRMappingViewModel>();
                foreach (var item in buzRulesData)
                {
                    BCIRMappingViewModel buzRulesMappingViewModelItem = new BCIRMappingViewModel();
                    buzRulesMappingViewModelItem.BuzRuleID         = Convert.ToInt32(item.BuzRuleID);
                    buzRulesMappingViewModelItem.Rule_Description  = item.BuzRuleDesc;
                    buzRulesMappingViewModelItem.transactionSeq    = Convert.ToInt32(item.TransactionSeq);
                    buzRulesMappingViewModelItem.Test_Condition_ID = item.HighLevelTxnDesc;
                    buzRulesMappingViewModelItem.attr1             = item.AttributeDesc1;
                    buzRulesMappingViewModelItem.attrValue1        = item.AttributeValue1;
                    buzRulesMappingViewModelItem.attr2             = item.AttributeDesc2;
                    buzRulesMappingViewModelItem.attrValue2        = item.AttributeValue2;
                    buzRulesMappingViewModelItem.attr3             = item.AttributeDesc3;
                    buzRulesMappingViewModelItem.attrValue3        = item.AttributeValue3;
                    buzRulesMappingViewModelItem.attr4             = item.AttributeDesc4;
                    buzRulesMappingViewModelItem.attrValue4        = item.AttributeValue4;
                    buzRulesMappingViewModelItem.attr5             = item.AttributeDesc5;
                    buzRulesMappingViewModelItem.attrValue5        = item.AttributeValue5;
                    buzRulesMappingViewModelItem.attr6             = item.AttributeDesc6;
                    buzRulesMappingViewModelItem.attrValue6        = item.AttributeValue6;
                    buzRulesMappingViewModelItem.attr7             = item.AttributeDesc7;
                    buzRulesMappingViewModelItem.attrValue7        = item.AttributeValue7;
                    buzRulesMappingViewModelItem.attr8             = item.AttributeDesc8;
                    buzRulesMappingViewModelItem.attrValue8        = item.AttributeValue8;
                    buzRulesMappingViewModelItem.attr9             = item.AttributeDesc9;
                    buzRulesMappingViewModelItem.attrValue9        = item.AttributeValue9;
                    buzRulesMappingViewModelItem.attr10            = item.AttributeDesc10;
                    buzRulesMappingViewModelItem.attrValue10       = item.AttributeValue10;

                    buzRulesMappingViewModelList.Add(buzRulesMappingViewModelItem);
                }
                return(buzRulesMappingViewModelList);
            }
            catch (Exception)
            {
                throw;
            }
        }