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; //} }
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); }
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); }
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; //} }
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); } }
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); }
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; }
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); }
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; } }
protected void dataSourceViewClientContact_Selecting(object sender, ObjectContainerDataSourceSelectingEventArgs e) { dataSourceViewClientContact.DataSource = ViewData; }
void TestableObjectContainerDataSource_Selecting(object sender, ObjectContainerDataSourceSelectingEventArgs e) { _SelectingFired = true; }
protected void dataSourceViewAgencyLocation_Selecting(object sender, ObjectContainerDataSourceSelectingEventArgs e) { AgencyId = ViewData.AgencyId; dataSourceViewAgencyLocation.DataSource = ViewData; }
protected void dataSourceSubStateRegion_Selecting(object sender, ObjectContainerDataSourceSelectingEventArgs e) { dataSourceSubStateRegion.DataSource = ViewData; }
// <snippet id="Selecting"> protected void CustomersDataSource_Selecting(object sender, ObjectContainerDataSourceSelectingEventArgs e) { _presenter.OnSelecting(e.Arguments.StartRowIndex, e.Arguments.MaximumRows, e.Arguments.SortExpression); }
protected void dataSourceEditAgencyLocation_Selecting(object sender, ObjectContainerDataSourceSelectingEventArgs e) { dataSourceEditAgencyLocation.DataSource = Logic.GetEditAgencyLocation(Id.Value); }
protected void dataSourceUserView_Selecting(object sender, ObjectContainerDataSourceSelectingEventArgs e) { dataSourceUserView.DataSource = userProfileViewData; }
protected void dataSourceSubStateUserAdd_Selecting(object sender, ObjectContainerDataSourceSelectingEventArgs e) { //if(!EndRequest) dataSourceSubStateUserAdd.DataSource = UserSubStateRegionData; }
protected void dataSourceSubStateUserEdit_Selecting(object sender, ObjectContainerDataSourceSelectingEventArgs e) { dataSourceSubStateUserEdit.DataSource = UserSubStateRegionData; }
protected void dataSourceRegionalProfiles_Selecting(object sender, ObjectContainerDataSourceSelectingEventArgs e) { dataSourceRegionalProfiles.DataSource = userProfileViewData.RegionalProfiles; }
protected void dataSourceUserView_Selecting(object sender, ObjectContainerDataSourceSelectingEventArgs e) { }
protected void dataSourceRegionalProfiles_Selecting(object sender, ObjectContainerDataSourceSelectingEventArgs e) { dataSourceRegionalProfiles.DataSource = GetEditableProfiles(); }
protected void dataSourceAgencyUserView_Selecting(object sender, ObjectContainerDataSourceSelectingEventArgs e) { dataSourceAgencyUserView.DataSource = UserAgencyData; }
protected void dataSourceViewAgency_Selecting(object sender, ObjectContainerDataSourceSelectingEventArgs e) { dataSourceViewAgency.DataSource = ViewData; }
protected void dataSourceEditSHIP_Selecting(object sender, ObjectContainerDataSourceSelectingEventArgs e) { dataSourceEditSHIP.DataSource = ViewData; }