Exemple #1
0
 public void PopulateActivityTypes(Dictionary <int, string> activityTypes)
 {
     ActivityTypeDropDownList.DataSource     = activityTypes;
     ActivityTypeDropDownList.DataTextField  = "Value";
     ActivityTypeDropDownList.DataValueField = "Key";
     ActivityTypeDropDownList.DataBind();
 }
 public void PopulateActivityTypes(IList <ListItem> activityTypes)
 {
     ActivityTypeDropDownList.DataSource     = activityTypes;
     ActivityTypeDropDownList.DataTextField  = "Text";
     ActivityTypeDropDownList.DataValueField = "Value";
     ActivityTypeDropDownList.DataBind();
 }
Exemple #3
0
 private void Clear()
 {
     ViewState.Remove("EditNoteId");
     ActivityTypeDropDownList.ClearSelection();
     NoteTypeDropDownList.ClearSelection();
     CommentEditTextBox.Text         = string.Empty;
     FeedbackLabel.Text              = string.Empty;
     CustomerNoteDescriptors.Visible = true;
 }
Exemple #4
0
        private void ClearControls()
        {
            ActivityTypeDropDownList.ClearSelection();
            NoteTypeDropDownList.ClearSelection();

            NextCallDueTextBox.Text         = System.Web.HttpUtility.HtmlDecode(string.Empty);
            CommentTextBox.Text             = string.Empty;
            FeedbackLabel.Text              = string.Empty;
            CustomerNoteDescriptors.Visible = !SessionWrapper.Instance.Get.IsAllClientsSelected;
            PermanentNoteCheckBox.Checked   = false;
        }
Exemple #5
0
        public void PopulateDropDownLists()
        {
            ActivityTypeDropDownList.DataSource     = ActivityType.KnownTypesForNewNotes;
            ActivityTypeDropDownList.DataTextField  = "Value";
            ActivityTypeDropDownList.DataValueField = "Key";
            ActivityTypeDropDownList.DataBind();

            NoteTypeDropDownList.DataSource     = NoteType.KnownTypesForNewNotes;
            NoteTypeDropDownList.DataTextField  = "Value";
            NoteTypeDropDownList.DataValueField = "Key";
            NoteTypeDropDownList.DataBind();
        }
Exemple #6
0
        private void ClearControls()
        {
            ActivityTypeDropDownList.ClearSelection();
            NoteTypeDropDownList.ClearSelection();

            NextCallDueTextBox.EncodedText = string.Empty;
            CommentTextBox.EncodedText     = string.Empty;
            FeedbackLabel.Text             = string.Empty;

            PermanentNoteCheckBox.Checked   = false;
            CustomerNoteDescriptors.Visible = true;
        }