示例#1
0
        //metodo eliminar
        public static string eliminar(int id_historial)
        {
            DHistorial_Estado Obj = new DHistorial_Estado();

            Obj.Id_historial = id_historial;
            return(Obj.Eliminar(Obj));
        }
示例#2
0
        //metodo editar
        public static string Editar(int id_historial, int id_produccion, int id_estado, string fecha_cambio_estado, string detalle_estado)
        {
            DHistorial_Estado Obj = new DHistorial_Estado();

            Obj.Id_historial  = id_historial;
            Obj.Id_produccion = id_produccion;
            Obj.Id_estado     = id_estado;
            if (fecha_cambio_estado != string.Empty)
            {
                try
                {
                    Obj.Fecha_cambio_estado = Convert.ToDateTime(fecha_cambio_estado);
                }
                catch (Exception)
                {
                    Obj.Fecha_cambio_estado = System.DateTime.Parse("1900-01-01");
                }
            }
            else
            {
                Obj.Fecha_cambio_estado = System.DateTime.Parse("1900-01-01");
            }
            Obj.Detalle_estado = detalle_estado;
            return(Obj.Editar(Obj));
        }
示例#3
0
        //metodo mostrar
        public static DataTable Mostrar()
        {
            DHistorial_Estado Obj = new DHistorial_Estado();

            return(Obj.Mostrar());
        }