/// <summary>
    /// Handles the OnClick event of the cmdStartDate 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 cmdStartDate_OnClick(object sender, EventArgs e)
    {
        string[]        args         = startDateContext.Value.Split(':');
        string          spaid        = args[0];
        DateTime        startDate    = ResolveDateTime(args[1]);
        ISalesProcesses salesProcess = Helpers.GetSalesProcess(EntityContext.EntityID.ToString());

        salesProcess.StartStage(spaid, startDate);
        salesProcess.Save();
    }
Exemplo n.º 2
0
    /// <summary>
    /// Handles the OnClick event of the cmdStartDate 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 cmdStartDate_OnClick(object sender, EventArgs e)
    {
        string contextValue = Request.Form[ResolveClientId(startDateContext.ClientID)];

        string[]        args         = contextValue.Split(new Char[] { ':' });
        string          spaid        = args[0];
        DateTime        startDate    = ResolveDateTime(args[1]);
        ISalesProcesses salesProcess = Sage.SalesLogix.SalesProcess.Helpers.GetSalesProcess(this.EntityContext.EntityID.ToString());

        salesProcess.StartStage(spaid, startDate);
        salesProcess.Save();
    }