protected void cmdOK_Click(object sender, EventArgs e)
 {
     try
     {
         object   contactId;
         object[] objarray = new object[] {
             this.lueMoveContact.LookupResultValue,
             this.lueToAccount.LookupResultValue,
             (Boolean)(this.rblCopyMoved.SelectedIndex == 0),
             (Boolean)(this.rblUseKeep.SelectedIndex == 0),
             this.chkCopyHistory.Checked,
             this.chkCopyActivities.Checked,
             this.lueOpenItemsContact.LookupResultValue,
             this.lueCompletedItemsContact.LookupResultValue
         };
         contactId = Sage.Platform.Orm.DynamicMethodLibraryHelper.Instance.Execute("Contact.MoveContact", objarray);
         DialogService.CloseEventHappened(sender, e);
         if (contactId != null)
         {
             Response.Redirect(string.Format("Contact.aspx?entityId={0}", (contactId.ToString())));
         }
     }
     catch (Exception error)
     {
         if (error.InnerException != null)
         {
             DialogService.ShowMessage(error.InnerException.Message, "SalesLogix");
         }
         else
         {
             DialogService.ShowMessage(error.Message, "SalesLogix");
         }
     }
 }
示例#2
0
 /// <summary>
 /// Handles the OnClick event of the AddTargets control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="System.Web.UI.WebControls.GridViewSortEventArgs"/> instance containing the event data.</param>
 protected void AddTargets_OnClick(object sender, EventArgs e)
 {
     if (_State != null)
     {
         if (_State.targetList.Rows.Count > 0)
         {
             //SetStartProcessInfo();
             InsertTargetManager insertManager = new InsertTargetManager();
             insertManager.CampaignId = EntityContext.EntityID.ToString();
             insertManager.TargetList = _State.targetList;
             insertManager.TargetType = _State.targetType;
             insertManager.GroupName  = _State.groupName;
             insertManager.StartTargetInsertProcess();
             //SetCompleteProcessInfo();
             DialogService.CloseEventHappened(sender, e);
             Refresh();
             //if (DialogService != null)
             //{
             //    DialogService.SetSpecs(200, 200, 200, 450, "InsertTargetProgress");
             //    DialogService.DialogParameters.Add("targetsDataTable", _State.targetList);
             //    DialogService.ShowDialog();
             //}
         }
         else
         {
             DialogService.ShowMessage(GetLocalResourceObject("error_NoTargetsSelected").ToString());
         }
     }
     else
     {
         DialogService.ShowMessage(GetLocalResourceObject("error_NoTargetsSelected").ToString());
     }
 }
示例#3
0
 protected void cmdSchedule_Click(object sender, EventArgs e)
 {
     try
     {
         if (this.cboProcessType.DataSource != null)
         {
             Plugin selectedPlugin;
             selectedPlugin = ((IList <Plugin>) this.cboProcessType.DataSource)[this.cboProcessType.SelectedIndex];
             object[] objarray = new object[] {
                 this.lueContactToScheduleFor.LookupResultValue,
                 selectedPlugin.PluginId,
                 selectedPlugin.Family,
                 selectedPlugin.Name,
                 this.ownProcessOwner.LookupResultValue
             };
             Sage.Platform.Orm.DynamicMethodLibraryHelper.Instance.Execute("Contact.ScheduleProcess", objarray);
             DialogService.CloseEventHappened(sender, e);
             Sage.Platform.WebPortal.Services.IPanelRefreshService refresher = PageWorkItem.Services.Get <Sage.Platform.WebPortal.Services.IPanelRefreshService>();
             refresher.RefreshTabWorkspace();
         }
         else
         {
             DialogService.ShowMessage(GetLocalResourceObject("Error_ProcessTypes").ToString(), "SalesLogix");
         }
     }
     catch (Exception error)
     {
         DialogService.ShowMessage(error.InnerException.Message, "SalesLogix");
     }
 }
 /// <summary>
 /// Handles the OnRowCommand event of the grdCampaign control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
 protected void grdCampaign_OnRowCommand(object sender, EventArgs e)
 {
     if (DialogService != null)
     {
         DialogService.CloseEventHappened(sender, e);
     }
     Refresh();
 }
