protected void SendIMC(ModuleCommunicationEventArgs args)
 {
     if (ModuleCommunication != null)
     {
         ModuleCommunication(this, args);
     }
 }
 public void OnModuleCommunication(object s, ModuleCommunicationEventArgs e)
 {
     if (e.Target == "ToolBarMessageUser")
     {
         // this.TextBox1.Text = e.Text;
     }
 }
        protected void imgBtnSearch_Click(object sender, ImageClickEventArgs e)
        {
            ModuleCommunicationEventArgs mcArgs = GetMCArgs("");

            mcArgs.Target = "SYSGD_ResultatsRecherche";
            mcArgs.Text   = txtSearchString.Text;

            SendIMC(mcArgs);
        }
 public void OnModuleCommunication(object s,
                                   ModuleCommunicationEventArgs e)
 {
     if (e.Target == "ToolBarMessageUser")
     {
         // On doit passer les messages aux ascx internes.
         this.ViewDossier.OnModuleCommunication(s, e);
     }
 }
        protected ModuleCommunicationEventArgs GetMCArgs(string txt)
        {
            ModuleCommunicationEventArgs mcArgs =
                new ModuleCommunicationEventArgs();

            mcArgs.Sender = "WebEditToolBar";
            mcArgs.Target = "ToolBarMessageUser";
            mcArgs.Text   = txt;
            return(mcArgs);
        }
 /// <summary>
 /// Called when [module communication]. Ce code est associé à l'interface IModuleListener
 /// </summary>
 /// <param name="s">The s.</param>
 /// <param name="e">The <see cref="DotNetNuke.Entities.Modules.Communications.ModuleCommunicationEventArgs"/> instance containing the event data.</param>
 public void OnModuleCommunication(object s, ModuleCommunicationEventArgs e)
 {
     if (e.Target == "SYSGD_ResultatsRecherche")
     {
         this.divSearch.Visible = true;
         this.btnClear.Visible  = true;
         this.txtSearchArg.Text = e.Text;
         //Ajouter ici le traitement des messages
         LoadData(e.Text);
     }
 }
        /// <summary>
        /// Handles the Search event of the Btn 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 Btn_Search(System.Object sender, System.EventArgs e)
        {
            ModuleCommunicationEventArgs mcArgs =
                new ModuleCommunicationEventArgs();

            mcArgs.Target = "EntitePrincipale";
            mcArgs.Sender = "SYSGD_ResultatsRecherche";
            mcArgs.Text   = ((LinkButton)sender).CommandArgument;
            if (ModuleCommunication != null)
            {
                ModuleCommunication(this, mcArgs);
            }
        }
Ejemplo n.º 8
0
		void ctrlSearch_SearchClicked(object sender, EventArgs e)
		{
			try
			{
				GridView1.PageIndex = 0;
				GridView1.SelectedIndex = -1;
				SelectedKey = null;
				List<string> param = new List<string>();
				SearchParameters = ctrlSearch.SearchParameters;
				if (ModuleCommunication != null)
				{
					ModuleCommunicationEventArgs args = new ModuleCommunicationEventArgs
						{Sender = "BBQuery", Target = "", Text = ModuleId.ToString(), Type = "", Value = SearchParameters};
					ModuleCommunication(this, args);
				}
			}
			catch (Exception exc)
			{
				Exceptions.ProcessModuleLoadException(this, exc);
			}
		}
Ejemplo n.º 9
0
		public void OnModuleCommunication(object s, ModuleCommunicationEventArgs e)
		{
			if (e.Sender=="BBQuery")
			{
				int senderModuleID = Convert.ToInt32(e.Text);
				if (senderModuleID != ModuleId)
				{
					List<ParameterInfo> senderParams = (List<ParameterInfo>) e.Value;
					SearchParameters = new List<ParameterInfo>();
					foreach (ParameterInfo senderParam in senderParams)
					{
						bool found = false;
						foreach (ParameterInfo searchParameter in SearchParameters)
						{
							if (searchParameter.FieldName == senderParam.FieldName)
							{
								searchParameter.Value = senderParam.Value;
								found = true;
							}
						}
						if (!found)
						{
							BBQueryController cont = new BBQueryController();
							List<ParameterInfo> parameters = cont.GetParameters(TabModuleId, false);
							foreach (ParameterInfo parameter in parameters)
							{
								if (parameter.FieldName == senderParam.FieldName)
								{
									parameter.Value = senderParam.Value;
									SearchParameters.Add(parameter);
								}
							}
						}
					}
				}
			}
		}
Ejemplo n.º 10
0
        public void OnModuleCommunication(object s, ModuleCommunicationEventArgs e)
        {
            string[] dateRangeData = e.Value.ToString().Split(';');

            string senderIdentifier = "Transcript" + _settings.LearnerModuleId.ToString();

            if (e.Sender == senderIdentifier)
            {
                if (dateRangeData.Length > 2)
                {
                    String   dateRange = dateRangeData[0];
                    DateTime startDate = Convert.ToDateTime(dateRange[1]);
                    DateTime endDate   = Convert.ToDateTime(dateRange[2]);

                    _settings.BeginDate = startDate;
                    _settings.EndDate   = ctlCompletionDate.EndDate;
                    _settings.DateRange = ctlCompletionDate.DateRange;

                    ctlCompletionDate.DateRange = dateRange;
                    ctlCompletionDate.StartDate = startDate;
                    ctlCompletionDate.EndDate   = endDate;
                }
            }
        }
        protected void imgBtnPrint_Click(object sender, ImageClickEventArgs e)
        {
            ModuleCommunicationEventArgs mcArgs = GetMCArgs("btnPrint");

            SendIMC(mcArgs);
        }
Ejemplo n.º 12
0
 public void OnModuleCommunication(object s,
                                   ModuleCommunicationEventArgs e)
 {
     this.TextBox2.Text = e.Text + " " + e.Target;
 }