Beispiel #1
0
 void AgregarProducto(int p_IdProducto, Data2.Class.Struct_Factura p_Factura)
 {
     p_Factura.AddDetail(p_IdProducto);
     Log.ADD("Agregando Articulo:", this);
     Session.Remove(FacturaSesssionKEY);
     Session.Add(FacturaSesssionKEY, p_Factura);
     redirecttome("");
 }
Beispiel #2
0
        void AgregarArticulo(string ArtCod, string cant)
        {
            if (Session[key_session_factura] != null)
            {
                try
                {
                    Data2.Class.Struct_Factura SF = Session[key_session_factura] as Data2.Class.Struct_Factura;
                    if (cant == "0")
                    {
                        Struct_Treatment TreatArticle = Struct_Treatment.GetTreatmentById(int.Parse(ArtCod));
                        SF.AddDetail(TreatArticle.Id, true);
                    }
                    else
                    {
                        SF.AddDetail(ArtCod);
                        SF.GetDetalle()[SF.GetDetalle().Count - 1].set_cant(cant.ToString());
                    }

                    redirecttome();
                }
                catch { }
            }
        }
Beispiel #3
0
        void AgregarArticulo(string ArtCod, string cant)
        {
            if (Session[key_session_factura] != null)
            {
                try
                {
                    Data2.Class.Struct_Factura SF = Session[key_session_factura] as Data2.Class.Struct_Factura;



                    SF.AddDetail(ArtCod);
                    SF.GetDetalle()[SF.GetDetalle().Count - 1].set_cant(cant.ToString());
                    redirecttome();
                }
                catch { }
            }
        }