x1.Text, Convert.ToString (DropDownList3.SelectedValue), TextBox1.Text, Convert.ToString (curDate), 1 ) ;. Text= raquo ;;. Text= raquo ;;
}
}
}System;.Collections.Generic;.Linq;.Web;.Web.UI;.Web.UI.WebControls;.Data.SqlClient;.Data;Monitoring
{_ kladovshik_minus: System.Web.UI.Page
{_ Load (object sender, EventArgs e)
{
}
()
{System.Configuration.ConfigurationManager.ConnectionStrings[laquo;MonitoringConnectionStringraquo;].ConnectionString;
} (string par1, string par2, string par3, string par4, string par5)
{connection=newSqlConnection (GetConnectionString ());=string.Empty;
sqlStatement= INSERT INTO ГотоваяПродукція +
(Код, КодДеталі, Значення, Дата, ТіпОпераціі) +
VALUES (@ par1, @ par2, @ par3, @ par4, @ par5) raquo ;;
{. Open ();=newSqlCommand (sqlStatement, connection) ;. Parameters.AddWithValue ( @ par1 raquo ;, par1) ;. Parameters.AddWithValue ( @ par2 raquo ;, par2);.Parameters.AddWithValue ( @ par3 raquo ;, par3) ;. Parameters.AddWithValue ( @ par4 raquo ;, par4) ;. Parameters.AddWithValue ( @ par5 raquo ;, par5);
;. CommandType=CommandType.Text; .ExecuteNonQuery ();
} (SqlException ex)
{= Insert Error: raquo ;; +=ex.Message; (msg);
}
{. Close ();
}
} Button1_Click (object sender, EventArgs e)
{= DateTime.Now; (TextBox1.Text, Convert.ToString (DropDownList3.SelectedValue), TextBox1.Text, Convert.ToString (curDate), 0 ) ;. Text= raquo ;;. Text= raquo ;;
}
Button2_Click (object sender, EventArgs e)
{. Redirect ( Product_kladovshik_report.aspx );
}
}
}