예제 #1
0
        private void btn_valider_Click(object sender, EventArgs e)
        {
            if (CLIENT_APP_PARAM.InvoicePrintOption == "Ticket")
            {
                if (rd_detail.Checked)
                {
                    ReportDocument rpt = new BON_RETOUR_CLIENT.RPT_BR_CL_UTILISATEUR();
                    //DataTable dt = CLIENT_APP_PARAM.GEST.P_BRETOUR_CL.IMPRIMER_BR_CL_PAR_DATE_PAR_UTILISATEUR(dtp_du.Value, dtp_au.Value, (decimal)cbx_utilisateur.SelectedValue);
                    DataTable dt = CLIENT_APP_PARAM.gcws.IMPRIMER_BR_CL_PAR_DATE_PAR_UTILISATEUR(dtp_du.Value, dtp_au.Value, (decimal)cbx_utilisateur.SelectedValue);
                    //rpt.SetDataSource(CLIENT_APP_PARAM.GEST.P_BRETOUR_CL.IMPRIMER_BR_CL_PAR_DATE_PAR_UTILISATEUR(dtp_du.Value, dtp_au.Value, (decimal)cbx_utilisateur.SelectedValue));
                    rpt.SetDataSource(CLIENT_APP_PARAM.gcws.IMPRIMER_BR_CL_PAR_DATE_PAR_UTILISATEUR(dtp_du.Value, dtp_au.Value, (decimal)cbx_utilisateur.SelectedValue));


                    CHM_ETATS f = new CHM_ETATS();
                    f.CHM_Aperçu_document.ReportSource = rpt;
                    //f.MdiParent = CLIENT_APP_PARAM.Fenetre_principale;
                    f.WindowState = FormWindowState.Maximized;
                    f.ShowDialog();
                }
            }
            else
            {
                if (rd_detail.Checked)
                {
                    ReportDocument rpt = new CHM_ETAT.RPT_BON_RETOUR_A4();
                    //DataTable dt = CLIENT_APP_PARAM.GEST.P_BRETOUR_CL.IMPRIMER_BR_CL_PAR_DATE_PAR_UTILISATEUR(dtp_du.Value, dtp_au.Value, (decimal)cbx_utilisateur.SelectedValue);
                    DataTable dt = CLIENT_APP_PARAM.gcws.IMPRIMER_BR_CL_PAR_DATE_PAR_UTILISATEUR(dtp_du.Value, dtp_au.Value, (decimal)cbx_utilisateur.SelectedValue);
                    //rpt.SetDataSource(CLIENT_APP_PARAM.GEST.P_BRETOUR_CL.IMPRIMER_BR_CL_PAR_DATE_PAR_UTILISATEUR(dtp_du.Value, dtp_au.Value, (decimal)cbx_utilisateur.SelectedValue));
                    rpt.SetDataSource(CLIENT_APP_PARAM.gcws.IMPRIMER_BR_CL_PAR_DATE_PAR_UTILISATEUR(dtp_du.Value, dtp_au.Value, (decimal)cbx_utilisateur.SelectedValue));
                    if (dtp_du.Value == dtp_au.Value)
                    {
                        rpt.SetParameterValue("date", "Date : " + dtp_du.Value.ToShortDateString());
                    }
                    else
                    {
                        rpt.SetParameterValue("date", "Du : " + dtp_du.Value.ToShortDateString() + "Au : " + dtp_au.Value.ToShortDateString());
                    }
                    rpt.SetParameterValue("user", "Date : " + cbx_utilisateur.Text);

                    CHM_ETATS f = new CHM_ETATS();
                    f.CHM_Aperçu_document.ReportSource = rpt;
                    //f.MdiParent = CLIENT_APP_PARAM.Fenetre_principale;
                    f.WindowState = FormWindowState.Maximized;
                    f.ShowDialog();
                }
                if (rd_groupe.Checked)
                {
                }
            }
        }
예제 #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            ReportDocument rpt = new CHM_INVENTAIRE();

            //rpt.SetDataSource(CLIENT_APP_PARAM.GEST.P_INVENTAIRE.IMPRIMER_SAISIE_INVENTAIRE(_code_inventaire));
            rpt.SetDataSource(CLIENT_APP_PARAM.gcws.IMPRIMER_SAISIE_INVENTAIRE(_code_inventaire));


            CHM_ETATS f = new CHM_ETATS();

            f.CHM_Aperçu_document.ReportSource = rpt;
            f.WindowState = FormWindowState.Maximized;
            f.ShowDialog();
        }
