protected void dataSourcePendingUsers_Selecting(object sender, ObjectContainerDataSourceSelectingEventArgs e)
 {
     //if (IsPostBack)
     //{
     //    RetrieveAndBindData(false);
     //}
 }
 protected void dataSourcePendingUsers_Selecting(object sender, ObjectContainerDataSourceSelectingEventArgs e)
 {
     if (IsPostBack)
     {
         RetrieveAndBindData();
     }
 }
 protected void dataSourceAgencyUserEdit_Selecting(object sender, ObjectContainerDataSourceSelectingEventArgs e)
 {
     //if (!IsPostBack)
     //{
     dataSourceAgencyUserEdit.DataSource = UserAgencyData;
     //}
 }
示例#4
0
        protected void dataSourceAgencies_Selecting(object sender, ObjectContainerDataSourceSelectingEventArgs e)
        {
            if (!IsPostBack)
            {
                return;
            }

            IList <SearchAgenciesViewData> agencies = null;

            switch (SearchType)
            {
            case SearchType.Keyword:
            {
                agencies = new List <SearchAgenciesViewData>(Logic.SearchAgencies(AccountInfo.UserId, new State(dropDownListState.SelectedValue), AccountInfo.Scope, textBoxSearchKeywords.Text.Replace("\"", string.Empty).Replace(",", string.Empty)));
                dataSourceAgencies.DataSource = agencies;

                break;
            }

            case SearchType.ListAll:
            {
                agencies = new List <SearchAgenciesViewData>(Logic.ListAllAgencies(AccountInfo.UserId, new State(dropDownListState.SelectedValue), Scope));
                dataSourceAgencies.DataSource = agencies;

                break;
            }
            }

            panelNoResults.Visible = (agencies.Count == 0);
        }
示例#5
0
        protected void dataSourceUsers_Selecting(object sender, ObjectContainerDataSourceSelectingEventArgs e)
        {
            //if (IsPostBack)
            //{
            //IEnumerable<UserViewData> viewData = null;
            ViewData = FetchData();

            //if (SearchByState)
            //    viewData = UserBLL.GetAllUsers(UserId, ddlStates.SelectedValue);
            //else
            //    viewData = UserBLL.GetAllUsers(UserId, string.Empty);

            if (ViewData != null && ViewData.Count() > 0)
            {
                dataSourceUsers.DataSource = ViewData;
            }
            //}
            //else
            //{
            //    IEnumerable<UserViewData> viewData = UserBLL.GetAllUsers(UserId, string.Empty);
            //    if (viewData != null && viewData.Count() > 0)
            //    {
            //        dataSourceUsers.DataSource = viewData;
            //    }
            //}
        }
        protected void dataSourceSubStateRegions_Selecting(object sender, ObjectContainerDataSourceSelectingEventArgs e)
        {
            var subStateRegions = new List <SearchSubStateRegionsViewData>(Logic.SearchSubStateRegions(DefaultState));

            dataSourceSubStateRegions.DataSource = subStateRegions;
            panelNoResults.Visible = (subStateRegions.Count == 0);
        }
示例#7
0
        protected void dataSourceUsers_Selecting(object sender, ObjectContainerDataSourceSelectingEventArgs e)
        {
            IList <UserSearchViewData> usrs = null;

            switch (usrSearchType)
            {
            case SearchType.Keyword:
            {
                usrs = new List <UserSearchViewData>(GetCleanData(UserBLL.SearchUsersFor180dInactivity(CreateSearchParameters()))
                                                     );
                //}
                dataSourceUsers.DataSource = usrs;

                break;
            }

            case SearchType.Recent:
            {
                usrs = new List <UserSearchViewData>(UserBLL.GetUsersFor180dInactivity(UserId));
                dataSourceUsers.DataSource = usrs;

                break;
            }
            }

            NoSearchResultsMessage.Visible = (usrs.Count == 0);
        }
 protected void dataSourceAgencyUserAdd_Selecting(object sender, ObjectContainerDataSourceSelectingEventArgs e)
 {
     //if (!EndRequest)
     //{
     dataSourceAgencyUserAdd.DataSource = UserAgencyRegionData;
     //   EndRequest = true;
     //}
 }
示例#9
0
 protected void OrdersContainerDataSource_Selecting(object sender, ObjectContainerDataSourceSelectingEventArgs e)
 {
     Page.Validate();
     if (Page.IsValid)
     {
         string searchText = SearchTextBox.Text;
         _presenter.OnOrdersSelecting(searchText, e.Arguments.StartRowIndex, e.Arguments.MaximumRows);
     }
 }
