Example #1
0
 private void btnIncassi_Click(object sender, EventArgs e)
 {
     try
     {
         bool saved = Save();
         if (saved)
         {
             var obj   = (FatturaVenditaDto)Model;
             var space = new Incasso.IncassoView(obj);
             space.Title = "INCASSI | FATTURA " + BusinessLogic.Fattura.GetCodifica(obj);
             Workspace.AddSpace(space);
         }
     }
     catch (Exception ex)
     {
         UtilityError.Write(ex);
     }
 }
Example #2
0
 private void btnIncassi_Click(object sender, EventArgs e)
 {
     try
     {
         bool saved = Save();
         if (saved)
         {
             var obj = (CommittenteDto)Model;
             var anagraficaCommittente = obj.AnagraficaCommittente;
             if (anagraficaCommittente != null)
             {
                 var space = new Incasso.IncassoView(obj);
                 space.Title = "INCASSI | COMMITTENTE " + BusinessLogic.Committente.GetCodifica(anagraficaCommittente);
                 Workspace.AddSpace(space);
             }
         }
     }
     catch (Exception ex)
     {
         UtilityError.Write(ex);
     }
 }
Example #3
0
 private void btnIncassi_Click(object sender, EventArgs e)
 {
     try
     {
         bool saved = Save();
         if (saved)
         {
             var obj = (CommittenteDto)Model;
             var anagraficaCommittente = obj.AnagraficaCommittente;
             if (anagraficaCommittente != null)
             {
                 var space = new Incasso.IncassoView(obj);
                 space.Title = "INCASSI | COMMITTENTE " + BusinessLogic.Committente.GetCodifica(anagraficaCommittente);
                 Workspace.AddSpace(space);
             }
         }
     }
     catch (Exception ex)
     {
         UtilityError.Write(ex);
     }
 }
Example #4
0
        private void btnIncassi_Click(object sender, EventArgs e)
        {
            try
            {
                bool saved = Save();
                if (saved)
                {
                    var obj = (FatturaVenditaDto)Model;
                    var space = new Incasso.IncassoView(obj);
                    space.Title = "INCASSI | FATTURA " + BusinessLogic.Fattura.GetCodifica(obj);
                    Workspace.AddSpace(space);

                }
            }
            catch (Exception ex)
            {
                UtilityError.Write(ex);
            }

        }