예제 #3
0
 private void BTN_APERçU_Click(object sender, EventArgs e)
 {
     try
     {
         if (bs_liste_br_cl.Current != null)
         {
             ReportDocument rpt = new BON_RETOUR_CLIENT.CHM_TICKET_BON_RETOUR_CLIENT();
             //rpt.SetDataSource(CLIENT_APP_PARAM.GEST.P_BRETOUR_CL.IMPRIMER_BRETOUR_CLIENT((bs_liste_br_cl.Current as DataRowView)["CODE_BRETOUR_CLIENT"].ToString()));
             rpt.SetDataSource(CLIENT_APP_PARAM.gcws.IMPRIMER_BRETOUR_CLIENT((bs_liste_br_cl.Current as DataRowView)["CODE_BRETOUR_CLIENT"].ToString()));
             CHM_ETATS f = new CHM_ETATS();
             f.CHM_Aperçu_document.ReportSource = rpt;
             f.ShowDialog();
         }
     }
     catch (Exception er)
     {
         MessageBox.Show(er.Message, this.Text);
     }
 }
예제 #4
0
        private void btn_valider_Click(object sender, EventArgs e)
        {
            if (CLIENT_APP_PARAM.InvoicePrintOption == "Ticket")
            {
                if (rd_detail.Checked)
                {
                    ReportDocument rpt = new CHM_Fenetre_principale.CHM_LISTE_VENTE_PAR_UTILISATEUR();
                    //DataTable dt = CLIENT_APP_PARAM.GEST.P_FACTURE.GET_LISTE_VENTE_PAR_DATE_PAR_UTILISATEUR(dtp_du.Value, dtp_au.Value, (decimal)cbx_utilisateur.SelectedValue);
                    DataTable dt = CLIENT_APP_PARAM.gcws.GET_LISTE_VENTE_PAR_DATE_PAR_UTILISATEUR(dtp_du.Value, dtp_au.Value, (decimal)cbx_utilisateur.SelectedValue);
                    //rpt.SetDataSource(CLIENT_APP_PARAM.GEST.P_FACTURE.GET_LISTE_VENTE_PAR_DATE_PAR_UTILISATEUR(dtp_du.Value, dtp_au.Value, (decimal)cbx_utilisateur.SelectedValue));
                    rpt.SetDataSource(CLIENT_APP_PARAM.gcws.GET_LISTE_VENTE_PAR_DATE_PAR_UTILISATEUR(dtp_du.Value, dtp_au.Value, (decimal)cbx_utilisateur.SelectedValue));


                    CHM_ETATS f = new CHM_ETATS();
                    f.CHM_Aperçu_document.ReportSource = rpt;
                    //f.MdiParent = CLIENT_APP_PARAM.Fenetre_principale;
                    f.WindowState = FormWindowState.Maximized;
                    f.ShowDialog();
                }
            }
            else
            {
                if (rd_detail.Checked)
                {
                    ReportDocument rpt = new CHM_ETAT.RPT_TOUS_LISTE_VENTE_A4_PAR_UTILISATEUR();

                    //rpt.SetDataSource(CLIENT_APP_PARAM.GEST.P_FACTURE.GET_LISTE_VENTE_PAR_DATE_PAR_UTILISATEUR(dtp_du.Value, dtp_au.Value, (decimal)cbx_utilisateur.SelectedValue));
                    rpt.SetDataSource(CLIENT_APP_PARAM.gcws.GET_LISTE_VENTE_PAR_DATE_PAR_UTILISATEUR(dtp_du.Value, dtp_au.Value, (decimal)cbx_utilisateur.SelectedValue));
                    if (dtp_du.Value.ToShortDateString() != dtp_au.Value.ToShortDateString())
                    {
                        rpt.SetParameterValue("date", "du :" + dtp_du.Value.ToShortDateString() + "  au:" + dtp_au.Value.ToShortDateString());
                    }
                    if (dtp_du.Value.ToShortDateString() == dtp_au.Value.ToShortDateString())
                    {
                        rpt.SetParameterValue("date", "Date :" + dtp_du.Value.ToShortDateString());
                    }


                    CHM_ETATS f = new CHM_ETATS();
                    f.CHM_Aperçu_document.ReportSource = rpt;
                    //f.MdiParent = CLIENT_APP_PARAM.Fenetre_principale;
                    f.WindowState = FormWindowState.Maximized;
                    f.ShowDialog();
                }
                if (rd_groupe.Checked)
                {
                    ReportDocument rpt = new CHM_Fenetre_principale.RPT_VENTE_TOTAL_PAR_FACTURE_PAR_DATE_PAR_UTILISATEUR();

                    //rpt.SetDataSource(CLIENT_APP_PARAM.GEST.P_FACTURE.GET_LISTE_VENTE_PAR_FACTURE_PAR_DATE_PAR_UTILISATEUR(dtp_du.Value, dtp_au.Value, (decimal)cbx_utilisateur.SelectedValue));
                    rpt.SetDataSource(CLIENT_APP_PARAM.gcws.GET_LISTE_VENTE_PAR_FACTURE_PAR_DATE_PAR_UTILISATEUR(dtp_du.Value, dtp_au.Value, (decimal)cbx_utilisateur.SelectedValue));
                    if (dtp_du.Value.ToShortDateString() != dtp_au.Value.ToShortDateString())
                    {
                        rpt.SetParameterValue("date_debut", "Du :" + dtp_du.Value.ToShortDateString() + "  Au : " + dtp_au.Value.ToShortDateString());
                    }
                    if (dtp_du.Value.ToShortDateString() == dtp_au.Value.ToShortDateString())
                    {
                        rpt.SetParameterValue("date_debut", "Date :" + dtp_du.Value.ToShortDateString());
                    }

                    CHM_ETATS f = new CHM_ETATS();
                    f.CHM_Aperçu_document.ReportSource = rpt;
                    //f.MdiParent = CLIENT_APP_PARAM.Fenetre_principale;
                    f.WindowState = FormWindowState.Maximized;
                    f.ShowDialog();
                }
            }
        }
