예제 #1
0
        public static void PopulateExaminationTemplate(RadDropDownList ddl)
        {
            try
            {
                List<ExaminationTemplate> examination = new TemplateData().GetExaminationTemplate();
                examination.Insert(0, new ExaminationTemplate() { ExaminationTemplateId = 0, ExaminationTemplateName = "Select to add template" });

                ddl.DataSource = examination;
                ddl.ValueMember = "ExaminationTemplateId";
                ddl.DisplayMember = "ExaminationTemplateName";
            }
            catch (Exception x)
            {
                FileLogger.LogError(x);
            }
        }
예제 #2
0
        public static void PopulateComplaintTemplate(RadDropDownList ddl)
        {
            try
            {
                List<ComplaintTemplate> complaints = new TemplateData().GetComplaintTemplate();
                complaints.Insert(0, new ComplaintTemplate() { ComplaintTemplateId = 0, ComplaintTemplateName = "Select to add template" });

                ddl.DataSource = complaints;
                ddl.ValueMember = "ComplaintTemplateId";
                ddl.DisplayMember = "ComplaintTemplateName";
            }
            catch (Exception x)
            {
                FileLogger.LogError(x);
            }
        }