Fix check controllo LOTTI x ODL
This commit is contained in:
@@ -49,6 +49,11 @@ namespace MoonProTablet.WebUserControls
|
||||
/// </summary>
|
||||
public bool enableGraphJS = memLayer.ML.cdvb("enableGraphJS");
|
||||
|
||||
/// <summary>
|
||||
/// Abilitazione gestione LOTTI in DB MAG
|
||||
/// </summary>
|
||||
public bool enableMagLotti = memLayer.ML.cdvb("enableMagLotti");
|
||||
|
||||
/// <summary>
|
||||
/// Abilitazione gestione Pezzi LAsciati in macchina
|
||||
/// </summary>
|
||||
|
||||
@@ -1209,8 +1209,10 @@ namespace MoonProTablet.WebUserControls
|
||||
DataLayerObj.taODL.fixMachineSlave(idxMacchina, 30, 1);
|
||||
}
|
||||
// se c'è gestione SchedaTecnica --> chiamo procedura update x lotti
|
||||
|
||||
// FixMe-ToDo
|
||||
if (enableSchedaTecnica)
|
||||
{
|
||||
DataLayerObj.taMagELotti.UpsertByOdl(idxODL, true);
|
||||
}
|
||||
|
||||
// riporto stringa
|
||||
lblOut.Text = sb.ToString().Replace("---", "<br/>");
|
||||
|
||||
@@ -8,6 +8,20 @@ namespace MoonProTablet.WebUserControls
|
||||
{
|
||||
#region Private Methods
|
||||
|
||||
private void checkLottiOdl()
|
||||
{
|
||||
// controlla se abilitato check LOTTI MAG
|
||||
if (enableMagLotti)
|
||||
{
|
||||
// controlla se ci sia lotto x ODL
|
||||
if (DataLayerObj.taMagELotti.getByODL(idxOdl).Rows.Count == 0)
|
||||
{
|
||||
// se non c'è chiama stored x rigenerare
|
||||
DataLayerObj.taMagELotti.UpsertByOdl(idxOdl, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// popola le labels
|
||||
/// </summary>
|
||||
@@ -120,6 +134,13 @@ namespace MoonProTablet.WebUserControls
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
if (enableSchedaTecnica)
|
||||
{
|
||||
checkLottiOdl();
|
||||
}
|
||||
}
|
||||
try
|
||||
{
|
||||
popolaLabels();
|
||||
|
||||
Generated
+149
-8
@@ -307,6 +307,12 @@ namespace MapoDb {
|
||||
|
||||
private global::System.Data.DataColumn columnAttivo;
|
||||
|
||||
private global::System.Data.DataColumn columnDescrArt;
|
||||
|
||||
private global::System.Data.DataColumn columnCodArtExt;
|
||||
|
||||
private global::System.Data.DataColumn columnDescStato;
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
public ElencoLottiDataTable() {
|
||||
@@ -452,6 +458,30 @@ namespace MapoDb {
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
public global::System.Data.DataColumn DescrArtColumn {
|
||||
get {
|
||||
return this.columnDescrArt;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
public global::System.Data.DataColumn CodArtExtColumn {
|
||||
get {
|
||||
return this.columnCodArtExt;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
public global::System.Data.DataColumn DescStatoColumn {
|
||||
get {
|
||||
return this.columnDescStato;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.ComponentModel.Browsable(false)]
|
||||
@@ -489,7 +519,24 @@ namespace MapoDb {
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
public ElencoLottiRow AddElencoLottiRow(string Lotto, int IdxODL, string RifExt, string TipoLotto, string CodArt, string CodStato, string Origine, System.DateTime DtCrea, string Note, decimal QtaOrig, int NumUdc, decimal QtaCurr, System.DateTime DtMod, bool Attivo) {
|
||||
public ElencoLottiRow AddElencoLottiRow(
|
||||
string Lotto,
|
||||
int IdxODL,
|
||||
string RifExt,
|
||||
string TipoLotto,
|
||||
string CodArt,
|
||||
string CodStato,
|
||||
string Origine,
|
||||
System.DateTime DtCrea,
|
||||
string Note,
|
||||
decimal QtaOrig,
|
||||
int NumUdc,
|
||||
decimal QtaCurr,
|
||||
System.DateTime DtMod,
|
||||
bool Attivo,
|
||||
string DescrArt,
|
||||
string CodArtExt,
|
||||
string DescStato) {
|
||||
ElencoLottiRow rowElencoLottiRow = ((ElencoLottiRow)(this.NewRow()));
|
||||
object[] columnValuesArray = new object[] {
|
||||
Lotto,
|
||||
@@ -505,7 +552,10 @@ namespace MapoDb {
|
||||
NumUdc,
|
||||
QtaCurr,
|
||||
DtMod,
|
||||
Attivo};
|
||||
Attivo,
|
||||
DescrArt,
|
||||
CodArtExt,
|
||||
DescStato};
|
||||
rowElencoLottiRow.ItemArray = columnValuesArray;
|
||||
this.Rows.Add(rowElencoLottiRow);
|
||||
return rowElencoLottiRow;
|
||||
@@ -549,6 +599,9 @@ namespace MapoDb {
|
||||
this.columnQtaCurr = base.Columns["QtaCurr"];
|
||||
this.columnDtMod = base.Columns["DtMod"];
|
||||
this.columnAttivo = base.Columns["Attivo"];
|
||||
this.columnDescrArt = base.Columns["DescrArt"];
|
||||
this.columnCodArtExt = base.Columns["CodArtExt"];
|
||||
this.columnDescStato = base.Columns["DescStato"];
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
@@ -582,6 +635,12 @@ namespace MapoDb {
|
||||
base.Columns.Add(this.columnDtMod);
|
||||
this.columnAttivo = new global::System.Data.DataColumn("Attivo", typeof(bool), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columnAttivo);
|
||||
this.columnDescrArt = new global::System.Data.DataColumn("DescrArt", typeof(string), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columnDescrArt);
|
||||
this.columnCodArtExt = new global::System.Data.DataColumn("CodArtExt", typeof(string), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columnCodArtExt);
|
||||
this.columnDescStato = new global::System.Data.DataColumn("DescStato", typeof(string), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columnDescStato);
|
||||
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
|
||||
this.columnLotto}, true));
|
||||
this.columnLotto.AllowDBNull = false;
|
||||
@@ -606,6 +665,11 @@ namespace MapoDb {
|
||||
this.columnQtaCurr.AllowDBNull = false;
|
||||
this.columnDtMod.AllowDBNull = false;
|
||||
this.columnAttivo.AllowDBNull = false;
|
||||
this.columnDescrArt.AllowDBNull = false;
|
||||
this.columnDescrArt.MaxLength = 250;
|
||||
this.columnCodArtExt.AllowDBNull = false;
|
||||
this.columnCodArtExt.MaxLength = 50;
|
||||
this.columnDescStato.MaxLength = 50;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
@@ -899,6 +963,56 @@ namespace MapoDb {
|
||||
this[this.tableElencoLotti.AttivoColumn] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
public string DescrArt {
|
||||
get {
|
||||
return ((string)(this[this.tableElencoLotti.DescrArtColumn]));
|
||||
}
|
||||
set {
|
||||
this[this.tableElencoLotti.DescrArtColumn] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
public string CodArtExt {
|
||||
get {
|
||||
return ((string)(this[this.tableElencoLotti.CodArtExtColumn]));
|
||||
}
|
||||
set {
|
||||
this[this.tableElencoLotti.CodArtExtColumn] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
public string DescStato {
|
||||
get {
|
||||
try {
|
||||
return ((string)(this[this.tableElencoLotti.DescStatoColumn]));
|
||||
}
|
||||
catch (global::System.InvalidCastException e) {
|
||||
throw new global::System.Data.StrongTypingException("Il valore della colonna \'DescStato\' nella tabella \'ElencoLotti\' è DBNull.", e);
|
||||
}
|
||||
}
|
||||
set {
|
||||
this[this.tableElencoLotti.DescStatoColumn] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
public bool IsDescStatoNull() {
|
||||
return this.IsNull(this.tableElencoLotti.DescStatoColumn);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
public void SetDescStatoNull() {
|
||||
this[this.tableElencoLotti.DescStatoColumn] = global::System.Convert.DBNull;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -1074,6 +1188,9 @@ namespace MapoDb.DS_MAGTableAdapters {
|
||||
tableMapping.ColumnMappings.Add("QtaCurr", "QtaCurr");
|
||||
tableMapping.ColumnMappings.Add("DtMod", "DtMod");
|
||||
tableMapping.ColumnMappings.Add("Attivo", "Attivo");
|
||||
tableMapping.ColumnMappings.Add("DescrArt", "DescrArt");
|
||||
tableMapping.ColumnMappings.Add("CodArtExt", "CodArtExt");
|
||||
tableMapping.ColumnMappings.Add("DescStato", "DescStato");
|
||||
this._adapter.TableMappings.Add(tableMapping);
|
||||
this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._adapter.DeleteCommand.Connection = this.Connection;
|
||||
@@ -1157,19 +1274,26 @@ SELECT Lotto, IdxODL, RifExt, TipoLotto, CodArt, CodStato, Origine, DtCrea, Note
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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 Lotto, IdxODL, RifExt, TipoLotto, CodArt, CodStato, Origine, DtCrea, Note," +
|
||||
" QtaOrig, NumUdc, QtaCurr, DtMod, Attivo FROM dbo.ElencoLotti";
|
||||
this._commandCollection[0].CommandText = "SELECT Lotto, IdxODL, RifExt, TipoLotto, CodArt, CodStato, Origine, DtCrea" +
|
||||
", Note, QtaOrig, NumUdc, QtaCurr, DtMod, Attivo, DescrArt, CodArtExt, DescStato\r" +
|
||||
"\nFROM v_ElencoLotti";
|
||||
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_EL_UpsertByOdl";
|
||||
this._commandCollection[1].CommandText = "dbo.stp_EL_getByODL";
|
||||
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("@IdxODL", 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("@flgStorico", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 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_EL_UpsertByOdl";
|
||||
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("@IdxODL", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@flgStorico", 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()]
|
||||
@@ -1196,6 +1320,23 @@ SELECT Lotto, IdxODL, RifExt, TipoLotto, CodArt, CodStato, Origine, DtCrea, Note
|
||||
return dataTable;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
|
||||
public virtual DS_MAG.ElencoLottiDataTable getByODL(global::System.Nullable<int> IdxODL) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[1];
|
||||
if ((IdxODL.HasValue == true)) {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = ((int)(IdxODL.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
DS_MAG.ElencoLottiDataTable dataTable = new DS_MAG.ElencoLottiDataTable();
|
||||
this.Adapter.Fill(dataTable);
|
||||
return dataTable;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
@@ -1551,7 +1692,7 @@ SELECT Lotto, IdxODL, RifExt, TipoLotto, CodArt, CodStato, Origine, DtCrea, Note
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
public virtual int UpsertByOdl(global::System.Nullable<int> IdxODL, global::System.Nullable<bool> flgStorico) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1];
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[2];
|
||||
if ((IdxODL.HasValue == true)) {
|
||||
command.Parameters[1].Value = ((int)(IdxODL.Value));
|
||||
}
|
||||
|
||||
+38
-2
@@ -9,7 +9,7 @@
|
||||
<Tables>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ElencoLottiTableAdapter" GeneratorDataComponentClassName="ElencoLottiTableAdapter" Name="ElencoLotti" UserDataComponentName="ElencoLottiTableAdapter">
|
||||
<MainSource>
|
||||
<DbSource ConnectionRef="MoonPro_MAGConnectionString (Settings)" DbObjectName="MoonPro_MAG.dbo.ElencoLotti" 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">
|
||||
<DbSource ConnectionRef="MoonPro_MAGConnectionString (Settings)" DbObjectName="MoonPro_MAG.dbo.v_ElencoLotti" DbObjectType="View" 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].[ElencoLotti] WHERE (([Lotto] = @Original_Lotto) AND ([IdxODL] = @Original_IdxODL) AND ([RifExt] = @Original_RifExt) AND ([TipoLotto] = @Original_TipoLotto) AND ([CodArt] = @Original_CodArt) AND ([CodStato] = @Original_CodStato) AND ([Origine] = @Original_Origine) AND ([DtCrea] = @Original_DtCrea) AND ([Note] = @Original_Note) AND ([QtaOrig] = @Original_QtaOrig) AND ([NumUdc] = @Original_NumUdc) AND ([QtaCurr] = @Original_QtaCurr) AND ([DtMod] = @Original_DtMod) AND ([Attivo] = @Original_Attivo))</CommandText>
|
||||
@@ -55,7 +55,8 @@ SELECT Lotto, IdxODL, RifExt, TipoLotto, CodArt, CodStato, Origine, DtCrea, Note
|
||||
</InsertCommand>
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>SELECT Lotto, IdxODL, RifExt, TipoLotto, CodArt, CodStato, Origine, DtCrea, Note, QtaOrig, NumUdc, QtaCurr, DtMod, Attivo FROM dbo.ElencoLotti</CommandText>
|
||||
<CommandText>SELECT Lotto, IdxODL, RifExt, TipoLotto, CodArt, CodStato, Origine, DtCrea, Note, QtaOrig, NumUdc, QtaCurr, DtMod, Attivo, DescrArt, CodArtExt, DescStato
|
||||
FROM v_ElencoLotti</CommandText>
|
||||
<Parameters />
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
@@ -112,8 +113,22 @@ SELECT Lotto, IdxODL, RifExt, TipoLotto, CodArt, CodStato, Origine, DtCrea, Note
|
||||
<Mapping SourceColumn="QtaCurr" DataSetColumn="QtaCurr" />
|
||||
<Mapping SourceColumn="DtMod" DataSetColumn="DtMod" />
|
||||
<Mapping SourceColumn="Attivo" DataSetColumn="Attivo" />
|
||||
<Mapping SourceColumn="DescrArt" DataSetColumn="DescrArt" />
|
||||
<Mapping SourceColumn="CodArtExt" DataSetColumn="CodArtExt" />
|
||||
<Mapping SourceColumn="DescStato" DataSetColumn="DescStato" />
|
||||
</Mappings>
|
||||
<Sources>
|
||||
<DbSource ConnectionRef="MoonPro_MAGConnectionString (Settings)" DbObjectName="MoonPro_MAG.dbo.stp_EL_getByODL" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByODL" GetMethodModifier="Public" GetMethodName="getByODL" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByODL" UserSourceName="getByODL">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_EL_getByODL</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="@IdxODL" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="MoonPro_MAGConnectionString (Settings)" DbObjectName="MoonPro_MAG.dbo.stp_EL_UpsertByOdl" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="UpsertByOdl" Modifier="Public" Name="UpsertByOdl" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="UpsertByOdl">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
@@ -195,6 +210,27 @@ SELECT Lotto, IdxODL, RifExt, TipoLotto, CodArt, CodStato, Origine, DtCrea, Note
|
||||
<xs:element name="QtaCurr" msprop:Generator_ColumnVarNameInTable="columnQtaCurr" msprop:Generator_ColumnPropNameInRow="QtaCurr" msprop:Generator_ColumnPropNameInTable="QtaCurrColumn" msprop:Generator_UserColumnName="QtaCurr" type="xs:decimal" />
|
||||
<xs:element name="DtMod" msprop:Generator_ColumnVarNameInTable="columnDtMod" msprop:Generator_ColumnPropNameInRow="DtMod" msprop:Generator_ColumnPropNameInTable="DtModColumn" msprop:Generator_UserColumnName="DtMod" type="xs:dateTime" />
|
||||
<xs:element name="Attivo" msprop:Generator_ColumnVarNameInTable="columnAttivo" msprop:Generator_ColumnPropNameInRow="Attivo" msprop:Generator_ColumnPropNameInTable="AttivoColumn" msprop:Generator_UserColumnName="Attivo" type="xs:boolean" />
|
||||
<xs:element name="DescrArt" msprop:Generator_ColumnVarNameInTable="columnDescrArt" msprop:Generator_ColumnPropNameInRow="DescrArt" msprop:Generator_ColumnPropNameInTable="DescrArtColumn" msprop:Generator_UserColumnName="DescrArt">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="250" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="CodArtExt" msprop:Generator_ColumnVarNameInTable="columnCodArtExt" msprop:Generator_ColumnPropNameInRow="CodArtExt" msprop:Generator_ColumnPropNameInTable="CodArtExtColumn" msprop:Generator_UserColumnName="CodArtExt">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="DescStato" msprop:Generator_ColumnVarNameInTable="columnDescStato" msprop:Generator_ColumnPropNameInRow="DescStato" msprop:Generator_ColumnPropNameInTable="DescStatoColumn" msprop:Generator_UserColumnName="DescStato" 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>
|
||||
|
||||
+12
-1
@@ -1 +1,12 @@
|
||||
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--<autogenerated>
|
||||
This code was generated by a tool to store the dataset designer's layout information.
|
||||
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">
|
||||
<Shapes>
|
||||
<Shape ID="DesignTable:ElencoLotti" ZOrder="1" X="107" Y="183" Height="343" Width="240" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
</Shapes>
|
||||
<Connectors />
|
||||
</DiagramLayout>
|
||||
Reference in New Issue
Block a user