protected void ObjectDataSource1_ObjectCreating (object sender, ObjectDataSourceEventArgs e) { int[] listedPersons = ViewState["persons"] as int[]; ListPersonDataSource ds = new ListPersonDataSource(listedPersons); ds.selectedOrgId = int.Parse(DropOrganizations.SelectedValue); e.ObjectInstance = ds; }
private void OnDataSourceObjectCreated(object sender, ObjectDataSourceEventArgs e) { RequestObjectHistoryDataSource dataSource = e.ObjectInstance as RequestObjectHistoryDataSource; if (dataSource == null) return; dataSource.ObjectID = ObjectID.Value; }
protected void TheWikiDataSource_ObjectCreating(object sender, ObjectDataSourceEventArgs e) { e.ObjectInstance = new WikiResult(TitleTextBox.Text, DescriptionTextBox.Text, string.Empty, AuthorTextBox.Text, string.Empty, null, string.Empty, string.Empty, !string.IsNullOrEmpty(DateCreatedTextBox.Text) ? DateTime.Parse(DateCreatedTextBox.Text) : DateTime.MinValue, !string.IsNullOrEmpty(DateCreatedTextBox.Text) ? DateTime.Parse(DateCreatedTextBox.Text).AddDays(1) : DateTime.MinValue, !string.IsNullOrEmpty(DateModifiedTextBox.Text) ? DateTime.Parse(DateModifiedTextBox.Text) : DateTime.MinValue, !string.IsNullOrEmpty(DateModifiedTextBox.Text) ? DateTime.Parse(DateModifiedTextBox.Text).AddDays(1) : DateTime.MinValue, LastModifiedByTextBox.Text); }
protected void CategoryDataSource_ObjectCreating(object sender, ObjectDataSourceEventArgs e) { ICategory item = null; if (CategoryTreeView.SelectedNode != null) item = ContentManagementService.GetCategory(CategoryTreeView.SelectedNode.DataPath); if (item != null) e.ObjectInstance = new CategoriesSource(item.ID); else e.ObjectInstance = new CategoriesSource(null); }
/// <summary> /// Creates the accounts whats modified data source. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="System.Web.UI.WebControls.ObjectDataSourceEventArgs"/> instance containing the event data.</param> protected void CreateAccountsWhatsModifiedDataSource(object sender, ObjectDataSourceEventArgs e) { if (_ModifiedAccountsLastPageIndex) { int pageIndex = 0; int recordCount = WNRequest.GetRecordCount(); int pageSize = grdModifiedAccounts.PageSize; decimal numberOfPages = recordCount / pageSize; pageIndex = Convert.ToInt32(Math.Ceiling(numberOfPages)); grdModifiedAccounts.PageIndex = pageIndex; } e.ObjectInstance = WNRequest; }
/// <summary> /// Creates the notes whats modified data source. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="System.Web.UI.WebControls.ObjectDataSourceEventArgs"/> instance containing the event data.</param> protected void CreateNotesWhatsModifiedDataSource(object sender, ObjectDataSourceEventArgs e) { if (_ModifiedNotesLastPageIndex) { int pageIndex = 0; int recordCount = WNRequest.GetRecordCount(); int pageSize = grdModifiedNotes.PageSize; decimal numberOfPages = recordCount / pageSize; pageIndex = Convert.ToInt32(Math.Ceiling(numberOfPages)); grdModifiedNotes.PageIndex = pageIndex; } e.ObjectInstance = WNRequest; }
protected void InternalDataSource_ObjectCreating(object sender, ObjectDataSourceEventArgs e) { if (parentEntity != null) { WebEntityFactory ef = new WebEntityFactory(((PageBase)Page).RegistryContext); ef.ParentEntity = parentEntity; ef.ChildrenType = childrenType; e.ObjectInstance = ef; } else { e.ObjectInstance = null; } }
protected void SectionDataSource_ObjectCreating(object sender, ObjectDataSourceEventArgs e) { Guid? sectionId = Guid.Empty; if (SectionTreeView.SelectedNode != null) { ISection item = ContentManagementService.GetSection(SectionTreeView.SelectedNode.DataPath); if (item != null) sectionId = item.ID; } e.ObjectInstance = new SectionsSource(sectionId); }
protected void TheDataSource_ObjectCreating(object sender, ObjectDataSourceEventArgs e) { DateTime fechaInicio = DateTime.MinValue; DateTime fechaFin = DateTime.MinValue; if (!string.IsNullOrEmpty(FechaInicioTextBox.Text)) fechaInicio = DateTime.Parse(FechaInicioTextBox.Text); if (!string.IsNullOrEmpty(FechaFinTextBox.Text)) fechaFin = DateTime.Parse(FechaFinTextBox.Text).AddDays(1); e.ObjectInstance = new StatisticTraceReport(new DateTime(fechaInicio.Year, fechaInicio.Month, fechaInicio.Day), new DateTime(fechaFin.Year, fechaFin.Month, fechaFin.Day), string.Empty, string.Empty, null, string.Empty, string.Empty); }
protected void PbpDataSource_ObjectCreating(object sender, ObjectDataSourceEventArgs e) { /* Get the Service */ IUnityContainer container = (IUnityContainer) HttpContext.Current.Application["unityContainer"]; // gigService is not resolved against the container because it // produce a proxy that it not available for databinding IGigService gigService = new GigService(); gigService = (IGigService) container.BuildUp(gigService.GetType(), gigService); e.ObjectInstance = gigService; }
/// <summary> /// Creates the activities whats new data source. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="System.Web.UI.WebControls.ObjectDataSourceEventArgs"/> instance containing the event data.</param> protected void CreateActivitiesWhatsNewDataSource(object sender, ObjectDataSourceEventArgs e) { ActivitiesWhatsNewDataSource dataSource = new ActivitiesWhatsNewDataSource(); dataSource.ActivitySearchOptions = SearchOptions; SearchOptions.ModifiedActivitiesOnly = false; if (_NewActivitiesLastPageIndex) { int recordCount = dataSource.GetRecordCount(); int pageSize = grdNewActivities.PageSize; decimal numberOfPages = recordCount / pageSize; grdNewActivities.PageIndex = (int)Math.Ceiling(numberOfPages); } e.ObjectInstance = dataSource; }
protected void CreateBlogPostDataAdapter(object sender, ObjectDataSourceEventArgs e) { e.ObjectInstance = new BlogPostDataAdapter(_portal.Value.Entity, new PortalContextDataAdapterDependencies(_portal.Value, requestContext: Request.RequestContext)); // sprinkle these calls in for whichever events we want to trace //Log Customer Journey Tracking if (FeatureCheckHelper.IsFeatureEnabled(FeatureNames.CustomerJourneyTracking)) { if (!String.IsNullOrEmpty(_portal.Value.Entity.Id.ToString()) && !String.IsNullOrEmpty(_portal.Value.Entity.GetAttributeValue <string>("adx_name"))) { PortalTrackingTrace.TraceInstance.Log(Constants.Blog, _portal.Value.Entity.Id.ToString(), _portal.Value.Entity.GetAttributeValue <string>("adx_name")); } } }
protected void ResultsDataSource_ObjectCreating(object sender, ObjectDataSourceEventArgs e) { e.ObjectInstance = new WikiSearchResult( HttpUtility.UrlDecode(!string.IsNullOrEmpty(Request.QueryString["q"]) ? Request.QueryString["q"] : (!string.IsNullOrEmpty(Request.QueryString["key"]) ? Request.QueryString["key"] : string.Empty)), HttpUtility.UrlDecode(!string.IsNullOrEmpty(Request.QueryString["cat"]) ? Request.QueryString["cat"] : (!string.IsNullOrEmpty(Request.QueryString["key"]) ? Request.QueryString["key"] : string.Empty)), HttpUtility.UrlDecode(!string.IsNullOrEmpty(Request.QueryString["key"]) ? Request.QueryString["key"] : (!string.IsNullOrEmpty(Request.QueryString["q"]) ? Request.QueryString["q"] : string.Empty))); }
/// <summary> /// Creates the activities whats modified data source. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="System.Web.UI.WebControls.ObjectDataSourceEventArgs"/> instance containing the event data.</param> protected void CreateActivitiesWhatsModifiedDataSource(object sender, ObjectDataSourceEventArgs e) { ActivitiesWhatsNewDataSource dataSource = new ActivitiesWhatsNewDataSource(); dataSource.ActivitySearchOptions = SearchOptions; SearchOptions.ModifiedActivitiesOnly = true; if (_ModifiedActivitiesLastPageIndex) { int pageIndex = 0; int recordCount = dataSource.GetRecordCount(); int pageSize = grdModifiedActivities.PageSize; decimal numberOfPages = recordCount / pageSize; pageIndex = Convert.ToInt32(Math.Ceiling(numberOfPages)); grdModifiedActivities.PageIndex = pageIndex; } e.ObjectInstance = dataSource; }
protected void GetStudyIntegrityQueueDataSource(object sender, ObjectDataSourceEventArgs e) { if (_dataSource == null) { _dataSource = new StudyIntegrityQueueDataSource(); _dataSource.StudyIntegrityQueueFoundSet += delegate(IList <StudyIntegrityQueueSummary> newlist) { Items = newlist; }; } e.ObjectInstance = _dataSource; if (DataSourceCreated != null) { DataSourceCreated(_dataSource); } }
//void DropDownListRecordPagina_SelectedIndexChanged(object sender, EventArgs e) //{ // DropDownListRecPagina_SelectedIndexChanged("GridViewRuoli","DropDownListRecordPagina"); //} #endregion #region Web Form Event Handler protected void ObjectDataSourceRuoli_SetProperties(object sender, ObjectDataSourceEventArgs e) { Ruoli objRuoli = e.ObjectInstance as Ruoli; if (dizionarioPermessi["ADM"] != objUtilita.AccessDelete) { if (WhereClause == string.Empty) { WhereClause += " WHERE RUL_ID_RUOLO <> 1 "; } else { WhereClause += " AND RUL_ID_RUOLO <> 1 "; } } objRuoli.SqlWhereClause = WhereClause; }
protected void odsSizePerFileClass_ObjectCreated(object sender, ObjectDataSourceEventArgs e) { var bo = e.ObjectInstance as DMS.FCollect.Db.BoSizePerFileClass; Debug.Assert(bo != null); foreach (ListItem item in cbxListFileClasses.Items) { // Ausschließen aller nicht berücksichtigter Klassen if (!item.Selected) { bo.AllFilter.Add(new DMS.FCollect.Db.BoSizePerFileClass.ExcludeFileClassFilter() { RValue = int.Parse(item.Value) }); } } }
/// <summary> /// Creates the targets view data source. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="System.Web.UI.WebControls.ObjectDataSourceEventArgs"/> instance containing the event data.</param> protected void CreateTargetsViewDataSource(object sender, ObjectDataSourceEventArgs e) { TargetsViewDataSource dataSource = new TargetsViewDataSource(); dataSource.SelectedFilterState = _filterState; if (!String.IsNullOrEmpty(grdTargets.SortExpression)) dataSource.SortExpression = grdTargets.SortExpression; dataSource.IsAscending = grdTargets.SortDirection.Equals(SortDirection.Ascending); if (_setLastPageIndex) { int pageIndex = 0; int recordCount = dataSource.GetDataCount(); int pageSize = grdTargets.PageSize; decimal numberOfPages = recordCount / pageSize; pageIndex = Convert.ToInt32(Math.Ceiling(numberOfPages)); grdTargets.PageIndex = pageIndex; } e.ObjectInstance = dataSource; }
protected void TheUploadedFilesDataSource_ObjectCreating(object sender, ObjectDataSourceEventArgs e) { Guid? sectionId = null; if (SectionTreeView.SelectedNode != null) { Section item = null; //ContentManagementService.GetSection(SectionTreeView.SelectedNode.DataPath); if (item != null) sectionId = item.ID; } e.ObjectInstance = new UploadedFilesCatalogSource(null, // Avoid to search all files sectionId.HasValue ? sectionId.Value : Guid.Empty, null, null, null, null, null, null); }
protected void GetAlertDataSource(object sender, ObjectDataSourceEventArgs e) { if (_dataSource == null) { _dataSource = new AlertDataSource(); _dataSource.AlertFoundSet += delegate(IList <AlertSummary> newlist) { AlertItems = new AlertItemCollection(newlist); }; } e.ObjectInstance = _dataSource; if (DataSourceCreated != null) { DataSourceCreated(_dataSource); } }
protected void GetWorkQueueDataSource(object sender, ObjectDataSourceEventArgs e) { if (_dataSource == null) { _dataSource = new WorkQueueDataSource(); _dataSource.Partition = ServerPartition; _dataSource.WorkQueueFoundSet += delegate(IList <WorkQueueSummary> newlist) { WorkQueueItems = new WorkQueueItemCollection(newlist); }; } e.ObjectInstance = _dataSource; if (DataSourceCreated != null) { DataSourceCreated(_dataSource); } }
protected void GetUserGroupDataSource(object sender, ObjectDataSourceEventArgs e) { if (_dataSource == null) { _dataSource = new UserGroupDataSource(); _dataSource.UserGroupFoundSet += delegate(IList <UserGroupRowData> newlist) { _userGroupRows = newlist; }; } e.ObjectInstance = _dataSource; if (DataSourceCreated != null) { DataSourceCreated(_dataSource); } }
protected void GetApplicationLogDataSource(object sender, ObjectDataSourceEventArgs e) { if (_dataSource == null) { _dataSource = new ApplicationLogDataSource(); _dataSource.ApplicationLogFoundSet += delegate(IList <Model.ApplicationLog> newlist) { ApplicationLogs = newlist; }; } e.ObjectInstance = _dataSource; if (DataSourceCreated != null) { DataSourceCreated(_dataSource); } }
/// <summary> /// Creates the targets view data source. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="System.Web.UI.WebControls.ObjectDataSourceEventArgs"/> instance containing the event data.</param> protected void CreateTargetsViewDataSource(object sender, ObjectDataSourceEventArgs e) { TargetsViewDataSource dataSource = new TargetsViewDataSource(); dataSource.SelectedFilterState = _filterState; if (!String.IsNullOrEmpty(grdTargets.SortExpression)) { dataSource.SortExpression = grdTargets.SortExpression; } dataSource.IsAscending = grdTargets.SortDirection.Equals(SortDirection.Ascending); if (_setLastPageIndex) { int pageIndex = 0; int recordCount = dataSource.GetDataCount(); int pageSize = grdTargets.PageSize; decimal numberOfPages = recordCount / pageSize; pageIndex = Convert.ToInt32(Math.Ceiling(numberOfPages)); grdTargets.PageIndex = pageIndex; } e.ObjectInstance = dataSource; }
private void DataSource_ObjectCreated(object sender, ObjectDataSourceEventArgs e) { var dataSource = e.ObjectInstance as DeletedStudyDataSource; if (dataSource != null) { dataSource.AccessionNumber = SearchHelper.TrailingWildCard(AccessionNumber.Text); dataSource.PatientsName = SearchHelper.NameWildCard(PatientName.Text); dataSource.PatientId = SearchHelper.TrailingWildCard(PatientId.Text); dataSource.StudyDescription = SearchHelper.LeadingAndTrailingWildCard(StudyDescription.Text); dataSource.DeletedBy = DeletedBy.Text; if (!String.IsNullOrEmpty(StudyDate.Text)) { DateTime value; if (DateTime.TryParseExact(StudyDate.Text, StudyDateCalendarExtender.Format, CultureInfo.InvariantCulture, DateTimeStyles.None, out value)) { dataSource.StudyDate = value; } } } }
/// <summary> /// Creates the targets view data source. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="System.Web.UI.WebControls.ObjectDataSourceEventArgs"/> instance containing the event data.</param> protected void CreateTargetsViewDataSource(object sender, ObjectDataSourceEventArgs e) { TargetsViewDataSource dataSource = new TargetsViewDataSource(); dataSource.SelectedFilterState = _filterState; if (_SetLastPageIndex) { int pageIndex = 0; int recordCount = dataSource.GetDataCount(); int pageSize = grdTargets.PageSize; decimal numberOfPages = recordCount / pageSize; pageIndex = Convert.ToInt32(Math.Ceiling(numberOfPages)); grdTargets.PageIndex = pageIndex; } e.ObjectInstance = dataSource; }
protected void odsExpense_ObjectCreated(object sender, ObjectDataSourceEventArgs e) { SalesApplyBLL bll = (SalesApplyBLL)e.ObjectInstance; bll.FormDataSet = this.InnerDS; }
protected void temporaryAppointmentDataSource_ObjectCreated(object sender, ObjectDataSourceEventArgs e) { CustomEventList events = GetCustomEvents(); e.ObjectInstance = new CustomEventDataSource(events); }
protected void UsersDataSource_ObjectCreating(object sender, ObjectDataSourceEventArgs e) { e.ObjectInstance = new ProjectUsersResult(_gallery); }
protected void UserListViewODS_ObjectCreating(object sender, ObjectDataSourceEventArgs e) { // TODO: Note the use of this event to create the ApplicationUserManager. // It is needed because there is NO parameterless constructor on the class. e.ObjectInstance = new ApplicationUserManager(new UserStore <ApplicationUser>(new ApplicationDbContext())); }
protected void odsBudgetAllocationOutDetails_ObjectCreated(object sender, ObjectDataSourceEventArgs e) { BudgetAllocationApplyBLL bll = (BudgetAllocationApplyBLL)e.ObjectInstance; bll.FormDataSet = this.InnerDS; }
private void DataSourceContainer_ObjectCreated(object sender, ObjectDataSourceEventArgs e) { // keep a reference to the data source created, used for other purposes _dataSource = e.ObjectInstance as DeletedStudyDataSource; }
//Initilazing ObjectDataSource protected void appointmentsDataSource_ObjectCreated(object sender, ObjectDataSourceEventArgs e) { e.ObjectInstance = new CustomEventDataSource(GetCustomEvents()); }
protected void MembershipDataSource_ObjectCreating(object sender, ObjectDataSourceEventArgs e) { e.ObjectInstance = new MembershipResult(SearchSelection.SelectedValue == "username" ? SearchTextBox.Text : string.Empty, SearchSelection.SelectedValue == "email" ? SearchTextBox.Text : string.Empty); }
protected void ObjectDataSource1_ObjectCreating(object sender, ObjectDataSourceEventArgs e) { //e.ObjectInstance = new PubsService.Authors().UseDefaultCredentials = true; }
protected void ProjectDataSource_ObjectCreating(object sender, ObjectDataSourceEventArgs e) { e.ObjectInstance = new UploadedFilesResult(_gallery); }
protected void ObjValueSource_ObjectCreating(object sender, ObjectDataSourceEventArgs e) { var typename = new PigeonCms.AttributeValuesManager(); e.ObjectInstance = typename; }
protected void OnExpensesDataSourceObjectCreating(object sender, ObjectDataSourceEventArgs e) { e.ObjectInstance = this.Repository; }
protected void odsSupplier_ObjectCreating(object sender, ObjectDataSourceEventArgs e) { e.ObjectInstance = SupplierService; }
/// <summary> /// Creates the activities whats new data source. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="System.Web.UI.WebControls.ObjectDataSourceEventArgs"/> instance containing the event data.</param> protected void CreateActivitiesWhatsNewDataSource(object sender, ObjectDataSourceEventArgs e) { ActivitiesWhatsNewDataSource dataSource = new ActivitiesWhatsNewDataSource(); dataSource.ActivitySearchOptions = SearchOptions; SearchOptions.ModifiedActivitiesOnly = false; if (_NewActivitiesLastPageIndex) { int pageIndex = 0; int recordCount = dataSource.GetRecordCount(); int pageSize = grdNewActivities.PageSize; decimal numberOfPages = recordCount / pageSize; pageIndex = Convert.ToInt32(Math.Ceiling(numberOfPages)); grdNewActivities.PageIndex = pageIndex; } e.ObjectInstance = dataSource; }
protected void odsFormTravelApplyDetails_ObjectCreated(object sender, ObjectDataSourceEventArgs e) { PersonalReimburseBLL bll = (PersonalReimburseBLL)e.ObjectInstance; bll.FormDataSet = this.InnerDS; }
//传递数据 protected void FlowParticipantDetail_ObjectCreated(object sender, ObjectDataSourceEventArgs e) { AuthorizationBLL bll = (AuthorizationBLL)e.ObjectInstance; bll.ApproverCookieDS = this.InnerDS; }
protected void ObjectDataSource1_ObjectCreating(object sender, ObjectDataSourceEventArgs e) { e.ObjectInstance = Interaction.LoggedInUser; }
protected void odsMaterialDetails_ObjectCreated(object sender, ObjectDataSourceEventArgs e) { MaterialApplyBLL bll = (MaterialApplyBLL)e.ObjectInstance; bll.FormDataSet = this.InnerDS; }
protected void odsProducto_ObjectCreating(object sender, ObjectDataSourceEventArgs e) { e.ObjectInstance = ProductoBL; }
protected void odsInvoice_ObjectCreated(object sender, ObjectDataSourceEventArgs e) { FormPurchaseBLL bll = (FormPurchaseBLL)e.ObjectInstance; bll.PurchaseDataSet = this.InnerDS; }
protected void CreateForumThreadDataAdapter(object sender, ObjectDataSourceEventArgs args) { args.ObjectInstance = CreateForumThreadDataAdapter(); }
protected void GetCurrentCaseDataAdapter(object sender, ObjectDataSourceEventArgs args) { args.ObjectInstance = CurrentCaseDataAdapter; }
protected void temporaryResourceDataSource_ObjectCreated(object sender, ObjectDataSourceEventArgs e) { CustomResourceList resources = GetCustomResources(); e.ObjectInstance = new CustomResourceDataSource(resources); }
protected void CommentsDataSource_ObjectCreating(object sender, ObjectDataSourceEventArgs e) { e.ObjectInstance = new CommentsResult(_gallery); }
void CustomObjectDataSource_ObjectCreating(object sender, ObjectDataSourceEventArgs e) { // we need to use TypeName to load the generic type via reflection and construct w/ businessObject... // API note: if e.ObjectInstance is not null after this method completes, we have what we want... #region tangent - ObjectDataSourceView.InvokeMethod(...) contains the following... /*** * ObjectDataSourceEventArgs e = new ObjectDataSourceEventArgs(null); * this.OnObjectCreating(e); // <- THIS IS OUR HOOK * if (e.ObjectInstance == null) * { * e.ObjectInstance = Activator.CreateInstance(method.Type); * this.OnObjectCreated(e); * } * * instance = e.ObjectInstance; ***/ #endregion // businessObjects cannot be null, otherwise the constructor would have thrown an exception if (businessObjects != null) // if null, we will let the API instantiate via reflection { // we need an instance of ObjectDataSourceAdapter<$bo_type> to set e.ObjectInstance string adapterArgsTypeName = "Caisis.BOL.ObjectDataSourceAdapterArgs`1[[" + businessObjectType.FullName + ",Caisis.BOL]],Caisis.BOL"; Type adapterArgsType = Type.GetType(adapterArgsTypeName, true); Type adapterType = Type.GetType(TypeName, true); ConstructorInfo adapter_cstor = adapterType.GetConstructor(new Type[] { adapterArgsType }); // TODO: adapter cstor now accepts ObjectDataSourceAdapterArgs! if (oAdapterArgsInstance == null) { // cast business Objects to businessObjectType via reflection (call Cast<> method via reflection) //MethodInfo castMethod = typeof(Enumerable).GetMethod("Cast").MakeGenericMethod(businessObjectType); //object oIEnumerableBO = castMethod.Invoke(null, new object[] { businessObjects }); string listBOTypName = "System.Collections.Generic.List`1[[" + businessObjectType.FullName + ",Caisis.BOL]]"; Type listBOType = Type.GetType(listBOTypName, true); ConstructorInfo listBO_cstor = listBOType.GetConstructor(Type.EmptyTypes); MethodInfo listBO_Add = listBOType.GetMethod("Add"); object oIListBO = listBO_cstor.Invoke(null); // add each business object to the lst businessObjects.ForEach(b => listBO_Add.Invoke(oIListBO, new object[] { b })); string collectionTypeName = "System.Collections.Generic.IList`1[[" + businessObjectType.FullName + ",Caisis.BOL]]"; Type collectionType = Type.GetType(collectionTypeName, true); ConstructorInfo adapterArgs_cstor = adapterArgsType.GetConstructor(new Type[] { collectionType }); oAdapterArgsInstance = adapterArgs_cstor.Invoke(new object[] { oIListBO }); } object[] cstor_args = { oAdapterArgsInstance }; IObjectDataSourceAdapter odsAdapter = adapter_cstor.Invoke(cstor_args) as IObjectDataSourceAdapter; _addNewRows = odsAdapter.AddNewRows; _getSavedPrimaryKey = () => odsAdapter.SavedPrimaryKey; e.ObjectInstance = odsAdapter; } }
protected void ObjDs1_ObjectCreating(object sender, ObjectDataSourceEventArgs e) { var typename = new CouponsManager(); e.ObjectInstance = typename; }
protected void ObjectDataSource1_ObjectCreated(object sender, ObjectDataSourceEventArgs e) { }
protected void odsSKUDetails_ObjectCreated(object sender, ObjectDataSourceEventArgs e) { SalesReimburseBLL bll = (SalesReimburseBLL)e.ObjectInstance; bll.FormDataSet = this.InnerDS; }
protected void ODS_Details_ObjectCreating(object sender, ObjectDataSourceEventArgs e) { e.ObjectInstance = MESPageService as Disassociate; }
protected void ObjDs1_ObjectCreating(object sender, ObjectDataSourceEventArgs e) { var typename = new ItemsManager<Item, ItemsFilter>(true, true); e.ObjectInstance = typename; }
protected void ObjectDataSource1_ObjectCreating(object sender, ObjectDataSourceEventArgs e) { e.ObjectInstance = GetBuisnessService <ICategoryService>(); }
protected void FilesDataSource_ObjectCreating(object sender, ObjectDataSourceEventArgs e) { if (wiki == null) { if (!string.IsNullOrEmpty(Request.QueryString["id"])) wiki = string.IsNullOrEmpty(Request.QueryString["ischanged"]) || !Convert.ToBoolean(Request.QueryString["ischanged"]) ? Wiki.Load(new Guid(Request.QueryString["id"])) : (Wiki)Session[Request.QueryString["id"]]; else wiki = new Wiki(Guid.NewGuid()); } e.ObjectInstance = new FilesResult(wiki); }
protected void odsDetails_ObjectCreated(object sender, ObjectDataSourceEventArgs e) { FormRDBLL bll = (FormRDBLL)e.ObjectInstance; bll.FormDataSet = this.InnerDS; }
protected void odsFormTravelApplyDetails_ObjectCreated(object sender, ObjectDataSourceEventArgs e) { PersonalReimburseBLL bll = (PersonalReimburseBLL)e.ObjectInstance; bll.FormDataSet = this.InnerDS; }