示例#5
0
    /// <summary>
    /// Handles the OnClick event of the cmdSave control.
    /// </summary>
    /// <param name="sender">The source of the event.</param>
    /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
    protected void cmdSave_OnClick(object sender, EventArgs e)
    {
        ICampaignStage stage = this.BindingSource.Current as ICampaignStage;

        stage.Save();
        IPanelRefreshService refresher = PageWorkItem.Services.Get <IPanelRefreshService>();

        refresher.RefreshAll();
        DialogService.CloseEventHappened(sender, e); //Close Dialog
    }
 // обработчик нажатия на кнопку добавления продукта в БД
 private void btnSave_Click(object sender, EventArgs e)
 {
     CurrentEntity.Amount       = Convert.ToDecimal(txtAmount.Text);
     CurrentEntity.InterestRate = Convert.ToDecimal(txtInterestrate.Text);
     CurrentEntity.AccountId    = Convert.ToString((lueAccount.LookupResultValue as IAccount).Id);
     CurrentEntity.FbMyProduct  = lueFbMyProduct.LookupResultValue as IFbMyProduct;
     CurrentEntity.Save();
     DialogService.CloseEventHappened(sender, e);
     PanelRefresh.RefreshAll();
 }
示例#7
0
    /// <summary>
    /// Handles the Click event of the cmdOK control.
    /// </summary>
    /// <param name="sender">The source of the event.</param>
    /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
    protected void cmdOK_Click(object sender, EventArgs e)
    {
        SaveOptions();
        DialogService.CloseEventHappened(sender, e);
        IPanelRefreshService refresher = PageWorkItem.Services.Get <IPanelRefreshService>();

        if (refresher != null)
        {
            refresher.RefreshAll();
        }
    }
 /// <summary>
 /// Handles the OnRowCommand event of the grdCampaign control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
 protected void grdCampaign_OnRowCommand(object sender, GridViewCommandEventArgs e)
 {
     if (e.CommandName == "Associate")
     {
         if (DialogService != null)
         {
             DialogService.CloseEventHappened(sender, e);
         }
         Refresh();
     }
 }
示例#9
0
    protected void cmdOK_Click(object sender, EventArgs e)
    {
        try
        {
            // if there is no target account selected, return and notify user
            if (lueTargetAccount.LookupResultValue == null)
            {
                lblTargetAccountErr.Visible = true;
                return;
            }

            // check to make sure the contact is not being copied to same account
            if (Contact.Account.Equals(lueTargetAccount.LookupResultValue))
            {
                lblTargetAccountErr.Visible = true;
                return;
            }
            // get the source account
            var theAcct = (IAccount)lueTargetAccount.LookupResultValue;

            // create a dictionary fo key value pairs for all the selected copy options
            var options = new Dictionary <string, bool>
            {
                { "AssociateWithSource", chkAssociateWithSource.Checked },
                { "UseTargetAddressPhn", chkUseTargetAddressPhn.Checked },
                { "CopyNotes", chkCopyNotes.Checked },
                { "CopyActivities", chkCopyActivities.Checked },
                { "CopyHistory", chkCopyHistory.Checked }
            };
            // session wrapper to pass in
            ISession session = new SessionScopeWrapper();

            // call the CopyToNewContact method
            var copiedContact = Contact.CopyNewContact(theAcct, options, session);

            if (copiedContact.Id != null)
            {
                Response.Redirect(string.Format("Contact.aspx?entityId={0}", (copiedContact.Id)), false);
            }
        }
        catch (Exception ex)
        {
            string sSlxErrorId = null;
            var    sMsg        = ErrorHelper.GetClientErrorHtmlMessage(ex, ref sSlxErrorId);
            if (!string.IsNullOrEmpty(sSlxErrorId))
            {
                log.Error(ErrorHelper.AppendSlxErrorId("The call to SmartParts_Contact_CopyNewContact.cmdOK_Click failed", sSlxErrorId),
                          ex);
            }
            DialogService.ShowHtmlMessage(sMsg, ErrorHelper.IsDevelopmentContext() ? 600 : -1,
                                          ErrorHelper.IsDevelopmentContext() ? 800 : -1);
        }
        DialogService.CloseEventHappened(sender, e);
    }
