OK selezione commessa ed import preliminare dati...
This commit is contained in:
Generated
+70
-13
@@ -5492,7 +5492,7 @@ namespace AppData.DS_AppTableAdapters {
|
||||
[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[7];
|
||||
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[8];
|
||||
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[0].Connection = this.Connection;
|
||||
this._commandCollection[0].CommandText = "SELECT *\r\nFROM v_TaskList";
|
||||
@@ -5525,19 +5525,25 @@ namespace AppData.DS_AppTableAdapters {
|
||||
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@LastDD", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[5] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[5].Connection = this.Connection;
|
||||
this._commandCollection[5].CommandText = "dbo.stp_TL_insertQuery";
|
||||
this._commandCollection[5].CommandText = "dbo.stp_TL_ImportNew";
|
||||
this._commandCollection[5].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
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, "", "", ""));
|
||||
this._commandCollection[5].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, "", "", ""));
|
||||
this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArt", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QtaRic", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[6] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[6].Connection = this.Connection;
|
||||
this._commandCollection[6].CommandText = "dbo.stp_TL_updateClose";
|
||||
this._commandCollection[6].CommandText = "dbo.stp_TL_insertQuery";
|
||||
this._commandCollection[6].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[6].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[6].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, "", "", ""));
|
||||
this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Concluso", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArt", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QtaRic", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[7] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[7].Connection = this.Connection;
|
||||
this._commandCollection[7].CommandText = "dbo.stp_TL_updateClose";
|
||||
this._commandCollection[7].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[7].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[7].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, "", "", ""));
|
||||
this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Concluso", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
@@ -5658,7 +5664,7 @@ namespace AppData.DS_AppTableAdapters {
|
||||
[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 insertQuery(string NumTask, string CodArt, global::System.Nullable<int> QtaRic) {
|
||||
public virtual int ImportNew(string NumTask) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[5];
|
||||
if ((NumTask == null)) {
|
||||
command.Parameters[1].Value = global::System.DBNull.Value;
|
||||
@@ -5666,6 +5672,34 @@ namespace AppData.DS_AppTableAdapters {
|
||||
else {
|
||||
command.Parameters[1].Value = ((string)(NumTask));
|
||||
}
|
||||
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();
|
||||
}
|
||||
}
|
||||
return returnValue;
|
||||
}
|
||||
|
||||
[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 insertQuery(string NumTask, string CodArt, global::System.Nullable<int> QtaRic) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[6];
|
||||
if ((NumTask == null)) {
|
||||
command.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
command.Parameters[1].Value = ((string)(NumTask));
|
||||
}
|
||||
if ((CodArt == null)) {
|
||||
command.Parameters[2].Value = global::System.DBNull.Value;
|
||||
}
|
||||
@@ -5699,7 +5733,7 @@ namespace AppData.DS_AppTableAdapters {
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
public virtual int updateClose(string NumTask, global::System.Nullable<bool> Concluso) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[6];
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[7];
|
||||
if ((NumTask == null)) {
|
||||
command.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
@@ -8754,7 +8788,7 @@ SELECT CodEvento, CodTipoEvento, DescrEvento, Action FROM AnagEventi WHERE (CodE
|
||||
[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[2];
|
||||
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[3];
|
||||
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[0].Connection = this.Connection;
|
||||
this._commandCollection[0].CommandText = "SELECT idxPromessa, KeyRichiesta, KeyBCode, Attivabile, IdxODL, CodArticolo, CodG" +
|
||||
@@ -8763,11 +8797,17 @@ SELECT CodEvento, CodTipoEvento, DescrEvento, Action FROM AnagEventi WHERE (CodE
|
||||
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_PODL_getFilt";
|
||||
this._commandCollection[1].CommandText = "dbo.stp_PODL_getByKey";
|
||||
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("@CodPost", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OnlyOpen", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxPromessa", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[2].Connection = this.Connection;
|
||||
this._commandCollection[2].CommandText = "dbo.stp_PODL_getFilt";
|
||||
this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
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, "", "", ""));
|
||||
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodPost", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OnlyOpen", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
@@ -8798,8 +8838,25 @@ SELECT CodEvento, CodTipoEvento, DescrEvento, Action FROM AnagEventi WHERE (CodE
|
||||
[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.Select, false)]
|
||||
public virtual DS_App.PODLDataTable getFilt(string CodPost, global::System.Nullable<int> OnlyOpen) {
|
||||
public virtual DS_App.PODLDataTable getByKey(global::System.Nullable<int> IdxPromessa) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[1];
|
||||
if ((IdxPromessa.HasValue == true)) {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = ((int)(IdxPromessa.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
DS_App.PODLDataTable dataTable = new DS_App.PODLDataTable();
|
||||
this.Adapter.Fill(dataTable);
|
||||
return 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")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
|
||||
public virtual DS_App.PODLDataTable getFilt(string CodPost, global::System.Nullable<int> OnlyOpen) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[2];
|
||||
if ((CodPost == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
|
||||
@@ -80,6 +80,17 @@ FROM v_TaskList</CommandText>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="C_TRACKConnectionString (Settings)" DbObjectName="C_TRACK.dbo.stp_TL_ImportNew" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="ImportNew" Modifier="Public" Name="ImportNew" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy3" UserSourceName="ImportNew">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_TL_ImportNew</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>
|
||||
<DbSource ConnectionRef="C_TRACKConnectionString (Settings)" DbObjectName="C_TRACK.dbo.stp_TL_insertQuery" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="insertQuery" Modifier="Public" Name="insertQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="insertQuery">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
@@ -723,6 +734,17 @@ SELECT CodEvento, CodTipoEvento, DescrEvento, Action FROM AnagEventi WHERE (CodE
|
||||
<Mapping SourceColumn="Tipo" DataSetColumn="Tipo" />
|
||||
</Mappings>
|
||||
<Sources>
|
||||
<DbSource ConnectionRef="C_TRACKConnectionString (Settings)" DbObjectName="C_TRACK.dbo.stp_PODL_getByKey" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByKey" GetMethodModifier="Public" GetMethodName="getByKey" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByKey" UserSourceName="getByKey">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_PODL_getByKey</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="int" DbType="Int32" Direction="Input" ParameterName="@IdxPromessa" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="C_TRACKConnectionString (Settings)" DbObjectName="C_TRACK.dbo.stp_PODL_getFilt" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getFilt" GetMethodModifier="Public" GetMethodName="getFilt" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getFilt" UserSourceName="getFilt">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
|
||||
+3
-3
@@ -4,16 +4,16 @@
|
||||
Changes to this file may cause incorrect behavior and will be lost if
|
||||
the code is regenerated.
|
||||
</autogenerated>-->
|
||||
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-10" ViewPortY="655" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
|
||||
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-10" ViewPortY="167" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
|
||||
<Shapes>
|
||||
<Shape ID="DesignTable:TaskList" ZOrder="3" X="91" Y="386" Height="457" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="306" />
|
||||
<Shape ID="DesignTable:TaskList" ZOrder="3" X="91" Y="386" Height="503" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="306" />
|
||||
<Shape ID="DesignTable:AnagFasi" ZOrder="5" X="897" Y="421" Height="227" Width="231" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="122" />
|
||||
<Shape ID="DesignTable:AnagOpr" ZOrder="12" X="900" Y="728" Height="181" Width="231" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="99" />
|
||||
<Shape ID="DesignTable:TaskRec" ZOrder="4" X="519" Y="541" Height="457" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="306" />
|
||||
<Shape ID="DesignTable:AnagPost" ZOrder="2" X="519" Y="177" Height="296" Width="235" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="145" />
|
||||
<Shape ID="DesignTable:TraEv2Stati" ZOrder="7" X="195" Y="1020" Height="296" Width="247" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="214" />
|
||||
<Shape ID="DesignTable:AnagEventi" ZOrder="6" X="903" Y="966" Height="204" Width="248" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="122" />
|
||||
<Shape ID="DesignTable:PODL" ZOrder="1" X="560" Y="1047" Height="388" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="306" />
|
||||
<Shape ID="DesignTable:PODL" ZOrder="1" X="560" Y="1047" Height="411" Width="262" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="306" />
|
||||
</Shapes>
|
||||
<Connectors>
|
||||
<Connector ID="DesignRelation:FK_TaskRec_AnagFasi" ZOrder="11" LineWidth="11">
|
||||
|
||||
@@ -21,6 +21,7 @@ namespace AppData
|
||||
taAF = new DS_AppTableAdapters.AnagFasiTableAdapter();
|
||||
taAO = new DS_AppTableAdapters.AnagOprTableAdapter();
|
||||
taAP = new DS_AppTableAdapters.AnagPostTableAdapter();
|
||||
taPODL = new DS_AppTableAdapters.PODLTableAdapter();
|
||||
taTL = new DS_AppTableAdapters.TaskListTableAdapter();
|
||||
taTR = new DS_AppTableAdapters.TaskRecTableAdapter();
|
||||
taTE2S = new DS_AppTableAdapters.TraEv2StatiTableAdapter();
|
||||
@@ -35,6 +36,7 @@ namespace AppData
|
||||
taAF.Connection.ConnectionString = connString;
|
||||
taAO.Connection.ConnectionString = connString;
|
||||
taAP.Connection.ConnectionString = connString;
|
||||
taPODL.Connection.ConnectionString = connString;
|
||||
taTL.Connection.ConnectionString = connString;
|
||||
taTR.Connection.ConnectionString = connString;
|
||||
taTE2S.Connection.ConnectionString = connString;
|
||||
@@ -53,6 +55,10 @@ namespace AppData
|
||||
/// </summary>
|
||||
public DS_AppTableAdapters.AnagPostTableAdapter taAP;
|
||||
/// <summary>
|
||||
/// Elenco PROMESSE ODL
|
||||
/// </summary>
|
||||
public DS_AppTableAdapters.PODLTableAdapter taPODL;
|
||||
/// <summary>
|
||||
/// Elenco TASK
|
||||
/// </summary>
|
||||
public DS_AppTableAdapters.TaskListTableAdapter taTL;
|
||||
|
||||
@@ -161,12 +161,7 @@ namespace C_TRACK.WebUserControls
|
||||
comando.isValid = true;
|
||||
comando.valore = BCodeVal;
|
||||
_tabValori.TryGetValue(BCodeVal, out comando.valoreTrad);
|
||||
}
|
||||
// se NON trovato ma abilitato import da MAPO eventualmente verifico se ci sia anche li...
|
||||
if (!comando.isValid && memLayer.ML.CRB("OptEnableMapoIn"))
|
||||
{
|
||||
// cerco in tab dei PODL, SE TROVO importo e ricarico _tabValori
|
||||
}
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// verifica se il comando inserito sia valido
|
||||
|
||||
@@ -1,13 +1,16 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_selTask.ascx.cs" Inherits="C_TRACK.WebUserControls.mod_selTask" %>
|
||||
|
||||
<asp:GridView runat="server" ID="grView" AutoGenerateColumns="False" DataKeyNames="idxPromessa" DataSourceID="ods" Width="100%" CssClass="table table-striped table-condensed table-lg large">
|
||||
<asp:GridView runat="server" ID="grView" AutoGenerateColumns="False" DataKeyNames="idxPromessa" DataSourceID="ods" Width="100%" CssClass="table table-striped table-condensed table-lg large" OnSelectedIndexChanged="grView_SelectedIndexChanged">
|
||||
<Columns>
|
||||
<asp:TemplateField ShowHeader="False" ItemStyle-HorizontalAlign="center">
|
||||
<HeaderTemplate>
|
||||
Selezione
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Select" Text="Seleziona" CssClass="btn btn-block btn-success"><i class="fas fa-bolt fa-2x"></i></asp:LinkButton>
|
||||
<asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Select" Text="Seleziona" CssClass="btn btn-block btn-success" CommandArgument='<%# Eval("KeyRichiesta") %>'><i class="fas fa-bolt fa-2x"></i></asp:LinkButton>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Commessa / Articolo" SortExpression="KeyRichiesta">
|
||||
<asp:TemplateField HeaderText="Commesse disponibili" SortExpression="KeyRichiesta">
|
||||
<ItemTemplate>
|
||||
<div class="row font-weight-bold text-success" style="font-size: 1.2em;">
|
||||
<div class="col-6">
|
||||
@@ -27,9 +30,6 @@
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<%--<asp:BoundField DataField="CodGruppo" HeaderText="CodGruppo" SortExpression="CodGruppo" />--%>
|
||||
<%--<asp:BoundField DataField="TCAssegnato" HeaderText="TCiclo" SortExpression="TCAssegnato" />--%>
|
||||
<%--<asp:BoundField DataField="DueDate" HeaderText="DueDate" SortExpression="DueDate" />--%>
|
||||
<asp:TemplateField HeaderText="Priorita" SortExpression="Priorita" ItemStyle-HorizontalAlign="Center">
|
||||
<ItemTemplate>
|
||||
<div style="font-size: 1.3em; font-weight: bold;">
|
||||
@@ -38,7 +38,6 @@
|
||||
<asp:Label ID="Label4" runat="server" Text='<%# Bind("Note") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<%--<asp:BoundField DataField="Tipo" HeaderText="Tipo" SortExpression="Tipo" />--%>
|
||||
<asp:TemplateField HeaderText="Qta" SortExpression="NumPezzi" ItemStyle-HorizontalAlign="Right">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label3" runat="server" Text='<%# Eval("NumPezzi") %>' />
|
||||
|
||||
@@ -1,17 +1,74 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using AppData;
|
||||
using SteamWare;
|
||||
using System;
|
||||
|
||||
namespace C_TRACK.WebUserControls
|
||||
{
|
||||
public partial class mod_selTask : System.Web.UI.UserControl
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// evento selezione dati
|
||||
/// </summary>
|
||||
public event EventHandler eh_dataSel;
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
protected void grView_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
// selezionata una richiesta
|
||||
int idxProm = 0;
|
||||
int.TryParse(grView.SelectedValue.ToString(), out idxProm);
|
||||
if (idxProm > 0)
|
||||
{
|
||||
// --> ho IdxPromessa --> recupero KeyRichiesta = CurrNumTask
|
||||
var tab = dataLayer.man.taPODL.getByKey(idxProm);
|
||||
string _numTask = "";
|
||||
if (tab.Rows.Count > 0)
|
||||
{
|
||||
// recupero NumTask
|
||||
_numTask = tab[0].KeyRichiesta;
|
||||
if (_numTask != "")
|
||||
{
|
||||
// verifica preliminare se vada creato Task...
|
||||
checkTask(CurrNumTask);
|
||||
// salvo commessa
|
||||
CurrNumTask = _numTask;
|
||||
// segnalo update
|
||||
|
||||
if (eh_dataSel != null)
|
||||
{
|
||||
eh_dataSel(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Verifica se il task vada importato
|
||||
/// </summary>
|
||||
/// <param name="numTask"></param>
|
||||
private void checkTask(string numTask)
|
||||
{
|
||||
dataLayer.man.taTL.ImportNew(numTask);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Codice TASK corrente
|
||||
/// </summary>
|
||||
public string CurrNumTask
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj("CurrNumTask");
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal("CurrNumTask", value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+12
-21
@@ -79,37 +79,28 @@ namespace C_TRACK
|
||||
checkRequisiti();
|
||||
// effettuo load valori...
|
||||
setupComandiBarcode();
|
||||
checkImportData();
|
||||
setupValoriBarcode();
|
||||
// registro eventi
|
||||
mod_barcode1.eh_comandoRegistrato += new EventHandler(mod_barcode1_eh_comandoRegistrato);
|
||||
mod_btnComandi1.eh_clickComando += new EventHandler(mod_btnComandi1_eh_clickComando);
|
||||
mod_selTask.eh_dataSel += Mod_selTask_eh_dataSel;
|
||||
}
|
||||
/// <summary>
|
||||
/// Verifica visibilità componenti bcode e selettore...
|
||||
/// </summary>
|
||||
|
||||
private void Mod_selTask_eh_dataSel(object sender, EventArgs e)
|
||||
{
|
||||
// selezione commessa..
|
||||
Response.Redirect("~/barcode");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Verifica visibilità componenti bcode e selettore...
|
||||
/// </summary>
|
||||
private void checkVisib()
|
||||
{
|
||||
mod_barcode1.Visible = memLayer.ML.CRB("OptUseBCode");
|
||||
mod_selTask.Visible = memLayer.ML.CRB("OptUseSelTask");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Verifica se ci siano dati da importare come TaskList, nel caso importo ed invalida i valori ammessi
|
||||
/// </summary>
|
||||
private void checkImportData()
|
||||
{
|
||||
// verifico se sia abilitato import da MAPO in primis...
|
||||
if (memLayer.ML.CRB("OptEnableMapoIn"))
|
||||
{
|
||||
// verifico SE ci siano NUOVI PODL da importare
|
||||
|
||||
// se ci sono carico TaskList e li segno come importati
|
||||
|
||||
// invalido cache valori...
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Verifica i requisiti (operatore e postazione) per operare
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user