PRIMA VERSIONE CON CHIUSURA FASI!!!!
This commit is contained in:
Generated
+42
-12
@@ -6238,7 +6238,7 @@ SELECT CodOpr, Cognome, Nome FROM AnagOpr WHERE (CodOpr = @CodOpr)";
|
||||
[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[5];
|
||||
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[6];
|
||||
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[0].Connection = this.Connection;
|
||||
this._commandCollection[0].CommandText = "SELECT *\r\nFROM v_TaskRec";
|
||||
@@ -6257,22 +6257,29 @@ SELECT CodOpr, Cognome, Nome FROM AnagOpr WHERE (CodOpr = @CodOpr)";
|
||||
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodOpr", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[3].Connection = this.Connection;
|
||||
this._commandCollection[3].CommandText = "dbo.stp_TR_insertQuery";
|
||||
this._commandCollection[3].CommandText = "dbo.stp_TR_GetByPost";
|
||||
this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodOpr", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[3].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[3].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[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodFase", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DtStart", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@showAll", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[4].Connection = this.Connection;
|
||||
this._commandCollection[4].CommandText = "dbo.stp_TR_updateQuery";
|
||||
this._commandCollection[4].CommandText = "dbo.stp_TR_insertQuery";
|
||||
this._commandCollection[4].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxRec", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DtEnd", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QtaEv", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodOpr", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[4].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[4].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[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodFase", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DtStart", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, 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_TR_updateQuery";
|
||||
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("@IdxRec", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DtEnd", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QtaEv", 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()]
|
||||
@@ -6333,11 +6340,34 @@ SELECT CodOpr, Cognome, Nome FROM AnagOpr WHERE (CodOpr = @CodOpr)";
|
||||
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.TaskRecDataTable getByPost(string CodPost, global::System.Nullable<bool> showAll) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[3];
|
||||
if ((CodPost == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodPost));
|
||||
}
|
||||
if ((showAll.HasValue == true)) {
|
||||
this.Adapter.SelectCommand.Parameters[2].Value = ((bool)(showAll.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
|
||||
}
|
||||
DS_App.TaskRecDataTable dataTable = new DS_App.TaskRecDataTable();
|
||||
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")]
|
||||
public virtual int insertQuery(string CodOpr, string CodPost, string NumTask, string CodFase, global::System.Nullable<global::System.DateTime> DtStart) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3];
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[4];
|
||||
if ((CodOpr == null)) {
|
||||
command.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
@@ -6389,7 +6419,7 @@ SELECT CodOpr, Cognome, Nome FROM AnagOpr WHERE (CodOpr = @CodOpr)";
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
public virtual int updateQuery(global::System.Nullable<int> IdxRec, global::System.Nullable<global::System.DateTime> DtEnd, global::System.Nullable<int> QtaEv) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[4];
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[5];
|
||||
if ((IdxRec.HasValue == true)) {
|
||||
command.Parameters[1].Value = ((int)(IdxRec.Value));
|
||||
}
|
||||
|
||||
@@ -330,6 +330,18 @@ FROM v_TaskRec</CommandText>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="C_TRACKConnectionString (Settings)" DbObjectName="C_TRACK.dbo.stp_TR_GetByPost" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByPost" GeneratorSourceName="getByPost" GetMethodModifier="Public" GetMethodName="getByPost" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByPost" UserSourceName="getByPost">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_TR_GetByPost</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="@CodPost" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="bit" DbType="Boolean" Direction="Input" ParameterName="@showAll" Precision="1" ProviderType="Bit" Scale="0" Size="1" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="C_TRACKConnectionString (Settings)" DbObjectName="C_TRACK.dbo.stp_TR_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="GetDataBy" UserSourceName="insertQuery">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
|
||||
+11
-11
@@ -4,19 +4,19 @@
|
||||
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="0" ViewPortY="0" 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="0" ViewPortY="104" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
|
||||
<Shapes>
|
||||
<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="1" X="897" Y="421" Height="227" Width="231" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="122" />
|
||||
<Shape ID="DesignTable:AnagFasi" ZOrder="2" X="897" Y="421" Height="227" Width="231" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="122" />
|
||||
<Shape ID="DesignTable:AnagOpr" ZOrder="11" X="900" Y="728" Height="181" Width="231" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="99" />
|
||||
<Shape ID="DesignTable:TaskRec" ZOrder="10" X="481" Y="494" Height="434" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="283" />
|
||||
<Shape ID="DesignTable:AnagPost" ZOrder="2" X="561" Y="168" Height="273" Width="250" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="145" />
|
||||
<Shape ID="DesignTable:TraEv2Stati" ZOrder="5" X="195" Y="1020" Height="296" Width="247" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="214" />
|
||||
<Shape ID="DesignTable:AnagEventi" ZOrder="4" X="712" Y="1094" Height="204" Width="248" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="122" />
|
||||
<Shape ID="DesignTable:TraEv2Stati1" ZOrder="3" X="793" Y="1471" Height="273" Width="256" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="214" />
|
||||
<Shape ID="DesignTable:TaskRec" ZOrder="1" X="481" Y="494" Height="434" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="283" />
|
||||
<Shape ID="DesignTable:AnagPost" ZOrder="3" X="561" Y="168" Height="273" Width="235" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="145" />
|
||||
<Shape ID="DesignTable:TraEv2Stati" ZOrder="6" X="195" Y="1020" Height="296" Width="247" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="214" />
|
||||
<Shape ID="DesignTable:AnagEventi" ZOrder="5" X="712" Y="1094" Height="204" Width="248" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="122" />
|
||||
<Shape ID="DesignTable:TraEv2Stati1" ZOrder="4" X="793" Y="1471" Height="273" Width="256" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="214" />
|
||||
</Shapes>
|
||||
<Connectors>
|
||||
<Connector ID="DesignRelation:FK_TaskRec_AnagFasi" ZOrder="9" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_TaskRec_AnagFasi" ZOrder="10" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>897</X>
|
||||
@@ -28,7 +28,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_TaskRec_AnagOpr" ZOrder="8" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_TaskRec_AnagOpr" ZOrder="9" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>900</X>
|
||||
@@ -40,7 +40,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:TaskRec_TaskList" ZOrder="7" LineWidth="11">
|
||||
<Connector ID="DesignRelation:TaskRec_TaskList" ZOrder="8" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>481</X>
|
||||
@@ -52,7 +52,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_TaskRec_AnagPost" ZOrder="6" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_TaskRec_AnagPost" ZOrder="7" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>630</X>
|
||||
|
||||
@@ -267,6 +267,7 @@
|
||||
<Content Include="WebUserControls\mod_enrollByAuthKey.ascx" />
|
||||
<Content Include="WebUserControls\mod_enrollByEmail.ascx" />
|
||||
<Content Include="WebUserControls\mod_enrollByJumperAuthKey.ascx" />
|
||||
<Content Include="WebUserControls\mod_faseCurr.ascx" />
|
||||
<Content Include="WebUserControls\mod_footer.ascx" />
|
||||
<Content Include="WebUserControls\mod_login.ascx" />
|
||||
<Content Include="WebUserControls\mod_menuTopCompact.ascx" />
|
||||
@@ -513,6 +514,13 @@
|
||||
<Compile Include="WebUserControls\mod_enrollByJumperAuthKey.ascx.designer.cs">
|
||||
<DependentUpon>mod_enrollByJumperAuthKey.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_faseCurr.ascx.cs">
|
||||
<DependentUpon>mod_faseCurr.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_faseCurr.ascx.designer.cs">
|
||||
<DependentUpon>mod_faseCurr.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_footer.ascx.cs">
|
||||
<DependentUpon>mod_footer.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_faseCurr.ascx.cs" Inherits="C_TRACK.WebUserControls.mod_faseCurr" %>
|
||||
|
||||
<div class="row my-2">
|
||||
<div class="col-4">
|
||||
<%: DescPost %>
|
||||
<br />
|
||||
<b><%: NomeOpr %></b>
|
||||
</div>
|
||||
<div class="col-4 text-center">
|
||||
<div>FASE</div>
|
||||
<b><%: DescFaseCurr %></b>
|
||||
</div>
|
||||
<div class="col-4 text-right">
|
||||
quantita evasa
|
||||
<asp:TextBox runat="server" ID="txtQta" TextMode="Number" CssClass="form-control" AutoPostBack="True" OnTextChanged="txtQta_TextChanged" />
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,149 @@
|
||||
using AppData;
|
||||
using SteamWare;
|
||||
using System;
|
||||
|
||||
namespace C_TRACK.WebUserControls
|
||||
{
|
||||
public partial class mod_faseCurr : System.Web.UI.UserControl
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
setupValori();
|
||||
}
|
||||
}
|
||||
|
||||
private void setupValori()
|
||||
{
|
||||
// recupero riga TR e popolo valori visualizzati
|
||||
var tabTR = dataLayer.man.taTR.getByPost(CodPost, false);
|
||||
if (tabTR.Rows.Count > 0)
|
||||
{
|
||||
DescFaseCurr = tabTR[0].DescrFase;
|
||||
QtaFaseCurr = tabTR[0].QtaEv;
|
||||
txtQta.Text = QtaFaseCurr.ToString();
|
||||
idxRecCurr = tabTR[0].IdxRec;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Descrizione fase attiva
|
||||
/// </summary>
|
||||
public string DescFaseCurr
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj("DescFaseCurr");
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal("DescFaseCurr", value);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Qta della fase attiva
|
||||
/// </summary>
|
||||
public int QtaFaseCurr
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.IntSessionObj("QtaFaseCurr");
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal("QtaFaseCurr", value);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// idxRec della fase attiva
|
||||
/// </summary>
|
||||
public int idxRecCurr
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.IntSessionObj("idxRecCurr");
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal("idxRecCurr", value);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Codice postazione di lavoro
|
||||
/// </summary>
|
||||
public string CodPost
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj("CodPost");
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Codice Operatore
|
||||
/// </summary>
|
||||
public string CodOpr
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj("CodOpr");
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Codice postazione di lavoro
|
||||
/// </summary>
|
||||
public string DescPost
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "";
|
||||
if (memLayer.ML.isInSessionObject("DescPost"))
|
||||
{
|
||||
answ = memLayer.ML.StringSessionObj("DescPost");
|
||||
}
|
||||
if (answ == "")
|
||||
{
|
||||
var tabPost = dataLayer.man.taAP.getByKey(CodPost);
|
||||
if (tabPost.Rows.Count > 0)
|
||||
{
|
||||
answ = tabPost[0].Descrizione;
|
||||
}
|
||||
memLayer.ML.setSessionVal("DescPost", answ);
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Codice Operatore
|
||||
/// </summary>
|
||||
public string NomeOpr
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "";
|
||||
if (memLayer.ML.isInSessionObject("NomeOpr"))
|
||||
{
|
||||
answ = memLayer.ML.StringSessionObj("NomeOpr");
|
||||
}
|
||||
if (answ == "")
|
||||
{
|
||||
var tabOpr = dataLayer.man.taAO.getByKey(CodOpr);
|
||||
if (tabOpr.Rows.Count > 0)
|
||||
{
|
||||
answ = string.Format("{0} {1}", tabOpr[0].Cognome, tabOpr[0].Nome);
|
||||
}
|
||||
memLayer.ML.setSessionVal("NomeOpr", answ);
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
|
||||
protected void txtQta_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
int newQta = QtaFaseCurr;
|
||||
int.TryParse(txtQta.Text, out newQta);
|
||||
// salvo nuova qta...
|
||||
QtaFaseCurr = newQta;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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_faseCurr {
|
||||
|
||||
/// <summary>
|
||||
/// Controllo txtQta.
|
||||
/// </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.TextBox txtQta;
|
||||
}
|
||||
}
|
||||
@@ -5,6 +5,8 @@
|
||||
<%@ Register Src="~/WebUserControls/mod_checkOpr.ascx" TagPrefix="uc1" TagName="mod_checkOpr" %>
|
||||
<%@ Register Src="~/WebUserControls/mod_checkPost.ascx" TagPrefix="uc1" TagName="mod_checkPost" %>
|
||||
<%@ Register Src="~/WebUserControls/mod_taskRec.ascx" TagPrefix="uc1" TagName="mod_taskRec" %>
|
||||
<%@ Register Src="~/WebUserControls/mod_faseCurr.ascx" TagPrefix="uc1" TagName="mod_faseCurr" %>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -17,6 +19,7 @@
|
||||
<uc1:mod_checkOpr runat="server" ID="mod_checkOpr" />
|
||||
<uc1:mod_checkPost runat="server" ID="mod_checkPost" />
|
||||
<uc1:mod_barcode ID="mod_barcode1" runat="server" />
|
||||
<uc1:mod_faseCurr runat="server" ID="mod_faseCurr" />
|
||||
<uc2:mod_btnComandi ID="mod_btnComandi1" runat="server" />
|
||||
<uc1:mod_taskRec runat="server" ID="mod_taskRec" tipoSelezione="byUser" />
|
||||
</div>
|
||||
|
||||
+40
-1
@@ -45,6 +45,38 @@ namespace C_TRACK
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// idxRec della fase attiva
|
||||
/// </summary>
|
||||
public int idxRecCurr
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.IntSessionObj("idxRecCurr");
|
||||
}
|
||||
#if false
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal("idxRecCurr", value);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
/// <summary>
|
||||
/// Qta della fase attiva
|
||||
/// </summary>
|
||||
public int QtaFaseCurr
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.IntSessionObj("QtaFaseCurr");
|
||||
}
|
||||
#if false
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal("QtaFaseCurr", value);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
/// <summary>
|
||||
/// Codice TASK corrente
|
||||
/// </summary>
|
||||
public string CurrNumTask
|
||||
@@ -367,7 +399,7 @@ namespace C_TRACK
|
||||
{
|
||||
Dictionary<string, string> comandi = new Dictionary<string, string>();
|
||||
|
||||
// !!!FARE!!! togleire...
|
||||
// !!!FARE!!! togliere...
|
||||
var tabCmd = dataLayer.man.taTE2S.getByMappa("E_BC");
|
||||
foreach (var rigaCmd in tabCmd)
|
||||
{
|
||||
@@ -381,6 +413,7 @@ namespace C_TRACK
|
||||
comandi.Add(rigaFase.CodFase, rigaFase.DescrFase);
|
||||
}
|
||||
|
||||
|
||||
#if false
|
||||
XPS_data.DS_applicazioneTableAdapters.TraEv2StatiTableAdapter taTrEv2St = new XPS_data.DS_applicazioneTableAdapters.TraEv2StatiTableAdapter();
|
||||
DS_applicazione.TraEv2StatiDataTable _tabTran = taTrEv2St.getByCodMappa("E_BC");
|
||||
@@ -522,6 +555,12 @@ namespace C_TRACK
|
||||
CurrNumTask = mod_barcode1.comandoRegistrato.valore;
|
||||
Response.Redirect("~/barcode");
|
||||
}
|
||||
else if (mod_barcode1.comandoRegistrato.prevCmdIn == "CLOSE")
|
||||
{
|
||||
// registro chiusura con la qta indicata
|
||||
dataLayer.man.taTR.updateQuery(idxRecCurr, DateTime.Now, QtaFaseCurr);
|
||||
Response.Redirect("~/barcode");
|
||||
}
|
||||
else if (dataLayer.man.taAF.getByKey(mod_barcode1.comandoRegistrato.prevCmdIn).Rows.Count > 0)
|
||||
{
|
||||
// se è un comando di fase --> registro INIZIO!
|
||||
|
||||
Generated
+9
@@ -39,6 +39,15 @@ namespace C_TRACK {
|
||||
/// </remarks>
|
||||
protected global::C_TRACK.WebUserControls.mod_barcode mod_barcode1;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo mod_faseCurr.
|
||||
/// </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_faseCurr mod_faseCurr;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo mod_btnComandi1.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user