示例#10
0
 /// <summary>
 /// Handles the OnRowCommand event of the grdDuplicates control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="System.Web.UI.WebControls.GridViewCommandEventArgs"/> instance containing the event data.</param>
 protected void grdMatches_OnRowCommand(object sender, GridViewCommandEventArgs e)
 {
     if (e.CommandName.Equals("Open"))
     {
         int    rowIndex   = Convert.ToInt32(e.CommandArgument);
         string Id         = grdMatches.DataKeys[rowIndex].Values[0].ToString();
         string entityName = grdMatches.DataKeys[rowIndex].Values[1].ToString();
         Response.Redirect(string.Format("{0}.aspx?entityId={1}", entityName, Id));
         DialogService.CloseEventHappened(sender, e);
     }
 }
示例#11
0
    /// <summary>
    /// Handles the OnClick event of the cmdSave control.
    /// </summary>
    /// <param name="sender">The source of the event.</param>
    /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
    protected void cmdSave_OnClick(object sender, EventArgs e)
    {
        ICampaignTask task = BindingSource.Current as ICampaignTask;

        ResolveOwner(task);
        task.Save();

        IPanelRefreshService refresher = PageWorkItem.Services.Get <IPanelRefreshService>();

        refresher.RefreshAll();
        DialogService.CloseEventHappened(sender, e);
    }
    /// <summary>
    /// Handles the OnClick event of the cmdOK control.
    /// </summary>
    /// <param name="sender">The source of the event.</param>
    /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
    protected void cmdOK_OnClick(object sender, EventArgs e)
    {
        if (string.IsNullOrEmpty(txtGroupName.Text))
        {
            DialogService.ShowMessage(GetLocalResourceObject("error_NoGroupName").ToString());
            return;
        }
        if (DialogService.DialogParameters.Count > 0)
        {
            if (DialogService.DialogParameters.ContainsKey("TargetSelectedFilterState"))
            {
                string groupId = String.Empty;
                TargetSelectedFilterState filterState = DialogService.DialogParameters["TargetSelectedFilterState"] as TargetSelectedFilterState;
                TargetsViewDataSource     ds          = new TargetsViewDataSource();
                string targetIds = null;
                ds.SelectedFilterState = filterState;
                if (lbxGroupType.SelectedValue.Equals("Contact"))
                {
                    filterState.IncludeContacts = true;
                    filterState.IncludeLeads    = false;
                }
                else
                {
                    filterState.IncludeContacts = false;
                    filterState.IncludeLeads    = true;
                }

                targetIds = ConvertToString(rdgGroupMembers.SelectedIndex == 0 ? ds.GetEntityIds(false) : ds.GetEntityIds(true));
                if (!string.IsNullOrEmpty(targetIds))
                {
                    groupId = GroupInfo.CreateAdHocGroup(targetIds, lbxGroupType.SelectedValue, txtGroupName.Text);
                }
                else
                {
                    throw new ValidationException(String.Format(GetLocalResourceObject("error_NoTargetsFound").ToString(), lbxGroupType.SelectedValue));
                }

                if (!String.IsNullOrEmpty(groupId))
                {
                    Response.Redirect(lbxGroupType.SelectedValue.Equals("Contact")
                                          ? string.Format("Contact.aspx?gid={0}", groupId)
                                          : string.Format("Lead.aspx?gid={0}", groupId));
                }
            }
            else
            {
                DialogService.ShowMessage(GetLocalResourceObject("error_NoDataSourceFound").ToString());
            }
            DialogService.CloseEventHappened(sender, e);
            Refresh();
        }
    }
示例#13
0
 /// <summary>
 /// Handles the Click event of the btnOK control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
 protected void btnOK_Click(object sender, EventArgs e)
 {
     try
     {
         SaveContact(true);
         _Saved = true;
         DialogService.CloseEventHappened(sender, e);
     }
     catch (Exception ex)
     {
         handleException(ex);
     }
 }
