This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80 default_server; | |
listen [::]:80 default_server; | |
root /vhosts/_default_/httpdocs; | |
index index.html index.htm index.php; | |
server_name _; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// User.swift | |
// GeneratorPass | |
// | |
// Developer: http://riccardopirani.altervista.org | |
// Created by riccardo | |
// Copyright © 2016 ViewSoftware. All rights reserved. | |
// Software House: http://viewsoftware.it | |
import Foundation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Image of Error: https://imgur.com/a/iNfK9 | |
C# Code: | |
-------------------------First.cs --------------------------------------------------------------------- | |
if (comboBoxStampe.Text == "Stampa con Prezzo") | |
{ | |
if (checkedListBoxCosaStampare.CheckedItems.Count > 0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void pictureBoxImmagineDistinta_DoubleClick(object sender, EventArgs e) | |
{ | |
SqlConnection conn = db.apriconnessione(); | |
try | |
{ | |
Image imm; | |
OpenFileDialog of = new OpenFileDialog(); | |
of.Filter = "Image Files (*.bmp;*.jpg;*.jpeg,*.png)|*.BMP;*.JPG;*.JPEG;*.PNG"; | |
if (of.ShowDialog() == DialogResult.OK) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void pictureBoxImmagineDistinta_DoubleClick(object sender, EventArgs e) | |
{ | |
SqlConnection conn = db.apriconnessione(); | |
try | |
{ | |
Image imm; | |
OpenFileDialog of = new OpenFileDialog(); | |
of.Filter = "Image Files (*.bmp;*.jpg;*.jpeg,*.png)|*.BMP;*.JPG;*.JPEG;*.PNG"; | |
if (of.ShowDialog() == DialogResult.OK) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try { | |
Preventivi p = new Preventivi(int.Parse(IdPreventivo)); | |
p.db = this.db; | |
String Query = "SELECT Preventivo.IdPreventivo,Utente.LogoAzienda,convert(VARCHAR(10),Preventivo.DataInserimento,105) as DataInserimento,Preventivo.RiferimentoInterno,Preventivo.Testata,Preventivo.Chiusura,Cliente.Titolo,Cliente.RagioneSociale,Cliente.Indirizzo,Cliente.Cap,Cliente.Citta,Cliente.Provincia FROM Preventivo inner join Cliente on Cliente.IdCliente = Preventivo.IdCliente inner join Utente on Preventivo.UtenteCreazione = Utente.Username where Preventivo.IdPreventivo='" + IdPreventivo + "' "; | |
String Query2 = "DECLARE @T AS table( Descrizione varchar(5000), NumeroCapitolo varchar(100), SottoCapitolo1 varchar(5000), SottoCapitolo2 varchar(5000), SottoCapitolo3 varchar(5000), Totale money, DescrizioneEstesa varchar(5000), Images Image, CostoUnitario money, Quantita money, DescrizioneDis varchar(5000)); INSERT INTO @T SELECT Capitolo.Descrizi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String QuerySalvataggioElementi = "Insert into ComponenteOrdine(IdOrdine,CodArt,Descrizione,UM,Quantita) values(@IdOrdine,@CodArt,@Descrizione,@UM,@Quantita)"; | |
cmd = new SqlCommand(QuerySalvataggioElementi, conn); | |
for (int i = 0; i < dataGridViewArticoli.Rows.Count; i++) | |
{ | |
//Controllo se l'articolo è "chekkato prima di aggiungerlo nella tabella temporanea" | |
if (Convert.ToBoolean(dataGridViewArticoli.Rows[i].Cells[6].Value) == true) | |
{ | |
cmd.Parameters.AddWithValue(string.Format("@IdOrdine{0}", i), IdOrdine); | |
cmd.Parameters.AddWithValue(string.Format("@CodArt{0}", i), dataGridViewArticoli.Rows[i].Cells["Codice"].Value.ToString()); | |
cmd.Parameters.AddWithValue(string.Format("@Descrizione{0}", i), dataGridViewArticoli.Rows[i].Cells["Descrizione"].Value.ToString()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Image imm; | |
OpenFileDialog of = new OpenFileDialog(); | |
of.Filter = "Image Files (*.bmp;*.jpg;*.jpeg,*.png)|*.BMP;*.JPG;*.JPEG;*.PNG"; | |
if (of.ShowDialog() == DialogResult.OK) | |
{ | |
pictureBoxImmagineDistinta.ImageLocation = of.FileName; | |
imm = pictureBoxImmagineDistinta.Image; | |
String PathImage = pictureBoxImmagineDistinta.ImageLocation; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SET LANGUAGE 'Italian' select Tipo, Data , GG, CodArt as 'CodArt',Descrizione,Quantita as 'Quantita',Prezzo,Totale from ( | |
Select 'R' as Tipo, CONVERT(VARCHAR(10), RisorseUmane.Data, 105) as Data, DATENAME(WEEKDAY, RisorseUmane.Data) as GG, 'Utente' as CodArt, RisorseUmane.Descrizione, PARSE(REPLACE(convert(varchar(5), Cast(convert(varchar(5), (OreFine - OreInizio), 108) as datetime) - CAST(REPLACE(Pausa, '.', ':') as datetime), 108),':',',') as money) as Quantita, Utente.CostoInterno as Prezzo, (Utente.CostoInterno* Replace(convert(varchar(5), Cast(convert(varchar(5), (OreFine - OreInizio), 108) as datetime) - CAST(REPLACE(Pausa, '.', ':') as datetime), 108),':', ',')/100) as Totale from RisorseUmane inner join Utente on RisorseUmane.IdUtente = Utente.IdUtente where IdCantiere = '131' | |
/*.....*/ | |
)Q | |
ORDER BY Data ASC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Correctly Version | |
//Import the necessary libraries/declare the necessary objects | |
var express = require("express"); | |
var myParser = require("body-parser"); | |
var app = express(); | |
//Login |
OlderNewer