/// <summary> /// Called when [form bound]. /// </summary> protected override void OnFormBound() { if (IsLead) { lueLead.Text = String.Empty; rdgTargetType.SelectedIndex = 1; } else { rdgTargetType.SelectedIndex = 0; } SetTargetTypeDisplay(); LoadCampaignStages(); ClientBindingMgr.RegisterDialogCancelButton(cmdCancel); ClientBindingMgr.RegisterSaveButton(cmdOK); if (dtsOpens.SourceObject == null) { dtsOpens.SourceObject = BindingSource.Current; } if (dtsClicks.SourceObject == null) { dtsClicks.SourceObject = BindingSource.Current; } if (dtsUndeliverables.SourceObject == null) { dtsUndeliverables.SourceObject = BindingSource.Current; } grdProducts.DataSource = dtsProducts2; grdProducts.DataBind(); dtsOpens.Bind(); dtsClicks.Bind(); dtsUndeliverables.Bind(); }
/// <summary> /// Called when the smartpart has been bound. Derived components should override this method to run code that depends on entity /// context being set and it not changing. /// </summary> protected override void OnFormBound() { ClientBindingMgr.RegisterDialogCancelButton(cmdCancel); if (_State != null) { if (!String.IsNullOrEmpty(txtSelectedTab.Value)) { if (Convert.ToInt16(txtSelectedTab.Value) == 1) { divLookupTargets.Style.Add(HtmlTextWriterStyle.Display, "none"); divAddFromGroup.Style.Add(HtmlTextWriterStyle.Display, "inline"); tabLookupTarget.CssClass = "inactiveTab tab"; tabAddFromGroup.CssClass = "activeTab tab"; } else { divAddFromGroup.Style.Add(HtmlTextWriterStyle.Display, "none"); divLookupTargets.Style.Add(HtmlTextWriterStyle.Display, "inline"); tabLookupTarget.CssClass = "activeTab tab"; tabAddFromGroup.CssClass = "inactiveTab tab"; } } grdTargets.DataSource = _State.targetList; } grdTargets.DataBind(); cmdAddTargets.Enabled = grdTargets.Rows.Count > 0; }
/// <summary> /// Raises the <see cref="E:PreRender"/> event. /// </summary> /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> protected override void OnPreRender(EventArgs e) { base.OnPreRender(e); LoadTreeConfig(); ClientBindingMgr.RegisterDialogCancelButton(cmdCancel); if (Visible) { ISalesOrder salesOrder = BindingSource.Current as ISalesOrder; // required to register the .js file used in this page if (DesignMode == false) { if (ScriptManager.GetCurrent(Page) != null) { ScriptManager.GetCurrent(Page).RegisterScriptControl(this); } } if (salesOrder != null) { dtsProducts.SelectParameters.Clear(); string salesorderId = (salesOrder.Id == null) ? string.Empty : salesOrder.Id.ToString(); dtsProducts.SelectParameters.Add("salesorderId", salesorderId); grdProducts.DataBind(); } } if (chkPackage.Checked != _State.Packages) { chkPackage_CheckedChanged(null, null); } }
/// <summary> /// Called when the smartpart has been bound. Derived components should override this method to run code that depends on entity context being set and it not changing. /// </summary> protected override void OnFormBound() { base.OnFormBound(); _parentEntity = GetParentEntity() as IPersistentEntity; _parentEntityReference = _parentEntity as IComponentReference; ClientBindingMgr.RegisterDialogCancelButton(btnCancel); }
protected override void OnFormBound() { base.OnFormBound(); SetTitleBar(); ClientBindingMgr.RegisterDialogCancelButton(cmdCancel); ClientBindingMgr.RegisterSaveButton(cmdOK); }
/// <summary> /// Called when the smartpart has been bound. Derived components should override this method to run code that depends on entity context being set and it not changing. /// </summary> protected override void OnFormBound() { EventArgs e = EventArgs.Empty; ClientBindingMgr.RegisterDialogCancelButton(btnCancel); LoadTemplates(); base.OnFormBound(); }
protected override void OnWireEventHandlers() { base.OnWireEventHandlers(); ClientBindingMgr.RegisterSaveButton(btnOK); ClientBindingMgr.RegisterDialogCancelButton(btnClose); btnClose.Click += DialogService.CloseEventHappened; btnOK.Click += UpdateDataEvent; }
protected override void OnFormBound() { ClientBindingMgr.RegisterDialogCancelButton(cmdClose); dtsLeads.Bind(); dtsMatchingLeads.Bind(); dtsContacts.Bind(); dtsAccounts.Bind(); base.OnFormBound(); }
/// <summary> /// Called when the smartpart has been bound. Derived components should override this method to run code that depends on entity /// context being set and it not changing. /// </summary> protected override void OnFormBound() { ClientBindingMgr.RegisterDialogCancelButton(cmdCancel); if (_state != null) { grdTargets.DataSource = _state.targetList; } grdTargets.DataBind(); cmdAddTargets.Enabled = grdTargets.Rows.Count > 0; }
/// <summary> /// Called when the smartpart has been bound. Derived components should override this method to run code that depends on entity context being set and it not changing. /// </summary> protected override void OnFormBound() { if (ClientBindingMgr != null) { // register these with the ClientBindingMgr so they can do their thing without causing the dirty data warning message... ClientBindingMgr.RegisterBoundControl(lueCampaigns); ClientBindingMgr.RegisterDialogCancelButton(btnCancel); } SetActionState(); base.OnFormBound(); }
/// <summary> /// Called when the smartpart has been bound. Derived components should override this method to run code that depends on entity context being set and it not changing. /// </summary> protected override void OnFormBound() { base.OnFormBound(); if (ClientBindingMgr != null) { // register these with the ClientBindingMgr so they can do their thing without causing the dirty data warning message... ClientBindingMgr.RegisterBoundControl(dtpStartDate); ClientBindingMgr.RegisterBoundControl(pklDescription); ClientBindingMgr.RegisterBoundControl(pklCategory); ClientBindingMgr.RegisterDialogCancelButton(btnCancel); } SetActionState(); }
/// <summary> /// Called when [form bound]. /// </summary> /// protected override void OnFormBound() { base.OnFormBound(); ClientBindingMgr.RegisterDialogCancelButton(cmdCancel); _campaign = (ICampaign)BindingSource.Current; if (DialogService.DialogParameters.Count > 0) { object filterStateObj; if (DialogService.DialogParameters.TryGetValue("TargetSelectedFilterState", out filterStateObj)) { _filterState = filterStateObj as TargetSelectedFilterState; _filterState.IncludeSelectedOnly = true; } } LoadView(); }
protected override void OnFormBound() { base.OnFormBound(); foreach (IUser selUser in _selUsers) { LookupPreFilter pf = new LookupPreFilter(); pf.PropertyName = "Id"; pf.OperatorCode = "!="; pf.FilterValue = string.Format("'{0}'", selUser.Id.ToString()); copyProfileParameter.UserLookupControl.LookupPreFilters.Add(pf); } ClientBindingMgr.RegisterDialogCancelButton(btnCancel); RegisterValidationScript(); }
/// <summary> /// Called when [form bound]. /// </summary> protected override void OnFormBound() { base.OnFormBound(); ClientBindingMgr.RegisterDialogCancelButton(cmdCancel); this._parentEntity = GetParentEntity() as Sage.Platform.Orm.Interfaces.IPersistentEntity; this._parentEntityReference = this._parentEntity as Sage.Platform.ComponentModel.IComponentReference; _stage = (ICampaignStage)this.BindingSource.Current; if (DialogService.DialogParameters.Count > 0) { object mode; if (DialogService.DialogParameters.TryGetValue("Mode", out mode)) { _mode = mode.ToString(); } } LoadView(); }
/// <summary> /// Called when the smartpart has been bound. Derived components should override this method to run code that depends on entity context being set and it not changing. /// </summary> protected override void OnFormBound() { base.OnFormBound(); if (ClientBindingMgr != null) { // register these with the ClientBindingMgr so they can do their thing without causing the dirty data warning message... ClientBindingMgr.RegisterBoundControl(lueResponseLeadSource); ClientBindingMgr.RegisterBoundControl(dtpResponseDate); ClientBindingMgr.RegisterBoundControl(pklResponseStatus); ClientBindingMgr.RegisterBoundControl(pklResponseMethod); ClientBindingMgr.RegisterBoundControl(pklInterest); ClientBindingMgr.RegisterBoundControl(pklInterestLevel); ClientBindingMgr.RegisterBoundControl(lueCampaign); ClientBindingMgr.RegisterDialogCancelButton(btnCancel); } if (Visible) { SetActionState(); } }
protected override void OnFormBound() { ClientBindingMgr.RegisterDialogCancelButton(cmdCancel); if ((Contact != null) & !IsClosing) { Sage.Entity.Interfaces.IContact contact = DialogService.DialogParameters["MoveContact"] as Sage.Entity.Interfaces.IContact; Sage.Entity.Interfaces.IAccount account = DialogService.DialogParameters["ToAccount"] as Sage.Entity.Interfaces.IAccount; this.lueMoveContact.LookupResultValue = contact; this.txtFromAccount.Text = contact.AccountName; this.lueToAccount.LookupResultValue = account; this.lueCompletedItemsContact.SeedProperty = "Account.Id"; this.lueCompletedItemsContact.SeedValue = contact.Account.Id.ToString(); this.lueOpenItemsContact.SeedProperty = "Account.Id"; this.lueOpenItemsContact.SeedValue = contact.Account.Id.ToString(); this.lueCompletedItemsContact.LookupResultValue = DialogService.DialogParameters["CompletedItemsContact"]; this.lueOpenItemsContact.LookupResultValue = DialogService.DialogParameters["OpenItemsContact"]; } base.OnFormBound(); }
protected override void OnFormBound() { if (_loadPricingChanges) { if (DialogService.DialogParameters.ContainsKey("PriceList")) { ISalesOrder salesOrder = BindingSource.Current as ISalesOrder; lblHeader.Text = String.Format(GetLocalResourceObject("lblHeader.Text").ToString(), salesOrder.SalesOrderNumber, salesOrder.Account.AccountName); grdProducts.DataSource = (IList <ComponentView>)DialogService.DialogParameters["PriceList"]; grdProducts.DataBind(); if (grdProducts.DataKeys[0].Values[0] != null) { curNewTotalPrice.Text = grdProducts.DataKeys[0].Values[0].ToString(); } ClientBindingMgr.RegisterDialogCancelButton(btnCancel); } } }
protected override void OnFormBound() { base.OnFormBound(); ClientBindingMgr.RegisterDialogCancelButton(btnCancel); }
protected override void OnFormBound() { ClientBindingMgr.RegisterDialogCancelButton(btnClose); }