Update db

Completata gestione resoconto magazzini e definizioni

git-svn-id: https://keyhammer.ath.cx/svn/GMW/trunk@55 365432ac-a1b5-4ffd-bb28-6d3099d32164
This commit is contained in:
samuele
2010-05-18 13:49:35 +00:00
parent cae5fb9f9f
commit 44c22b43cd
12 changed files with 193 additions and 92 deletions
+10
View File
@@ -28,6 +28,16 @@
</b>
</td>
</tr>
<tr>
<td>
<asp:Label ID="lblTotCelleCreate" runat="server" />
</td>
<td>
<b>
<asp:Label ID="lblNumCelleCreate" runat="server" />
</b>
</td>
</tr>
</table>
<div class="filtro_1">
<asp:Label ID="lblDettImpieghiBlocchi" runat="server" />
+12 -6
View File
@@ -31,6 +31,7 @@ namespace GMW.WebUserControls
{
lblTotaleImpieghi.Text = traduci("lblTotaleImpieghi");
lblTotCelleDaTipo.Text = traduci("lblTotCelleDaTipo");
lblTotCelleCreate.Text = traduci("lblTotCelleCreate");
lblTotCelleDaBlocchi.Text = traduci("lblTotCelleDaBlocchi");
lblDettImpieghiBlocchi.Text = traduci("lblDettImpieghiBlocchi");
lblAttive.Text = traduci("lblAttive");
@@ -49,20 +50,20 @@ namespace GMW.WebUserControls
{
// calcolo valori: attive assegnate
int? celleAttiveAss = 0;
utils.obj.taSTP.stp_ContaCelleBlocco(memLayer.ML.confReadString("CodCS"), memLayer.ML.StringSessionObj("CodMag_sel"), true, 1, ref celleAttiveAss);
utils.obj.taSTP.stp_ContaCelleBlocco(memLayer.ML.confReadString("CodCS"), memLayer.ML.StringSessionObj("CodMag_sel"), true, true, ref celleAttiveAss);
if (!celleAttiveAss.HasValue) celleAttiveAss = 0;
// calcolo valori: attive assegnate
int? celleAttiveNonAss = 0;
utils.obj.taSTP.stp_ContaCelleBlocco(memLayer.ML.confReadString("CodCS"), memLayer.ML.StringSessionObj("CodMag_sel"), true, 0, ref celleAttiveNonAss);
utils.obj.taSTP.stp_ContaCelleBlocco(memLayer.ML.confReadString("CodCS"), memLayer.ML.StringSessionObj("CodMag_sel"), true, false, ref celleAttiveNonAss);
if (!celleAttiveNonAss.HasValue) celleAttiveNonAss = 0;
// calcolo valori: NON attive assegnate
int? celleNonAttiveAss = 0;
utils.obj.taSTP.stp_ContaCelleBlocco(memLayer.ML.confReadString("CodCS"), memLayer.ML.StringSessionObj("CodMag_sel"), false, 1, ref celleNonAttiveAss);
utils.obj.taSTP.stp_ContaCelleBlocco(memLayer.ML.confReadString("CodCS"), memLayer.ML.StringSessionObj("CodMag_sel"), false, true, ref celleNonAttiveAss);
if (!celleNonAttiveAss.HasValue) celleNonAttiveAss = 0;
// calcolo valori: NONattive assegnate
// calcolo valori: NON attive assegnate
int? celleNonAttiveNonAss = 0;
utils.obj.taSTP.stp_ContaCelleBlocco(memLayer.ML.confReadString("CodCS"), memLayer.ML.StringSessionObj("CodMag_sel"), false, 0, ref celleNonAttiveNonAss);
utils.obj.taSTP.stp_ContaCelleBlocco(memLayer.ML.confReadString("CodCS"), memLayer.ML.StringSessionObj("CodMag_sel"), false, false, ref celleNonAttiveNonAss);
if (!celleNonAttiveNonAss.HasValue) celleNonAttiveNonAss = 0;
// altri valori
lblAssAtt.Text = celleAttiveAss.ToString();
@@ -80,9 +81,12 @@ namespace GMW.WebUserControls
int? totCelleBlocchi = 0;
utils.obj.taSTP.stp_ContaCelle4Blocchi(memLayer.ML.confReadString("CodCS"), memLayer.ML.StringSessionObj("CodMag_sel"), ref totCelleBlocchi);
if (!totCelleBlocchi.HasValue) totCelleBlocchi = 0;
int? totCelleCreate = 0;
utils.obj.taSTP.stp_ContaCelleCreate(memLayer.ML.confReadString("CodCS"), memLayer.ML.StringSessionObj("CodMag_sel"), ref totCelleCreate);
if (!totCelleCreate.HasValue) totCelleCreate = 0;
// controllo cosa inserire nel check...
Style ctrlStyle = new Style();
if (totCelleBlocchi == totCelleTipo)
if ((totCelleBlocchi == totCelleTipo) && (totCelleTipo == totCelleCreate))
{
ctrlStyle.CssClass = "valOk";
}
@@ -93,9 +97,11 @@ namespace GMW.WebUserControls
// applico style
lblNumCelleDaTipo.ApplyStyle(ctrlStyle);
lblNumCelleDaBlocchi.ApplyStyle(ctrlStyle);
lblNumCelleCreate.ApplyStyle(ctrlStyle);
// inserisco valori
lblNumCelleDaTipo.Text = totCelleTipo.ToString();
lblNumCelleDaBlocchi.Text = totCelleBlocchi.ToString();
lblNumCelleCreate.Text = totCelleCreate.ToString();
}
}
}
+18
View File
@@ -58,6 +58,24 @@ namespace GMW.WebUserControls {
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblNumCelleDaBlocchi;
/// <summary>
/// lblTotCelleCreate control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblTotCelleCreate;
/// <summary>
/// lblNumCelleCreate control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblNumCelleCreate;
/// <summary>
/// lblDettImpieghiBlocchi control.
/// </summary>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+125 -71
View File
@@ -820,7 +820,7 @@ namespace GMW_data.DS_UtilityTableAdapters {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
private void InitCommandCollection() {
this._commandCollection = new global::System.Data.IDbCommand[5];
this._commandCollection = new global::System.Data.IDbCommand[6];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[0])).Connection = new global::System.Data.SqlClient.SqlConnection(global::GMW_data.Properties.Settings.Default.GMWConnectionString);
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[0])).CommandText = "dbo.stp_ContaCelle4Tipo";
@@ -839,28 +839,36 @@ namespace GMW_data.DS_UtilityTableAdapters {
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[1])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TotCelle", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.InputOutput, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand();
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[2])).Connection = new global::System.Data.SqlClient.SqlConnection(global::GMW_data.Properties.Settings.Default.GMWConnectionString);
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[2])).CommandText = "dbo.stp_ContaCelleBlocco";
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[2])).CommandText = "dbo.stp_ContaDeltaCelleBlocco";
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[2])).CommandType = global::System.Data.CommandType.StoredProcedure;
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[2])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[2])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCS", global::System.Data.SqlDbType.VarChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[2])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodMag", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[2])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FiltAttive", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[2])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PosAssegnata", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[2])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TotCelle", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.InputOutput, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[2])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxBlocco", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[2])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DeltaCelle", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.InputOutput, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand();
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[3])).Connection = new global::System.Data.SqlClient.SqlConnection(global::GMW_data.Properties.Settings.Default.GMWConnectionString);
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[3])).CommandText = "dbo.stp_ContaDeltaCelleBlocco";
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[3])).CommandText = "dbo.stp_celleCreaMancantiBlocco";
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[3])).CommandType = global::System.Data.CommandType.StoredProcedure;
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[3])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[3])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCS", global::System.Data.SqlDbType.VarChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[3])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxBlocco", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[3])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DeltaCelle", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.InputOutput, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand();
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[4])).Connection = new global::System.Data.SqlClient.SqlConnection(global::GMW_data.Properties.Settings.Default.GMWConnectionString);
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[4])).CommandText = "dbo.stp_celleCreaMancantiBlocco";
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[4])).CommandText = "dbo.stp_ContaCelleBlocco";
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[4])).CommandType = global::System.Data.CommandType.StoredProcedure;
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[4])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[4])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCS", global::System.Data.SqlDbType.VarChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[4])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxBlocco", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[4])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodMag", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[4])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FiltAttive", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[4])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PosAssegnata", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[4])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TotCelle", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.InputOutput, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[5] = new global::System.Data.SqlClient.SqlCommand();
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[5])).Connection = new global::System.Data.SqlClient.SqlConnection(global::GMW_data.Properties.Settings.Default.GMWConnectionString);
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[5])).CommandText = "dbo.stp_ContaCelleCreate";
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[5])).CommandType = global::System.Data.CommandType.StoredProcedure;
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[5])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[5])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCS", global::System.Data.SqlDbType.VarChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[5])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodMag", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[5])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TotCelle", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.InputOutput, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -955,68 +963,10 @@ namespace GMW_data.DS_UtilityTableAdapters {
return returnValue;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int stp_ContaCelleBlocco(string CodCS, string CodMag, global::System.Nullable<bool> FiltAttive, global::System.Nullable<int> PosAssegnata, ref global::System.Nullable<int> TotCelle) {
global::System.Data.SqlClient.SqlCommand command = ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[2]));
if ((CodCS == null)) {
command.Parameters[1].Value = global::System.DBNull.Value;
}
else {
command.Parameters[1].Value = ((string)(CodCS));
}
if ((CodMag == null)) {
command.Parameters[2].Value = global::System.DBNull.Value;
}
else {
command.Parameters[2].Value = ((string)(CodMag));
}
if ((FiltAttive.HasValue == true)) {
command.Parameters[3].Value = ((bool)(FiltAttive.Value));
}
else {
command.Parameters[3].Value = global::System.DBNull.Value;
}
if ((PosAssegnata.HasValue == true)) {
command.Parameters[4].Value = ((int)(PosAssegnata.Value));
}
else {
command.Parameters[4].Value = global::System.DBNull.Value;
}
if ((TotCelle.HasValue == true)) {
command.Parameters[5].Value = ((int)(TotCelle.Value));
}
else {
command.Parameters[5].Value = global::System.DBNull.Value;
}
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
command.Connection.Open();
}
int returnValue;
try {
returnValue = command.ExecuteNonQuery();
}
finally {
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
command.Connection.Close();
}
}
if (((command.Parameters[5].Value == null)
|| (command.Parameters[5].Value.GetType() == typeof(global::System.DBNull)))) {
TotCelle = new global::System.Nullable<int>();
}
else {
TotCelle = new global::System.Nullable<int>(((int)(command.Parameters[5].Value)));
}
return returnValue;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int stp_ContaDeltaCelleBlocco(global::System.Nullable<int> IdxBlocco, ref global::System.Nullable<int> DeltaCelle) {
global::System.Data.SqlClient.SqlCommand command = ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[3]));
global::System.Data.SqlClient.SqlCommand command = ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[2]));
if ((IdxBlocco.HasValue == true)) {
command.Parameters[1].Value = ((int)(IdxBlocco.Value));
}
@@ -1056,7 +1006,7 @@ namespace GMW_data.DS_UtilityTableAdapters {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int stp_celleCreaMancantiBlocco(string CodCS, global::System.Nullable<int> IdxBlocco) {
global::System.Data.SqlClient.SqlCommand command = ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[4]));
global::System.Data.SqlClient.SqlCommand command = ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[3]));
if ((CodCS == null)) {
command.Parameters[1].Value = global::System.DBNull.Value;
}
@@ -1085,6 +1035,110 @@ namespace GMW_data.DS_UtilityTableAdapters {
}
return returnValue;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int stp_ContaCelleBlocco(string CodCS, string CodMag, global::System.Nullable<bool> FiltAttive, global::System.Nullable<bool> PosAssegnata, ref global::System.Nullable<int> TotCelle) {
global::System.Data.SqlClient.SqlCommand command = ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[4]));
if ((CodCS == null)) {
command.Parameters[1].Value = global::System.DBNull.Value;
}
else {
command.Parameters[1].Value = ((string)(CodCS));
}
if ((CodMag == null)) {
command.Parameters[2].Value = global::System.DBNull.Value;
}
else {
command.Parameters[2].Value = ((string)(CodMag));
}
if ((FiltAttive.HasValue == true)) {
command.Parameters[3].Value = ((bool)(FiltAttive.Value));
}
else {
command.Parameters[3].Value = global::System.DBNull.Value;
}
if ((PosAssegnata.HasValue == true)) {
command.Parameters[4].Value = ((bool)(PosAssegnata.Value));
}
else {
command.Parameters[4].Value = global::System.DBNull.Value;
}
if ((TotCelle.HasValue == true)) {
command.Parameters[5].Value = ((int)(TotCelle.Value));
}
else {
command.Parameters[5].Value = global::System.DBNull.Value;
}
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
command.Connection.Open();
}
int returnValue;
try {
returnValue = command.ExecuteNonQuery();
}
finally {
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
command.Connection.Close();
}
}
if (((command.Parameters[5].Value == null)
|| (command.Parameters[5].Value.GetType() == typeof(global::System.DBNull)))) {
TotCelle = new global::System.Nullable<int>();
}
else {
TotCelle = new global::System.Nullable<int>(((int)(command.Parameters[5].Value)));
}
return returnValue;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int stp_ContaCelleCreate(string CodCS, string CodMag, ref global::System.Nullable<int> TotCelle) {
global::System.Data.SqlClient.SqlCommand command = ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[5]));
if ((CodCS == null)) {
command.Parameters[1].Value = global::System.DBNull.Value;
}
else {
command.Parameters[1].Value = ((string)(CodCS));
}
if ((CodMag == null)) {
command.Parameters[2].Value = global::System.DBNull.Value;
}
else {
command.Parameters[2].Value = ((string)(CodMag));
}
if ((TotCelle.HasValue == true)) {
command.Parameters[3].Value = ((int)(TotCelle.Value));
}
else {
command.Parameters[3].Value = global::System.DBNull.Value;
}
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
command.Connection.Open();
}
int returnValue;
try {
returnValue = command.ExecuteNonQuery();
}
finally {
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
command.Connection.Close();
}
}
if (((command.Parameters[3].Value == null)
|| (command.Parameters[3].Value.GetType() == typeof(global::System.DBNull)))) {
TotCelle = new global::System.Nullable<int>();
}
else {
TotCelle = new global::System.Nullable<int>(((int)(command.Parameters[3].Value)));
}
return returnValue;
}
}
/// <summary>
+28 -15
View File
@@ -67,21 +67,6 @@ ORDER BY label</CommandText>
</DbCommand>
</SelectCommand>
</DbSource>
<DbSource ConnectionRef="GMWConnectionString (Settings)" DbObjectName="GMW.dbo.stp_ContaCelleBlocco" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="stp_ContaCelleBlocco" MethodsParameterType="CLR" Modifier="Public" Name="stp_ContaCelleBlocco" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy2" UserSourceName="stp_ContaCelleBlocco">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_ContaCelleBlocco</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="varchar" DbType="AnsiString" Direction="Input" ParameterName="@CodCS" Precision="0" ProviderType="VarChar" Scale="0" Size="2" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="varchar" DbType="AnsiString" Direction="Input" ParameterName="@CodMag" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="bit" DbType="Boolean" Direction="Input" ParameterName="@FiltAttive" Precision="1" ProviderType="Bit" Scale="0" Size="1" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@PosAssegnata" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="InputOutput" ParameterName="@TotCelle" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
<DbSource ConnectionRef="GMWConnectionString (Settings)" DbObjectName="GMW.dbo.stp_ContaDeltaCelleBlocco" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="stp_ContaDeltaCelleBlocco" MethodsParameterType="CLR" Modifier="Public" Name="stp_ContaDeltaCelleBlocco" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy3" UserSourceName="stp_ContaDeltaCelleBlocco">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
@@ -106,6 +91,34 @@ ORDER BY label</CommandText>
</DbCommand>
</SelectCommand>
</DbSource>
<DbSource ConnectionRef="GMWConnectionString (Settings)" DbObjectName="GMW.dbo.stp_ContaCelleBlocco" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="stp_ContaCelleBlocco" MethodsParameterType="CLR" Modifier="Public" Name="stp_ContaCelleBlocco" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy2" UserSourceName="stp_ContaCelleBlocco">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_ContaCelleBlocco</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="varchar" DbType="AnsiString" Direction="Input" ParameterName="@CodCS" Precision="0" ProviderType="VarChar" Scale="0" Size="2" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="varchar" DbType="AnsiString" Direction="Input" ParameterName="@CodMag" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="bit" DbType="Boolean" Direction="Input" ParameterName="@FiltAttive" Precision="1" ProviderType="Bit" Scale="0" Size="1" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="bit" DbType="Boolean" Direction="Input" ParameterName="@PosAssegnata" Precision="1" ProviderType="Bit" Scale="0" Size="1" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="InputOutput" ParameterName="@TotCelle" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
<DbSource ConnectionRef="GMWConnectionString (Settings)" DbObjectName="GMW.dbo.stp_ContaCelleCreate" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="stp_ContaCelleCreate" MethodsParameterType="CLR" Modifier="Public" Name="stp_ContaCelleCreate" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy5" UserSourceName="stp_ContaCelleCreate">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_ContaCelleCreate</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="varchar" DbType="AnsiString" Direction="Input" ParameterName="@CodCS" Precision="0" ProviderType="VarChar" Scale="0" Size="2" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="varchar" DbType="AnsiString" Direction="Input" ParameterName="@CodMag" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="InputOutput" ParameterName="@TotCelle" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
</Sources>
</DataSource>
</xs:appinfo>
Binary file not shown.
Binary file not shown.