示例#14
0
    protected void cmdOK_Click(object sender, EventArgs e)
    {
        if (BindingSource != null)
        {
            ISalesOrder salesOrder = BindingSource.Current as ISalesOrder;

            if (salesOrder != null)
            {
                if ((salesOrder.PersistentState & Sage.Platform.Orm.Interfaces.PersistentState.New) <= 0)
                {
                    salesOrder.Save();
                }
            }
        }
        DialogService.CloseEventHappened(sender, e);
        Refresh();
    }
 /// <summary>
 /// Handles the OnClick event of the btnNext control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
 protected void btnNext_OnClick(object sender, EventArgs e)
 {
     lblExtendedDetails.Visible = false;
     ContextService.RemoveContext("MergeContactsStateInfo");
     if (DialogService.DialogParameters.ContainsKey("mergeArguments"))
     {
         if (SessionMergeArguments.TargetEntityType == typeof(IAccount) && SessionMergeArguments.MatchingRecordView.MatchedContacts.Count > 0)
         {
             ShowDialog("MergeContactAddress", GetLocalResourceObject("LinkContactAddresses.Caption").ToString(), 600, 1300);
         }
         else
         {
             SessionMergeArguments.MergeProvider.AssignMatchedChildren(SessionMergeArguments.MatchingRecordView);
             if (Sage.SalesLogix.BusinessRules.BusinessRuleHelper.MergeRecords(SessionMergeArguments))
             {
                 using (new Sage.Platform.Orm.SessionScopeWrapper(true))
                 {
                     Type              type     = SessionMergeArguments.MergeProvider.Target.EntityType;
                     string            entityId = SessionMergeArguments.MergeProvider.Source.EntityId;
                     IPersistentEntity source   = Sage.Platform.EntityFactory.GetById(type, entityId) as IPersistentEntity;
                     source.Delete();
                     EntityService.RemoveEntityHistory(type, source);
                     DialogService.CloseEventHappened(sender, e);
                     Response.Redirect(String.Format("{0}.aspx", GetEntityName(type)));
                 }
             }
         }
     }
     else
     {
         int height = 250;
         int width  = 500;
         if (IntegrationManager.MergeData())
         {
             IntegrationManager.LinkChildren = true;
             IntegrationManager.LinkOperatingCompany();
         }
         if (!String.IsNullOrEmpty(IntegrationManager.LinkAccountError))
         {
             height = 500;
             width  = 750;
         }
         ShowDialog("LinkResults", GetLocalResourceObject("LinkToAccounting.Caption").ToString(), height, width);
     }
 }
    /// <summary>
    /// Handles the OnRowCommand event of the grdAccounts control.
    /// </summary>
    /// <param name="sender">The source of the event.</param>
    /// <param name="e">The <see cref="System.Web.UI.WebControls.GridViewCommandEventArgs"/> instance containing the event data.</param>
    protected void grdAccountMatches_OnRowCommand(object sender, GridViewCommandEventArgs e)
    {
        if (e.CommandName.Equals("UseAccount"))
        {
            int    rowIndex = Convert.ToInt32(e.CommandArgument);
            string Id       = grdAccountMatches.DataKeys[rowIndex].Value.ToString();

            if (!DialogService.DialogParameters.ContainsKey("JumpID"))
            {
                DialogService.DialogParameters.Add("JumpID", Id);
            }
            else
            {
                DialogService.DialogParameters["JumpID"] = Id;
            }
            DialogService.CloseEventHappened(sender, e);
        }
    }
