예제 #1
0
        //public static UserListResult GetUserList()
        //{
        //    UserListResult result = new UserListResult();
        //    result = DefaultListDSForPJ.GetUserList();

        //    return result;
        //}

        //public static string AddNewUser(string FirstName, string MiddleName, string LastName, string EmailId, string UPI,
        //    string ADLogon, string userTypeID, string RoleID, string countryID)
        //{
        //    List<String> lstCountryId = new List<String>();
        //    lstCountryId = countryID.Split(',').ToList();

        //    var listresponse = DefaultListDSForPJ.AddNewUser(FirstName, MiddleName, LastName, EmailId, UPI, ADLogon, userTypeID, RoleID, lstCountryId);

        //    return listresponse;
        //}

        public static List <StageList> GetStageData(string JourneyId, int StatusId)
        {
            List <StageList> listStage = new List <StageList>();
            var listresponse           = DefaultListDSForPJ.GetStageData(Convert.ToInt32(JourneyId), StatusId);

            for (int i = 0; i < listresponse.Count; i++)
            {
                if (!listresponse[i].Stage_Name.ToLower().Equals("other"))
                {
                    StageList stage = new StageList();
                    stage.StageMasterId = listresponse[i].Stage_Master_Id;
                    stage.StageName     = listresponse[i].Stage_Name;
                    listStage.Add(stage);
                }
            }

            var       last   = listresponse.Where(x => x.Stage_Name.ToLower().Equals("other")).FirstOrDefault();
            StageList stage1 = new StageList();

            stage1.StageMasterId = last.Stage_Master_Id;
            stage1.StageName     = last.Stage_Name;
            listStage.Add(stage1);

            return(listStage);
        }
예제 #2
0
        public static List <AreaList> GetAreaListBSForPJ(int ArchetypeId)
        {
            List <AreaList> listresponse = new List <AreaList>();

            listresponse = DefaultListDSForPJ.GetAreaListDSForPJ(ArchetypeId);

            return(listresponse);
        }
예제 #3
0
        public static GetSubTherapeuticAreaListPJ GetSubTherapeuticListBSForPJ(int TherapeuticId)
        {
            GetSubTherapeuticAreaListPJ listresponse = new GetSubTherapeuticAreaListPJ();

            listresponse = DefaultListDSForPJ.GetSubTherapeuticListDSForPJ(TherapeuticId);

            return(listresponse);
        }
예제 #4
0
        public static GetBrandAndAreaListPJ GetBrandAndAreaListBSForPJ()
        {
            GetBrandAndAreaListPJ listresponse = new GetBrandAndAreaListPJ();

            listresponse = DefaultListDSForPJ.GetBrandAndAreaListDSForPJ();

            return(listresponse);
        }
예제 #5
0
        public static GetIndicationListPJ GetIndicationListBSForPJ(int SubTherapeuticId, int TherapeuticId)
        {
            GetIndicationListPJ listresponse = new GetIndicationListPJ();

            listresponse = DefaultListDSForPJ.GetIndicationListDSForPJ(SubTherapeuticId, TherapeuticId);

            return(listresponse);
        }
예제 #6
0
        public static List <CountryColourVJ> GetCountryNames(String CountryId)
        {
            List <String> lstCountryId = new List <String>();

            lstCountryId = CountryId.Split(',').ToList();
            var result = DefaultListDSForPJ.GetCountryNames(lstCountryId);

            return(result);
        }
예제 #7
0
        public static GetArchitypeListPJ GetAreaandCountryDataPJ(String ArchitypeId)
        {
            List <String> lstArchitypeId = new List <String>();

            lstArchitypeId = ArchitypeId.Split(',').ToList();
            var result = DefaultListDSForPJ.GetAreaandCountryDataPJ(lstArchitypeId);

            return(result);
        }
예제 #8
0
        public static PatientAdminMasterData GetTherapeuticandArchetypeData(string CountryIds)
        {
            int[] countryid = CountryIds.Split(',').Select(int.Parse).ToArray();
            PatientAdminMasterData listresponse = new PatientAdminMasterData();

            listresponse = DefaultListDSForPJ.GetTherapeuticandArchetypeData(countryid);

            return(listresponse);
        }
