Ejemplo n.º 1
0
    /// <summary>
    /// Get all Global attributes for Franchisee
    /// </summary>
    private void GetglobalAttributes()
    {
        var franchisorDal     = new FranchisorDAL();
        var eGlobalAttributes = franchisorDal.GetFranchisorGlobalAttributes();

        //txtAppointmentSlot.Text = EGlobalAttributes.AppointmentSlot.ToString();
        ddlEventScheduleTemp.SelectedValue = eGlobalAttributes.ScheduleTemplateID.ToString();
        txtOtherPicture.Text = eGlobalAttributes.NumberOfPictures.ToString();
        txtPasswordDay.Text  = eGlobalAttributes.DaysToChangePassword.ToString();
        txtGCutoffDate.Text  = eGlobalAttributes.GlobalCutOffDate;

        txtSystemVersion.Text = eGlobalAttributes.SystemVersion;
        txtEventdistance.Text = eGlobalAttributes.Eventdistance.ToString();

        txtAdministratorEmailAddress.Text = eGlobalAttributes.AdministratorEmailAddress;

        txtCouponPrefix.Text = eGlobalAttributes.CouponPrefix;
        txtDisplayQABar.Text = eGlobalAttributes.DisplayQABar;
        txtMaxCommissionDollarAdvocate.Text = eGlobalAttributes.MaxDollarCommission.ToString();

        txtMaxCommissionDollarSalesRep.Text  = eGlobalAttributes.MaxDollarCommissionSalesRep.ToString();
        txtMaxCommissionPercentAdvocate.Text = eGlobalAttributes.MaxPercentCommission.ToString();
        txtMaxCommissionPercentSalesRep.Text = eGlobalAttributes.MaxPercentCommissionSalesRep.ToString();
        CancellationFeeTextbox.Text          = eGlobalAttributes.CancellationFee.ToString();
        txtHealthYesCompetitor.Text          = eGlobalAttributes.HealthYesCompetitor;

        ddlHHStartTime.SelectedValue   = eGlobalAttributes.EventStartTime.Substring(0, 2);
        ddlMMStartTime.SelectedValue   = eGlobalAttributes.EventStartTime.Substring(3, 2);
        ddlAMPMStartTime.SelectedValue = eGlobalAttributes.EventStartTime.Substring(6, 2);

        ddlHHEndTime.SelectedValue   = eGlobalAttributes.EventEndTime.Substring(0, 2);
        ddlMMEndTime.SelectedValue   = eGlobalAttributes.EventEndTime.Substring(3, 2);
        ddlAMPMEndTime.SelectedValue = eGlobalAttributes.EventEndTime.Substring(6, 2);

        txtMinumPurchaseAmount.Text = eGlobalAttributes.MinimumPurchaseAmount.ToString("0.00");

        if (Convert.ToBoolean(eGlobalAttributes.IncomingPhoneLineRequired))
        {
            IncomingPhoneLineRequiredYes.Checked = true;
        }
        else
        {
            IncomingPhoneLineRequiredNo.Checked = true;
        }

        if (Convert.ToBoolean(eGlobalAttributes.EnableAlaCarte))
        {
            EnableAlacarteYes.Checked = true;
        }
        else
        {
            EnableAlaCarteNo.Checked = true;
        }

        txtAreaCode.Text = eGlobalAttributes.AreaCode;

        if (Convert.ToBoolean(eGlobalAttributes.EnableBarCode))
        {
            EnableBarCodeYes.Checked = true;
        }
        else
        {
            EnableBarCodeNo.Checked = true;
        }

        if (Convert.ToBoolean(eGlobalAttributes.UpsellPackage))
        {
            UpsellPackageYes.Checked = true;
        }
        else
        {
            UpsellPackageNo.Checked = true;
        }

        if (Convert.ToBoolean(eGlobalAttributes.UpsellCd))
        {
            UpsellCdYes.Checked = true;
        }
        else
        {
            UpsellCdNo.Checked = true;
        }

        if (Convert.ToBoolean(eGlobalAttributes.UpsellAlaCarte))
        {
            UpsellAlaCarteYes.Checked = true;
        }
        else
        {
            UpsellAlaCarteNo.Checked = true;
        }

        if (Convert.ToBoolean(eGlobalAttributes.DisplayPremiumVersiononPortal))
        {
            DisplayPremVersionYes.Checked = true;
        }
        else
        {
            DisplayPremVersionNo.Checked = true;
        }

        if (Convert.ToBoolean(eGlobalAttributes.EnableResultDeliveryNotification))
        {
            EnableDelNotificationYes.Checked = true;
        }
        else
        {
            EnableDelNotificationNo.Checked = true;
        }

        if (Convert.ToBoolean(eGlobalAttributes.EnableNewsletterPrompt))
        {
            EnableNewsletterYes.Checked = true;
        }
        else
        {
            EnableNewsletterNo.Checked = true;
        }

        SourceCodeLabelText.Text = eGlobalAttributes.SourceCodeLabel;

        MaxNoOfEventToShowOnlineTextbox.Text            = eGlobalAttributes.MaxNoOfEventToShowOnline.ToString();
        MaxNoOfAppointmentSlotsToShowOnlineTextbox.Text = eGlobalAttributes.MaxNoOfAppointmentSlotsToShowOnline.ToString();
        EventListPageSizeOnlineTextbox.Text             = eGlobalAttributes.EventListPageSizeOnline.ToString();
        CutoffHoursforOnlineEventSelTextBox.Text        = eGlobalAttributes.CutOffHourNumberforOnlineEventSelection.ToString();

        PaperSizeDropDownList.SelectedValue = eGlobalAttributes.PaperSize;

        if (Convert.ToBoolean(eGlobalAttributes.DisplayRescheduleAppointmentPortal))
        {
            DisplayRescheduleAppointmentYes.Checked = true;
        }
        else
        {
            DisplayRescheduleAppointmentNo.Checked = true;
        }

        if (Convert.ToBoolean(eGlobalAttributes.ShowBasicBiometric))
        {
            ShowBasicBiometricYes.Checked = true;
        }
        else
        {
            ShowBasicBiometricNo.Checked = true;
        }

        if (Convert.ToBoolean(eGlobalAttributes.EnableQuickOnsiteRegistration))
        {
            EnableQuickOnsiteRegistrationYes.Checked = true;
        }
        else
        {
            EnableQuickOnsiteRegistrationNo.Checked = true;
        }

        if (Convert.ToBoolean(eGlobalAttributes.PayLaterOnlineRegistration))
        {
            PayLaterOnlineRegistrationYes.Checked = true;
        }
        else
        {
            PayLaterOnlineRegistrationNo.Checked = true;
        }

        if (Convert.ToBoolean(eGlobalAttributes.RestrictAvailableTimeSlotForCorporate))
        {
            RestrictAvailableTimeSlotForCorporateYes.Checked = true;
        }
        else
        {
            RestrictAvailableTimeSlotForCorporateNo.Checked = true;
        }

        if (Convert.ToBoolean(eGlobalAttributes.ScreeningReminderNotification))
        {
            ScreeningReminderNotificationYes.Checked = true;
        }
        else
        {
            ScreeningReminderNotificationNo.Checked = true;
        }


        if (Convert.ToBoolean(eGlobalAttributes.IsHipaaEnabled))
        {
            HipaaEnabledYes.Checked = true;
        }
        else
        {
            HipaaEnabledNo.Checked = true;
        }

        if (Convert.ToBoolean(eGlobalAttributes.EnableDynamicSlot))
        {
            EnableDynamicSlotYes.Checked = true;
        }
        else
        {
            EnableDynamicSlotNo.Checked = true;
        }

        if (Convert.ToBoolean(eGlobalAttributes.SendEmptyQueueEvaluationReminder))
        {
            SendEmptyQueueEvaluationReminderYes.Checked = true;
        }
        else
        {
            SendEmptyQueueEvaluationReminderNo.Checked = true;
        }

        ddlHHLunchStartTime.SelectedValue   = eGlobalAttributes.LunchStartTime.Substring(0, 2);
        ddlMMLunchStartTime.SelectedValue   = eGlobalAttributes.LunchStartTime.Substring(3, 2);
        ddlAMPMLunchStartTime.SelectedValue = eGlobalAttributes.LunchStartTime.Substring(6, 2);

        EventBookingTresholdTextbox.Text = eGlobalAttributes.EventBookingThreshold.ToString();

        if (Convert.ToBoolean(eGlobalAttributes.PackageSelectionInfo))
        {
            PackageSelectionInfoYes.Checked = true;
        }
        else
        {
            PackageSelectionInfoNo.Checked = true;
        }

        //Load Hidden variable
        hidGCutoffDate.Value               = txtGCutoffDate.Text;
        hidSystemVersion.Value             = txtSystemVersion.Text;
        hidEventdistance.Value             = txtEventdistance.Text;
        hidAdministratorEmailAddress.Value = txtAdministratorEmailAddress.Text;

        hidCouponPrefix.Value        = txtCouponPrefix.Text;
        hidEventScheduleTemp.Value   = ddlEventScheduleTemp.SelectedValue;
        hidDisplayQABar.Value        = txtDisplayQABar.Text;
        hidMaxCommissionDollar.Value = txtMaxCommissionDollarAdvocate.Text;

        hidSalesRepMaxCommissionDollar.Value  = txtMaxCommissionDollarSalesRep.Text;
        hidMaxCommissionPercent.Value         = txtMaxCommissionPercentAdvocate.Text;
        hidSalesRepMaxCommissionPercent.Value = txtMaxCommissionPercentSalesRep.Text;
        hfHealthYesCompetitor.Value           = txtHealthYesCompetitor.Text;
        CancellationFeeHiddenbox.Value        = CancellationFeeTextbox.Text;

        if (Convert.ToBoolean(eGlobalAttributes.EnableSmsNotification))
        {
            SmsEnabledYes.Checked = true;
        }
        else
        {
            SmsEnabledNo.Checked = true;
        }

        if (Convert.ToBoolean(eGlobalAttributes.EnableVoiceMailNotification))
        {
            VoiceMailEnabledYes.Checked = true;
        }
        else
        {
            VoiceMailEnabledNo.Checked = true;
        }


        if (Convert.ToBoolean(eGlobalAttributes.EnablePhysicianPartnerCustomerResultFaxNotification))
        {
            FaxEnabledYes.Checked = true;
        }
        else
        {
            FaxEnabledNo.Checked = true;
        }

        if (Convert.ToBoolean(eGlobalAttributes.EnableAWVCustomerResultFaxNotification))
        {
            AWVFaxEnabledYes.Checked = true;
        }
        else
        {
            AWVFaxEnabledNo.Checked = true;
        }

        if (Convert.ToBoolean(eGlobalAttributes.AskPreQualificationQuestion))
        {
            AskPreQualificationQuestionYes.Checked = true;
        }
        else
        {
            AskPreQualificationQuestionNo.Checked = true;
        }

        passwordExpiryDaysCount.Text            = eGlobalAttributes.PasswordExpirationDays;
        previousPasswordNonRepetitionCount.Text = eGlobalAttributes.PreviousPasswordNonRepetitionCount;


        otpEmail.Checked            = Convert.ToBoolean(eGlobalAttributes.OtpNotificationMediumEmail);
        otpSms.Checked              = Convert.ToBoolean(eGlobalAttributes.OtpNotificationMediumSms);
        googleAuthenticator.Checked = Convert.ToBoolean(eGlobalAttributes.OtpByGoogleAuthenticator);

        otpExpirationMinutes.Text    = eGlobalAttributes.OtpExpirationMinutes.ToString();
        otpMisMatchAttemptCount.Text = eGlobalAttributes.OtpMisMatchAttemptCount.ToString();

        allowSafeComputerRemember.Checked = Convert.ToBoolean(eGlobalAttributes.AllowSafeComputerRemember);
        safeDeviceExpiryDays.Text         = eGlobalAttributes.SafeDeviceExpiryDays.ToString();

        alertBeforePasswordExpirationInDays.Text = eGlobalAttributes.AlertBeforePasswordExpirationInDays.ToString();
    }