Beispiel #1
0
        protected void ddlInstitutions_SelectedIndexChanged(object sender, EventArgs e)
        {
            clearForm(this.Controls);
            string code = ddlInstitutions.SelectedValue;

            if (code.Length > 0)
            {
                BHLProvider bp   = new BHLProvider();
                Institution inst = bp.InstitutionSelectAuto(code);
                if (inst != null)
                {
                    codeTextBox.Text           = inst.InstitutionCode;
                    hidCode.Value              = inst.InstitutionCode;
                    nameTextBox.Text           = inst.InstitutionName;
                    urlTextBox.Text            = TypeHelper.EmptyIfNull(inst.InstitutionUrl);
                    noteTextBox.Text           = TypeHelper.EmptyIfNull(inst.Note);
                    chkIsMemberLibrary.Checked = inst.BHLMemberLibrary;

                    ddlInstitutions.SelectedValue = inst.InstitutionCode;
                }
            }
        }
Beispiel #2
0
        public Institution InstitutionSelectAuto(String institutionCode)
        {
            BHLProvider bhlServer = new BHLProvider();

            return(bhlServer.InstitutionSelectAuto(institutionCode));
        }