示例#10
0
        protected void dataSourceSearchClientContacts_Selecting(object sender, ObjectContainerDataSourceSelectingEventArgs e)
        {
            IList <SearchClientContactsViewData> clientContacts = null;

            switch (CcfSearchType)
            {
            case SearchType.Keyword:
            {
                //if (AccountInfo.IsStateLevel)
                //{
                //clientContacts = new List<SearchClientContactsViewData>(Logic.SearchClientContacts(SearchKeywords, FromContactDate, ToContactDate, State, (IsCounselorOnly) ? UserId : CounselorId, SubmitterId, (int)Scope, UserId));
                clientContacts = new List <SearchClientContactsViewData>(Logic.SearchClientContacts
                                                                         (
                                                                             new CCFBLL.CCSearchCriteria
                    {
                        UserId      = AccountInfo.UserId,
                        scope       = AccountInfo.Scope,
                        AgencyId    = SelectedAgencyId,
                        Keyword     = SearchKeywords,
                        StateFIPS   = State.Code,
                        CounselorId = CounselorId,
                        SubmitterId = SubmitterId,
                        FromDate    = FromContactDate,
                        ToDate      = ToContactDate,
                    }
                                                                         )
                                                                         );
                //}
                dataSourceSearchClientContacts.DataSource = clientContacts;

                break;
            }

            case SearchType.Recent:
            {
                clientContacts = new List <SearchClientContactsViewData>(Logic.GetRecentClientContacts(UserId));
                dataSourceSearchClientContacts.DataSource = clientContacts;

                break;
            }

            case SearchType.Init:
            {
                clientContacts = new List <SearchClientContactsViewData>();
                dataSourceSearchClientContacts.DataSource = clientContacts;

                break;
            }
            }

            panelNoResults.Visible = (clientContacts.Count == 0);
        }
示例#11
0
        protected void dataSourceUserView_Selecting(object sender, ObjectContainerDataSourceSelectingEventArgs e)
        {
            UserData.FirstName  = UserData.FirstName.ToCamelCasing();
            UserData.MiddleName = UserData.MiddleName.ToCamelCasing();
            UserData.LastName   = UserData.LastName.ToCamelCasing();
            UserData.NickName   = UserData.NickName.ToCamelCasing();
            UserData.Suffix     = UserData.Suffix.ToCamelCasing();
            UserData.Honorifics = UserData.Honorifics.ToCamelCasing();

            UserData.PrimaryPhone   = UserData.PrimaryPhone.FormatPhoneNumber();
            UserData.SecondaryPhone = UserData.SecondaryPhone.FormatPhoneNumber();

            dataSourceUserView.DataSource = UserData;
        }
示例#12
0
 protected void dataSourceUsers_Selecting(object sender, ObjectContainerDataSourceSelectingEventArgs e)
 {
     if (IsPostBack)
     {
         IEnumerable <UserSearchViewData> viewData = GetCleanData(UserBLL.SearchUsers(CreateSearchParameters()));
         if (viewData != null && viewData.Count() > 0)
         {
             dataSourceUsers.DataSource = viewData;
         }
         else
         {
             NoSearchResultsMessage.Visible = true;
         }
     }
 }
        protected void dataSourceSubStateRegion_Selecting(object sender, ObjectContainerDataSourceSelectingEventArgs e)
        {
            // if (!IsPostBack) return;

            IList <SearchSubStateRegionForReportViewData> substates = null;

            if (DefaultState.Code == "99")
            {
                substates = new List <SearchSubStateRegionForReportViewData>(Logic.ListAllSubStates());
            }
            else
            {
                substates = new List <SearchSubStateRegionForReportViewData>(Logic.ListSubStatesForState(DefaultState.Code));
            }

            dataSourceSubStateRegion.DataSource = substates;


            panelNoResults.Visible = (substates.Count == 0);
        }