예제 #5
0
        private void btn_valider_Click(object sender, EventArgs e)
        {
            try
            {
                if (CLIENT_APP_PARAM.InvoicePrintOption == "Ticket")
                {
                    if (rd_detail.Checked)
                    {
                        ReportDocument rpt = new CHM_Fenetre_principale.CHM_LISTE_VENTE();
                        //rpt.SetDataSource(CLIENT_APP_PARAM.GEST.P_FACTURE.GET_LISTE_VENTE_PAR_DATE(dtp_du.Value, dtp_au.Value));
                        rpt.SetDataSource(CLIENT_APP_PARAM.gcws.GET_LISTE_VENTE_PAR_DATE(dtp_du.Value, dtp_au.Value));

                        CHM_ETATS f = new CHM_ETATS();
                        f.CHM_Aperçu_document.ReportSource = rpt;
                        //f.MdiParent = CLIENT_APP_PARAM.Fenetre_principale;
                        f.WindowState = FormWindowState.Maximized;
                        f.ShowDialog();
                    }
                }
                else
                {
                    if (rd_detail.Checked)
                    {
                        ReportDocument rpt = new CHM_ETAT.RPT_TOUS_LISTE_VENTE_A4();

                        //rpt.SetDataSource(CLIENT_APP_PARAM.GEST.P_FACTURE.GET_LISTE_VENTE_PAR_DATE(dtp_du.Value, dtp_au.Value));
                        rpt.SetDataSource(CLIENT_APP_PARAM.gcws.GET_LISTE_VENTE_PAR_DATE(dtp_du.Value, dtp_au.Value));
                        if (dtp_du.Value.ToShortDateString() != dtp_au.Value.ToShortDateString())
                        {
                            rpt.SetParameterValue("date", "du :" + dtp_du.Value.ToShortDateString() + " au :" + dtp_au.Value.ToShortDateString());
                        }
                        if (dtp_du.Value.ToShortDateString() == dtp_au.Value.ToShortDateString())
                        {
                            rpt.SetParameterValue("date", "Date :" + dtp_du.Value.ToShortDateString());
                        }

                        rpt.SetParameterValue("user", "");

                        CHM_ETATS f = new CHM_ETATS();
                        f.CHM_Aperçu_document.ReportSource = rpt;
                        //f.MdiParent = CLIENT_APP_PARAM.Fenetre_principale;
                        f.WindowState = FormWindowState.Maximized;
                        f.ShowDialog();
                    }
                    if (rd_groupe.Checked)
                    {
                        ReportDocument rpt = new CHM_Fenetre_principale.RPT_VENTE_TOTAL_PAR_FACTURE_PAR_DATE();

                        //rpt.SetDataSource(CLIENT_APP_PARAM.GEST.P_FACTURE.GET_LISTE_VENTE_PAR_FACTURE_PAR_DATE(dtp_du.Value, dtp_au.Value));
                        rpt.SetDataSource(CLIENT_APP_PARAM.gcws.GET_LISTE_VENTE_PAR_FACTURE_PAR_DATE(dtp_du.Value, dtp_au.Value));
                        if (dtp_du.Value.ToShortDateString() != dtp_au.Value.ToShortDateString())
                        {
                            rpt.SetParameterValue("date_debut", "du :" + dtp_du.Value.ToShortDateString() + "  au :" + dtp_au.Value.ToShortDateString());
                        }
                        if (dtp_du.Value.ToShortDateString() == dtp_au.Value.ToShortDateString())
                        {
                            rpt.SetParameterValue("date_debut", "Date :" + dtp_du.Value.ToShortDateString());
                        }

                        CHM_ETATS f = new CHM_ETATS();
                        f.CHM_Aperçu_document.ReportSource = rpt;
                        //f.MdiParent = CLIENT_APP_PARAM.Fenetre_principale;
                        f.WindowState = FormWindowState.Maximized;
                        f.ShowDialog();
                    }
                }
            }
            catch (Exception er)
            {
                MessageBox.Show(er.Message, this.Text);
            }
        }