Exemplo n.º 1
0
 private void printFormFormSeries_Click(object sender, EventArgs e)
 {
     if (this.ulvFormSeries.SelectedItems.Count > 0)
     {
         foreach (VWA4Common.DataObject.Formx f in FormDAO.DAO.GetAllBySeriesId(Convert.ToInt32(this.ulvPrintSeries.SelectedItems[0].Key)))
         {
             f.LastPrintedDate = DateTime.Now.ToShortDateString();
             FormDAO.DAO.Update(f);
         }
         rptFormSeries rpt = new rptFormSeries(FormSeriesDAO.DAO.Load(Convert.ToInt32(this.ulvPrintSeries.SelectedItems[0].Key)));
         rpt.Run();
     }
 }
Exemplo n.º 2
0
        private void PrintThisSeries_Click(object sender, EventArgs e)
        {
            List <FormFormSeries> ffs = new List <FormFormSeries>();

            foreach (UltraListViewItem i in ulvPrintSeries.Items)
            {
                ffs.Add(FormFormSeriesDAO.DAO.Load(Convert.ToInt32(i.Key)));
            }

            rptFormSeries rpt = new rptFormSeries(ffs);

            rpt.Run();
        }
Exemplo n.º 3
0
        private void printToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (this.ulvForms.SelectedItems.Count > 0)
            {
                List <FormFormSeries> ffs = new List <FormFormSeries>();
                FormFormSeries        fs  = new FormFormSeries();
                fs.FormId = Convert.ToInt32(this.ulvForms.SelectedItems[0].Key);
                ffs.Add(fs);

                VWA4Common.DataObject.Formx f = FormDAO.DAO.Load(fs.FormId);
                f.LastPrintedDate = DateTime.Now.ToShortDateString();
                FormDAO.DAO.Update(f);

                rptFormSeries rpt = new rptFormSeries(ffs);
                rpt.Run();
            }
        }