private void ImpressionHabilitation(string code)
        {
            AdministrationServiceClient client = new AdministrationServiceClient(Utility.ProtocoleFacturation(), Utility.EndPoint("Administration"));

            client.RetourneFonctionProfilCentreCompleted += (ss, res) =>
            {
                try
                {
                    if (res.Cancelled || res.Error != null)
                    {
                        string error = res.Error.Message;
                        Message.ShowError(error, "Erreur de donnée");
                        return;
                    }

                    if (res.Result == null || res.Result.Count == 0)
                    {
                        Message.ShowInformation("Aucune données trouvé", "Information");
                        return;
                    }
                    lstAImprimer = res.Result;
                    Galatee.Silverlight.Shared.FrmOptionEditon ctrl = new Shared.FrmOptionEditon();
                    ctrl.Closed += ctrl_Closed;
                    //this.IsEnabled = false;
                    ctrl.Show();
                    //Effectue l'aperçcu avant imprèssion
                    //Utility.ActionDirectOrientation<ServicePrintings.CsHabilitationMetier, ServiceAdministration.CsHabilitationMetier>(res.Result, param, SessionObject.DefaultPrinter, "ReportHabillitationMetier", "Administration", false);
                }
                catch (Exception ex)
                {
                    Message.ShowError(ex.Message, "Information");
                }
            };
            client.RetourneFonctionProfilCentreAsync(code);
        }
 private void btnPrint_Click(object sender, RoutedEventArgs e)
 {
     param = new Dictionary <string, string>();
     try
     {
         param.Add("RptParam_Code", Languages.Code.ToUpper());
         param.Add("RptParam_Libelle", Languages.Libelle.ToUpper());
         param.Add("RptParam_DateCreation", Languages.DateCreation);
         param.Add("RptParam_DateModification", Languages.DateModification);
         param.Add("RptParam_UserCreation", Languages.UserCreation);
         param.Add("RptParam_UserModification", Languages.UserModification);
         param.Add("RptParam_Title", Languages.ListeConsommateur.ToUpper());
         if (DonnesDatagrid.Count == 0)
         {
             throw new Exception(Languages.AucuneDonneeAImprimer);
         }
         lstDonnee = DonnesDatagrid.ToList();
         Galatee.Silverlight.Shared.FrmOptionEditon ctrl = new Shared.FrmOptionEditon();
         ctrl.Closed   += ctrl_Closed;
         this.IsEnabled = false;
         ctrl.Show();
     }
     catch (Exception ex)
     {
     }
 }
 private void Imprimer()
 {
     param = new Dictionary <string, string>();
     try
     {
         if (dgScelle.ItemsSource != null)
         {
             foreach (CsRemiseScelleByAg item in donnesDatagridRemise)
             {
                 lstDonnee.Add(item);
             }
             lstDonnee.ForEach(t => t.lot_ID = this.txt_LibelleAgentScelle.Text);
             if (this.Cbo_Motif.SelectedItem != null)
             {
                 lstDonnee.ForEach(t => t.libelleStatus = ((CsRefStatutsScelles)this.Cbo_Motif.SelectedItem).Status);
             }
         }
         Galatee.Silverlight.Shared.FrmOptionEditon ctrl = new Shared.FrmOptionEditon();
         ctrl.Closed   += ctrl_Closed;
         this.IsEnabled = false;
         ctrl.Show();
     }
     catch (Exception ex)
     {
     }
 }
 private void OKButton_Click(object sender, RoutedEventArgs e)
 {
     Galatee.Silverlight.Shared.FrmOptionEditon ctrl = new Shared.FrmOptionEditon();
     ctrl.Closed   += ctrl_Closed;
     this.IsEnabled = false;
     ctrl.Show();
 }
示例#5
0
        private void Imprimer(List <CsCasind> lstCas)
        {
            try
            {
                param = new Dictionary <string, string>();

                if (DonnesDatagrid.Count == 0)
                {
                    throw new Exception(Languages.AucuneDonneeAImprimer);
                }
                param.Add("Rpt_Cas", Languages.ColonneCode.ToUpper());
                param.Add("RptParam_DateCreation", Languages.DateCreation);
                param.Add("RptParam_DateModification", Languages.DateModification);
                param.Add("RptParam_UserCreation", Languages.UserCreation);
                param.Add("RptParam_UserModification", Languages.UserModification);
                param.Add("RptParam_Libelle", Languages.ColonneLibelle.ToUpper());
                param.Add("Rpt_Param_Enquete", Languages.ColonneEnquete.ToUpper());
                param.Add("RptParam_Centre", Languages.ColonneCentre.ToUpper());
                param.Add("RptParam_Title", Languages.ListeCasReleve.ToUpper());
                param.Add("Rpt_Param_Facture", Languages.ColonneFacture.ToUpper());
                param.Add("Rpt_Param_LibFac", Languages.ColonneLibFac.ToUpper());
                param.Add("Rpt_Param_LibCourt", Languages.ColonneLibcourt.ToUpper());

                lstDonnee = lstCas;
                Galatee.Silverlight.Shared.FrmOptionEditon ctrl = new Shared.FrmOptionEditon();
                ctrl.Closed   += ctrl_Closed;
                this.IsEnabled = false;
                ctrl.Show();
            }
            catch (Exception ex)
            {
            }
        }
