Example #1
0
        public ProfileMotherDetails RetrieveMother(FetchMotherRequest fmData)
        {
            string stProc = FetchParticularMotherProfile;
            var    pList  = new List <SqlParameter>()
            {
                new SqlParameter("@HospitalId", fmData.hospitalId),
                new SqlParameter("@MothersRchSubHospID", fmData.motherInput ?? fmData.motherInput),
            };
            var motherDetail = UtilityDL.FillData <MotherProfile>(stProc, pList);
            var babyDetail   = UtilityDL.FillData <MotherBabiesDetail>(stProc, pList);
            var mother       = new ProfileMotherDetails();

            mother.motherDetail = motherDetail;
            mother.babyDetail   = babyDetail;
            return(mother);
        }
Example #2
0
        public ProfileMotherDetails RetrieveAllMother(FetchAllMotherRequest fmData)
        {
            string stProc = FetchAllMotherProfiles;
            var    pList  = new List <SqlParameter>()
            {
                new SqlParameter("@HospitalId", fmData.hospitalId),
                new SqlParameter("@FromDate", fmData.fromDate.ToCheckNull()),
                new SqlParameter("@toDate", fmData.toDate.ToCheckNull()),
            };
            var motherDetail = UtilityDL.FillData <MotherProfile>(stProc, pList);
            var babyDetail   = UtilityDL.FillData <MotherBabiesDetail>(stProc, pList);
            var mother       = new ProfileMotherDetails();

            mother.motherDetail = motherDetail;
            mother.babyDetail   = babyDetail;
            return(mother);
        }