コード例 #1
0
ファイル: Terminal.aspx.cs プロジェクト: johnfelipe/BootPark
        public void crearTerminal(string puerto, string ip, string tipo)
        {
            bool response = parametro.registrarTerminal(puerto, ip, tipo, pegeId);

            if (response)
            {
                WREGISTRO.Hide();
                X.Msg.Notify("Notificación", "Terminal agregado exitosamente!").Show();
            }
            else
            {
                X.Msg.Notify("Notificación", "Ha ocurrido un error!!").Show();
            }

            BindData();
        }
コード例 #2
0
        public void crearParticular(string identificacion, string nombre, string apellido)
        {
            bool response = parametro.registrarParticular(identificacion, nombre, apellido, pegeId);

            if (response)
            {
                WREGISTRO.Hide();
                X.Msg.Notify("Notificación", "Particular agregado exitosamente!").Show();
            }
            else
            {
                X.Msg.Notify("Notificación", "Ha ocurrido un error!!").Show();
            }

            BindData();
        }
コード例 #3
0
        public void crearVehiculo(string observacion, string placa, string modelo, string marca, string color)
        {
            bool response = parametro.registrarVehiculo(observacion, placa, modelo, marca, color, pegeId);

            if (response)
            {
                WREGISTRO.Hide();
                X.Msg.Notify("Notificación", "Vehiculo agregado exitosamente!").Show();
            }
            else
            {
                X.Msg.Notify("Notificación", "Ha ocurrido un error!!").Show();
            }

            BindData();
        }
コード例 #4
0
ファイル: Etiqueta.aspx.cs プロジェクト: johnfelipe/BootPark
        public void crearEtiqueta(string tipo, string etiqueta, string descripcion, string observacion, string estado)
        {
            bool response = parametro.registrarEtiqueta(tipo, etiqueta, descripcion, observacion, estado, pegeId);

            if (response)
            {
                WREGISTRO.Hide();
                X.Msg.Notify("Notificación", "Etiqueta agregado exitosamente!").Show();
            }
            else
            {
                X.Msg.Notify("Notificación", "Ha ocurrido un error!!").Show();
            }

            BindData();
        }