paginazione con card delel 3 pagine main

This commit is contained in:
Samuele E. Locatelli
2018-09-04 10:34:34 +02:00
parent 74e9957394
commit cd98a6a6a2
15 changed files with 382 additions and 455 deletions
+151 -360
View File
@@ -1544,6 +1544,12 @@ namespace AppData {
private global::System.Data.DataColumn columnQtaEv;
private global::System.Data.DataColumn columnNomeOpr;
private global::System.Data.DataColumn columnDescrizione;
private global::System.Data.DataColumn columnDescrFase;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public TaskRecDataTable() {
@@ -1641,6 +1647,30 @@ namespace AppData {
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public global::System.Data.DataColumn NomeOprColumn {
get {
return this.columnNomeOpr;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public global::System.Data.DataColumn DescrizioneColumn {
get {
return this.columnDescrizione;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public global::System.Data.DataColumn DescrFaseColumn {
get {
return this.columnDescrFase;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
@@ -1678,7 +1708,7 @@ namespace AppData {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public TaskRecRow AddTaskRecRow(AnagOprRow parentAnagOprRowByFK_TaskRec_AnagOpr, AnagPostRow parentAnagPostRowByFK_TaskRec_AnagPost, string NumTask, AnagFasiRow parentAnagFasiRowByFK_TaskRec_AnagFasi, System.DateTime DtStart, System.DateTime DtEnd, int QtaEv) {
public TaskRecRow AddTaskRecRow(AnagOprRow parentAnagOprRowByFK_TaskRec_AnagOpr, AnagPostRow parentAnagPostRowByFK_TaskRec_AnagPost, string NumTask, AnagFasiRow parentAnagFasiRowByFK_TaskRec_AnagFasi, System.DateTime DtStart, System.DateTime DtEnd, int QtaEv, string NomeOpr, string Descrizione, string DescrFase) {
TaskRecRow rowTaskRecRow = ((TaskRecRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
null,
@@ -1688,7 +1718,10 @@ namespace AppData {
null,
DtStart,
DtEnd,
QtaEv};
QtaEv,
NomeOpr,
Descrizione,
DescrFase};
if ((parentAnagOprRowByFK_TaskRec_AnagOpr != null)) {
columnValuesArray[1] = parentAnagOprRowByFK_TaskRec_AnagOpr[0];
}
@@ -1735,6 +1768,9 @@ namespace AppData {
this.columnDtStart = base.Columns["DtStart"];
this.columnDtEnd = base.Columns["DtEnd"];
this.columnQtaEv = base.Columns["QtaEv"];
this.columnNomeOpr = base.Columns["NomeOpr"];
this.columnDescrizione = base.Columns["Descrizione"];
this.columnDescrFase = base.Columns["DescrFase"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -1756,6 +1792,12 @@ namespace AppData {
base.Columns.Add(this.columnDtEnd);
this.columnQtaEv = new global::System.Data.DataColumn("QtaEv", typeof(int), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnQtaEv);
this.columnNomeOpr = new global::System.Data.DataColumn("NomeOpr", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnNomeOpr);
this.columnDescrizione = new global::System.Data.DataColumn("Descrizione", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnDescrizione);
this.columnDescrFase = new global::System.Data.DataColumn("DescrFase", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnDescrFase);
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
this.columnIdxRec}, true));
this.columnIdxRec.AutoIncrement = true;
@@ -1774,6 +1816,10 @@ namespace AppData {
this.columnCodFase.MaxLength = 50;
this.columnDtStart.AllowDBNull = false;
this.columnQtaEv.AllowDBNull = false;
this.columnNomeOpr.ReadOnly = true;
this.columnNomeOpr.MaxLength = 101;
this.columnDescrizione.MaxLength = 50;
this.columnDescrFase.MaxLength = 50;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -3717,6 +3763,54 @@ namespace AppData {
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public string NomeOpr {
get {
try {
return ((string)(this[this.tableTaskRec.NomeOprColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("Il valore della colonna \'NomeOpr\' nella tabella \'TaskRec\' è DBNull.", e);
}
}
set {
this[this.tableTaskRec.NomeOprColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public string Descrizione {
get {
try {
return ((string)(this[this.tableTaskRec.DescrizioneColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("Il valore della colonna \'Descrizione\' nella tabella \'TaskRec\' è DBNull.", e);
}
}
set {
this[this.tableTaskRec.DescrizioneColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public string DescrFase {
get {
try {
return ((string)(this[this.tableTaskRec.DescrFaseColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("Il valore della colonna \'DescrFase\' nella tabella \'TaskRec\' è DBNull.", e);
}
}
set {
this[this.tableTaskRec.DescrFaseColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public AnagFasiRow AnagFasiRow {
@@ -3762,6 +3856,42 @@ namespace AppData {
this[this.tableTaskRec.DtEndColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public bool IsNomeOprNull() {
return this.IsNull(this.tableTaskRec.NomeOprColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public void SetNomeOprNull() {
this[this.tableTaskRec.NomeOprColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public bool IsDescrizioneNull() {
return this.IsNull(this.tableTaskRec.DescrizioneColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public void SetDescrizioneNull() {
this[this.tableTaskRec.DescrizioneColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public bool IsDescrFaseNull() {
return this.IsNull(this.tableTaskRec.DescrFaseColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public void SetDescrFaseNull() {
this[this.tableTaskRec.DescrFaseColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public TaskListRow[] GetTaskListRows() {
@@ -6046,54 +6176,10 @@ SELECT CodOpr, Cognome, Nome FROM AnagOpr WHERE (CodOpr = @CodOpr)";
tableMapping.ColumnMappings.Add("DtStart", "DtStart");
tableMapping.ColumnMappings.Add("DtEnd", "DtEnd");
tableMapping.ColumnMappings.Add("QtaEv", "QtaEv");
tableMapping.ColumnMappings.Add("NomeOpr", "NomeOpr");
tableMapping.ColumnMappings.Add("Descrizione", "Descrizione");
tableMapping.ColumnMappings.Add("DescrFase", "DescrFase");
this._adapter.TableMappings.Add(tableMapping);
this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
this._adapter.DeleteCommand.Connection = this.Connection;
this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[TaskRec] WHERE (([IdxRec] = @Original_IdxRec) AND ([CodOpr] = @Original_CodOpr) AND ([CodPost] = @Original_CodPost) AND ([NumTask] = @Original_NumTask) AND ([CodFase] = @Original_CodFase) AND ([DtStart] = @Original_DtStart) AND ((@IsNull_DtEnd = 1 AND [DtEnd] IS NULL) OR ([DtEnd] = @Original_DtEnd)) AND ([QtaEv] = @Original_QtaEv))";
this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxRec", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxRec", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodOpr", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodOpr", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodPost", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodPost", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NumTask", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumTask", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodFase", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodFase", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DtStart", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtStart", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DtEnd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtEnd", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DtEnd", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtEnd", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_QtaEv", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QtaEv", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
this._adapter.InsertCommand.Connection = this.Connection;
this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[TaskRec] ([CodOpr], [CodPost], [NumTask], [CodFase], [DtStart], [DtEnd], [QtaEv]) VALUES (@CodOpr, @CodPost, @NumTask, @CodFase, @DtStart, @DtEnd, @QtaEv);
SELECT IdxRec, CodOpr, CodPost, NumTask, CodFase, DtStart, DtEnd, QtaEv FROM TaskRec WHERE (IdxRec = SCOPE_IDENTITY())";
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodOpr", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodOpr", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodPost", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodPost", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumTask", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumTask", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodFase", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodFase", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DtStart", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtStart", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DtEnd", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtEnd", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QtaEv", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QtaEv", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
this._adapter.UpdateCommand.Connection = this.Connection;
this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[TaskRec] SET [CodOpr] = @CodOpr, [CodPost] = @CodPost, [NumTask] = @NumTask, [CodFase] = @CodFase, [DtStart] = @DtStart, [DtEnd] = @DtEnd, [QtaEv] = @QtaEv WHERE (([IdxRec] = @Original_IdxRec) AND ([CodOpr] = @Original_CodOpr) AND ([CodPost] = @Original_CodPost) AND ([NumTask] = @Original_NumTask) AND ([CodFase] = @Original_CodFase) AND ([DtStart] = @Original_DtStart) AND ((@IsNull_DtEnd = 1 AND [DtEnd] IS NULL) OR ([DtEnd] = @Original_DtEnd)) AND ([QtaEv] = @Original_QtaEv));
SELECT IdxRec, CodOpr, CodPost, NumTask, CodFase, DtStart, DtEnd, QtaEv FROM TaskRec WHERE (IdxRec = @IdxRec)";
this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodOpr", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodOpr", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodPost", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodPost", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumTask", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumTask", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodFase", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodFase", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DtStart", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtStart", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DtEnd", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtEnd", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QtaEv", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QtaEv", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxRec", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxRec", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodOpr", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodOpr", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodPost", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodPost", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NumTask", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumTask", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodFase", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodFase", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DtStart", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtStart", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DtEnd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtEnd", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DtEnd", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtEnd", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_QtaEv", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QtaEv", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxRec", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IdxRec", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -6106,12 +6192,17 @@ SELECT IdxRec, CodOpr, CodPost, NumTask, CodFase, DtStart, DtEnd, QtaEv FROM Tas
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
private void InitCommandCollection() {
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT IdxRec, CodOpr, CodPost, NumTask, CodFase, DtStart, DtEnd, QtaEv FROM dbo." +
"TaskRec";
this._commandCollection[0].CommandText = "SELECT *\r\nFROM v_TaskRec";
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[1].Connection = this.Connection;
this._commandCollection[1].CommandText = "dbo.stp_TR_GetByNumTask";
this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[1].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, "", "", ""));
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumTask", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -6141,252 +6232,18 @@ SELECT IdxRec, CodOpr, CodPost, NumTask, CodFase, DtStart, DtEnd, QtaEv FROM Tas
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int Update(DS_App.TaskRecDataTable dataTable) {
return this.Adapter.Update(dataTable);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int Update(DS_App dataSet) {
return this.Adapter.Update(dataSet, "TaskRec");
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int Update(global::System.Data.DataRow dataRow) {
return this.Adapter.Update(new global::System.Data.DataRow[] {
dataRow});
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int Update(global::System.Data.DataRow[] dataRows) {
return this.Adapter.Update(dataRows);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
public virtual int Delete(int Original_IdxRec, string Original_CodOpr, string Original_CodPost, string Original_NumTask, string Original_CodFase, System.DateTime Original_DtStart, global::System.Nullable<global::System.DateTime> Original_DtEnd, int Original_QtaEv) {
this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdxRec));
if ((Original_CodOpr == null)) {
throw new global::System.ArgumentNullException("Original_CodOpr");
}
else {
this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_CodOpr));
}
if ((Original_CodPost == null)) {
throw new global::System.ArgumentNullException("Original_CodPost");
}
else {
this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_CodPost));
}
if ((Original_NumTask == null)) {
throw new global::System.ArgumentNullException("Original_NumTask");
}
else {
this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_NumTask));
}
if ((Original_CodFase == null)) {
throw new global::System.ArgumentNullException("Original_CodFase");
}
else {
this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_CodFase));
}
this.Adapter.DeleteCommand.Parameters[5].Value = ((System.DateTime)(Original_DtStart));
if ((Original_DtEnd.HasValue == true)) {
this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[7].Value = ((System.DateTime)(Original_DtEnd.Value));
}
else {
this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[7].Value = global::System.DBNull.Value;
}
this.Adapter.DeleteCommand.Parameters[8].Value = ((int)(Original_QtaEv));
global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
this.Adapter.DeleteCommand.Connection.Open();
}
try {
int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
return returnValue;
}
finally {
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
this.Adapter.DeleteCommand.Connection.Close();
}
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
public virtual int Insert(string CodOpr, string CodPost, string NumTask, string CodFase, System.DateTime DtStart, global::System.Nullable<global::System.DateTime> DtEnd, int QtaEv) {
if ((CodOpr == null)) {
throw new global::System.ArgumentNullException("CodOpr");
}
else {
this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodOpr));
}
if ((CodPost == null)) {
throw new global::System.ArgumentNullException("CodPost");
}
else {
this.Adapter.InsertCommand.Parameters[1].Value = ((string)(CodPost));
}
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
public virtual DS_App.TaskRecDataTable getByNumTask(string NumTask) {
this.Adapter.SelectCommand = this.CommandCollection[1];
if ((NumTask == null)) {
throw new global::System.ArgumentNullException("NumTask");
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[2].Value = ((string)(NumTask));
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(NumTask));
}
if ((CodFase == null)) {
throw new global::System.ArgumentNullException("CodFase");
}
else {
this.Adapter.InsertCommand.Parameters[3].Value = ((string)(CodFase));
}
this.Adapter.InsertCommand.Parameters[4].Value = ((System.DateTime)(DtStart));
if ((DtEnd.HasValue == true)) {
this.Adapter.InsertCommand.Parameters[5].Value = ((System.DateTime)(DtEnd.Value));
}
else {
this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
}
this.Adapter.InsertCommand.Parameters[6].Value = ((int)(QtaEv));
global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
this.Adapter.InsertCommand.Connection.Open();
}
try {
int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
return returnValue;
}
finally {
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
this.Adapter.InsertCommand.Connection.Close();
}
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
public virtual int Update(
string CodOpr,
string CodPost,
string NumTask,
string CodFase,
System.DateTime DtStart,
global::System.Nullable<global::System.DateTime> DtEnd,
int QtaEv,
int Original_IdxRec,
string Original_CodOpr,
string Original_CodPost,
string Original_NumTask,
string Original_CodFase,
System.DateTime Original_DtStart,
global::System.Nullable<global::System.DateTime> Original_DtEnd,
int Original_QtaEv,
int IdxRec) {
if ((CodOpr == null)) {
throw new global::System.ArgumentNullException("CodOpr");
}
else {
this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodOpr));
}
if ((CodPost == null)) {
throw new global::System.ArgumentNullException("CodPost");
}
else {
this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(CodPost));
}
if ((NumTask == null)) {
throw new global::System.ArgumentNullException("NumTask");
}
else {
this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(NumTask));
}
if ((CodFase == null)) {
throw new global::System.ArgumentNullException("CodFase");
}
else {
this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(CodFase));
}
this.Adapter.UpdateCommand.Parameters[4].Value = ((System.DateTime)(DtStart));
if ((DtEnd.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[5].Value = ((System.DateTime)(DtEnd.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
}
this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(QtaEv));
this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_IdxRec));
if ((Original_CodOpr == null)) {
throw new global::System.ArgumentNullException("Original_CodOpr");
}
else {
this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_CodOpr));
}
if ((Original_CodPost == null)) {
throw new global::System.ArgumentNullException("Original_CodPost");
}
else {
this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_CodPost));
}
if ((Original_NumTask == null)) {
throw new global::System.ArgumentNullException("Original_NumTask");
}
else {
this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_NumTask));
}
if ((Original_CodFase == null)) {
throw new global::System.ArgumentNullException("Original_CodFase");
}
else {
this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_CodFase));
}
this.Adapter.UpdateCommand.Parameters[12].Value = ((System.DateTime)(Original_DtStart));
if ((Original_DtEnd.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[14].Value = ((System.DateTime)(Original_DtEnd.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
}
this.Adapter.UpdateCommand.Parameters[15].Value = ((int)(Original_QtaEv));
this.Adapter.UpdateCommand.Parameters[16].Value = ((int)(IdxRec));
global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
this.Adapter.UpdateCommand.Connection.Open();
}
try {
int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
return returnValue;
}
finally {
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
this.Adapter.UpdateCommand.Connection.Close();
}
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
public virtual int Update(string CodOpr, string CodPost, string NumTask, string CodFase, System.DateTime DtStart, global::System.Nullable<global::System.DateTime> DtEnd, int QtaEv, int Original_IdxRec, string Original_CodOpr, string Original_CodPost, string Original_NumTask, string Original_CodFase, System.DateTime Original_DtStart, global::System.Nullable<global::System.DateTime> Original_DtEnd, int Original_QtaEv) {
return this.Update(CodOpr, CodPost, NumTask, CodFase, DtStart, DtEnd, QtaEv, Original_IdxRec, Original_CodOpr, Original_CodPost, Original_NumTask, Original_CodFase, Original_DtStart, Original_DtEnd, Original_QtaEv, Original_IdxRec);
DS_App.TaskRecDataTable dataTable = new DS_App.TaskRecDataTable();
this.Adapter.Fill(dataTable);
return dataTable;
}
}
@@ -8474,8 +8331,6 @@ SELECT CodMappa, CodObj, CodStato, CodEvento, NextCodStato, CmdPlugin, text2show
private AnagOprTableAdapter _anagOprTableAdapter;
private TaskRecTableAdapter _taskRecTableAdapter;
private AnagPostTableAdapter _anagPostTableAdapter;
private TraEv2StatiTableAdapter _traEv2StatiTableAdapter;
@@ -8541,20 +8396,6 @@ SELECT CodMappa, CodObj, CodStato, CodEvento, NextCodStato, CmdPlugin, text2show
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
[global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
"ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
"a", "System.Drawing.Design.UITypeEditor")]
public TaskRecTableAdapter TaskRecTableAdapter {
get {
return this._taskRecTableAdapter;
}
set {
this._taskRecTableAdapter = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
[global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
@@ -8642,10 +8483,6 @@ SELECT CodMappa, CodObj, CodStato, CodEvento, NextCodStato, CmdPlugin, text2show
&& (this._anagOprTableAdapter.Connection != null))) {
return this._anagOprTableAdapter.Connection;
}
if (((this._taskRecTableAdapter != null)
&& (this._taskRecTableAdapter.Connection != null))) {
return this._taskRecTableAdapter.Connection;
}
if (((this._anagPostTableAdapter != null)
&& (this._anagPostTableAdapter.Connection != null))) {
return this._anagPostTableAdapter.Connection;
@@ -8684,9 +8521,6 @@ SELECT CodMappa, CodObj, CodStato, CodEvento, NextCodStato, CmdPlugin, text2show
if ((this._anagOprTableAdapter != null)) {
count = (count + 1);
}
if ((this._taskRecTableAdapter != null)) {
count = (count + 1);
}
if ((this._anagPostTableAdapter != null)) {
count = (count + 1);
}
@@ -8737,15 +8571,6 @@ SELECT CodMappa, CodObj, CodStato, CodEvento, NextCodStato, CmdPlugin, text2show
allChangedRows.AddRange(updatedRows);
}
}
if ((this._taskRecTableAdapter != null)) {
global::System.Data.DataRow[] updatedRows = dataSet.TaskRec.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
if (((updatedRows != null)
&& (0 < updatedRows.Length))) {
result = (result + this._taskRecTableAdapter.Update(updatedRows));
allChangedRows.AddRange(updatedRows);
}
}
if ((this._taskListTableAdapter != null)) {
global::System.Data.DataRow[] updatedRows = dataSet.TaskList.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
@@ -8816,14 +8641,6 @@ SELECT CodMappa, CodObj, CodStato, CodEvento, NextCodStato, CmdPlugin, text2show
allAddedRows.AddRange(addedRows);
}
}
if ((this._taskRecTableAdapter != null)) {
global::System.Data.DataRow[] addedRows = dataSet.TaskRec.Select(null, null, global::System.Data.DataViewRowState.Added);
if (((addedRows != null)
&& (0 < addedRows.Length))) {
result = (result + this._taskRecTableAdapter.Update(addedRows));
allAddedRows.AddRange(addedRows);
}
}
if ((this._taskListTableAdapter != null)) {
global::System.Data.DataRow[] addedRows = dataSet.TaskList.Select(null, null, global::System.Data.DataViewRowState.Added);
if (((addedRows != null)
@@ -8898,14 +8715,6 @@ SELECT CodMappa, CodObj, CodStato, CodEvento, NextCodStato, CmdPlugin, text2show
allChangedRows.AddRange(deletedRows);
}
}
if ((this._taskRecTableAdapter != null)) {
global::System.Data.DataRow[] deletedRows = dataSet.TaskRec.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
&& (0 < deletedRows.Length))) {
result = (result + this._taskRecTableAdapter.Update(deletedRows));
allChangedRows.AddRange(deletedRows);
}
}
if ((this._anagPostTableAdapter != null)) {
global::System.Data.DataRow[] deletedRows = dataSet.AnagPost.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
@@ -8984,11 +8793,6 @@ SELECT CodMappa, CodObj, CodStato, CodEvento, NextCodStato, CmdPlugin, text2show
throw new global::System.ArgumentException("Tutti gli oggetti TableAdapter gestiti da TableAdapterManager devono utilizzare l" +
"a stessa stringa di connessione.");
}
if (((this._taskRecTableAdapter != null)
&& (this.MatchTableAdapterConnection(this._taskRecTableAdapter.Connection) == false))) {
throw new global::System.ArgumentException("Tutti gli oggetti TableAdapter gestiti da TableAdapterManager devono utilizzare l" +
"a stessa stringa di connessione.");
}
if (((this._anagPostTableAdapter != null)
&& (this.MatchTableAdapterConnection(this._anagPostTableAdapter.Connection) == false))) {
throw new global::System.ArgumentException("Tutti gli oggetti TableAdapter gestiti da TableAdapterManager devono utilizzare l" +
@@ -9069,15 +8873,6 @@ SELECT CodMappa, CodObj, CodStato, CodEvento, NextCodStato, CmdPlugin, text2show
adaptersWithAcceptChangesDuringUpdate.Add(this._anagOprTableAdapter.Adapter);
}
}
if ((this._taskRecTableAdapter != null)) {
revertConnections.Add(this._taskRecTableAdapter, this._taskRecTableAdapter.Connection);
this._taskRecTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
this._taskRecTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
if (this._taskRecTableAdapter.Adapter.AcceptChangesDuringUpdate) {
this._taskRecTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
adaptersWithAcceptChangesDuringUpdate.Add(this._taskRecTableAdapter.Adapter);
}
}
if ((this._anagPostTableAdapter != null)) {
revertConnections.Add(this._anagPostTableAdapter, this._anagPostTableAdapter.Connection);
this._anagPostTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
@@ -9184,10 +8979,6 @@ SELECT CodMappa, CodObj, CodStato, CodEvento, NextCodStato, CmdPlugin, text2show
this._anagOprTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagOprTableAdapter]));
this._anagOprTableAdapter.Transaction = null;
}
if ((this._taskRecTableAdapter != null)) {
this._taskRecTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._taskRecTableAdapter]));
this._taskRecTableAdapter.Transaction = null;
}
if ((this._anagPostTableAdapter != null)) {
this._anagPostTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagPostTableAdapter]));
this._anagPostTableAdapter.Transaction = null;
+41 -60
View File
@@ -261,69 +261,14 @@ SELECT CodOpr, Cognome, Nome FROM AnagOpr WHERE (CodOpr = @CodOpr)</CommandText>
</TableAdapter>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="TaskRecTableAdapter" GeneratorDataComponentClassName="TaskRecTableAdapter" Name="TaskRec" UserDataComponentName="TaskRecTableAdapter">
<MainSource>
<DbSource ConnectionRef="C_TRACKConnectionString (Settings)" DbObjectName="C_TRACK.dbo.TaskRec" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
<DeleteCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>DELETE FROM [dbo].[TaskRec] WHERE (([IdxRec] = @Original_IdxRec) AND ([CodOpr] = @Original_CodOpr) AND ([CodPost] = @Original_CodPost) AND ([NumTask] = @Original_NumTask) AND ([CodFase] = @Original_CodFase) AND ([DtStart] = @Original_DtStart) AND ((@IsNull_DtEnd = 1 AND [DtEnd] IS NULL) OR ([DtEnd] = @Original_DtEnd)) AND ([QtaEv] = @Original_QtaEv))</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IdxRec" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdxRec" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CodOpr" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodOpr" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CodPost" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodPost" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_NumTask" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NumTask" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CodFase" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodFase" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_DtStart" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DtStart" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DtEnd" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DtEnd" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_DtEnd" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DtEnd" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_QtaEv" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="QtaEv" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</DeleteCommand>
<InsertCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>INSERT INTO [dbo].[TaskRec] ([CodOpr], [CodPost], [NumTask], [CodFase], [DtStart], [DtEnd], [QtaEv]) VALUES (@CodOpr, @CodPost, @NumTask, @CodFase, @DtStart, @DtEnd, @QtaEv);
SELECT IdxRec, CodOpr, CodPost, NumTask, CodFase, DtStart, DtEnd, QtaEv FROM TaskRec WHERE (IdxRec = SCOPE_IDENTITY())</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CodOpr" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodOpr" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CodPost" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodPost" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@NumTask" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NumTask" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CodFase" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodFase" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@DtStart" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DtStart" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@DtEnd" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DtEnd" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@QtaEv" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="QtaEv" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</InsertCommand>
<DbSource ConnectionRef="C_TRACKConnectionString (Settings)" DbObjectName="C_TRACK.dbo.v_TaskRec" DbObjectType="View" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT IdxRec, CodOpr, CodPost, NumTask, CodFase, DtStart, DtEnd, QtaEv FROM dbo.TaskRec</CommandText>
<DbCommand CommandType="Text" ModifiedByUser="true">
<CommandText>SELECT *
FROM v_TaskRec</CommandText>
<Parameters />
</DbCommand>
</SelectCommand>
<UpdateCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>UPDATE [dbo].[TaskRec] SET [CodOpr] = @CodOpr, [CodPost] = @CodPost, [NumTask] = @NumTask, [CodFase] = @CodFase, [DtStart] = @DtStart, [DtEnd] = @DtEnd, [QtaEv] = @QtaEv WHERE (([IdxRec] = @Original_IdxRec) AND ([CodOpr] = @Original_CodOpr) AND ([CodPost] = @Original_CodPost) AND ([NumTask] = @Original_NumTask) AND ([CodFase] = @Original_CodFase) AND ([DtStart] = @Original_DtStart) AND ((@IsNull_DtEnd = 1 AND [DtEnd] IS NULL) OR ([DtEnd] = @Original_DtEnd)) AND ([QtaEv] = @Original_QtaEv));
SELECT IdxRec, CodOpr, CodPost, NumTask, CodFase, DtStart, DtEnd, QtaEv FROM TaskRec WHERE (IdxRec = @IdxRec)</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CodOpr" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodOpr" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CodPost" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodPost" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@NumTask" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NumTask" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CodFase" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodFase" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@DtStart" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DtStart" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@DtEnd" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DtEnd" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@QtaEv" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="QtaEv" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IdxRec" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdxRec" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CodOpr" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodOpr" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CodPost" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodPost" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_NumTask" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NumTask" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CodFase" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodFase" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_DtStart" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DtStart" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DtEnd" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DtEnd" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_DtEnd" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DtEnd" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_QtaEv" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="QtaEv" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="IdxRec" ColumnName="IdxRec" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IdxRec" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="IdxRec" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</UpdateCommand>
</DbSource>
</MainSource>
<Mappings>
@@ -335,8 +280,23 @@ SELECT IdxRec, CodOpr, CodPost, NumTask, CodFase, DtStart, DtEnd, QtaEv FROM Tas
<Mapping SourceColumn="DtStart" DataSetColumn="DtStart" />
<Mapping SourceColumn="DtEnd" DataSetColumn="DtEnd" />
<Mapping SourceColumn="QtaEv" DataSetColumn="QtaEv" />
<Mapping SourceColumn="NomeOpr" DataSetColumn="NomeOpr" />
<Mapping SourceColumn="Descrizione" DataSetColumn="Descrizione" />
<Mapping SourceColumn="DescrFase" DataSetColumn="DescrFase" />
</Mappings>
<Sources />
<Sources>
<DbSource ConnectionRef="C_TRACKConnectionString (Settings)" DbObjectName="C_TRACK.dbo.stp_TR_GetByNumTask" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByNumTask" GetMethodModifier="Public" GetMethodName="getByNumTask" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByNumTask" UserSourceName="getByNumTask">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_TR_GetByNumTask</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="nvarchar" DbType="String" Direction="Input" ParameterName="@NumTask" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
</Sources>
</TableAdapter>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="AnagPostTableAdapter" GeneratorDataComponentClassName="AnagPostTableAdapter" Name="AnagPost" UserDataComponentName="AnagPostTableAdapter">
<MainSource>
@@ -812,6 +772,27 @@ SELECT CodMappa, CodObj, CodStato, CodEvento, NextCodStato, CmdPlugin, text2show
<xs:element name="DtStart" msprop:Generator_ColumnVarNameInTable="columnDtStart" msprop:Generator_ColumnPropNameInRow="DtStart" msprop:Generator_ColumnPropNameInTable="DtStartColumn" msprop:Generator_UserColumnName="DtStart" type="xs:dateTime" />
<xs:element name="DtEnd" msprop:Generator_ColumnVarNameInTable="columnDtEnd" msprop:Generator_ColumnPropNameInRow="DtEnd" msprop:Generator_ColumnPropNameInTable="DtEndColumn" msprop:Generator_UserColumnName="DtEnd" type="xs:dateTime" minOccurs="0" />
<xs:element name="QtaEv" msprop:Generator_ColumnVarNameInTable="columnQtaEv" msprop:Generator_ColumnPropNameInRow="QtaEv" msprop:Generator_ColumnPropNameInTable="QtaEvColumn" msprop:Generator_UserColumnName="QtaEv" type="xs:int" />
<xs:element name="NomeOpr" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnNomeOpr" msprop:Generator_ColumnPropNameInRow="NomeOpr" msprop:Generator_ColumnPropNameInTable="NomeOprColumn" msprop:Generator_UserColumnName="NomeOpr" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="101" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Descrizione" msprop:Generator_ColumnVarNameInTable="columnDescrizione" msprop:Generator_ColumnPropNameInRow="Descrizione" msprop:Generator_ColumnPropNameInTable="DescrizioneColumn" msprop:Generator_UserColumnName="Descrizione" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="DescrFase" msprop:Generator_ColumnVarNameInTable="columnDescrFase" msprop:Generator_ColumnPropNameInRow="DescrFase" msprop:Generator_ColumnPropNameInTable="DescrFaseColumn" msprop:Generator_UserColumnName="DescrFase" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
+3 -3
View File
@@ -9,7 +9,7 @@
<Shape ID="DesignTable:TaskList" ZOrder="12" X="91" Y="404" Height="388" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="237" />
<Shape ID="DesignTable:AnagFasi" ZOrder="11" X="897" Y="421" Height="181" Width="231" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="122" />
<Shape ID="DesignTable:AnagOpr" ZOrder="10" X="900" Y="728" Height="181" Width="231" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="99" />
<Shape ID="DesignTable:TaskRec" ZOrder="9" X="481" Y="494" Height="273" Width="224" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="214" />
<Shape ID="DesignTable:TaskRec" ZOrder="9" X="481" Y="494" Height="365" Width="235" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="283" />
<Shape ID="DesignTable:AnagPost" ZOrder="1" X="561" Y="168" Height="273" Width="250" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="145" />
<Shape ID="DesignTable:TraEv2Stati" ZOrder="4" X="195" Y="1020" Height="296" Width="247" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="214" />
<Shape ID="DesignTable:AnagEventi" ZOrder="3" X="712" Y="1094" Height="204" Width="248" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="122" />
@@ -23,7 +23,7 @@
<Y>548</Y>
</Point>
<Point>
<X>705</X>
<X>716</X>
<Y>548</Y>
</Point>
</RoutePoints>
@@ -35,7 +35,7 @@
<Y>747</Y>
</Point>
<Point>
<X>705</X>
<X>716</X>
<Y>747</Y>
</Point>
</RoutePoints>
+8
View File
@@ -275,6 +275,7 @@
<Content Include="Content\Style.less" />
<Content Include="WebUserControls\mod_postazioni.ascx" />
<Content Include="WebUserControls\mod_taskList.ascx" />
<Content Include="WebUserControls\mod_taskRec.ascx" />
<None Include="compilerconfig.json" />
<None Include="compilerconfig.json.defaults">
<DependentUpon>compilerconfig.json</DependentUpon>
@@ -539,6 +540,13 @@
<Compile Include="WebUserControls\mod_taskList.ascx.designer.cs">
<DependentUpon>mod_taskList.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\mod_taskRec.ascx.cs">
<DependentUpon>mod_taskRec.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="WebUserControls\mod_taskRec.ascx.designer.cs">
<DependentUpon>mod_taskRec.ascx</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<Folder Include="App_Data\" />
+14 -10
View File
@@ -60,7 +60,7 @@ namespace C_TRACK.WebUserControls
/// <summary>
/// RegExp x CONFERMA
/// </summary>
protected string reAddNew = memLayer.ML.cdv("regExp_OK");
protected string reAddNew = memLayer.ML.cdv("regExp_AddNew");
/// <summary>
/// RegExp x CONFERMA
/// </summary>
@@ -111,16 +111,20 @@ namespace C_TRACK.WebUserControls
}
else if (testAddNew.Success)
{
// creo...
dataLayer.man.taTL.insertQuery(NumTask, CodArticolo, Quantita);
// resetto!
CodArticolo = "";
NumTask = "";
Quantita = 0;
// invoco update...
if (eh_created != null)
// se qta > 0 ed ho articolo e commessa...
if (Quantita > 0 && CodArticolo != "" && NumTask != "")
{
eh_created(this, new EventArgs());
// creo...
dataLayer.man.taTL.insertQuery(NumTask, CodArticolo, Quantita);
// resetto!
CodArticolo = "";
NumTask = "";
Quantita = 0;
// invoco update...
if (eh_created != null)
{
eh_created(this, new EventArgs());
}
}
}
else if (testCodArt.Success)
+4 -6
View File
@@ -1,5 +1,7 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_taskList.ascx.cs" Inherits="C_TRACK.WebUserControls.mod_taskList" %>
<%@ Register Src="~/WebUserControls/mod_barcode.ascx" TagPrefix="uc1" TagName="mod_barcode" %>
<%@ Register Src="~/WebUserControls/mod_taskRec.ascx" TagPrefix="uc1" TagName="mod_taskRec" %>
<div class="row text-uppercase">
@@ -18,9 +20,8 @@
</div>
<div class="row">
<div class="col-12">
<asp:FormView runat="server" ID="frmView">
</asp:FormView>
<asp:GridView ID="grView" runat="server" AutoGenerateColumns="False" DataKeyNames="NumTask" DataSourceID="ods" CssClass="table table-striped table-condensed small" AllowPaging="True">
<uc1:mod_taskRec runat="server" ID="mod_taskRec" />
<asp:GridView ID="grView" runat="server" AutoGenerateColumns="False" DataKeyNames="NumTask" DataSourceID="ods" CssClass="table table-striped table-condensed small" AllowPaging="True" AllowSorting="true" OnSelectedIndexChanged="grView_SelectedIndexChanged">
<HeaderStyle CssClass="default" />
<PagerStyle CssClass="active GridPager" />
<PagerSettings Mode="NumericFirstLast" />
@@ -41,9 +42,6 @@
<asp:BoundField DataField="CodArt" HeaderText="Articolo" SortExpression="CodArt" />
<asp:BoundField DataField="QtaRic" HeaderText="Qta" SortExpression="QtaRic" />
<asp:BoundField DataField="DataIns" HeaderText="Inserita" SortExpression="DataIns" />
<%--<asp:BoundField DataField="DataStart" HeaderText="Avviata" SortExpression="DataStart" />
<asp:BoundField DataField="Prior" HeaderText="Prior" SortExpression="Prior" />
<asp:CheckBoxField DataField="Concluso" HeaderText="Concluso" SortExpression="Concluso" />--%>
<asp:BoundField DataField="CurrStatus" HeaderText="St" ReadOnly="True" SortExpression="CurrStatus" />
<asp:TemplateField ShowHeader="False" ItemStyle-Width="2em">
<ItemTemplate>
@@ -101,6 +101,17 @@ namespace C_TRACK.WebUserControls
{
grView.SelectedIndex = -1;
grView.DataBind();
mod_taskRec.NumTask = "";
showDetail(false);
}
/// <summary>
/// Gestione visibilità dettalgior ecord x task
/// </summary>
/// <param name="showDetail"></param>
private void showDetail(bool showDetail)
{
// mostro/nascondo dettaglio REC
mod_taskRec.Visible = showDetail;
}
protected void lbCaricati_Click(object sender, EventArgs e)
@@ -127,5 +138,12 @@ namespace C_TRACK.WebUserControls
{
grView.DataBind();
}
protected void grView_SelectedIndexChanged(object sender, EventArgs e)
{
// mostro dettaglio...
mod_taskRec.NumTask = grView.SelectedValue.ToString();
showDetail(true);
}
}
}
+2 -2
View File
@@ -49,13 +49,13 @@ namespace C_TRACK.WebUserControls {
protected global::System.Web.UI.WebControls.LinkButton lbTutti;
/// <summary>
/// Controllo frmView.
/// Controllo mod_taskRec.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.FormView frmView;
protected global::C_TRACK.WebUserControls.mod_taskRec mod_taskRec;
/// <summary>
/// Controllo grView.
+29
View File
@@ -0,0 +1,29 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_taskRec.ascx.cs" Inherits="C_TRACK.WebUserControls.mod_taskRec" %>
<asp:GridView runat="server" ID="grView" DataSourceID="ods" CssClass="table table-striped table-condensed small" AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="IdxRec">
<HeaderStyle CssClass="default" />
<PagerStyle CssClass="active GridPager" />
<PagerSettings Mode="NumericFirstLast" />
<SelectedRowStyle CssClass="info" />
<EmptyDataTemplate>
Nessun Risultato
</EmptyDataTemplate>
<Columns>
<asp:BoundField DataField="IdxRec" HeaderText="IdxRec" InsertVisible="False" ReadOnly="True" SortExpression="IdxRec" />
<asp:BoundField DataField="CodOpr" HeaderText="CodOpr" SortExpression="CodOpr" />
<asp:BoundField DataField="CodPost" HeaderText="CodPost" SortExpression="CodPost" />
<asp:BoundField DataField="NumTask" HeaderText="NumTask" SortExpression="NumTask" />
<asp:BoundField DataField="CodFase" HeaderText="CodFase" SortExpression="CodFase" />
<asp:BoundField DataField="DtStart" HeaderText="DtStart" SortExpression="DtStart" />
<asp:BoundField DataField="DtEnd" HeaderText="DtEnd" SortExpression="DtEnd" />
<asp:BoundField DataField="QtaEv" HeaderText="QtaEv" SortExpression="QtaEv" />
<asp:BoundField DataField="NomeOpr" HeaderText="NomeOpr" ReadOnly="True" SortExpression="NomeOpr" />
<asp:BoundField DataField="Descrizione" HeaderText="Descrizione" SortExpression="Descrizione" />
<asp:BoundField DataField="DescrFase" HeaderText="DescrFase" SortExpression="DescrFase" />
</Columns>
</asp:GridView>
<asp:HiddenField runat="server" ID="hfNumTask" />
<asp:ObjectDataSource runat="server" ID="ods" OldValuesParameterFormatString="Original_{0}" SelectMethod="getByNumTask" TypeName="AppData.DS_AppTableAdapters.TaskRecTableAdapter">
<SelectParameters>
<asp:ControlParameter ControlID="hfNumTask" Name="NumTask" DbType="String" DefaultValue="" />
</SelectParameters>
</asp:ObjectDataSource>
@@ -0,0 +1,26 @@
using System;
namespace C_TRACK.WebUserControls
{
public partial class mod_taskRec : System.Web.UI.UserControl
{
protected void Page_Load(object sender, EventArgs e)
{
}
/// <summary>
/// Filtro task
/// </summary>
public string NumTask
{
get
{
return hfNumTask.Value;
}
set
{
hfNumTask.Value = value;
}
}
}
}
+42
View File
@@ -0,0 +1,42 @@
//------------------------------------------------------------------------------
// <generato automaticamente>
// Codice generato da uno strumento.
//
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
// il codice viene rigenerato.
// </generato automaticamente>
//------------------------------------------------------------------------------
namespace C_TRACK.WebUserControls {
public partial class mod_taskRec {
/// <summary>
/// Controllo grView.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.GridView grView;
/// <summary>
/// Controllo hfNumTask.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.HiddenField hfNumTask;
/// <summary>
/// Controllo ods.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.ObjectDataSource ods;
}
}
+11 -4
View File
@@ -5,9 +5,16 @@
<%@ Register Src="~/WebUserControls/mod_checkOpr.ascx" TagPrefix="uc1" TagName="mod_checkOpr" %>
<asp:Content ID="Content1" ContentPlaceHolderID="body" runat="Server">
<uc1:mod_checkOpr runat="server" ID="mod_checkOpr" />
<uc1:mod_barcode ID="mod_barcode1" runat="server" />
<uc2:mod_btnComandi ID="mod_btnComandi1" runat="server" />
<div class="card">
<div class="card-header text-center">
<h2>Gestione Dichiarazioni</h2>
</div>
<div class="card-body">
<uc1:mod_checkOpr runat="server" ID="mod_checkOpr" />
<uc1:mod_barcode ID="mod_barcode1" runat="server" />
<uc2:mod_btnComandi ID="mod_btnComandi1" runat="server" />
</div>
</div>
<div class="p-1 row table-secondary form-group fixed-bottom small">
<div class="col-4">
<label for="txtCacheSec">Validità cache (sec)</label>
@@ -22,7 +29,7 @@
<asp:Button ID="btnReload" runat="server" Text="Aggiorna" OnClick="btnReload_Click" CssClass="btn text-truncate btn-block btn-dark" />
</div>
<div class="col-12 text-center align-middle">
<%: string.Format("DB ReLoadTime {0:N3}sec ", lastUpdDuration.TotalSeconds) %> |
<%: string.Format("DB ReLoadTime {0:N3}sec ", lastUpdDuration.TotalSeconds) %> |
<%: string.Format("Caricati {0} Comandi", nComandi) %> |
<%: string.Format("{0} Record BCode", nBCodeRec) %>
</div>
+9 -5
View File
@@ -8,9 +8,13 @@
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="body" runat="server">
elenco postazioni in cui selezionare
<br />
...le postazioni devono essere "unicamente occupabili"?!?
<uc1:mod_checkOpr runat="server" ID="mod_checkOpr" />
<uc1:mod_postazioni runat="server" ID="mod_postazioni" />
<div class="card">
<div class="card-header text-right text-primary">
<h2>Gestione Postazioni</h2>
</div>
<div class="card-body">
<uc1:mod_checkOpr runat="server" ID="mod_checkOpr" />
<uc1:mod_postazioni runat="server" ID="mod_postazioni" />
</div>
</div>
</asp:Content>
+15 -5
View File
@@ -3,13 +3,23 @@
<%@ Register Src="~/WebUserControls/mod_taskList.ascx" TagPrefix="uc1" TagName="mod_taskList" %>
<%@ Register Src="~/WebUserControls/mod_barcode.ascx" TagPrefix="uc1" TagName="mod_barcode" %>
<%@ Register Src="~/WebUserControls/mod_addTask.ascx" TagPrefix="uc1" TagName="mod_addTask" %>
<%@ Register Src="~/WebUserControls/mod_checkOpr.ascx" TagPrefix="uc1" TagName="mod_checkOpr" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="body" runat="server">
<uc1:mod_barcode runat="server" ID="mod_barcode" />
<uc1:mod_addTask runat="server" ID="mod_addTask" />
<uc1:mod_taskList runat="server" ID="mod_taskList" />
<div class="card">
<div class="card-header text-left text-primary">
<h2>Gestione Commesse</h2>
</div>
<div class="card-body">
<%--<h5 class="card-title">Special title treatment</h5>
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
<a href="#" class="btn btn-primary">Go somewhere</a>--%>
<uc1:mod_checkOpr runat="server" ID="mod_checkOpr" />
<uc1:mod_barcode runat="server" ID="mod_barcode" />
<uc1:mod_addTask runat="server" ID="mod_addTask" />
<uc1:mod_taskList runat="server" ID="mod_taskList" />
</div>
</div>
</asp:Content>
+9
View File
@@ -12,6 +12,15 @@ namespace C_TRACK {
public partial class task {
/// <summary>
/// Controllo mod_checkOpr.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::C_TRACK.WebUserControls.mod_checkOpr mod_checkOpr;
/// <summary>
/// Controllo mod_barcode.
/// </summary>