Update e fix vari x visualizzazione corretta disponibilità magazzino, riorganizzazione db x celle "terra" (no multi-Z)

git-svn-id: https://keyhammer.ath.cx/svn/GMW/trunk@156 365432ac-a1b5-4ffd-bb28-6d3099d32164
This commit is contained in:
samuele
2010-07-22 16:49:42 +00:00
parent 27e39a876a
commit 48fc00ee30
25 changed files with 805 additions and 652 deletions
BIN
View File
Binary file not shown.
@@ -102,7 +102,7 @@ namespace GMW.WebUserControls
e.InputParameters[nomeCol] = ((DropDownList)grView.FooterRow.FindControl(string.Format("dl{0}", nomeCol))).SelectedValue;
break;
case "checkBox":
e.InputParameters[nomeCol] = ((CheckBox)grView.FooterRow.FindControl(string.Format("dl{0}", nomeCol))).Checked;
e.InputParameters[nomeCol] = ((CheckBox)grView.FooterRow.FindControl(string.Format("chk{0}", nomeCol))).Checked;
break;
case "selAjax":
e.InputParameters[nomeCol] = ((mod_selettore_ajax)grView.FooterRow.FindControl(string.Format("selAjax_{0}", nomeCol))).valore;
+21 -21
View File
@@ -3,7 +3,8 @@
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="mod_filtro.ascx" TagName="mod_filtro" TagPrefix="uc1" %>
<div class="filtro_1">
<uc1:mod_filtro ID="mod_filtroMag" runat="server" changeCheckEnabled="false" changeCheckVisible="false" Oneh_selValore="eh_selectedMagazzino" />
<uc1:mod_filtro ID="mod_filtroMag" runat="server" changeCheckEnabled="false" changeCheckVisible="false"
Oneh_selValore="eh_selectedMagazzino" />
<asp:ObjectDataSource ID="odsFiltroMag" runat="server" OldValuesParameterFormatString="Original_{0}"
SelectMethod="getByConditio" TypeName="GMW_data.DS_UtilityTableAdapters.v_selMagTableAdapter">
<SelectParameters>
@@ -14,19 +15,18 @@
<div class="filtro_2">
<uc1:mod_filtro ID="mod_filtroBlock" runat="server" />
<asp:ObjectDataSource ID="odsFiltroBlock" runat="server" OldValuesParameterFormatString="original_{0}"
SelectMethod="getByConditio"
TypeName="GMW_data.DS_UtilityTableAdapters.v_selBloccoTableAdapter">
SelectMethod="getByConditio" TypeName="GMW_data.DS_UtilityTableAdapters.v_selBloccoTableAdapter">
<SelectParameters>
<asp:SessionParameter DefaultValue="MM" Name="CodCS" SessionField="CodCS" Type="String" />
<asp:ControlParameter ControlID="mod_filtroMag" DefaultValue="MM" Name="CodMag"
PropertyName="valore" Type="String" />
<asp:ControlParameter ControlID="mod_filtroMag" DefaultValue="MM" Name="CodMag" PropertyName="valore"
Type="String" />
</SelectParameters>
</asp:ObjectDataSource>
</div>
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
OnSelectedIndexChanged="grView_SelectedIndexChanged" OnDataBound="grView_DataBound"
DataKeyNames="IdxCella" DataSourceID="ods"
onpageindexchanged="grView_PageIndexChanged" onsorted="grView_Sorted">
DataKeyNames="IdxCella" DataSourceID="ods" OnPageIndexChanged="grView_PageIndexChanged"
OnSorted="grView_Sorted" OnRowEditing="grView_RowEditing" OnRowUpdated="grView_RowUpdated">
<RowStyle CssClass="ctrRowStyle" />
<AlternatingRowStyle CssClass="ctrAltRowStyle" />
<EditRowStyle CssClass="ctrEditRowStyle" />
@@ -69,13 +69,15 @@
</asp:TemplateField>
<asp:TemplateField HeaderText="IdxBlocco" SortExpression="IdxBlocco">
<EditItemTemplate>
<asp:DropDownList ID="dlIdxBlocco" runat="server" DataSourceID="odsBlocco" DataTextField="label" DataValueField="value" SelectedValue='<%# Bind("IdxBlocco") %>' />
<asp:DropDownList ID="dlIdxBlocco" runat="server" DataSourceID="odsBlocco" DataTextField="label"
DataValueField="value" SelectedValue='<%# Bind("IdxBlocco") %>' />
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="lblIdxBlocco" runat="server" Text='<%# CodBloccoDaIdx(Eval("IdxBlocco")) %>' />
</ItemTemplate>
<FooterTemplate>
<asp:DropDownList ID="dlIdxBlocco" runat="server" DataSourceID="odsBlocco" DataTextField="label" DataValueField="value" SelectedValue='<%# Bind("IdxBlocco") %>' />
<asp:DropDownList ID="dlIdxBlocco" runat="server" DataSourceID="odsBlocco" DataTextField="label"
DataValueField="value" SelectedValue='<%# Bind("IdxBlocco") %>' />
</FooterTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="CodCella" SortExpression="CodCella">
@@ -91,9 +93,8 @@
</asp:TemplateField>
<asp:TemplateField HeaderText="IdxTipoCella" SortExpression="IdxTipoCella">
<EditItemTemplate>
<asp:DropDownList ID="dlIdxTipoCella" runat="server" DataSourceID="odsTipoCella" DataTextField="label" DataValueField="value" SelectedValue='<%# Bind("IdxTipoCella") %>' />
<asp:TextBox ID="txtIdxTipoCella" runat="server" Text='<%# Bind("IdxTipoCella") %>'
Width="3em" />
<asp:DropDownList ID="dlIdxTipoCella" runat="server" DataSourceID="odsTipoCella"
DataTextField="label" DataValueField="value" SelectedValue='<%# Bind("IdxTipoCella") %>' />
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="lblIdxTipoCella" runat="server" Text='<%# TipoCellaDaIdx(Eval("IdxTipoCella")) %>' />
@@ -202,11 +203,12 @@
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}"
SelectMethod="getByCodMag" TypeName="GMW_data.DS_magazzinoTableAdapters.CelleTableAdapter"
OnInserting="recuperaFooter" OnInserted="ods_Updated" OnUpdated="ods_Updated"
FilterExpression=" CodCella LIKE '%{0}%' OR Descrizione LIKE '%{0}%' "
DeleteMethod="DeleteQuery" UpdateMethod="UpdateQuery">
FilterExpression=" CodCella LIKE '%{0}%' OR Descrizione LIKE '%{0}%' " DeleteMethod="DeleteQuery"
UpdateMethod="UpdateQuery">
<FilterParameters>
<asp:SessionParameter DefaultValue="*" Name="ricerca" SessionField="valoreCercato" />
<asp:SessionParameter Name="IdxBlocco" Type="Int32" SessionField="IdxBlocco_sel" DefaultValue="0" />
<asp:SessionParameter Name="IdxBlocco" Type="Int32" SessionField="IdxBlocco_sel"
DefaultValue="0" />
</FilterParameters>
<DeleteParameters>
<asp:Parameter Name="Original_IdxCella" Type="Int32" />
@@ -231,17 +233,15 @@
</asp:ObjectDataSource>
<asp:Label ID="lblNumRec" runat="server" CssClass="txtMini" />&nbsp;&nbsp;
<asp:Label ID="lblWarning" runat="server" Visible="false" CssClass="erroreMid" />
<asp:ObjectDataSource ID="odsBlocco" runat="server"
OldValuesParameterFormatString="original_{0}" SelectMethod="getByConditio"
TypeName="GMW_data.DS_UtilityTableAdapters.v_selBloccoTableAdapter">
<asp:ObjectDataSource ID="odsBlocco" runat="server" OldValuesParameterFormatString="original_{0}"
SelectMethod="getByConditio" TypeName="GMW_data.DS_UtilityTableAdapters.v_selBloccoTableAdapter">
<SelectParameters>
<asp:SessionParameter Name="CodCS" Type="String" SessionField="CodCS" DefaultValue="MM" />
<asp:SessionParameter Name="CodMag" Type="String" SessionField="CodMag_sel" DefaultValue="MM" />
</SelectParameters>
</asp:ObjectDataSource>
<asp:ObjectDataSource ID="odsTipoCella" runat="server"
OldValuesParameterFormatString="original_{0}" SelectMethod="getByConditio"
TypeName="GMW_data.DS_UtilityTableAdapters.v_selTipoCellaTableAdapter">
<asp:ObjectDataSource ID="odsTipoCella" runat="server" OldValuesParameterFormatString="original_{0}"
SelectMethod="getByConditio" TypeName="GMW_data.DS_UtilityTableAdapters.v_selTipoCellaTableAdapter">
<SelectParameters>
<asp:SessionParameter Name="CodMag" Type="String" SessionField="CodMag_sel" DefaultValue="MM" />
<asp:SessionParameter Name="CodCS" Type="String" SessionField="CodCS" DefaultValue="MM" />
+23 -2
View File
@@ -102,7 +102,7 @@ namespace GMW.WebUserControls
e.InputParameters[nomeCol] = ((DropDownList)grView.FooterRow.FindControl(string.Format("dl{0}", nomeCol))).SelectedValue;
break;
case "checkBox":
e.InputParameters[nomeCol] = ((CheckBox)grView.FooterRow.FindControl(string.Format("dl{0}", nomeCol))).Checked;
e.InputParameters[nomeCol] = ((CheckBox)grView.FooterRow.FindControl(string.Format("chk{0}", nomeCol))).Checked;
break;
case "selAjax":
e.InputParameters[nomeCol] = ((mod_selettore_ajax)grView.FooterRow.FindControl(string.Format("selAjax_{0}", nomeCol))).valore;
@@ -528,12 +528,33 @@ namespace GMW.WebUserControls
/// <param name="sender"></param>
/// <param name="e"></param>
protected void grView_Sorted(object sender, EventArgs e)
{
// sistemazione dell'ods
checkFixOds();
}
/// <summary>
/// entrando in editing fix ods
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void grView_RowEditing(object sender, GridViewEditEventArgs e)
{
// sistemazione dell'ods post evento sort
checkFixOds();
}
/// <summary>
/// post edit fix ods
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void grView_RowUpdated(object sender, GridViewUpdatedEventArgs e)
{
// sistemazione dell'ods
checkFixOds();
}
#endregion
}
}
@@ -101,7 +101,7 @@ namespace GMW.WebUserControls
e.InputParameters[nomeCol] = ((DropDownList)grView.FooterRow.FindControl(string.Format("dl{0}", nomeCol))).SelectedValue;
break;
case "checkBox":
e.InputParameters[nomeCol] = ((CheckBox)grView.FooterRow.FindControl(string.Format("dl{0}", nomeCol))).Checked;
e.InputParameters[nomeCol] = ((CheckBox)grView.FooterRow.FindControl(string.Format("chk{0}", nomeCol))).Checked;
break;
case "selAjax":
e.InputParameters[nomeCol] = ((mod_selettore_ajax)grView.FooterRow.FindControl(string.Format("selAjax_{0}", nomeCol))).valore;
+3 -2
View File
@@ -10,6 +10,7 @@ namespace GMW.WebUserControls
public partial class mod_barPlot : System.Web.UI.UserControl
{
protected GMW_data.Type.DatoBarPlot[] _elencoValori;
public int resolution { get; set; }
protected void Page_Load(object sender, EventArgs e)
{
@@ -45,11 +46,11 @@ namespace GMW.WebUserControls
cell = new TableCell();
cell.CssClass = _elencoValori[i].css;
// se il valore è sotto 10px NON metto il testo...
if (_elencoValori[i].valore > 10)
if ((_elencoValori[i].valore / resolution) > 20)
{
cell.Text = _elencoValori[i].label;
}
cell.Width = _elencoValori[i].valore;
cell.Width = Convert.ToInt32(Math.Ceiling((double)_elencoValori[i].valore / resolution));
cell.ToolTip = _elencoValori[i].tooltip;
riga.Cells.Add(cell);
}
+11
View File
@@ -8,6 +8,17 @@
</div>
</td>
</tr>
<tr>
<td>
<asp:Label ID="lblTotCapacita" runat="server" />
</td>
<td>
<b>
<asp:Label ID="lblNumCapacita" runat="server" />
</b>
</td>
</tr>
<tr>
<td>
<asp:Label ID="lblTotCelleDaTipo" runat="server" />
+6 -1
View File
@@ -31,6 +31,7 @@ namespace GMW.WebUserControls
{
lblTotaleImpieghi.Text = traduci("lblTotaleImpieghi");
lblTotCelleDaTipo.Text = traduci("lblTotCelleDaTipo");
lblTotCapacita.Text = traduci("lblTotCapacita");
lblTotCelleCreate.Text = traduci("lblTotCelleCreate");
lblTotCelleDaBlocchi.Text = traduci("lblTotCelleDaBlocchi");
lblDettImpieghiBlocchi.Text = traduci("lblDettImpieghiBlocchi");
@@ -52,7 +53,7 @@ namespace GMW.WebUserControls
int? celleAttiveAss = 0;
utils.obj.taSTP.stp_ContaCelleBlocco(memLayer.ML.confReadString("CodCS"), memLayer.ML.StringSessionObj("CodMag_sel"), true, true, ref celleAttiveAss);
if (!celleAttiveAss.HasValue) celleAttiveAss = 0;
// calcolo valori: attive assegnate
// calcolo valori: attive NON assegnate
int? celleAttiveNonAss = 0;
utils.obj.taSTP.stp_ContaCelleBlocco(memLayer.ML.confReadString("CodCS"), memLayer.ML.StringSessionObj("CodMag_sel"), true, false, ref celleAttiveNonAss);
if (!celleAttiveNonAss.HasValue) celleAttiveNonAss = 0;
@@ -75,6 +76,9 @@ namespace GMW.WebUserControls
private void showImpieghiTotali()
{
// calcolo valori
int? totCapa = 0;
utils.obj.taSTP.stp_ContaCelleCapa(memLayer.ML.confReadString("CodCS"), memLayer.ML.StringSessionObj("CodMag_sel"), ref totCapa);
if (!totCapa.HasValue) totCapa = 0;
int? totCelleTipo = 0;
utils.obj.taSTP.stp_ContaCelle4Tipo(memLayer.ML.confReadString("CodCS"), memLayer.ML.StringSessionObj("CodMag_sel"), ref totCelleTipo);
if (!totCelleTipo.HasValue) totCelleTipo = 0;
@@ -99,6 +103,7 @@ namespace GMW.WebUserControls
lblNumCelleDaBlocchi.ApplyStyle(ctrlStyle);
lblNumCelleCreate.ApplyStyle(ctrlStyle);
// inserisco valori
lblNumCapacita.Text = totCapa.ToString();
lblNumCelleDaTipo.Text = totCelleTipo.ToString();
lblNumCelleDaBlocchi.Text = totCelleBlocchi.ToString();
lblNumCelleCreate.Text = totCelleCreate.ToString();
+18
View File
@@ -22,6 +22,24 @@ namespace GMW.WebUserControls {
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblTotaleImpieghi;
/// <summary>
/// lblTotCapacita control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblTotCapacita;
/// <summary>
/// lblNumCapacita control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblNumCapacita;
/// <summary>
/// lblTotCelleDaTipo control.
/// </summary>
@@ -102,7 +102,7 @@ namespace GMW.WebUserControls
e.InputParameters[nomeCol] = ((DropDownList)grView.FooterRow.FindControl(string.Format("dl{0}", nomeCol))).SelectedValue;
break;
case "checkBox":
e.InputParameters[nomeCol] = ((CheckBox)grView.FooterRow.FindControl(string.Format("dl{0}", nomeCol))).Checked;
e.InputParameters[nomeCol] = ((CheckBox)grView.FooterRow.FindControl(string.Format("chk{0}", nomeCol))).Checked;
break;
case "selAjax":
e.InputParameters[nomeCol] = ((mod_selettore_ajax)grView.FooterRow.FindControl(string.Format("selAjax_{0}", nomeCol))).valore;
+2 -2
View File
@@ -47,7 +47,7 @@
</asp:TemplateField>
<asp:TemplateField HeaderText="CelleTotAtt" SortExpression="TotCelle">
<ItemTemplate>
<uc2:mod_barPlot ID="mod_barPlot1" runat="server" elencoValori='<%# getElencoValori("numCelle", Eval("TotCelle"), Eval("CelleAttive")) %>' />
<uc2:mod_barPlot ID="mod_barPlot1" runat="server" elencoValori='<%# getElencoValori("numCelle", Eval("TotCelle"), Eval("CelleAttive")) %>' resolution="8" />
<div class="didascalia">
<asp:Label ID="lblTotCelle" runat="server" Text='<%# Eval("TotCelle") %>' ToolTip='<%# traduci("TotCelle") %>' />
/
@@ -57,7 +57,7 @@
</asp:TemplateField>
<asp:TemplateField HeaderText="CelleLibereOccupate" SortExpression="CelleLibere">
<ItemTemplate>
<uc2:mod_barPlot ID="mod_barPlot2" runat="server" elencoValori='<%# getElencoValori("celleOccupate", Eval("CelleAttive"), Eval("CelleOccupate")) %>' />
<uc2:mod_barPlot ID="mod_barPlot2" runat="server" elencoValori='<%# getElencoValori("celleOccupate", Eval("CelleAttive"), Eval("CelleOccupate")) %>' resolution="8" />
<div class="didascalia">
<asp:Label ID="lblCelleOccupate" runat="server" Text='<%# Eval("CelleOccupate") %>'
ToolTip='<%# traduci("CelleOccupate") %>' />
+34 -10
View File
@@ -21,6 +21,17 @@
Visible='<%# isWritable() %>' />
</EmptyDataTemplate>
<Columns>
<asp:TemplateField>
<EditItemTemplate>
<asp:Label ID="lblIdxTipoCella" runat="server" Text='<%# Eval("IdxTipoCella","[{0}]") %>'></asp:Label>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="lblIdxTipoCella" runat="server" Text='<%# Eval("IdxTipoCella","[{0}]") %>'></asp:Label>
</ItemTemplate>
<FooterTemplate>
<asp:Label ID="lblIdxTipoCella" runat="server" Text='<%# Eval("IdxTipoCella","[{0}]") %>'></asp:Label>
</FooterTemplate>
</asp:TemplateField>
<asp:TemplateField ShowHeader="False">
<HeaderTemplate>
<asp:Button ID="btnReset" runat="server" Text='<%# traduci("Reset") %>' OnClick="btnReset_Click"
@@ -112,16 +123,19 @@
<FooterTemplate>
<asp:TextBox ID="txtMax_Kg" runat="server" Text='<%# Bind("Max_Kg") %>' Width="3em" />
</FooterTemplate>
</asp:TemplateField>
</asp:TemplateField>
<asp:TemplateField HeaderText="CheckPiena" SortExpression="CheckPiena">
<EditItemTemplate>
<asp:CheckBox ID="chkCheckPiena" runat="server" Checked='<%# Bind("CheckPiena") %>' Width="3em" />
<asp:CheckBox ID="chkCheckPiena" runat="server" Checked='<%# Bind("CheckPiena") %>'
Width="3em" />
</EditItemTemplate>
<ItemTemplate>
<asp:CheckBox ID="chkCheckPiena" runat="server" Checked='<%# Bind("CheckPiena") %>' Enabled="false" />
<asp:CheckBox ID="chkCheckPiena" runat="server" Checked='<%# Bind("CheckPiena") %>'
Enabled="false" />
</ItemTemplate>
<FooterTemplate>
<asp:CheckBox ID="chkCheckPiena" runat="server" Checked='<%# Bind("CheckPiena") %>' Width="3em" />
<asp:CheckBox ID="chkCheckPiena" runat="server" Checked='<%# Bind("CheckPiena") %>'
Width="3em" />
</FooterTemplate>
</asp:TemplateField>
<asp:TemplateField ShowHeader="False">
@@ -130,8 +144,8 @@
</HeaderTemplate>
<ItemTemplate>
<asp:ImageButton ID="imgDelete" runat="server" CausesValidation="False" CommandName="Delete"
CommandArgument='<%# Eval("IdxTipoCella") %>' ToolTip='<%# traduci("Delete") %>' Visible='<%# delEnabled(Eval("IdxTipoCella")) %>'
ImageUrl='<%# imgPath(SteamWare.tipoImg.elimina , SteamWare.dimImg.small) %>' />
CommandArgument='<%# Eval("IdxTipoCella") %>' ToolTip='<%# traduci("Delete") %>'
Visible='<%# delEnabled(Eval("IdxTipoCella")) %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.elimina , SteamWare.dimImg.small) %>' />
<cc1:ConfirmButtonExtender ID="ConfirmButtonExtender1" runat="server" ConfirmText='<%# traduci("confermaDel")%>'
TargetControlID="imgDelete">
</cc1:ConfirmButtonExtender>
@@ -152,11 +166,10 @@
</asp:TemplateField>
</Columns>
</asp:GridView>
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}"
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="Original_{0}"
SelectMethod="getByCodMag" TypeName="GMW_data.DS_magazzinoTableAdapters.TipoCellaTableAdapter"
OnInserting="recuperaFooter" OnInserted="ods_Updated"
OnUpdated="ods_Updated" DeleteMethod="DeleteQuery"
UpdateMethod="UpdateQuery">
OnInserting="recuperaFooter" OnInserted="ods_Updated" OnUpdated="ods_Updated"
DeleteMethod="DeleteQuery" UpdateMethod="UpdateQuery" InsertMethod="Insert">
<DeleteParameters>
<asp:Parameter Name="Original_IdxTipoCella" Type="Int32" />
</DeleteParameters>
@@ -176,6 +189,17 @@
<asp:SessionParameter Name="CodCS" Type="String" SessionField="CodCS" DefaultValue="MM" />
<asp:SessionParameter Name="CodMag" Type="String" SessionField="CodMag_sel" DefaultValue="MM" />
</SelectParameters>
<InsertParameters>
<asp:SessionParameter Name="CodMag" Type="String" SessionField="CodMag_sel" DefaultValue="MM" />
<asp:SessionParameter Name="CodCS" Type="String" SessionField="CodCS" DefaultValue="MM" />
<asp:Parameter Name="Quantita" Type="Int32" />
<asp:Parameter Name="Capienza" Type="Int32" />
<asp:Parameter Name="Max_X" Type="Double" />
<asp:Parameter Name="Max_Y" Type="Double" />
<asp:Parameter Name="Max_Z" Type="Double" />
<asp:Parameter Name="Max_Kg" Type="Double" />
<asp:Parameter Name="CheckPiena" Type="Boolean" />
</InsertParameters>
</asp:ObjectDataSource>
<asp:Label ID="lblNumRec" runat="server" CssClass="txtMini" />&nbsp;&nbsp;
<asp:Label ID="lblWarning" runat="server" Visible="false" CssClass="erroreMid" />
@@ -101,7 +101,7 @@ namespace GMW.WebUserControls
e.InputParameters[nomeCol] = ((DropDownList)grView.FooterRow.FindControl(string.Format("dl{0}", nomeCol))).SelectedValue;
break;
case "checkBox":
e.InputParameters[nomeCol] = ((CheckBox)grView.FooterRow.FindControl(string.Format("dl{0}", nomeCol))).Checked;
e.InputParameters[nomeCol] = ((CheckBox)grView.FooterRow.FindControl(string.Format("chk{0}", nomeCol))).Checked;
break;
case "selAjax":
e.InputParameters[nomeCol] = ((mod_selettore_ajax)grView.FooterRow.FindControl(string.Format("selAjax_{0}", nomeCol))).valore;
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+67 -7
View File
@@ -4661,7 +4661,7 @@ namespace GMW_data.DS_UtilityTableAdapters {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
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 = "dbo.stp_dummy";
@@ -4703,7 +4703,7 @@ namespace GMW_data.DS_UtilityTableAdapters {
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TotCelle", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.InputOutput, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[5] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[5].Connection = this.Connection;
this._commandCollection[5].CommandText = "dbo.stp_ContaCelleCreate";
this._commandCollection[5].CommandText = "dbo.stp_ContaCelleCapa";
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("@CodCS", global::System.Data.SqlDbType.VarChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
@@ -4711,11 +4711,19 @@ namespace GMW_data.DS_UtilityTableAdapters {
this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TotCelle", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.InputOutput, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[6] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[6].Connection = this.Connection;
this._commandCollection[6].CommandText = "dbo.stp_ContaDeltaCelleBlocco";
this._commandCollection[6].CommandText = "dbo.stp_ContaCelleCreate";
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("@IdxBlocco", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DeltaCelle", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.InputOutput, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCS", global::System.Data.SqlDbType.VarChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodMag", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TotCelle", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.InputOutput, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[7] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[7].Connection = this.Connection;
this._commandCollection[7].CommandText = "dbo.stp_ContaDeltaCelleBlocco";
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("@IdxBlocco", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DeltaCelle", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.InputOutput, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -4931,7 +4939,7 @@ namespace GMW_data.DS_UtilityTableAdapters {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int stp_ContaCelleCreate(string CodCS, string CodMag, ref global::System.Nullable<int> TotCelle) {
public virtual object stp_ContaCelleCapa(string CodCS, string CodMag, ref global::System.Nullable<int> TotCelle) {
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[5];
if ((CodCS == null)) {
command.Parameters[1].Value = global::System.DBNull.Value;
@@ -4956,6 +4964,58 @@ namespace GMW_data.DS_UtilityTableAdapters {
!= global::System.Data.ConnectionState.Open)) {
command.Connection.Open();
}
object returnValue;
try {
returnValue = command.ExecuteScalar();
}
finally {
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
command.Connection.Close();
}
}
if (((command.Parameters[3].Value == null)
|| (command.Parameters[3].Value.GetType() == typeof(global::System.DBNull)))) {
TotCelle = new global::System.Nullable<int>();
}
else {
TotCelle = new global::System.Nullable<int>(((int)(command.Parameters[3].Value)));
}
if (((returnValue == null)
|| (returnValue.GetType() == typeof(global::System.DBNull)))) {
return null;
}
else {
return ((object)(returnValue));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int stp_ContaCelleCreate(string CodCS, string CodMag, ref global::System.Nullable<int> TotCelle) {
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[6];
if ((CodCS == null)) {
command.Parameters[1].Value = global::System.DBNull.Value;
}
else {
command.Parameters[1].Value = ((string)(CodCS));
}
if ((CodMag == null)) {
command.Parameters[2].Value = global::System.DBNull.Value;
}
else {
command.Parameters[2].Value = ((string)(CodMag));
}
if ((TotCelle.HasValue == true)) {
command.Parameters[3].Value = ((int)(TotCelle.Value));
}
else {
command.Parameters[3].Value = global::System.DBNull.Value;
}
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
command.Connection.Open();
}
int returnValue;
try {
returnValue = command.ExecuteNonQuery();
@@ -4978,7 +5038,7 @@ namespace GMW_data.DS_UtilityTableAdapters {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int stp_ContaDeltaCelleBlocco(global::System.Nullable<int> IdxBlocco, ref global::System.Nullable<int> DeltaCelle) {
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[6];
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[7];
if ((IdxBlocco.HasValue == true)) {
command.Parameters[1].Value = ((int)(IdxBlocco.Value));
}
+59 -46
View File
@@ -212,6 +212,19 @@ WHERE (value = @value)</CommandText>
</DbCommand>
</SelectCommand>
</DbSource>
<DbSource ConnectionRef="GMWConnectionString (Settings)" DbObjectName="GMW.dbo.stp_ContaCelleCapa" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="stp_ContaCelleCapa" Modifier="Public" Name="stp_ContaCelleCapa" QueryType="Scalar" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy6" UserSourceName="stp_ContaCelleCapa">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_ContaCelleCapa</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="varchar" DbType="AnsiString" Direction="Input" ParameterName="@CodCS" Precision="0" ProviderType="VarChar" Scale="0" Size="2" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="varchar" DbType="AnsiString" Direction="Input" ParameterName="@CodMag" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="InputOutput" ParameterName="@TotCelle" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
<DbSource ConnectionRef="GMWConnectionString (Settings)" DbObjectName="GMW.dbo.stp_ContaCelleCreate" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="stp_ContaCelleCreate" Modifier="Public" Name="stp_ContaCelleCreate" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy4" UserSourceName="stp_ContaCelleCreate">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
@@ -343,21 +356,21 @@ where conditio = @conditio</CommandText>
<xs:element name="v_selMag" msprop:Generator_UserTableName="v_selMag" msprop:Generator_RowDeletedName="v_selMagRowDeleted" msprop:Generator_RowChangedName="v_selMagRowChanged" msprop:Generator_RowClassName="v_selMagRow" msprop:Generator_RowChangingName="v_selMagRowChanging" msprop:Generator_RowEvArgName="v_selMagRowChangeEvent" msprop:Generator_RowEvHandlerName="v_selMagRowChangeEventHandler" msprop:Generator_TableClassName="v_selMagDataTable" msprop:Generator_TableVarName="tablev_selMag" msprop:Generator_RowDeletingName="v_selMagRowDeleting" msprop:Generator_TablePropName="v_selMag">
<xs:complexType>
<xs:sequence>
<xs:element name="value" msprop:Generator_UserColumnName="value" msprop:Generator_ColumnVarNameInTable="columnvalue" msprop:Generator_ColumnPropNameInRow="value" msprop:Generator_ColumnPropNameInTable="valueColumn">
<xs:element name="value" msprop:Generator_UserColumnName="value" msprop:Generator_ColumnPropNameInRow="value" msprop:Generator_ColumnVarNameInTable="columnvalue" msprop:Generator_ColumnPropNameInTable="valueColumn">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="label" msprop:Generator_UserColumnName="label" msprop:Generator_ColumnVarNameInTable="columnlabel" msprop:Generator_ColumnPropNameInRow="label" msprop:Generator_ColumnPropNameInTable="labelColumn" minOccurs="0">
<xs:element name="label" msprop:Generator_UserColumnName="label" msprop:Generator_ColumnPropNameInRow="label" msprop:Generator_ColumnVarNameInTable="columnlabel" msprop:Generator_ColumnPropNameInTable="labelColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="conditio" msprop:Generator_UserColumnName="conditio" msprop:Generator_ColumnVarNameInTable="columnconditio" msprop:Generator_ColumnPropNameInRow="conditio" msprop:Generator_ColumnPropNameInTable="conditioColumn">
<xs:element name="conditio" msprop:Generator_UserColumnName="conditio" msprop:Generator_ColumnPropNameInRow="conditio" msprop:Generator_ColumnVarNameInTable="columnconditio" msprop:Generator_ColumnPropNameInTable="conditioColumn">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2" />
@@ -370,22 +383,22 @@ where conditio = @conditio</CommandText>
<xs:element name="v_selBlocco" msprop:Generator_UserTableName="v_selBlocco" msprop:Generator_RowDeletedName="v_selBloccoRowDeleted" msprop:Generator_RowChangedName="v_selBloccoRowChanged" msprop:Generator_RowClassName="v_selBloccoRow" msprop:Generator_RowChangingName="v_selBloccoRowChanging" msprop:Generator_RowEvArgName="v_selBloccoRowChangeEvent" msprop:Generator_RowEvHandlerName="v_selBloccoRowChangeEventHandler" msprop:Generator_TableClassName="v_selBloccoDataTable" msprop:Generator_TableVarName="tablev_selBlocco" msprop:Generator_RowDeletingName="v_selBloccoRowDeleting" msprop:Generator_TablePropName="v_selBlocco">
<xs:complexType>
<xs:sequence>
<xs:element name="value" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_UserColumnName="value" msprop:Generator_ColumnVarNameInTable="columnvalue" msprop:Generator_ColumnPropNameInRow="value" msprop:Generator_ColumnPropNameInTable="valueColumn" type="xs:int" />
<xs:element name="label" msdata:ReadOnly="true" msprop:Generator_UserColumnName="label" msprop:Generator_ColumnVarNameInTable="columnlabel" msprop:Generator_ColumnPropNameInRow="label" msprop:Generator_ColumnPropNameInTable="labelColumn" minOccurs="0">
<xs:element name="value" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_UserColumnName="value" msprop:Generator_ColumnPropNameInRow="value" msprop:Generator_ColumnVarNameInTable="columnvalue" msprop:Generator_ColumnPropNameInTable="valueColumn" type="xs:int" />
<xs:element name="label" msdata:ReadOnly="true" msprop:Generator_UserColumnName="label" msprop:Generator_ColumnPropNameInRow="label" msprop:Generator_ColumnVarNameInTable="columnlabel" msprop:Generator_ColumnPropNameInTable="labelColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="151" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CodCS" msprop:Generator_UserColumnName="CodCS" msprop:Generator_ColumnVarNameInTable="columnCodCS" msprop:Generator_ColumnPropNameInRow="CodCS" msprop:Generator_ColumnPropNameInTable="CodCSColumn" minOccurs="0">
<xs:element name="CodCS" msprop:Generator_UserColumnName="CodCS" msprop:Generator_ColumnPropNameInRow="CodCS" msprop:Generator_ColumnVarNameInTable="columnCodCS" msprop:Generator_ColumnPropNameInTable="CodCSColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CodMag" msprop:Generator_UserColumnName="CodMag" msprop:Generator_ColumnVarNameInTable="columnCodMag" msprop:Generator_ColumnPropNameInRow="CodMag" msprop:Generator_ColumnPropNameInTable="CodMagColumn" minOccurs="0">
<xs:element name="CodMag" msprop:Generator_UserColumnName="CodMag" msprop:Generator_ColumnPropNameInRow="CodMag" msprop:Generator_ColumnVarNameInTable="columnCodMag" msprop:Generator_ColumnPropNameInTable="CodMagColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
@@ -398,35 +411,15 @@ where conditio = @conditio</CommandText>
<xs:element name="v_selTipoCella" msprop:Generator_UserTableName="v_selTipoCella" msprop:Generator_RowDeletedName="v_selTipoCellaRowDeleted" msprop:Generator_RowChangedName="v_selTipoCellaRowChanged" msprop:Generator_RowClassName="v_selTipoCellaRow" msprop:Generator_RowChangingName="v_selTipoCellaRowChanging" msprop:Generator_RowEvArgName="v_selTipoCellaRowChangeEvent" msprop:Generator_RowEvHandlerName="v_selTipoCellaRowChangeEventHandler" msprop:Generator_TableClassName="v_selTipoCellaDataTable" msprop:Generator_TableVarName="tablev_selTipoCella" msprop:Generator_RowDeletingName="v_selTipoCellaRowDeleting" msprop:Generator_TablePropName="v_selTipoCella">
<xs:complexType>
<xs:sequence>
<xs:element name="value" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_UserColumnName="value" msprop:Generator_ColumnVarNameInTable="columnvalue" msprop:Generator_ColumnPropNameInRow="value" msprop:Generator_ColumnPropNameInTable="valueColumn" type="xs:int" />
<xs:element name="label" msdata:ReadOnly="true" msprop:Generator_UserColumnName="label" msprop:Generator_ColumnVarNameInTable="columnlabel" msprop:Generator_ColumnPropNameInRow="label" msprop:Generator_ColumnPropNameInTable="labelColumn" minOccurs="0">
<xs:element name="value" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_UserColumnName="value" msprop:Generator_ColumnPropNameInRow="value" msprop:Generator_ColumnVarNameInTable="columnvalue" msprop:Generator_ColumnPropNameInTable="valueColumn" type="xs:int" />
<xs:element name="label" msdata:ReadOnly="true" msprop:Generator_UserColumnName="label" msprop:Generator_ColumnPropNameInRow="label" msprop:Generator_ColumnVarNameInTable="columnlabel" msprop:Generator_ColumnPropNameInTable="labelColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="162" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CodMag" msprop:Generator_UserColumnName="CodMag" msprop:Generator_ColumnVarNameInTable="columnCodMag" msprop:Generator_ColumnPropNameInRow="CodMag" msprop:Generator_ColumnPropNameInTable="CodMagColumn">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CodCS" msprop:Generator_UserColumnName="CodCS" msprop:Generator_ColumnVarNameInTable="columnCodCS" msprop:Generator_ColumnPropNameInRow="CodCS" msprop:Generator_ColumnPropNameInTable="CodCSColumn">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="stp_getImpiantiByCodCS" msprop:Generator_UserTableName="stp_getImpiantiByCodCS" msprop:Generator_RowDeletedName="stp_getImpiantiByCodCSRowDeleted" msprop:Generator_RowChangedName="stp_getImpiantiByCodCSRowChanged" msprop:Generator_RowClassName="stp_getImpiantiByCodCSRow" msprop:Generator_RowChangingName="stp_getImpiantiByCodCSRowChanging" msprop:Generator_RowEvArgName="stp_getImpiantiByCodCSRowChangeEvent" msprop:Generator_RowEvHandlerName="stp_getImpiantiByCodCSRowChangeEventHandler" msprop:Generator_TableClassName="stp_getImpiantiByCodCSDataTable" msprop:Generator_TableVarName="tablestp_getImpiantiByCodCS" msprop:Generator_RowDeletingName="stp_getImpiantiByCodCSRowDeleting" msprop:Generator_TablePropName="stp_getImpiantiByCodCS">
<xs:complexType>
<xs:sequence>
<xs:element name="CodImpianto" msprop:Generator_UserColumnName="CodImpianto" msprop:Generator_ColumnPropNameInRow="CodImpianto" msprop:Generator_ColumnVarNameInTable="columnCodImpianto" msprop:Generator_ColumnPropNameInTable="CodImpiantoColumn">
<xs:element name="CodMag" msprop:Generator_UserColumnName="CodMag" msprop:Generator_ColumnPropNameInRow="CodMag" msprop:Generator_ColumnVarNameInTable="columnCodMag" msprop:Generator_ColumnPropNameInTable="CodMagColumn">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
@@ -440,21 +433,41 @@ where conditio = @conditio</CommandText>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="DescImpianto" msprop:Generator_UserColumnName="DescImpianto" msprop:Generator_ColumnPropNameInRow="DescImpianto" msprop:Generator_ColumnVarNameInTable="columnDescImpianto" msprop:Generator_ColumnPropNameInTable="DescImpiantoColumn" minOccurs="0">
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="stp_getImpiantiByCodCS" msprop:Generator_UserTableName="stp_getImpiantiByCodCS" msprop:Generator_RowDeletedName="stp_getImpiantiByCodCSRowDeleted" msprop:Generator_RowChangedName="stp_getImpiantiByCodCSRowChanged" msprop:Generator_RowClassName="stp_getImpiantiByCodCSRow" msprop:Generator_RowChangingName="stp_getImpiantiByCodCSRowChanging" msprop:Generator_RowEvArgName="stp_getImpiantiByCodCSRowChangeEvent" msprop:Generator_RowEvHandlerName="stp_getImpiantiByCodCSRowChangeEventHandler" msprop:Generator_TableClassName="stp_getImpiantiByCodCSDataTable" msprop:Generator_TableVarName="tablestp_getImpiantiByCodCS" msprop:Generator_RowDeletingName="stp_getImpiantiByCodCSRowDeleting" msprop:Generator_TablePropName="stp_getImpiantiByCodCS">
<xs:complexType>
<xs:sequence>
<xs:element name="CodImpianto" msprop:Generator_UserColumnName="CodImpianto" msprop:Generator_ColumnVarNameInTable="columnCodImpianto" msprop:Generator_ColumnPropNameInRow="CodImpianto" msprop:Generator_ColumnPropNameInTable="CodImpiantoColumn">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Campionatura" msprop:Generator_UserColumnName="Campionatura" msprop:Generator_ColumnPropNameInRow="Campionatura" msprop:Generator_ColumnVarNameInTable="columnCampionatura" msprop:Generator_ColumnPropNameInTable="CampionaturaColumn" minOccurs="0">
<xs:element name="CodCS" msprop:Generator_UserColumnName="CodCS" msprop:Generator_ColumnVarNameInTable="columnCodCS" msprop:Generator_ColumnPropNameInRow="CodCS" msprop:Generator_ColumnPropNameInTable="CodCSColumn">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="DescImpianto" msprop:Generator_UserColumnName="DescImpianto" msprop:Generator_ColumnVarNameInTable="columnDescImpianto" msprop:Generator_ColumnPropNameInRow="DescImpianto" msprop:Generator_ColumnPropNameInTable="DescImpiantoColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Campionatura" msprop:Generator_UserColumnName="Campionatura" msprop:Generator_ColumnVarNameInTable="columnCampionatura" msprop:Generator_ColumnPropNameInRow="Campionatura" msprop:Generator_ColumnPropNameInTable="CampionaturaColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="1" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="TipoLinea" msprop:Generator_UserColumnName="TipoLinea" msprop:Generator_ColumnPropNameInRow="TipoLinea" msprop:Generator_ColumnVarNameInTable="columnTipoLinea" msprop:Generator_ColumnPropNameInTable="TipoLineaColumn" minOccurs="0">
<xs:element name="TipoLinea" msprop:Generator_UserColumnName="TipoLinea" msprop:Generator_ColumnVarNameInTable="columnTipoLinea" msprop:Generator_ColumnPropNameInRow="TipoLinea" msprop:Generator_ColumnPropNameInTable="TipoLineaColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="6" />
@@ -467,29 +480,29 @@ where conditio = @conditio</CommandText>
<xs:element name="STP" msprop:Generator_UserTableName="STP" msprop:Generator_RowDeletedName="STPRowDeleted" msprop:Generator_RowChangedName="STPRowChanged" msprop:Generator_RowClassName="STPRow" msprop:Generator_RowChangingName="STPRowChanging" msprop:Generator_RowEvArgName="STPRowChangeEvent" msprop:Generator_RowEvHandlerName="STPRowChangeEventHandler" msprop:Generator_TableClassName="STPDataTable" msprop:Generator_TableVarName="tableSTP" msprop:Generator_RowDeletingName="STPRowDeleting" msprop:Generator_TablePropName="STP">
<xs:complexType>
<xs:sequence>
<xs:element name="Versione" msprop:Generator_UserColumnName="Versione" msprop:Generator_ColumnPropNameInRow="Versione" msprop:Generator_ColumnVarNameInTable="columnVersione" msprop:Generator_ColumnPropNameInTable="VersioneColumn" type="xs:int" />
<xs:element name="Data" msprop:Generator_UserColumnName="Data" msprop:Generator_ColumnPropNameInRow="Data" msprop:Generator_ColumnVarNameInTable="columnData" msprop:Generator_ColumnPropNameInTable="DataColumn" type="xs:dateTime" minOccurs="0" />
<xs:element name="Versione" msprop:Generator_UserColumnName="Versione" msprop:Generator_ColumnVarNameInTable="columnVersione" msprop:Generator_ColumnPropNameInRow="Versione" msprop:Generator_ColumnPropNameInTable="VersioneColumn" type="xs:int" />
<xs:element name="Data" msprop:Generator_UserColumnName="Data" msprop:Generator_ColumnVarNameInTable="columnData" msprop:Generator_ColumnPropNameInRow="Data" msprop:Generator_ColumnPropNameInTable="DataColumn" type="xs:dateTime" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="v_selPeriodiTrad" msprop:Generator_UserTableName="v_selPeriodiTrad" msprop:Generator_RowDeletedName="v_selPeriodiTradRowDeleted" msprop:Generator_RowChangedName="v_selPeriodiTradRowChanged" msprop:Generator_RowClassName="v_selPeriodiTradRow" msprop:Generator_RowChangingName="v_selPeriodiTradRowChanging" msprop:Generator_RowEvArgName="v_selPeriodiTradRowChangeEvent" msprop:Generator_RowEvHandlerName="v_selPeriodiTradRowChangeEventHandler" msprop:Generator_TableClassName="v_selPeriodiTradDataTable" msprop:Generator_TableVarName="tablev_selPeriodiTrad" msprop:Generator_RowDeletingName="v_selPeriodiTradRowDeleting" msprop:Generator_TablePropName="v_selPeriodiTrad">
<xs:complexType>
<xs:sequence>
<xs:element name="value" msprop:Generator_UserColumnName="value" msprop:Generator_ColumnVarNameInTable="columnvalue" msprop:Generator_ColumnPropNameInRow="value" msprop:Generator_ColumnPropNameInTable="valueColumn">
<xs:element name="value" msprop:Generator_UserColumnName="value" msprop:Generator_ColumnPropNameInRow="value" msprop:Generator_ColumnVarNameInTable="columnvalue" msprop:Generator_ColumnPropNameInTable="valueColumn">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="20" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="label" msprop:Generator_UserColumnName="label" msprop:Generator_ColumnVarNameInTable="columnlabel" msprop:Generator_ColumnPropNameInRow="label" msprop:Generator_ColumnPropNameInTable="labelColumn">
<xs:element name="label" msprop:Generator_UserColumnName="label" msprop:Generator_ColumnPropNameInRow="label" msprop:Generator_ColumnVarNameInTable="columnlabel" msprop:Generator_ColumnPropNameInTable="labelColumn">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="500" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="conditio" msprop:Generator_UserColumnName="conditio" msprop:Generator_ColumnVarNameInTable="columnconditio" msprop:Generator_ColumnPropNameInRow="conditio" msprop:Generator_ColumnPropNameInTable="conditioColumn">
<xs:element name="conditio" msprop:Generator_UserColumnName="conditio" msprop:Generator_ColumnPropNameInRow="conditio" msprop:Generator_ColumnVarNameInTable="columnconditio" msprop:Generator_ColumnPropNameInTable="conditioColumn">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="3" />
@@ -502,8 +515,8 @@ where conditio = @conditio</CommandText>
<xs:element name="v_selStatiListe" msprop:Generator_UserTableName="v_selStatiListe" msprop:Generator_RowDeletedName="v_selStatiListeRowDeleted" msprop:Generator_RowChangedName="v_selStatiListeRowChanged" msprop:Generator_RowClassName="v_selStatiListeRow" msprop:Generator_RowChangingName="v_selStatiListeRowChanging" msprop:Generator_RowEvArgName="v_selStatiListeRowChangeEvent" msprop:Generator_RowEvHandlerName="v_selStatiListeRowChangeEventHandler" msprop:Generator_TableClassName="v_selStatiListeDataTable" msprop:Generator_TableVarName="tablev_selStatiListe" msprop:Generator_RowDeletingName="v_selStatiListeRowDeleting" msprop:Generator_TablePropName="v_selStatiListe">
<xs:complexType>
<xs:sequence>
<xs:element name="value" msprop:Generator_UserColumnName="value" msprop:Generator_ColumnPropNameInRow="value" msprop:Generator_ColumnVarNameInTable="columnvalue" msprop:Generator_ColumnPropNameInTable="valueColumn" type="xs:int" />
<xs:element name="label" msprop:Generator_UserColumnName="label" msprop:Generator_ColumnPropNameInRow="label" msprop:Generator_ColumnVarNameInTable="columnlabel" msprop:Generator_ColumnPropNameInTable="labelColumn" minOccurs="0">
<xs:element name="value" msprop:Generator_UserColumnName="value" msprop:Generator_ColumnVarNameInTable="columnvalue" msprop:Generator_ColumnPropNameInRow="value" msprop:Generator_ColumnPropNameInTable="valueColumn" type="xs:int" />
<xs:element name="label" msprop:Generator_UserColumnName="label" msprop:Generator_ColumnVarNameInTable="columnlabel" msprop:Generator_ColumnPropNameInRow="label" msprop:Generator_ColumnPropNameInTable="labelColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
@@ -516,14 +529,14 @@ where conditio = @conditio</CommandText>
<xs:element name="v_selTipoLista" msprop:Generator_UserTableName="v_selTipoLista" msprop:Generator_RowDeletedName="v_selTipoListaRowDeleted" msprop:Generator_RowChangedName="v_selTipoListaRowChanged" msprop:Generator_RowClassName="v_selTipoListaRow" msprop:Generator_RowChangingName="v_selTipoListaRowChanging" msprop:Generator_RowEvArgName="v_selTipoListaRowChangeEvent" msprop:Generator_RowEvHandlerName="v_selTipoListaRowChangeEventHandler" msprop:Generator_TableClassName="v_selTipoListaDataTable" msprop:Generator_TableVarName="tablev_selTipoLista" msprop:Generator_RowDeletingName="v_selTipoListaRowDeleting" msprop:Generator_TablePropName="v_selTipoLista">
<xs:complexType>
<xs:sequence>
<xs:element name="value" msprop:Generator_UserColumnName="value" msprop:Generator_ColumnVarNameInTable="columnvalue" msprop:Generator_ColumnPropNameInRow="value" msprop:Generator_ColumnPropNameInTable="valueColumn">
<xs:element name="value" msprop:Generator_UserColumnName="value" msprop:Generator_ColumnPropNameInRow="value" msprop:Generator_ColumnVarNameInTable="columnvalue" msprop:Generator_ColumnPropNameInTable="valueColumn">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="10" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="label" msprop:Generator_UserColumnName="label" msprop:Generator_ColumnVarNameInTable="columnlabel" msprop:Generator_ColumnPropNameInRow="label" msprop:Generator_ColumnPropNameInTable="labelColumn" minOccurs="0">
<xs:element name="label" msprop:Generator_UserColumnName="label" msprop:Generator_ColumnPropNameInRow="label" msprop:Generator_ColumnVarNameInTable="columnlabel" msprop:Generator_ColumnPropNameInTable="labelColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="250" />
@@ -533,24 +546,24 @@ where conditio = @conditio</CommandText>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="v_selUdcByPart" msprop:Generator_UserTableName="v_selUdcByPart" msprop:Generator_RowDeletedName="v_selUdcByPartRowDeleted" msprop:Generator_TableClassName="v_selUdcByPartDataTable" msprop:Generator_RowChangedName="v_selUdcByPartRowChanged" msprop:Generator_RowClassName="v_selUdcByPartRow" msprop:Generator_RowChangingName="v_selUdcByPartRowChanging" msprop:Generator_RowEvArgName="v_selUdcByPartRowChangeEvent" msprop:Generator_RowEvHandlerName="v_selUdcByPartRowChangeEventHandler" msprop:Generator_TablePropName="v_selUdcByPart" msprop:Generator_TableVarName="tablev_selUdcByPart" msprop:Generator_RowDeletingName="v_selUdcByPartRowDeleting">
<xs:element name="v_selUdcByPart" msprop:Generator_UserTableName="v_selUdcByPart" msprop:Generator_RowDeletedName="v_selUdcByPartRowDeleted" msprop:Generator_RowChangedName="v_selUdcByPartRowChanged" msprop:Generator_RowClassName="v_selUdcByPartRow" msprop:Generator_RowChangingName="v_selUdcByPartRowChanging" msprop:Generator_RowEvArgName="v_selUdcByPartRowChangeEvent" msprop:Generator_RowEvHandlerName="v_selUdcByPartRowChangeEventHandler" msprop:Generator_TableClassName="v_selUdcByPartDataTable" msprop:Generator_TableVarName="tablev_selUdcByPart" msprop:Generator_RowDeletingName="v_selUdcByPartRowDeleting" msprop:Generator_TablePropName="v_selUdcByPart">
<xs:complexType>
<xs:sequence>
<xs:element name="value" msprop:Generator_UserColumnName="value" msprop:Generator_ColumnPropNameInRow="value" msprop:Generator_ColumnVarNameInTable="columnvalue" msprop:Generator_ColumnPropNameInTable="valueColumn">
<xs:element name="value" msprop:Generator_UserColumnName="value" msprop:Generator_ColumnVarNameInTable="columnvalue" msprop:Generator_ColumnPropNameInRow="value" msprop:Generator_ColumnPropNameInTable="valueColumn">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="label" msdata:ReadOnly="true" msprop:Generator_UserColumnName="label" msprop:Generator_ColumnPropNameInRow="label" msprop:Generator_ColumnVarNameInTable="columnlabel" msprop:Generator_ColumnPropNameInTable="labelColumn" minOccurs="0">
<xs:element name="label" msdata:ReadOnly="true" msprop:Generator_UserColumnName="label" msprop:Generator_ColumnVarNameInTable="columnlabel" msprop:Generator_ColumnPropNameInRow="label" msprop:Generator_ColumnPropNameInTable="labelColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="152" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="conditio" msprop:Generator_UserColumnName="conditio" msprop:Generator_ColumnPropNameInRow="conditio" msprop:Generator_ColumnVarNameInTable="columnconditio" msprop:Generator_ColumnPropNameInTable="conditioColumn" minOccurs="0">
<xs:element name="conditio" msprop:Generator_UserColumnName="conditio" msprop:Generator_ColumnVarNameInTable="columnconditio" msprop:Generator_ColumnPropNameInRow="conditio" msprop:Generator_ColumnPropNameInTable="conditioColumn" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="15" />
+3 -3
View File
@@ -12560,8 +12560,8 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
this._adapter.InsertCommand.Connection = this.Connection;
this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[AnagMag] ([CodMag], [CodCS], [DescMag]) VALUES (@CodMag, @CodC" +
"S, @DescMag);\r\nSELECT CodMag, CodCS, DescMag FROM AnagMag WHERE (CodMag = @CodMa" +
"g)";
"S, @DescMag);\r\nSELECT CodMag, CodCS, DescMag FROM AnagMag WHERE (CodCS = @CodCS)" +
" AND (CodMag = @CodMag)";
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodMag", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMag", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCS", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCS", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
@@ -12569,7 +12569,7 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
this._adapter.UpdateCommand.Connection = this.Connection;
this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[AnagMag] SET [CodMag] = @CodMag, [CodCS] = @CodCS, [DescMag] = @DescMag WHERE (([CodMag] = @Original_CodMag) AND ([CodCS] = @Original_CodCS) AND ((@IsNull_DescMag = 1 AND [DescMag] IS NULL) OR ([DescMag] = @Original_DescMag)));
SELECT CodMag, CodCS, DescMag FROM AnagMag WHERE (CodMag = @CodMag)";
SELECT CodMag, CodCS, DescMag FROM AnagMag WHERE (CodCS = @CodCS) AND (CodMag = @CodMag)";
this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodMag", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodMag", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCS", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCS", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
File diff suppressed because it is too large Load Diff
Binary file not shown.
Binary file not shown.