コード例 #1
0
        public static void PopulateRoles(RadDropDownList ddl)
        {
            try
            {
                List<Role> roles = new MasterData().GetRoles();
                roles.Insert(0, new Role() { RoleId = 0, RoleName = "Select" });

                ddl.DataSource = roles;
                ddl.ValueMember = "RoleId";
                ddl.DisplayMember = "RoleName";
            }
            catch (Exception x)
            {
                FileLogger.LogError(x);
            }
        }
コード例 #2
0
        public static void PopulateOperations(RadDropDownList ddl)
        {
            try
            {
                List<Operation> operations = new MasterData().GetOperations();
                operations.Insert(0, new Operation() { OperationId = 0, OperationName = "Select Operation" });

                ddl.DataSource = operations;
                ddl.ValueMember = "OperationId";
                ddl.DisplayMember = "OperationName";
            }
            catch (Exception x)
            {
                FileLogger.LogError(x);
            }
        }
コード例 #3
0
        public static void PopulateHospital(RadDropDownList ddl)
        {
            try
            {
                List<Hospital> hospitals = new MasterData().GetHospitals();
                hospitals.Insert(0, new Hospital() { HospitalId = 0, HospitalName = "Select Hospital" });

                ddl.DataSource = hospitals;
                ddl.ValueMember = "HospitalId";
                ddl.DisplayMember = "HospitalName";
            }
            catch (Exception x)
            {
                FileLogger.LogError(x);
            }
        }
コード例 #4
0
        public static void PopulateDosage(RadDropDownList ddl)
        {
            try
            {
                List<DosageFrequency> dosage = new MasterData().GetDosageFrequencies();
                dosage.Insert(0, new DosageFrequency() { DosageFrequencyId = 0, DosageFrequencyName = "Select" });

                ddl.DataSource = dosage;
                ddl.ValueMember = "DosageFrequencyId";
                ddl.DisplayMember = "DosageFrequencyName";
            }
            catch (Exception x)
            {
                FileLogger.LogError(x);
            }
        }
コード例 #5
0
        public static void PopulateImaging(RadDropDownList ddl)
        {
            try
            {
                List<Imaging> imaging = new MasterData().GetImagings();
                imaging.Insert(0, new Imaging() { ImagingId = 0, ImagingName = "Select" });

                ddl.DataSource = imaging;
                ddl.ValueMember = "ImagingId";
                ddl.DisplayMember = "ImagingName";
            }
            catch (Exception x)
            {
                FileLogger.LogError(x);
            }
        }
コード例 #6
0
        public static void PopulateLabInvestigation(RadDropDownList ddl)
        {
            try
            {
                List<LabInvestigation> lab = new MasterData().GetLabInvestigations();
                lab.Insert(0, new LabInvestigation() { LabInvestigationId = 0, LabInvestigationName = "Select" });

                ddl.DataSource = lab;
                ddl.ValueMember = "LabInvestigationId";
                ddl.DisplayMember = "LabInvestigationName";
            }
            catch (Exception x)
            {
                FileLogger.LogError(x);
            }
        }