예제 #9
0
        public static List <AreaList2> GetCountryListBSForPJ(String AreaId)
        {
            List <String> lstAreaId = new List <String>();

            lstAreaId = AreaId.Split(',').ToList();
            var result = DefaultListDSForPJ.GetCountryListDSForPJ(lstAreaId);

            return(result);
        }
예제 #10
0
        public static GetAreaFromArchitypeListPJ GetAreaFromCountryListBSForPJ(String CountryId)
        {
            List <String> lstCountryId = new List <String>();

            lstCountryId = CountryId.Split(',').ToList();
            var result = DefaultListDSForPJ.GetAreaFromCountryListDSForPJ(lstCountryId);

            return(result);
        }
예제 #11
0
        public static List <CountryList> GetCountryData(String AreaId, String CountryIds)
        {
            int[] countryid = CountryIds.Split(',').Select(int.Parse).ToArray();
            List <CountryList> listresponse = new List <CountryList>();

            listresponse = DefaultListDSForPJ.GetCountryData(Convert.ToInt32(AreaId), countryid);

            return(listresponse);
        }
예제 #12
0
        public static List <SelectedProduct> GetProductNames(String ProductID)
        {
            List <String> lstproductId = new List <String>();

            lstproductId = ProductID.Split(',').ToList();
            var result = DefaultListDSForPJ.GetProductNames(lstproductId);

            return(result);
        }
예제 #13
0
        public static string GetArchetypeName(string ArchetypeId)
        {
            List <String> lstArchetypeId = new List <String>();

            lstArchetypeId = ArchetypeId.Split(',').ToList();

            var    listresponse = DefaultListDSForPJ.GetArchetypeName(lstArchetypeId);
            string result       = string.Join(",", listresponse.Select(r => r.ArchetypeName));

            return(result);
        }
예제 #14
0
        public static string GetCountryName(string CountryId)
        {
            List <String> lstCountryId = new List <String>();

            lstCountryId = CountryId.Split(',').ToList();

            var listresponse = DefaultListDSForPJ.GetCountryNames(lstCountryId);

            string result = string.Join(",", listresponse.Select(r => r.CountryNames));

            return(result);
        }
예제 #15
0
        public static string GetBrandName(string BrandId)
        {
            List <String> lstBrandId = new List <String>();

            lstBrandId = BrandId.Split(',').ToList();

            var listresponse = DefaultListDSForPJ.GetProductNames(lstBrandId);

            string result = string.Join(",", listresponse.Select(r => r.ProductName));

            return(result);
        }
예제 #16
0
        public static List <YearMasterData> GetYearMasterData()
        {
            List <YearMasterData> lstYear = new List <YearMasterData>();
            YearMasterData        year    = null;
            var result = DefaultListDSForPJ.GetYearMasterData();

            for (int i = 0; i < result.Count; i++)
            {
                year          = new YearMasterData();
                year.YearId   = result[i].Year_Master_Id;
                year.YearName = result[i].Year_Name;
                lstYear.Add(year);
            }
            return(lstYear);
        }
예제 #17
0
        public static List <SubClinicalMasterData> GetSubClinicalMasterData()
        {
            List <SubClinicalMasterData> lstSubClinical = new List <SubClinicalMasterData>();
            SubClinicalMasterData        subclinical    = null;
            var result = DefaultListDSForPJ.GetSubClinicalMasterData();

            for (int i = 0; i < result.Count; i++)
            {
                subclinical = new SubClinicalMasterData();
                subclinical.SubClinicalMasterId = result[i].SubClinical_Intervention_Master_Id;
                subclinical.SubClinicalName     = result[i].Title;
                lstSubClinical.Add(subclinical);
            }
            return(lstSubClinical);
        }
예제 #18
0
        public static List <ClinicalMasterData> GetClinicalMasterData()
        {
            List <ClinicalMasterData> lstClinical = new List <ClinicalMasterData>();
            ClinicalMasterData        clinical    = null;
            var result = DefaultListDSForPJ.GetClinicalMasterData();

            for (int i = 0; i < result.Count; i++)
            {
                clinical = new ClinicalMasterData();
                clinical.ClinicalMasterId = result[i].Clinical_Intervention_Master_Id;
                clinical.ClinicalName     = result[i].Title;
                lstClinical.Add(clinical);
            }
            return(lstClinical);
        }