示例#17
0
 protected void cmdSchedule_Click(object sender, EventArgs e)
 {
     if (lueContactToScheduleFor.LookupResultValue == null)
     {
         throw new ValidationException(GetLocalResourceObject("error_ScheduleFor.Message").ToString());
     }
     try
     {
         LoadOwner();
         if (cboProcessType.DataSource != null)
         {
             Plugin   selectedPlugin = ((IList <Plugin>)cboProcessType.DataSource)[cboProcessType.SelectedIndex];
             object[] objarray       = new[]
             {
                 lueContactToScheduleFor.LookupResultValue,
                 selectedPlugin.PluginId,
                 selectedPlugin.Family,
                 selectedPlugin.Name,
                 ownProcessOwner.LookupResultValue
             };
             Sage.Platform.Orm.DynamicMethodLibraryHelper.Instance.Execute("Contact.ScheduleProcess", objarray);
             DialogService.CloseEventHappened(sender, e);
             IPanelRefreshService refresher = PageWorkItem.Services.Get <IPanelRefreshService>(true);
             refresher.RefreshTabWorkspace();
         }
         else
         {
             DialogService.ShowMessage(GetLocalResourceObject("Error_ProcessTypes").ToString(), "SalesLogix");
         }
     }
     catch (Exception ex)
     {
         string sSlxErrorId = null;
         var    sMsg        = ErrorHelper.GetClientErrorHtmlMessage(ex, ref sSlxErrorId);
         if (!string.IsNullOrEmpty(sSlxErrorId))
         {
             log.Error(
                 ErrorHelper.AppendSlxErrorId(
                     "The call to SmartParts_Process_ScheduleProcess.cmdSchedule_Click failed", sSlxErrorId), ex);
         }
         DialogService.ShowHtmlMessage(sMsg, ErrorHelper.IsDevelopmentContext() ? 600 : -1,
                                       ErrorHelper.IsDevelopmentContext() ? 800 : -1);
     }
 }
    /// <summary>
    /// Handles the Click event of the ok button control.
    /// </summary>
    /// <param name="sender">The source of the event.</param>
    /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
    protected void OK_Click(object sender, EventArgs e)
    {
        Type context = GetContext();

        if (context == typeof(IUser))
        {
            UserAddToTeam();
        }
        else if (context == typeof(ITeam))
        {
            TeamAddToTeam();
        }
        else if (context == typeof(IDepartment))
        {
            DepAddToTeam();
        }

        DialogService.CloseEventHappened(this, null);
    }
 /// <summary>
 /// Handles the OnClick event of the cmdSave control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
 protected void cmdSave_OnClick(object sender, EventArgs e)
 {
     if (String.IsNullOrEmpty(txtDescription.Text))
     {
         throw new ValidationException(GetLocalResourceObject("error_NoTemplateDescription").ToString());
     }
     else if (!ImportRules.IsValidTemplateDescription(txtDescription.Text))
     {
         throw new ValidationException(String.Format(GetLocalResourceObject("error_DuplicateTemplateDescription").ToString(), txtDescription.Text));
     }
     else
     {
         try
         {
             ImportManager importManager = Page.Session["importManager"] as ImportManager;
             if (importManager != null)
             {
                 ImportTemplateManager templateManager = new ImportTemplateManager(importManager.EntityManager);
                 templateManager.TemplateName           = txtDescription.Text;
                 templateManager.ImportOptions          = importManager.Options;
                 templateManager.ImportSourceOptions    = importManager.SourceReader.GetSourceOptions();
                 templateManager.SourceProperties       = importManager.SourceReader.SourceProperties;
                 templateManager.ImportMaps             = importManager.ImportMaps;
                 templateManager.TargetPropertyDefaults = importManager.TargetPropertyDefaults;
                 templateManager.Owner = ImportRules.GetDefaultOwner();
                 templateManager.SaveNewTemplate();
                 importManager.Options.Template = txtDescription.Text;
                 Page.Session["importManager"]  = importManager;
             }
             else
             {
                 log.Warn(String.Format(GetLocalResourceObject("error_templateManager").ToString(), String.Empty));
             }
         }
         catch (Exception ex)
         {
             log.Error(String.Format(GetLocalResourceObject("error_templateManager").ToString(), ex.Message));
         }
         DialogService.CloseEventHappened(sender, e);
         Refresh();
     }
 }
    protected void cmdOK_Click(object sender, EventArgs e)
    {
        IOpportunity opportunity = this.BindingSource.Current as IOpportunity;

        if (opportunity != null)
        {
            IExchangeRate exchRate = EntityFactory.GetById <IExchangeRate>(lveChangeRate.Text);
            try
            {
                opportunity.ExchangeRateCode = exchRate.Id.ToString();
                opportunity.ExchangeRate     = Convert.ToDouble(txtExchangeRate.Text);
                opportunity.Save();
            }
            catch (Exception)
            {
                throw new ApplicationException(GetLocalResourceObject("Error_ChangingExchangeRate").ToString());
            }
        }

        DialogService.CloseEventHappened(sender, e);
        Refresh();
    }