示例#6
0
 private void btnPrint_Click(object sender, RoutedEventArgs e)
 {
     param = new Dictionary <string, string>();
     try
     {
         param.Add("RptParam_Libelle", Languages.Libelle.ToUpper());
         param.Add("RptParam_DateCreation", Languages.DateCreation);
         param.Add("RptParam_DateModification", Languages.DateModification);
         param.Add("RptParam_UserCreation", Languages.UserCreation);
         param.Add("RptParam_UserModification", Languages.UserModification);
         param.Add("Rpt_RegCli", Languages.Regroupement.ToUpper());
         param.Add("Rpt_Denomination", Languages.LibelleDenomination.ToUpper());
         param.Add("Rpt_Adresse1", Languages.Adresse.ToUpper() + " 1");
         param.Add("Rpt_Adresse2", Languages.Adresse.ToUpper() + " 2");
         param.Add("Rpt_CodePostal", Languages.CodePostal.ToUpper());
         param.Add("Rpt_Bureau", Languages.Bureau.ToUpper());
         param.Add("RptParam_Title", Languages.ListeRegroupementClient.ToUpper());
         if (DonnesDatagrid.Count == 0)
         {
             throw new Exception(Languages.AucuneDonneeAImprimer);
         }
         lstDonnee = DonnesDatagrid.ToList();
         Galatee.Silverlight.Shared.FrmOptionEditon ctrl = new Shared.FrmOptionEditon();
         ctrl.Closed   += ctrl_Closed;
         this.IsEnabled = false;
         ctrl.Show();
     }
     catch (Exception ex)
     {
     }
 }
示例#7
0
        private void btn_Editer_Click(object sender, RoutedEventArgs e)
        {
            if (dtg_HistoriquePassWord.Tag != null)
            {
                lstHisto = (List <CsHistoriquePassword>)dtg_HistoriquePassWord.Tag;
                param    = new Dictionary <string, string>();

                param.Add("pNomConnection", lstHisto[0].NOMUSER);
                //Utility.ActionDirectOrientation<ServicePrintings.CsHistoriquePassword, ServiceAdministration.CsHistoriquePassword>(lstHisto, param, SessionObject.CheminImpression, "ReportConnectionUser", "Administration", true);

                Galatee.Silverlight.Shared.FrmOptionEditon ctrl = new Shared.FrmOptionEditon();
                ctrl.Closed   += ctrl_Closed;
                this.IsEnabled = false;
                ctrl.Show();
            }
        }
 private void btnPrint_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         if (DonnesDatagrid.Count == 0)
         {
             throw new Exception(Languages.AucuneDonneeAImprimer);
         }
         lstDonnee = DonnesDatagrid.ToList();
         Galatee.Silverlight.Shared.FrmOptionEditon ctrl = new Shared.FrmOptionEditon();
         ctrl.Closed   += ctrl_Closed;
         this.IsEnabled = false;
         ctrl.Show();
     }
     catch (Exception ex)
     {
     }
 }
 private void OKButton_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         if (dataGrid1.ItemsSource == null)
         {
             throw new Exception(Galatee.Silverlight.Resources.Parametrage.Languages.AucuneDonneeAImprimer);
         }
         lstDonnee = ((List <CsEvenement>)dataGrid1.ItemsSource).ToList();
         Galatee.Silverlight.Shared.FrmOptionEditon ctrl = new Shared.FrmOptionEditon();
         ctrl.Closed   += ctrl_Closed;
         this.IsEnabled = false;
         ctrl.Show();
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
        private void Imprimer()
        {
            if (dtgrdParametre.ItemsSource != null)
            {
                param = new Dictionary <string, string>();
                param.Add("Rpt_Code", Languages.ColonneTarif.ToUpper());
                param.Add("RptParam_Libelle", Languages.ColonneLibelle.ToUpper());
                param.Add("RptParam_DateCreation", Languages.DateCreation);
                param.Add("RptParam_DateModification", Languages.DateModification);
                param.Add("RptParam_UserCreation", Languages.UserCreation);
                param.Add("RptParam_UserModification", Languages.UserModification);
                param.Add("Rpt_ParamCentre", Languages.Centre.ToUpper());
                param.Add("Rpt_Param_Produit", Languages.Produit.ToUpper());
                param.Add("RptParam_Title", Languages.ListeTarif.ToUpper());

                lstDonnee = ((ObservableCollection <CsTarif>)dtgrdParametre.ItemsSource).ToList();
                Galatee.Silverlight.Shared.FrmOptionEditon ctrl = new Shared.FrmOptionEditon();
                ctrl.Closed   += ctrl_Closed;
                this.IsEnabled = false;
                ctrl.Show();
            }
        }
 private void btnOk_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         if (lvwResultat.ItemsSource != null)
         {
             lstClientImprimer = new List <CsDetailCampagnePrecontentieux>();
             lstClientImprimer = ((List <CsDetailCampagnePrecontentieux>) this.lvwResultat.ItemsSource).Where(t => t.IsSelect).ToList();
             if (lstClientImprimer != null && lstClientImprimer.Count != 0)
             {
                 Galatee.Silverlight.Shared.FrmOptionEditon ctrl = new Shared.FrmOptionEditon();
                 ctrl.Closed   += ctrl_Closed;
                 this.IsEnabled = false;
                 ctrl.Show();
             }
         }
     }
     catch (Exception ex)
     {
         Message.ShowError(ex, Galatee.Silverlight.Resources.Langue.errorTitle);
     }
 }