示例#14
0
        protected void dataSourceViewAgency_Selecting(object sender, ObjectContainerDataSourceSelectingEventArgs e)
        {
            //stateFIPS = "37";
            //CountyFIPS = "37037";

            //stateFIPS = "01";
            //CountyFIPS = "01041";

            //stateFIPS = "01";
            //CountyFIPS = "01001";

            //stateFIPS = "99";
            //CountyFIPS = "99999";
            ContentPlaceHolder cp          = PreviousPage.Master.FindControl("body1") as ContentPlaceHolder;
            DropDownList       ddlStates   = cp.FindControl("ddlStates") as DropDownList;
            DropDownList       ddlCounties = cp.FindControl("ddlCounties") as DropDownList;

            stateFIPS  = ddlStates.SelectedValue;
            countyFIPS = ddlCounties.SelectedValue;

            stateName  = ddlStates.SelectedItem.Text.Trim();
            countyName = ddlCounties.SelectedItem.Text.Trim();
            zip        = null;

            IList <ViewAgencyProfileView> agencies = null;

            agencies = new List <ViewAgencyProfileView>(Logic.GetViewAgency(stateFIPS, countyFIPS, zip));

            if (agencies.Count == 0)
            {
                NoSearchResultsMessage.Visible = true;
            }
            else
            {
                NoSearchResultsMessage.Visible  = false;
                dataSourceViewAgency.DataSource = agencies;
            }
        }
示例#15
0
 protected void dataSourceViewClientContact_Selecting(object sender, ObjectContainerDataSourceSelectingEventArgs e)
 {
     dataSourceViewClientContact.DataSource = ViewData;
 }
 void TestableObjectContainerDataSource_Selecting(object sender, ObjectContainerDataSourceSelectingEventArgs e)
 {
     _SelectingFired = true;
 }
示例#17
0
 protected void dataSourceViewAgencyLocation_Selecting(object sender, ObjectContainerDataSourceSelectingEventArgs e)
 {
     AgencyId = ViewData.AgencyId;
     dataSourceViewAgencyLocation.DataSource = ViewData;
 }
示例#18
0
 protected void dataSourceSubStateRegion_Selecting(object sender, ObjectContainerDataSourceSelectingEventArgs e)
 {
     dataSourceSubStateRegion.DataSource = ViewData;
 }
示例#19
0
 // <snippet id="Selecting">
 protected void CustomersDataSource_Selecting(object sender, ObjectContainerDataSourceSelectingEventArgs e)
 {
     _presenter.OnSelecting(e.Arguments.StartRowIndex, e.Arguments.MaximumRows, e.Arguments.SortExpression);
 }
示例#20
0
 protected void dataSourceEditAgencyLocation_Selecting(object sender, ObjectContainerDataSourceSelectingEventArgs e)
 {
     dataSourceEditAgencyLocation.DataSource = Logic.GetEditAgencyLocation(Id.Value);
 }
示例#21
0
 protected void dataSourceUserView_Selecting(object sender, ObjectContainerDataSourceSelectingEventArgs e)
 {
     dataSourceUserView.DataSource = userProfileViewData;
 }
示例#22
0
 protected void dataSourceSubStateUserAdd_Selecting(object sender, ObjectContainerDataSourceSelectingEventArgs e)
 {
     //if(!EndRequest)
     dataSourceSubStateUserAdd.DataSource = UserSubStateRegionData;
 }
示例#23
0
 protected void dataSourceSubStateUserEdit_Selecting(object sender, ObjectContainerDataSourceSelectingEventArgs e)
 {
     dataSourceSubStateUserEdit.DataSource = UserSubStateRegionData;
 }
示例#24
0
 protected void dataSourceRegionalProfiles_Selecting(object sender, ObjectContainerDataSourceSelectingEventArgs e)
 {
     dataSourceRegionalProfiles.DataSource = userProfileViewData.RegionalProfiles;
 }
示例#25
0
 protected void dataSourceUserView_Selecting(object sender, ObjectContainerDataSourceSelectingEventArgs e)
 {
 }
示例#26
0
 protected void dataSourceRegionalProfiles_Selecting(object sender, ObjectContainerDataSourceSelectingEventArgs e)
 {
     dataSourceRegionalProfiles.DataSource = GetEditableProfiles();
 }
示例#27
0
 protected void dataSourceAgencyUserView_Selecting(object sender, ObjectContainerDataSourceSelectingEventArgs e)
 {
     dataSourceAgencyUserView.DataSource = UserAgencyData;
 }
示例#28
0
 protected void dataSourceViewAgency_Selecting(object sender, ObjectContainerDataSourceSelectingEventArgs e)
 {
     dataSourceViewAgency.DataSource = ViewData;
 }
示例#29
0
 protected void dataSourceEditSHIP_Selecting(object sender, ObjectContainerDataSourceSelectingEventArgs e)
 {
     dataSourceEditSHIP.DataSource = ViewData;
 }