示例#21
0
    protected void btnOK_ClickAction(object sender, EventArgs e)
    {
        var    entityPage = Page as Sage.Platform.WebPortal.EntityPage;
        string providerId = String.Empty;

        if (entityPage != null)
        {
            var provider = EntityFactory.GetById <IIntegration>(entityPage.EntityContext.EntityID);
            providerId = provider.OAuthProvider.Id.ToString();
        }
        else
        {
            if (DialogService.DialogParameters.ContainsKey("ProviderId"))
            {
                providerId = DialogService.DialogParameters["ProviderId"] as string;
            }
        }
        AuthorizationServiceViewControllerBase.HandleOkClick(txtAutheticationId.Text, txtUserName.Text, providerId);
        var refresher = PageWorkItem.Services.Get <IPanelRefreshService>();

        refresher.RefreshAll();
        DialogService.CloseEventHappened(null, EventArgs.Empty);
    }
示例#22
0
    protected void cmdOK_Click(object sender, EventArgs e)
    {
        var opportunity = BindingSource.Current as IOpportunity;

        if (opportunity != null)
        {
            var exchRate = EntityFactory.GetRepository <IExchangeRate>()
                           .FindFirstByProperty("CurrencyCode", lveChangeRate.Text);
            try
            {
                opportunity.ExchangeRateCode = exchRate.CurrencyCode;
                opportunity.ExchangeRate     = Convert.ToDouble(txtExchangeRate.Text);
                opportunity.Save();
            }
            catch (Exception ex)
            {
                log.Error("Unexpected error in cmdOK_Click().", ex);
                throw new UserObservableApplicationException(
                          GetLocalResourceObject("Error_ChangingExchangeRate").ToString(), ex);
            }
        }
        DialogService.CloseEventHappened(sender, e);
        Refresh();
    }
    private void UpdateDataEvent(object sender, EventArgs e)
    {
        var groupId = string.Empty;
        var message = string.Empty;

        using (var session = new SessionScopeWrapper())
        {
            groupId = session.CreateSQLQuery("select FB_COMGACC.FB_COMPANIESGROUPID from FB_COMGACC where FB_COMGACC.ENTITYID = :accountId")
                      .SetString("accountId", Convert.ToString(ParentAccount.Id))
                      .List <string>()
                      .FirstOrDefault();
        }

        if (groupId == null)
        {
            message += (string.IsNullOrEmpty(message) ? string.Empty : "<br/>") + " - " + Convert.ToString(GetLocalResourceObject("lblCompanyGroupName.Text")).Replace(":", string.Empty);
        }

        if (!string.IsNullOrEmpty(message))
        {
            ScriptManager.RegisterStartupScript(this, GetType(), ClientID + "_RequiredFiledsValidation", "setTimeout(function() { Sage.UI.Dialogs.alert('" + GetLocalResourceObject("RequiredFiledsValidation.Message") + "<br/>" + message + "'); }, 1);", true);
            return;
        }

        CurrentEntity.Category         = "3" + pklCategory.PickListValue;
        CurrentEntity.RegistrationDate = dtpRegistrationDate.DateTimeValue.HasValue ? (DateTime?)dtpRegistrationDate.DateTimeValue.Value.ToLocalTime() : null;
        CurrentEntity.Save();

        using (var session = new SessionScopeWrapper())
        {
            session.Refresh(CurrentEntity);
        }

        PanelRefresh.RefreshAll();
        DialogService.CloseEventHappened(sender, e);
    }
示例#24
0
 protected void cmdCancel_Click(object sender, EventArgs e)
 {
     DialogService.CloseEventHappened(sender, e);
 }
    /// <summary>
    /// Handles the Click event of the ok button control.
    /// </summary>
    /// <param name="sender">The source of the event.</param>
    /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
    protected void OK_Click(object sender, EventArgs e)
    {
        ReplaceMemberOnAllTeam();

        DialogService.CloseEventHappened(this, null);
    }
示例#26
0
 /// <summary>
 /// Handles the OnClick event of the cmdClose control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
 protected void cmdClose_OnClick(object sender, EventArgs e)
 {
     DialogService.CloseEventHappened(sender, e);
     PanelRefresh.RefreshTabWorkspace();
 }
 /// <summary>
 /// Handles the OnClick event of the cmdClose control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
 protected void cmdClose_OnClick(object sender, EventArgs e)
 {
     DialogService.CloseEventHappened(sender, e);
     Refresh();
 }