Continuo stats...

This commit is contained in:
Samuele E. Locatelli
2019-05-15 17:36:21 +02:00
parent bc7e91550c
commit 61b7cce191
19 changed files with 3714 additions and 40 deletions
+16
View File
@@ -424,6 +424,8 @@
<Content Include="WebUserControls\mod_newOdl.ascx" />
<Content Include="WebUserControls\mod_newPromessaODL.ascx" />
<Content Include="WebUserControls\mod_pageTitleAndSearch.ascx" />
<Content Include="WebUserControls\mod_planCreate.ascx" />
<Content Include="WebUserControls\mod_planStats.ascx" />
<Content Include="WebUserControls\mod_ricercaGenerica.ascx" />
<Content Include="WebUserControls\mod_storicoTC.ascx" />
<Content Include="WebUserControls\mod_unauthorized.ascx" />
@@ -832,6 +834,20 @@
<Compile Include="WebUserControls\mod_pageTitleAndSearch.ascx.designer.cs">
<DependentUpon>mod_pageTitleAndSearch.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\mod_planCreate.ascx.cs">
<DependentUpon>mod_planCreate.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="WebUserControls\mod_planCreate.ascx.designer.cs">
<DependentUpon>mod_planCreate.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\mod_planStats.ascx.cs">
<DependentUpon>mod_planStats.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="WebUserControls\mod_planStats.ascx.designer.cs">
<DependentUpon>mod_planStats.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\mod_ricercaGenerica.ascx.cs">
<DependentUpon>mod_ricercaGenerica.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
+22
View File
@@ -1,3 +1,25 @@
<%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/MoonPro.master" AutoEventWireup="true" CodeBehind="Planner.aspx.cs" Inherits="MP_ADM.Planner" %>
<%@ Register Src="~/WebUserControls/mod_barcode.ascx" TagPrefix="uc1" TagName="mod_barcode" %>
<%@ Register Src="~/WebUserControls/mod_gestPromODL.ascx" TagPrefix="uc1" TagName="mod_gestPromODL" %>
<%@ Register Src="~/WebUserControls/mod_planStats.ascx" TagPrefix="uc1" TagName="mod_planStats" %>
<%@ Register Src="~/WebUserControls/mod_planCreate.ascx" TagPrefix="uc1" TagName="mod_planCreate" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<asp:Label runat="server" ID="lblDataImportOut" CssClass="text-danger" />
<div runat="server" id="divContent">
<uc1:mod_planStats runat="server" id="mod_planStats" />
<hr />
<uc1:mod_planCreate runat="server" id="mod_planCreate" />
<%--
<uc1:mod_gestkit runat="server" ID="mod_gestKIT" />
<hr />
<uc1:mod_barcode runat="server" ID="mod_barcode" />
<hr />
--%>
<uc1:mod_gestPromODL runat="server" ID="mod_gestPromODL" />
</div>
</asp:Content>
+64 -6
View File
@@ -1,9 +1,5 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SteamWare;
using System;
namespace MP_ADM
{
@@ -11,7 +7,69 @@ namespace MP_ADM
{
protected void Page_Load(object sender, EventArgs e)
{
checkEnabled();
string codPre = memLayer.ML.CRS("OptAdmKit_CodPre");
#if false
mod_barcode.codOrdPre = codPre != "" ? codPre : "KIT";
mod_gestPromODL.codOrdPre = mod_barcode.codOrdPre;
mod_gestPromODL.enableSelFase = memLayer.ML.CRB("OptBCode_enbSelFase");
mod_gestPromODL.CodGruppo = memLayer.ML.CRS("OptBCode_CodGruppo");
mod_barcode.eh_comandoRegistrato += Mod_barcode_eh_comandoRegistrato;
mod_barcode.eh_dataRead += Mod_barcode_eh_dataRead;
mod_gestKIT.eh_selKit += Mod_gestKIT_eh_selKit;
#endif
}
private void checkEnabled()
{
bool optPar = memLayer.ML.CRB("OptAdmKitEnabled");
divContent.Visible = optPar;
lblDataImportOut.Visible = !optPar;
string messaggio = "";
if (!optPar)
{
messaggio = "Attenzione: Gestione KIT disabilitata";
lblDataImportOut.Text = messaggio;
}
}
private void Mod_gestKIT_eh_selKit(object sender, EventArgs e)
{
#if false
// invio ultimo kit creato a barcode...
mod_barcode.BCodeVal = mod_gestKIT.lastKitMade;
mod_barcode.processInput();
#endif
}
private void Mod_barcode_eh_dataRead(object sender, EventArgs e)
{
#if false
// verifico input su KIT x lettura "grezza"
string rawInput = mod_barcode.rawInput;
mod_gestKIT.lastInput = rawInput;
mod_gestKIT.doUpdate();
#endif
}
private void Mod_barcode_eh_comandoRegistrato(object sender, EventArgs e)
{
#if false
// verifico input su KIT x comando completo
string BCodeVal = mod_barcode.BCodeVal;
// se è un ORDINE... procedo!
if (BCodeVal.IndexOf("OPR") == 0)
{
// aggiungo ordine...
mod_gestKIT.addOrdArt(mod_barcode.codOrd, mod_barcode.codArt, mod_barcode.descArt, mod_barcode.qta);
mod_gestKIT.lastInput = "";
}
else
{
mod_gestKIT.lastInput = mod_barcode.BCodeVal;
}
mod_gestKIT.doUpdate();
#endif
}
}
}
+53 -10
View File
@@ -1,17 +1,60 @@
//------------------------------------------------------------------------------
// <auto-generated>
// <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.
// </auto-generated>
// il codice viene rigenerato.
// </generato automaticamente>
//------------------------------------------------------------------------------
namespace MP_ADM
{
public partial class Planner
{
}
namespace MP_ADM {
public partial class Planner {
/// <summary>
/// Controllo lblDataImportOut.
/// </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.Label lblDataImportOut;
/// <summary>
/// Controllo divContent.
/// </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.HtmlControls.HtmlGenericControl divContent;
/// <summary>
/// Controllo mod_planStats.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::MP_ADM.WebUserControls.mod_planStats mod_planStats;
/// <summary>
/// Controllo mod_planCreate.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::MP_ADM.WebUserControls.mod_planCreate mod_planCreate;
/// <summary>
/// Controllo mod_gestPromODL.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::MP_ADM.WebUserControls.mod_gestPromODL mod_gestPromODL;
}
}
+1 -8
View File
@@ -37,15 +37,8 @@
<add name="MapoDb.Properties.Settings.MoonProConnectionString" connectionString="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16;" providerName="System.Data.SqlClient" />
<add name="MapoDb.Properties.Settings.MoonPro_IS_ConnectionString" connectionString="Data Source=SQL2016DEV;Initial Catalog=MoonPro_IS_ColCom;Persist Security Info=True;User ID=sa;Password=keyhammer16;" providerName="System.Data.SqlClient" />
<add name="MapoDb.Properties.Settings.C_TRACKConnectionString" connectionString="Data Source=SQL2016DEV;Initial Catalog=C_TRACK;Persist Security Info=True;User ID=sa;Password=keyhammer16;" providerName="System.Data.SqlClient" />
<add name="MapoDb.Properties.Settings.MoonPro_ES3ConnectionString" connectionString="Data Source=sql2016dev;Initial Catalog=MoonPro_ES3;Persist Security Info=True;User ID=sa;Password=keyhammer16" providerName="System.Data.SqlClient" />
</connectionStrings>
<!--
Per una descrizione delle modifiche al file web.config, vedere il sito Web all'indirizzo http://go.microsoft.com/fwlink/?LinkId=235367.
Gli attributi seguenti possono essere impostati sul tag <httpRuntime>.
<system.Web>
<httpRuntime targetFramework="4.6.2" />
</system.Web>
-->
<system.web>
<compilation debug="true" targetFramework="4.6.2" />
<httpRuntime targetFramework="4.6.2" />
@@ -0,0 +1,35 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_planCreate.ascx.cs" Inherits="MP_ADM.WebUserControls.mod_planCreate" %>
<div class="row">
<div class="col-sm-12">
<div class="card-deck">
<asp:HiddenField runat="server" ID="hlCodIstTemp" />
<div class="card">
<div class="card-header bg-primary text-light">
<h4>Richieste aperte</h4>
</div>
<div class="card-body">
<b>Ordini selezionati:</b>
<%-- <asp:GridView runat="server" ID="grViewWSK" DataSourceID="odsWSK" AutoGenerateColumns="False" DataKeyNames="KeyFilt,CodOrd" CssClass="table table-sm table-striped">
<EmptyDataTemplate>
Nessun Ordine caricato
</EmptyDataTemplate>
<Columns>
<asp:BoundField DataField="CodOrd" HeaderText="OPR" ReadOnly="True" SortExpression="CodOrd" ItemStyle-CssClass="text-nowrap" />
<asp:BoundField DataField="CodArt" HeaderText="Cod.Art" SortExpression="CodArt" ItemStyle-CssClass="font-weight-bold" />
<asp:BoundField DataField="DescArt" HeaderText="Desc.Art" SortExpression="DescArt" ItemStyle-CssClass="small" />
<asp:BoundField DataField="Qta" HeaderText="Qta" SortExpression="Qta" />
</Columns>
</asp:GridView>
<asp:ObjectDataSource runat="server" ID="odsWSK" OldValuesParameterFormatString="original_{0}" SelectMethod="getByFilt" TypeName="MapoDb.DS_IntServTableAdapters.WipSetupKitTableAdapter">
<SelectParameters>
<asp:ControlParameter ControlID="hlCodKitTemp" Name="KeyFilt" PropertyName="Value" Type="String" />
</SelectParameters>
</asp:ObjectDataSource>--%>
</div>
<div class="card-footer py-1 bg-primary text-light">
Cod temp: <b><%: hlCodIstTemp.Value %></b>
</div>
</div>
</div>
</div>
</div>
@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace MP_ADM.WebUserControls
{
public partial class mod_planCreate : System.Web.UI.UserControl
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
}
+24
View File
@@ -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 MP_ADM.WebUserControls {
public partial class mod_planCreate {
/// <summary>
/// Controllo hlCodIstTemp.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.HiddenField hlCodIstTemp;
}
}
+83
View File
@@ -0,0 +1,83 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_planStats.ascx.cs" Inherits="MP_ADM.WebUserControls.mod_planStats" %>
<div class="row">
<div class="col-12">
<div class="card-deck">
<asp:HiddenField runat="server" ID="hlCodIstTemp" />
<div class="card">
<div class="card-header bg-dark text-light">
<h4>Global Stats</h4>
</div>
<div class="card-body">
<asp:FormView runat="server" ID="frmView" DataSourceID="odsStGlb" Width="100%">
<ItemTemplate>
<div class="row">
<label for="lblNumRows" class="col my-0">Richieste</label>
<div class="col my-0 text-right font-weight-bold">
<asp:Label runat="server" ID="lblNumRows" Text='<%# Eval("NumRows") %>' />
</div>
</div>
<div class="row my-0">
<label for="lblNumGrp" class="col my-0">Gruppi</label>
<div class="col my-0 text-right font-weight-bold">
<asp:Label runat="server" ID="lblNumGrp" Text='<%# Eval("NumGrp") %>' />
</div>
</div>
<div class="row">
<label for="lblNumMacc" class="col my-0">Macchine</label>
<div class="col my-0 text-right font-weight-bold">
<asp:Label runat="server" ID="lblNumMacc" Text='<%# Eval("NumMacc") %>' />
</div>
</div>
<div class="row">
<label for="lblNumMacc" class="col my-0">Richieste</label>
<div class="col my-0 text-right font-weight-bold">
<asp:Label runat="server" ID="Label1" Text='<%# Eval("TotOreRich","{0:N2} h") %>' />
</div>
</div>
<div class="row">
<label for="lblNumMacc" class="col my-0">Pianificate</label>
<div class="col my-0 text-right font-weight-bold">
<asp:Label runat="server" ID="Label2" Text='<%# Eval("TotOrePlan","{0:N2} h") %>' />
</div>
</div>
</ItemTemplate>
</asp:FormView>
<asp:ObjectDataSource runat="server" ID="odsStGlb" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="MapoDb.DS_PlanTableAdapters.planStatsGlobalTableAdapter"></asp:ObjectDataSource>
</div>
</div>
<div class="card">
<div class="card-header bg-secondary text-light">
<h4>Articoli</h4>
</div>
<div class="card-body">
<b>Ordini selezionati:</b>
</div>
<div class="card-footer py-1 bg-secondary text-light">
Cod temp: <b><%: hlCodIstTemp.Value %></b>
</div>
</div>
<div class="card">
<div class="card-header bg-secondary text-light">
<h4>Gruppi</h4>
</div>
<div class="card-body">
<b>Ordini selezionati:</b>
</div>
<div class="card-footer py-1 bg-secondary text-light">
Cod temp: <b><%: hlCodIstTemp.Value %></b>
</div>
</div>
<div class="card">
<div class="card-header bg-secondary text-light">
<h4>Macchine</h4>
</div>
<div class="card-body">
<b>Ordini selezionati:</b>
</div>
<div class="card-footer py-1 bg-secondary text-light">
Cod temp: <b><%: hlCodIstTemp.Value %></b>
</div>
</div>
</div>
</div>
</div>
@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace MP_ADM.WebUserControls
{
public partial class mod_planStats : System.Web.UI.UserControl
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
}
+42
View File
@@ -0,0 +1,42 @@
//------------------------------------------------------------------------------
// <generato automaticamente>
// Codice generato da uno strumento.
//
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
// il codice viene rigenerato.
// </generato automaticamente>
//------------------------------------------------------------------------------
namespace MP_ADM.WebUserControls {
public partial class mod_planStats {
/// <summary>
/// Controllo hlCodIstTemp.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.HiddenField hlCodIstTemp;
/// <summary>
/// Controllo frmView.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.FormView frmView;
/// <summary>
/// Controllo odsStGlb.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.ObjectDataSource odsStGlb;
}
}
+3105
View File
File diff suppressed because it is too large Load Diff
+9
View File
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<!--<autogenerated>
This code was generated by a tool.
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
</autogenerated>-->
<DataSetUISetting Version="1.00" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<TableUISettings />
</DataSetUISetting>
+151
View File
@@ -0,0 +1,151 @@
<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="DS_Plan" targetNamespace="http://tempuri.org/DS_Plan.xsd" xmlns:mstns="http://tempuri.org/DS_Plan.xsd" xmlns="http://tempuri.org/DS_Plan.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
<xs:annotation>
<xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
<DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<Connections>
<Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="MoonPro_ES3ConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="MoonPro_ES3ConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.MapoDb.Properties.Settings.GlobalReference.Default.MoonPro_ES3ConnectionString" Provider="System.Data.SqlClient" />
</Connections>
<Tables>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="planStatsGlobalTableAdapter" GeneratorDataComponentClassName="planStatsGlobalTableAdapter" Name="planStatsGlobal" UserDataComponentName="planStatsGlobalTableAdapter">
<MainSource>
<DbSource ConnectionRef="MoonPro_ES3ConnectionString (Settings)" DbObjectName="MoonPro_ES3.dbo.v_planStatsGlobal" DbObjectType="View" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT NumRows, NumGrp, NumMacc, TotOreRich, TotOrePlan FROM dbo.v_planStatsGlobal</CommandText>
<Parameters />
</DbCommand>
</SelectCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="NumRows" DataSetColumn="NumRows" />
<Mapping SourceColumn="NumGrp" DataSetColumn="NumGrp" />
<Mapping SourceColumn="NumMacc" DataSetColumn="NumMacc" />
<Mapping SourceColumn="TotOreRich" DataSetColumn="TotOreRich" />
<Mapping SourceColumn="TotOrePlan" DataSetColumn="TotOrePlan" />
</Mappings>
<Sources />
</TableAdapter>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="planStatsArtTableAdapter" GeneratorDataComponentClassName="planStatsArtTableAdapter" Name="planStatsArt" UserDataComponentName="planStatsArtTableAdapter">
<MainSource>
<DbSource ConnectionRef="MoonPro_ES3ConnectionString (Settings)" DbObjectName="MoonPro_ES3.dbo.v_planStatsArt" DbObjectType="View" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT CodArticolo, TotOreRich, TotOrePlan FROM dbo.v_planStatsArt</CommandText>
<Parameters />
</DbCommand>
</SelectCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="CodArticolo" DataSetColumn="CodArticolo" />
<Mapping SourceColumn="TotOreRich" DataSetColumn="TotOreRich" />
<Mapping SourceColumn="TotOrePlan" DataSetColumn="TotOrePlan" />
</Mappings>
<Sources />
</TableAdapter>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="planStatsGroupTableAdapter" GeneratorDataComponentClassName="planStatsGroupTableAdapter" Name="planStatsGroup" UserDataComponentName="planStatsGroupTableAdapter">
<MainSource>
<DbSource ConnectionRef="MoonPro_ES3ConnectionString (Settings)" DbObjectName="MoonPro_ES3.dbo.v_planStatsGroup" DbObjectType="View" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT CodGruppo, TotOreRich, TotOrePlan FROM dbo.v_planStatsGroup</CommandText>
<Parameters />
</DbCommand>
</SelectCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="CodGruppo" DataSetColumn="CodGruppo" />
<Mapping SourceColumn="TotOreRich" DataSetColumn="TotOreRich" />
<Mapping SourceColumn="TotOrePlan" DataSetColumn="TotOrePlan" />
</Mappings>
<Sources />
</TableAdapter>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="planStatsMaccTableAdapter" GeneratorDataComponentClassName="planStatsMaccTableAdapter" Name="planStatsMacc" UserDataComponentName="planStatsMaccTableAdapter">
<MainSource>
<DbSource ConnectionRef="MoonPro_ES3ConnectionString (Settings)" DbObjectName="MoonPro_ES3.dbo.v_planStatsMacc" DbObjectType="View" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT IdxMacchina, TotOreRich, TotOrePlan FROM dbo.v_planStatsMacc</CommandText>
<Parameters />
</DbCommand>
</SelectCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="IdxMacchina" DataSetColumn="IdxMacchina" />
<Mapping SourceColumn="TotOreRich" DataSetColumn="TotOreRich" />
<Mapping SourceColumn="TotOrePlan" DataSetColumn="TotOrePlan" />
</Mappings>
<Sources />
</TableAdapter>
</Tables>
<Sources />
</DataSource>
</xs:appinfo>
</xs:annotation>
<xs:element name="DS_Plan" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="DS_Plan" msprop:Generator_UserDSName="DS_Plan">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="planStatsGlobal" msprop:Generator_TableClassName="planStatsGlobalDataTable" msprop:Generator_TableVarName="tableplanStatsGlobal" msprop:Generator_TablePropName="planStatsGlobal" msprop:Generator_RowDeletingName="planStatsGlobalRowDeleting" msprop:Generator_RowChangingName="planStatsGlobalRowChanging" msprop:Generator_RowEvHandlerName="planStatsGlobalRowChangeEventHandler" msprop:Generator_RowDeletedName="planStatsGlobalRowDeleted" msprop:Generator_UserTableName="planStatsGlobal" msprop:Generator_RowChangedName="planStatsGlobalRowChanged" msprop:Generator_RowEvArgName="planStatsGlobalRowChangeEvent" msprop:Generator_RowClassName="planStatsGlobalRow">
<xs:complexType>
<xs:sequence>
<xs:element name="NumRows" msprop:Generator_ColumnVarNameInTable="columnNumRows" msprop:Generator_ColumnPropNameInRow="NumRows" msprop:Generator_ColumnPropNameInTable="NumRowsColumn" msprop:Generator_UserColumnName="NumRows" type="xs:int" minOccurs="0" />
<xs:element name="NumGrp" msprop:Generator_ColumnVarNameInTable="columnNumGrp" msprop:Generator_ColumnPropNameInRow="NumGrp" msprop:Generator_ColumnPropNameInTable="NumGrpColumn" msprop:Generator_UserColumnName="NumGrp" type="xs:int" minOccurs="0" />
<xs:element name="NumMacc" msprop:Generator_ColumnVarNameInTable="columnNumMacc" msprop:Generator_ColumnPropNameInRow="NumMacc" msprop:Generator_ColumnPropNameInTable="NumMaccColumn" msprop:Generator_UserColumnName="NumMacc" type="xs:int" minOccurs="0" />
<xs:element name="TotOreRich" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnTotOreRich" msprop:Generator_ColumnPropNameInRow="TotOreRich" msprop:Generator_ColumnPropNameInTable="TotOreRichColumn" msprop:Generator_UserColumnName="TotOreRich" type="xs:decimal" minOccurs="0" />
<xs:element name="TotOrePlan" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnTotOrePlan" msprop:Generator_ColumnPropNameInRow="TotOrePlan" msprop:Generator_ColumnPropNameInTable="TotOrePlanColumn" msprop:Generator_UserColumnName="TotOrePlan" type="xs:decimal" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="planStatsArt" msprop:Generator_TableClassName="planStatsArtDataTable" msprop:Generator_TableVarName="tableplanStatsArt" msprop:Generator_TablePropName="planStatsArt" msprop:Generator_RowDeletingName="planStatsArtRowDeleting" msprop:Generator_RowChangingName="planStatsArtRowChanging" msprop:Generator_RowEvHandlerName="planStatsArtRowChangeEventHandler" msprop:Generator_RowDeletedName="planStatsArtRowDeleted" msprop:Generator_UserTableName="planStatsArt" msprop:Generator_RowChangedName="planStatsArtRowChanged" msprop:Generator_RowEvArgName="planStatsArtRowChangeEvent" msprop:Generator_RowClassName="planStatsArtRow">
<xs:complexType>
<xs:sequence>
<xs:element name="CodArticolo" msprop:Generator_ColumnVarNameInTable="columnCodArticolo" msprop:Generator_ColumnPropNameInRow="CodArticolo" msprop:Generator_ColumnPropNameInTable="CodArticoloColumn" msprop:Generator_UserColumnName="CodArticolo">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="TotOreRich" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnTotOreRich" msprop:Generator_ColumnPropNameInRow="TotOreRich" msprop:Generator_ColumnPropNameInTable="TotOreRichColumn" msprop:Generator_UserColumnName="TotOreRich" type="xs:decimal" minOccurs="0" />
<xs:element name="TotOrePlan" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnTotOrePlan" msprop:Generator_ColumnPropNameInRow="TotOrePlan" msprop:Generator_ColumnPropNameInTable="TotOrePlanColumn" msprop:Generator_UserColumnName="TotOrePlan" type="xs:decimal" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="planStatsGroup" msprop:Generator_TableClassName="planStatsGroupDataTable" msprop:Generator_TableVarName="tableplanStatsGroup" msprop:Generator_TablePropName="planStatsGroup" msprop:Generator_RowDeletingName="planStatsGroupRowDeleting" msprop:Generator_RowChangingName="planStatsGroupRowChanging" msprop:Generator_RowEvHandlerName="planStatsGroupRowChangeEventHandler" msprop:Generator_RowDeletedName="planStatsGroupRowDeleted" msprop:Generator_UserTableName="planStatsGroup" msprop:Generator_RowChangedName="planStatsGroupRowChanged" msprop:Generator_RowEvArgName="planStatsGroupRowChangeEvent" msprop:Generator_RowClassName="planStatsGroupRow">
<xs:complexType>
<xs:sequence>
<xs:element name="CodGruppo" msprop:Generator_ColumnVarNameInTable="columnCodGruppo" msprop:Generator_ColumnPropNameInRow="CodGruppo" msprop:Generator_ColumnPropNameInTable="CodGruppoColumn" msprop:Generator_UserColumnName="CodGruppo">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="TotOreRich" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnTotOreRich" msprop:Generator_ColumnPropNameInRow="TotOreRich" msprop:Generator_ColumnPropNameInTable="TotOreRichColumn" msprop:Generator_UserColumnName="TotOreRich" type="xs:decimal" minOccurs="0" />
<xs:element name="TotOrePlan" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnTotOrePlan" msprop:Generator_ColumnPropNameInRow="TotOrePlan" msprop:Generator_ColumnPropNameInTable="TotOrePlanColumn" msprop:Generator_UserColumnName="TotOrePlan" type="xs:decimal" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="planStatsMacc" msprop:Generator_TableClassName="planStatsMaccDataTable" msprop:Generator_TableVarName="tableplanStatsMacc" msprop:Generator_TablePropName="planStatsMacc" msprop:Generator_RowDeletingName="planStatsMaccRowDeleting" msprop:Generator_RowChangingName="planStatsMaccRowChanging" msprop:Generator_RowEvHandlerName="planStatsMaccRowChangeEventHandler" msprop:Generator_RowDeletedName="planStatsMaccRowDeleted" msprop:Generator_UserTableName="planStatsMacc" msprop:Generator_RowChangedName="planStatsMaccRowChanged" msprop:Generator_RowEvArgName="planStatsMaccRowChangeEvent" msprop:Generator_RowClassName="planStatsMaccRow">
<xs:complexType>
<xs:sequence>
<xs:element name="IdxMacchina" msprop:Generator_ColumnVarNameInTable="columnIdxMacchina" msprop:Generator_ColumnPropNameInRow="IdxMacchina" msprop:Generator_ColumnPropNameInTable="IdxMacchinaColumn" msprop:Generator_UserColumnName="IdxMacchina">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="TotOreRich" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnTotOreRich" msprop:Generator_ColumnPropNameInRow="TotOreRich" msprop:Generator_ColumnPropNameInTable="TotOreRichColumn" msprop:Generator_UserColumnName="TotOreRich" type="xs:decimal" minOccurs="0" />
<xs:element name="TotOrePlan" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnTotOrePlan" msprop:Generator_ColumnPropNameInRow="TotOrePlan" msprop:Generator_ColumnPropNameInTable="TotOrePlanColumn" msprop:Generator_UserColumnName="TotOrePlan" type="xs:decimal" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
+15
View File
@@ -0,0 +1,15 @@
<?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:planStatsGlobal" ZOrder="4" X="108" Y="55" Height="204" Width="294" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="145" />
<Shape ID="DesignTable:planStatsArt" ZOrder="3" X="448" Y="61" Height="158" Width="270" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="99" />
<Shape ID="DesignTable:planStatsGroup" ZOrder="2" X="113" Y="292" Height="158" Width="293" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="99" />
<Shape ID="DesignTable:planStatsMacc" ZOrder="1" X="448" Y="292" Height="158" Width="285" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="99" />
</Shapes>
<Connectors />
</DiagramLayout>
+16
View File
@@ -99,6 +99,11 @@
<DesignTime>True</DesignTime>
<DependentUpon>DS_IntServ.xsd</DependentUpon>
</Compile>
<Compile Include="DS_Plan.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>DS_Plan.xsd</DependentUpon>
</Compile>
<Compile Include="DS_ProdTempi.cs">
<DependentUpon>DS_ProdTempi.xsd</DependentUpon>
</Compile>
@@ -153,6 +158,17 @@
<None Include="DS_IntServ.xss">
<DependentUpon>DS_IntServ.xsd</DependentUpon>
</None>
<None Include="DS_Plan.xsc">
<DependentUpon>DS_Plan.xsd</DependentUpon>
</None>
<None Include="DS_Plan.xsd">
<SubType>Designer</SubType>
<Generator>MSDataSetGenerator</Generator>
<LastGenOutput>DS_Plan.Designer.cs</LastGenOutput>
</None>
<None Include="DS_Plan.xss">
<DependentUpon>DS_Plan.xsd</DependentUpon>
</None>
<None Include="DS_ProdTempi.xsc">
<DependentUpon>DS_ProdTempi.xsd</DependentUpon>
</None>
+16 -5
View File
@@ -37,7 +37,18 @@ namespace MapoDb.Properties {
[global::System.Configuration.ApplicationScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)]
[global::System.Configuration.DefaultSettingValueAttribute("Data Source=SQL2016DEV;Initial Catalog=MoonPro_IS_ColCom;Persist Security Info=Tr" +
[global::System.Configuration.DefaultSettingValueAttribute("Data Source=SQL2016DEV;Initial Catalog=C_TRACK;Persist Security Info=True;User ID" +
"=sa;Password=keyhammer16")]
public string C_TRACKConnectionString {
get {
return ((string)(this["C_TRACKConnectionString"]));
}
}
[global::System.Configuration.ApplicationScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)]
[global::System.Configuration.DefaultSettingValueAttribute("Data Source=SQL2016DEV;Initial Catalog=MoonPro_IS_Donati;Persist Security Info=Tr" +
"ue;User ID=sa;Password=keyhammer16")]
public string MoonPro_IS_ConnectionString {
get {
@@ -48,11 +59,11 @@ namespace MapoDb.Properties {
[global::System.Configuration.ApplicationScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)]
[global::System.Configuration.DefaultSettingValueAttribute("Data Source=SQL2016DEV;Initial Catalog=C_TRACK;Persist Security Info=True;User ID" +
"=sa;Password=keyhammer16")]
public string C_TRACKConnectionString {
[global::System.Configuration.DefaultSettingValueAttribute("Data Source=sql2016dev;Initial Catalog=MoonPro_ES3;Persist Security Info=True;Use" +
"r ID=sa;Password=keyhammer16")]
public string MoonPro_ES3ConnectionString {
get {
return ((string)(this["C_TRACKConnectionString"]));
return ((string)(this["MoonPro_ES3ConnectionString"]));
}
}
}
+16 -8
View File
@@ -10,14 +10,6 @@
&lt;/SerializableConnectionString&gt;</DesignTimeValue>
<Value Profile="(Default)">Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16;</Value>
</Setting>
<Setting Name="MoonPro_IS_ConnectionString" Type="(Connection string)" Scope="Application">
<DesignTimeValue Profile="(Default)">&lt;?xml version="1.0" encoding="utf-16"?&gt;
&lt;SerializableConnectionString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
&lt;ConnectionString&gt;Data Source=SQL2016DEV;Initial Catalog=MoonPro_IS_ColCom;Persist Security Info=True;User ID=sa;Password=keyhammer16&lt;/ConnectionString&gt;
&lt;ProviderName&gt;System.Data.SqlClient&lt;/ProviderName&gt;
&lt;/SerializableConnectionString&gt;</DesignTimeValue>
<Value Profile="(Default)">Data Source=SQL2016DEV;Initial Catalog=MoonPro_IS_ColCom;Persist Security Info=True;User ID=sa;Password=keyhammer16</Value>
</Setting>
<Setting Name="C_TRACKConnectionString" Type="(Connection string)" Scope="Application">
<DesignTimeValue Profile="(Default)">&lt;?xml version="1.0" encoding="utf-16"?&gt;
&lt;SerializableConnectionString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
@@ -26,5 +18,21 @@
&lt;/SerializableConnectionString&gt;</DesignTimeValue>
<Value Profile="(Default)">Data Source=SQL2016DEV;Initial Catalog=C_TRACK;Persist Security Info=True;User ID=sa;Password=keyhammer16</Value>
</Setting>
<Setting Name="MoonPro_IS_ConnectionString" Type="(Connection string)" Scope="Application">
<DesignTimeValue Profile="(Default)">&lt;?xml version="1.0" encoding="utf-16"?&gt;
&lt;SerializableConnectionString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
&lt;ConnectionString&gt;Data Source=SQL2016DEV;Initial Catalog=MoonPro_IS_Donati;Persist Security Info=True;User ID=sa;Password=keyhammer16&lt;/ConnectionString&gt;
&lt;ProviderName&gt;System.Data.SqlClient&lt;/ProviderName&gt;
&lt;/SerializableConnectionString&gt;</DesignTimeValue>
<Value Profile="(Default)">Data Source=SQL2016DEV;Initial Catalog=MoonPro_IS_Donati;Persist Security Info=True;User ID=sa;Password=keyhammer16</Value>
</Setting>
<Setting Name="MoonPro_ES3ConnectionString" Type="(Connection string)" Scope="Application">
<DesignTimeValue Profile="(Default)">&lt;?xml version="1.0" encoding="utf-16"?&gt;
&lt;SerializableConnectionString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
&lt;ConnectionString&gt;Data Source=sql2016dev;Initial Catalog=MoonPro_ES3;Persist Security Info=True;User ID=sa;Password=keyhammer16&lt;/ConnectionString&gt;
&lt;ProviderName&gt;System.Data.SqlClient&lt;/ProviderName&gt;
&lt;/SerializableConnectionString&gt;</DesignTimeValue>
<Value Profile="(Default)">Data Source=sql2016dev;Initial Catalog=MoonPro_ES3;Persist Security Info=True;User ID=sa;Password=keyhammer16</Value>
</Setting>
</Settings>
</SettingsFile>
+12 -3
View File
@@ -3,9 +3,18 @@
<configSections>
</configSections>
<connectionStrings>
<add name="MapoDb.Properties.Settings.MoonProConnectionString" connectionString="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16;" providerName="System.Data.SqlClient" />
<add name="MapoDb.Properties.Settings.MoonPro_IS_ConnectionString" connectionString="Data Source=SQL2016DEV;Initial Catalog=MoonPro_IS_Donati;Persist Security Info=True;User ID=sa;Password=keyhammer16" providerName="System.Data.SqlClient" />
<add name="MapoDb.Properties.Settings.C_TRACKConnectionString" connectionString="Data Source=SQL2016DEV;Initial Catalog=C_TRACK;Persist Security Info=True;User ID=sa;Password=keyhammer16" providerName="System.Data.SqlClient" />
<add name="MapoDb.Properties.Settings.MoonProConnectionString"
connectionString="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16;"
providerName="System.Data.SqlClient" />
<add name="MapoDb.Properties.Settings.MoonPro_IS_ConnectionString"
connectionString="Data Source=SQL2016DEV;Initial Catalog=MoonPro_IS_Donati;Persist Security Info=True;User ID=sa;Password=keyhammer16"
providerName="System.Data.SqlClient" />
<add name="MapoDb.Properties.Settings.C_TRACKConnectionString"
connectionString="Data Source=SQL2016DEV;Initial Catalog=C_TRACK;Persist Security Info=True;User ID=sa;Password=keyhammer16"
providerName="System.Data.SqlClient" />
<add name="MapoDb.Properties.Settings.MoonPro_ES3ConnectionString"
connectionString="Data Source=sql2016dev;Initial Catalog=MoonPro_ES3;Persist Security Info=True;User ID=sa;Password=keyhammer16"
providerName="System.Data.SqlClient" />
</connectionStrings>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2" />