예제 #19
0
        public static List <TransactionMasterData> GetTransactionMasterData(string StageId, string TransactionId, string IndicationId, int StatusId)
        {
            List <TransactionMasterData> listTransaction = new List <TransactionMasterData>();
            TransactionMasterData        transaction     = null;
            List <Transaction_Master>    listresponse    = new List <Transaction_Master>();

            listresponse = DefaultListDSForPJ.GetTransactionMasterData(Convert.ToInt32(StageId), Convert.ToInt32(TransactionId), Convert.ToInt32(IndicationId), StatusId);
            for (int i = 0; i < listresponse.Count; i++)
            {
                transaction = new TransactionMasterData();
                transaction.TransactionMasterId = listresponse[i].Transaction_Master_Id;
                transaction.TransactionName     = listresponse[i].Transaction_Name;
                listTransaction.Add(transaction);
            }
            return(listTransaction);
        }
예제 #20
0
        public static List <LocationMasterData> GetLocationMasterData()
        {
            List <LocationMasterData>          listLocation = new List <LocationMasterData>();
            LocationMasterData                 location     = null;
            List <Transaction_Location_Master> listresponse = new List <Transaction_Location_Master>();

            listresponse = DefaultListDSForPJ.GetLocationMasterData();
            for (int i = 0; i < listresponse.Count; i++)
            {
                location = new LocationMasterData();
                location.LocationMasterId = listresponse[i].Transaction_Location_Master_Id;
                location.LocationName     = listresponse[i].Location_Name;
                listLocation.Add(location);
            }
            return(listLocation);
        }
예제 #21
0
        public static List <CountryList> GetAllCountries(string CountryIds)
        {
            int[] countryid = CountryIds.Split(',').Select(int.Parse).ToArray();
            List <CountryList> lstCountry = new List <CountryList>();
            CountryList        country    = null;
            var result = DefaultListDSForPJ.GetAllCountries(countryid);

            for (int i = 0; i < result.Count; i++)
            {
                country             = new CountryList();
                country.CountryId   = result[i].Country_Master_Id;
                country.CountryName = result[i].Country_Name;
                lstCountry.Add(country);
            }
            return(lstCountry);
        }
예제 #22
0
        public static string SaveSearchCriteria(string TherapeuticId, string SubTherapeuticId, string IndicationId, string ArchetypeId, string AreaId, string CountryId, string ProductId, string Year, string UserName)
        {
            List <String> lstCountryId = new List <String>();

            lstCountryId = CountryId.Split(',').ToList();

            List <String> lstProductId = new List <String>();

            lstProductId = ProductId.Split(',').ToList();

            List <String> lstAreaId = new List <String>();

            lstAreaId = AreaId.Split(',').ToList();

            List <String> lstArchetypeId = new List <String>();

            lstArchetypeId = ArchetypeId.Split(',').ToList();

            var listresponse = DefaultListDSForPJ.SaveSearchCriteria(TherapeuticId, SubTherapeuticId, IndicationId, lstArchetypeId, lstCountryId, lstProductId, lstAreaId, Year, UserName);

            return(listresponse);
        }
예제 #23
0
        public static List <IndicationList2> GetProductListBSForPJ(int IndicationId, int SubTherapeuticId, int TherapeuticId)
        {
            var listresponse = DefaultListDSForPJ.GetProductListDSForPJ(IndicationId, SubTherapeuticId, TherapeuticId);

            return(listresponse);
        }
예제 #24
0
        public static string GetIndicationName(int IndicationId)
        {
            var listresponse = DefaultListDSForPJ.GetIndicationName(IndicationId);

            return(listresponse);
        }
예제 #25
0
        public static SEARCH_CRITERIA GetSearchCriteria(String UserName)
        {
            var result = DefaultListDSForPJ.GetSearchCriteria(UserName);

            return(result);
        }
예제 #26
0
        public static string GetSubTherapeuticName(int SubTherapeuticId)
        {
            var listresponse = DefaultListDSForPJ.GetSubTherapeuticName(SubTherapeuticId);

            return(listresponse);
        }