示例#1
0
        public void SetCant(string value, string k)
        {
            Struct_DetalleFactura _Detalle = null;

            for (int a = 0; a < MiDetalle.Count; a++)
            {
                if (MiDetalle[a].ACCESSKEY == k)
                {
                    _Detalle = MiDetalle[a];
                }
            }
            if (_Detalle != null)
            {
                _Detalle.set_cant(value);
            }
        }
示例#2
0
        void CargarDetalleDesdeDB()
        {
            GestionDataSet.GetDetalleFacturaDataTable DT = new GestionDataSet.GetDetalleFacturaDataTable();
            GestionDataSetTableAdapters.GetDetalleFacturaTableAdapter TA = new GestionDataSetTableAdapters.GetDetalleFacturaTableAdapter();
            TA.Fill(DT, Id, UserId);
            if (DT.Rows.Count > 0)
            {
                MiDetalle = new List <Struct_DetalleFactura>();
                foreach (DataRow _Row in DT.Rows)
                {
                    Struct_DetalleFactura _DetalleFactura = new Struct_DetalleFactura(_Row, UserId);

                    MiDetalle.Add(_DetalleFactura);
                }
            }
        }