コード例 #1
0
        private void cboClient_SelectedItemChanged(object sender, EventArgs e)
        {
            bool onHold = false;

            Facade.IOrganisation facOrg = new Facade.Organisation();
            onHold = facOrg.GetOrganisationAccountStatusForIdentityId(Convert.ToInt32(cboClient.SelectedValue));             // OnHold

            if (onHold)
            {
                btnAdd.Enabled          = false;
                lblConfirmation.Visible = true;
                lblConfirmation.Text    = cboClient.Text + "'s account has been put on hold, please go to <A HREF=../Organisation/addupdateorganisation.aspx?IdentityId=" + Convert.ToInt32(cboClient.SelectedValue) + ">" + cboClient.Text + "'s details to change.</A>";
            }
            else
            {
                btnAdd.Enabled          = true;
                lblConfirmation.Visible = false;
            }
        }