diff --git a/.vs/config/applicationhost.config b/.vs/config/applicationhost.config new file mode 100644 index 0000000..3d534ad --- /dev/null +++ b/.vs/config/applicationhost.config @@ -0,0 +1,1045 @@ + + + + + + + + +
+
+
+
+
+
+
+
+ + + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ +
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+ +
+
+
+ +
+
+ +
+
+ +
+
+
+ + +
+
+
+
+
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/C2P/C2P.csproj b/C2P/C2P.csproj index 6864385..1f1a1e0 100644 --- a/C2P/C2P.csproj +++ b/C2P/C2P.csproj @@ -19,6 +19,7 @@ disabled enabled + true @@ -72,7 +73,7 @@ ..\packages\Microsoft.AspNet.Web.Optimization.WebForms.1.1.3\lib\net45\Microsoft.AspNet.Web.Optimization.WebForms.dll - + False ..\packages\Microsoft.AspNet.ScriptManager.MSAjax.5.0.0\lib\net45\Microsoft.ScriptManager.MSAjax.dll diff --git a/C2P/C2P.csproj.user b/C2P/C2P.csproj.user index cd5a0b1..516e0e1 100644 --- a/C2P/C2P.csproj.user +++ b/C2P/C2P.csproj.user @@ -2,7 +2,7 @@ ShowAllFiles - costimateZip + WinLab diff --git a/C2P/CsvExcelExporter.aspx.cs b/C2P/CsvExcelExporter.aspx.cs index d8fa791..eba25e7 100644 --- a/C2P/CsvExcelExporter.aspx.cs +++ b/C2P/CsvExcelExporter.aspx.cs @@ -78,12 +78,15 @@ namespace C2P List columnNames = new List(); List rows = new List(); + string FIELDTERMINATOR = memLayer.ML.confReadString("FIELDTERMINATOR"); + //string ROWTERMINATOR = "\r\n"; + string ROWTERMINATOR = Environment.NewLine; foreach (DataColumn column in dataTable.Columns) { columnNames.Add(column.ColumnName); } - builder.Append(string.Join(memLayer.ML.confReadString("FIELDTERMINATOR"), columnNames.ToArray())).Append("\n"); + builder.Append(string.Join(FIELDTERMINATOR, columnNames.ToArray())).Append(ROWTERMINATOR); foreach (DataRow row in dataTable.Rows) { @@ -96,10 +99,10 @@ namespace C2P currentRow.Add(item.ToString().Replace("\n", " ").Replace("\r", "")); } - rows.Add(string.Join(memLayer.ML.confReadString("FIELDTERMINATOR"), currentRow.ToArray())); + rows.Add(string.Join(FIELDTERMINATOR, currentRow.ToArray())); } - builder.Append(string.Join("\n", rows.ToArray())); + builder.Append(string.Join(ROWTERMINATOR, rows.ToArray())); Response.Clear(); Response.AddHeader("content-disposition", string.Format("attachment; filename={0}.csv", tableReq)); diff --git a/C2P/Home.aspx b/C2P/Home.aspx index 2669a8d..d169581 100644 --- a/C2P/Home.aspx +++ b/C2P/Home.aspx @@ -6,7 +6,7 @@
Costimate
-

Cost to Price for Extrusion

+

<%: traduci("C2P_motto") %>

@@ -18,7 +18,7 @@
-

Quick Shortcut

+

<%: traduci("QuickShortcut") %>

diff --git a/C2P/Import.aspx.cs b/C2P/Import.aspx.cs index 61d3e36..38dd954 100644 --- a/C2P/Import.aspx.cs +++ b/C2P/Import.aspx.cs @@ -26,7 +26,11 @@ namespace C2P { grViewLog.Visible = true; } - + public void doUpdate() + { + grViewTicket.DataBind(); + grViewLog.DataBind(); + } /// /// verifica se utente sia SuperAdmin /// @@ -121,6 +125,7 @@ namespace C2P { DateTime adesso = DateTime.Now; addStep01(adesso); + doUpdate(); } /// /// aggiungo step 01... @@ -178,6 +183,7 @@ namespace C2P { int NumTicket = 0; insertStepTicket("step02", NumTicket, DateTime.Now, ""); + doUpdate(); } /// /// chiamata procedura di merge dati @@ -188,6 +194,7 @@ namespace C2P { int NumTicket = 0; insertStepTicket("step03", NumTicket, DateTime.Now, ""); + doUpdate(); } /// /// chiamata a TUTTE LE procedure x import dati @@ -201,6 +208,7 @@ namespace C2P NumTicket = addStep01(adesso); NumTicket = insertStepTicket("step02", NumTicket, adesso.AddMinutes(1),""); NumTicket = insertStepTicket("step03", NumTicket, adesso.AddMinutes(2),""); + doUpdate(); } diff --git a/C2P/Properties/PublishProfiles/costimateZip.pubxml b/C2P/Properties/PublishProfiles/costimateZip.pubxml index c3eacb5..daad92a 100644 --- a/C2P/Properties/PublishProfiles/costimateZip.pubxml +++ b/C2P/Properties/PublishProfiles/costimateZip.pubxml @@ -13,7 +13,7 @@ by editing this MSBuild file. In order to learn more about this please visit htt True C:\Users\samuele\Documents\Visual Studio 2012\Projects\C2P\ReleaseClienti\C2P.zip true - Default Web Site + Default Web Site/C2P diff --git a/C2P/Reports/OfferReport.xlsx b/C2P/Reports/OfferReport.xlsx index 0cd6e29..acff897 100644 Binary files a/C2P/Reports/OfferReport.xlsx and b/C2P/Reports/OfferReport.xlsx differ diff --git a/C2P/RevisionHistory.aspx b/C2P/RevisionHistory.aspx index f36801b..60d0574 100644 --- a/C2P/RevisionHistory.aspx +++ b/C2P/RevisionHistory.aspx @@ -28,10 +28,11 @@
- + - + +
diff --git a/C2P/Web.config b/C2P/Web.config index cc58cbb..095b8bd 100644 --- a/C2P/Web.config +++ b/C2P/Web.config @@ -42,7 +42,7 @@ - + @@ -105,17 +105,17 @@ - - - + - - + @@ -175,7 +175,7 @@ - + diff --git a/C2P/Web.deploy.config b/C2P/Web.deploy.config index d015ea9..7f28249 100644 --- a/C2P/Web.deploy.config +++ b/C2P/Web.deploy.config @@ -17,7 +17,10 @@ - + + + + @@ -26,7 +29,7 @@ - + diff --git a/C2P/WebUserControls/mod_OffersArchive.ascx b/C2P/WebUserControls/mod_OffersArchive.ascx index 04d1c74..7833450 100644 --- a/C2P/WebUserControls/mod_OffersArchive.ascx +++ b/C2P/WebUserControls/mod_OffersArchive.ascx @@ -7,7 +7,7 @@ <%if (false) - { %> + { %> <%} %> -
+
- - Select + + <%-- Select Today Yesterday This week Last 7 days This month Last 30 days - 1 year + 1 year--%> + + + + + + +
@@ -53,7 +60,7 @@
- <%: traduci("ToDate") %> + <%: traduci("ToDate") %>
diff --git a/C2P/WebUserControls/mod_selPeriodo.ascx.cs b/C2P/WebUserControls/mod_selPeriodo.ascx.cs index af1493c..3eae30d 100644 --- a/C2P/WebUserControls/mod_selPeriodo.ascx.cs +++ b/C2P/WebUserControls/mod_selPeriodo.ascx.cs @@ -314,7 +314,6 @@ namespace C2P.WebUserControls public event EventHandler eh_doUpdate; #endregion - - + } } \ No newline at end of file diff --git a/C2P/WebUserControls/mod_selPeriodo.ascx.designer.cs b/C2P/WebUserControls/mod_selPeriodo.ascx.designer.cs index 72bec41..484f8e8 100644 --- a/C2P/WebUserControls/mod_selPeriodo.ascx.designer.cs +++ b/C2P/WebUserControls/mod_selPeriodo.ascx.designer.cs @@ -30,6 +30,15 @@ namespace C2P.WebUserControls { /// protected global::System.Web.UI.WebControls.DropDownList ddlSelPeriodo; + /// + /// ods_ddlSelPeriodo control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource ods_ddlSelPeriodo; + /// /// txtInizio control. /// diff --git a/C2P/WebUserControls/mod_testata.ascx b/C2P/WebUserControls/mod_testata.ascx index 0f3ab8c..04ad697 100644 --- a/C2P/WebUserControls/mod_testata.ascx +++ b/C2P/WebUserControls/mod_testata.ascx @@ -35,7 +35,7 @@
  • - Offers + <%: traduci("Offers") %> @@ -49,7 +49,7 @@
  • - Reports + <%: traduci("Reports") %> @@ -63,7 +63,7 @@
  • - Settings + <%: traduci("Settings") %> diff --git a/C2P/bin/C2P.dll b/C2P/bin/C2P.dll index 17b7dfa..ec18863 100644 Binary files a/C2P/bin/C2P.dll and b/C2P/bin/C2P.dll differ diff --git a/C2P/bin/C2P.dll.config b/C2P/bin/C2P.dll.config new file mode 100644 index 0000000..095b8bd --- /dev/null +++ b/C2P/bin/C2P.dll.config @@ -0,0 +1,230 @@ + + + + + +
    +
    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/C2P/bin/C2P_Data.dll b/C2P/bin/C2P_Data.dll index 68d0bdd..c9cb4e2 100644 Binary files a/C2P/bin/C2P_Data.dll and b/C2P/bin/C2P_Data.dll differ diff --git a/C2P/bin/Microsoft.ReportViewer.WebForms.xml b/C2P/bin/Microsoft.ReportViewer.WebForms.xml new file mode 100644 index 0000000..adafec7 --- /dev/null +++ b/C2P/bin/Microsoft.ReportViewer.WebForms.xml @@ -0,0 +1,1682 @@ + + + + Microsoft.ReportViewer.WebForms + + + + The namespace contains methods and properties for the ReportViewer Web server control. + + + Occurs when the ASP.NET session has expired. + + + Provides data for the event. + + + Initializes a new instance of the class. + The parent report of the drillthrough report. + + + Gets the parent report of the drillthrough report. + A (if the ReportViewer control is in local processing mode) or object (if the ReportViewer control is in remote processing mode) containing the parent report of the drillthrough report. + + + Represents the method that will handle the event of a . + The object that raised the event. + A object that contains the event arguments. + + + Provides data for the event. + + + Constructs a BookmarkNavigationEventArgs object. + The bookmark identification string. + + + Gets the bookmark identification string. + A read-only string object. + + + Represents the method that will handle the event of a . + The object that raised the event. + A object that contains the event arguments. + + + Represents errors that occur when the control is rendering a processed report from report page layout (RPL) format into HTML format. + + + Indicates how the report content should be presented. + + + Indicates that content is always presented as an attachment regardless of format. + + + Indicates that content is presented inline regardless of format. + + + Indicates that HTML-formatted content is presented inline; all other content is presented as an attachment. + + + Provides a stream to the ReportViewer control for rendering. + A Stream object to which the ReportViewer control can write data. + The name of the stream. + The file name extension to use if a file stream is being created. + An Encoding enumerator value specifying the character encoding of the stream. This may be null if the stream does not contain characters. + A string containing the MIME type of the stream. + A Boolean value indicated whether the stream needs to support seeking. If the value is false, the stream will be forward-only and will be sent to the client in chunks as it is created. If the value is true, the stream may be written in any order. + + + Represents data source credentials. + + + Constructs a DataSourceCredentials object. + + + Gets or sets the user name to be used by the data source for connecting to a report server. + A string value. + + + Gets or sets the password to be used by the data source for connecting to the report server. + A string containing the password. + + + Gets or sets the user identification to be used by the data source for connecting to the report server. + A string containing the user ID. + + + Represents a collection of objects. + + + Initializes a new instance of the class. + + + Gets the object of the specified name from the collection. + A object. + Name of the object. This parameter is not case sensitive. + + + Contains a name-value pair that represents a case insensitive device information setting. + + + Initializes a new instance of the class. + The name of the device information. + The value of the device information. + + + Gets the name of the device information. + A string value. + + + Gets the value of the device information. + A string value. + + + Represents a collection of device information settings. + + + Adds a object to the collection using the specified name and value. + The name of the device information setting. + The value of the device information setting. + + + Provides data for the event. + + + Constructs a DocumentMapNavigationEventArgs object. + A string value containing the document map node ID. + + + Gets the unique identifier of the document map node selected. + A read-only string value containing the document map node ID. + + + Represents the method that will handle the event of a . + The object raising the event. + A object containing the event arguments. + + + Represents a single node in the document map. + + + Gets a collection of child document map nodes. + A read-only array of objects. + + + Gets the unique identifier of the document map node. + A read-only string value. + + + Gets the label associated with the document map node. + A read-only string value. + + + Provides data for the event. + + + Constructs a DrillthroughEventArgs object. + The path of the drillthrough report. + The target report of the drillthrough action. + + + Gets the target report of the drillthrough action. + A read-only or object. + + + Gets the path of the drillthrough report. + A read-only String value. + + + Represents the method that will handle the event of a . + The object that raised the event. + A object that contains the event data. + + + Specifies the postback modes of the control when the user interacts with the report viewer and the currently displayed report. + + + Always perform asynchronous postbacks. + + + Always perform synchronous postbacks. + + + Perform synchronous postbacks on drillthrough actions, and asynchronous postbacks on other actions. In this mode, both clicking a drillthrough report and clicking the Back to Parent button will cause synchronous postbacks. For more information on drillthrough reports, see Adding Drillthrough Reports in SQL Server Books Online. + + + Occurs when an object supplied through an entry in the Web.config file is missing or invalid. + + + Occurs when a temporary stream does not support seeking, reading, or writing. + + + Provides report server connection information when the ReportViewer Web forms control is used with no session state. + + + Returns the URL of the report server. + A Uri object containing the URL of the report server. + + + Gets the number of milliseconds to wait for server communications. + An integer value containing the number of milliseconds to wait for server communications. + + + Provides report server connection information when the ReportViewer Web forms control is used with no session state. + + + Gets a collection of custom cookies to send to the report server. + A collection of objects that contain the custom cookies. + + + Gets a collection of custom headers to send to the report server. + A collection of string objects that contain the custom header values. + + + Allows applications to provide credentials for connecting to a Reporting Services report server. + + + Provides information that will be used to connect to the report server that is configured for forms authentication. + true if forms authentication should be used; otherwise, false. + [out] A report server authentication cookie. + [out] The name of the user. + [out] The password of the user. + [out] The authority to use when authenticating the user, such as a Microsoft Windows domain. + + + Gets or sets the of the user to impersonate when the control connects to a report server. + A object that represents the user to impersonate. + + + Gets or sets the network credentials that are used for authentication with the report server. + An implementation of that contains the credential information for connecting to a report server. + + + Allows applications to provide customized user interface messages. + + + Provides the ToolTip text for the Back button. + A string value. + + + Provides the text for the Change Credentials button. + A string value. + + + Provides the ToolTip text for the Change Credentials button. + A string value. + + + Provides the ToolTip text for the Current Page text box. + A string value. + + + Provides the title text for the Document Map panel. + A string value. + + + Provides the ToolTip text for the Document Map button. + A string value. + + + Provides the text for the Export button. + A string value. + + + Provides the ToolTip text for the Export button. + A string value. + + + Provides the ToolTip text for the Export Formats drop-down list box. + A string value. + + + Provides the text for a false value. + A string value. + + + Provides the text for a Find button. + A string value. + + + Provides the ToolTip text for the Find button. + A string value. + + + Provides the text for the Find Next button. + A string value. + + + Provides the ToolTip text for the Find Next button. + A string value. + + + Provides the ToolTip text for the First Page button. + A string value. + + + Provides the text for the invalid page number message. + A string value. + + + Provides the ToolTip text for the Last Page button. + A string value. + + + Provides the ToolTip text for the Next Page button. + A string value. + + + Provides the text for the no more matches message. + A string value. + + + Provides the text for the Null check box. + A string value. + + + Provides the text for a null value. + A string value. + + + Provides the text for the pagination message. + A string value. + + + Provides the ToolTip text for the Parameter Area button. + A string value. + + + Provides the text for the password prompt. + A string value. + + + Provides the ToolTip text for the Previous Page button. + A string value. + + + Provides the text for the Print button. + A string value. + + + Provides the text for the progress message that is displayed when a report is processing. + A string value. + + + Provides the ToolTip text for the Refresh button. + A string value. + + + Provides the ToolTip text for the Search text box. + A string value. + + + Provides the text for the Select All item in a multivalue drop-down list box. + A string value. + + + Provides the text for the Select a value prompt. + A string value. + + + Provides the text for the select format prompt. + A string value. + + + Provides the text for the 'text not found' message. + A string value. + + + Provides the text for the 'Today is…' message in the calendar control. + A string value. + + + Provides the text for a true value. + A string value. + + + Provides the text for the user name prompt. + A string value. + + + Provides the text for the View Report button. + A string value. + + + Provides the ToolTip for the Zoom control. + A string value. + + + Provides the text for the Zoom To Page Width option. + A string value. + + + Provides text for the Zoom To Whole Page item. + A string value. + + + Defines methods and properties for implementing customized user interface messages. + + + Returns the error text to display when the user name has not been supplied for the data source credentials. + Returns a String that contains the error text to display when the user name has not been supplied for the data source credentials. + The prompt value that identifies which data source is missing a value. + + + Returns a localized name for the current export format. + Returns a String that contains the localized name for the current export format. + The name of the current export format (for example, EXCEL, PDF). + + + Returns the error text to display when a selection has not been made for a multivalue report parameter. + Returns a String that contains the error text to display when a selection has not been made for a multivalue report parameter. + The prompt value that identifies which report parameter has not been specified. + + + Returns the error text to display when the value for a report parameter has not been specified. + Returns a String that contains the error text to display when a report parameter has not been specified. + The prompt value that identifies which report parameter has not been specified. + + + Gets the text to display when scripting is disabled on the client browser. + A String that contains the text to display when scripting is disabled on the client browser. + + + Gets the text to display if an error occurs when the client loads the print control. + A text String that contains the text to display if an error occurs when the client loads the print control. + + + Gets the ToolTip text to display when a pointer pauses over the down arrow of a multivalue parameter drop-down list. + A text String that contains the ToolTip text to display when a pointer pauses over the down arrow of a multivalue parameter drop-down list. + + + Allows applications to provide customized user interface messages. + + + Returns the string in the default toolbar that represents the total number of pages in the current report and the page count mode that is used. + A localized string that represents the total number of pages and the page count mode. + The number of pages in the current report. + Indicates whether the pageCount parameter represents an estimate or the actual number of pages. + + + Gets the text displayed in the date and time picker when the control waits for the Web server to generate a calendar for a given month. + A string value that represents the text displayed when the control waits for the Web server to generate a calendar for a given month. + + + Gets the text of the Cancel link in the wait control. + A string value that represents the Cancel link text. + + + Provides custom storage for temporary data. + + + Provides a stream for storing temporary data. + A Stream object to be used for storing temporary data. + + + Represents errors that occur while viewing a locally processed report. + + + Represents a report that is processed and rendered locally without connecting to a report server. + + + Initializes a new instance of the class. + + + Occurs when a subreport is processed. + + + Adds the supplied assembly to the list of assemblies that run in full trust mode in the sandboxed application domain. + The name of the assembly to be added. + + + Adds the supplied assembly to the list of assemblies that are trusted to execute in the current . + The name of the assembly to be added. + + + Releases all resources that are used by the object. + + + Causes processing extensions and expressions in the report to be executed in the current . + An object containing security information about the report. + + + Causes processing extensions and expressions to be run with limited permissions in an application domain. + + + Returns the names of all datasets used within the local report. + An array of String objects containing the list of dataset names. + + + Gets the default page settings specified in the local report. + A object containing the default page settings for the local report. + + + Returns report parameter properties for the report. + A object containing an array of objects. + + + Returns the total number of soft pages in the report and a enumeration value that indicates the current page count mode. + An integer value containing the total number of soft pages in the report. For more information on soft pages, see Understanding Rendering Behaviors. + [out] A enumeration value that indicates the page count mode used to calculate the total number of soft pages. + + + Returns all available rendering extensions for the local report. + An array of objects. + + + Loads a report definition from the local file system using a . + A class that contains the report definition for the local report. + + + Loads a subreport definition using a . + The path and filename of the subreport definition. + A class that contains the report definition for the subreport. + + + Loads a subreport definition using a . + The path and filename of the subreport definition. + A object that will contain the report definition language (RDL) for the subreport. + + + Causes the local report to be rendered with new data. + + + Causes the object to release its reference to the sandboxed application domain immediately. + + + Processes the report and renders it in the specified format using a stream provided by a callback function. + The format in which to render the report. This argument maps to a rendering extension. Supported formats include Excel, PDF, Word, and Image. To access the list of available rendering extensions, use the method. + An XML string that contains the device-specific content that is required by the rendering extension specified in the format parameter. For more information about device information settings for specific output formats, see Device Information Settings in SQL Server Books Online. + A delegate function that will be used to provide a object for rendering. + [out] An array of objects that describes any warnings that occurred during report processing and rendering. + + + Processes the report with a specified page count mode and renders it in the specified format using a stream provided by a callback function. + The format in which to render the report. This parameter maps to a rendering extension. Supported formats include Excel, PDF, Word, and Image. To access the list of available rendering extensions, use the method. + An XML string that contains the device-specific content that is required by the rendering extension specified in the format parameter. For more information about device information settings for specific output formats, see Device Information Settings in SQL Server Books Online. + A enumeration value that specifies the page count mode. This parameter has no effect on hard page renderers. For more information on soft and hard page renderers, see Understanding Rendering Behaviors + A delegate function that will be used to provide a object for rendering. + [out] An array of objects that describes any warnings that occurred during report processing and rendering. + + + Processes the report with a specified page count mode and renders it in the specified format. + A array of the report in the specified format. + The format in which to render the report. This argument maps to a rendering extension. Supported formats include Excel, PDF, Word, and Image. To access the list of available rendering extensions, use the method. + An XML string that contains the device-specific content that is required by the rendering extension specified in the format parameter. For more information about device information settings for specific output formats, see Device Information Settings in SQL Server Books Online. + A enumeration value that specifies the page count mode. + [out] The MIME type of the rendered report. + [out] The encoding used when rendering the contents of the report. + [out] The file name extension used for the output file. + [out] The stream identifiers. You can use them to render external resources (images, for example) that are associated with the report. + [out] An array of objects that describes any warnings that occurred during report processing and rendering. + + + Sets the base permissions for the sandboxed application domain with the supplied permission set. + The to set. The default base permission is Execution. + + + Sets report parameter properties for the local report. + An of objects that contains a list of the report parameter properties. + + + Gets a collection of data sources used by the report. + A read-only object. + + + Indicates whether the report can be rendered if it has external images. + A Boolean value. A value of true indicates that the local report can be rendered if it has external images. The default value is false. + + + Indicates whether the report can be rendered if it contains hyperlink actions. + A Boolean value. A value of true indicates that the report can be rendered if it contains hyperlink actions. The default value is false. + + + Returns the parameters passed from a parent report to this report, if it is a drillthrough report. + An of objects, representing the parameters passed from the parent reports to the drillthrough report, or an empty collection if this report is not a drillthrough report. + + + Gets or sets the name of the report embedded resource. + A String containing the name of the embedded resource. + + + Gets or sets the local file system path of the local report. + A String value. + + + Gets or sets a Boolean value that indicates whether detailed messages should be displayed when an error occurs in a subreport. + true if detailed messages should be displayed; otherwise, false. The default is true. + + + Represents an exception that occurs when credentials have not been supplied for a data source used by a report. + + + Represents the error that occurs when a data source expected by the report has not been supplied. + + + Represents the error that occurs when the SOAP endpoint used by the ReportViewer control could not be accessed. + + + Represents the exception that occurs when a parameter expected by the report has not been supplied. + + + Occurs when session state is not enabled, and an object implementing interface is not supplied through the Web.config file. + + + Represents the exception that occurs when no report source has been specified. + + + Represents values that control whether to calculate the actual page count or use an estimate. + + + Calculate the actual page count for the report. + + + Provide an estimate of the page count for the report instead of calculating the actual page count. + + + Provides data for a event. + + + Constructs a new PageNavigationEventArgs object. + An integer value containing the new page number. + + + Gets the number of the page resulting from the event. + An integer value containing the new page number. + + + Represents the method that will handle the event of a . + The object that raised the event. + A object that contains the arguments for this event. + + + Specifies the data type of a parameter. + + + A Boolean data type that represents a true or false condition. + + + A DateTime data type that represents the date and time. + + + A Float data type that represents a floating point decimal value. + + + An Integer data type. + + + A String data type that represents an array of characters. + + + Specifies the state of a parameter. + + + The parameter values are unavailable. This state indicates that no valid query-based values were returned as a result of the query. + + + The parameter has outstanding dependencies. This generally occurs when the valid values or the default value of a parameter is query-based and dependencies exist that have not been submitted to the method. + + + A valid value for the parameter exists. + + + A valid value for the parameter does not exist. + + + Used to specify the processing mode of the ReportViewer control. + + + Specifies that the report will be processed and rendered using the reporting engine provided by the ReportViewer control. + + + Specifies remote processing mode against a Reporting Services report server. + + + Encapsulates a rendering extension that can be used with the ReportViewer's report. + + + Gets the localized display name of the rendering extension. + A read-only string value. + + + Gets the name of the rendering extension. + A read-only string value. + + + Indicates whether the rendering extension is visible in the user interface. + A Boolean value. + + + Contains methods and properties that can apply to both local and server reports. + + + Gets the default page settings specified in the report. + A object containing the default page settings for the local report. + + + Returns the representation of the document map for the local report. + A object containing the top-level node of the document map hierarchy for the report. + + + Returns report parameter properties for the report. + A collection of objects. + + + Returns the total number of soft pages in the report. + An integer value containing the total number of soft pages in the report. For more information on soft pages, see Understanding Rendering Behaviors. + + + Returns the total number of soft pages in the report and a value that indicates the current page count mode. + An integer value containing the total number of soft pages in the report. For more information on soft pages, see Understanding Rendering Behaviors. + [out] A enumeration value that indicates the page count mode that was used to calculate the total number of pages. + + + Returns all available rendering extensions for the report. + An array of objects. + + + Loads a report definition for processing using a . + A class that contains the report definition for the report. + + + Loads a report definition for processing using a . + A class that contains the report definition for the report. + + + Causes the report to be rendered with new data. + + + Processes the report and renders it in the specified format. + A byte array of the report in the specified format. + The format in which to render the report. This parameter maps to a rendering extension.In local processing mode, supported extensions are Excel, PDF, Word, and Image. In remote processing mode, supported extensions depend on the extensions supported by the report server.You can access the list of available rendering extensions using the ListRenderingExtensions method in or , depending on the processing mode (see ). + + + Processes the report and renders it in the specified format. + A byte array of the report in the specified format. + The format in which to render the report. This parameter maps to a rendering extension.In local processing mode, supported extensions are Excel, PDF, Word, and Image. In remote processing mode, supported extensions depend on the extensions supported by the report server.You can access the list of available rendering extensions using the ListRenderingExtensions method in or , depending on the processing mode (see ). + An XML string that contains the device-specific content that is required by the rendering extension specified in the format parameter. For more information about device information settings for specific output formats, see Device Information Settings in SQL Server Books Online. + + + Processes the report and renders it in the specified format. + A array of the report in the specified format. + The format in which to render the report. This argument maps to a rendering extension.In local processing mode, supported extensions are Excel, PDF, Word, and Image. In remote processing mode, supported extensions depend on the extensions supported by the report server.You can access the list of available rendering extensions using the ListRenderingExtensions method in or , depending on the processing mode (see ). + An XML string that contains the device-specific content that is required by the rendering extension specified in the format parameter. For more information about device information settings for specific output formats, see Device Information Settings in SQL Server Books Online. + [out] The MIME type of the rendered report. + [out] The encoding used when rendering the contents of the report. + [out] The file name extension used for the output file. + [out] The stream identifiers You can use them to render the external resources (images, for example) that are associated with the report. + [out] An array of objects that describes any warnings that occurred during report processing. + + + Processes the report with the specified value and renders it in the specified format. + A byte array of the report in the specified format. + The format in which to render the report. This parameter maps to a rendering extension.In local processing mode, supported extensions are Excel, PDF, Word, and Image. In remote processing mode, supported extensions depend on the extensions supported by the report server.You can access the list of available rendering extensions using the ListRenderingExtensions method in or , depending on the processing mode (see ). + An XML string that contains the device-specific content that is required by the rendering extension specified in the format parameter. For more information about device information settings for specific output formats, see Device Information Settings in SQL Server Books Online. + A enumeration value that specifies the page count mode. + [out] The MIME type of the rendered report. + [out] The encoding used when rendering the contents of the report. + [out] The file name extension used for the output file. + [out] The stream identifiers. You can use them to render the external resources (images, for example) that are associated with the report. + [out] An array of objects that describes any warnings that occurred during report processing. + + + Sets report parameter properties for the report. + An array of objects that contains a list of the report parameters properties. + + + Sets report parameter properties for the report. + A object. + + + Gets or sets the display name of the report. + A string containing the report's display name. + + + Indicates whether the report is a drillthrough report. + A Boolean value. A value of true indicates that this is a drillthrough report. + + + Gets a Boolean value that indicates whether a report definition and all parameters have been specified, and all data sources are ready for use. + true if a report definition and all required parameters have been specified, and all data sources are ready for use; otherwise, false. The default is false. + + + Specifies the type of content displayed in the report area. + + + The report area displays an error message. + + + The report area displays nothing. + + + The report area displays a report page. + + + The current content type displayed in the report area is unknown. For more information, see . + + + Provides data for the event. + + + Gets a collection of . + A collection of objects. + + + Represents the method that will handle a event. + The source of the event. + A that contains the event data. + + + Represents a data source for a report. + + + Constructs an empty data source. + + + Constructs a named data source. + The name of the data source. + + + Constructs a named data source with a in the property. + The name of the data source, as specified in the report definition for the current report. + A object that contains the data. + + + Constructs a named data source with an in the property. + The name of the data source, as specified in the report definition for the current report. + An object that contains the data. + + + Constructs a named data source with an in the property. + The name of the data source, as specified in the report definition for the current report. + An object that contains the data. + + + Constructs a named data source with a value. + The name of the data source. + A value for the data source. + + + Constructs a named data source with a data source ID. + The name of the data source. + The ID of the data source. + + + Specifies the name of the list of data for binding. + A value. + + + Gets or sets the data source ID. + A value. + + + Gets or sets the name of the report data source. + A string containing the name of the data source. + + + Gets or sets the instance of the report data source. + An Object containing an instance of the report data source. + + + Contains a collection of objects. + + + Returns a report data source from the collection that matches a specified name. + A object. + The name of the report data source to retrieve from the collection. + + + Represents information about a report data source. + + + Gets the name of the report data source. + A string containing the name of the report data source. + + + Gets a prompt for the data source. + A string containing a prompt for the data source. + + + Represents a collection of objects. + + + Returns a specific object from the collection. + A object. + The name of the object to return. + + + Provides data for the event. + + + Returns an Exception object containing information about the report error. + An Exception object containing information about the report error. + + + Indicates whether the host application has handled the error. + A Boolean value indicating whether the host application has handled the error. The default value is false. + + + Represents the method that will handle a event. + The object that raised the event. + A object that contains information about the event. + + + Represents the page settings for a report. + + + Indicates whether the orientation of the report as defined in the report definition file is landscape. + true if the orientation of the report as defined in the report definition file is landscape; otherwise, false. + + + Represents the margins for a report page. Read-only. + A read-only Margins object containing margin information about the report page. + + + Represents the paper size settings for a report page. Read-only. + A read-only PaperSize object containing information about report page size. + + + Represents a parameter for a report. + + + Instantiates a new ReportParameter. + + + Instantiates a new ReportParameter with a name. + The name of the parameter. + + + Instantiates a new ReportParameter with a name and a value. + The name of the parameter. + The value of the parameter. + + + Instantiates a new multivalued ReportParameter with a name. + The name of the parameter. + The values of the parameter. + + + Instantiates a new ReportParameter with a name, a value, and a visibility flag. + The name of the parameter. + The value of the parameter. + Determines if the parameter is displayed in the user interface. + + + Instantiates a new ReportParameter with a name, multiple values, and a visibility flag. + The name of the parameter. + The values of the parameter. + Determines if the parameter is displayed in the user interface. + + + Gets or sets the name of the parameter. + A String value. + + + Gets a collection of string objects containing one or more values for the parameter. + A StringCollection object. + + + Determines whether the parameter can be displayed in the user interface. + A Boolean value. + + + Represents a collection of objects. + + + Initializes a new instance of the class. + + + Gets an object in the collection by its name. + A with the specified name, if found; otherwise, a null reference (Nothing in Visual Basic). + The name of the object to get. This is the value of the property.This parameter is not case sensitive. + + + Encapsulates information about report parameters. + + + Indicates whether an empty string is a valid value for the parameter. Read-only. + A Boolean value. + + + Indicates whether the default values of the parameter are based on a query. Read-only. + A Boolean value. + + + Indicates whether the parameter's valid values are based on a query. Read-only. + A read-only Boolean value. + + + Gets the data type of the parameter. Read-only. + A read-only value. + + + Gets a list of parameters whose values are used to retrieve additional parameter values in a query. Read-only. + A read-only . + + + A list of parameters that use the value of this parameter as parameters into queries to retrieve and/or . + A read-only . + + + Gets an error message returned when the parameter has failed validation. Read-only. + A read-only string containing the text of the error message. + + + Indicates whether the parameter is used in a query to an external data source. Read-only. + A read-only Boolean value. + + + Indicates whether the parameter can be a multivalue parameter. Read-only. + A read-only Boolean value. + + + Gets the name of the parameter. Read-only. + A string containing the name of the parameter. + + + Indicates whether the value of the parameter can be null. Read-only. + A read-only Boolean value. + + + The text that prompts the user to provide parameter values. + A string containing the text of the prompt. + + + Indicates whether the user is prompted for the value of the parameter. + A read-only Boolean value. + + + Describes the state of the parameter. Read-only. + A read-only value. + + + Gets the available valid values for the parameter. Read-only. + A read-only array of objects. + + + Gets the values for the parameter. + A read-only list of string values. + + + Determines whether the parameter can be displayed in the user interface. + A Boolean value. + + + A collection of objects. + + + Returns a named item from the ReportParameterInfoCollection. + A object from the collection. + The name of the item to retrieve. + + + Provides data for the event. + + + Gets a value indicating whether the event is triggered by the automatic submission of report parameters due to dependencies between them. + true if the event is triggered by the automatic submission of report parameters; false if it is triggered by the user clicking the View Report button. + + + Gets the parameters that are being submitted to the report server by the user in the parameter prompt area. + A object containing the parameter values submitted by the user. + + + Represents the callback method that will handle the event. + The source of the event. + A that contains the event data. + + + Represents the error that occurs when a report contains a security violation. + + + Represents errors that occur while connecting to a report server and also errors that occur on the report server while processing a server report or rendering the report to the report page layout (RPL) format. + + + Returns the error code from the exception. + A string value containing the error code returned by the report server, or null if the connection attempt to the report server is unsuccessful. + + + Encapsulates the methods and properties used for the ReportViewer control. + + + Initializes a new instance of the class. + + + Occurs when a user navigates from a drillthrough report back to the parent report. + + + Occurs when a user browses to a bookmark in a report. + + + Occurs when a document map node is selected. + + + Occurs when a drillthrough item is selected. + + + Occurs when a user moves to a different page in a report. + + + Occurs when an error is found in the report. + + + Occurs when the report is refreshed. + + + Occurs when the Find or Find Next button is clicked, or when a search operation is invoked programmatically. + + + Occurs when the user activates a sort on the report data. + + + Occurs when the user submits new data source credentials using the data source prompt area. + + + Occurs when report parameter values are submitted to the report server. + + + Occurs when the user toggles the visibility of an item in the report. + + + A constant that represents the maximum number of pages in a report when the current page count mode is . + + + Searches the report in the report area for the specified text string, starting from the specified page number. + The search string. + The page number on which to start searching. + + + Returns the page settings that are used to print the current report in the ReportViewer control. + A object that contains the page settings that are used to print the current report in the ReportViewer control, or null if the ReportViewer control has not yet processed a report. + + + Moves the focus of the report to the specified bookmark. + The ID of the bookmark. + + + Moves the focus of the document map to the specified node. + The ID of the document map node. + + + Navigates the ReportViewer control back to the parent report from a drillthrough report. + + + Registers the specified control with the ReportViewer control. The ReportViewer control displays the wait control when the registered control causes a postback. + The control to register as a trigger for a ReportViewer postback. + + + Resets the control to its default values. + + + Reverts the page settings for the current report in the ReportViewer control to the settings in the report definition. + + + Sets the page settings that are used to print the current report in the ReportViewer control. + A object that contains the new page settings.This parameter must not be null. + + + Gets or sets a Boolean value that indicates whether the report is rendered asynchronously from the rest of the Web page when the Web page is being loaded. + true if the report is rendered asynchronously; otherwise, false. The default is true. + + + Gets or sets the background color of the control's report area. + A value indicating the background color of the control's report area. + + + Gets or sets the current page of the ReportViewer control's active report. + An integer value containing the current page of the report. The default value is 0. + + + Gets or sets the collapsed state of the document map. + true if the document map is collapsed; otherwise, false. The default is false. + + + Gets or sets the width of the document map. + A object that represents the document map width. By default, a object that represents 25 percent of the ReportViewer width is returned. + + + Gets or sets a value that indicates whether content should be present in-line or as an attachment. + A enumeration value indicating how content should be presented. + + + Gets or sets the height of the control. + A object that represents the height of the control. + + + Gets or sets the target window or frame for the Web page content that is returned when a hyperlink in the report is clicked. + A String value. + + + Specifies the ID of the control. + A string value that represents the ID of the control. + + + Gets the object that the ReportViewer control uses to render the report in the report area as HTML. + A object. + + + Gets or sets an value that indicates the postback mode of the control. + An value that indicates the postback mode. The default value is . + + + Gets or sets the internal border color of the control. + A value indicating the color of the control's internal border. + + + Gets or sets the internal border style of the control. + A value indicating the style of the control's internal border. + + + Gets or sets the width of the internal border of the control. + A value containing the width of the internal border of the control. + + + Gets or sets a Boolean value that indicates whether to keep the user session from expiring as long as the Web page is displayed in the browser. + true to keep the user session from expiring; otherwise, false. The default is true. + + + Gets or sets the color of an active link in the control. + A value indicating the color of the active link. + + + Gets or sets the color of the active link in the control while the mouse pointer is over the link. + A value indicating the color of the active link in hover state. + + + Gets or sets the color of a disabled link in the control. + A value indicating the color of the disabled link. + + + Gets the instance of the class that is used when the for the control is set to . + A object containing the local report in the ReportViewer control. + + + Gets or sets a enumeration value that indicates the default page count mode to use when rendering a report in the report area. + A enumeration value. The default value is . + + + Gets or sets the processing mode of the ReportViewer control. + A enumerator value of either Local or Remote. The default value is Local. + + + Gets or sets the collapsed state of the parameter prompt area or the credentials prompt area. + true if the prompt area is collapsed; otherwise, false. The default is false. + + + Gets a object that indicates the current content type of the report area. + A object. + + + Gets the search text and the start page of the current report search operation. + A object, or null if there is not an ongoing report search operation. + + + Gets the instance of the class that is used when the for the control is set to . + A object that contains the server report in the ReportViewer control. + + + Gets or sets a value that indicates whether the Back button is visible on the toolbar. + true if the Back button is visible on the toolbar; otherwise, false. The default is true. + + + Gets or sets a value that indicates whether to display a prompt for user credentials. + true if a prompt for credentials is shown to the user; otherwise, false. The default is true. + + + Gets or sets a value that indicates whether the button that shows and collapses the document map is visible on the split bar. + true if the button is visible on the split bar; otherwise, false. The default is true. + + + Gets or sets a value that indicates whether the Export control is visible on the toolbar. + true if the Export control is visible on the toolbar; otherwise, false. The default is true. + + + Gets or sets a value that indicates whether the Find text box is visible on the toolbar. + true if the Find text box is visible on the toolbar; otherwise, false. The default is true. + + + Gets or sets a value that indicates whether the page navigation controls are visible on the toolbar. + true if the page navigation controls are visible on the toolbar; otherwise, false. The default is true. + + + Gets or sets a value that indicates whether parameter prompts are displayed. + true if parameter prompts are displayed; otherwise, false. The default is true. + + + Gets or sets a value that indicates whether Print button is visible on the toolbar. + true if the Print button is visible on the toolbar; otherwise, false. The default is true. + + + Gets or sets a value that indicates whether the button that shows and collapses the prompt area is visible on the split bar. + true if the button is visible on the split bar; otherwise, false. The default is true. + + + Gets or sets a value that indicates whether the Refresh button is visible. + true if the Refresh button is visible on the toolbar; otherwise, false. The default is true. + + + Gets or sets a value that indicates whether the report body is visible on the control. + true if the report body is visible on the control; otherwise, false. The default is true. + + + Gets or sets a value that indicates whether the toolbar is visible on the control. + A Boolean value. The default value is true. + + + Gets or sets a Boolean value that controls whether to display the Cancel link in the wait control. + true if the Cancel link should be shown; otherwise, false. The default is true. + + + Gets or sets a value that indicates whether the Zoom list box is visible. + A Boolean value. The default value is true. + + + Gets or sets a value that indicates whether the ReportViewer control should automatically resize to accommodate report content. + A Boolean value. A value of true indicates that the control should automatically resize to accommodate report content. The default value is false. + + + Gets or sets the background color of the document map split bar and the prompt area split bar. + A object. The default color has the RGB values (236,233,216). + + + Gets or sets the border color of an item on the toolbar. + A value indicating the color of the toolbar item. + + + Gets or sets the border style of an item on the toolbar. + A value containing the border style of the toolbar item. + + + Gets or sets the width of the toolbar item border. + A value containing the border width of the toolbar item. + + + Gets or sets the background color of toolbar item while the mouse pointer is over the item. + A value indicating the background color of the toolbar item in hover state. + + + This property is no longer applicable and exists for backward compatibility. ReportViewer control no longer uses pressed buttons. + A value indicating the color of the toolbar item in pressed state. + + + This property is no longer applicable and exists for backward compatibility. The ReportViewer control no longer uses pressed buttons. + A value containing the border style of the toolbar item in selected state. + + + This property is no longer applicable and exists for backward compatibility. The ReportViewer control no longer uses pressed buttons. + A value containing the border width of the toolbar item while it is being selected. + + + This property is no longer applicable and exists for backward compatibility. The ReportViewer control no longer uses pressed buttons. + A value indicating the background color of the toolbar item in hover state. + + + Gets or sets the delay in milliseconds before the wait control is displayed to the user when the report is loaded. + An int value that specifies the time in milliseconds. The default value is 1000 (1 second). + + + Gets the font for the message that is displayed while the report is being executed. + A object containing the font value. The default font is 14-point Verdana. + + + Gets or sets the width of the control. + A object that represents the width of the control. + + + Gets or sets the zoom mode of the control. + A enumerator value indicating the zoom mode of the control. The default value is 100%. + + + Gets or sets the zoom percentage to use when displaying the report. + An integer value that contains the zoom percentage. + + + Represents a collection of objects. + + + Represents errors that occur while viewing or configuring a report. + + + This constructor supports the .NET Framework infrastructure and is not intended to be used directly from your code. + + + This constructor supports the .NET Framework infrastructure and is not intended to be used directly from your code. + + + Represents a collection of strings that contain custom headers. + + + The exception that is thrown if a control is not found in the Web form. + + + Provides data for a event in the ReportViewer control. + + + Constructs a new SearchEventArgs object. + The search string. + The page on which to start searching. + Indicates that this event is occurring as a result of a Find Next command. + + + Indicates that this event is occurring as a result of a Find Next command. + A Boolean value. A value of true indicates that this event occurred because of a Find Next command. + + + Returns the search string being used for the search. + A string value containing the search string. + + + Returns the page number on which to start searching. + An integer containing the starting page number to search. + + + Represents the method that will handle a event. + The object that raised the event. + A object that contains information about the event. + + + Contains the search text and the start page of a search operation. + + + Gets the start page of the search operation. + An int value that represents the start page of the search operation. + + + Gets the search text. + A string that represents the search text. + + + Represents a report that is processed on the report server. + + + Initializes a new instance of the class. + + + Retrieves information about the data sources used for a report. + A containing objects. + + + Retrieves information about the data sources used for a report, including whether all required credentials have been supplied for the report data sources. + A containing objects. + [out] Indicates whether all required credentials have been supplied for the data sources used by the server report. + + + Gets the default page settings specified in the report definition. + A object containing the default page settings for the local report. + + + Returns the current execution ID, or null (Nothing in Visual Basic) if no execution ID is available. + A String that contains the execution ID. + + + Returns report parameter properties for the report. + A object that contains an array of objects. + + + Returns the version of the report server. + A string value containing the server version information. + + + Returns the total number of soft pages in the report and a value that indicates the current page count mode. + An integer value containing the total number of soft pages in the report. For more information on soft pages, see Understanding Rendering Behaviors. + [out] A enumeration value that indicates the page count mode used to calculate the total number of soft pages. + + + Indicates whether the report can execute queries. + A Boolean value indicating whether the report can execute queries. + + + Returns all available rendering extensions for the server report. + An array of objects. + + + Loads the report definition on the report server for remote processing using a . + A class that can be used to read the report definition language (RDL) file for the report. + + + Causes the report to be rendered with new data. + + + Renders the report with optional URL access parameters. + A that contains the rendered report. + The format in which to render the report. This argument maps to a rendering extension. You can use any rendering extension available on the report server.To access the list of available rendering extensions, use the method. + An XML string that contains the device-specific content that is required by the rendering extension specified in the format parameter. For more information about device information settings for specific output formats, see Device Information Settings in SQL Server Books Online. + URL access parameters to pass to the report server. For more information, see the URL Access documentation in SQL Server Books Online.This parameter may be set to null. + [out] The MIME type of the rendered report. + [out] The file name extension used for the output file. + + + Renders the report with optional URL access parameters. + The format in which to render the report. This argument maps to a rendering extension. You can use any rendering extension available on the report server.To access the list of available rendering extensions, use the method. + An XML string that contains the device-specific content that is required by the rendering extension specified in the format parameter. For more information about device information settings for specific output formats, see Device Information Settings in SQL Server Books Online. + URL access parameters to pass to the report server. For more information, see the URL Access documentation in SQL Server Books Online.This parameter may be set to null. + The stream into which the rendered report will be written. + [out] The MIME type of the rendered report. + [out] The file name extension used for the output file. + + + Processes the report with the specified value and renders it in the specified format. + A array of the report in the specified format. + The format in which to render the report. This argument maps to a rendering extension. You can use any formatting extension available on the report server.To access the list of available rendering extensions, use the method. + An XML string that contains the device-specific content that is required by the rendering extension specified in the format parameter. For more information about device information settings for specific output formats, see Device Information Settings in SQL Server Books Online. + A enumeration value that specifies the page count mode. + [out] The MIME type of the rendered report. + [out] The encoding used when rendering the contents of the report. + [out] The file name extension used for the output file. + [out] The stream identifiers. You can use them to render external resources (images, for example) that are associated with the report. + [out] An array of objects that describes any warnings that occurred during report processing. + + + Returns a secondary stream associated with a processed report. + A array of the stream in the specified format. For more information about this data type, see "Byte Structure" in the .NET Framework documentation. + The format in which to render the stream. This argument maps to a rendering extension. You can use any rendering extension available on the report server.To access the list of available rendering extensions, use the method. + The stream identifier. + An XML string that contains the device-specific content that is required by the rendering extension specified in the format parameter. For more information about device information settings for specific output formats, see Device Information Settings in SQL Server Books Online. + The MIME type of the stream. + The Microsoft .NET Framework encoding class name. + + + Sets the data source credentials for the report. + A set of data source credentials to submit to the report server. + + + Initializes a server report using a specific report execution on the server. + A String containing the execution ID to use. + + + Sets report parameter properties for the report. + An of objects that contains a list of the report parameters properties. + + + Gets a collection of objects. The object uses the cookies in this collection when making server requests. + A object that contains a collection of objects. + + + Gets a collection of strings that contain custom headers. + A object that contains a collection custom headers. + + + Gets or sets the unique identifier of the report history snapshot used for the server report. + A string value containing the unique identifier of the report history snapshot used for the server report. + + + Gets or sets the path to the report on the server. + A string value. + + + Gets or sets the credentials to be used with the report server. + A object containing the credentials to be used with the report server. + + + Gets or sets the URL for the report server. + A object containing the URL for the report server. + + + Gets or sets the number of milliseconds to wait for server communications. + An integer value containing the server time-out, in milliseconds. The default value is 600000 milliseconds. + + + Occurs when the ASP.NET session has been disabled. + + + Specifies the severity of a warning. + + + The severity level of the warning is Error. + + + The severity level of the warning is Warning. + + + Represents the exception that occurs when the report server version is not compatible with the report control. + + + Provides data for the event. + + + Constructs a new SortEventArgs object. + The ID of the sort action. + A enumeration value indicating the direction of the sort. The default value is none. + A Boolean value that indicates whether all other existing sorts should be cleared. The default is false. + + + Indicates whether all other existing sorts should be cleared. + A Boolean value that indicates whether all other existing sorts should be cleared. The default is false. + + + Gets an enumeration value indicating the direction of the sort. + A enumeration value indicating the direction of the sort. + + + Gets the unique identifier of the sort action. + A string containing the ID of the sort action. + + + Represents the method that will handle the event of a . + The object raising the event. + A object containing information about the event. + + + Indicates the direction of a sort operation. + + + Indicates an ascending sort. + + + Indicates a descending sort. + + + Provides data for the event. + + + Gets the list of data source names for the subreport. + A list of string objects containing the names of the data sources for the subreport. + + + Returns a collection of data sources for the subreport. + A collection of objects. + + + Gets a collection of parameters for the subreport. + A containing information about the subreport parameters. + + + Returns the name of the subreport. + A string containing the name of the subreport. + + + Represents the method that will handle the event of a . + The object that raised the event. + A object containing information about the event. + + + Represents a possible valid value for a parameter. + + + Gets a label for the valid value. + A read-only string object. + + + Gets a valid value. + A read-only string object. + + + Occurs when the ReportViewer control detects that view state is disabled. + + + Represents a list of errors or warnings that are returned when a report is rendered or processed. + + + Gets the error code that is assigned to the warning. Read-only. + A read-only string value. + + + Gets a message that describes the error or warning. Read-only. + A read-only string value. + + + Gets the name of the object in the report definition that contributed to the warning. Read-only. + A read-only string value. + + + Gets the type of object in the report definition that caused the error or warning. Read-only. + A read-only string value. + + + Gets the severity type of the error or warning. Read-only. + A read-only string value. + + + Specifies the zoom mode for the ReportViewer control. + + + Sets the zoom mode to full page. + + + Sets the zoom mode to page width. + + + Sets the zoom mode to a percentage. + + + \ No newline at end of file diff --git a/C2P/bin/Microsoft.ReportViewer.WinForms.xml b/C2P/bin/Microsoft.ReportViewer.WinForms.xml new file mode 100644 index 0000000..bb086b5 --- /dev/null +++ b/C2P/bin/Microsoft.ReportViewer.WinForms.xml @@ -0,0 +1,1846 @@ + + + + Microsoft.ReportViewer.WinForms + + + + The namespace contains methods and properties for the ReportViewer Windows forms control. + + + Provides data for the Back event. + + + Constructs a new BackEventArgs object. + The parent report of the drillthrough report. + + + Gets the parent report of the drillthrough report. + A (if the ReportViewer control is in local processing mode) or object (if the ReportViewer control is in remote processing mode) containing the parent report of the drillthrough report. + + + Represents the method that will handle the event of a . + The object that raised the event. + A object that contains the event arguments. + + + Provides data for the event. + + + Constructs a BookmarkNavigationEventArgs object. + The bookmark identification string. + + + Gets the bookmark identification string. + A read-only string object. + + + Represents the method that will handle the event of a . + The object that raised the event. + A object that contains the event arguments. + + + Represents errors that occur when the control is rendering a processed report from report page layout (RPL) format into GDI+ format. + + + Provides a stream to the ReportViewer control for rendering. + A Stream object to which the ReportViewer control can write data. + The name of the stream. + The file name extension to use if a file stream is being created. + An Encoding enumerator value specifying the character encoding of the stream. This may be null if the stream does not contain characters. + A string containing the MIME type of the stream. + A Boolean value indicated whether the stream needs to support seeking. If the value is false, the stream will be forward-only and will be sent to the client in chunks as it is created. If the value is true, the stream may be written in any order. + + + Represents data source credentials. + + + Constructs a DataSourceCredentials object. + + + Gets or sets the user name to be used by the data source for connecting to a report server. + A string value. + + + Gets or sets the password to be used by the data source for connecting to the report server. + A string containing the password. + + + Gets or sets the user identification to be used by the data source for connecting to the report server. + A string containing the user ID. + + + Represents a collection of objects. + + + Initializes a new instance of the class. + + + Gets the object of the specified name from the collection. + A object. + Name of the object. This parameter is not case sensitive. + + + Represents a possible display mode for the ReportViewer control. + + + Specifies that the control is in normal mode. This mode causes the control to display logical pages. + + + Specifies that the control is in print layout mode. In this mode, the control displays physical pages. + + + Provides data for the event. + + + Construct a new DocumentMapNavigationEventArgs object. + A string containing the document map node ID. + + + Gets the unique identifier of the document map node selected. + A read-only string value containing the document map node ID. + + + Represents the method that will handle the event of a . + The object raising the event. + A object containing the event arguments. + + + Represents a single node in the document map. + + + Gets a collection of child document map nodes. + A read-only array of objects. + + + Gets the unique identifier of the document map node. + A read-only string value. + + + Gets the label associated with the document map node. + A read-only string value. + + + Provides data for the event. + + + Constructs a new DrillthroughEventArgs object. + The path of the drillthrough report. + The target report of the drillthrough action. + + + Gets the target report of the drillthrough action. + A read-only or object. + + + Gets the path of the drillthrough report. + A read-only string value. + + + Represents the method that will handle the event of a . + The object that raised the event. + A object that contains the event data. + + + Represents the method that will handle the event. + The object firing the event. + A class containing the arguments for the event. + + + Contains information about a event. + + + Gets the URL that the user clicked on in a report. + A string value containing the hyperlink. + + + Represents the method that will handle a event. + The object that raised the event. + A object that contains the arguments for this event. + + + Allows objects to provide credentials to use for connecting to a report server. + + + Provides forms authentication to be used to connect to the report server. + A Boolean value. A value of true indicates that forms authentication should be used. + [out] A report server authentication cookie. + [out] The name of the user. + [out] The password of the user. + [out] The authority to use when authenticating the user, such as a Microsoft Windows domain. + + + Specifies the user to impersonate when connecting to a report server. + A WindowsIdentity object representing the user to impersonate. + + + Returns network credentials to be used for authentication with the report server. + A NetworkCredentials object. + + + Allows applications to provide customized user interface messages. + + + Provides the ToolTip text for the Back button. + A string value. + + + Provides the text for the Back menu item. + A string value. + + + Provides the text for the Change Credentials button. + A string value. + + + Provides the ToolTip text for the Current Page text box. + A string value. + + + Provides the ToolTip text for the Document Map button. + A string value. + + + Provides the text for the document map menu item. + A string value. + + + Provides the ToolTip text for the Export button. + A string value. + + + Provides the text for the Export menu item. + A string value. + + + Provides the text for a false value. + A string value. + + + Provides the text for a Find button. + A string value. + + + Provides the ToolTip text for the Find button. + A string value. + + + Provides the text for the Find Next button. + A string value. + + + Provides the ToolTip text for the Find Next button. + A string value. + + + Provides the ToolTip text for the First Page button. + A string value. + + + Provides the ToolTip text for the Last Page button. + A string value. + + + Provides the ToolTip text for the Next Page button. + A string value. + + + Provides the text for the no more matches message. + A string value. + + + Provides the text for the Null check box. + A string value. + + + Provides the ToolTip text for the Null check box. + A string value. + + + Provides the text for a null value. + A string value. + + + Provides the text for the pagination message. + A string value. + + + Provides the ToolTip text for the Page Setup button. + A string value. + + + Provides the text for the Page Setup menu item. + A string value. + + + Provides the ToolTip text for the Parameter Area button. + A string value. + + + Provides the text for the password prompt. + A string value. + + + Provides the ToolTip text for the Previous Page button. + A string value. + + + Provides the text for the Print button. + A string value. + + + Provides the ToolTip text for the Print Layout button. + A string value. + + + Provides the text for the Print Layout menu item. + A string value. + + + Provides the text for the Print menu item. + A string value. + + + Provides the text for the progress message that is displayed when a report is processing. + A string value. + + + Provides the ToolTip text for the Refresh button. + A string value. + + + Provides the text for the Refresh menu item. + A string value. + + + Provides the ToolTip text for the Search text box. + A string value. + + + Provides text for the Select All item in a multivalue drop-down list box. + A string value. + + + Provides text for the Select a value prompt. + A string value. + + + Provides the ToolTip text for the Stop button. + A string value. + + + Provides the text for the Stop menu item. + A string value. + + + Provides the text for the text not found message. + A string value. + + + Provides the ToolTip text for the Total Pages item. + A string value. + + + Provides the text for a true value. + A string value. + + + Provides the text for the user name prompt. + A string value. + + + Provides the text for the View Report button. + A string value. + + + Provides the ToolTip text for the View Report button. + A string value. + + + Provides the ToolTip text for the Zoom control. + A string value. + + + Provides the text for the Zoom menu item. + A string value. + + + Provides the text for the Zoom To Page Width option. + A string value. + + + Provides text for the Zoom To Whole Page item. + A string value. + + + Defines methods and properties for implementing customized user interface messages. + + + Returns the error text to display when the user name has not been supplied for the data source credentials. + Returns a String that contains the error text to display when the user name has not been supplied for the data source credentials. + The prompt value that identifies which data source is missing a value. + + + Returns a localized name for the current export format. + Returns a String that contains the localized name for the current export format. + The name of the current export format (for example, EXCEL, PDF). + + + Returns the error text to display when a selection has not been made for a multivalue report parameter. + Returns a String that contains the error text to display when a selection has not been made for a multivalue report parameter. + The prompt value that identifies which report parameter has not been specified. + + + Returns the error text to display when a report parameter has not been specified. + Returns a String that contains the error text to display when a report parameter has not been specified. + The prompt value that identifies which report parameter has not been specified. + + + Gets the text for the All Files filter option in the Save As dialog box when a report is exported. + A String that contains the text to display for the All Files filter option in the Save As dialog box when a report is exported. + + + Gets the ToolTip text to display when a pointer pauses over a report parameter with a data type of DateTime. + A String that contains the ToolTip text to display when a pointer pauses over a report parameter that has a data type of DateTime. + + + Gets the title text for the dialog box when an error occurs exporting a report. + A String that contains the title text for the dialog box when an error occurs exporting a report. + + + Gets the ToolTip text to display when a pointer pauses over a report parameter with a data type of Float. + A String that contains the ToolTip text to display when a pointer pauses over a report parameter that has a data type of Float. + + + Gets the title text for the dialog box if an error occurs when the user selects a Hyperlink in the report. + A String that contains the title text for the dialog box if an error occurs when the user selects a Hyperlink in the report. + + + Gets the ToolTip text to display when a pointer pauses over a report parameter with a data type of Integer. + A String that contains the ToolTip text to display when a pointer pauses over a report parameter that has a data type of Integer. + + + Gets the title text for the message box dialog box displayed by the report viewer. + A String that contains the title text for the message box dialog box displayed by the report viewer. + + + Gets the text to display when the processing of a report has been stopped. + A String that contains the text to display when the processing of a report has been stopped. + + + Gets the title text for the dialog box when an error occurs in the prompt area. + A String that contains the title text for the dialog box when an error occurs in the prompt area. + + + Gets the ToolTip text to display when a pointer pauses over a report parameter with a data type of String. + A String that contains the ToolTip text to display when a pointer pauses over a report parameter that has a data type of String. + + + Allows applications to provide customized user interface messages. + + + Returns the string in the default toolbar that represents the total number of pages in the current report and the that was used to determine it. + A localized string that represents the total number of pages and the page count mode. + The total number of pages in the current report. + Indicates whether the pageCount parameter represents an estimated or actual number of pages. + + + Gets the text of the Cancel link in the wait control. + A string value that represents the Cancel link text. + + + Gets the text displayed on the Cancel button in the Exporting dialog box after the user selects an export format. + A string value that represents the text of the Cancel button. + + + Gets the text displayed in the Exporting dialog box after the user selects an export format and that indicates that the export is in progress and the user must wait for it to complete. + A string value that indicates that an export is in progress and that the user needs to wait for it to complete. + + + Gets the title of the Exporting dialog box that opens after the user selects an export format. + A string value that specifies the title of the Exporting dialog box. + + + Gets the tooltip text for the radio button that indicates false for a Boolean parameter. + A string value that represents the tooltip text for the radio button that indicates false for a Boolean parameter. + + + Gets the tooltip text for the radio button that indicates true for a Boolean parameter. + A string value that represents the tooltip text for the radio button that indicates true for a Boolean parameter. + + + Represents errors that occur while viewing a locally processed report. + + + Represents a report that is processed and rendered locally without connecting to a report server. + + + Initializes a new instance of the class. + + + Occurs when a subreport is processed. + + + Adds the supplied assembly to the list of assemblies that run in full trust mode in the sandboxed application domain. + The name of the assembly to be added. + + + Adds the supplied assembly to the list of assemblies that are trusted to execute in the current . + The name of the assembly to be added. + + + Releases all resources that are used by the object. + + + Causes processing extensions and expressions in the report to be executed in the current . + An object that contains security information about the report. + + + Causes processing extensions and expressions to be run in an application domain with limited permissions. + + + Returns the names of all datasets used within the local report. + An array of string objects that contain the list of dataset names. + + + Gets the default page settings specified in the local report. + A object that contains the default page settings for the local report. + + + Returns report parameter properties for the report. + A object that contains a collection of objects. + + + Returns the total number of soft pages in the report and a enumeration value that indicates the current page count mode. + An integer value containing the total number of soft pages in the report. For more information on soft pages, see Understanding Rendering Behaviors. + [out] A enumeration value that indicates the page count mode used to calculate the total number of soft pages. + + + Returns all available rendering extensions for the local report. + An array of objects. + + + Loads a report definition from the local file system using a . + A class that contains the report definition for the local report. + + + Loads a subreport definition using a . + The path and file name of the subreport definition. + A class that can be used to read the report definition language (RDL) file for the subreport. + + + Loads a subreport definition using a . + The path and file name of the subreport definition. + A object that will contain the report definition language (RDL) for the subreport. + + + Causes the local report to be rendered with new data. + + + Causes the object to release its reference to the sandboxed application domain immediately. + + + Processes the report and renders it in the specified format using a stream provided by a callback function. + The format in which to render the report. This argument maps to a rendering extension. Supported formats include Excel, PDF, Word, and Image. To access the list of available rendering extensions, use the method. + An XML string that contains the device-specific content that is required by the rendering extension specified in the format parameter. For more information about device information settings for specific output formats, see Device Information Settings in SQL Server Books Online. + A delegate function that will be used to provide a object for rendering. + [out] An array of objects that describes any warnings that occurred during report processing and rendering. + + + Processes the report with a specified page count mode and renders it in the specified format using a stream provided by a callback function. + The format in which to render the report. This argument maps to a rendering extension. Supported formats include Excel, PDF, Word, and Image. To access the list of available rendering extensions, use the method. + An XML string that contains the device-specific content that is required by the rendering extension specified in the format parameter. For more information about device information settings for specific output formats, see Device Information Settings in SQL Server Books Online. + A enumeration value that specifies the page count mode. + A delegate function that will be used to provide a object for rendering. + [out] An array of objects that describes any warnings that occurred during report processing and rendering. + + + Processes the report with a specified page count mode and renders it in the specified format. + A array of the report in the specified format. + The format in which to render the report. This argument maps to a rendering extension. Supported formats include Excel, PDF, Word, and Image. To access the list of available rendering extensions, use the method. + An XML string that contains the device-specific content that is required by the rendering extension specified in the format parameter. For more information about device information settings for specific output formats, see Device Information Settings in SQL Server Books Online. + A enumeration value that specifies the page count mode. + [out] The MIME type of the rendered report. + [out] The encoding used when rendering the contents of the report. + [out] The file name extension used for the output file. + [out] The stream identifiers. You can use them to render external resources (images, for example) that are associated with the report. + [out] An array of objects that describes any warnings that occurred during report processing and rendering. + + + Sets the base permissions for the sandboxed application domain with the supplied permission set. + The to set. The default base permission is Execution. + + + Sets report parameter properties for the local report. + An of objects that contains a list of the report parameter properties. + + + Gets a collection of data sources used by the report. + A read-only object. + + + Indicates whether the report can be rendered if it has external images. + A Boolean value. A value of true indicates that the local report can be rendered if it has external images. The default value is false. + + + Indicates whether the report can be rendered if it contains hyperlink actions. + A Boolean value. A value of true indicates that the report can be rendered if it contains hyperlink actions. The default value is false. + + + Returns the parameters passed from a parent report to this report, if it is a drillthrough report. + An of objects that represent the parameters passed from the parent reports to the drillthrough report, or an empty collection if this report is not a drillthrough report. + + + Gets or sets the name of the report-embedded resource. + A string containing the name of the embedded resource. + + + Gets or sets the file system path of the local report. + A string value. + + + Gets or sets a boolean value that indicates whether detailed messages should be displayed when an error occurs in a subreport. + true if detailed messages should be displayed; otherwise, false. The default is true. + + + Represents an exception that occurs when credentials have not been supplied for a data source used by a report. + + + Represents the error that occurs when a data source expected by the report has not been supplied. + + + Represents the error that occurs when the SOAP endpoint used by the ReportViewer control could not be accessed. + + + Represents the exception that occurs when a parameter expected by the report has not been supplied. + + + Represents the exception that occurs when no report source has been specified. + + + Represents values that control whether to calculate the actual page count or use an estimate. + + + Calculate the actual page count for the report. + + + Provide an estimate of the page count for the report instead of calculating the actual page count. + + + Provides data for a event. + + + Constructs a new PageNavigationEventArgs object. + An integer value containing the new page number. + + + Gets the number of the page resulting from the event. + An integer value containing the new page number. + + + Represents the method that will handle the event of a . + The object that raised the event. + A object that contains the arguments for this event. + + + Specifies the data type of a parameter. + + + A Boolean data type that represents a true or false condition. + + + A DateTime data type that represents the date and time. + + + A Float data type that represents a floating point decimal value. + + + An Integer data type. + + + A String data type that represents an array of characters. + + + Specifies the state of a parameter. + + + The parameter values are unavailable. This state indicates that no valid, query-based values were returned as a result of the query. + + + The parameter has outstanding dependencies. This generally occurs when the valid values or the default value of a parameter is query-based and dependencies exist that have not been submitted to the method. + + + A valid value for the parameter exists. + + + A valid value for the parameter does not exist. + + + Sets the processing mode of the ReportViewer control. + + + Specifies that the report will be processed and rendered using the reporting engine provided by the ReportViewer control. + + + Specifies remote processing mode against a Reporting Services report server. + + + Provides data for the event. + + + Contains an object if an exception has occurred. + An object if an exception has occurred during report rendering, or null if no exception has occurred. + + + Gets a list of warnings produced during report processing or rendering. + A collection of objects if warnings have occurred; otherwise a null value. + + + Represents the method that will handle the event of a . + The object that raised the event. + A object that contains information about the event. + + + Encapsulates a rendering extension that can be used with the Report Viewer's report. + + + Gets the localized display name of the rendering extension. + A read-only String value. + + + Gets the name of the rendering extension. + A read-only String value. + + + Indicates whether the rendering extension is visible in the user interface. + A Boolean value. + + + Contains methods and properties that can apply to both local and server reports. + + + Gets the default page settings specified in the report. + A object containing the default page settings for the local report. + + + Returns the representation of the document map for the local report. + A object containing the top level node of the document map hierarchy for the report. + + + Returns report parameter properties for the report. + A collection of objects. + + + Returns the total number of soft pages in the report. + An integer value containing the total number of soft pages in the report. For more information on soft pages, see Understanding Rendering Behaviors. + + + Returns the total number of soft pages in the report and a value that indicates the current page count mode. + An integer value containing the total number of soft pages in the report. For more information on soft pages, see Understanding Rendering Behaviors. + [out] A enumeration value that indicates the page count mode that was used to calculate the total number of pages. + + + Returns all available rendering extensions for the local report. + An array of objects. + + + Loads a report definition for processing using a . + A class that contains the report definition for the report. + + + Loads a report definition for processing using a . + A class that contains the report definition for the report. + + + Causes the report to be rendered with new data. + + + Processes the report and renders it in the specified format. + A byte array of the report in the specified format. + The format in which to render the report. This parameter maps to a rendering extension In local processing mode, supported extensions are Excel, PDF, Word, and Image. In remote processing mode, supported extensions depend on the extensions supported by the report server.You can access the list of available rendering extensions using the ListRenderingExtensions method in or , depending on the processing mode (see ). + + + Processes the report and renders it in the specified format. + A byte array of the report in the specified format. + The format in which to render the report. This parameter maps to a rendering extension. In local processing mode, supported extensions are Excel, PDF, Word, and Image. In remote processing mode, supported extensions depend on the extensions supported by the report server.You can access the list of available rendering extensions using the ListRenderingExtensions method in or , depending on the processing mode (see ). + An XML string that contains the device-specific content that is required by the rendering extension specified in the format parameter. For more information about device information settings for specific output formats, see Device Information Settings in SQL Server Books Online. + + + Processes the report and renders it in the specified format. + A array of the report in the specified format. + The format in which to render the report. This argument maps to a rendering extension. In local processing mode, supported extensions are Excel, PDF, Word, and Image. In remote processing mode, supported extensions depend on the extensions supported by the report server.You can access the list of available rendering extensions using the ListRenderingExtensions method in or , depending on the processing mode (see ). + An XML string that contains the device-specific content that is required by the rendering extension specified in the format parameter. For more information about device information settings for specific output formats, see Device Information Settings in SQL Server Books Online. + [out] The MIME type of the rendered report. + [out] The encoding used when rendering the contents of the report. + [out] The filename extension used for the output file. + [out] The stream identifiers. You can use them to render the external resources (images, etc.) that are associated with the report. + [out] An array of objects that describes any warnings that occurred during report processing. + + + Processes the report with the specified value and renders it in the specified format. + A byte array of the report in the specified format. + The format in which to render the report. This parameter maps to a rendering extension. In local processing mode, supported extensions are Excel, PDF, Word, and Image. In remote processing mode, supported extensions depend on the extensions supported by the report server.You can access the list of available rendering extensions using the ListRenderingExtensions method in or , depending on the processing mode (see ). + An XML string that contains the device-specific content that is required by the rendering extension specified in the format parameter. For more information about device information settings for specific output formats, see Device Information Settings in SQL Server Books Online. + A enumeration value that specifies the page count mode. + [out] The MIME type of the rendered report. + [out] The encoding used when rendering the contents of the report. + [out] The filename extension used for the output file. + [out] The stream identifiers. You can use them to render the external resources (images, etc.) that are associated with the report. + [out] An array of objects that describes any warnings that occurred during report processing. + + + Sets report parameter properties for the report. + An array of objects that contains a list of the report parameters properties. + + + Sets report parameter properties for the report. + A object. + + + Gets or sets the display name of the report. + A String containing the report's display name. + + + Indicates whether the report is a drillthrough report. + A Boolean value. A value of true indicates that this is a drillthrough report. + + + Gets a Boolean value that indicates whether a report definition and all required parameters have been specified, and all data sources are ready for use. + true if a report definition and all required parameters have been specified, and all data sources are ready for use; otherwise, false. The default is false. + + + Provides data for the event. + + + Gets a collection of . + A collection of objects. + + + Represents the method that will handle a event. + The source of the event. + A that contains the event data. + + + Represents a data source for a report. + + + Constructs an empty data source. + + + Constructs a named data source. + The name of the data source. + + + Constructs a named data source with a object in the property. + The name of the data source, as specified in the report definition for the current report. + A object that contains the data. + + + Constructs a named data source with a object in the property. + The name of the data source, as specified in the report definition for the current report. + A object that contains the data. + + + Constructs a named data source with an object in the property. + The name of the data source, as specified in the report definition for the current report. + An object that contains the data. + + + Constructs a named data source with a value. + The name of the data source. + A value for the data source. + + + Constructs a named data source with the property initialized as a particular type. + The name of the data source, as specified in the report definition for the current report. + A object that contains the data. + + + Gets or sets the name of the report data source. + A String containing the name of the data source. + + + Gets or sets the instance of the report data source. + An Object containing an instance of the report data source. + + + Contains a collection of objects. + + + Returns a report data source from the collection that matches a specified name. + A object. + The name of the report data source to retrieve from the collection. + + + Represents information about a report data source. + + + Gets the name of the report data source. + A String containing the name of the report data source. + + + Gets a prompt for the data source. + A String containing a prompt for the data source. + + + Represents a collection of objects. + + + Returns a specific object from the collection. + A object. + The name of the object to return. + + + Provides data for the event. + + + Returns an Exception object containing information about the report error. + An Exception object containing information about the report error. + + + Indicates whether the host application has handled the error. + A Boolean value indicating whether the host application has handled the error. The default value is false. + + + Represents the method that will handle a event. + The object that raised the event. + A object that contains information about the event. + + + Provides data for the report event. + + + Constructs a ReportExportEventArgs object. + A used for exporting the report. + + + Gets or sets an XML string that contains the device-specific content that is required by the rendering extension specified in the Extension parameter. + A String value containing the device-specific information. + + + Returns a used for exporting the report. + A object. + + + Represents the page settings for a report. + + + Indicates whether the orientation of the report as defined in the report definition file is landscape. + true if the orientation of the report as defined in the report definition file is landscape; otherwise, false. + + + Represents the margins for a report page. Read-only. + A read-only Margins object containing margin information about the report page. + + + Represents the paper size settings for a report page. Read-only. + A read-only PaperSize object containing information about report page size. + + + Represents a parameter for a report. + + + Instantiates a new ReportParameter. + + + Instantiates a new ReportParameter with a name. + The name of the parameter. + + + Instantiates a new ReportParameter with a name and a value. + The name of the parameter. + The value of the parameter. + + + Instantiates a new multivalued ReportParameter with a name. + The name of the parameter. + The values of the parameter. + + + Instantiates a new ReportParameter with a name, a value, and a visibility flag. + The name of the parameter. + The value of the parameter. + Determines if the parameter is displayed in the user interface. + + + Instantiates a new ReportParameter with a name, multiple values, and a visibility flag. + The name of the parameter. + The values of the parameter. + Determines if the parameter is displayed in the user interface. + + + Gets or sets the name of the parameter. + A String value. + + + Gets a collection of String objects containing one or more values for the parameter. + A StringCollection object. + + + Determines whether the parameter can be displayed in the user interface. + A Boolean value. + + + Represents a collection of objects. + + + Initializes a new instance of the class. + + + Gets an object in the collection by its name. + A with the specified name, if found; otherwise, a null reference (Nothing in Visual Basic). + The name of the object to get. This is the value of the property.This parameter is not case sensitive. + + + Encapsulates information about report parameters. + + + Indicates whether an empty string is a valid value for the parameter. Read-only. + A read-only Boolean value. + + + Indicates whether the default values of the parameter are based on a query. Read-only. + A read-only Boolean value. + + + Indicates whether the parameter's valid values are based on a query. Read-only. + A read-only Boolean value. + + + Gets the data type of the parameter. Read-only. + A read-only value. + + + Gets a list of parameters whose values are used to retrieve additional parameter values in a query. Read-only. + A read-only . + + + A list of parameters that use the value of this parameter as parameters into queries to retrieve and/or . + A read-only . + + + Gets the error message that is returned when the parameter fails validation. Read-only. + A read-only String containing the text of the error message. + + + Indicates whether the parameter is used in a query to an external data source. Read-only. + A read-only Boolean value. + + + Indicates whether the parameter can be a multi-value parameter. Read-only. + A read-only Boolean value. + + + Gets the name of the parameter. Read-only. + A String containing the name of the parameter. + + + Indicates whether the value of the parameter can be null. Read-only. + A read-only Boolean value. + + + The text that prompts the user to provide parameter values. + A String containing the text of the prompt. + + + Indicates whether the user is prompted for the value of the parameter. + A read-only Boolean value. + + + Describes the state of the parameter. Read-only. + A read-only value. + + + Gets the available valid values for the parameter. Read-only. + A read-only array of objects. + + + Gets the values for the parameter. + A read-only list of String values. + + + Determines whether the parameter can be displayed in the user interface. + A Boolean value. + + + A collection of objects. + + + Returns a named item from the ReportParameterInfoCollection. + A object from the collection. + The name of the item to retrieve. + + + Provides data for the event. + + + Gets a value indicating whether the event is triggered by the automatic submission of report parameters due to dependencies between them. + true if the event is triggered by the automatic submission of report parameters; false if it is triggered by the user clicking the View Report button. + + + Gets the parameters from the parameter prompt area that are being submitted to the report server. + A object containing the parameter values submitted by the user. + + + Represents the callback method that will handle the event. + The source of the event. + A that contains the event data. + + + Provides data for the and events. + + + Gets or sets the printer settings to use for the current operation. + A object that contains the printer settings. + + + Represents the method that will handle the and events. + The source of the event. + A that contains the event data. + + + Represents the error that occurs when a report contains a security violation. + + + Specifies the credentials for the ReportViewer control to use when connecting to a report server. + + + Returns a Boolean value indicating whether forms authentication will be used when connecting to the report server, as well as information about the forms credentials to be used for authentication. + Returns true if forms authentication is to be used when connecting to the report server. Information about the credentials to be used for forms authentication is returned via the out parameters used in the method call. + [out] An authentication cookie used by the report server. + [out] The user name that will be used to connect to the report server. + [out] The password that will be used to connect to the report server. + [out] The authority to use when authenticating the user, for example, a Windows domain name. + + + Specifies that forms authentication is to be used when connecting to the report server and provides the forms credentials. + An authentication cookie used by the report server. + The user name that will be used to connect to the report server. + The password that will be used to connect to the report server. + The authority to use when authenticating the user, for example, a Windows domain name. + + + Specifies the user to impersonate when connecting to the report server. + A WindowsIdentity object encapsulating the user to impersonate when connecting to a report server. + + + Gets or sets the network credentials used for authentication with the report server. + A NetworkCredentials object containing the network credentials used for authentication with the report server. + + + Represents errors that occur while connecting to a report server and also errors that occur on the report server while processing a server report or rendering the report to the report page layout (RPL) format. + + + Returns the error code from the exception. + A String value containing the error code returned by the report server, or null if the connection attempt to the report server is unsuccessful. + + + Encapsulates the methods and properties used for the ReportViewer control. + + + Constructs a ReportViewer object. + + + Occurs when a user navigates back to a parent report from a drillthrough report. + + + Occurs when the user navigates to a bookmark in a report. + + + Occurs when a document map node is selected. + + + Occurs when a drillthrough item is selected in a report. + + + Occurs when a user clicks a hyperlink in a report. + + + Occurs when a user changes pages in a report. + + + Occurs when the margins or the page size for the current report in the ReportViewer control have changed. + + + Occurs when a user prints the report. + + + Occurs when the user clicks the Print button in the Print dialog box. + + + Occurs when the report in the ReportViewer begins rendering. + + + Occurs when the report finishes rendering. + + + Raised when an error occurs in the report. + + + Occurs when the user clicks the Export button. + + + Occurs when the report is refreshed. + + + This event occurs when the user clicks the Find or Find Next button, or when a search operation is invoked programmatically. + + + Occurs when the user activates a sort. + + + Occurs whenever the user interface state of the ReportViewer control changes. + + + Occurs when the user submits new data source credentials viaby using the built-in prompt area. + + + Occurs when parameter values are submitted to the report server. + + + Occurs when the user toggles the visibility of an item in the report. + + + Occurs when the user clicks the View button. + + + Occurs when the user changes the zoom level of the ReportViewer control. + + + A constant that represents the maximum number of pages in a report when the current page count mode is . + + + Stops background processing of the report. + A Boolean value. A value of true is returned if the background rendering has terminated. A value of false is returned if background rendering has not terminated after the amount of time specified in the millisecondsTimeout parameter has elapsed, or if the millisecondsTimeout parameter was set to 0. + The number of milliseconds to wait for the background rendering to terminate. A value of -1 waits forever. A value of 0 returns immediately without waiting for the rendering to terminate. + + + Clears the report view and fills it with the background color of the control. + + + Opens in the Exporting dialog box for a specific rendering extension. + if the user clicked the Cancel button; if the export operation failed; otherwise, . + The rendering extension to use for the export. Typically, youTo access the list of available rendering extensions, use using the ListRenderingExtensions method in or , depending on the processing mode (see ). + + + Opens in the export dialog box for a specific rendering extension. + if the user clicked the Cancel button; if the export operation failed; otherwise, . + The rendering extension to use for the export.Typically, youTo access the list of available rendering extensions, use using the ListRenderingExtensions method in or , depending on the processing mode (see ). + An XML string that contains the device-specific content that is required by the rendering extension specified in the format parameter. For more information about device information settings for specific output formats, see Device Information Settings in SQL Server Books Online. + + + Opens in the Exporting dialog box for a specific rendering extension and specifies device information and saves the exported report to a file with the specified file name. + if the user clicked the Cancel button; if the export operation failed; otherwise, . + The rendering extension to use for the export.To access the list of available rendering extensions, use the ListRenderingExtensions method in or , depending on the processing mode (see ). + An XML string that contains the device-specific content that is required by the rendering extension specified in the format parameter. For more information about device information settings for specific output formats, see Device Information Settings in SQL Server Books Online. + The name of the exported file. The user is prompted for a file name if this parameter is null. + + + Searches the report for the specified text string. + An integer value containing the page number on which the search string was found, or 0 if the search string was not found. + The search string. + The page number on which to start searching. + + + Continues the search for the specified text string. + An integer value containing the page number on which the search string was found, or 0 if the search string was not found. + + + Returns the page settings that are used to print the current report in the ReportViewer control or display it in print layout mode. + A object that contains the page settings that are used to print the current report in the ReportViewer control or display it in print layout mode, or null if the ReportViewer control has not yet processed a report. + + + Returns the total number of pages in the report. + An integer value containing the total number of pages in the report. + + + Returns the page count of the report and a value that indicates whether the page count is estimated or actual. + An integer value containing the total number of pages in the report. + [out] A enumeration value that indicates whether the return value should be treated as an estimate or actual page count. This value is always when is . + + + Moves the report to the specified bookmark. + The ID of the bookmark. + + + Moves to the specified area of the document map. + The ID of the document map node. + + + Opens the page setup dialog box. + A enumeration value. Possible values are and depending on how the user closed the dialog box. + + + Navigates the report viewer control back to the parent report from a drillthrough report. + + + Displays the Print dialog box. + if the user clicked the Cancel button or if the event is cancelled; if the user clicked the OK button. + + + Displays the Print dialog box. + if the user clicked the Cancel button or if the event is cancelled; if the user clicked the OK button. + A object, used to initialize the dialog box. Unlike in the , this object's page ranged properties, such as the , , and properties, are used by the ReportViewer to initialize the print range in the Print dialog box. + + + Causes the current report in the Report Viewer to be processed and rendered. + + + Resets the control to its default values. + + + Reverts the page settings for the current report in the ReportViewer control to the settings in the report definition. + + + Sets the control display to normal or print preview mode. + A enumeration value specifying which display mode to use. Valid values are Normal or PrintLayout. + + + Sets the page settings that are used to print the current report in the ReportViewer control or display it in print layout mode. + A object that contains the new page settings.This parameter must not be null. + + + Gets or sets the background color of the control's report area. + A value indicating the background color of the control's report area. + + + Gets or sets the background image of the ReportViewer control. + An Image object containing the background image for the control. + + + Gets or sets the layout for the background image of the ReportViewer control. + An ImageLayout object containing the layout for the background image of the ReportViewer control. + + + Gets or sets the border style of the ReportViewer control. + A BorderStyle value. + + + Gets or sets the current page of the ReportViewer control's active report. + An integer value containing the current page of the report. The default value is 0. + + + Gets a object that indicates which operations can currently be performed on the ReportViewer control, the status of the prompt area, and the status of the document map area. + A object. + + + Gets a value that indicates the current display mode of the ReportViewer control. + A object. The default value is . + + + Gets or sets the collapsed state of the document map. + A Boolean value. A value of true indicates that the document map is collapsed. The default value is false. + + + Gets or sets the width of the document map in pixels. + An integer value containing the width of the document map in pixels. The default value is 40. + + + Indicates whether the size of the document map panel is fixed or changes when the viewer resizes. + A Boolean value indicating whether the size of the document map panel is fixed. The default value is true. + + + Gets or sets a Boolean value that indicates whether to keep the report server session from expiring as long as ReportViewer is running. + true to keep the report server session from expiring; otherwise false. The default is true. + + + Returns the local report in the ReportViewer control. + A object containing the local report in the ReportViewer control. + + + Gets or sets an object that contains custom messages for use by the ReportViewer control. + An object that implements the interface. + + + Gets or sets a enumeration value that indicates the default page count mode to use when rendering a report in the report area. + A object. The default value is . + + + Gets or sets a object that contains the settings for the default printer and print options that are used to initialize the Print dialog and the printer's Preferences dialog. + A object. + + + Gets or sets the processing mode of the ReportViewer control. + A enumerator value of either Local or Remote. The default value is Local. + + + Gets or sets the collapsed state of the parameter prompt area or the credentials prompt area. + true if the prompt area is collapsed; otherwise, false. The default is false. + + + Gets the search text and the start page of the current report search operation. + A object, or null if there is not an ongoing report search operation. + + + Gets a server report in the Report Viewer. + A object containing the server report in the Report Viewer. + + + Indicates whether the Back button is visible on the control. + A Boolean value indicating the visibility of the Back button. The default is value true. + + + Indicates whether the Context menu is visible. + A Boolean value. The default is value true. + + + Indicates whether prompts for user credentials will be displayed. + A Boolean value. The default value is true. + + + Indicates whether the button that shows and collapses the document map is visible on the split bar. + true if the button is visible on the split bar; otherwise, false. The default is true. + + + Indicates whether the Export button is visible on the control. + A Boolean value. The default value is true. + + + Indicates whether the Find text box is visible on the control. + A Boolean value. The default value is true. + + + Indicates whether the page navigation controls are visible. + A Boolean value. The default value is true. + + + Indicates whether parameter prompts are visible. + A Boolean value. The default value is true. + + + Gets or sets a value that indicates whether the Print button is visible. + true if the buttons for the print functions are visible; otherwise, false. The default is true. + + + Indicates whether progress animation is displayed during report processing. + A Boolean value. The default value is true. + + + Indicates whether the button that shows and collapses the prompt area is visible on the split bar. + true if the button is visible on the split bar; otherwise, false. The default is true. + + + Indicates whether the Refresh button is visible. + A Boolean value. The default value is true. + + + Indicates whether the Stop button is visible. + A Boolean value. The default value is true. + + + Indicates whether the Toolbar is visible. + A Boolean value. The default value is true. + + + Indicates whether the Zoom list box is visible. + A Boolean value. The default value is true. + + + Gets or sets the used to customize the look and feel of the ReportViewer control's toolbar as well as the context menu on the report. + A object. By default, a object is returned. + + + Gets or sets the delay in milliseconds before the busy status indicator is displayed to the user. + An int value that specifies the time in milliseconds. The default value is 1000 (1 second). + + + Gets the page zoom that is calculated based on the zoom mode. + An integer that represents the calculated zoom percentage. The default value is 100. + + + Gets or sets the zoom mode of the control. + A enumerator value indicating the zoom mode of the control. The default value is 100%. + + + Gets or sets the percentage of zoom used for the report display. + An integer value containing the percentage of zoom. + + + Represents a collection of objects. + + + Represents errors that occur while viewing or configuring a report. + + + This constructor supports the .NET Framework infrastructure and is not intended to be used directly from your code. + + + This constructor supports the .NET Framework infrastructure and is not intended to be used directly from your code. + + + Represents a collection of strings that contain custom headers. + + + Contains a set of read-only properties that indicate which operations are currently allowed in the ReportViewer control and the status of the prompt and document map areas. + + + Gets a Boolean value that indicates whether the prompt area of the ReportViewer control is currently visible. + true if the prompt area is currently visible; otherwise, false. + + + Gets a Boolean value that indicates whether the ReportViewer control has not started processing the report or has completed processing the report, and can change the display mode without canceling a report processing operation. + true if the ReportViewer control can change the display mode without canceling a report processing operation; otherwise, false. + + + Gets a Boolean value that indicates whether the currently displayed content will be affected by a zoom change. + true if the currently displayed content will be affected by a zoom change; otherwise, false. + + + Gets a Boolean value that indicates whether there is a previous search to continue and whether you can continue the previous search without canceling an existing report processing or interactive rendering operation. + true if the there is a previous search to continue and if you can continue the previous search without canceling an existing report processing or interactive rendering operation; otherwise, false. + + + Gets a Boolean value that indicates whether the report can be exported without canceling an existing report processing or interactive rendering operation. + true if the report can be exported without canceling an existing report processing or interactive rendering operation; otherwise, false. + + + Gets a Boolean value that indicates whether the current report is a drillthrough report and you can navigate back to its parent report without canceling an existing report processing or interactive rendering operation. + true if the current report is a drillthrough report and you can navigate back to its parent report without canceling an existing report processing or interactive rendering operation; otherwise, false. + + + Gets a Boolean value that indicates whether the property can be changed without canceling an existing report processing or interactive rendering operation. + true if the property can be changed without canceling an existing report processing or interactive rendering operation; otherwise, false. + + + Gets a Boolean value that indicates whether you can start printing the report without canceling an existing report processing or interactive rendering operation. + true if you can start printing the report without canceling an existing report processing or interactive rendering operation; otherwise, false. + + + Gets a Boolean value that indicates whether you can refresh the report data without cancelling an existing report processing or interactive rendering operation. + true if you can refresh the report data without canceling an existing report processing or interactive rendering operation; otherwise, false. + + + Gets a Boolean value that indicates whether you can search the report and highlight the search results without canceling an existing report processing or interactive rendering operation. + true if the you can search the report and highlight the search results without canceling an existing report processing or interactive rendering operation; otherwise, false. + + + Gets a Boolean value that indicates whether prompted parameters and prompted data source credentials can be submitted for the current report without canceling an existing report processing or interactive rendering operation. + true if prompted parameters and prompted data source credentials can be submitted for the current report without canceling an existing report processing or interactive rendering operation; otherwise, false. + + + Gets a Boolean value that indicates whether the current report has a document map and the document map can be displayed in the current display mode. + true if the current report has a document map and the document map can be displayed in the current display mode; otherwise, false. + + + Gets a Boolean value that indicates whether prompting is supported and there are prompts that can be displayed based on the visibility settings in the ReportViewer control. This property does not indicate whether the prompt areas are actually visible. + true if prompting is supported and there are prompts that can be displayed based on the visibility settings in the ReportViewer control; otherwise, false. + + + Gets a Boolean value that indicates whether ReportViewer is currently performing a potentially lengthy operation that can be canceled. + true if ReportViewer is currently performing a potentially lengthy operation that can be canceled; otherwise, false. + + + Gets a Boolean value that indicates whether the report has a document map and the document map is currently displayed. + true if the report has a document map and the document map is currently displayed; otherwise, false. + + + Gets a Boolean value that indicates whether the current processing mode supports prompting for parameters and data source credentials. + true if the current processing mode supports prompting for parameters and data source credentials; otherwise, false. + + + Provides data for a event in the ReportViewer control. + + + Constructs a SearchEventArgs object. + The search string. + The page on which to start searching. + Indicates that this event is occurring as a result of a Find Next command. + + + Indicates that this event is occurring as a result of a Find Next command. + A Boolean value. A value of true indicates that this event occurred because of a Find Next command. + + + Returns the search string being used for the search. + A String value containing the search string. + + + Returns the page number on which to start searching. + An integer containing the starting page number to search. + + + Represents the method that will handle a event. + The object that raised the event. + A object that contains information about the event. + + + Contains the search text and the start page of a search operation. + + + Gets the start page of the search operation. + An int value that represents the start page of the search operation. + + + Gets the search text. + A string that represents the search text. + + + Represents a report that is processed on the report server. + + + Initializes a new instance of the class. + + + Retrieves information about the data sources used for a report. + A that contains objects. + + + Retrieves information about the data sources used for a report, including whether all required credentials have been supplied for the report data sources. + A containing objects. + [out] Indicates whether all required credentials have been supplied for the data sources used by the server report. + + + Gets the default page settings specified in the report definition. + A object containing the default page settings for the local report. + + + Returns the current execution ID, or null (Nothing in Visual Basic) if no execution ID is available. + A String containing the execution ID. + + + Returns report parameter properties for the report. + A object containing an array of objects. + + + Returns the version of the report server. + A String value containing the server version information. + + + Returns the total number of soft pages in the report and a value that indicates the current page count mode. + An integer value containing the total number of soft pages in the report. For more information on soft pages, see Understanding Rendering Behaviors. + [out] A enumeration value that indicates the page count mode used to calculate the total number of soft pages. + + + Indicates whether the report can execute queries. + A Boolean value indicating whether the report can execute queries. + + + Returns all available rendering extensions for the server report. + An array of objects. + + + Loads the report definition on the report server for remote processing using a . + A class that can be used to read the Report Definition Language (RDL) file for the report. + + + Causes the report to be rendered with new data. + + + Renders the report with optional URL access parameters. + A containing the rendered report. + The format in which to render the report. This argument maps to a rendering extension. You can use any rendering extension available on the report server.To access the list of available rendering extensions, use the method. + An XML string that contains the device-specific content that is required by the rendering extension specified in the format parameter. For more information about device information settings for specific output formats, see Device Information Settings in SQL Server Books Online. + URL access parameters to pass to the report server. For more information, see the URL Access documentation in SQL Server Books Online.This parameter may be set to null. + [out] The MIME type of the rendered report. + [out] The file name extension used for the output file. + + + Renders the report with optional URL access parameters. + The format in which to render the report. This argument maps to a rendering extension. You can use any rendering extension available on the report server.To access the list of available rendering extensions, use the method. + An XML string that contains the device-specific content that is required by the rendering extension specified in the format parameter. For more information about device information settings for specific output formats, see Device Information Settings in SQL Server Books Online. + URL access parameters to pass to the report server. For more information, see the URL Access documentation in SQL Server Books Online.This parameter may be set to null. + The stream into which the rendered report will be written. + [out] The MIME type of the rendered report. + [out] The file name extension used for the output file. + + + Processes the report with the specified valuevalue and renders it in the specified format. + A array of the report in the specified format. + The format in which to render the report. This argument maps to a rendering extension. You can use any formatting extension available on the report server.To access the list of available rendering extensions, use the method. + An XML string that contains the device-specific content that is required by the rendering extension specified in the format parameter. For more information about device information settings for specific output formats, see Device Information Settings in SQL Server Books Online. + A enumeration value that specifies the page count mode. + [out] The MIME type of the rendered report. + [out] The encoding used when rendering the contents of the report. + [out] The file name extension used for the output file. + [out] The stream identifiers. You can use them to render external resources (images, for example) that are associated with the report. + [out] An array of objects that describes any warnings that occurred during report processing. + + + Returns a secondary stream associated with a processed report. + A array of the stream in the specified format. For more information about this data type, see "Byte Structure" in the .NET Framework documentation. + The format in which to render the stream. This argument maps to a rendering extension. You can use any rendering extension available on the report server.To access the list of available rendering extensions, use the method. + The stream identifier. + An XML string that contains the device-specific content that is required by the rendering extension specified in the format parameter. For more information about device information settings for specific output formats, see Device Information Settings in SQL Server Books Online. + The MIME type of the stream. + The Microsoft .NET Framework encoding class name. + + + Sets data source credentials for the report. + A set of data source credentials to submit to the report server. + + + Initializes a server report using a specific report execution on the server. + A String containing the execution ID to use. + + + Sets report parameter properties for the report. + An of objects that contains a list of the report parameters properties. + + + Gets a collection of objects. The object uses the cookies in this collection when making server requests. + A object that contains a collection of objects. + + + Gets a collection of strings that contain custom headers. + A object that contains a collection custom headers. + + + Gets or sets the unique identifier of the report history snapshot used for the server report. + A String value containing the unique identifier of the report history snapshot used for the server report. + + + Gets or sets the path to the report on the server. + A String value. + + + Gets or sets credentials to be used with the report server. + A object containing the credentials to be used with the report server. + + + Gets or sets the URL for the report server. + A object containing the URL for the report server. + + + Gets or sets the number of milliseconds to wait for server communications. + An integer value that contains the server time-out, in milliseconds. The default value is 600000 milliseconds. + + + Specifies the severity of a warning. + + + The severity level of the warning is Error. + + + The severity level of the warning is Warning. + + + Represents the exception that occurs when the report server version is not compatible with the report control. + + + Provides data for the event. + + + Constructs a SortEventArgs object. + The ID of the sort action. + A enumeration value that indicates the direction of the sort. The default value is None. + A Boolean value that indicates whether all other existing sorts should be cleared. The default is false. + + + Indicates whether all other existing sorts should be cleared. + A Boolean value that indicates whether all other existing sorts should be cleared. The default is false. + + + Gets an enumeration value that indicates the direction of the sort. + A enumeration value that indicates the direction of the sort. + + + Gets the unique identifier of the sort action. + A String containing the ID of the sort action. + + + Represents the method that will handle the event of a . + The object raising the event. + A object containing information about the event. + + + Indicates the direction of a sort operation. + + + Indicates an ascending sort. + + + Indicates a descending sort. + + + Provides data for the event. + + + Gets the list of data source names for the subreport. + A list of String objects containing the names of the data sources for the subreport. + + + Returns a collection of data sources for the subreport. + A collection of objects. + + + Gets a collection of parameters for the subreport. + A containing information about the subreport parameters. + + + Returns the name of the subreport. + A string containing the name of the subreport. + + + Represents the method that will handle the event of a . + The object that raised the event. + A object containing information about the event. + + + Represents a possible valid value for a parameter. + + + Gets a label for the valid value. + A read-only String object. + + + Gets a valid value. + A read-only String object. + + + Represents a list of errors or warnings that are returned when a report is rendered or processed. + + + Gets the error code that is assigned to the warning. Read-only. + A read-only string value. + + + Gets a message that describes the error or warning. Read-only. + A read-only string value. + + + Gets the name of the object in the report definition that contributed to the warning. Read-only. + A read-only string value. + + + Gets the type of object in the report definition that caused the error or warning. Read-only. + A read-only string value. + + + Gets the severity type of the error or warning. Read-only. + A read-only string value. + + + Represents the method that will handle the event of a . + The object raising the event. + A object containing information about the event. + + + Provides data for a event. + + + Constructs a new ZoomChangeEventArgs object. + A enumerator value specifying the zoom mode selected. + An integer specifying the selected percentage of zoom. + + + Gets the zoom mode select for the event. + A enumerator value specifying the zoom mode selected. + + + Gets the zoom percentage value specified for the event. + An integer specifying the selected percentage of zoom. + + + Specifies the zoom mode for the ReportViewer control. + + + Sets the zoom mode to full page. + + + Sets the zoom mode to page width. + + + Sets the zoom mode to a percentage. + + + \ No newline at end of file diff --git a/C2P/bin/SteamWare.dll b/C2P/bin/SteamWare.dll index a9e4680..759de9d 100644 Binary files a/C2P/bin/SteamWare.dll and b/C2P/bin/SteamWare.dll differ diff --git a/C2P/bin/SteamWare.xml b/C2P/bin/SteamWare.xml index 70ff845..192d270 100644 --- a/C2P/bin/SteamWare.xml +++ b/C2P/bin/SteamWare.xml @@ -55,6 +55,11 @@ tipo id controllo con classi di base comune da cui derivare gli *.asmx
  • + + + imposto il tipo di anagrafica del controlloS + + nome della pagina correntemente caricata @@ -424,6 +429,32 @@ + + + variabile salvata in view state x la stringa di sorting - dg 2 + + + + + variabile salvata in view state x la stringa di sorting - dg 2 + + + + + legge e scrive in viewState la stringa di filtraggio... + + + + + variabile salvata in viewstate x la direzione del sorting + + + + + genera la stringa filtro x i cdc autorizzati x l'user + + + esegue la ricerca dei cdc nelle posizioni indicate dal filtro e restituisce elenco distinct degli stessi @@ -499,6 +530,11 @@ + + + tipo di vista del modulo + + effettua la registrazione degli eventi @@ -549,42 +585,6 @@ The tipo. - - - imposto il tipo di anagrafica del controlloS - - - - - variabile salvata in view state x la stringa di sorting - dg 2 - - - - - variabile salvata in view state x la stringa di sorting - dg 2 - - - - - legge e scrive in viewState la stringa di filtraggio... - - - - - variabile salvata in viewstate x la direzione del sorting - - - - - genera la stringa filtro x i cdc autorizzati x l'user - - - - - - tipo di vista del modulo - - classe gestione auth @@ -735,21 +735,6 @@ inizializzazione classe - - - valorizza i diff dei valori old e new - - - - - calcola solo il vettore dei valori old (x delete) - - - - - oggetto statico per il confronto valori - - stringa diff dei valori originali modificati @@ -760,6 +745,16 @@ stringa diff dei valori nuovi modificati + + + valorizza i diff dei valori old e new + + + + + calcola solo il vettore dei valori old (x delete) + + dictionary dei parametri old @@ -770,6 +765,11 @@ dictionary dei parametri new + + + oggetto statico per il confronto valori + + classe di gestione lettura @@ -1258,16 +1258,16 @@ - - - classe singleton x la gestione dei tableadapters - - elenco lingue ammesse da vocabolario... + + + classe singleton x la gestione dei tableadapters + + classe di gestione dei db x creazione/update alla versione richiesta @@ -1389,6 +1389,14 @@ + + + invia email ad utente con url x reset hash password + + destinatario + hashPasswd ATTUALE (in chiaro) + + invia email ad utente con url x enroll @@ -1407,6 +1415,11 @@ + + + restituisce nome cookie di auth (o default...) + + genera la passphrase utente a partire dai parametri richiesti @@ -1428,59 +1441,6 @@ cancella da session l'utente - - - conta il numero di permessi utente per la pagina attuale e restituisce true se ne trova almeno 1 - - - - - - - verifica se il permesso utente per la pagina attuale sia write per almeno 1 diritto assegnato (restituisce true se ne trova almeno 1 con permessi2funzione.readwrite='S') - - - - - - - Procedura da chiamare DOPO aver messo in session i dati utente/email x caricare gli altri dati - - - - - - - carica la riga dati utente - - - - - Carica la tabella diritti dell'utente da db e salva in session - - - - - Effettua setup dei permessi una volta salvati i diritti - - - - - verifica nella tab diritti se l'utente abbia il right richiesto e fornisce bool in risposta - - - - - - - restituisce il nome della pagina corrente - - - - - restituisce nome cookie di auth (o default...) - - restituisce la tabella diritti da session @@ -1531,6 +1491,59 @@ è un boolean che indica se in session ci siano user/email e DeviceSecret (cookie) e quindi utente autenticato in precedenza... + + + conta il numero di permessi utente per la pagina attuale e restituisce true se ne trova almeno 1 + + + + + + + verifica se il permesso utente per la pagina attuale sia write per almeno 1 diritto assegnato (restituisce true se ne trova almeno 1 con permessi2funzione.readwrite='S') + + + + + + + Procedura da chiamare DOPO aver messo in session i dati utente/email x caricare gli altri dati + + + + + + + carica la riga dati utente + + + + + Carica la tabella diritti dell'utente da db e salva in session + + + + + Effettua setup dei permessi una volta salvati i diritti + + + + + verifica nella tab diritti se l'utente abbia il right richiesto e fornisce bool in risposta + + + + + + + imposta la lingua utente dal valore della riga DB + + + + + oggetto lingua utente con metodi get/set + + pagina correntemente visualizzata (URL in sessione) @@ -1541,6 +1554,11 @@ pagina precedentemente visualizzata (URL in sessione) + + + restituisce il nome della pagina corrente + + classe gestione parametri deviceper stampa @@ -1606,36 +1624,17 @@ helper x raccolta dati di diagnostica + + + uptime macchina (formattato) + + calcolo uptime in formato timespan - - - elenco devices USB - - - - - - registra esito ping ad un dato IP/hostname - - IPaddress / host name. - - - - restituisce contenuto di una pagina web (per testing) - - - - - - - uptime macchina (formattato) - - restituisce elenco dischi con utilizzo (formattato) @@ -1653,11 +1652,30 @@ + + + elenco devices USB + + + elenco porte seriali + + + registra esito ping ad un dato IP/hostname + + IPaddress / host name. + + + + restituisce contenuto di una pagina web (per testing) + + + + classe definizione info oggetti USB @@ -2419,6 +2437,14 @@ + + + verifica se il file indicato esista in _path + + + + + elimina il file indicato dalla directory di lavoro @@ -2935,6 +2961,11 @@ avvio del logger nella dir desiderata + + + livello di log applicazione (da web.config, chiave '_logLevel') + + avvio del logger nella dir desiderata @@ -2998,11 +3029,6 @@ - - - livello di log applicazione (da web.config, chiave '_logLevel') - - tipo di log ammesso @@ -3294,12 +3320,22 @@ + + + elenco dictionary delle tab in cache da aggiornare con update svuotando da cache... + + aggiunge la stringa corrente nel dictionary delle tabelle messe in cache e da aggiornare su comando update + + + elenco dictionary dei valori in session da NON aggiornare con update... + + aggiunge la stringa corrente nel dictionary delle tabelle messe in session che vanno preservate da comando update (es: oggetto selezionato...) @@ -3312,15 +3348,48 @@ forza lo svuotamento delel tabelle indicate come in cache... - + - elenco dictionary delle tab in cache da aggiornare con update svuotando da cache... + Salted password hashing with PBKDF2-SHA1. + Author: havoc AT defuse.ca + www: http://crackstation.net/hashing-security.htm + Compatibility: .NET 3.0 and later. - + - elenco dictionary dei valori in session da NON aggiornare con update... + Creates a salted PBKDF2 hash of the password. + The password to hash. + The hash of the password. + + + + Validates a password given a hash of the correct one. + + The password to check. + A hash of the correct password. + True if the password is correct. False otherwise. + + + + Compares two byte arrays in length-constant time. This comparison + method is used so that password hashes cannot be extracted from + on-line systems using a timing attack and then attacked off-line. + + The first byte array. + The second byte array. + True if both byte arrays are equal. False otherwise. + + + + Computes the PBKDF2-SHA1 hash of a password. + + The password to hash. + The salt. + The PBKDF2 iteration count. + The length of the hash to generate, in bytes. + A hash of the password. @@ -3376,6 +3445,11 @@ web control che disegna un grafico a torta + + + tipo di grafico (2D/3D) + + altezza di default @@ -3401,6 +3475,41 @@ soglia minima 5% per mostrare il dato + + + ampiezza del grafico + + + + + altezza del grafico + + + + + padding grafico/container + + + + + boolean se si debba mostrale la legenda + + + + + percentuale minima da mostrare + + + + + serie di dati (tipizzata) ma mostrare + + + + + testo associato al controllo + + renderizza il contenuto @@ -3446,46 +3555,6 @@ - - - tipo di grafico (2D/3D) - - - - - ampiezza del grafico - - - - - altezza del grafico - - - - - padding grafico/container - - - - - boolean se si debba mostrale la legenda - - - - - percentuale minima da mostrare - - - - - serie di dati (tipizzata) ma mostrare - - - - - testo associato al controllo - - Classe gestione metodi di accesso ai dati embeddati @@ -3724,11 +3793,71 @@ + + + restituisce la tabella diritti da session + + + + + tabella dei permessi utente + + + + + tabella dei permessi utente di tipo "WRITE" enabled + + inizializza la gestione utente... + + + retituisce username AD + + + + + oggetto utente con metodi get/set + + + + + oggetto password con metodi get/set + + + + + oggetto dominio con metodi get/set + + + + + oggetto modulo (applicazione) con metodi get/set + + + + + oggetto lingua utente con metodi get/set + + + + + oggetto runMode corrente + + + + + restituisce true se utente forzato da forceUser.aspx + + + + + restituisce i valori della riga utente da db + + restituisce riga utente data la matricola... @@ -3736,6 +3865,31 @@ matricola + + + restituisce una stringa formattata con cognome, nome e matricola + + + + + restituisce una stringa della sigla dell'utente + + + + + restituisce una stringa formattata con cognome e nome + + + + + restituisce una stringa formattata con cognome + + + + + restituisce una stringa formattata con nome + + traduce il lemma nella lingua dell'user corrente @@ -3765,6 +3919,11 @@ + + + fornisce un file XML della mappa del sito abilitato per l'utente... + + LogOff utente con reset dati @@ -3824,6 +3983,11 @@ + + + è un boolean che indica se in session ci siano user/dominio e quindi utente autenticato in rpecedenza... + + conta il numero di permessi utente per la pagina attuale e restituisce true se ne trova almeno 1 @@ -3963,101 +4127,6 @@ versione statica della classe utente come singleton UtenTeSignletoN - - - restituisce la tabella diritti da session - - - - - tabella dei permessi utente - - - - - tabella dei permessi utente di tipo "WRITE" enabled - - - - - retituisce username AD - - - - - oggetto utente con metodi get/set - - - - - oggetto password con metodi get/set - - - - - oggetto dominio con metodi get/set - - - - - oggetto modulo (applicazione) con metodi get/set - - - - - oggetto lingua utente con metodi get/set - - - - - oggetto runMode corrente - - - - - restituisce true se utente forzato da forceUser.aspx - - - - - restituisce i valori della riga utente da db - - - - - restituisce una stringa formattata con cognome, nome e matricola - - - - - restituisce una stringa della sigla dell'utente - - - - - restituisce una stringa formattata con cognome e nome - - - - - restituisce una stringa formattata con cognome - - - - - restituisce una stringa formattata con nome - - - - - fornisce un file XML della mappa del sito abilitato per l'utente... - - - - - è un boolean che indica se in session ci siano user/dominio e quindi utente autenticato in rpecedenza... - - pagina correntemente visualizzata (URL in sessione) diff --git a/C2P/obj/deploy/C2P.csproj.FileListAbsolute.txt b/C2P/obj/deploy/C2P.csproj.FileListAbsolute.txt index 3ef091f..3fd7260 100644 --- a/C2P/obj/deploy/C2P.csproj.FileListAbsolute.txt +++ b/C2P/obj/deploy/C2P.csproj.FileListAbsolute.txt @@ -33,3 +33,40 @@ C:\Users\samuele\Documents\Visual Studio 2012\Projects\C2P\C2P\bin\System.Web.Op C:\Users\samuele\Documents\Visual Studio 2012\Projects\C2P\C2P\obj\deploy\C2P.csprojResolveAssemblyReference.cache C:\Users\samuele\Documents\Visual Studio 2012\Projects\C2P\C2P\obj\deploy\C2P.dll C:\Users\samuele\Documents\Visual Studio 2012\Projects\C2P\C2P\obj\deploy\C2P.pdb +C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\C2P\C2P\bin\NLog.config +C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\C2P\C2P\bin\C2P.dll.config +C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\C2P\C2P\bin\C2P.dll +C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\C2P\C2P\bin\C2P.pdb +C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\C2P\C2P\bin\Antlr3.Runtime.dll +C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\C2P\C2P\bin\AspNet.ScriptManager.jQuery.dll +C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\C2P\C2P\bin\AspNet.ScriptManager.jQuery.UI.Combined.dll +C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\C2P\C2P\bin\C2P_Data.dll +C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\C2P\C2P\bin\Elmah.dll +C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\C2P\C2P\bin\ImageResizer.dll +C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\C2P\C2P\bin\ImageResizer.Mvc.dll +C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\C2P\C2P\bin\ImageResizer.Plugins.SeamCarving.dll +C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\C2P\C2P\bin\Microsoft.AspNet.FriendlyUrls.dll +C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\C2P\C2P\bin\Microsoft.AspNet.Web.Optimization.WebForms.dll +C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\C2P\C2P\bin\Microsoft.ScriptManager.MSAjax.dll +C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\C2P\C2P\bin\Microsoft.ScriptManager.WebForms.dll +C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\C2P\C2P\bin\Microsoft.Web.Infrastructure.dll +C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\C2P\C2P\bin\Newtonsoft.Json.dll +C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\C2P\C2P\bin\NLog.dll +C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\C2P\C2P\bin\SteamWare.dll +C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\C2P\C2P\bin\System.Web.Optimization.dll +C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\C2P\C2P\bin\WebGrease.dll +C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\C2P\C2P\bin\Flesk.ViewState.dll +C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\C2P\C2P\bin\ICSharpCode.SharpZipLib.dll +C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\C2P\C2P\bin\Microsoft.SqlServer.Types.dll +C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\C2P\C2P\bin\C2P_Data.pdb +C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\C2P\C2P\bin\Antlr3.Runtime.pdb +C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\C2P\C2P\bin\ImageResizer.xml +C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\C2P\C2P\bin\ImageResizer.Mvc.xml +C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\C2P\C2P\bin\ImageResizer.Plugins.SeamCarving.xml +C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\C2P\C2P\bin\Microsoft.AspNet.FriendlyUrls.xml +C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\C2P\C2P\bin\Newtonsoft.Json.xml +C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\C2P\C2P\bin\NLog.xml +C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\C2P\C2P\bin\System.Web.Optimization.xml +C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\C2P\C2P\obj\deploy\C2P.csprojResolveAssemblyReference.cache +C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\C2P\C2P\obj\deploy\C2P.dll +C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2015\Projects\C2P\C2P\obj\deploy\C2P.pdb diff --git a/C2P/obj/deploy/C2P.dll b/C2P/obj/deploy/C2P.dll index 17b7dfa..6a63935 100644 Binary files a/C2P/obj/deploy/C2P.dll and b/C2P/obj/deploy/C2P.dll differ diff --git a/C2P_CronJob/C2P_CronJob.csproj b/C2P_CronJob/C2P_CronJob.csproj index 6206c1f..6aa1edf 100644 --- a/C2P_CronJob/C2P_CronJob.csproj +++ b/C2P_CronJob/C2P_CronJob.csproj @@ -49,16 +49,16 @@ 4 - 3B5BEB877E773A546F6E29646661FA0AF44F0E92 + 238903E22E7E6B6958D717B67568A84F2DFBA407 - C2P_CronJob_TemporaryKey.pfx + C2P_CronJob_1_TemporaryKey.pfx true - true + false bin\IIS02\ @@ -118,7 +118,6 @@ - PreserveNewest diff --git a/C2P_CronJob/C2P_CronJob_TemporaryKey.pfx b/C2P_CronJob/C2P_CronJob_TemporaryKey.pfx deleted file mode 100644 index 79b6344..0000000 Binary files a/C2P_CronJob/C2P_CronJob_TemporaryKey.pfx and /dev/null differ diff --git a/C2P_CronJob/bin/Release/C2P_CronJob.application b/C2P_CronJob/bin/Release/C2P_CronJob.application index d610fdf..e133d05 100644 --- a/C2P_CronJob/bin/Release/C2P_CronJob.application +++ b/C2P_CronJob/bin/Release/C2P_CronJob.application @@ -4,14 +4,14 @@ - + - bxI03TxkMUmsyqt77ro7c/SCD/Q= + 3k7EnsytcXeLhkhD4yunQfd6V64= diff --git a/C2P_CronJob/bin/Release/C2P_CronJob.exe.manifest b/C2P_CronJob/bin/Release/C2P_CronJob.exe.manifest index a6463b9..f070bab 100644 --- a/C2P_CronJob/bin/Release/C2P_CronJob.exe.manifest +++ b/C2P_CronJob/bin/Release/C2P_CronJob.exe.manifest @@ -43,27 +43,12 @@ - + - - - - - - - - - - - - - - - - + @@ -71,32 +56,37 @@ + + + + + - + - VoRF4oUGkLXkXEC//iA3h3inZIY= + vRj5JqFfJ2RaXozGWgLPUMvkUi0= - + - PY0yG0KPjn2Sj44zoAh5QqZJpW0= + 25QdMpOfCx51LvHnLWtfZ8/LKpE= @@ -125,134 +115,38 @@ - - + + - IulC6mbZq57W4UYy2G5SjsiVf4U= + JkA25Av6n+2C1n0smnudC+VwzTo= - - + + - NCBCoXAHOxfSVbZEwmvw6kkpQmI= + 5F6aT03ed2E6iC5r7BkGwIRlbfI= - - - - - - - - 05DXfRBcqQgghwUHusAumyYVQa0= - - - - - - - - - - - - V29HDxUDNe4gqV2BWZKmt/hMTjo= - - - - - - - - - - - - vmEEFEeK+jY1DyfCpjGoUSlygFc= - - - - - - - - - - - - MaWkxGTvI7dfq/aA2gw45h9bkZM= - - - - - - - - - - - - RLsNdHI2z89N92w3CGXs9rfDen4= - - - - - - - - - - - - PwgEnV0H4kC0jdvjo+sXasH/Hjs= - - - - - - - - - - - - 1QT44HYiFHN+FKxloHUmGZhwwjo= - - - - - - - - - - - - Hfb6TnlEZfgY0x/HS0XstrkY6TU= - - - - - + - WCZux0S90xinA+bU2R63Gov7x8U= + 9eqo540px2ZOxHAVv6LcD6Pu8Ds= diff --git a/C2P_CronJob/bin/Release/C2P_Data.dll b/C2P_CronJob/bin/Release/C2P_Data.dll index 68d0bdd..c9cb4e2 100644 Binary files a/C2P_CronJob/bin/Release/C2P_Data.dll and b/C2P_CronJob/bin/Release/C2P_Data.dll differ diff --git a/C2P_CronJob/bin/Release/Microsoft.ReportViewer.Common.dll b/C2P_CronJob/bin/Release/Microsoft.ReportViewer.Common.dll new file mode 100644 index 0000000..fe74ce4 Binary files /dev/null and b/C2P_CronJob/bin/Release/Microsoft.ReportViewer.Common.dll differ diff --git a/C2P_CronJob/bin/Release/Microsoft.ReportViewer.WinForms.dll b/C2P_CronJob/bin/Release/Microsoft.ReportViewer.WinForms.dll new file mode 100644 index 0000000..21cd6b2 Binary files /dev/null and b/C2P_CronJob/bin/Release/Microsoft.ReportViewer.WinForms.dll differ diff --git a/C2P_CronJob/bin/Release/Microsoft.ReportViewer.WinForms.xml b/C2P_CronJob/bin/Release/Microsoft.ReportViewer.WinForms.xml new file mode 100644 index 0000000..bb086b5 --- /dev/null +++ b/C2P_CronJob/bin/Release/Microsoft.ReportViewer.WinForms.xml @@ -0,0 +1,1846 @@ + + + + Microsoft.ReportViewer.WinForms + + + + The namespace contains methods and properties for the ReportViewer Windows forms control. + + + Provides data for the Back event. + + + Constructs a new BackEventArgs object. + The parent report of the drillthrough report. + + + Gets the parent report of the drillthrough report. + A (if the ReportViewer control is in local processing mode) or object (if the ReportViewer control is in remote processing mode) containing the parent report of the drillthrough report. + + + Represents the method that will handle the event of a . + The object that raised the event. + A object that contains the event arguments. + + + Provides data for the event. + + + Constructs a BookmarkNavigationEventArgs object. + The bookmark identification string. + + + Gets the bookmark identification string. + A read-only string object. + + + Represents the method that will handle the event of a . + The object that raised the event. + A object that contains the event arguments. + + + Represents errors that occur when the control is rendering a processed report from report page layout (RPL) format into GDI+ format. + + + Provides a stream to the ReportViewer control for rendering. + A Stream object to which the ReportViewer control can write data. + The name of the stream. + The file name extension to use if a file stream is being created. + An Encoding enumerator value specifying the character encoding of the stream. This may be null if the stream does not contain characters. + A string containing the MIME type of the stream. + A Boolean value indicated whether the stream needs to support seeking. If the value is false, the stream will be forward-only and will be sent to the client in chunks as it is created. If the value is true, the stream may be written in any order. + + + Represents data source credentials. + + + Constructs a DataSourceCredentials object. + + + Gets or sets the user name to be used by the data source for connecting to a report server. + A string value. + + + Gets or sets the password to be used by the data source for connecting to the report server. + A string containing the password. + + + Gets or sets the user identification to be used by the data source for connecting to the report server. + A string containing the user ID. + + + Represents a collection of objects. + + + Initializes a new instance of the class. + + + Gets the object of the specified name from the collection. + A object. + Name of the object. This parameter is not case sensitive. + + + Represents a possible display mode for the ReportViewer control. + + + Specifies that the control is in normal mode. This mode causes the control to display logical pages. + + + Specifies that the control is in print layout mode. In this mode, the control displays physical pages. + + + Provides data for the event. + + + Construct a new DocumentMapNavigationEventArgs object. + A string containing the document map node ID. + + + Gets the unique identifier of the document map node selected. + A read-only string value containing the document map node ID. + + + Represents the method that will handle the event of a . + The object raising the event. + A object containing the event arguments. + + + Represents a single node in the document map. + + + Gets a collection of child document map nodes. + A read-only array of objects. + + + Gets the unique identifier of the document map node. + A read-only string value. + + + Gets the label associated with the document map node. + A read-only string value. + + + Provides data for the event. + + + Constructs a new DrillthroughEventArgs object. + The path of the drillthrough report. + The target report of the drillthrough action. + + + Gets the target report of the drillthrough action. + A read-only or object. + + + Gets the path of the drillthrough report. + A read-only string value. + + + Represents the method that will handle the event of a . + The object that raised the event. + A object that contains the event data. + + + Represents the method that will handle the event. + The object firing the event. + A class containing the arguments for the event. + + + Contains information about a event. + + + Gets the URL that the user clicked on in a report. + A string value containing the hyperlink. + + + Represents the method that will handle a event. + The object that raised the event. + A object that contains the arguments for this event. + + + Allows objects to provide credentials to use for connecting to a report server. + + + Provides forms authentication to be used to connect to the report server. + A Boolean value. A value of true indicates that forms authentication should be used. + [out] A report server authentication cookie. + [out] The name of the user. + [out] The password of the user. + [out] The authority to use when authenticating the user, such as a Microsoft Windows domain. + + + Specifies the user to impersonate when connecting to a report server. + A WindowsIdentity object representing the user to impersonate. + + + Returns network credentials to be used for authentication with the report server. + A NetworkCredentials object. + + + Allows applications to provide customized user interface messages. + + + Provides the ToolTip text for the Back button. + A string value. + + + Provides the text for the Back menu item. + A string value. + + + Provides the text for the Change Credentials button. + A string value. + + + Provides the ToolTip text for the Current Page text box. + A string value. + + + Provides the ToolTip text for the Document Map button. + A string value. + + + Provides the text for the document map menu item. + A string value. + + + Provides the ToolTip text for the Export button. + A string value. + + + Provides the text for the Export menu item. + A string value. + + + Provides the text for a false value. + A string value. + + + Provides the text for a Find button. + A string value. + + + Provides the ToolTip text for the Find button. + A string value. + + + Provides the text for the Find Next button. + A string value. + + + Provides the ToolTip text for the Find Next button. + A string value. + + + Provides the ToolTip text for the First Page button. + A string value. + + + Provides the ToolTip text for the Last Page button. + A string value. + + + Provides the ToolTip text for the Next Page button. + A string value. + + + Provides the text for the no more matches message. + A string value. + + + Provides the text for the Null check box. + A string value. + + + Provides the ToolTip text for the Null check box. + A string value. + + + Provides the text for a null value. + A string value. + + + Provides the text for the pagination message. + A string value. + + + Provides the ToolTip text for the Page Setup button. + A string value. + + + Provides the text for the Page Setup menu item. + A string value. + + + Provides the ToolTip text for the Parameter Area button. + A string value. + + + Provides the text for the password prompt. + A string value. + + + Provides the ToolTip text for the Previous Page button. + A string value. + + + Provides the text for the Print button. + A string value. + + + Provides the ToolTip text for the Print Layout button. + A string value. + + + Provides the text for the Print Layout menu item. + A string value. + + + Provides the text for the Print menu item. + A string value. + + + Provides the text for the progress message that is displayed when a report is processing. + A string value. + + + Provides the ToolTip text for the Refresh button. + A string value. + + + Provides the text for the Refresh menu item. + A string value. + + + Provides the ToolTip text for the Search text box. + A string value. + + + Provides text for the Select All item in a multivalue drop-down list box. + A string value. + + + Provides text for the Select a value prompt. + A string value. + + + Provides the ToolTip text for the Stop button. + A string value. + + + Provides the text for the Stop menu item. + A string value. + + + Provides the text for the text not found message. + A string value. + + + Provides the ToolTip text for the Total Pages item. + A string value. + + + Provides the text for a true value. + A string value. + + + Provides the text for the user name prompt. + A string value. + + + Provides the text for the View Report button. + A string value. + + + Provides the ToolTip text for the View Report button. + A string value. + + + Provides the ToolTip text for the Zoom control. + A string value. + + + Provides the text for the Zoom menu item. + A string value. + + + Provides the text for the Zoom To Page Width option. + A string value. + + + Provides text for the Zoom To Whole Page item. + A string value. + + + Defines methods and properties for implementing customized user interface messages. + + + Returns the error text to display when the user name has not been supplied for the data source credentials. + Returns a String that contains the error text to display when the user name has not been supplied for the data source credentials. + The prompt value that identifies which data source is missing a value. + + + Returns a localized name for the current export format. + Returns a String that contains the localized name for the current export format. + The name of the current export format (for example, EXCEL, PDF). + + + Returns the error text to display when a selection has not been made for a multivalue report parameter. + Returns a String that contains the error text to display when a selection has not been made for a multivalue report parameter. + The prompt value that identifies which report parameter has not been specified. + + + Returns the error text to display when a report parameter has not been specified. + Returns a String that contains the error text to display when a report parameter has not been specified. + The prompt value that identifies which report parameter has not been specified. + + + Gets the text for the All Files filter option in the Save As dialog box when a report is exported. + A String that contains the text to display for the All Files filter option in the Save As dialog box when a report is exported. + + + Gets the ToolTip text to display when a pointer pauses over a report parameter with a data type of DateTime. + A String that contains the ToolTip text to display when a pointer pauses over a report parameter that has a data type of DateTime. + + + Gets the title text for the dialog box when an error occurs exporting a report. + A String that contains the title text for the dialog box when an error occurs exporting a report. + + + Gets the ToolTip text to display when a pointer pauses over a report parameter with a data type of Float. + A String that contains the ToolTip text to display when a pointer pauses over a report parameter that has a data type of Float. + + + Gets the title text for the dialog box if an error occurs when the user selects a Hyperlink in the report. + A String that contains the title text for the dialog box if an error occurs when the user selects a Hyperlink in the report. + + + Gets the ToolTip text to display when a pointer pauses over a report parameter with a data type of Integer. + A String that contains the ToolTip text to display when a pointer pauses over a report parameter that has a data type of Integer. + + + Gets the title text for the message box dialog box displayed by the report viewer. + A String that contains the title text for the message box dialog box displayed by the report viewer. + + + Gets the text to display when the processing of a report has been stopped. + A String that contains the text to display when the processing of a report has been stopped. + + + Gets the title text for the dialog box when an error occurs in the prompt area. + A String that contains the title text for the dialog box when an error occurs in the prompt area. + + + Gets the ToolTip text to display when a pointer pauses over a report parameter with a data type of String. + A String that contains the ToolTip text to display when a pointer pauses over a report parameter that has a data type of String. + + + Allows applications to provide customized user interface messages. + + + Returns the string in the default toolbar that represents the total number of pages in the current report and the that was used to determine it. + A localized string that represents the total number of pages and the page count mode. + The total number of pages in the current report. + Indicates whether the pageCount parameter represents an estimated or actual number of pages. + + + Gets the text of the Cancel link in the wait control. + A string value that represents the Cancel link text. + + + Gets the text displayed on the Cancel button in the Exporting dialog box after the user selects an export format. + A string value that represents the text of the Cancel button. + + + Gets the text displayed in the Exporting dialog box after the user selects an export format and that indicates that the export is in progress and the user must wait for it to complete. + A string value that indicates that an export is in progress and that the user needs to wait for it to complete. + + + Gets the title of the Exporting dialog box that opens after the user selects an export format. + A string value that specifies the title of the Exporting dialog box. + + + Gets the tooltip text for the radio button that indicates false for a Boolean parameter. + A string value that represents the tooltip text for the radio button that indicates false for a Boolean parameter. + + + Gets the tooltip text for the radio button that indicates true for a Boolean parameter. + A string value that represents the tooltip text for the radio button that indicates true for a Boolean parameter. + + + Represents errors that occur while viewing a locally processed report. + + + Represents a report that is processed and rendered locally without connecting to a report server. + + + Initializes a new instance of the class. + + + Occurs when a subreport is processed. + + + Adds the supplied assembly to the list of assemblies that run in full trust mode in the sandboxed application domain. + The name of the assembly to be added. + + + Adds the supplied assembly to the list of assemblies that are trusted to execute in the current . + The name of the assembly to be added. + + + Releases all resources that are used by the object. + + + Causes processing extensions and expressions in the report to be executed in the current . + An object that contains security information about the report. + + + Causes processing extensions and expressions to be run in an application domain with limited permissions. + + + Returns the names of all datasets used within the local report. + An array of string objects that contain the list of dataset names. + + + Gets the default page settings specified in the local report. + A object that contains the default page settings for the local report. + + + Returns report parameter properties for the report. + A object that contains a collection of objects. + + + Returns the total number of soft pages in the report and a enumeration value that indicates the current page count mode. + An integer value containing the total number of soft pages in the report. For more information on soft pages, see Understanding Rendering Behaviors. + [out] A enumeration value that indicates the page count mode used to calculate the total number of soft pages. + + + Returns all available rendering extensions for the local report. + An array of objects. + + + Loads a report definition from the local file system using a . + A class that contains the report definition for the local report. + + + Loads a subreport definition using a . + The path and file name of the subreport definition. + A class that can be used to read the report definition language (RDL) file for the subreport. + + + Loads a subreport definition using a . + The path and file name of the subreport definition. + A object that will contain the report definition language (RDL) for the subreport. + + + Causes the local report to be rendered with new data. + + + Causes the object to release its reference to the sandboxed application domain immediately. + + + Processes the report and renders it in the specified format using a stream provided by a callback function. + The format in which to render the report. This argument maps to a rendering extension. Supported formats include Excel, PDF, Word, and Image. To access the list of available rendering extensions, use the method. + An XML string that contains the device-specific content that is required by the rendering extension specified in the format parameter. For more information about device information settings for specific output formats, see Device Information Settings in SQL Server Books Online. + A delegate function that will be used to provide a object for rendering. + [out] An array of objects that describes any warnings that occurred during report processing and rendering. + + + Processes the report with a specified page count mode and renders it in the specified format using a stream provided by a callback function. + The format in which to render the report. This argument maps to a rendering extension. Supported formats include Excel, PDF, Word, and Image. To access the list of available rendering extensions, use the method. + An XML string that contains the device-specific content that is required by the rendering extension specified in the format parameter. For more information about device information settings for specific output formats, see Device Information Settings in SQL Server Books Online. + A enumeration value that specifies the page count mode. + A delegate function that will be used to provide a object for rendering. + [out] An array of objects that describes any warnings that occurred during report processing and rendering. + + + Processes the report with a specified page count mode and renders it in the specified format. + A array of the report in the specified format. + The format in which to render the report. This argument maps to a rendering extension. Supported formats include Excel, PDF, Word, and Image. To access the list of available rendering extensions, use the method. + An XML string that contains the device-specific content that is required by the rendering extension specified in the format parameter. For more information about device information settings for specific output formats, see Device Information Settings in SQL Server Books Online. + A enumeration value that specifies the page count mode. + [out] The MIME type of the rendered report. + [out] The encoding used when rendering the contents of the report. + [out] The file name extension used for the output file. + [out] The stream identifiers. You can use them to render external resources (images, for example) that are associated with the report. + [out] An array of objects that describes any warnings that occurred during report processing and rendering. + + + Sets the base permissions for the sandboxed application domain with the supplied permission set. + The to set. The default base permission is Execution. + + + Sets report parameter properties for the local report. + An of objects that contains a list of the report parameter properties. + + + Gets a collection of data sources used by the report. + A read-only object. + + + Indicates whether the report can be rendered if it has external images. + A Boolean value. A value of true indicates that the local report can be rendered if it has external images. The default value is false. + + + Indicates whether the report can be rendered if it contains hyperlink actions. + A Boolean value. A value of true indicates that the report can be rendered if it contains hyperlink actions. The default value is false. + + + Returns the parameters passed from a parent report to this report, if it is a drillthrough report. + An of objects that represent the parameters passed from the parent reports to the drillthrough report, or an empty collection if this report is not a drillthrough report. + + + Gets or sets the name of the report-embedded resource. + A string containing the name of the embedded resource. + + + Gets or sets the file system path of the local report. + A string value. + + + Gets or sets a boolean value that indicates whether detailed messages should be displayed when an error occurs in a subreport. + true if detailed messages should be displayed; otherwise, false. The default is true. + + + Represents an exception that occurs when credentials have not been supplied for a data source used by a report. + + + Represents the error that occurs when a data source expected by the report has not been supplied. + + + Represents the error that occurs when the SOAP endpoint used by the ReportViewer control could not be accessed. + + + Represents the exception that occurs when a parameter expected by the report has not been supplied. + + + Represents the exception that occurs when no report source has been specified. + + + Represents values that control whether to calculate the actual page count or use an estimate. + + + Calculate the actual page count for the report. + + + Provide an estimate of the page count for the report instead of calculating the actual page count. + + + Provides data for a event. + + + Constructs a new PageNavigationEventArgs object. + An integer value containing the new page number. + + + Gets the number of the page resulting from the event. + An integer value containing the new page number. + + + Represents the method that will handle the event of a . + The object that raised the event. + A object that contains the arguments for this event. + + + Specifies the data type of a parameter. + + + A Boolean data type that represents a true or false condition. + + + A DateTime data type that represents the date and time. + + + A Float data type that represents a floating point decimal value. + + + An Integer data type. + + + A String data type that represents an array of characters. + + + Specifies the state of a parameter. + + + The parameter values are unavailable. This state indicates that no valid, query-based values were returned as a result of the query. + + + The parameter has outstanding dependencies. This generally occurs when the valid values or the default value of a parameter is query-based and dependencies exist that have not been submitted to the method. + + + A valid value for the parameter exists. + + + A valid value for the parameter does not exist. + + + Sets the processing mode of the ReportViewer control. + + + Specifies that the report will be processed and rendered using the reporting engine provided by the ReportViewer control. + + + Specifies remote processing mode against a Reporting Services report server. + + + Provides data for the event. + + + Contains an object if an exception has occurred. + An object if an exception has occurred during report rendering, or null if no exception has occurred. + + + Gets a list of warnings produced during report processing or rendering. + A collection of objects if warnings have occurred; otherwise a null value. + + + Represents the method that will handle the event of a . + The object that raised the event. + A object that contains information about the event. + + + Encapsulates a rendering extension that can be used with the Report Viewer's report. + + + Gets the localized display name of the rendering extension. + A read-only String value. + + + Gets the name of the rendering extension. + A read-only String value. + + + Indicates whether the rendering extension is visible in the user interface. + A Boolean value. + + + Contains methods and properties that can apply to both local and server reports. + + + Gets the default page settings specified in the report. + A object containing the default page settings for the local report. + + + Returns the representation of the document map for the local report. + A object containing the top level node of the document map hierarchy for the report. + + + Returns report parameter properties for the report. + A collection of objects. + + + Returns the total number of soft pages in the report. + An integer value containing the total number of soft pages in the report. For more information on soft pages, see Understanding Rendering Behaviors. + + + Returns the total number of soft pages in the report and a value that indicates the current page count mode. + An integer value containing the total number of soft pages in the report. For more information on soft pages, see Understanding Rendering Behaviors. + [out] A enumeration value that indicates the page count mode that was used to calculate the total number of pages. + + + Returns all available rendering extensions for the local report. + An array of objects. + + + Loads a report definition for processing using a . + A class that contains the report definition for the report. + + + Loads a report definition for processing using a . + A class that contains the report definition for the report. + + + Causes the report to be rendered with new data. + + + Processes the report and renders it in the specified format. + A byte array of the report in the specified format. + The format in which to render the report. This parameter maps to a rendering extension In local processing mode, supported extensions are Excel, PDF, Word, and Image. In remote processing mode, supported extensions depend on the extensions supported by the report server.You can access the list of available rendering extensions using the ListRenderingExtensions method in or , depending on the processing mode (see ). + + + Processes the report and renders it in the specified format. + A byte array of the report in the specified format. + The format in which to render the report. This parameter maps to a rendering extension. In local processing mode, supported extensions are Excel, PDF, Word, and Image. In remote processing mode, supported extensions depend on the extensions supported by the report server.You can access the list of available rendering extensions using the ListRenderingExtensions method in or , depending on the processing mode (see ). + An XML string that contains the device-specific content that is required by the rendering extension specified in the format parameter. For more information about device information settings for specific output formats, see Device Information Settings in SQL Server Books Online. + + + Processes the report and renders it in the specified format. + A array of the report in the specified format. + The format in which to render the report. This argument maps to a rendering extension. In local processing mode, supported extensions are Excel, PDF, Word, and Image. In remote processing mode, supported extensions depend on the extensions supported by the report server.You can access the list of available rendering extensions using the ListRenderingExtensions method in or , depending on the processing mode (see ). + An XML string that contains the device-specific content that is required by the rendering extension specified in the format parameter. For more information about device information settings for specific output formats, see Device Information Settings in SQL Server Books Online. + [out] The MIME type of the rendered report. + [out] The encoding used when rendering the contents of the report. + [out] The filename extension used for the output file. + [out] The stream identifiers. You can use them to render the external resources (images, etc.) that are associated with the report. + [out] An array of objects that describes any warnings that occurred during report processing. + + + Processes the report with the specified value and renders it in the specified format. + A byte array of the report in the specified format. + The format in which to render the report. This parameter maps to a rendering extension. In local processing mode, supported extensions are Excel, PDF, Word, and Image. In remote processing mode, supported extensions depend on the extensions supported by the report server.You can access the list of available rendering extensions using the ListRenderingExtensions method in or , depending on the processing mode (see ). + An XML string that contains the device-specific content that is required by the rendering extension specified in the format parameter. For more information about device information settings for specific output formats, see Device Information Settings in SQL Server Books Online. + A enumeration value that specifies the page count mode. + [out] The MIME type of the rendered report. + [out] The encoding used when rendering the contents of the report. + [out] The filename extension used for the output file. + [out] The stream identifiers. You can use them to render the external resources (images, etc.) that are associated with the report. + [out] An array of objects that describes any warnings that occurred during report processing. + + + Sets report parameter properties for the report. + An array of objects that contains a list of the report parameters properties. + + + Sets report parameter properties for the report. + A object. + + + Gets or sets the display name of the report. + A String containing the report's display name. + + + Indicates whether the report is a drillthrough report. + A Boolean value. A value of true indicates that this is a drillthrough report. + + + Gets a Boolean value that indicates whether a report definition and all required parameters have been specified, and all data sources are ready for use. + true if a report definition and all required parameters have been specified, and all data sources are ready for use; otherwise, false. The default is false. + + + Provides data for the event. + + + Gets a collection of . + A collection of objects. + + + Represents the method that will handle a event. + The source of the event. + A that contains the event data. + + + Represents a data source for a report. + + + Constructs an empty data source. + + + Constructs a named data source. + The name of the data source. + + + Constructs a named data source with a object in the property. + The name of the data source, as specified in the report definition for the current report. + A object that contains the data. + + + Constructs a named data source with a object in the property. + The name of the data source, as specified in the report definition for the current report. + A object that contains the data. + + + Constructs a named data source with an object in the property. + The name of the data source, as specified in the report definition for the current report. + An object that contains the data. + + + Constructs a named data source with a value. + The name of the data source. + A value for the data source. + + + Constructs a named data source with the property initialized as a particular type. + The name of the data source, as specified in the report definition for the current report. + A object that contains the data. + + + Gets or sets the name of the report data source. + A String containing the name of the data source. + + + Gets or sets the instance of the report data source. + An Object containing an instance of the report data source. + + + Contains a collection of objects. + + + Returns a report data source from the collection that matches a specified name. + A object. + The name of the report data source to retrieve from the collection. + + + Represents information about a report data source. + + + Gets the name of the report data source. + A String containing the name of the report data source. + + + Gets a prompt for the data source. + A String containing a prompt for the data source. + + + Represents a collection of objects. + + + Returns a specific object from the collection. + A object. + The name of the object to return. + + + Provides data for the event. + + + Returns an Exception object containing information about the report error. + An Exception object containing information about the report error. + + + Indicates whether the host application has handled the error. + A Boolean value indicating whether the host application has handled the error. The default value is false. + + + Represents the method that will handle a event. + The object that raised the event. + A object that contains information about the event. + + + Provides data for the report event. + + + Constructs a ReportExportEventArgs object. + A used for exporting the report. + + + Gets or sets an XML string that contains the device-specific content that is required by the rendering extension specified in the Extension parameter. + A String value containing the device-specific information. + + + Returns a used for exporting the report. + A object. + + + Represents the page settings for a report. + + + Indicates whether the orientation of the report as defined in the report definition file is landscape. + true if the orientation of the report as defined in the report definition file is landscape; otherwise, false. + + + Represents the margins for a report page. Read-only. + A read-only Margins object containing margin information about the report page. + + + Represents the paper size settings for a report page. Read-only. + A read-only PaperSize object containing information about report page size. + + + Represents a parameter for a report. + + + Instantiates a new ReportParameter. + + + Instantiates a new ReportParameter with a name. + The name of the parameter. + + + Instantiates a new ReportParameter with a name and a value. + The name of the parameter. + The value of the parameter. + + + Instantiates a new multivalued ReportParameter with a name. + The name of the parameter. + The values of the parameter. + + + Instantiates a new ReportParameter with a name, a value, and a visibility flag. + The name of the parameter. + The value of the parameter. + Determines if the parameter is displayed in the user interface. + + + Instantiates a new ReportParameter with a name, multiple values, and a visibility flag. + The name of the parameter. + The values of the parameter. + Determines if the parameter is displayed in the user interface. + + + Gets or sets the name of the parameter. + A String value. + + + Gets a collection of String objects containing one or more values for the parameter. + A StringCollection object. + + + Determines whether the parameter can be displayed in the user interface. + A Boolean value. + + + Represents a collection of objects. + + + Initializes a new instance of the class. + + + Gets an object in the collection by its name. + A with the specified name, if found; otherwise, a null reference (Nothing in Visual Basic). + The name of the object to get. This is the value of the property.This parameter is not case sensitive. + + + Encapsulates information about report parameters. + + + Indicates whether an empty string is a valid value for the parameter. Read-only. + A read-only Boolean value. + + + Indicates whether the default values of the parameter are based on a query. Read-only. + A read-only Boolean value. + + + Indicates whether the parameter's valid values are based on a query. Read-only. + A read-only Boolean value. + + + Gets the data type of the parameter. Read-only. + A read-only value. + + + Gets a list of parameters whose values are used to retrieve additional parameter values in a query. Read-only. + A read-only . + + + A list of parameters that use the value of this parameter as parameters into queries to retrieve and/or . + A read-only . + + + Gets the error message that is returned when the parameter fails validation. Read-only. + A read-only String containing the text of the error message. + + + Indicates whether the parameter is used in a query to an external data source. Read-only. + A read-only Boolean value. + + + Indicates whether the parameter can be a multi-value parameter. Read-only. + A read-only Boolean value. + + + Gets the name of the parameter. Read-only. + A String containing the name of the parameter. + + + Indicates whether the value of the parameter can be null. Read-only. + A read-only Boolean value. + + + The text that prompts the user to provide parameter values. + A String containing the text of the prompt. + + + Indicates whether the user is prompted for the value of the parameter. + A read-only Boolean value. + + + Describes the state of the parameter. Read-only. + A read-only value. + + + Gets the available valid values for the parameter. Read-only. + A read-only array of objects. + + + Gets the values for the parameter. + A read-only list of String values. + + + Determines whether the parameter can be displayed in the user interface. + A Boolean value. + + + A collection of objects. + + + Returns a named item from the ReportParameterInfoCollection. + A object from the collection. + The name of the item to retrieve. + + + Provides data for the event. + + + Gets a value indicating whether the event is triggered by the automatic submission of report parameters due to dependencies between them. + true if the event is triggered by the automatic submission of report parameters; false if it is triggered by the user clicking the View Report button. + + + Gets the parameters from the parameter prompt area that are being submitted to the report server. + A object containing the parameter values submitted by the user. + + + Represents the callback method that will handle the event. + The source of the event. + A that contains the event data. + + + Provides data for the and events. + + + Gets or sets the printer settings to use for the current operation. + A object that contains the printer settings. + + + Represents the method that will handle the and events. + The source of the event. + A that contains the event data. + + + Represents the error that occurs when a report contains a security violation. + + + Specifies the credentials for the ReportViewer control to use when connecting to a report server. + + + Returns a Boolean value indicating whether forms authentication will be used when connecting to the report server, as well as information about the forms credentials to be used for authentication. + Returns true if forms authentication is to be used when connecting to the report server. Information about the credentials to be used for forms authentication is returned via the out parameters used in the method call. + [out] An authentication cookie used by the report server. + [out] The user name that will be used to connect to the report server. + [out] The password that will be used to connect to the report server. + [out] The authority to use when authenticating the user, for example, a Windows domain name. + + + Specifies that forms authentication is to be used when connecting to the report server and provides the forms credentials. + An authentication cookie used by the report server. + The user name that will be used to connect to the report server. + The password that will be used to connect to the report server. + The authority to use when authenticating the user, for example, a Windows domain name. + + + Specifies the user to impersonate when connecting to the report server. + A WindowsIdentity object encapsulating the user to impersonate when connecting to a report server. + + + Gets or sets the network credentials used for authentication with the report server. + A NetworkCredentials object containing the network credentials used for authentication with the report server. + + + Represents errors that occur while connecting to a report server and also errors that occur on the report server while processing a server report or rendering the report to the report page layout (RPL) format. + + + Returns the error code from the exception. + A String value containing the error code returned by the report server, or null if the connection attempt to the report server is unsuccessful. + + + Encapsulates the methods and properties used for the ReportViewer control. + + + Constructs a ReportViewer object. + + + Occurs when a user navigates back to a parent report from a drillthrough report. + + + Occurs when the user navigates to a bookmark in a report. + + + Occurs when a document map node is selected. + + + Occurs when a drillthrough item is selected in a report. + + + Occurs when a user clicks a hyperlink in a report. + + + Occurs when a user changes pages in a report. + + + Occurs when the margins or the page size for the current report in the ReportViewer control have changed. + + + Occurs when a user prints the report. + + + Occurs when the user clicks the Print button in the Print dialog box. + + + Occurs when the report in the ReportViewer begins rendering. + + + Occurs when the report finishes rendering. + + + Raised when an error occurs in the report. + + + Occurs when the user clicks the Export button. + + + Occurs when the report is refreshed. + + + This event occurs when the user clicks the Find or Find Next button, or when a search operation is invoked programmatically. + + + Occurs when the user activates a sort. + + + Occurs whenever the user interface state of the ReportViewer control changes. + + + Occurs when the user submits new data source credentials viaby using the built-in prompt area. + + + Occurs when parameter values are submitted to the report server. + + + Occurs when the user toggles the visibility of an item in the report. + + + Occurs when the user clicks the View button. + + + Occurs when the user changes the zoom level of the ReportViewer control. + + + A constant that represents the maximum number of pages in a report when the current page count mode is . + + + Stops background processing of the report. + A Boolean value. A value of true is returned if the background rendering has terminated. A value of false is returned if background rendering has not terminated after the amount of time specified in the millisecondsTimeout parameter has elapsed, or if the millisecondsTimeout parameter was set to 0. + The number of milliseconds to wait for the background rendering to terminate. A value of -1 waits forever. A value of 0 returns immediately without waiting for the rendering to terminate. + + + Clears the report view and fills it with the background color of the control. + + + Opens in the Exporting dialog box for a specific rendering extension. + if the user clicked the Cancel button; if the export operation failed; otherwise, . + The rendering extension to use for the export. Typically, youTo access the list of available rendering extensions, use using the ListRenderingExtensions method in or , depending on the processing mode (see ). + + + Opens in the export dialog box for a specific rendering extension. + if the user clicked the Cancel button; if the export operation failed; otherwise, . + The rendering extension to use for the export.Typically, youTo access the list of available rendering extensions, use using the ListRenderingExtensions method in or , depending on the processing mode (see ). + An XML string that contains the device-specific content that is required by the rendering extension specified in the format parameter. For more information about device information settings for specific output formats, see Device Information Settings in SQL Server Books Online. + + + Opens in the Exporting dialog box for a specific rendering extension and specifies device information and saves the exported report to a file with the specified file name. + if the user clicked the Cancel button; if the export operation failed; otherwise, . + The rendering extension to use for the export.To access the list of available rendering extensions, use the ListRenderingExtensions method in or , depending on the processing mode (see ). + An XML string that contains the device-specific content that is required by the rendering extension specified in the format parameter. For more information about device information settings for specific output formats, see Device Information Settings in SQL Server Books Online. + The name of the exported file. The user is prompted for a file name if this parameter is null. + + + Searches the report for the specified text string. + An integer value containing the page number on which the search string was found, or 0 if the search string was not found. + The search string. + The page number on which to start searching. + + + Continues the search for the specified text string. + An integer value containing the page number on which the search string was found, or 0 if the search string was not found. + + + Returns the page settings that are used to print the current report in the ReportViewer control or display it in print layout mode. + A object that contains the page settings that are used to print the current report in the ReportViewer control or display it in print layout mode, or null if the ReportViewer control has not yet processed a report. + + + Returns the total number of pages in the report. + An integer value containing the total number of pages in the report. + + + Returns the page count of the report and a value that indicates whether the page count is estimated or actual. + An integer value containing the total number of pages in the report. + [out] A enumeration value that indicates whether the return value should be treated as an estimate or actual page count. This value is always when is . + + + Moves the report to the specified bookmark. + The ID of the bookmark. + + + Moves to the specified area of the document map. + The ID of the document map node. + + + Opens the page setup dialog box. + A enumeration value. Possible values are and depending on how the user closed the dialog box. + + + Navigates the report viewer control back to the parent report from a drillthrough report. + + + Displays the Print dialog box. + if the user clicked the Cancel button or if the event is cancelled; if the user clicked the OK button. + + + Displays the Print dialog box. + if the user clicked the Cancel button or if the event is cancelled; if the user clicked the OK button. + A object, used to initialize the dialog box. Unlike in the , this object's page ranged properties, such as the , , and properties, are used by the ReportViewer to initialize the print range in the Print dialog box. + + + Causes the current report in the Report Viewer to be processed and rendered. + + + Resets the control to its default values. + + + Reverts the page settings for the current report in the ReportViewer control to the settings in the report definition. + + + Sets the control display to normal or print preview mode. + A enumeration value specifying which display mode to use. Valid values are Normal or PrintLayout. + + + Sets the page settings that are used to print the current report in the ReportViewer control or display it in print layout mode. + A object that contains the new page settings.This parameter must not be null. + + + Gets or sets the background color of the control's report area. + A value indicating the background color of the control's report area. + + + Gets or sets the background image of the ReportViewer control. + An Image object containing the background image for the control. + + + Gets or sets the layout for the background image of the ReportViewer control. + An ImageLayout object containing the layout for the background image of the ReportViewer control. + + + Gets or sets the border style of the ReportViewer control. + A BorderStyle value. + + + Gets or sets the current page of the ReportViewer control's active report. + An integer value containing the current page of the report. The default value is 0. + + + Gets a object that indicates which operations can currently be performed on the ReportViewer control, the status of the prompt area, and the status of the document map area. + A object. + + + Gets a value that indicates the current display mode of the ReportViewer control. + A object. The default value is . + + + Gets or sets the collapsed state of the document map. + A Boolean value. A value of true indicates that the document map is collapsed. The default value is false. + + + Gets or sets the width of the document map in pixels. + An integer value containing the width of the document map in pixels. The default value is 40. + + + Indicates whether the size of the document map panel is fixed or changes when the viewer resizes. + A Boolean value indicating whether the size of the document map panel is fixed. The default value is true. + + + Gets or sets a Boolean value that indicates whether to keep the report server session from expiring as long as ReportViewer is running. + true to keep the report server session from expiring; otherwise false. The default is true. + + + Returns the local report in the ReportViewer control. + A object containing the local report in the ReportViewer control. + + + Gets or sets an object that contains custom messages for use by the ReportViewer control. + An object that implements the interface. + + + Gets or sets a enumeration value that indicates the default page count mode to use when rendering a report in the report area. + A object. The default value is . + + + Gets or sets a object that contains the settings for the default printer and print options that are used to initialize the Print dialog and the printer's Preferences dialog. + A object. + + + Gets or sets the processing mode of the ReportViewer control. + A enumerator value of either Local or Remote. The default value is Local. + + + Gets or sets the collapsed state of the parameter prompt area or the credentials prompt area. + true if the prompt area is collapsed; otherwise, false. The default is false. + + + Gets the search text and the start page of the current report search operation. + A object, or null if there is not an ongoing report search operation. + + + Gets a server report in the Report Viewer. + A object containing the server report in the Report Viewer. + + + Indicates whether the Back button is visible on the control. + A Boolean value indicating the visibility of the Back button. The default is value true. + + + Indicates whether the Context menu is visible. + A Boolean value. The default is value true. + + + Indicates whether prompts for user credentials will be displayed. + A Boolean value. The default value is true. + + + Indicates whether the button that shows and collapses the document map is visible on the split bar. + true if the button is visible on the split bar; otherwise, false. The default is true. + + + Indicates whether the Export button is visible on the control. + A Boolean value. The default value is true. + + + Indicates whether the Find text box is visible on the control. + A Boolean value. The default value is true. + + + Indicates whether the page navigation controls are visible. + A Boolean value. The default value is true. + + + Indicates whether parameter prompts are visible. + A Boolean value. The default value is true. + + + Gets or sets a value that indicates whether the Print button is visible. + true if the buttons for the print functions are visible; otherwise, false. The default is true. + + + Indicates whether progress animation is displayed during report processing. + A Boolean value. The default value is true. + + + Indicates whether the button that shows and collapses the prompt area is visible on the split bar. + true if the button is visible on the split bar; otherwise, false. The default is true. + + + Indicates whether the Refresh button is visible. + A Boolean value. The default value is true. + + + Indicates whether the Stop button is visible. + A Boolean value. The default value is true. + + + Indicates whether the Toolbar is visible. + A Boolean value. The default value is true. + + + Indicates whether the Zoom list box is visible. + A Boolean value. The default value is true. + + + Gets or sets the used to customize the look and feel of the ReportViewer control's toolbar as well as the context menu on the report. + A object. By default, a object is returned. + + + Gets or sets the delay in milliseconds before the busy status indicator is displayed to the user. + An int value that specifies the time in milliseconds. The default value is 1000 (1 second). + + + Gets the page zoom that is calculated based on the zoom mode. + An integer that represents the calculated zoom percentage. The default value is 100. + + + Gets or sets the zoom mode of the control. + A enumerator value indicating the zoom mode of the control. The default value is 100%. + + + Gets or sets the percentage of zoom used for the report display. + An integer value containing the percentage of zoom. + + + Represents a collection of objects. + + + Represents errors that occur while viewing or configuring a report. + + + This constructor supports the .NET Framework infrastructure and is not intended to be used directly from your code. + + + This constructor supports the .NET Framework infrastructure and is not intended to be used directly from your code. + + + Represents a collection of strings that contain custom headers. + + + Contains a set of read-only properties that indicate which operations are currently allowed in the ReportViewer control and the status of the prompt and document map areas. + + + Gets a Boolean value that indicates whether the prompt area of the ReportViewer control is currently visible. + true if the prompt area is currently visible; otherwise, false. + + + Gets a Boolean value that indicates whether the ReportViewer control has not started processing the report or has completed processing the report, and can change the display mode without canceling a report processing operation. + true if the ReportViewer control can change the display mode without canceling a report processing operation; otherwise, false. + + + Gets a Boolean value that indicates whether the currently displayed content will be affected by a zoom change. + true if the currently displayed content will be affected by a zoom change; otherwise, false. + + + Gets a Boolean value that indicates whether there is a previous search to continue and whether you can continue the previous search without canceling an existing report processing or interactive rendering operation. + true if the there is a previous search to continue and if you can continue the previous search without canceling an existing report processing or interactive rendering operation; otherwise, false. + + + Gets a Boolean value that indicates whether the report can be exported without canceling an existing report processing or interactive rendering operation. + true if the report can be exported without canceling an existing report processing or interactive rendering operation; otherwise, false. + + + Gets a Boolean value that indicates whether the current report is a drillthrough report and you can navigate back to its parent report without canceling an existing report processing or interactive rendering operation. + true if the current report is a drillthrough report and you can navigate back to its parent report without canceling an existing report processing or interactive rendering operation; otherwise, false. + + + Gets a Boolean value that indicates whether the property can be changed without canceling an existing report processing or interactive rendering operation. + true if the property can be changed without canceling an existing report processing or interactive rendering operation; otherwise, false. + + + Gets a Boolean value that indicates whether you can start printing the report without canceling an existing report processing or interactive rendering operation. + true if you can start printing the report without canceling an existing report processing or interactive rendering operation; otherwise, false. + + + Gets a Boolean value that indicates whether you can refresh the report data without cancelling an existing report processing or interactive rendering operation. + true if you can refresh the report data without canceling an existing report processing or interactive rendering operation; otherwise, false. + + + Gets a Boolean value that indicates whether you can search the report and highlight the search results without canceling an existing report processing or interactive rendering operation. + true if the you can search the report and highlight the search results without canceling an existing report processing or interactive rendering operation; otherwise, false. + + + Gets a Boolean value that indicates whether prompted parameters and prompted data source credentials can be submitted for the current report without canceling an existing report processing or interactive rendering operation. + true if prompted parameters and prompted data source credentials can be submitted for the current report without canceling an existing report processing or interactive rendering operation; otherwise, false. + + + Gets a Boolean value that indicates whether the current report has a document map and the document map can be displayed in the current display mode. + true if the current report has a document map and the document map can be displayed in the current display mode; otherwise, false. + + + Gets a Boolean value that indicates whether prompting is supported and there are prompts that can be displayed based on the visibility settings in the ReportViewer control. This property does not indicate whether the prompt areas are actually visible. + true if prompting is supported and there are prompts that can be displayed based on the visibility settings in the ReportViewer control; otherwise, false. + + + Gets a Boolean value that indicates whether ReportViewer is currently performing a potentially lengthy operation that can be canceled. + true if ReportViewer is currently performing a potentially lengthy operation that can be canceled; otherwise, false. + + + Gets a Boolean value that indicates whether the report has a document map and the document map is currently displayed. + true if the report has a document map and the document map is currently displayed; otherwise, false. + + + Gets a Boolean value that indicates whether the current processing mode supports prompting for parameters and data source credentials. + true if the current processing mode supports prompting for parameters and data source credentials; otherwise, false. + + + Provides data for a event in the ReportViewer control. + + + Constructs a SearchEventArgs object. + The search string. + The page on which to start searching. + Indicates that this event is occurring as a result of a Find Next command. + + + Indicates that this event is occurring as a result of a Find Next command. + A Boolean value. A value of true indicates that this event occurred because of a Find Next command. + + + Returns the search string being used for the search. + A String value containing the search string. + + + Returns the page number on which to start searching. + An integer containing the starting page number to search. + + + Represents the method that will handle a event. + The object that raised the event. + A object that contains information about the event. + + + Contains the search text and the start page of a search operation. + + + Gets the start page of the search operation. + An int value that represents the start page of the search operation. + + + Gets the search text. + A string that represents the search text. + + + Represents a report that is processed on the report server. + + + Initializes a new instance of the class. + + + Retrieves information about the data sources used for a report. + A that contains objects. + + + Retrieves information about the data sources used for a report, including whether all required credentials have been supplied for the report data sources. + A containing objects. + [out] Indicates whether all required credentials have been supplied for the data sources used by the server report. + + + Gets the default page settings specified in the report definition. + A object containing the default page settings for the local report. + + + Returns the current execution ID, or null (Nothing in Visual Basic) if no execution ID is available. + A String containing the execution ID. + + + Returns report parameter properties for the report. + A object containing an array of objects. + + + Returns the version of the report server. + A String value containing the server version information. + + + Returns the total number of soft pages in the report and a value that indicates the current page count mode. + An integer value containing the total number of soft pages in the report. For more information on soft pages, see Understanding Rendering Behaviors. + [out] A enumeration value that indicates the page count mode used to calculate the total number of soft pages. + + + Indicates whether the report can execute queries. + A Boolean value indicating whether the report can execute queries. + + + Returns all available rendering extensions for the server report. + An array of objects. + + + Loads the report definition on the report server for remote processing using a . + A class that can be used to read the Report Definition Language (RDL) file for the report. + + + Causes the report to be rendered with new data. + + + Renders the report with optional URL access parameters. + A containing the rendered report. + The format in which to render the report. This argument maps to a rendering extension. You can use any rendering extension available on the report server.To access the list of available rendering extensions, use the method. + An XML string that contains the device-specific content that is required by the rendering extension specified in the format parameter. For more information about device information settings for specific output formats, see Device Information Settings in SQL Server Books Online. + URL access parameters to pass to the report server. For more information, see the URL Access documentation in SQL Server Books Online.This parameter may be set to null. + [out] The MIME type of the rendered report. + [out] The file name extension used for the output file. + + + Renders the report with optional URL access parameters. + The format in which to render the report. This argument maps to a rendering extension. You can use any rendering extension available on the report server.To access the list of available rendering extensions, use the method. + An XML string that contains the device-specific content that is required by the rendering extension specified in the format parameter. For more information about device information settings for specific output formats, see Device Information Settings in SQL Server Books Online. + URL access parameters to pass to the report server. For more information, see the URL Access documentation in SQL Server Books Online.This parameter may be set to null. + The stream into which the rendered report will be written. + [out] The MIME type of the rendered report. + [out] The file name extension used for the output file. + + + Processes the report with the specified valuevalue and renders it in the specified format. + A array of the report in the specified format. + The format in which to render the report. This argument maps to a rendering extension. You can use any formatting extension available on the report server.To access the list of available rendering extensions, use the method. + An XML string that contains the device-specific content that is required by the rendering extension specified in the format parameter. For more information about device information settings for specific output formats, see Device Information Settings in SQL Server Books Online. + A enumeration value that specifies the page count mode. + [out] The MIME type of the rendered report. + [out] The encoding used when rendering the contents of the report. + [out] The file name extension used for the output file. + [out] The stream identifiers. You can use them to render external resources (images, for example) that are associated with the report. + [out] An array of objects that describes any warnings that occurred during report processing. + + + Returns a secondary stream associated with a processed report. + A array of the stream in the specified format. For more information about this data type, see "Byte Structure" in the .NET Framework documentation. + The format in which to render the stream. This argument maps to a rendering extension. You can use any rendering extension available on the report server.To access the list of available rendering extensions, use the method. + The stream identifier. + An XML string that contains the device-specific content that is required by the rendering extension specified in the format parameter. For more information about device information settings for specific output formats, see Device Information Settings in SQL Server Books Online. + The MIME type of the stream. + The Microsoft .NET Framework encoding class name. + + + Sets data source credentials for the report. + A set of data source credentials to submit to the report server. + + + Initializes a server report using a specific report execution on the server. + A String containing the execution ID to use. + + + Sets report parameter properties for the report. + An of objects that contains a list of the report parameters properties. + + + Gets a collection of objects. The object uses the cookies in this collection when making server requests. + A object that contains a collection of objects. + + + Gets a collection of strings that contain custom headers. + A object that contains a collection custom headers. + + + Gets or sets the unique identifier of the report history snapshot used for the server report. + A String value containing the unique identifier of the report history snapshot used for the server report. + + + Gets or sets the path to the report on the server. + A String value. + + + Gets or sets credentials to be used with the report server. + A object containing the credentials to be used with the report server. + + + Gets or sets the URL for the report server. + A object containing the URL for the report server. + + + Gets or sets the number of milliseconds to wait for server communications. + An integer value that contains the server time-out, in milliseconds. The default value is 600000 milliseconds. + + + Specifies the severity of a warning. + + + The severity level of the warning is Error. + + + The severity level of the warning is Warning. + + + Represents the exception that occurs when the report server version is not compatible with the report control. + + + Provides data for the event. + + + Constructs a SortEventArgs object. + The ID of the sort action. + A enumeration value that indicates the direction of the sort. The default value is None. + A Boolean value that indicates whether all other existing sorts should be cleared. The default is false. + + + Indicates whether all other existing sorts should be cleared. + A Boolean value that indicates whether all other existing sorts should be cleared. The default is false. + + + Gets an enumeration value that indicates the direction of the sort. + A enumeration value that indicates the direction of the sort. + + + Gets the unique identifier of the sort action. + A String containing the ID of the sort action. + + + Represents the method that will handle the event of a . + The object raising the event. + A object containing information about the event. + + + Indicates the direction of a sort operation. + + + Indicates an ascending sort. + + + Indicates a descending sort. + + + Provides data for the event. + + + Gets the list of data source names for the subreport. + A list of String objects containing the names of the data sources for the subreport. + + + Returns a collection of data sources for the subreport. + A collection of objects. + + + Gets a collection of parameters for the subreport. + A containing information about the subreport parameters. + + + Returns the name of the subreport. + A string containing the name of the subreport. + + + Represents the method that will handle the event of a . + The object that raised the event. + A object containing information about the event. + + + Represents a possible valid value for a parameter. + + + Gets a label for the valid value. + A read-only String object. + + + Gets a valid value. + A read-only String object. + + + Represents a list of errors or warnings that are returned when a report is rendered or processed. + + + Gets the error code that is assigned to the warning. Read-only. + A read-only string value. + + + Gets a message that describes the error or warning. Read-only. + A read-only string value. + + + Gets the name of the object in the report definition that contributed to the warning. Read-only. + A read-only string value. + + + Gets the type of object in the report definition that caused the error or warning. Read-only. + A read-only string value. + + + Gets the severity type of the error or warning. Read-only. + A read-only string value. + + + Represents the method that will handle the event of a . + The object raising the event. + A object containing information about the event. + + + Provides data for a event. + + + Constructs a new ZoomChangeEventArgs object. + A enumerator value specifying the zoom mode selected. + An integer specifying the selected percentage of zoom. + + + Gets the zoom mode select for the event. + A enumerator value specifying the zoom mode selected. + + + Gets the zoom percentage value specified for the event. + An integer specifying the selected percentage of zoom. + + + Specifies the zoom mode for the ReportViewer control. + + + Sets the zoom mode to full page. + + + Sets the zoom mode to page width. + + + Sets the zoom mode to a percentage. + + + \ No newline at end of file diff --git a/C2P_CronJob/bin/Release/NLog.config b/C2P_CronJob/bin/Release/NLog.config index 13ec9f7..ede1596 100644 --- a/C2P_CronJob/bin/Release/NLog.config +++ b/C2P_CronJob/bin/Release/NLog.config @@ -1,31 +1,15 @@ - - - - + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - - - + + @@ -33,10 +17,9 @@ - + \ No newline at end of file diff --git a/C2P_CronJob/bin/Release/SteamWare.dll b/C2P_CronJob/bin/Release/SteamWare.dll index a9e4680..759de9d 100644 Binary files a/C2P_CronJob/bin/Release/SteamWare.dll and b/C2P_CronJob/bin/Release/SteamWare.dll differ diff --git a/C2P_CronJob/bin/Release/app.publish/Application Files/C2P_CronJob_1_0_0_3/C2P_CronJob.exe.config.deploy b/C2P_CronJob/bin/Release/app.publish/Application Files/C2P_CronJob_1_0_0_3/C2P_CronJob.exe.config.deploy deleted file mode 100644 index b21642c..0000000 --- a/C2P_CronJob/bin/Release/app.publish/Application Files/C2P_CronJob_1_0_0_3/C2P_CronJob.exe.config.deploy +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/C2P_CronJob/bin/Release/app.publish/Application Files/C2P_CronJob_1_0_0_3/C2P_CronJob.exe.deploy b/C2P_CronJob/bin/Release/app.publish/Application Files/C2P_CronJob_1_0_0_3/C2P_CronJob.exe.deploy deleted file mode 100644 index 0f5b564..0000000 Binary files a/C2P_CronJob/bin/Release/app.publish/Application Files/C2P_CronJob_1_0_0_3/C2P_CronJob.exe.deploy and /dev/null differ diff --git a/C2P_CronJob/bin/Release/app.publish/Application Files/C2P_CronJob_1_0_0_3/C2P_CronJob.exe.manifest b/C2P_CronJob/bin/Release/app.publish/Application Files/C2P_CronJob_1_0_0_3/C2P_CronJob.exe.manifest deleted file mode 100644 index ba8ede7..0000000 --- a/C2P_CronJob/bin/Release/app.publish/Application Files/C2P_CronJob_1_0_0_3/C2P_CronJob.exe.manifest +++ /dev/null @@ -1,268 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - rOtiZX0U32Zkia3KqeywQGzWYws= - - - - - - - - - - - - cA0qmlxzsspL9f+M9nVL95qZ2s8= - - - - - - - - - - - - MYP0T8irKpr4+NFX9KC160XetQo= - - - - - - - - - - - - G/ft0fM9Fjd00icWS35X/6qFbHE= - - - - - - - - - - - - IulC6mbZq57W4UYy2G5SjsiVf4U= - - - - - - - - - - - - NCBCoXAHOxfSVbZEwmvw6kkpQmI= - - - - - - - - - - - - 05DXfRBcqQgghwUHusAumyYVQa0= - - - - - - - - - - - - V29HDxUDNe4gqV2BWZKmt/hMTjo= - - - - - - - - - - - - vmEEFEeK+jY1DyfCpjGoUSlygFc= - - - - - - - - - - - - MaWkxGTvI7dfq/aA2gw45h9bkZM= - - - - - - - - - - - - RLsNdHI2z89N92w3CGXs9rfDen4= - - - - - - - - - - - - PwgEnV0H4kC0jdvjo+sXasH/Hjs= - - - - - - - - - - - - 1QT44HYiFHN+FKxloHUmGZhwwjo= - - - - - -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ABFAEEATQBXAEEAUgBFAFcASQBOAFwAcwBhAG0AdQBlAGwAZTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA6Gg1M12JRcHltkDhD4Hn/eAhUtpFcUYtufc9UkEuk6YWW72EKBU2QlOGPtKwf45l38UXKP8NO29n1a/D/9VAi9nlrsxXTzeBZCC9/AKF1OFZ6hbmNbfGl4OrLOoLqsV92qPMDgYDzYoDozBh2j3bfzcq5st9rmbZc3kRqRrS3r8CAwEAATANBgkqhkiG9w0BAQUFAAOBgQACKtLdNqZI9voR9uUPsp57MqnleijK+Ly2C0lOTh3Cc/VqtdPJa6qVhZEtdt/XYwP4afdQ7Xksqer2fIXadUA/vcXo5v8Jlfywp2TML67IPODAwk8IjHpAY7XPI5erc9LbaGvbTcEI4YhY+Fy7Cg4r+dC07L0/2mmlCD1wf+VFAg== \ No newline at end of file diff --git a/C2P_CronJob/bin/Release/app.publish/Application Files/C2P_CronJob_1_0_0_3/C2P_Data.dll.deploy b/C2P_CronJob/bin/Release/app.publish/Application Files/C2P_CronJob_1_0_0_3/C2P_Data.dll.deploy deleted file mode 100644 index 5944e0f..0000000 Binary files a/C2P_CronJob/bin/Release/app.publish/Application Files/C2P_CronJob_1_0_0_3/C2P_Data.dll.deploy and /dev/null differ diff --git a/C2P_CronJob/bin/Release/app.publish/Application Files/C2P_CronJob_1_0_0_3/Flesk.ViewState.dll.deploy b/C2P_CronJob/bin/Release/app.publish/Application Files/C2P_CronJob_1_0_0_3/Flesk.ViewState.dll.deploy deleted file mode 100644 index 862a6ac..0000000 Binary files a/C2P_CronJob/bin/Release/app.publish/Application Files/C2P_CronJob_1_0_0_3/Flesk.ViewState.dll.deploy and /dev/null differ diff --git a/C2P_CronJob/bin/Release/app.publish/Application Files/C2P_CronJob_1_0_0_3/ICSharpCode.SharpZipLib.dll.deploy b/C2P_CronJob/bin/Release/app.publish/Application Files/C2P_CronJob_1_0_0_3/ICSharpCode.SharpZipLib.dll.deploy deleted file mode 100644 index a2a6f25..0000000 Binary files a/C2P_CronJob/bin/Release/app.publish/Application Files/C2P_CronJob_1_0_0_3/ICSharpCode.SharpZipLib.dll.deploy and /dev/null differ diff --git a/C2P_CronJob/bin/Release/app.publish/Application Files/C2P_CronJob_1_0_0_3/SteamWare.dll.deploy b/C2P_CronJob/bin/Release/app.publish/Application Files/C2P_CronJob_1_0_0_3/SteamWare.dll.deploy deleted file mode 100644 index ac76e16..0000000 Binary files a/C2P_CronJob/bin/Release/app.publish/Application Files/C2P_CronJob_1_0_0_3/SteamWare.dll.deploy and /dev/null differ diff --git a/C2P_CronJob/bin/Release/app.publish/Application Files/C2P_CronJob_1_0_0_3/de/Microsoft.ReportViewer.WinForms.resources.dll.deploy b/C2P_CronJob/bin/Release/app.publish/Application Files/C2P_CronJob_1_0_0_3/de/Microsoft.ReportViewer.WinForms.resources.dll.deploy deleted file mode 100644 index 1819a68..0000000 Binary files a/C2P_CronJob/bin/Release/app.publish/Application Files/C2P_CronJob_1_0_0_3/de/Microsoft.ReportViewer.WinForms.resources.dll.deploy and /dev/null differ diff --git a/C2P_CronJob/bin/Release/app.publish/Application Files/C2P_CronJob_1_0_0_3/es/Microsoft.ReportViewer.WinForms.resources.dll.deploy b/C2P_CronJob/bin/Release/app.publish/Application Files/C2P_CronJob_1_0_0_3/es/Microsoft.ReportViewer.WinForms.resources.dll.deploy deleted file mode 100644 index 79e4994..0000000 Binary files a/C2P_CronJob/bin/Release/app.publish/Application Files/C2P_CronJob_1_0_0_3/es/Microsoft.ReportViewer.WinForms.resources.dll.deploy and /dev/null differ diff --git a/C2P_CronJob/bin/Release/app.publish/Application Files/C2P_CronJob_1_0_0_3/fr/Microsoft.ReportViewer.WinForms.resources.dll.deploy b/C2P_CronJob/bin/Release/app.publish/Application Files/C2P_CronJob_1_0_0_3/fr/Microsoft.ReportViewer.WinForms.resources.dll.deploy deleted file mode 100644 index 7304b76..0000000 Binary files a/C2P_CronJob/bin/Release/app.publish/Application Files/C2P_CronJob_1_0_0_3/fr/Microsoft.ReportViewer.WinForms.resources.dll.deploy and /dev/null differ diff --git a/C2P_CronJob/bin/Release/app.publish/Application Files/C2P_CronJob_1_0_0_3/it/Microsoft.ReportViewer.WinForms.resources.dll.deploy b/C2P_CronJob/bin/Release/app.publish/Application Files/C2P_CronJob_1_0_0_3/it/Microsoft.ReportViewer.WinForms.resources.dll.deploy deleted file mode 100644 index 8a2ccb2..0000000 Binary files a/C2P_CronJob/bin/Release/app.publish/Application Files/C2P_CronJob_1_0_0_3/it/Microsoft.ReportViewer.WinForms.resources.dll.deploy and /dev/null differ diff --git a/C2P_CronJob/bin/Release/app.publish/Application Files/C2P_CronJob_1_0_0_3/ja/Microsoft.ReportViewer.WinForms.resources.dll.deploy b/C2P_CronJob/bin/Release/app.publish/Application Files/C2P_CronJob_1_0_0_3/ja/Microsoft.ReportViewer.WinForms.resources.dll.deploy deleted file mode 100644 index d17bdc4..0000000 Binary files a/C2P_CronJob/bin/Release/app.publish/Application Files/C2P_CronJob_1_0_0_3/ja/Microsoft.ReportViewer.WinForms.resources.dll.deploy and /dev/null differ diff --git a/C2P_CronJob/bin/Release/app.publish/Application Files/C2P_CronJob_1_0_0_3/ko/Microsoft.ReportViewer.WinForms.resources.dll.deploy b/C2P_CronJob/bin/Release/app.publish/Application Files/C2P_CronJob_1_0_0_3/ko/Microsoft.ReportViewer.WinForms.resources.dll.deploy deleted file mode 100644 index 14cf6f3..0000000 Binary files a/C2P_CronJob/bin/Release/app.publish/Application Files/C2P_CronJob_1_0_0_3/ko/Microsoft.ReportViewer.WinForms.resources.dll.deploy and /dev/null differ diff --git a/C2P_CronJob/bin/Release/app.publish/Application Files/C2P_CronJob_1_0_0_3/pt/Microsoft.ReportViewer.WinForms.resources.dll.deploy b/C2P_CronJob/bin/Release/app.publish/Application Files/C2P_CronJob_1_0_0_3/pt/Microsoft.ReportViewer.WinForms.resources.dll.deploy deleted file mode 100644 index dd9afc9..0000000 Binary files a/C2P_CronJob/bin/Release/app.publish/Application Files/C2P_CronJob_1_0_0_3/pt/Microsoft.ReportViewer.WinForms.resources.dll.deploy and /dev/null differ diff --git a/C2P_CronJob/bin/Release/app.publish/Application Files/C2P_CronJob_1_0_0_3/ru/Microsoft.ReportViewer.WinForms.resources.dll.deploy b/C2P_CronJob/bin/Release/app.publish/Application Files/C2P_CronJob_1_0_0_3/ru/Microsoft.ReportViewer.WinForms.resources.dll.deploy deleted file mode 100644 index 5b3104f..0000000 Binary files a/C2P_CronJob/bin/Release/app.publish/Application Files/C2P_CronJob_1_0_0_3/ru/Microsoft.ReportViewer.WinForms.resources.dll.deploy and /dev/null differ diff --git a/C2P_CronJob/bin/Release/app.publish/Application Files/C2P_CronJob_1_0_0_3/zh-CHS/Microsoft.ReportViewer.WinForms.resources.dll.deploy b/C2P_CronJob/bin/Release/app.publish/Application Files/C2P_CronJob_1_0_0_3/zh-CHS/Microsoft.ReportViewer.WinForms.resources.dll.deploy deleted file mode 100644 index 30d38e2..0000000 Binary files a/C2P_CronJob/bin/Release/app.publish/Application Files/C2P_CronJob_1_0_0_3/zh-CHS/Microsoft.ReportViewer.WinForms.resources.dll.deploy and /dev/null differ diff --git a/C2P_CronJob/bin/Release/app.publish/Application Files/C2P_CronJob_1_0_0_3/zh-CHT/Microsoft.ReportViewer.WinForms.resources.dll.deploy b/C2P_CronJob/bin/Release/app.publish/Application Files/C2P_CronJob_1_0_0_3/zh-CHT/Microsoft.ReportViewer.WinForms.resources.dll.deploy deleted file mode 100644 index b5e4610..0000000 Binary files a/C2P_CronJob/bin/Release/app.publish/Application Files/C2P_CronJob_1_0_0_3/zh-CHT/Microsoft.ReportViewer.WinForms.resources.dll.deploy and /dev/null differ diff --git a/C2P_CronJob/bin/Release/app.publish/C2P_CronJob.application b/C2P_CronJob/bin/Release/app.publish/C2P_CronJob.application deleted file mode 100644 index adcfb9d..0000000 --- a/C2P_CronJob/bin/Release/app.publish/C2P_CronJob.application +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - - - - - Sa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gYEA6Gg1M12JRcHltkDhD4Hn/eAhUtpFcUYtufc9UkEuk6YWW72EKBU2QlOGPtKwf45l38UXKP8NO29n1a/D/9VAi9nlrsxXTzeBZCC9/AKF1OFZ6hbmNbfGl4OrLOoLqsV92qPMDgYDzYoDozBh2j3bfzcq5st9rmbZc3kRqRrS3r8CAwEAATANBgkqhkiG9w0BAQUFAAOBgQACKtLdNqZI9voR9uUPsp57MqnleijK+Ly2C0lOTh3Cc/VqtdPJa6qVhZEtdt/XYwP4afdQ7Xksqer2fIXadUA/vcXo5v8Jlfywp2TML67IPODAwk8IjHpAY7XPI5erc9LbaGvbTcEI4YhY+Fy7Cg4r+dC07L0/2mmlCD1wf+VFAg== \ No newline at end of file diff --git a/C2P_CronJob/bin/Release/app.publish/autorun.inf b/C2P_CronJob/bin/Release/app.publish/autorun.inf deleted file mode 100644 index e32cf9f..0000000 --- a/C2P_CronJob/bin/Release/app.publish/autorun.inf +++ /dev/null @@ -1,3 +0,0 @@ -[autorun] -open=setup.exe -icon=setup.exe,0 diff --git a/C2P_Data/C2P_Data.csproj b/C2P_Data/C2P_Data.csproj index 45b8f56..be727c9 100644 --- a/C2P_Data/C2P_Data.csproj +++ b/C2P_Data/C2P_Data.csproj @@ -58,7 +58,8 @@ MinimumRecommendedRules.ruleset - + + @@ -69,14 +70,12 @@ - DS_Quotes.xsd - Component True @@ -85,7 +84,6 @@ DS_Utility.xsd - Component True diff --git a/C2P_Data/DS_Utility.Designer.cs b/C2P_Data/DS_Utility.Designer.cs index 80294b8..c831c6e 100644 --- a/C2P_Data/DS_Utility.Designer.cs +++ b/C2P_Data/DS_Utility.Designer.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.34014 +// Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -13971,7 +13971,7 @@ SELECT TableName, FieldName, value, label, ordinal FROM ListValues WHERE (FieldN [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private void InitCommandCollection() { - this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2]; + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[3]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; this._commandCollection[0].CommandText = "SELECT value, label FROM dbo.v_selListVal"; @@ -13983,6 +13983,14 @@ SELECT TableName, FieldName, value, label, ordinal FROM ListValues WHERE (FieldN this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TableName", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FieldName", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[2].Connection = this.Connection; + this._commandCollection[2].CommandText = "dbo.stp_listValues_getValidValuesTrad"; + this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TableName", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FieldName", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Lingua", global::System.Data.SqlDbType.NVarChar, 3, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -14031,6 +14039,35 @@ SELECT TableName, FieldName, value, label, ordinal FROM ListValues WHERE (FieldN this.Adapter.Fill(dataTable); return dataTable; } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_Utility.v_selListValDataTable getByTableFieldLang(string TableName, string FieldName, string Lingua) { + this.Adapter.SelectCommand = this.CommandCollection[2]; + if ((TableName == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(TableName)); + } + if ((FieldName == null)) { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = ((string)(FieldName)); + } + if ((Lingua == null)) { + this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[3].Value = ((string)(Lingua)); + } + DS_Utility.v_selListValDataTable dataTable = new DS_Utility.v_selListValDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } } /// diff --git a/C2P_Data/DS_Utility.cs b/C2P_Data/DS_Utility.cs index 0398b98..2a4f9e0 100644 --- a/C2P_Data/DS_Utility.cs +++ b/C2P_Data/DS_Utility.cs @@ -1,9 +1,11 @@ namespace C2P_Data { } -namespace C2P_Data { - - - public partial class DS_Utility { +namespace C2P_Data +{ + + + public partial class DS_Utility + { } } diff --git a/C2P_Data/DS_Utility.xsd b/C2P_Data/DS_Utility.xsd index 765121c..b679cc6 100644 --- a/C2P_Data/DS_Utility.xsd +++ b/C2P_Data/DS_Utility.xsd @@ -667,6 +667,19 @@ SELECT TableName, FieldName, value, label, ordinal FROM ListValues WHERE (FieldN + + + + dbo.stp_listValues_getValidValuesTrad + + + + + + + + + @@ -996,7 +1009,7 @@ SELECT TranspZone, TranspCost FROM TranspCostDet WHERE (TranspZone = @TranspZone - + @@ -1016,7 +1029,7 @@ SELECT TranspZone, TranspCost FROM TranspCostDet WHERE (TranspZone = @TranspZone - + @@ -1036,7 +1049,7 @@ SELECT TranspZone, TranspCost FROM TranspCostDet WHERE (TranspZone = @TranspZone - + @@ -1056,7 +1069,7 @@ SELECT TranspZone, TranspCost FROM TranspCostDet WHERE (TranspZone = @TranspZone - + @@ -1076,7 +1089,7 @@ SELECT TranspZone, TranspCost FROM TranspCostDet WHERE (TranspZone = @TranspZone - + @@ -1096,7 +1109,7 @@ SELECT TranspZone, TranspCost FROM TranspCostDet WHERE (TranspZone = @TranspZone - + @@ -1126,7 +1139,7 @@ SELECT TranspZone, TranspCost FROM TranspCostDet WHERE (TranspZone = @TranspZone - + @@ -1147,7 +1160,7 @@ SELECT TranspZone, TranspCost FROM TranspCostDet WHERE (TranspZone = @TranspZone - + @@ -1167,7 +1180,7 @@ SELECT TranspZone, TranspCost FROM TranspCostDet WHERE (TranspZone = @TranspZone - + @@ -1187,7 +1200,7 @@ SELECT TranspZone, TranspCost FROM TranspCostDet WHERE (TranspZone = @TranspZone - + @@ -1207,7 +1220,7 @@ SELECT TranspZone, TranspCost FROM TranspCostDet WHERE (TranspZone = @TranspZone - + @@ -1219,14 +1232,14 @@ SELECT TranspZone, TranspCost FROM TranspCostDet WHERE (TranspZone = @TranspZone - + - + @@ -1238,7 +1251,7 @@ SELECT TranspZone, TranspCost FROM TranspCostDet WHERE (TranspZone = @TranspZone - + @@ -1252,14 +1265,14 @@ SELECT TranspZone, TranspCost FROM TranspCostDet WHERE (TranspZone = @TranspZone - + - + @@ -1294,7 +1307,7 @@ SELECT TranspZone, TranspCost FROM TranspCostDet WHERE (TranspZone = @TranspZone - + @@ -1314,7 +1327,7 @@ SELECT TranspZone, TranspCost FROM TranspCostDet WHERE (TranspZone = @TranspZone - + @@ -1347,7 +1360,7 @@ SELECT TranspZone, TranspCost FROM TranspCostDet WHERE (TranspZone = @TranspZone - + @@ -1378,7 +1391,7 @@ SELECT TranspZone, TranspCost FROM TranspCostDet WHERE (TranspZone = @TranspZone - + @@ -1398,7 +1411,7 @@ SELECT TranspZone, TranspCost FROM TranspCostDet WHERE (TranspZone = @TranspZone - + @@ -1416,7 +1429,7 @@ SELECT TranspZone, TranspCost FROM TranspCostDet WHERE (TranspZone = @TranspZone - + diff --git a/C2P_Data/DS_Utility.xss b/C2P_Data/DS_Utility.xss index eb33958..e8b1438 100644 --- a/C2P_Data/DS_Utility.xss +++ b/C2P_Data/DS_Utility.xss @@ -4,7 +4,7 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + @@ -22,7 +22,7 @@ - + diff --git a/C2P_Data/bin/Release/C2P_Data.dll b/C2P_Data/bin/Release/C2P_Data.dll index 68d0bdd..c9cb4e2 100644 Binary files a/C2P_Data/bin/Release/C2P_Data.dll and b/C2P_Data/bin/Release/C2P_Data.dll differ diff --git a/C2P_Data/bin/Release/Microsoft.ReportViewer.Common.dll b/C2P_Data/bin/Release/Microsoft.ReportViewer.Common.dll new file mode 100644 index 0000000..fe74ce4 Binary files /dev/null and b/C2P_Data/bin/Release/Microsoft.ReportViewer.Common.dll differ diff --git a/C2P_Data/bin/Release/Microsoft.ReportViewer.WebForms.dll b/C2P_Data/bin/Release/Microsoft.ReportViewer.WebForms.dll new file mode 100644 index 0000000..08d1a99 Binary files /dev/null and b/C2P_Data/bin/Release/Microsoft.ReportViewer.WebForms.dll differ diff --git a/C2P_Data/bin/Release/Microsoft.ReportViewer.WebForms.xml b/C2P_Data/bin/Release/Microsoft.ReportViewer.WebForms.xml new file mode 100644 index 0000000..adafec7 --- /dev/null +++ b/C2P_Data/bin/Release/Microsoft.ReportViewer.WebForms.xml @@ -0,0 +1,1682 @@ + + + + Microsoft.ReportViewer.WebForms + + + + The namespace contains methods and properties for the ReportViewer Web server control. + + + Occurs when the ASP.NET session has expired. + + + Provides data for the event. + + + Initializes a new instance of the class. + The parent report of the drillthrough report. + + + Gets the parent report of the drillthrough report. + A (if the ReportViewer control is in local processing mode) or object (if the ReportViewer control is in remote processing mode) containing the parent report of the drillthrough report. + + + Represents the method that will handle the event of a . + The object that raised the event. + A object that contains the event arguments. + + + Provides data for the event. + + + Constructs a BookmarkNavigationEventArgs object. + The bookmark identification string. + + + Gets the bookmark identification string. + A read-only string object. + + + Represents the method that will handle the event of a . + The object that raised the event. + A object that contains the event arguments. + + + Represents errors that occur when the control is rendering a processed report from report page layout (RPL) format into HTML format. + + + Indicates how the report content should be presented. + + + Indicates that content is always presented as an attachment regardless of format. + + + Indicates that content is presented inline regardless of format. + + + Indicates that HTML-formatted content is presented inline; all other content is presented as an attachment. + + + Provides a stream to the ReportViewer control for rendering. + A Stream object to which the ReportViewer control can write data. + The name of the stream. + The file name extension to use if a file stream is being created. + An Encoding enumerator value specifying the character encoding of the stream. This may be null if the stream does not contain characters. + A string containing the MIME type of the stream. + A Boolean value indicated whether the stream needs to support seeking. If the value is false, the stream will be forward-only and will be sent to the client in chunks as it is created. If the value is true, the stream may be written in any order. + + + Represents data source credentials. + + + Constructs a DataSourceCredentials object. + + + Gets or sets the user name to be used by the data source for connecting to a report server. + A string value. + + + Gets or sets the password to be used by the data source for connecting to the report server. + A string containing the password. + + + Gets or sets the user identification to be used by the data source for connecting to the report server. + A string containing the user ID. + + + Represents a collection of objects. + + + Initializes a new instance of the class. + + + Gets the object of the specified name from the collection. + A object. + Name of the object. This parameter is not case sensitive. + + + Contains a name-value pair that represents a case insensitive device information setting. + + + Initializes a new instance of the class. + The name of the device information. + The value of the device information. + + + Gets the name of the device information. + A string value. + + + Gets the value of the device information. + A string value. + + + Represents a collection of device information settings. + + + Adds a object to the collection using the specified name and value. + The name of the device information setting. + The value of the device information setting. + + + Provides data for the event. + + + Constructs a DocumentMapNavigationEventArgs object. + A string value containing the document map node ID. + + + Gets the unique identifier of the document map node selected. + A read-only string value containing the document map node ID. + + + Represents the method that will handle the event of a . + The object raising the event. + A object containing the event arguments. + + + Represents a single node in the document map. + + + Gets a collection of child document map nodes. + A read-only array of objects. + + + Gets the unique identifier of the document map node. + A read-only string value. + + + Gets the label associated with the document map node. + A read-only string value. + + + Provides data for the event. + + + Constructs a DrillthroughEventArgs object. + The path of the drillthrough report. + The target report of the drillthrough action. + + + Gets the target report of the drillthrough action. + A read-only or object. + + + Gets the path of the drillthrough report. + A read-only String value. + + + Represents the method that will handle the event of a . + The object that raised the event. + A object that contains the event data. + + + Specifies the postback modes of the control when the user interacts with the report viewer and the currently displayed report. + + + Always perform asynchronous postbacks. + + + Always perform synchronous postbacks. + + + Perform synchronous postbacks on drillthrough actions, and asynchronous postbacks on other actions. In this mode, both clicking a drillthrough report and clicking the Back to Parent button will cause synchronous postbacks. For more information on drillthrough reports, see Adding Drillthrough Reports in SQL Server Books Online. + + + Occurs when an object supplied through an entry in the Web.config file is missing or invalid. + + + Occurs when a temporary stream does not support seeking, reading, or writing. + + + Provides report server connection information when the ReportViewer Web forms control is used with no session state. + + + Returns the URL of the report server. + A Uri object containing the URL of the report server. + + + Gets the number of milliseconds to wait for server communications. + An integer value containing the number of milliseconds to wait for server communications. + + + Provides report server connection information when the ReportViewer Web forms control is used with no session state. + + + Gets a collection of custom cookies to send to the report server. + A collection of objects that contain the custom cookies. + + + Gets a collection of custom headers to send to the report server. + A collection of string objects that contain the custom header values. + + + Allows applications to provide credentials for connecting to a Reporting Services report server. + + + Provides information that will be used to connect to the report server that is configured for forms authentication. + true if forms authentication should be used; otherwise, false. + [out] A report server authentication cookie. + [out] The name of the user. + [out] The password of the user. + [out] The authority to use when authenticating the user, such as a Microsoft Windows domain. + + + Gets or sets the of the user to impersonate when the control connects to a report server. + A object that represents the user to impersonate. + + + Gets or sets the network credentials that are used for authentication with the report server. + An implementation of that contains the credential information for connecting to a report server. + + + Allows applications to provide customized user interface messages. + + + Provides the ToolTip text for the Back button. + A string value. + + + Provides the text for the Change Credentials button. + A string value. + + + Provides the ToolTip text for the Change Credentials button. + A string value. + + + Provides the ToolTip text for the Current Page text box. + A string value. + + + Provides the title text for the Document Map panel. + A string value. + + + Provides the ToolTip text for the Document Map button. + A string value. + + + Provides the text for the Export button. + A string value. + + + Provides the ToolTip text for the Export button. + A string value. + + + Provides the ToolTip text for the Export Formats drop-down list box. + A string value. + + + Provides the text for a false value. + A string value. + + + Provides the text for a Find button. + A string value. + + + Provides the ToolTip text for the Find button. + A string value. + + + Provides the text for the Find Next button. + A string value. + + + Provides the ToolTip text for the Find Next button. + A string value. + + + Provides the ToolTip text for the First Page button. + A string value. + + + Provides the text for the invalid page number message. + A string value. + + + Provides the ToolTip text for the Last Page button. + A string value. + + + Provides the ToolTip text for the Next Page button. + A string value. + + + Provides the text for the no more matches message. + A string value. + + + Provides the text for the Null check box. + A string value. + + + Provides the text for a null value. + A string value. + + + Provides the text for the pagination message. + A string value. + + + Provides the ToolTip text for the Parameter Area button. + A string value. + + + Provides the text for the password prompt. + A string value. + + + Provides the ToolTip text for the Previous Page button. + A string value. + + + Provides the text for the Print button. + A string value. + + + Provides the text for the progress message that is displayed when a report is processing. + A string value. + + + Provides the ToolTip text for the Refresh button. + A string value. + + + Provides the ToolTip text for the Search text box. + A string value. + + + Provides the text for the Select All item in a multivalue drop-down list box. + A string value. + + + Provides the text for the Select a value prompt. + A string value. + + + Provides the text for the select format prompt. + A string value. + + + Provides the text for the 'text not found' message. + A string value. + + + Provides the text for the 'Today is…' message in the calendar control. + A string value. + + + Provides the text for a true value. + A string value. + + + Provides the text for the user name prompt. + A string value. + + + Provides the text for the View Report button. + A string value. + + + Provides the ToolTip for the Zoom control. + A string value. + + + Provides the text for the Zoom To Page Width option. + A string value. + + + Provides text for the Zoom To Whole Page item. + A string value. + + + Defines methods and properties for implementing customized user interface messages. + + + Returns the error text to display when the user name has not been supplied for the data source credentials. + Returns a String that contains the error text to display when the user name has not been supplied for the data source credentials. + The prompt value that identifies which data source is missing a value. + + + Returns a localized name for the current export format. + Returns a String that contains the localized name for the current export format. + The name of the current export format (for example, EXCEL, PDF). + + + Returns the error text to display when a selection has not been made for a multivalue report parameter. + Returns a String that contains the error text to display when a selection has not been made for a multivalue report parameter. + The prompt value that identifies which report parameter has not been specified. + + + Returns the error text to display when the value for a report parameter has not been specified. + Returns a String that contains the error text to display when a report parameter has not been specified. + The prompt value that identifies which report parameter has not been specified. + + + Gets the text to display when scripting is disabled on the client browser. + A String that contains the text to display when scripting is disabled on the client browser. + + + Gets the text to display if an error occurs when the client loads the print control. + A text String that contains the text to display if an error occurs when the client loads the print control. + + + Gets the ToolTip text to display when a pointer pauses over the down arrow of a multivalue parameter drop-down list. + A text String that contains the ToolTip text to display when a pointer pauses over the down arrow of a multivalue parameter drop-down list. + + + Allows applications to provide customized user interface messages. + + + Returns the string in the default toolbar that represents the total number of pages in the current report and the page count mode that is used. + A localized string that represents the total number of pages and the page count mode. + The number of pages in the current report. + Indicates whether the pageCount parameter represents an estimate or the actual number of pages. + + + Gets the text displayed in the date and time picker when the control waits for the Web server to generate a calendar for a given month. + A string value that represents the text displayed when the control waits for the Web server to generate a calendar for a given month. + + + Gets the text of the Cancel link in the wait control. + A string value that represents the Cancel link text. + + + Provides custom storage for temporary data. + + + Provides a stream for storing temporary data. + A Stream object to be used for storing temporary data. + + + Represents errors that occur while viewing a locally processed report. + + + Represents a report that is processed and rendered locally without connecting to a report server. + + + Initializes a new instance of the class. + + + Occurs when a subreport is processed. + + + Adds the supplied assembly to the list of assemblies that run in full trust mode in the sandboxed application domain. + The name of the assembly to be added. + + + Adds the supplied assembly to the list of assemblies that are trusted to execute in the current . + The name of the assembly to be added. + + + Releases all resources that are used by the object. + + + Causes processing extensions and expressions in the report to be executed in the current . + An object containing security information about the report. + + + Causes processing extensions and expressions to be run with limited permissions in an application domain. + + + Returns the names of all datasets used within the local report. + An array of String objects containing the list of dataset names. + + + Gets the default page settings specified in the local report. + A object containing the default page settings for the local report. + + + Returns report parameter properties for the report. + A object containing an array of objects. + + + Returns the total number of soft pages in the report and a enumeration value that indicates the current page count mode. + An integer value containing the total number of soft pages in the report. For more information on soft pages, see Understanding Rendering Behaviors. + [out] A enumeration value that indicates the page count mode used to calculate the total number of soft pages. + + + Returns all available rendering extensions for the local report. + An array of objects. + + + Loads a report definition from the local file system using a . + A class that contains the report definition for the local report. + + + Loads a subreport definition using a . + The path and filename of the subreport definition. + A class that contains the report definition for the subreport. + + + Loads a subreport definition using a . + The path and filename of the subreport definition. + A object that will contain the report definition language (RDL) for the subreport. + + + Causes the local report to be rendered with new data. + + + Causes the object to release its reference to the sandboxed application domain immediately. + + + Processes the report and renders it in the specified format using a stream provided by a callback function. + The format in which to render the report. This argument maps to a rendering extension. Supported formats include Excel, PDF, Word, and Image. To access the list of available rendering extensions, use the method. + An XML string that contains the device-specific content that is required by the rendering extension specified in the format parameter. For more information about device information settings for specific output formats, see Device Information Settings in SQL Server Books Online. + A delegate function that will be used to provide a object for rendering. + [out] An array of objects that describes any warnings that occurred during report processing and rendering. + + + Processes the report with a specified page count mode and renders it in the specified format using a stream provided by a callback function. + The format in which to render the report. This parameter maps to a rendering extension. Supported formats include Excel, PDF, Word, and Image. To access the list of available rendering extensions, use the method. + An XML string that contains the device-specific content that is required by the rendering extension specified in the format parameter. For more information about device information settings for specific output formats, see Device Information Settings in SQL Server Books Online. + A enumeration value that specifies the page count mode. This parameter has no effect on hard page renderers. For more information on soft and hard page renderers, see Understanding Rendering Behaviors + A delegate function that will be used to provide a object for rendering. + [out] An array of objects that describes any warnings that occurred during report processing and rendering. + + + Processes the report with a specified page count mode and renders it in the specified format. + A array of the report in the specified format. + The format in which to render the report. This argument maps to a rendering extension. Supported formats include Excel, PDF, Word, and Image. To access the list of available rendering extensions, use the method. + An XML string that contains the device-specific content that is required by the rendering extension specified in the format parameter. For more information about device information settings for specific output formats, see Device Information Settings in SQL Server Books Online. + A enumeration value that specifies the page count mode. + [out] The MIME type of the rendered report. + [out] The encoding used when rendering the contents of the report. + [out] The file name extension used for the output file. + [out] The stream identifiers. You can use them to render external resources (images, for example) that are associated with the report. + [out] An array of objects that describes any warnings that occurred during report processing and rendering. + + + Sets the base permissions for the sandboxed application domain with the supplied permission set. + The to set. The default base permission is Execution. + + + Sets report parameter properties for the local report. + An of objects that contains a list of the report parameter properties. + + + Gets a collection of data sources used by the report. + A read-only object. + + + Indicates whether the report can be rendered if it has external images. + A Boolean value. A value of true indicates that the local report can be rendered if it has external images. The default value is false. + + + Indicates whether the report can be rendered if it contains hyperlink actions. + A Boolean value. A value of true indicates that the report can be rendered if it contains hyperlink actions. The default value is false. + + + Returns the parameters passed from a parent report to this report, if it is a drillthrough report. + An of objects, representing the parameters passed from the parent reports to the drillthrough report, or an empty collection if this report is not a drillthrough report. + + + Gets or sets the name of the report embedded resource. + A String containing the name of the embedded resource. + + + Gets or sets the local file system path of the local report. + A String value. + + + Gets or sets a Boolean value that indicates whether detailed messages should be displayed when an error occurs in a subreport. + true if detailed messages should be displayed; otherwise, false. The default is true. + + + Represents an exception that occurs when credentials have not been supplied for a data source used by a report. + + + Represents the error that occurs when a data source expected by the report has not been supplied. + + + Represents the error that occurs when the SOAP endpoint used by the ReportViewer control could not be accessed. + + + Represents the exception that occurs when a parameter expected by the report has not been supplied. + + + Occurs when session state is not enabled, and an object implementing interface is not supplied through the Web.config file. + + + Represents the exception that occurs when no report source has been specified. + + + Represents values that control whether to calculate the actual page count or use an estimate. + + + Calculate the actual page count for the report. + + + Provide an estimate of the page count for the report instead of calculating the actual page count. + + + Provides data for a event. + + + Constructs a new PageNavigationEventArgs object. + An integer value containing the new page number. + + + Gets the number of the page resulting from the event. + An integer value containing the new page number. + + + Represents the method that will handle the event of a . + The object that raised the event. + A object that contains the arguments for this event. + + + Specifies the data type of a parameter. + + + A Boolean data type that represents a true or false condition. + + + A DateTime data type that represents the date and time. + + + A Float data type that represents a floating point decimal value. + + + An Integer data type. + + + A String data type that represents an array of characters. + + + Specifies the state of a parameter. + + + The parameter values are unavailable. This state indicates that no valid query-based values were returned as a result of the query. + + + The parameter has outstanding dependencies. This generally occurs when the valid values or the default value of a parameter is query-based and dependencies exist that have not been submitted to the method. + + + A valid value for the parameter exists. + + + A valid value for the parameter does not exist. + + + Used to specify the processing mode of the ReportViewer control. + + + Specifies that the report will be processed and rendered using the reporting engine provided by the ReportViewer control. + + + Specifies remote processing mode against a Reporting Services report server. + + + Encapsulates a rendering extension that can be used with the ReportViewer's report. + + + Gets the localized display name of the rendering extension. + A read-only string value. + + + Gets the name of the rendering extension. + A read-only string value. + + + Indicates whether the rendering extension is visible in the user interface. + A Boolean value. + + + Contains methods and properties that can apply to both local and server reports. + + + Gets the default page settings specified in the report. + A object containing the default page settings for the local report. + + + Returns the representation of the document map for the local report. + A object containing the top-level node of the document map hierarchy for the report. + + + Returns report parameter properties for the report. + A collection of objects. + + + Returns the total number of soft pages in the report. + An integer value containing the total number of soft pages in the report. For more information on soft pages, see Understanding Rendering Behaviors. + + + Returns the total number of soft pages in the report and a value that indicates the current page count mode. + An integer value containing the total number of soft pages in the report. For more information on soft pages, see Understanding Rendering Behaviors. + [out] A enumeration value that indicates the page count mode that was used to calculate the total number of pages. + + + Returns all available rendering extensions for the report. + An array of objects. + + + Loads a report definition for processing using a . + A class that contains the report definition for the report. + + + Loads a report definition for processing using a . + A class that contains the report definition for the report. + + + Causes the report to be rendered with new data. + + + Processes the report and renders it in the specified format. + A byte array of the report in the specified format. + The format in which to render the report. This parameter maps to a rendering extension.In local processing mode, supported extensions are Excel, PDF, Word, and Image. In remote processing mode, supported extensions depend on the extensions supported by the report server.You can access the list of available rendering extensions using the ListRenderingExtensions method in or , depending on the processing mode (see ). + + + Processes the report and renders it in the specified format. + A byte array of the report in the specified format. + The format in which to render the report. This parameter maps to a rendering extension.In local processing mode, supported extensions are Excel, PDF, Word, and Image. In remote processing mode, supported extensions depend on the extensions supported by the report server.You can access the list of available rendering extensions using the ListRenderingExtensions method in or , depending on the processing mode (see ). + An XML string that contains the device-specific content that is required by the rendering extension specified in the format parameter. For more information about device information settings for specific output formats, see Device Information Settings in SQL Server Books Online. + + + Processes the report and renders it in the specified format. + A array of the report in the specified format. + The format in which to render the report. This argument maps to a rendering extension.In local processing mode, supported extensions are Excel, PDF, Word, and Image. In remote processing mode, supported extensions depend on the extensions supported by the report server.You can access the list of available rendering extensions using the ListRenderingExtensions method in or , depending on the processing mode (see ). + An XML string that contains the device-specific content that is required by the rendering extension specified in the format parameter. For more information about device information settings for specific output formats, see Device Information Settings in SQL Server Books Online. + [out] The MIME type of the rendered report. + [out] The encoding used when rendering the contents of the report. + [out] The file name extension used for the output file. + [out] The stream identifiers You can use them to render the external resources (images, for example) that are associated with the report. + [out] An array of objects that describes any warnings that occurred during report processing. + + + Processes the report with the specified value and renders it in the specified format. + A byte array of the report in the specified format. + The format in which to render the report. This parameter maps to a rendering extension.In local processing mode, supported extensions are Excel, PDF, Word, and Image. In remote processing mode, supported extensions depend on the extensions supported by the report server.You can access the list of available rendering extensions using the ListRenderingExtensions method in or , depending on the processing mode (see ). + An XML string that contains the device-specific content that is required by the rendering extension specified in the format parameter. For more information about device information settings for specific output formats, see Device Information Settings in SQL Server Books Online. + A enumeration value that specifies the page count mode. + [out] The MIME type of the rendered report. + [out] The encoding used when rendering the contents of the report. + [out] The file name extension used for the output file. + [out] The stream identifiers. You can use them to render the external resources (images, for example) that are associated with the report. + [out] An array of objects that describes any warnings that occurred during report processing. + + + Sets report parameter properties for the report. + An array of objects that contains a list of the report parameters properties. + + + Sets report parameter properties for the report. + A object. + + + Gets or sets the display name of the report. + A string containing the report's display name. + + + Indicates whether the report is a drillthrough report. + A Boolean value. A value of true indicates that this is a drillthrough report. + + + Gets a Boolean value that indicates whether a report definition and all parameters have been specified, and all data sources are ready for use. + true if a report definition and all required parameters have been specified, and all data sources are ready for use; otherwise, false. The default is false. + + + Specifies the type of content displayed in the report area. + + + The report area displays an error message. + + + The report area displays nothing. + + + The report area displays a report page. + + + The current content type displayed in the report area is unknown. For more information, see . + + + Provides data for the event. + + + Gets a collection of . + A collection of objects. + + + Represents the method that will handle a event. + The source of the event. + A that contains the event data. + + + Represents a data source for a report. + + + Constructs an empty data source. + + + Constructs a named data source. + The name of the data source. + + + Constructs a named data source with a in the property. + The name of the data source, as specified in the report definition for the current report. + A object that contains the data. + + + Constructs a named data source with an in the property. + The name of the data source, as specified in the report definition for the current report. + An object that contains the data. + + + Constructs a named data source with an in the property. + The name of the data source, as specified in the report definition for the current report. + An object that contains the data. + + + Constructs a named data source with a value. + The name of the data source. + A value for the data source. + + + Constructs a named data source with a data source ID. + The name of the data source. + The ID of the data source. + + + Specifies the name of the list of data for binding. + A value. + + + Gets or sets the data source ID. + A value. + + + Gets or sets the name of the report data source. + A string containing the name of the data source. + + + Gets or sets the instance of the report data source. + An Object containing an instance of the report data source. + + + Contains a collection of objects. + + + Returns a report data source from the collection that matches a specified name. + A object. + The name of the report data source to retrieve from the collection. + + + Represents information about a report data source. + + + Gets the name of the report data source. + A string containing the name of the report data source. + + + Gets a prompt for the data source. + A string containing a prompt for the data source. + + + Represents a collection of objects. + + + Returns a specific object from the collection. + A object. + The name of the object to return. + + + Provides data for the event. + + + Returns an Exception object containing information about the report error. + An Exception object containing information about the report error. + + + Indicates whether the host application has handled the error. + A Boolean value indicating whether the host application has handled the error. The default value is false. + + + Represents the method that will handle a event. + The object that raised the event. + A object that contains information about the event. + + + Represents the page settings for a report. + + + Indicates whether the orientation of the report as defined in the report definition file is landscape. + true if the orientation of the report as defined in the report definition file is landscape; otherwise, false. + + + Represents the margins for a report page. Read-only. + A read-only Margins object containing margin information about the report page. + + + Represents the paper size settings for a report page. Read-only. + A read-only PaperSize object containing information about report page size. + + + Represents a parameter for a report. + + + Instantiates a new ReportParameter. + + + Instantiates a new ReportParameter with a name. + The name of the parameter. + + + Instantiates a new ReportParameter with a name and a value. + The name of the parameter. + The value of the parameter. + + + Instantiates a new multivalued ReportParameter with a name. + The name of the parameter. + The values of the parameter. + + + Instantiates a new ReportParameter with a name, a value, and a visibility flag. + The name of the parameter. + The value of the parameter. + Determines if the parameter is displayed in the user interface. + + + Instantiates a new ReportParameter with a name, multiple values, and a visibility flag. + The name of the parameter. + The values of the parameter. + Determines if the parameter is displayed in the user interface. + + + Gets or sets the name of the parameter. + A String value. + + + Gets a collection of string objects containing one or more values for the parameter. + A StringCollection object. + + + Determines whether the parameter can be displayed in the user interface. + A Boolean value. + + + Represents a collection of objects. + + + Initializes a new instance of the class. + + + Gets an object in the collection by its name. + A with the specified name, if found; otherwise, a null reference (Nothing in Visual Basic). + The name of the object to get. This is the value of the property.This parameter is not case sensitive. + + + Encapsulates information about report parameters. + + + Indicates whether an empty string is a valid value for the parameter. Read-only. + A Boolean value. + + + Indicates whether the default values of the parameter are based on a query. Read-only. + A Boolean value. + + + Indicates whether the parameter's valid values are based on a query. Read-only. + A read-only Boolean value. + + + Gets the data type of the parameter. Read-only. + A read-only value. + + + Gets a list of parameters whose values are used to retrieve additional parameter values in a query. Read-only. + A read-only . + + + A list of parameters that use the value of this parameter as parameters into queries to retrieve and/or . + A read-only . + + + Gets an error message returned when the parameter has failed validation. Read-only. + A read-only string containing the text of the error message. + + + Indicates whether the parameter is used in a query to an external data source. Read-only. + A read-only Boolean value. + + + Indicates whether the parameter can be a multivalue parameter. Read-only. + A read-only Boolean value. + + + Gets the name of the parameter. Read-only. + A string containing the name of the parameter. + + + Indicates whether the value of the parameter can be null. Read-only. + A read-only Boolean value. + + + The text that prompts the user to provide parameter values. + A string containing the text of the prompt. + + + Indicates whether the user is prompted for the value of the parameter. + A read-only Boolean value. + + + Describes the state of the parameter. Read-only. + A read-only value. + + + Gets the available valid values for the parameter. Read-only. + A read-only array of objects. + + + Gets the values for the parameter. + A read-only list of string values. + + + Determines whether the parameter can be displayed in the user interface. + A Boolean value. + + + A collection of objects. + + + Returns a named item from the ReportParameterInfoCollection. + A object from the collection. + The name of the item to retrieve. + + + Provides data for the event. + + + Gets a value indicating whether the event is triggered by the automatic submission of report parameters due to dependencies between them. + true if the event is triggered by the automatic submission of report parameters; false if it is triggered by the user clicking the View Report button. + + + Gets the parameters that are being submitted to the report server by the user in the parameter prompt area. + A object containing the parameter values submitted by the user. + + + Represents the callback method that will handle the event. + The source of the event. + A that contains the event data. + + + Represents the error that occurs when a report contains a security violation. + + + Represents errors that occur while connecting to a report server and also errors that occur on the report server while processing a server report or rendering the report to the report page layout (RPL) format. + + + Returns the error code from the exception. + A string value containing the error code returned by the report server, or null if the connection attempt to the report server is unsuccessful. + + + Encapsulates the methods and properties used for the ReportViewer control. + + + Initializes a new instance of the class. + + + Occurs when a user navigates from a drillthrough report back to the parent report. + + + Occurs when a user browses to a bookmark in a report. + + + Occurs when a document map node is selected. + + + Occurs when a drillthrough item is selected. + + + Occurs when a user moves to a different page in a report. + + + Occurs when an error is found in the report. + + + Occurs when the report is refreshed. + + + Occurs when the Find or Find Next button is clicked, or when a search operation is invoked programmatically. + + + Occurs when the user activates a sort on the report data. + + + Occurs when the user submits new data source credentials using the data source prompt area. + + + Occurs when report parameter values are submitted to the report server. + + + Occurs when the user toggles the visibility of an item in the report. + + + A constant that represents the maximum number of pages in a report when the current page count mode is . + + + Searches the report in the report area for the specified text string, starting from the specified page number. + The search string. + The page number on which to start searching. + + + Returns the page settings that are used to print the current report in the ReportViewer control. + A object that contains the page settings that are used to print the current report in the ReportViewer control, or null if the ReportViewer control has not yet processed a report. + + + Moves the focus of the report to the specified bookmark. + The ID of the bookmark. + + + Moves the focus of the document map to the specified node. + The ID of the document map node. + + + Navigates the ReportViewer control back to the parent report from a drillthrough report. + + + Registers the specified control with the ReportViewer control. The ReportViewer control displays the wait control when the registered control causes a postback. + The control to register as a trigger for a ReportViewer postback. + + + Resets the control to its default values. + + + Reverts the page settings for the current report in the ReportViewer control to the settings in the report definition. + + + Sets the page settings that are used to print the current report in the ReportViewer control. + A object that contains the new page settings.This parameter must not be null. + + + Gets or sets a Boolean value that indicates whether the report is rendered asynchronously from the rest of the Web page when the Web page is being loaded. + true if the report is rendered asynchronously; otherwise, false. The default is true. + + + Gets or sets the background color of the control's report area. + A value indicating the background color of the control's report area. + + + Gets or sets the current page of the ReportViewer control's active report. + An integer value containing the current page of the report. The default value is 0. + + + Gets or sets the collapsed state of the document map. + true if the document map is collapsed; otherwise, false. The default is false. + + + Gets or sets the width of the document map. + A object that represents the document map width. By default, a object that represents 25 percent of the ReportViewer width is returned. + + + Gets or sets a value that indicates whether content should be present in-line or as an attachment. + A enumeration value indicating how content should be presented. + + + Gets or sets the height of the control. + A object that represents the height of the control. + + + Gets or sets the target window or frame for the Web page content that is returned when a hyperlink in the report is clicked. + A String value. + + + Specifies the ID of the control. + A string value that represents the ID of the control. + + + Gets the object that the ReportViewer control uses to render the report in the report area as HTML. + A object. + + + Gets or sets an value that indicates the postback mode of the control. + An value that indicates the postback mode. The default value is . + + + Gets or sets the internal border color of the control. + A value indicating the color of the control's internal border. + + + Gets or sets the internal border style of the control. + A value indicating the style of the control's internal border. + + + Gets or sets the width of the internal border of the control. + A value containing the width of the internal border of the control. + + + Gets or sets a Boolean value that indicates whether to keep the user session from expiring as long as the Web page is displayed in the browser. + true to keep the user session from expiring; otherwise, false. The default is true. + + + Gets or sets the color of an active link in the control. + A value indicating the color of the active link. + + + Gets or sets the color of the active link in the control while the mouse pointer is over the link. + A value indicating the color of the active link in hover state. + + + Gets or sets the color of a disabled link in the control. + A value indicating the color of the disabled link. + + + Gets the instance of the class that is used when the for the control is set to . + A object containing the local report in the ReportViewer control. + + + Gets or sets a enumeration value that indicates the default page count mode to use when rendering a report in the report area. + A enumeration value. The default value is . + + + Gets or sets the processing mode of the ReportViewer control. + A enumerator value of either Local or Remote. The default value is Local. + + + Gets or sets the collapsed state of the parameter prompt area or the credentials prompt area. + true if the prompt area is collapsed; otherwise, false. The default is false. + + + Gets a object that indicates the current content type of the report area. + A object. + + + Gets the search text and the start page of the current report search operation. + A object, or null if there is not an ongoing report search operation. + + + Gets the instance of the class that is used when the for the control is set to . + A object that contains the server report in the ReportViewer control. + + + Gets or sets a value that indicates whether the Back button is visible on the toolbar. + true if the Back button is visible on the toolbar; otherwise, false. The default is true. + + + Gets or sets a value that indicates whether to display a prompt for user credentials. + true if a prompt for credentials is shown to the user; otherwise, false. The default is true. + + + Gets or sets a value that indicates whether the button that shows and collapses the document map is visible on the split bar. + true if the button is visible on the split bar; otherwise, false. The default is true. + + + Gets or sets a value that indicates whether the Export control is visible on the toolbar. + true if the Export control is visible on the toolbar; otherwise, false. The default is true. + + + Gets or sets a value that indicates whether the Find text box is visible on the toolbar. + true if the Find text box is visible on the toolbar; otherwise, false. The default is true. + + + Gets or sets a value that indicates whether the page navigation controls are visible on the toolbar. + true if the page navigation controls are visible on the toolbar; otherwise, false. The default is true. + + + Gets or sets a value that indicates whether parameter prompts are displayed. + true if parameter prompts are displayed; otherwise, false. The default is true. + + + Gets or sets a value that indicates whether Print button is visible on the toolbar. + true if the Print button is visible on the toolbar; otherwise, false. The default is true. + + + Gets or sets a value that indicates whether the button that shows and collapses the prompt area is visible on the split bar. + true if the button is visible on the split bar; otherwise, false. The default is true. + + + Gets or sets a value that indicates whether the Refresh button is visible. + true if the Refresh button is visible on the toolbar; otherwise, false. The default is true. + + + Gets or sets a value that indicates whether the report body is visible on the control. + true if the report body is visible on the control; otherwise, false. The default is true. + + + Gets or sets a value that indicates whether the toolbar is visible on the control. + A Boolean value. The default value is true. + + + Gets or sets a Boolean value that controls whether to display the Cancel link in the wait control. + true if the Cancel link should be shown; otherwise, false. The default is true. + + + Gets or sets a value that indicates whether the Zoom list box is visible. + A Boolean value. The default value is true. + + + Gets or sets a value that indicates whether the ReportViewer control should automatically resize to accommodate report content. + A Boolean value. A value of true indicates that the control should automatically resize to accommodate report content. The default value is false. + + + Gets or sets the background color of the document map split bar and the prompt area split bar. + A object. The default color has the RGB values (236,233,216). + + + Gets or sets the border color of an item on the toolbar. + A value indicating the color of the toolbar item. + + + Gets or sets the border style of an item on the toolbar. + A value containing the border style of the toolbar item. + + + Gets or sets the width of the toolbar item border. + A value containing the border width of the toolbar item. + + + Gets or sets the background color of toolbar item while the mouse pointer is over the item. + A value indicating the background color of the toolbar item in hover state. + + + This property is no longer applicable and exists for backward compatibility. ReportViewer control no longer uses pressed buttons. + A value indicating the color of the toolbar item in pressed state. + + + This property is no longer applicable and exists for backward compatibility. The ReportViewer control no longer uses pressed buttons. + A value containing the border style of the toolbar item in selected state. + + + This property is no longer applicable and exists for backward compatibility. The ReportViewer control no longer uses pressed buttons. + A value containing the border width of the toolbar item while it is being selected. + + + This property is no longer applicable and exists for backward compatibility. The ReportViewer control no longer uses pressed buttons. + A value indicating the background color of the toolbar item in hover state. + + + Gets or sets the delay in milliseconds before the wait control is displayed to the user when the report is loaded. + An int value that specifies the time in milliseconds. The default value is 1000 (1 second). + + + Gets the font for the message that is displayed while the report is being executed. + A object containing the font value. The default font is 14-point Verdana. + + + Gets or sets the width of the control. + A object that represents the width of the control. + + + Gets or sets the zoom mode of the control. + A enumerator value indicating the zoom mode of the control. The default value is 100%. + + + Gets or sets the zoom percentage to use when displaying the report. + An integer value that contains the zoom percentage. + + + Represents a collection of objects. + + + Represents errors that occur while viewing or configuring a report. + + + This constructor supports the .NET Framework infrastructure and is not intended to be used directly from your code. + + + This constructor supports the .NET Framework infrastructure and is not intended to be used directly from your code. + + + Represents a collection of strings that contain custom headers. + + + The exception that is thrown if a control is not found in the Web form. + + + Provides data for a event in the ReportViewer control. + + + Constructs a new SearchEventArgs object. + The search string. + The page on which to start searching. + Indicates that this event is occurring as a result of a Find Next command. + + + Indicates that this event is occurring as a result of a Find Next command. + A Boolean value. A value of true indicates that this event occurred because of a Find Next command. + + + Returns the search string being used for the search. + A string value containing the search string. + + + Returns the page number on which to start searching. + An integer containing the starting page number to search. + + + Represents the method that will handle a event. + The object that raised the event. + A object that contains information about the event. + + + Contains the search text and the start page of a search operation. + + + Gets the start page of the search operation. + An int value that represents the start page of the search operation. + + + Gets the search text. + A string that represents the search text. + + + Represents a report that is processed on the report server. + + + Initializes a new instance of the class. + + + Retrieves information about the data sources used for a report. + A containing objects. + + + Retrieves information about the data sources used for a report, including whether all required credentials have been supplied for the report data sources. + A containing objects. + [out] Indicates whether all required credentials have been supplied for the data sources used by the server report. + + + Gets the default page settings specified in the report definition. + A object containing the default page settings for the local report. + + + Returns the current execution ID, or null (Nothing in Visual Basic) if no execution ID is available. + A String that contains the execution ID. + + + Returns report parameter properties for the report. + A object that contains an array of objects. + + + Returns the version of the report server. + A string value containing the server version information. + + + Returns the total number of soft pages in the report and a value that indicates the current page count mode. + An integer value containing the total number of soft pages in the report. For more information on soft pages, see Understanding Rendering Behaviors. + [out] A enumeration value that indicates the page count mode used to calculate the total number of soft pages. + + + Indicates whether the report can execute queries. + A Boolean value indicating whether the report can execute queries. + + + Returns all available rendering extensions for the server report. + An array of objects. + + + Loads the report definition on the report server for remote processing using a . + A class that can be used to read the report definition language (RDL) file for the report. + + + Causes the report to be rendered with new data. + + + Renders the report with optional URL access parameters. + A that contains the rendered report. + The format in which to render the report. This argument maps to a rendering extension. You can use any rendering extension available on the report server.To access the list of available rendering extensions, use the method. + An XML string that contains the device-specific content that is required by the rendering extension specified in the format parameter. For more information about device information settings for specific output formats, see Device Information Settings in SQL Server Books Online. + URL access parameters to pass to the report server. For more information, see the URL Access documentation in SQL Server Books Online.This parameter may be set to null. + [out] The MIME type of the rendered report. + [out] The file name extension used for the output file. + + + Renders the report with optional URL access parameters. + The format in which to render the report. This argument maps to a rendering extension. You can use any rendering extension available on the report server.To access the list of available rendering extensions, use the method. + An XML string that contains the device-specific content that is required by the rendering extension specified in the format parameter. For more information about device information settings for specific output formats, see Device Information Settings in SQL Server Books Online. + URL access parameters to pass to the report server. For more information, see the URL Access documentation in SQL Server Books Online.This parameter may be set to null. + The stream into which the rendered report will be written. + [out] The MIME type of the rendered report. + [out] The file name extension used for the output file. + + + Processes the report with the specified value and renders it in the specified format. + A array of the report in the specified format. + The format in which to render the report. This argument maps to a rendering extension. You can use any formatting extension available on the report server.To access the list of available rendering extensions, use the method. + An XML string that contains the device-specific content that is required by the rendering extension specified in the format parameter. For more information about device information settings for specific output formats, see Device Information Settings in SQL Server Books Online. + A enumeration value that specifies the page count mode. + [out] The MIME type of the rendered report. + [out] The encoding used when rendering the contents of the report. + [out] The file name extension used for the output file. + [out] The stream identifiers. You can use them to render external resources (images, for example) that are associated with the report. + [out] An array of objects that describes any warnings that occurred during report processing. + + + Returns a secondary stream associated with a processed report. + A array of the stream in the specified format. For more information about this data type, see "Byte Structure" in the .NET Framework documentation. + The format in which to render the stream. This argument maps to a rendering extension. You can use any rendering extension available on the report server.To access the list of available rendering extensions, use the method. + The stream identifier. + An XML string that contains the device-specific content that is required by the rendering extension specified in the format parameter. For more information about device information settings for specific output formats, see Device Information Settings in SQL Server Books Online. + The MIME type of the stream. + The Microsoft .NET Framework encoding class name. + + + Sets the data source credentials for the report. + A set of data source credentials to submit to the report server. + + + Initializes a server report using a specific report execution on the server. + A String containing the execution ID to use. + + + Sets report parameter properties for the report. + An of objects that contains a list of the report parameters properties. + + + Gets a collection of objects. The object uses the cookies in this collection when making server requests. + A object that contains a collection of objects. + + + Gets a collection of strings that contain custom headers. + A object that contains a collection custom headers. + + + Gets or sets the unique identifier of the report history snapshot used for the server report. + A string value containing the unique identifier of the report history snapshot used for the server report. + + + Gets or sets the path to the report on the server. + A string value. + + + Gets or sets the credentials to be used with the report server. + A object containing the credentials to be used with the report server. + + + Gets or sets the URL for the report server. + A object containing the URL for the report server. + + + Gets or sets the number of milliseconds to wait for server communications. + An integer value containing the server time-out, in milliseconds. The default value is 600000 milliseconds. + + + Occurs when the ASP.NET session has been disabled. + + + Specifies the severity of a warning. + + + The severity level of the warning is Error. + + + The severity level of the warning is Warning. + + + Represents the exception that occurs when the report server version is not compatible with the report control. + + + Provides data for the event. + + + Constructs a new SortEventArgs object. + The ID of the sort action. + A enumeration value indicating the direction of the sort. The default value is none. + A Boolean value that indicates whether all other existing sorts should be cleared. The default is false. + + + Indicates whether all other existing sorts should be cleared. + A Boolean value that indicates whether all other existing sorts should be cleared. The default is false. + + + Gets an enumeration value indicating the direction of the sort. + A enumeration value indicating the direction of the sort. + + + Gets the unique identifier of the sort action. + A string containing the ID of the sort action. + + + Represents the method that will handle the event of a . + The object raising the event. + A object containing information about the event. + + + Indicates the direction of a sort operation. + + + Indicates an ascending sort. + + + Indicates a descending sort. + + + Provides data for the event. + + + Gets the list of data source names for the subreport. + A list of string objects containing the names of the data sources for the subreport. + + + Returns a collection of data sources for the subreport. + A collection of objects. + + + Gets a collection of parameters for the subreport. + A containing information about the subreport parameters. + + + Returns the name of the subreport. + A string containing the name of the subreport. + + + Represents the method that will handle the event of a . + The object that raised the event. + A object containing information about the event. + + + Represents a possible valid value for a parameter. + + + Gets a label for the valid value. + A read-only string object. + + + Gets a valid value. + A read-only string object. + + + Occurs when the ReportViewer control detects that view state is disabled. + + + Represents a list of errors or warnings that are returned when a report is rendered or processed. + + + Gets the error code that is assigned to the warning. Read-only. + A read-only string value. + + + Gets a message that describes the error or warning. Read-only. + A read-only string value. + + + Gets the name of the object in the report definition that contributed to the warning. Read-only. + A read-only string value. + + + Gets the type of object in the report definition that caused the error or warning. Read-only. + A read-only string value. + + + Gets the severity type of the error or warning. Read-only. + A read-only string value. + + + Specifies the zoom mode for the ReportViewer control. + + + Sets the zoom mode to full page. + + + Sets the zoom mode to page width. + + + Sets the zoom mode to a percentage. + + + \ No newline at end of file diff --git a/C2P_Data/bin/Release/Microsoft.ReportViewer.WinForms.dll b/C2P_Data/bin/Release/Microsoft.ReportViewer.WinForms.dll new file mode 100644 index 0000000..21cd6b2 Binary files /dev/null and b/C2P_Data/bin/Release/Microsoft.ReportViewer.WinForms.dll differ diff --git a/C2P_Data/bin/Release/Microsoft.ReportViewer.WinForms.xml b/C2P_Data/bin/Release/Microsoft.ReportViewer.WinForms.xml new file mode 100644 index 0000000..bb086b5 --- /dev/null +++ b/C2P_Data/bin/Release/Microsoft.ReportViewer.WinForms.xml @@ -0,0 +1,1846 @@ + + + + Microsoft.ReportViewer.WinForms + + + + The namespace contains methods and properties for the ReportViewer Windows forms control. + + + Provides data for the Back event. + + + Constructs a new BackEventArgs object. + The parent report of the drillthrough report. + + + Gets the parent report of the drillthrough report. + A (if the ReportViewer control is in local processing mode) or object (if the ReportViewer control is in remote processing mode) containing the parent report of the drillthrough report. + + + Represents the method that will handle the event of a . + The object that raised the event. + A object that contains the event arguments. + + + Provides data for the event. + + + Constructs a BookmarkNavigationEventArgs object. + The bookmark identification string. + + + Gets the bookmark identification string. + A read-only string object. + + + Represents the method that will handle the event of a . + The object that raised the event. + A object that contains the event arguments. + + + Represents errors that occur when the control is rendering a processed report from report page layout (RPL) format into GDI+ format. + + + Provides a stream to the ReportViewer control for rendering. + A Stream object to which the ReportViewer control can write data. + The name of the stream. + The file name extension to use if a file stream is being created. + An Encoding enumerator value specifying the character encoding of the stream. This may be null if the stream does not contain characters. + A string containing the MIME type of the stream. + A Boolean value indicated whether the stream needs to support seeking. If the value is false, the stream will be forward-only and will be sent to the client in chunks as it is created. If the value is true, the stream may be written in any order. + + + Represents data source credentials. + + + Constructs a DataSourceCredentials object. + + + Gets or sets the user name to be used by the data source for connecting to a report server. + A string value. + + + Gets or sets the password to be used by the data source for connecting to the report server. + A string containing the password. + + + Gets or sets the user identification to be used by the data source for connecting to the report server. + A string containing the user ID. + + + Represents a collection of objects. + + + Initializes a new instance of the class. + + + Gets the object of the specified name from the collection. + A object. + Name of the object. This parameter is not case sensitive. + + + Represents a possible display mode for the ReportViewer control. + + + Specifies that the control is in normal mode. This mode causes the control to display logical pages. + + + Specifies that the control is in print layout mode. In this mode, the control displays physical pages. + + + Provides data for the event. + + + Construct a new DocumentMapNavigationEventArgs object. + A string containing the document map node ID. + + + Gets the unique identifier of the document map node selected. + A read-only string value containing the document map node ID. + + + Represents the method that will handle the event of a . + The object raising the event. + A object containing the event arguments. + + + Represents a single node in the document map. + + + Gets a collection of child document map nodes. + A read-only array of objects. + + + Gets the unique identifier of the document map node. + A read-only string value. + + + Gets the label associated with the document map node. + A read-only string value. + + + Provides data for the event. + + + Constructs a new DrillthroughEventArgs object. + The path of the drillthrough report. + The target report of the drillthrough action. + + + Gets the target report of the drillthrough action. + A read-only or object. + + + Gets the path of the drillthrough report. + A read-only string value. + + + Represents the method that will handle the event of a . + The object that raised the event. + A object that contains the event data. + + + Represents the method that will handle the event. + The object firing the event. + A class containing the arguments for the event. + + + Contains information about a event. + + + Gets the URL that the user clicked on in a report. + A string value containing the hyperlink. + + + Represents the method that will handle a event. + The object that raised the event. + A object that contains the arguments for this event. + + + Allows objects to provide credentials to use for connecting to a report server. + + + Provides forms authentication to be used to connect to the report server. + A Boolean value. A value of true indicates that forms authentication should be used. + [out] A report server authentication cookie. + [out] The name of the user. + [out] The password of the user. + [out] The authority to use when authenticating the user, such as a Microsoft Windows domain. + + + Specifies the user to impersonate when connecting to a report server. + A WindowsIdentity object representing the user to impersonate. + + + Returns network credentials to be used for authentication with the report server. + A NetworkCredentials object. + + + Allows applications to provide customized user interface messages. + + + Provides the ToolTip text for the Back button. + A string value. + + + Provides the text for the Back menu item. + A string value. + + + Provides the text for the Change Credentials button. + A string value. + + + Provides the ToolTip text for the Current Page text box. + A string value. + + + Provides the ToolTip text for the Document Map button. + A string value. + + + Provides the text for the document map menu item. + A string value. + + + Provides the ToolTip text for the Export button. + A string value. + + + Provides the text for the Export menu item. + A string value. + + + Provides the text for a false value. + A string value. + + + Provides the text for a Find button. + A string value. + + + Provides the ToolTip text for the Find button. + A string value. + + + Provides the text for the Find Next button. + A string value. + + + Provides the ToolTip text for the Find Next button. + A string value. + + + Provides the ToolTip text for the First Page button. + A string value. + + + Provides the ToolTip text for the Last Page button. + A string value. + + + Provides the ToolTip text for the Next Page button. + A string value. + + + Provides the text for the no more matches message. + A string value. + + + Provides the text for the Null check box. + A string value. + + + Provides the ToolTip text for the Null check box. + A string value. + + + Provides the text for a null value. + A string value. + + + Provides the text for the pagination message. + A string value. + + + Provides the ToolTip text for the Page Setup button. + A string value. + + + Provides the text for the Page Setup menu item. + A string value. + + + Provides the ToolTip text for the Parameter Area button. + A string value. + + + Provides the text for the password prompt. + A string value. + + + Provides the ToolTip text for the Previous Page button. + A string value. + + + Provides the text for the Print button. + A string value. + + + Provides the ToolTip text for the Print Layout button. + A string value. + + + Provides the text for the Print Layout menu item. + A string value. + + + Provides the text for the Print menu item. + A string value. + + + Provides the text for the progress message that is displayed when a report is processing. + A string value. + + + Provides the ToolTip text for the Refresh button. + A string value. + + + Provides the text for the Refresh menu item. + A string value. + + + Provides the ToolTip text for the Search text box. + A string value. + + + Provides text for the Select All item in a multivalue drop-down list box. + A string value. + + + Provides text for the Select a value prompt. + A string value. + + + Provides the ToolTip text for the Stop button. + A string value. + + + Provides the text for the Stop menu item. + A string value. + + + Provides the text for the text not found message. + A string value. + + + Provides the ToolTip text for the Total Pages item. + A string value. + + + Provides the text for a true value. + A string value. + + + Provides the text for the user name prompt. + A string value. + + + Provides the text for the View Report button. + A string value. + + + Provides the ToolTip text for the View Report button. + A string value. + + + Provides the ToolTip text for the Zoom control. + A string value. + + + Provides the text for the Zoom menu item. + A string value. + + + Provides the text for the Zoom To Page Width option. + A string value. + + + Provides text for the Zoom To Whole Page item. + A string value. + + + Defines methods and properties for implementing customized user interface messages. + + + Returns the error text to display when the user name has not been supplied for the data source credentials. + Returns a String that contains the error text to display when the user name has not been supplied for the data source credentials. + The prompt value that identifies which data source is missing a value. + + + Returns a localized name for the current export format. + Returns a String that contains the localized name for the current export format. + The name of the current export format (for example, EXCEL, PDF). + + + Returns the error text to display when a selection has not been made for a multivalue report parameter. + Returns a String that contains the error text to display when a selection has not been made for a multivalue report parameter. + The prompt value that identifies which report parameter has not been specified. + + + Returns the error text to display when a report parameter has not been specified. + Returns a String that contains the error text to display when a report parameter has not been specified. + The prompt value that identifies which report parameter has not been specified. + + + Gets the text for the All Files filter option in the Save As dialog box when a report is exported. + A String that contains the text to display for the All Files filter option in the Save As dialog box when a report is exported. + + + Gets the ToolTip text to display when a pointer pauses over a report parameter with a data type of DateTime. + A String that contains the ToolTip text to display when a pointer pauses over a report parameter that has a data type of DateTime. + + + Gets the title text for the dialog box when an error occurs exporting a report. + A String that contains the title text for the dialog box when an error occurs exporting a report. + + + Gets the ToolTip text to display when a pointer pauses over a report parameter with a data type of Float. + A String that contains the ToolTip text to display when a pointer pauses over a report parameter that has a data type of Float. + + + Gets the title text for the dialog box if an error occurs when the user selects a Hyperlink in the report. + A String that contains the title text for the dialog box if an error occurs when the user selects a Hyperlink in the report. + + + Gets the ToolTip text to display when a pointer pauses over a report parameter with a data type of Integer. + A String that contains the ToolTip text to display when a pointer pauses over a report parameter that has a data type of Integer. + + + Gets the title text for the message box dialog box displayed by the report viewer. + A String that contains the title text for the message box dialog box displayed by the report viewer. + + + Gets the text to display when the processing of a report has been stopped. + A String that contains the text to display when the processing of a report has been stopped. + + + Gets the title text for the dialog box when an error occurs in the prompt area. + A String that contains the title text for the dialog box when an error occurs in the prompt area. + + + Gets the ToolTip text to display when a pointer pauses over a report parameter with a data type of String. + A String that contains the ToolTip text to display when a pointer pauses over a report parameter that has a data type of String. + + + Allows applications to provide customized user interface messages. + + + Returns the string in the default toolbar that represents the total number of pages in the current report and the that was used to determine it. + A localized string that represents the total number of pages and the page count mode. + The total number of pages in the current report. + Indicates whether the pageCount parameter represents an estimated or actual number of pages. + + + Gets the text of the Cancel link in the wait control. + A string value that represents the Cancel link text. + + + Gets the text displayed on the Cancel button in the Exporting dialog box after the user selects an export format. + A string value that represents the text of the Cancel button. + + + Gets the text displayed in the Exporting dialog box after the user selects an export format and that indicates that the export is in progress and the user must wait for it to complete. + A string value that indicates that an export is in progress and that the user needs to wait for it to complete. + + + Gets the title of the Exporting dialog box that opens after the user selects an export format. + A string value that specifies the title of the Exporting dialog box. + + + Gets the tooltip text for the radio button that indicates false for a Boolean parameter. + A string value that represents the tooltip text for the radio button that indicates false for a Boolean parameter. + + + Gets the tooltip text for the radio button that indicates true for a Boolean parameter. + A string value that represents the tooltip text for the radio button that indicates true for a Boolean parameter. + + + Represents errors that occur while viewing a locally processed report. + + + Represents a report that is processed and rendered locally without connecting to a report server. + + + Initializes a new instance of the class. + + + Occurs when a subreport is processed. + + + Adds the supplied assembly to the list of assemblies that run in full trust mode in the sandboxed application domain. + The name of the assembly to be added. + + + Adds the supplied assembly to the list of assemblies that are trusted to execute in the current . + The name of the assembly to be added. + + + Releases all resources that are used by the object. + + + Causes processing extensions and expressions in the report to be executed in the current . + An object that contains security information about the report. + + + Causes processing extensions and expressions to be run in an application domain with limited permissions. + + + Returns the names of all datasets used within the local report. + An array of string objects that contain the list of dataset names. + + + Gets the default page settings specified in the local report. + A object that contains the default page settings for the local report. + + + Returns report parameter properties for the report. + A object that contains a collection of objects. + + + Returns the total number of soft pages in the report and a enumeration value that indicates the current page count mode. + An integer value containing the total number of soft pages in the report. For more information on soft pages, see Understanding Rendering Behaviors. + [out] A enumeration value that indicates the page count mode used to calculate the total number of soft pages. + + + Returns all available rendering extensions for the local report. + An array of objects. + + + Loads a report definition from the local file system using a . + A class that contains the report definition for the local report. + + + Loads a subreport definition using a . + The path and file name of the subreport definition. + A class that can be used to read the report definition language (RDL) file for the subreport. + + + Loads a subreport definition using a . + The path and file name of the subreport definition. + A object that will contain the report definition language (RDL) for the subreport. + + + Causes the local report to be rendered with new data. + + + Causes the object to release its reference to the sandboxed application domain immediately. + + + Processes the report and renders it in the specified format using a stream provided by a callback function. + The format in which to render the report. This argument maps to a rendering extension. Supported formats include Excel, PDF, Word, and Image. To access the list of available rendering extensions, use the method. + An XML string that contains the device-specific content that is required by the rendering extension specified in the format parameter. For more information about device information settings for specific output formats, see Device Information Settings in SQL Server Books Online. + A delegate function that will be used to provide a object for rendering. + [out] An array of objects that describes any warnings that occurred during report processing and rendering. + + + Processes the report with a specified page count mode and renders it in the specified format using a stream provided by a callback function. + The format in which to render the report. This argument maps to a rendering extension. Supported formats include Excel, PDF, Word, and Image. To access the list of available rendering extensions, use the method. + An XML string that contains the device-specific content that is required by the rendering extension specified in the format parameter. For more information about device information settings for specific output formats, see Device Information Settings in SQL Server Books Online. + A enumeration value that specifies the page count mode. + A delegate function that will be used to provide a object for rendering. + [out] An array of objects that describes any warnings that occurred during report processing and rendering. + + + Processes the report with a specified page count mode and renders it in the specified format. + A array of the report in the specified format. + The format in which to render the report. This argument maps to a rendering extension. Supported formats include Excel, PDF, Word, and Image. To access the list of available rendering extensions, use the method. + An XML string that contains the device-specific content that is required by the rendering extension specified in the format parameter. For more information about device information settings for specific output formats, see Device Information Settings in SQL Server Books Online. + A enumeration value that specifies the page count mode. + [out] The MIME type of the rendered report. + [out] The encoding used when rendering the contents of the report. + [out] The file name extension used for the output file. + [out] The stream identifiers. You can use them to render external resources (images, for example) that are associated with the report. + [out] An array of objects that describes any warnings that occurred during report processing and rendering. + + + Sets the base permissions for the sandboxed application domain with the supplied permission set. + The to set. The default base permission is Execution. + + + Sets report parameter properties for the local report. + An of objects that contains a list of the report parameter properties. + + + Gets a collection of data sources used by the report. + A read-only object. + + + Indicates whether the report can be rendered if it has external images. + A Boolean value. A value of true indicates that the local report can be rendered if it has external images. The default value is false. + + + Indicates whether the report can be rendered if it contains hyperlink actions. + A Boolean value. A value of true indicates that the report can be rendered if it contains hyperlink actions. The default value is false. + + + Returns the parameters passed from a parent report to this report, if it is a drillthrough report. + An of objects that represent the parameters passed from the parent reports to the drillthrough report, or an empty collection if this report is not a drillthrough report. + + + Gets or sets the name of the report-embedded resource. + A string containing the name of the embedded resource. + + + Gets or sets the file system path of the local report. + A string value. + + + Gets or sets a boolean value that indicates whether detailed messages should be displayed when an error occurs in a subreport. + true if detailed messages should be displayed; otherwise, false. The default is true. + + + Represents an exception that occurs when credentials have not been supplied for a data source used by a report. + + + Represents the error that occurs when a data source expected by the report has not been supplied. + + + Represents the error that occurs when the SOAP endpoint used by the ReportViewer control could not be accessed. + + + Represents the exception that occurs when a parameter expected by the report has not been supplied. + + + Represents the exception that occurs when no report source has been specified. + + + Represents values that control whether to calculate the actual page count or use an estimate. + + + Calculate the actual page count for the report. + + + Provide an estimate of the page count for the report instead of calculating the actual page count. + + + Provides data for a event. + + + Constructs a new PageNavigationEventArgs object. + An integer value containing the new page number. + + + Gets the number of the page resulting from the event. + An integer value containing the new page number. + + + Represents the method that will handle the event of a . + The object that raised the event. + A object that contains the arguments for this event. + + + Specifies the data type of a parameter. + + + A Boolean data type that represents a true or false condition. + + + A DateTime data type that represents the date and time. + + + A Float data type that represents a floating point decimal value. + + + An Integer data type. + + + A String data type that represents an array of characters. + + + Specifies the state of a parameter. + + + The parameter values are unavailable. This state indicates that no valid, query-based values were returned as a result of the query. + + + The parameter has outstanding dependencies. This generally occurs when the valid values or the default value of a parameter is query-based and dependencies exist that have not been submitted to the method. + + + A valid value for the parameter exists. + + + A valid value for the parameter does not exist. + + + Sets the processing mode of the ReportViewer control. + + + Specifies that the report will be processed and rendered using the reporting engine provided by the ReportViewer control. + + + Specifies remote processing mode against a Reporting Services report server. + + + Provides data for the event. + + + Contains an object if an exception has occurred. + An object if an exception has occurred during report rendering, or null if no exception has occurred. + + + Gets a list of warnings produced during report processing or rendering. + A collection of objects if warnings have occurred; otherwise a null value. + + + Represents the method that will handle the event of a . + The object that raised the event. + A object that contains information about the event. + + + Encapsulates a rendering extension that can be used with the Report Viewer's report. + + + Gets the localized display name of the rendering extension. + A read-only String value. + + + Gets the name of the rendering extension. + A read-only String value. + + + Indicates whether the rendering extension is visible in the user interface. + A Boolean value. + + + Contains methods and properties that can apply to both local and server reports. + + + Gets the default page settings specified in the report. + A object containing the default page settings for the local report. + + + Returns the representation of the document map for the local report. + A object containing the top level node of the document map hierarchy for the report. + + + Returns report parameter properties for the report. + A collection of objects. + + + Returns the total number of soft pages in the report. + An integer value containing the total number of soft pages in the report. For more information on soft pages, see Understanding Rendering Behaviors. + + + Returns the total number of soft pages in the report and a value that indicates the current page count mode. + An integer value containing the total number of soft pages in the report. For more information on soft pages, see Understanding Rendering Behaviors. + [out] A enumeration value that indicates the page count mode that was used to calculate the total number of pages. + + + Returns all available rendering extensions for the local report. + An array of objects. + + + Loads a report definition for processing using a . + A class that contains the report definition for the report. + + + Loads a report definition for processing using a . + A class that contains the report definition for the report. + + + Causes the report to be rendered with new data. + + + Processes the report and renders it in the specified format. + A byte array of the report in the specified format. + The format in which to render the report. This parameter maps to a rendering extension In local processing mode, supported extensions are Excel, PDF, Word, and Image. In remote processing mode, supported extensions depend on the extensions supported by the report server.You can access the list of available rendering extensions using the ListRenderingExtensions method in or , depending on the processing mode (see ). + + + Processes the report and renders it in the specified format. + A byte array of the report in the specified format. + The format in which to render the report. This parameter maps to a rendering extension. In local processing mode, supported extensions are Excel, PDF, Word, and Image. In remote processing mode, supported extensions depend on the extensions supported by the report server.You can access the list of available rendering extensions using the ListRenderingExtensions method in or , depending on the processing mode (see ). + An XML string that contains the device-specific content that is required by the rendering extension specified in the format parameter. For more information about device information settings for specific output formats, see Device Information Settings in SQL Server Books Online. + + + Processes the report and renders it in the specified format. + A array of the report in the specified format. + The format in which to render the report. This argument maps to a rendering extension. In local processing mode, supported extensions are Excel, PDF, Word, and Image. In remote processing mode, supported extensions depend on the extensions supported by the report server.You can access the list of available rendering extensions using the ListRenderingExtensions method in or , depending on the processing mode (see ). + An XML string that contains the device-specific content that is required by the rendering extension specified in the format parameter. For more information about device information settings for specific output formats, see Device Information Settings in SQL Server Books Online. + [out] The MIME type of the rendered report. + [out] The encoding used when rendering the contents of the report. + [out] The filename extension used for the output file. + [out] The stream identifiers. You can use them to render the external resources (images, etc.) that are associated with the report. + [out] An array of objects that describes any warnings that occurred during report processing. + + + Processes the report with the specified value and renders it in the specified format. + A byte array of the report in the specified format. + The format in which to render the report. This parameter maps to a rendering extension. In local processing mode, supported extensions are Excel, PDF, Word, and Image. In remote processing mode, supported extensions depend on the extensions supported by the report server.You can access the list of available rendering extensions using the ListRenderingExtensions method in or , depending on the processing mode (see ). + An XML string that contains the device-specific content that is required by the rendering extension specified in the format parameter. For more information about device information settings for specific output formats, see Device Information Settings in SQL Server Books Online. + A enumeration value that specifies the page count mode. + [out] The MIME type of the rendered report. + [out] The encoding used when rendering the contents of the report. + [out] The filename extension used for the output file. + [out] The stream identifiers. You can use them to render the external resources (images, etc.) that are associated with the report. + [out] An array of objects that describes any warnings that occurred during report processing. + + + Sets report parameter properties for the report. + An array of objects that contains a list of the report parameters properties. + + + Sets report parameter properties for the report. + A object. + + + Gets or sets the display name of the report. + A String containing the report's display name. + + + Indicates whether the report is a drillthrough report. + A Boolean value. A value of true indicates that this is a drillthrough report. + + + Gets a Boolean value that indicates whether a report definition and all required parameters have been specified, and all data sources are ready for use. + true if a report definition and all required parameters have been specified, and all data sources are ready for use; otherwise, false. The default is false. + + + Provides data for the event. + + + Gets a collection of . + A collection of objects. + + + Represents the method that will handle a event. + The source of the event. + A that contains the event data. + + + Represents a data source for a report. + + + Constructs an empty data source. + + + Constructs a named data source. + The name of the data source. + + + Constructs a named data source with a object in the property. + The name of the data source, as specified in the report definition for the current report. + A object that contains the data. + + + Constructs a named data source with a object in the property. + The name of the data source, as specified in the report definition for the current report. + A object that contains the data. + + + Constructs a named data source with an object in the property. + The name of the data source, as specified in the report definition for the current report. + An object that contains the data. + + + Constructs a named data source with a value. + The name of the data source. + A value for the data source. + + + Constructs a named data source with the property initialized as a particular type. + The name of the data source, as specified in the report definition for the current report. + A object that contains the data. + + + Gets or sets the name of the report data source. + A String containing the name of the data source. + + + Gets or sets the instance of the report data source. + An Object containing an instance of the report data source. + + + Contains a collection of objects. + + + Returns a report data source from the collection that matches a specified name. + A object. + The name of the report data source to retrieve from the collection. + + + Represents information about a report data source. + + + Gets the name of the report data source. + A String containing the name of the report data source. + + + Gets a prompt for the data source. + A String containing a prompt for the data source. + + + Represents a collection of objects. + + + Returns a specific object from the collection. + A object. + The name of the object to return. + + + Provides data for the event. + + + Returns an Exception object containing information about the report error. + An Exception object containing information about the report error. + + + Indicates whether the host application has handled the error. + A Boolean value indicating whether the host application has handled the error. The default value is false. + + + Represents the method that will handle a event. + The object that raised the event. + A object that contains information about the event. + + + Provides data for the report event. + + + Constructs a ReportExportEventArgs object. + A used for exporting the report. + + + Gets or sets an XML string that contains the device-specific content that is required by the rendering extension specified in the Extension parameter. + A String value containing the device-specific information. + + + Returns a used for exporting the report. + A object. + + + Represents the page settings for a report. + + + Indicates whether the orientation of the report as defined in the report definition file is landscape. + true if the orientation of the report as defined in the report definition file is landscape; otherwise, false. + + + Represents the margins for a report page. Read-only. + A read-only Margins object containing margin information about the report page. + + + Represents the paper size settings for a report page. Read-only. + A read-only PaperSize object containing information about report page size. + + + Represents a parameter for a report. + + + Instantiates a new ReportParameter. + + + Instantiates a new ReportParameter with a name. + The name of the parameter. + + + Instantiates a new ReportParameter with a name and a value. + The name of the parameter. + The value of the parameter. + + + Instantiates a new multivalued ReportParameter with a name. + The name of the parameter. + The values of the parameter. + + + Instantiates a new ReportParameter with a name, a value, and a visibility flag. + The name of the parameter. + The value of the parameter. + Determines if the parameter is displayed in the user interface. + + + Instantiates a new ReportParameter with a name, multiple values, and a visibility flag. + The name of the parameter. + The values of the parameter. + Determines if the parameter is displayed in the user interface. + + + Gets or sets the name of the parameter. + A String value. + + + Gets a collection of String objects containing one or more values for the parameter. + A StringCollection object. + + + Determines whether the parameter can be displayed in the user interface. + A Boolean value. + + + Represents a collection of objects. + + + Initializes a new instance of the class. + + + Gets an object in the collection by its name. + A with the specified name, if found; otherwise, a null reference (Nothing in Visual Basic). + The name of the object to get. This is the value of the property.This parameter is not case sensitive. + + + Encapsulates information about report parameters. + + + Indicates whether an empty string is a valid value for the parameter. Read-only. + A read-only Boolean value. + + + Indicates whether the default values of the parameter are based on a query. Read-only. + A read-only Boolean value. + + + Indicates whether the parameter's valid values are based on a query. Read-only. + A read-only Boolean value. + + + Gets the data type of the parameter. Read-only. + A read-only value. + + + Gets a list of parameters whose values are used to retrieve additional parameter values in a query. Read-only. + A read-only . + + + A list of parameters that use the value of this parameter as parameters into queries to retrieve and/or . + A read-only . + + + Gets the error message that is returned when the parameter fails validation. Read-only. + A read-only String containing the text of the error message. + + + Indicates whether the parameter is used in a query to an external data source. Read-only. + A read-only Boolean value. + + + Indicates whether the parameter can be a multi-value parameter. Read-only. + A read-only Boolean value. + + + Gets the name of the parameter. Read-only. + A String containing the name of the parameter. + + + Indicates whether the value of the parameter can be null. Read-only. + A read-only Boolean value. + + + The text that prompts the user to provide parameter values. + A String containing the text of the prompt. + + + Indicates whether the user is prompted for the value of the parameter. + A read-only Boolean value. + + + Describes the state of the parameter. Read-only. + A read-only value. + + + Gets the available valid values for the parameter. Read-only. + A read-only array of objects. + + + Gets the values for the parameter. + A read-only list of String values. + + + Determines whether the parameter can be displayed in the user interface. + A Boolean value. + + + A collection of objects. + + + Returns a named item from the ReportParameterInfoCollection. + A object from the collection. + The name of the item to retrieve. + + + Provides data for the event. + + + Gets a value indicating whether the event is triggered by the automatic submission of report parameters due to dependencies between them. + true if the event is triggered by the automatic submission of report parameters; false if it is triggered by the user clicking the View Report button. + + + Gets the parameters from the parameter prompt area that are being submitted to the report server. + A object containing the parameter values submitted by the user. + + + Represents the callback method that will handle the event. + The source of the event. + A that contains the event data. + + + Provides data for the and events. + + + Gets or sets the printer settings to use for the current operation. + A object that contains the printer settings. + + + Represents the method that will handle the and events. + The source of the event. + A that contains the event data. + + + Represents the error that occurs when a report contains a security violation. + + + Specifies the credentials for the ReportViewer control to use when connecting to a report server. + + + Returns a Boolean value indicating whether forms authentication will be used when connecting to the report server, as well as information about the forms credentials to be used for authentication. + Returns true if forms authentication is to be used when connecting to the report server. Information about the credentials to be used for forms authentication is returned via the out parameters used in the method call. + [out] An authentication cookie used by the report server. + [out] The user name that will be used to connect to the report server. + [out] The password that will be used to connect to the report server. + [out] The authority to use when authenticating the user, for example, a Windows domain name. + + + Specifies that forms authentication is to be used when connecting to the report server and provides the forms credentials. + An authentication cookie used by the report server. + The user name that will be used to connect to the report server. + The password that will be used to connect to the report server. + The authority to use when authenticating the user, for example, a Windows domain name. + + + Specifies the user to impersonate when connecting to the report server. + A WindowsIdentity object encapsulating the user to impersonate when connecting to a report server. + + + Gets or sets the network credentials used for authentication with the report server. + A NetworkCredentials object containing the network credentials used for authentication with the report server. + + + Represents errors that occur while connecting to a report server and also errors that occur on the report server while processing a server report or rendering the report to the report page layout (RPL) format. + + + Returns the error code from the exception. + A String value containing the error code returned by the report server, or null if the connection attempt to the report server is unsuccessful. + + + Encapsulates the methods and properties used for the ReportViewer control. + + + Constructs a ReportViewer object. + + + Occurs when a user navigates back to a parent report from a drillthrough report. + + + Occurs when the user navigates to a bookmark in a report. + + + Occurs when a document map node is selected. + + + Occurs when a drillthrough item is selected in a report. + + + Occurs when a user clicks a hyperlink in a report. + + + Occurs when a user changes pages in a report. + + + Occurs when the margins or the page size for the current report in the ReportViewer control have changed. + + + Occurs when a user prints the report. + + + Occurs when the user clicks the Print button in the Print dialog box. + + + Occurs when the report in the ReportViewer begins rendering. + + + Occurs when the report finishes rendering. + + + Raised when an error occurs in the report. + + + Occurs when the user clicks the Export button. + + + Occurs when the report is refreshed. + + + This event occurs when the user clicks the Find or Find Next button, or when a search operation is invoked programmatically. + + + Occurs when the user activates a sort. + + + Occurs whenever the user interface state of the ReportViewer control changes. + + + Occurs when the user submits new data source credentials viaby using the built-in prompt area. + + + Occurs when parameter values are submitted to the report server. + + + Occurs when the user toggles the visibility of an item in the report. + + + Occurs when the user clicks the View button. + + + Occurs when the user changes the zoom level of the ReportViewer control. + + + A constant that represents the maximum number of pages in a report when the current page count mode is . + + + Stops background processing of the report. + A Boolean value. A value of true is returned if the background rendering has terminated. A value of false is returned if background rendering has not terminated after the amount of time specified in the millisecondsTimeout parameter has elapsed, or if the millisecondsTimeout parameter was set to 0. + The number of milliseconds to wait for the background rendering to terminate. A value of -1 waits forever. A value of 0 returns immediately without waiting for the rendering to terminate. + + + Clears the report view and fills it with the background color of the control. + + + Opens in the Exporting dialog box for a specific rendering extension. + if the user clicked the Cancel button; if the export operation failed; otherwise, . + The rendering extension to use for the export. Typically, youTo access the list of available rendering extensions, use using the ListRenderingExtensions method in or , depending on the processing mode (see ). + + + Opens in the export dialog box for a specific rendering extension. + if the user clicked the Cancel button; if the export operation failed; otherwise, . + The rendering extension to use for the export.Typically, youTo access the list of available rendering extensions, use using the ListRenderingExtensions method in or , depending on the processing mode (see ). + An XML string that contains the device-specific content that is required by the rendering extension specified in the format parameter. For more information about device information settings for specific output formats, see Device Information Settings in SQL Server Books Online. + + + Opens in the Exporting dialog box for a specific rendering extension and specifies device information and saves the exported report to a file with the specified file name. + if the user clicked the Cancel button; if the export operation failed; otherwise, . + The rendering extension to use for the export.To access the list of available rendering extensions, use the ListRenderingExtensions method in or , depending on the processing mode (see ). + An XML string that contains the device-specific content that is required by the rendering extension specified in the format parameter. For more information about device information settings for specific output formats, see Device Information Settings in SQL Server Books Online. + The name of the exported file. The user is prompted for a file name if this parameter is null. + + + Searches the report for the specified text string. + An integer value containing the page number on which the search string was found, or 0 if the search string was not found. + The search string. + The page number on which to start searching. + + + Continues the search for the specified text string. + An integer value containing the page number on which the search string was found, or 0 if the search string was not found. + + + Returns the page settings that are used to print the current report in the ReportViewer control or display it in print layout mode. + A object that contains the page settings that are used to print the current report in the ReportViewer control or display it in print layout mode, or null if the ReportViewer control has not yet processed a report. + + + Returns the total number of pages in the report. + An integer value containing the total number of pages in the report. + + + Returns the page count of the report and a value that indicates whether the page count is estimated or actual. + An integer value containing the total number of pages in the report. + [out] A enumeration value that indicates whether the return value should be treated as an estimate or actual page count. This value is always when is . + + + Moves the report to the specified bookmark. + The ID of the bookmark. + + + Moves to the specified area of the document map. + The ID of the document map node. + + + Opens the page setup dialog box. + A enumeration value. Possible values are and depending on how the user closed the dialog box. + + + Navigates the report viewer control back to the parent report from a drillthrough report. + + + Displays the Print dialog box. + if the user clicked the Cancel button or if the event is cancelled; if the user clicked the OK button. + + + Displays the Print dialog box. + if the user clicked the Cancel button or if the event is cancelled; if the user clicked the OK button. + A object, used to initialize the dialog box. Unlike in the , this object's page ranged properties, such as the , , and properties, are used by the ReportViewer to initialize the print range in the Print dialog box. + + + Causes the current report in the Report Viewer to be processed and rendered. + + + Resets the control to its default values. + + + Reverts the page settings for the current report in the ReportViewer control to the settings in the report definition. + + + Sets the control display to normal or print preview mode. + A enumeration value specifying which display mode to use. Valid values are Normal or PrintLayout. + + + Sets the page settings that are used to print the current report in the ReportViewer control or display it in print layout mode. + A object that contains the new page settings.This parameter must not be null. + + + Gets or sets the background color of the control's report area. + A value indicating the background color of the control's report area. + + + Gets or sets the background image of the ReportViewer control. + An Image object containing the background image for the control. + + + Gets or sets the layout for the background image of the ReportViewer control. + An ImageLayout object containing the layout for the background image of the ReportViewer control. + + + Gets or sets the border style of the ReportViewer control. + A BorderStyle value. + + + Gets or sets the current page of the ReportViewer control's active report. + An integer value containing the current page of the report. The default value is 0. + + + Gets a object that indicates which operations can currently be performed on the ReportViewer control, the status of the prompt area, and the status of the document map area. + A object. + + + Gets a value that indicates the current display mode of the ReportViewer control. + A object. The default value is . + + + Gets or sets the collapsed state of the document map. + A Boolean value. A value of true indicates that the document map is collapsed. The default value is false. + + + Gets or sets the width of the document map in pixels. + An integer value containing the width of the document map in pixels. The default value is 40. + + + Indicates whether the size of the document map panel is fixed or changes when the viewer resizes. + A Boolean value indicating whether the size of the document map panel is fixed. The default value is true. + + + Gets or sets a Boolean value that indicates whether to keep the report server session from expiring as long as ReportViewer is running. + true to keep the report server session from expiring; otherwise false. The default is true. + + + Returns the local report in the ReportViewer control. + A object containing the local report in the ReportViewer control. + + + Gets or sets an object that contains custom messages for use by the ReportViewer control. + An object that implements the interface. + + + Gets or sets a enumeration value that indicates the default page count mode to use when rendering a report in the report area. + A object. The default value is . + + + Gets or sets a object that contains the settings for the default printer and print options that are used to initialize the Print dialog and the printer's Preferences dialog. + A object. + + + Gets or sets the processing mode of the ReportViewer control. + A enumerator value of either Local or Remote. The default value is Local. + + + Gets or sets the collapsed state of the parameter prompt area or the credentials prompt area. + true if the prompt area is collapsed; otherwise, false. The default is false. + + + Gets the search text and the start page of the current report search operation. + A object, or null if there is not an ongoing report search operation. + + + Gets a server report in the Report Viewer. + A object containing the server report in the Report Viewer. + + + Indicates whether the Back button is visible on the control. + A Boolean value indicating the visibility of the Back button. The default is value true. + + + Indicates whether the Context menu is visible. + A Boolean value. The default is value true. + + + Indicates whether prompts for user credentials will be displayed. + A Boolean value. The default value is true. + + + Indicates whether the button that shows and collapses the document map is visible on the split bar. + true if the button is visible on the split bar; otherwise, false. The default is true. + + + Indicates whether the Export button is visible on the control. + A Boolean value. The default value is true. + + + Indicates whether the Find text box is visible on the control. + A Boolean value. The default value is true. + + + Indicates whether the page navigation controls are visible. + A Boolean value. The default value is true. + + + Indicates whether parameter prompts are visible. + A Boolean value. The default value is true. + + + Gets or sets a value that indicates whether the Print button is visible. + true if the buttons for the print functions are visible; otherwise, false. The default is true. + + + Indicates whether progress animation is displayed during report processing. + A Boolean value. The default value is true. + + + Indicates whether the button that shows and collapses the prompt area is visible on the split bar. + true if the button is visible on the split bar; otherwise, false. The default is true. + + + Indicates whether the Refresh button is visible. + A Boolean value. The default value is true. + + + Indicates whether the Stop button is visible. + A Boolean value. The default value is true. + + + Indicates whether the Toolbar is visible. + A Boolean value. The default value is true. + + + Indicates whether the Zoom list box is visible. + A Boolean value. The default value is true. + + + Gets or sets the used to customize the look and feel of the ReportViewer control's toolbar as well as the context menu on the report. + A object. By default, a object is returned. + + + Gets or sets the delay in milliseconds before the busy status indicator is displayed to the user. + An int value that specifies the time in milliseconds. The default value is 1000 (1 second). + + + Gets the page zoom that is calculated based on the zoom mode. + An integer that represents the calculated zoom percentage. The default value is 100. + + + Gets or sets the zoom mode of the control. + A enumerator value indicating the zoom mode of the control. The default value is 100%. + + + Gets or sets the percentage of zoom used for the report display. + An integer value containing the percentage of zoom. + + + Represents a collection of objects. + + + Represents errors that occur while viewing or configuring a report. + + + This constructor supports the .NET Framework infrastructure and is not intended to be used directly from your code. + + + This constructor supports the .NET Framework infrastructure and is not intended to be used directly from your code. + + + Represents a collection of strings that contain custom headers. + + + Contains a set of read-only properties that indicate which operations are currently allowed in the ReportViewer control and the status of the prompt and document map areas. + + + Gets a Boolean value that indicates whether the prompt area of the ReportViewer control is currently visible. + true if the prompt area is currently visible; otherwise, false. + + + Gets a Boolean value that indicates whether the ReportViewer control has not started processing the report or has completed processing the report, and can change the display mode without canceling a report processing operation. + true if the ReportViewer control can change the display mode without canceling a report processing operation; otherwise, false. + + + Gets a Boolean value that indicates whether the currently displayed content will be affected by a zoom change. + true if the currently displayed content will be affected by a zoom change; otherwise, false. + + + Gets a Boolean value that indicates whether there is a previous search to continue and whether you can continue the previous search without canceling an existing report processing or interactive rendering operation. + true if the there is a previous search to continue and if you can continue the previous search without canceling an existing report processing or interactive rendering operation; otherwise, false. + + + Gets a Boolean value that indicates whether the report can be exported without canceling an existing report processing or interactive rendering operation. + true if the report can be exported without canceling an existing report processing or interactive rendering operation; otherwise, false. + + + Gets a Boolean value that indicates whether the current report is a drillthrough report and you can navigate back to its parent report without canceling an existing report processing or interactive rendering operation. + true if the current report is a drillthrough report and you can navigate back to its parent report without canceling an existing report processing or interactive rendering operation; otherwise, false. + + + Gets a Boolean value that indicates whether the property can be changed without canceling an existing report processing or interactive rendering operation. + true if the property can be changed without canceling an existing report processing or interactive rendering operation; otherwise, false. + + + Gets a Boolean value that indicates whether you can start printing the report without canceling an existing report processing or interactive rendering operation. + true if you can start printing the report without canceling an existing report processing or interactive rendering operation; otherwise, false. + + + Gets a Boolean value that indicates whether you can refresh the report data without cancelling an existing report processing or interactive rendering operation. + true if you can refresh the report data without canceling an existing report processing or interactive rendering operation; otherwise, false. + + + Gets a Boolean value that indicates whether you can search the report and highlight the search results without canceling an existing report processing or interactive rendering operation. + true if the you can search the report and highlight the search results without canceling an existing report processing or interactive rendering operation; otherwise, false. + + + Gets a Boolean value that indicates whether prompted parameters and prompted data source credentials can be submitted for the current report without canceling an existing report processing or interactive rendering operation. + true if prompted parameters and prompted data source credentials can be submitted for the current report without canceling an existing report processing or interactive rendering operation; otherwise, false. + + + Gets a Boolean value that indicates whether the current report has a document map and the document map can be displayed in the current display mode. + true if the current report has a document map and the document map can be displayed in the current display mode; otherwise, false. + + + Gets a Boolean value that indicates whether prompting is supported and there are prompts that can be displayed based on the visibility settings in the ReportViewer control. This property does not indicate whether the prompt areas are actually visible. + true if prompting is supported and there are prompts that can be displayed based on the visibility settings in the ReportViewer control; otherwise, false. + + + Gets a Boolean value that indicates whether ReportViewer is currently performing a potentially lengthy operation that can be canceled. + true if ReportViewer is currently performing a potentially lengthy operation that can be canceled; otherwise, false. + + + Gets a Boolean value that indicates whether the report has a document map and the document map is currently displayed. + true if the report has a document map and the document map is currently displayed; otherwise, false. + + + Gets a Boolean value that indicates whether the current processing mode supports prompting for parameters and data source credentials. + true if the current processing mode supports prompting for parameters and data source credentials; otherwise, false. + + + Provides data for a event in the ReportViewer control. + + + Constructs a SearchEventArgs object. + The search string. + The page on which to start searching. + Indicates that this event is occurring as a result of a Find Next command. + + + Indicates that this event is occurring as a result of a Find Next command. + A Boolean value. A value of true indicates that this event occurred because of a Find Next command. + + + Returns the search string being used for the search. + A String value containing the search string. + + + Returns the page number on which to start searching. + An integer containing the starting page number to search. + + + Represents the method that will handle a event. + The object that raised the event. + A object that contains information about the event. + + + Contains the search text and the start page of a search operation. + + + Gets the start page of the search operation. + An int value that represents the start page of the search operation. + + + Gets the search text. + A string that represents the search text. + + + Represents a report that is processed on the report server. + + + Initializes a new instance of the class. + + + Retrieves information about the data sources used for a report. + A that contains objects. + + + Retrieves information about the data sources used for a report, including whether all required credentials have been supplied for the report data sources. + A containing objects. + [out] Indicates whether all required credentials have been supplied for the data sources used by the server report. + + + Gets the default page settings specified in the report definition. + A object containing the default page settings for the local report. + + + Returns the current execution ID, or null (Nothing in Visual Basic) if no execution ID is available. + A String containing the execution ID. + + + Returns report parameter properties for the report. + A object containing an array of objects. + + + Returns the version of the report server. + A String value containing the server version information. + + + Returns the total number of soft pages in the report and a value that indicates the current page count mode. + An integer value containing the total number of soft pages in the report. For more information on soft pages, see Understanding Rendering Behaviors. + [out] A enumeration value that indicates the page count mode used to calculate the total number of soft pages. + + + Indicates whether the report can execute queries. + A Boolean value indicating whether the report can execute queries. + + + Returns all available rendering extensions for the server report. + An array of objects. + + + Loads the report definition on the report server for remote processing using a . + A class that can be used to read the Report Definition Language (RDL) file for the report. + + + Causes the report to be rendered with new data. + + + Renders the report with optional URL access parameters. + A containing the rendered report. + The format in which to render the report. This argument maps to a rendering extension. You can use any rendering extension available on the report server.To access the list of available rendering extensions, use the method. + An XML string that contains the device-specific content that is required by the rendering extension specified in the format parameter. For more information about device information settings for specific output formats, see Device Information Settings in SQL Server Books Online. + URL access parameters to pass to the report server. For more information, see the URL Access documentation in SQL Server Books Online.This parameter may be set to null. + [out] The MIME type of the rendered report. + [out] The file name extension used for the output file. + + + Renders the report with optional URL access parameters. + The format in which to render the report. This argument maps to a rendering extension. You can use any rendering extension available on the report server.To access the list of available rendering extensions, use the method. + An XML string that contains the device-specific content that is required by the rendering extension specified in the format parameter. For more information about device information settings for specific output formats, see Device Information Settings in SQL Server Books Online. + URL access parameters to pass to the report server. For more information, see the URL Access documentation in SQL Server Books Online.This parameter may be set to null. + The stream into which the rendered report will be written. + [out] The MIME type of the rendered report. + [out] The file name extension used for the output file. + + + Processes the report with the specified valuevalue and renders it in the specified format. + A array of the report in the specified format. + The format in which to render the report. This argument maps to a rendering extension. You can use any formatting extension available on the report server.To access the list of available rendering extensions, use the method. + An XML string that contains the device-specific content that is required by the rendering extension specified in the format parameter. For more information about device information settings for specific output formats, see Device Information Settings in SQL Server Books Online. + A enumeration value that specifies the page count mode. + [out] The MIME type of the rendered report. + [out] The encoding used when rendering the contents of the report. + [out] The file name extension used for the output file. + [out] The stream identifiers. You can use them to render external resources (images, for example) that are associated with the report. + [out] An array of objects that describes any warnings that occurred during report processing. + + + Returns a secondary stream associated with a processed report. + A array of the stream in the specified format. For more information about this data type, see "Byte Structure" in the .NET Framework documentation. + The format in which to render the stream. This argument maps to a rendering extension. You can use any rendering extension available on the report server.To access the list of available rendering extensions, use the method. + The stream identifier. + An XML string that contains the device-specific content that is required by the rendering extension specified in the format parameter. For more information about device information settings for specific output formats, see Device Information Settings in SQL Server Books Online. + The MIME type of the stream. + The Microsoft .NET Framework encoding class name. + + + Sets data source credentials for the report. + A set of data source credentials to submit to the report server. + + + Initializes a server report using a specific report execution on the server. + A String containing the execution ID to use. + + + Sets report parameter properties for the report. + An of objects that contains a list of the report parameters properties. + + + Gets a collection of objects. The object uses the cookies in this collection when making server requests. + A object that contains a collection of objects. + + + Gets a collection of strings that contain custom headers. + A object that contains a collection custom headers. + + + Gets or sets the unique identifier of the report history snapshot used for the server report. + A String value containing the unique identifier of the report history snapshot used for the server report. + + + Gets or sets the path to the report on the server. + A String value. + + + Gets or sets credentials to be used with the report server. + A object containing the credentials to be used with the report server. + + + Gets or sets the URL for the report server. + A object containing the URL for the report server. + + + Gets or sets the number of milliseconds to wait for server communications. + An integer value that contains the server time-out, in milliseconds. The default value is 600000 milliseconds. + + + Specifies the severity of a warning. + + + The severity level of the warning is Error. + + + The severity level of the warning is Warning. + + + Represents the exception that occurs when the report server version is not compatible with the report control. + + + Provides data for the event. + + + Constructs a SortEventArgs object. + The ID of the sort action. + A enumeration value that indicates the direction of the sort. The default value is None. + A Boolean value that indicates whether all other existing sorts should be cleared. The default is false. + + + Indicates whether all other existing sorts should be cleared. + A Boolean value that indicates whether all other existing sorts should be cleared. The default is false. + + + Gets an enumeration value that indicates the direction of the sort. + A enumeration value that indicates the direction of the sort. + + + Gets the unique identifier of the sort action. + A String containing the ID of the sort action. + + + Represents the method that will handle the event of a . + The object raising the event. + A object containing information about the event. + + + Indicates the direction of a sort operation. + + + Indicates an ascending sort. + + + Indicates a descending sort. + + + Provides data for the event. + + + Gets the list of data source names for the subreport. + A list of String objects containing the names of the data sources for the subreport. + + + Returns a collection of data sources for the subreport. + A collection of objects. + + + Gets a collection of parameters for the subreport. + A containing information about the subreport parameters. + + + Returns the name of the subreport. + A string containing the name of the subreport. + + + Represents the method that will handle the event of a . + The object that raised the event. + A object containing information about the event. + + + Represents a possible valid value for a parameter. + + + Gets a label for the valid value. + A read-only String object. + + + Gets a valid value. + A read-only String object. + + + Represents a list of errors or warnings that are returned when a report is rendered or processed. + + + Gets the error code that is assigned to the warning. Read-only. + A read-only string value. + + + Gets a message that describes the error or warning. Read-only. + A read-only string value. + + + Gets the name of the object in the report definition that contributed to the warning. Read-only. + A read-only string value. + + + Gets the type of object in the report definition that caused the error or warning. Read-only. + A read-only string value. + + + Gets the severity type of the error or warning. Read-only. + A read-only string value. + + + Represents the method that will handle the event of a . + The object raising the event. + A object containing information about the event. + + + Provides data for a event. + + + Constructs a new ZoomChangeEventArgs object. + A enumerator value specifying the zoom mode selected. + An integer specifying the selected percentage of zoom. + + + Gets the zoom mode select for the event. + A enumerator value specifying the zoom mode selected. + + + Gets the zoom percentage value specified for the event. + An integer specifying the selected percentage of zoom. + + + Specifies the zoom mode for the ReportViewer control. + + + Sets the zoom mode to full page. + + + Sets the zoom mode to page width. + + + Sets the zoom mode to a percentage. + + + \ No newline at end of file diff --git a/C2P_Data/bin/Release/NLog.config b/C2P_Data/bin/Release/NLog.config index 13ec9f7..ede1596 100644 --- a/C2P_Data/bin/Release/NLog.config +++ b/C2P_Data/bin/Release/NLog.config @@ -1,31 +1,15 @@ - - - - + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - - - + + @@ -33,10 +17,9 @@ - + \ No newline at end of file diff --git a/C2P_Data/bin/Release/SteamWare.dll b/C2P_Data/bin/Release/SteamWare.dll index a9e4680..759de9d 100644 Binary files a/C2P_Data/bin/Release/SteamWare.dll and b/C2P_Data/bin/Release/SteamWare.dll differ diff --git a/C2P_Project/bin/Output/C2P_DB.dacpac b/C2P_Project/bin/Output/C2P_DB.dacpac index 594ddb1..f35e2b2 100644 Binary files a/C2P_Project/bin/Output/C2P_DB.dacpac and b/C2P_Project/bin/Output/C2P_DB.dacpac differ diff --git a/C2P_Project/bin/Output/C2P_DB_Create.sql b/C2P_Project/bin/Output/C2P_DB_Create.sql index 50892f0..8f41d57 100644 --- a/C2P_Project/bin/Output/C2P_DB_Create.sql +++ b/C2P_Project/bin/Output/C2P_DB_Create.sql @@ -163,15 +163,6 @@ IF fulltextserviceproperty(N'IsFulltextInstalled') = 1 EXECUTE sp_fulltext_database 'enable'; -GO -PRINT N'Creating [tmp]...'; - - -GO -CREATE SCHEMA [tmp] - AUTHORIZATION [dbo]; - - GO PRINT N'Creating [voc]...'; @@ -181,6 +172,15 @@ CREATE SCHEMA [voc] AUTHORIZATION [dbo]; +GO +PRINT N'Creating [tmp]...'; + + +GO +CREATE SCHEMA [tmp] + AUTHORIZATION [dbo]; + + GO PRINT N'Creating [ext]...'; @@ -190,6 +190,23 @@ CREATE SCHEMA [ext] AUTHORIZATION [dbo]; +GO +PRINT N'Creating [dbo].[TabDifett]...'; + + +GO +CREATE TABLE [dbo].[TabDifett] ( + [KeyAMI] NVARCHAR (152) NOT NULL, + [ProcessNum] NVARCHAR (50) NOT NULL, + [CodItem] NVARCHAR (50) NOT NULL, + [RawMat] NVARCHAR (50) NOT NULL, + [CodPlant] NVARCHAR (50) NOT NULL, + [TotOut] DECIMAL (18, 6) NULL, + [TotIn] INT NULL, + CONSTRAINT [PK_TabDifett] PRIMARY KEY CLUSTERED ([KeyAMI] ASC, [ProcessNum] ASC) +); + + GO PRINT N'Creating [dbo].[Vocabolario]...'; @@ -224,6 +241,106 @@ CREATE TABLE [dbo].[Lingue] ( ); +GO +PRINT N'Creating [dbo].[QuoteParam]...'; + + +GO +CREATE TABLE [dbo].[QuoteParam] ( + [QuoteType] CHAR (1) NOT NULL, + [CodQuote] BIGINT NOT NULL, + [QuoteRev] INT NOT NULL, + [NumP] INT NOT NULL, + [ProcessNum] NVARCHAR (50) NOT NULL, + [Descr] NVARCHAR (50) NOT NULL, + [Parameter] NVARCHAR (100) NOT NULL, + CONSTRAINT [PK_QuoteParam] PRIMARY KEY CLUSTERED ([QuoteType] ASC, [CodQuote] ASC, [QuoteRev] ASC, [NumP] ASC) WITH (FILLFACTOR = 90) +); + + +GO +PRINT N'Creating [dbo].[QuoteFull_Q]...'; + + +GO +CREATE TABLE [dbo].[QuoteFull_Q] ( + [Vers] VARCHAR (5) NOT NULL, + [QuoteType] CHAR (1) NOT NULL, + [CodQuote] BIGINT NOT NULL, + [QuoteRev] INT NOT NULL, + [IdxQState] INT NOT NULL, + [CodClient] NVARCHAR (50) NOT NULL, + [ClientName] NVARCHAR (250) NOT NULL, + [CodItem] NVARCHAR (50) NOT NULL, + [CodItemGroup] NVARCHAR (50) NOT NULL, + [RawMat] NVARCHAR (50) NOT NULL, + [UnitWeight] DECIMAL (9, 3) NOT NULL, + [BatchQty] INT NOT NULL, + [CodInco] NVARCHAR (5) NOT NULL, + [TranspZone] NVARCHAR (50) NOT NULL, + [KeyAM] NVARCHAR (101) NOT NULL, + [Note] NVARCHAR (2500) NOT NULL, + [PriceOff] DECIMAL (9, 6) NOT NULL, + [CodClientAssoc] NVARCHAR (100) NULL, + [ClientNameAssoc] NVARCHAR (100) NULL, + [ItemDescr] NVARCHAR (100) NULL, + [CodifProfilo] NVARCHAR (100) NULL, + [ClasseMerc] NVARCHAR (100) NULL, + [TipoDies] NVARCHAR (100) NULL, + [CodDiesGroup] NVARCHAR (100) NULL, + [DiamDies] DECIMAL (18, 6) NOT NULL, + [HoleNumDies] INT NULL, + [DiesPrice] DECIMAL (18, 6) NOT NULL, + [DiesExpLife] DECIMAL (18, 6) NOT NULL, + [DiesEOLife] DECIMAL (18, 6) NOT NULL, + [DiesByClass] BIT NOT NULL, + [NumDiesInList] DECIMAL (18, 6) NULL, + [NumDiesExaust] DECIMAL (18, 6) NULL, + [CodPlant] NVARCHAR (100) NULL, + [KeyAMIL] NVARCHAR (100) NULL, + [KgTeo] DECIMAL (18, 6) NULL, + [NumSMED] DECIMAL (18, 6) NULL, + [QuotaMan] DECIMAL (18, 6) NULL, + [PRMWeight] DECIMAL (18, 6) NULL, + [PWeight] DECIMAL (18, 6) NULL, + [PTare] DECIMAL (18, 6) NULL, + [LivPackage] NVARCHAR (100) NULL, + [LivPackageDett] NVARCHAR (100) NULL, + [RawMatCost] DECIMAL (18, 6) NOT NULL, + [RawMatExtraCost] DECIMAL (18, 6) NOT NULL, + [RawMatFullCost] DECIMAL (18, 6) NULL, + [CodPackag] NVARCHAR (50) NOT NULL, + [PkgDesc] NVARCHAR (100) NULL, + [FSR] DECIMAL (18, 6) NULL, + [ProvvCost] DECIMAL (18, 6) NOT NULL, + [EECost] DECIMAL (18, 6) NOT NULL, + [GasCost] DECIMAL (18, 6) NOT NULL, + [DiesCost] DECIMAL (18, 6) NOT NULL, + [PackCost] DECIMAL (18, 6) NOT NULL, + [TranspCost] DECIMAL (18, 6) NOT NULL, + [SellCost01] DECIMAL (18, 6) NOT NULL, + [RefCost01] DECIMAL (18, 6) NOT NULL, + [SellCost04] DECIMAL (18, 6) NOT NULL, + [RefCost04] DECIMAL (18, 6) NOT NULL, + [WSR01] DECIMAL (9, 8) NOT NULL, + [MSR01] DECIMAL (9, 8) NOT NULL, + [NetProd01] DECIMAL (9, 3) NOT NULL, + [FC4UG01] DECIMAL (9, 6) NOT NULL, + [VC4UG01] DECIMAL (9, 6) NOT NULL, + [OH4UG01] DECIMAL (9, 6) NOT NULL, + [SC4UG01] DECIMAL (9, 6) NOT NULL, + [DSR] DECIMAL (9, 8) NULL, + [NetProd04] DECIMAL (9, 3) NOT NULL, + [FC4UG04] DECIMAL (9, 6) NOT NULL, + [VC4UG04] DECIMAL (9, 6) NOT NULL, + [FVC] DECIMAL (18, 6) NULL, + [Charge] DECIMAL (9, 6) NOT NULL, + [valid] BIT NOT NULL, + [errorScore] INT NOT NULL, + CONSTRAINT [PK_QuoteFull_Q_1] PRIMARY KEY CLUSTERED ([QuoteType] ASC, [CodQuote] ASC, [QuoteRev] ASC) +); + + GO PRINT N'Creating [dbo].[Config]...'; @@ -262,6 +379,42 @@ CREATE TABLE [dbo].[QuoteOC] ( ); +GO +PRINT N'Creating [dbo].[QuoteWorkInt]...'; + + +GO +CREATE TABLE [dbo].[QuoteWorkInt] ( + [QuoteType] CHAR (1) NOT NULL, + [CodQuote] BIGINT NOT NULL, + [QuoteRev] INT NOT NULL, + [NumWI] INT NOT NULL, + [ProcessNum] NVARCHAR (50) NOT NULL, + [CodPlant] NVARCHAR (50) NOT NULL, + [Class01] NVARCHAR (50) NOT NULL, + [Class02] NVARCHAR (50) NOT NULL, + [Class03] NVARCHAR (50) NOT NULL, + [Class04] NVARCHAR (50) NOT NULL, + [Class05] NVARCHAR (50) NOT NULL, + [NetProd] DECIMAL (9, 3) NOT NULL, + [WSR] DECIMAL (9, 8) NOT NULL, + [MSR] DECIMAL (9, 8) NOT NULL, + [DSR] DECIMAL (9, 8) NOT NULL, + [FC4UG] DECIMAL (9, 6) NOT NULL, + [VC4UG] DECIMAL (9, 6) NOT NULL, + [OH4UG] DECIMAL (9, 6) NOT NULL, + [SC4UG] DECIMAL (9, 6) NOT NULL, + [WYR] AS ((1) - [WSR]), + [MYR] AS ((1) - [MSR]), + [DYR] AS ((1) - [DSR]), + [WCR] AS (CASE WHEN ((1) - [WSR]) = (0) THEN (1) ELSE (1) / ((1) - [WSR]) END), + [MCR] AS (CASE WHEN ((1) - [MSR]) = (0) THEN (1) ELSE (1) / ((1) - [MSR]) END), + [DCR] AS (CASE WHEN ((1) - [DSR]) = (0) THEN (1) ELSE (1) / ((1) - [DSR]) END), + [valid] BIT NOT NULL, + CONSTRAINT [PK_QuoteWorkInt] PRIMARY KEY CLUSTERED ([QuoteType] ASC, [CodQuote] ASC, [QuoteRev] ASC, [NumWI] ASC) WITH (FILLFACTOR = 90) +); + + GO PRINT N'Creating [dbo].[QuoteWorkExt]...'; @@ -279,6 +432,41 @@ CREATE TABLE [dbo].[QuoteWorkExt] ( ); +GO +PRINT N'Creating [dbo].[QuoteList]...'; + + +GO +CREATE TABLE [dbo].[QuoteList] ( + [QuoteType] CHAR (1) NOT NULL, + [CodQuote] BIGINT NOT NULL, + [QuoteRev] INT NOT NULL, + [IdxQState] INT NOT NULL, + [CodClient] NVARCHAR (50) NOT NULL, + [CodItem] NVARCHAR (50) NOT NULL, + [CodItemGroup] NVARCHAR (50) NOT NULL, + [RawMat] NVARCHAR (50) NOT NULL, + [UnitWeight] DECIMAL (9, 3) NOT NULL, + [BatchQty] INT NOT NULL, + [CodInco] NVARCHAR (5) NOT NULL, + [KeyAM] AS ((CASE WHEN [QuoteType] = 'S' THEN [CodItemGroup] ELSE [CodItem] END + '-') + [RawMat]), + [Note] NVARCHAR (2500) NOT NULL, + [PriceOff] DECIMAL (9, 6) NOT NULL, + [OrdDate] SMALLDATETIME NULL, + [OrdNum] NVARCHAR (50) NOT NULL, + [OrdRow] NVARCHAR (50) NOT NULL, + [OrdPrice] DECIMAL (9, 6) NOT NULL, + [OrdQty] INT NOT NULL, + [valid] BIT NOT NULL, + [errorScore] INT NOT NULL, + [UserCreaz] NVARCHAR (50) NOT NULL, + [DataCreaz] DATETIME NOT NULL, + [UserMod] NVARCHAR (50) NOT NULL, + [DataMod] DATETIME NOT NULL, + CONSTRAINT [PK_QuoteList_1] PRIMARY KEY CLUSTERED ([QuoteType] ASC, [CodQuote] ASC, [QuoteRev] ASC) WITH (FILLFACTOR = 90) +); + + GO PRINT N'Creating [dbo].[Package2Item]...'; @@ -375,6 +563,52 @@ CREATE TABLE [dbo].[QuoteFull_Q_old] ( ); +GO +PRINT N'Creating [dbo].[ProductionLog]...'; + + +GO +CREATE TABLE [dbo].[ProductionLog] ( + [EventStart] DATETIME NOT NULL, + [EventEnd] DATETIME NOT NULL, + [CodPlant] NVARCHAR (50) NOT NULL, + [ProcessNum] NVARCHAR (50) NOT NULL, + [NrPos] NVARCHAR (50) NOT NULL, + [CodDies] NVARCHAR (50) NOT NULL, + [CodClient] NVARCHAR (50) NOT NULL, + [OrderNum] NVARCHAR (50) NOT NULL, + [BatchNum] NVARCHAR (50) NOT NULL, + [ProcessType] NVARCHAR (50) NOT NULL, + [EventType] NVARCHAR (50) NOT NULL, + [RawMat] NVARCHAR (50) NOT NULL, + [CodPackag] NVARCHAR (50) NOT NULL, + [QtyIN] DECIMAL (18, 4) NOT NULL, + [QtyOUT] DECIMAL (18, 4) NOT NULL, + [QtyEXT] DECIMAL (18, 4) NOT NULL, + [NumIN] INT NOT NULL, + [NumOUT] INT NOT NULL, + [QuotaPlant] DECIMAL (9, 4) NOT NULL, + [QuotaMan] DECIMAL (9, 4) NOT NULL, + [Tags] NVARCHAR (250) NOT NULL, + [Duration] AS (CONVERT (DECIMAL (12, 6), datediff(second, [EventStart], [EventEnd]) / (3600.00), (0))) PERSISTED, + [okPr] BIT NOT NULL, + [okQM] BIT NOT NULL, + [okSc] BIT NOT NULL, + [okDi] BIT NOT NULL, + CONSTRAINT [PK_ProductionLog_1] PRIMARY KEY CLUSTERED ([EventStart] ASC, [EventEnd] ASC, [CodPlant] ASC, [ProcessNum] ASC, [NrPos] ASC, [CodDies] ASC) +); + + +GO +PRINT N'Creating [dbo].[ProductionLog].[i_ProductionLog_CodDies]...'; + + +GO +CREATE NONCLUSTERED INDEX [i_ProductionLog_CodDies] + ON [dbo].[ProductionLog]([CodDies] ASC) + INCLUDE([EventStart], [RawMat]); + + GO PRINT N'Creating [dbo].[Package2ItemClient]...'; @@ -484,6 +718,39 @@ CREATE TABLE [dbo].[Cost2Plant] ( ); +GO +PRINT N'Creating [dbo].[TabProdSc]...'; + + +GO +CREATE TABLE [dbo].[TabProdSc] ( + [KeyAMIL] NVARCHAR (250) NOT NULL, + [CodDiesGroup] NVARCHAR (50) NOT NULL, + [KeyAM] NVARCHAR (250) NOT NULL, + [CodItem] NVARCHAR (50) NOT NULL, + [RawMat] NVARCHAR (50) NOT NULL, + [CodPlant] NVARCHAR (50) NOT NULL, + [HoleNum] INT NOT NULL, + [NumSMED] INT NOT NULL, + [KgTeo] DECIMAL (18, 6) NOT NULL, + [KgLor] DECIMAL (18, 6) NOT NULL, + [Duration] DECIMAL (18, 6) NOT NULL, + [ProdTeo] AS (CASE isnull([Duration], (0)) WHEN (0) THEN (0) ELSE isnull([KgTeo], (0)) / [Duration] END), + [ScTec] AS (CASE isnull([KgLor], (0)) WHEN (0) THEN (0) ELSE (1) - [KgTeo] / [KgLor] END), + CONSTRAINT [PK_TabProdSc] PRIMARY KEY CLUSTERED ([KeyAMIL] ASC, [CodDiesGroup] ASC) +); + + +GO +PRINT N'Creating [dbo].[TabProdSc].[i_TabProdSc_KeyAM]...'; + + +GO +CREATE NONCLUSTERED INDEX [i_TabProdSc_KeyAM] + ON [dbo].[TabProdSc]([KeyAM] ASC) + INCLUDE([KgTeo]); + + GO PRINT N'Creating [dbo].[ClientDet]...'; @@ -529,6 +796,45 @@ CREATE TABLE [dbo].[Utilities] ( ); +GO +PRINT N'Creating [dbo].[DiesDet]...'; + + +GO +CREATE TABLE [dbo].[DiesDet] ( + [CodDies] NVARCHAR (50) NOT NULL, + [HoleNum] INT NOT NULL, + [CodItem] NVARCHAR (50) NOT NULL, + [CodDiesGroup] NVARCHAR (50) NOT NULL, + [Price] DECIMAL (9, 3) NOT NULL, + [TestCost] DECIMAL (9, 3) NOT NULL, + [ExpLife] DECIMAL (9, 2) NOT NULL, + [ActLife] DECIMAL (9, 2) NOT NULL, + [Active] INT NOT NULL, + CONSTRAINT [PK_DiesDet] PRIMARY KEY CLUSTERED ([CodDies] ASC) +); + + +GO +PRINT N'Creating [dbo].[DiesDet].[i_DiesDet_CodItem_CodDiesGroup_Active]...'; + + +GO +CREATE NONCLUSTERED INDEX [i_DiesDet_CodItem_CodDiesGroup_Active] + ON [dbo].[DiesDet]([CodItem] ASC, [CodDiesGroup] ASC, [Active] ASC) + INCLUDE([Price], [ExpLife], [ActLife]); + + +GO +PRINT N'Creating [dbo].[DiesDet].[i_DiesDet_Active_CodDiesGroup_Filtered]...'; + + +GO +CREATE NONCLUSTERED INDEX [i_DiesDet_Active_CodDiesGroup_Filtered] + ON [dbo].[DiesDet]([CodDiesGroup] ASC, [CodItem] ASC) + INCLUDE([ActLife], [Price], [ExpLife]) WHERE ([Active]=(0)); + + GO PRINT N'Creating [dbo].[Incoterms]...'; @@ -612,6 +918,25 @@ CREATE TABLE [dbo].[Package2] ( ); +GO +PRINT N'Creating [dbo].[RawMatDet]...'; + + +GO +CREATE TABLE [dbo].[RawMatDet] ( + [RawMat] NVARCHAR (50) NOT NULL, + [ProcCost] DECIMAL (18, 6) NOT NULL, + [ProcYield] DECIMAL (9, 6) NOT NULL, + [CSR] DECIMAL (9, 6) NOT NULL, + [SSR] DECIMAL (9, 6) NULL, + [SSVA] DECIMAL (9, 6) NULL, + [SSVR] DECIMAL (9, 6) NULL, + [ExtraMatCost] DECIMAL (9, 6) NULL, + [ExtraServCost] DECIMAL (9, 6) NULL, + CONSTRAINT [PK_RawMatDet] PRIMARY KEY CLUSTERED ([RawMat] ASC) +); + + GO PRINT N'Creating [dbo].[TabImbGrp]...'; @@ -626,6 +951,38 @@ CREATE TABLE [dbo].[TabImbGrp] ( ); +GO +PRINT N'Creating [dbo].[TrascPlan]...'; + + +GO +CREATE TABLE [dbo].[TrascPlan] ( + [CodPlant] NVARCHAR (50) NOT NULL, + [CodPlantNew] NVARCHAR (50) NOT NULL +); + + +GO +PRINT N'Creating [dbo].[UTENTE]...'; + + +GO +CREATE TABLE [dbo].[UTENTE] ( + [DOMINIO] VARCHAR (30) NULL, + [USER_NAME] NVARCHAR (50) NOT NULL, + [COGNOME] VARCHAR (100) NULL, + [NOME] VARCHAR (100) NULL, + [COD_SOCIETA] VARCHAR (5) NULL, + [MATRICOLA] VARCHAR (5) NULL, + [COD_CDC] VARCHAR (10) NULL, + [EMAIL] VARCHAR (100) NULL, + [SIGLA] NVARCHAR (5) NULL, + [COD_LINGUA] VARCHAR (3) NULL, + [ATTIVO] CHAR (1) NULL, + CONSTRAINT [PK_UTENTE] PRIMARY KEY CLUSTERED ([USER_NAME] ASC) +); + + GO PRINT N'Creating [dbo].[Permessi]...'; @@ -656,383 +1013,97 @@ CREATE TABLE [dbo].[Permessi2Funzione] ( GO -PRINT N'Creating [dbo].[TabDifett]...'; +PRINT N'Creating [dbo].[CDC]...'; GO -CREATE TABLE [dbo].[TabDifett] ( - [KeyAMI] NVARCHAR (152) NOT NULL, - [ProcessNum] NVARCHAR (50) NOT NULL, - [CodItem] NVARCHAR (50) NOT NULL, - [RawMat] NVARCHAR (50) NOT NULL, - [CodPlant] NVARCHAR (50) NOT NULL, - [TotOut] DECIMAL (18, 6) NULL, - [TotIn] INT NULL, - CONSTRAINT [PK_TabDifett] PRIMARY KEY CLUSTERED ([KeyAMI] ASC, [ProcessNum] ASC) +CREATE TABLE [dbo].[CDC] ( + [COD_CDC] VARCHAR (10) NOT NULL, + [DESCRIZIONE] VARCHAR (200) NULL, + [COD_TIPO] VARCHAR (1) NOT NULL, + [POSIZIONE] VARCHAR (100) NULL, + PRIMARY KEY CLUSTERED ([COD_CDC] ASC) ); GO -PRINT N'Creating [dbo].[DiesDet]...'; +PRINT N'Creating [dbo].[ContatoriQuote]...'; GO -CREATE TABLE [dbo].[DiesDet] ( - [CodDies] NVARCHAR (50) NOT NULL, - [HoleNum] INT NOT NULL, - [CodItem] NVARCHAR (50) NOT NULL, - [CodDiesGroup] NVARCHAR (50) NOT NULL, - [Price] DECIMAL (9, 3) NOT NULL, - [TestCost] DECIMAL (9, 3) NOT NULL, - [ExpLife] DECIMAL (9, 2) NOT NULL, - [ActLife] DECIMAL (9, 2) NOT NULL, - [Active] INT NOT NULL, - CONSTRAINT [PK_DiesDet] PRIMARY KEY CLUSTERED ([CodDies] ASC) +CREATE TABLE [dbo].[ContatoriQuote] ( + [Flusso] VARCHAR (2) NOT NULL, + [LastIdx] INT NOT NULL, + CONSTRAINT [PK_ContatoriQuote] PRIMARY KEY CLUSTERED ([Flusso] ASC) ); GO -PRINT N'Creating [dbo].[DiesDet].[i_DiesDet_CodItem_CodDiesGroup_Active]...'; +PRINT N'Creating [dbo].[CostList]...'; GO -CREATE NONCLUSTERED INDEX [i_DiesDet_CodItem_CodDiesGroup_Active] - ON [dbo].[DiesDet]([CodItem] ASC, [CodDiesGroup] ASC, [Active] ASC) - INCLUDE([Price], [ExpLife], [ActLife]); - - -GO -PRINT N'Creating [dbo].[DiesDet].[i_DiesDet_Active_CodDiesGroup_Filtered]...'; - - -GO -CREATE NONCLUSTERED INDEX [i_DiesDet_Active_CodDiesGroup_Filtered] - ON [dbo].[DiesDet]([CodDiesGroup] ASC, [CodItem] ASC) - INCLUDE([ActLife], [Price], [ExpLife]) WHERE ([Active]=(0)); - - -GO -PRINT N'Creating [dbo].[ProductionLog]...'; - - -GO -CREATE TABLE [dbo].[ProductionLog] ( - [EventStart] DATETIME NOT NULL, - [EventEnd] DATETIME NOT NULL, - [CodPlant] NVARCHAR (50) NOT NULL, - [ProcessNum] NVARCHAR (50) NOT NULL, - [NrPos] NVARCHAR (50) NOT NULL, - [CodDies] NVARCHAR (50) NOT NULL, - [CodClient] NVARCHAR (50) NOT NULL, - [OrderNum] NVARCHAR (50) NOT NULL, - [BatchNum] NVARCHAR (50) NOT NULL, - [ProcessType] NVARCHAR (50) NOT NULL, - [EventType] NVARCHAR (50) NOT NULL, - [RawMat] NVARCHAR (50) NOT NULL, - [CodPackag] NVARCHAR (50) NOT NULL, - [QtyIN] DECIMAL (18, 4) NOT NULL, - [QtyOUT] DECIMAL (18, 4) NOT NULL, - [QtyEXT] DECIMAL (18, 4) NOT NULL, - [NumIN] INT NOT NULL, - [NumOUT] INT NOT NULL, - [QuotaPlant] DECIMAL (9, 4) NOT NULL, - [QuotaMan] DECIMAL (9, 4) NOT NULL, - [Tags] NVARCHAR (250) NOT NULL, - [Duration] AS (CONVERT (DECIMAL (12, 6), datediff(second, [EventStart], [EventEnd]) / (3600.00), (0))) PERSISTED, - [okPr] BIT NOT NULL, - [okQM] BIT NOT NULL, - [okSc] BIT NOT NULL, - [okDi] BIT NOT NULL, - CONSTRAINT [PK_ProductionLog_1] PRIMARY KEY CLUSTERED ([EventStart] ASC, [EventEnd] ASC, [CodPlant] ASC, [ProcessNum] ASC, [NrPos] ASC, [CodDies] ASC) -); - - -GO -PRINT N'Creating [dbo].[ProductionLog].[i_ProductionLog_CodDies]...'; - - -GO -CREATE NONCLUSTERED INDEX [i_ProductionLog_CodDies] - ON [dbo].[ProductionLog]([CodDies] ASC) - INCLUDE([EventStart], [RawMat]); - - -GO -PRINT N'Creating [dbo].[QuoteFull_Q]...'; - - -GO -CREATE TABLE [dbo].[QuoteFull_Q] ( - [Vers] VARCHAR (5) NOT NULL, +CREATE TABLE [dbo].[CostList] ( + [DateList] SMALLDATETIME NOT NULL, + [CodItem] NVARCHAR (50) NOT NULL, + [RawMat] NVARCHAR (50) NOT NULL, + [RawMatCost] DECIMAL (18, 6) NOT NULL, + [RawMatExtraCost] DECIMAL (18, 6) NULL, + [batchQty] INT NOT NULL, + [CodInco] NVARCHAR (5) NOT NULL, [QuoteType] CHAR (1) NOT NULL, [CodQuote] BIGINT NOT NULL, [QuoteRev] INT NOT NULL, - [IdxQState] INT NOT NULL, - [CodClient] NVARCHAR (50) NOT NULL, - [ClientName] NVARCHAR (250) NOT NULL, - [CodItem] NVARCHAR (50) NOT NULL, - [CodItemGroup] NVARCHAR (50) NOT NULL, - [RawMat] NVARCHAR (50) NOT NULL, - [UnitWeight] DECIMAL (9, 3) NOT NULL, - [BatchQty] INT NOT NULL, - [CodInco] NVARCHAR (5) NOT NULL, - [TranspZone] NVARCHAR (50) NOT NULL, - [KeyAM] NVARCHAR (101) NOT NULL, - [Note] NVARCHAR (2500) NOT NULL, - [PriceOff] DECIMAL (9, 6) NOT NULL, - [CodClientAssoc] NVARCHAR (100) NULL, - [ClientNameAssoc] NVARCHAR (100) NULL, - [ItemDescr] NVARCHAR (100) NULL, - [CodifProfilo] NVARCHAR (100) NULL, - [ClasseMerc] NVARCHAR (100) NULL, - [TipoDies] NVARCHAR (100) NULL, - [CodDiesGroup] NVARCHAR (100) NULL, - [DiamDies] DECIMAL (18, 6) NOT NULL, - [HoleNumDies] INT NULL, - [DiesPrice] DECIMAL (18, 6) NOT NULL, - [DiesExpLife] DECIMAL (18, 6) NOT NULL, - [DiesEOLife] DECIMAL (18, 6) NOT NULL, - [DiesByClass] BIT NOT NULL, - [NumDiesInList] DECIMAL (18, 6) NULL, - [NumDiesExaust] DECIMAL (18, 6) NULL, - [CodPlant] NVARCHAR (100) NULL, - [KeyAMIL] NVARCHAR (100) NULL, - [KgTeo] DECIMAL (18, 6) NULL, - [NumSMED] DECIMAL (18, 6) NULL, - [QuotaMan] DECIMAL (18, 6) NULL, - [PRMWeight] DECIMAL (18, 6) NULL, - [PWeight] DECIMAL (18, 6) NULL, - [PTare] DECIMAL (18, 6) NULL, - [LivPackage] NVARCHAR (100) NULL, - [LivPackageDett] NVARCHAR (100) NULL, - [RawMatCost] DECIMAL (18, 6) NOT NULL, - [RawMatExtraCost] DECIMAL (18, 6) NOT NULL, - [RawMatFullCost] DECIMAL (18, 6) NULL, - [CodPackag] NVARCHAR (50) NOT NULL, - [PkgDesc] NVARCHAR (100) NULL, - [FSR] DECIMAL (18, 6) NULL, - [ProvvCost] DECIMAL (18, 6) NOT NULL, - [EECost] DECIMAL (18, 6) NOT NULL, - [GasCost] DECIMAL (18, 6) NOT NULL, - [DiesCost] DECIMAL (18, 6) NOT NULL, - [PackCost] DECIMAL (18, 6) NOT NULL, - [TranspCost] DECIMAL (18, 6) NOT NULL, - [SellCost01] DECIMAL (18, 6) NOT NULL, - [RefCost01] DECIMAL (18, 6) NOT NULL, - [SellCost04] DECIMAL (18, 6) NOT NULL, - [RefCost04] DECIMAL (18, 6) NOT NULL, - [WSR01] DECIMAL (9, 8) NOT NULL, - [MSR01] DECIMAL (9, 8) NOT NULL, - [NetProd01] DECIMAL (9, 3) NOT NULL, - [FC4UG01] DECIMAL (9, 6) NOT NULL, - [VC4UG01] DECIMAL (9, 6) NOT NULL, - [OH4UG01] DECIMAL (9, 6) NOT NULL, - [SC4UG01] DECIMAL (9, 6) NOT NULL, - [DSR] DECIMAL (9, 8) NULL, - [NetProd04] DECIMAL (9, 3) NOT NULL, - [FC4UG04] DECIMAL (9, 6) NOT NULL, - [VC4UG04] DECIMAL (9, 6) NOT NULL, - [FVC] DECIMAL (18, 6) NULL, - [Charge] DECIMAL (9, 6) NOT NULL, - [valid] BIT NOT NULL, - [errorScore] INT NOT NULL, - CONSTRAINT [PK_QuoteFull_Q_1] PRIMARY KEY CLUSTERED ([QuoteType] ASC, [CodQuote] ASC, [QuoteRev] ASC) + [EndCalc] DATETIME NULL, + CONSTRAINT [PK_CostList_1] PRIMARY KEY CLUSTERED ([DateList] ASC, [CodItem] ASC, [RawMat] ASC) ); GO -PRINT N'Creating [dbo].[QuoteList]...'; +PRINT N'Creating [dbo].[CostList].[ix_CostList_QuoteType_CodQuote]...'; GO -CREATE TABLE [dbo].[QuoteList] ( - [QuoteType] CHAR (1) NOT NULL, - [CodQuote] BIGINT NOT NULL, - [QuoteRev] INT NOT NULL, - [IdxQState] INT NOT NULL, - [CodClient] NVARCHAR (50) NOT NULL, - [CodItem] NVARCHAR (50) NOT NULL, - [CodItemGroup] NVARCHAR (50) NOT NULL, - [RawMat] NVARCHAR (50) NOT NULL, - [UnitWeight] DECIMAL (9, 3) NOT NULL, - [BatchQty] INT NOT NULL, - [CodInco] NVARCHAR (5) NOT NULL, - [KeyAM] AS ((CASE WHEN [QuoteType] = 'S' THEN [CodItemGroup] ELSE [CodItem] END + '-') + [RawMat]), - [Note] NVARCHAR (2500) NOT NULL, - [PriceOff] DECIMAL (9, 6) NOT NULL, - [OrdDate] SMALLDATETIME NULL, - [OrdNum] NVARCHAR (50) NOT NULL, - [OrdRow] NVARCHAR (50) NOT NULL, - [OrdPrice] DECIMAL (9, 6) NOT NULL, - [OrdQty] INT NOT NULL, - [valid] BIT NOT NULL, - [errorScore] INT NOT NULL, - [UserCreaz] NVARCHAR (50) NOT NULL, - [DataCreaz] DATETIME NOT NULL, - [UserMod] NVARCHAR (50) NOT NULL, - [DataMod] DATETIME NOT NULL, - CONSTRAINT [PK_QuoteList_1] PRIMARY KEY CLUSTERED ([QuoteType] ASC, [CodQuote] ASC, [QuoteRev] ASC) WITH (FILLFACTOR = 90) +CREATE NONCLUSTERED INDEX [ix_CostList_QuoteType_CodQuote] + ON [dbo].[CostList]([QuoteType] ASC, [CodQuote] ASC); + + +GO +PRINT N'Creating [dbo].[DIRITTI]...'; + + +GO +CREATE TABLE [dbo].[DIRITTI] ( + [USER_NAME] NVARCHAR (50) NOT NULL, + [COD_CDC] NVARCHAR (50) NOT NULL, + [COD_MODULO] NVARCHAR (31) NOT NULL, + [COD_FUNZIONE] NVARCHAR (31) NOT NULL, + [VALUE] VARCHAR (255) NULL, + CONSTRAINT [PK_DIRITTI] PRIMARY KEY CLUSTERED ([USER_NAME] ASC, [COD_CDC] ASC, [COD_MODULO] ASC, [COD_FUNZIONE] ASC) ); GO -PRINT N'Creating [dbo].[QuoteParam]...'; +PRINT N'Creating [dbo].[FUNZIONE]...'; GO -CREATE TABLE [dbo].[QuoteParam] ( - [QuoteType] CHAR (1) NOT NULL, - [CodQuote] BIGINT NOT NULL, - [QuoteRev] INT NOT NULL, - [NumP] INT NOT NULL, - [ProcessNum] NVARCHAR (50) NOT NULL, - [Descr] NVARCHAR (50) NOT NULL, - [Parameter] NVARCHAR (100) NOT NULL, - CONSTRAINT [PK_QuoteParam] PRIMARY KEY CLUSTERED ([QuoteType] ASC, [CodQuote] ASC, [QuoteRev] ASC, [NumP] ASC) WITH (FILLFACTOR = 90) +CREATE TABLE [dbo].[FUNZIONE] ( + [COD_FUNZIONE] NVARCHAR (31) NOT NULL, + [DESCRIZIONE] NVARCHAR (500) NULL, + CONSTRAINT [PK_FUNZIONE] PRIMARY KEY CLUSTERED ([COD_FUNZIONE] ASC) ); GO -PRINT N'Creating [dbo].[QuoteWorkInt]...'; +PRINT N'Creating [dbo].[MODULO]...'; GO -CREATE TABLE [dbo].[QuoteWorkInt] ( - [QuoteType] CHAR (1) NOT NULL, - [CodQuote] BIGINT NOT NULL, - [QuoteRev] INT NOT NULL, - [NumWI] INT NOT NULL, - [ProcessNum] NVARCHAR (50) NOT NULL, - [CodPlant] NVARCHAR (50) NOT NULL, - [Class01] NVARCHAR (50) NOT NULL, - [Class02] NVARCHAR (50) NOT NULL, - [Class03] NVARCHAR (50) NOT NULL, - [Class04] NVARCHAR (50) NOT NULL, - [Class05] NVARCHAR (50) NOT NULL, - [NetProd] DECIMAL (9, 3) NOT NULL, - [WSR] DECIMAL (9, 8) NOT NULL, - [MSR] DECIMAL (9, 8) NOT NULL, - [DSR] DECIMAL (9, 8) NOT NULL, - [FC4UG] DECIMAL (9, 6) NOT NULL, - [VC4UG] DECIMAL (9, 6) NOT NULL, - [OH4UG] DECIMAL (9, 6) NOT NULL, - [SC4UG] DECIMAL (9, 6) NOT NULL, - [WYR] AS ((1) - [WSR]), - [MYR] AS ((1) - [MSR]), - [DYR] AS ((1) - [DSR]), - [WCR] AS (CASE WHEN ((1) - [WSR]) = (0) THEN (1) ELSE (1) / ((1) - [WSR]) END), - [MCR] AS (CASE WHEN ((1) - [MSR]) = (0) THEN (1) ELSE (1) / ((1) - [MSR]) END), - [DCR] AS (CASE WHEN ((1) - [DSR]) = (0) THEN (1) ELSE (1) / ((1) - [DSR]) END), - [valid] BIT NOT NULL, - CONSTRAINT [PK_QuoteWorkInt] PRIMARY KEY CLUSTERED ([QuoteType] ASC, [CodQuote] ASC, [QuoteRev] ASC, [NumWI] ASC) WITH (FILLFACTOR = 90) -); - - -GO -PRINT N'Creating [dbo].[RawMatDet]...'; - - -GO -CREATE TABLE [dbo].[RawMatDet] ( - [RawMat] NVARCHAR (50) NOT NULL, - [ProcCost] DECIMAL (18, 6) NOT NULL, - [ProcYield] DECIMAL (9, 6) NOT NULL, - [CSR] DECIMAL (9, 6) NOT NULL, - [SSR] DECIMAL (9, 6) NULL, - [SSVA] DECIMAL (9, 6) NULL, - [SSVR] DECIMAL (9, 6) NULL, - [ExtraMatCost] DECIMAL (9, 6) NULL, - [ExtraServCost] DECIMAL (9, 6) NULL, - CONSTRAINT [PK_RawMatDet] PRIMARY KEY CLUSTERED ([RawMat] ASC) -); - - -GO -PRINT N'Creating [dbo].[TabProdSc]...'; - - -GO -CREATE TABLE [dbo].[TabProdSc] ( - [KeyAMIL] NVARCHAR (250) NOT NULL, - [CodDiesGroup] NVARCHAR (50) NOT NULL, - [KeyAM] NVARCHAR (250) NOT NULL, - [CodItem] NVARCHAR (50) NOT NULL, - [RawMat] NVARCHAR (50) NOT NULL, - [CodPlant] NVARCHAR (50) NOT NULL, - [HoleNum] INT NOT NULL, - [NumSMED] INT NOT NULL, - [KgTeo] DECIMAL (18, 6) NOT NULL, - [KgLor] DECIMAL (18, 6) NOT NULL, - [Duration] DECIMAL (18, 6) NOT NULL, - [ProdTeo] AS (CASE isnull([Duration], (0)) WHEN (0) THEN (0) ELSE isnull([KgTeo], (0)) / [Duration] END), - [ScTec] AS (CASE isnull([KgLor], (0)) WHEN (0) THEN (0) ELSE (1) - [KgTeo] / [KgLor] END), - CONSTRAINT [PK_TabProdSc] PRIMARY KEY CLUSTERED ([KeyAMIL] ASC, [CodDiesGroup] ASC) -); - - -GO -PRINT N'Creating [dbo].[TabProdSc].[i_TabProdSc_KeyAM]...'; - - -GO -CREATE NONCLUSTERED INDEX [i_TabProdSc_KeyAM] - ON [dbo].[TabProdSc]([KeyAM] ASC) - INCLUDE([KgTeo]); - - -GO -PRINT N'Creating [dbo].[TrascDies]...'; - - -GO -CREATE TABLE [dbo].[TrascDies] ( - [CodDies] NVARCHAR (50) NOT NULL, - [CodDiesNew] NVARCHAR (50) NOT NULL -); - - -GO -PRINT N'Creating [dbo].[TrascItem]...'; - - -GO -CREATE TABLE [dbo].[TrascItem] ( - [CodItem] NVARCHAR (50) NOT NULL, - [ItemDescr] NVARCHAR (250) NOT NULL, - [CodItemNew] NVARCHAR (50) NOT NULL, - [ItemDescNew] NVARCHAR (250) NOT NULL -); - - -GO -PRINT N'Creating [dbo].[TrascPlan]...'; - - -GO -CREATE TABLE [dbo].[TrascPlan] ( - [CodPlant] NVARCHAR (50) NOT NULL, - [CodPlantNew] NVARCHAR (50) NOT NULL -); - - -GO -PRINT N'Creating [dbo].[UTENTE]...'; - - -GO -CREATE TABLE [dbo].[UTENTE] ( - [DOMINIO] VARCHAR (30) NULL, - [USER_NAME] NVARCHAR (50) NOT NULL, - [COGNOME] VARCHAR (100) NULL, - [NOME] VARCHAR (100) NULL, - [COD_SOCIETA] VARCHAR (5) NULL, - [MATRICOLA] VARCHAR (5) NULL, - [COD_CDC] VARCHAR (10) NULL, - [EMAIL] VARCHAR (100) NULL, - [SIGLA] NVARCHAR (5) NULL, - [COD_LINGUA] VARCHAR (3) NULL, - [ATTIVO] CHAR (1) NULL, - CONSTRAINT [PK_UTENTE] PRIMARY KEY CLUSTERED ([USER_NAME] ASC) +CREATE TABLE [dbo].[MODULO] ( + [COD_MODULO] NVARCHAR (31) NOT NULL, + [DESCRIZIONE] VARCHAR (200) NULL, + CONSTRAINT [PK_MODULO] PRIMARY KEY CLUSTERED ([COD_MODULO] ASC) ); @@ -1203,178 +1274,6 @@ CREATE TABLE [dbo].[QuoteFull_R] ( ); -GO -PRINT N'Creating [dbo].[QuoteSimPar]...'; - - -GO -CREATE TABLE [dbo].[QuoteSimPar] ( - [QuoteType] CHAR (1) NOT NULL, - [CodQuote] BIGINT NOT NULL, - [QuoteRev] INT NOT NULL, - [NomePar] NVARCHAR (50) NOT NULL, - [ValPar] NVARCHAR (50) NOT NULL, - CONSTRAINT [PK_QuoteSimPar_1] PRIMARY KEY CLUSTERED ([QuoteType] ASC, [CodQuote] ASC, [QuoteRev] ASC, [NomePar] ASC) WITH (FILLFACTOR = 90) -); - - -GO -PRINT N'Creating [dbo].[ReportPrintTicket]...'; - - -GO -CREATE TABLE [dbo].[ReportPrintTicket] ( - [Ticket] INT NOT NULL, - [Report] NVARCHAR (50) NOT NULL, - [Chiave] NVARCHAR (250) NOT NULL, - [UserReq] NVARCHAR (50) NOT NULL, - [DataReq] DATETIME NOT NULL, - [DataPrint] DATETIME NULL, - CONSTRAINT [PK_ReportPrintTicket] PRIMARY KEY CLUSTERED ([Ticket] ASC, [Report] ASC, [Chiave] ASC) -); - - -GO -PRINT N'Creating [dbo].[TrascClass01]...'; - - -GO -CREATE TABLE [dbo].[TrascClass01] ( - [Class01] NVARCHAR (50) NOT NULL, - [Class01New] NVARCHAR (50) NOT NULL -); - - -GO -PRINT N'Creating [dbo].[TrascClass02]...'; - - -GO -CREATE TABLE [dbo].[TrascClass02] ( - [Class02] NVARCHAR (50) NOT NULL, - [Class02New] NVARCHAR (50) NOT NULL -); - - -GO -PRINT N'Creating [dbo].[TrascClass03]...'; - - -GO -CREATE TABLE [dbo].[TrascClass03] ( - [Class03] NVARCHAR (50) NOT NULL, - [Class03New] NVARCHAR (50) NOT NULL -); - - -GO -PRINT N'Creating [dbo].[TrascClient]...'; - - -GO -CREATE TABLE [dbo].[TrascClient] ( - [CodClient] NVARCHAR (50) NOT NULL, - [ClientName] NVARCHAR (250) NOT NULL, - [CodClientNew] NVARCHAR (50) NOT NULL, - [ClientNameNew] NVARCHAR (250) NOT NULL -); - - -GO -PRINT N'Creating [dbo].[CDC]...'; - - -GO -CREATE TABLE [dbo].[CDC] ( - [COD_CDC] VARCHAR (10) NOT NULL, - [DESCRIZIONE] VARCHAR (200) NULL, - [COD_TIPO] VARCHAR (1) NOT NULL, - [POSIZIONE] VARCHAR (100) NULL, - PRIMARY KEY CLUSTERED ([COD_CDC] ASC) -); - - -GO -PRINT N'Creating [dbo].[ContatoriQuote]...'; - - -GO -CREATE TABLE [dbo].[ContatoriQuote] ( - [Flusso] VARCHAR (2) NOT NULL, - [LastIdx] INT NOT NULL, - CONSTRAINT [PK_ContatoriQuote] PRIMARY KEY CLUSTERED ([Flusso] ASC) -); - - -GO -PRINT N'Creating [dbo].[CostList]...'; - - -GO -CREATE TABLE [dbo].[CostList] ( - [DateList] SMALLDATETIME NOT NULL, - [CodItem] NVARCHAR (50) NOT NULL, - [RawMat] NVARCHAR (50) NOT NULL, - [RawMatCost] DECIMAL (18, 6) NOT NULL, - [RawMatExtraCost] DECIMAL (18, 6) NULL, - [batchQty] INT NOT NULL, - [CodInco] NVARCHAR (5) NOT NULL, - [QuoteType] CHAR (1) NOT NULL, - [CodQuote] BIGINT NOT NULL, - [QuoteRev] INT NOT NULL, - [EndCalc] DATETIME NULL, - CONSTRAINT [PK_CostList_1] PRIMARY KEY CLUSTERED ([DateList] ASC, [CodItem] ASC, [RawMat] ASC) -); - - -GO -PRINT N'Creating [dbo].[CostList].[ix_CostList_QuoteType_CodQuote]...'; - - -GO -CREATE NONCLUSTERED INDEX [ix_CostList_QuoteType_CodQuote] - ON [dbo].[CostList]([QuoteType] ASC, [CodQuote] ASC); - - -GO -PRINT N'Creating [dbo].[DIRITTI]...'; - - -GO -CREATE TABLE [dbo].[DIRITTI] ( - [USER_NAME] NVARCHAR (50) NOT NULL, - [COD_CDC] NVARCHAR (50) NOT NULL, - [COD_MODULO] NVARCHAR (31) NOT NULL, - [COD_FUNZIONE] NVARCHAR (31) NOT NULL, - [VALUE] VARCHAR (255) NULL, - CONSTRAINT [PK_DIRITTI] PRIMARY KEY CLUSTERED ([USER_NAME] ASC, [COD_CDC] ASC, [COD_MODULO] ASC, [COD_FUNZIONE] ASC) -); - - -GO -PRINT N'Creating [dbo].[FUNZIONE]...'; - - -GO -CREATE TABLE [dbo].[FUNZIONE] ( - [COD_FUNZIONE] NVARCHAR (31) NOT NULL, - [DESCRIZIONE] NVARCHAR (500) NULL, - CONSTRAINT [PK_FUNZIONE] PRIMARY KEY CLUSTERED ([COD_FUNZIONE] ASC) -); - - -GO -PRINT N'Creating [dbo].[MODULO]...'; - - -GO -CREATE TABLE [dbo].[MODULO] ( - [COD_MODULO] NVARCHAR (31) NOT NULL, - [DESCRIZIONE] VARCHAR (200) NULL, - CONSTRAINT [PK_MODULO] PRIMARY KEY CLUSTERED ([COD_MODULO] ASC) -); - - GO PRINT N'Creating [dbo].[QuoteFull_S]...'; @@ -1474,6 +1373,107 @@ CREATE TABLE [dbo].[QuoteFull_S] ( ); +GO +PRINT N'Creating [dbo].[QuoteSimPar]...'; + + +GO +CREATE TABLE [dbo].[QuoteSimPar] ( + [QuoteType] CHAR (1) NOT NULL, + [CodQuote] BIGINT NOT NULL, + [QuoteRev] INT NOT NULL, + [NomePar] NVARCHAR (50) NOT NULL, + [ValPar] NVARCHAR (50) NOT NULL, + CONSTRAINT [PK_QuoteSimPar_1] PRIMARY KEY CLUSTERED ([QuoteType] ASC, [CodQuote] ASC, [QuoteRev] ASC, [NomePar] ASC) WITH (FILLFACTOR = 90) +); + + +GO +PRINT N'Creating [dbo].[ReportPrintTicket]...'; + + +GO +CREATE TABLE [dbo].[ReportPrintTicket] ( + [Ticket] INT NOT NULL, + [Report] NVARCHAR (50) NOT NULL, + [Chiave] NVARCHAR (250) NOT NULL, + [UserReq] NVARCHAR (50) NOT NULL, + [DataReq] DATETIME NOT NULL, + [DataPrint] DATETIME NULL, + CONSTRAINT [PK_ReportPrintTicket] PRIMARY KEY CLUSTERED ([Ticket] ASC, [Report] ASC, [Chiave] ASC) +); + + +GO +PRINT N'Creating [dbo].[TrascClass01]...'; + + +GO +CREATE TABLE [dbo].[TrascClass01] ( + [Class01] NVARCHAR (50) NOT NULL, + [Class01New] NVARCHAR (50) NOT NULL +); + + +GO +PRINT N'Creating [dbo].[TrascClass02]...'; + + +GO +CREATE TABLE [dbo].[TrascClass02] ( + [Class02] NVARCHAR (50) NOT NULL, + [Class02New] NVARCHAR (50) NOT NULL +); + + +GO +PRINT N'Creating [dbo].[TrascClass03]...'; + + +GO +CREATE TABLE [dbo].[TrascClass03] ( + [Class03] NVARCHAR (50) NOT NULL, + [Class03New] NVARCHAR (50) NOT NULL +); + + +GO +PRINT N'Creating [dbo].[TrascClient]...'; + + +GO +CREATE TABLE [dbo].[TrascClient] ( + [CodClient] NVARCHAR (50) NOT NULL, + [ClientName] NVARCHAR (250) NOT NULL, + [CodClientNew] NVARCHAR (50) NOT NULL, + [ClientNameNew] NVARCHAR (250) NOT NULL +); + + +GO +PRINT N'Creating [dbo].[TrascDies]...'; + + +GO +CREATE TABLE [dbo].[TrascDies] ( + [CodDies] NVARCHAR (50) NOT NULL, + [CodDiesNew] NVARCHAR (50) NOT NULL +); + + +GO +PRINT N'Creating [dbo].[TrascItem]...'; + + +GO +CREATE TABLE [dbo].[TrascItem] ( + [CodItem] NVARCHAR (50) NOT NULL, + [ItemDescr] NVARCHAR (250) NOT NULL, + [CodItemNew] NVARCHAR (50) NOT NULL, + [ItemDescNew] NVARCHAR (250) NOT NULL +); + + GO PRINT N'Creating [dbo].[ListValues]...'; @@ -1837,6 +1837,22 @@ CREATE TABLE [ext].[ProductionLogRaw_KO] ( ); +GO +PRINT N'Creating [ext].[DiesGroupRaw]...'; + + +GO +CREATE TABLE [ext].[DiesGroupRaw] ( + [CodDiesGroup] NVARCHAR (50) NOT NULL, + [Price] DECIMAL (9, 3) NOT NULL, + [QtyTot] INT NOT NULL, + [QtyEOL] INT NOT NULL, + [ExpLife] DECIMAL (9, 3) NOT NULL, + [EOLLife] DECIMAL (9, 3) NOT NULL, + CONSTRAINT [PK_DiesGroupRaw] PRIMARY KEY CLUSTERED ([CodDiesGroup] ASC) +); + + GO PRINT N'Creating [ext].[ItemsRaw]...'; @@ -1873,22 +1889,6 @@ CREATE TABLE [ext].[PackagRaw] ( ); -GO -PRINT N'Creating [ext].[DiesGroupRaw]...'; - - -GO -CREATE TABLE [ext].[DiesGroupRaw] ( - [CodDiesGroup] NVARCHAR (50) NOT NULL, - [Price] DECIMAL (9, 3) NOT NULL, - [QtyTot] INT NOT NULL, - [QtyEOL] INT NOT NULL, - [ExpLife] DECIMAL (9, 3) NOT NULL, - [EOLLife] DECIMAL (9, 3) NOT NULL, - CONSTRAINT [PK_DiesGroupRaw] PRIMARY KEY CLUSTERED ([CodDiesGroup] ASC) -); - - GO PRINT N'Creating [ext].[OrdersHistRaw]...'; @@ -1914,16 +1914,26 @@ CREATE TABLE [ext].[OrdersHistRaw] ( GO -PRINT N'Creating [ext].[RcdItem]...'; +PRINT N'Creating [ext].[RcdClass01]...'; GO -CREATE TABLE [ext].[RcdItem] ( - [CodItem] NVARCHAR (50) NOT NULL, - [CodItemRcd] NVARCHAR (50) NOT NULL, - [ItemDescrRcd] NVARCHAR (250) NOT NULL, - [CodPlantRcd] NVARCHAR (50) NOT NULL, - CONSTRAINT [PK_RcdItem] PRIMARY KEY CLUSTERED ([CodItem] ASC) +CREATE TABLE [ext].[RcdClass01] ( + [CodClass01] NVARCHAR (50) NOT NULL, + [CodClass01Rcd] NVARCHAR (50) NOT NULL, + CONSTRAINT [PK_RcdClass] PRIMARY KEY CLUSTERED ([CodClass01] ASC) +); + + +GO +PRINT N'Creating [ext].[RcdClass02]...'; + + +GO +CREATE TABLE [ext].[RcdClass02] ( + [CodClass02] NVARCHAR (50) NOT NULL, + [CodClass02Rcd] NVARCHAR (50) NOT NULL, + CONSTRAINT [PK_RcdClass02] PRIMARY KEY CLUSTERED ([CodClass02] ASC) ); @@ -1942,38 +1952,16 @@ CREATE TABLE [ext].[RcdClient] ( GO -PRINT N'Creating [ext].[RcdClass02]...'; +PRINT N'Creating [ext].[RcdItem]...'; GO -CREATE TABLE [ext].[RcdClass02] ( - [CodClass02] NVARCHAR (50) NOT NULL, - [CodClass02Rcd] NVARCHAR (50) NOT NULL, - CONSTRAINT [PK_RcdClass02] PRIMARY KEY CLUSTERED ([CodClass02] ASC) -); - - -GO -PRINT N'Creating [ext].[RcdClass01]...'; - - -GO -CREATE TABLE [ext].[RcdClass01] ( - [CodClass01] NVARCHAR (50) NOT NULL, - [CodClass01Rcd] NVARCHAR (50) NOT NULL, - CONSTRAINT [PK_RcdClass] PRIMARY KEY CLUSTERED ([CodClass01] ASC) -); - - -GO -PRINT N'Creating [ext].[RcdPlants]...'; - - -GO -CREATE TABLE [ext].[RcdPlants] ( - [CodPlant] NVARCHAR (50) NOT NULL, - [CodPlantRcd] NVARCHAR (50) NOT NULL, - CONSTRAINT [PK_RcdPlants] PRIMARY KEY CLUSTERED ([CodPlant] ASC) +CREATE TABLE [ext].[RcdItem] ( + [CodItem] NVARCHAR (50) NOT NULL, + [CodItemRcd] NVARCHAR (50) NOT NULL, + [ItemDescrRcd] NVARCHAR (250) NOT NULL, + [CodPlantRcd] NVARCHAR (50) NOT NULL, + CONSTRAINT [PK_RcdItem] PRIMARY KEY CLUSTERED ([CodItem] ASC) ); @@ -1991,925 +1979,19 @@ CREATE TABLE [ext].[RcdPackage] ( GO -PRINT N'Creating DF_QuoteExtra_QuoteType...'; +PRINT N'Creating [ext].[RcdPlants]...'; GO -ALTER TABLE [dbo].[QuoteOC] - ADD CONSTRAINT [DF_QuoteExtra_QuoteType] DEFAULT ('Q') FOR [QuoteType]; +CREATE TABLE [ext].[RcdPlants] ( + [CodPlant] NVARCHAR (50) NOT NULL, + [CodPlantRcd] NVARCHAR (50) NOT NULL, + CONSTRAINT [PK_RcdPlants] PRIMARY KEY CLUSTERED ([CodPlant] ASC) +); GO -PRINT N'Creating DF_QuoteExtra_QuoteRev...'; - - -GO -ALTER TABLE [dbo].[QuoteOC] - ADD CONSTRAINT [DF_QuoteExtra_QuoteRev] DEFAULT ((0)) FOR [QuoteRev]; - - -GO -PRINT N'Creating DF_QuoteExtra_ResType...'; - - -GO -ALTER TABLE [dbo].[QuoteOC] - ADD CONSTRAINT [DF_QuoteExtra_ResType] DEFAULT ((0)) FOR [ProcessNum]; - - -GO -PRINT N'Creating DF_QuoteExtra_Class01...'; - - -GO -ALTER TABLE [dbo].[QuoteOC] - ADD CONSTRAINT [DF_QuoteExtra_Class01] DEFAULT ('') FOR [Class01]; - - -GO -PRINT N'Creating DF_QuoteExtra_Class02...'; - - -GO -ALTER TABLE [dbo].[QuoteOC] - ADD CONSTRAINT [DF_QuoteExtra_Class02] DEFAULT ('') FOR [Class02]; - - -GO -PRINT N'Creating DF_QuoteExtra_Class03...'; - - -GO -ALTER TABLE [dbo].[QuoteOC] - ADD CONSTRAINT [DF_QuoteExtra_Class03] DEFAULT ('') FOR [Class03]; - - -GO -PRINT N'Creating DF_QuoteExtra_Class04...'; - - -GO -ALTER TABLE [dbo].[QuoteOC] - ADD CONSTRAINT [DF_QuoteExtra_Class04] DEFAULT ('') FOR [Class04]; - - -GO -PRINT N'Creating DF_QuoteExtra_Class05...'; - - -GO -ALTER TABLE [dbo].[QuoteOC] - ADD CONSTRAINT [DF_QuoteExtra_Class05] DEFAULT ('') FOR [Class05]; - - -GO -PRINT N'Creating DF_QuoteExtra_TotQty...'; - - -GO -ALTER TABLE [dbo].[QuoteOC] - ADD CONSTRAINT [DF_QuoteExtra_TotQty] DEFAULT ((1)) FOR [TotQty]; - - -GO -PRINT N'Creating DF_QuoteExtra_TotCost...'; - - -GO -ALTER TABLE [dbo].[QuoteOC] - ADD CONSTRAINT [DF_QuoteExtra_TotCost] DEFAULT ((0)) FOR [TotCost]; - - -GO -PRINT N'Creating DF_QuoteExtra_Quota...'; - - -GO -ALTER TABLE [dbo].[QuoteOC] - ADD CONSTRAINT [DF_QuoteExtra_Quota] DEFAULT ((1)) FOR [Quota]; - - -GO -PRINT N'Creating DF_QuoteOC_valid...'; - - -GO -ALTER TABLE [dbo].[QuoteOC] - ADD CONSTRAINT [DF_QuoteOC_valid] DEFAULT ((1)) FOR [valid]; - - -GO -PRINT N'Creating DF_QuoteWorkExt_QuoteType...'; - - -GO -ALTER TABLE [dbo].[QuoteWorkExt] - ADD CONSTRAINT [DF_QuoteWorkExt_QuoteType] DEFAULT ('Q') FOR [QuoteType]; - - -GO -PRINT N'Creating DF_QuoteWorkExt_QuoteRev...'; - - -GO -ALTER TABLE [dbo].[QuoteWorkExt] - ADD CONSTRAINT [DF_QuoteWorkExt_QuoteRev] DEFAULT ((0)) FOR [QuoteRev]; - - -GO -PRINT N'Creating DF_QuoteWorkExt_FC4UG...'; - - -GO -ALTER TABLE [dbo].[QuoteWorkExt] - ADD CONSTRAINT [DF_QuoteWorkExt_FC4UG] DEFAULT ((0)) FOR [EWC4UG]; - - -GO -PRINT N'Creating DF_QuoteWorkExt_EWC4UG1...'; - - -GO -ALTER TABLE [dbo].[QuoteWorkExt] - ADD CONSTRAINT [DF_QuoteWorkExt_EWC4UG1] DEFAULT ((0)) FOR [UM]; - - -GO -PRINT N'Creating DF_QuoteWorkExt_valid...'; - - -GO -ALTER TABLE [dbo].[QuoteWorkExt] - ADD CONSTRAINT [DF_QuoteWorkExt_valid] DEFAULT ((1)) FOR [valid]; - - -GO -PRINT N'Creating DF_Package2Item_TotQty...'; - - -GO -ALTER TABLE [dbo].[Package2Item] - ADD CONSTRAINT [DF_Package2Item_TotQty] DEFAULT ((0)) FOR [TotQta]; - - -GO -PRINT N'Creating DF_Package2Item_Weight...'; - - -GO -ALTER TABLE [dbo].[Package2Item] - ADD CONSTRAINT [DF_Package2Item_Weight] DEFAULT ((0)) FOR [Weight]; - - -GO -PRINT N'Creating DF_Package2Item_Tare...'; - - -GO -ALTER TABLE [dbo].[Package2Item] - ADD CONSTRAINT [DF_Package2Item_Tare] DEFAULT ((0)) FOR [Tare]; - - -GO -PRINT N'Creating DF_Package2Item_NumImb...'; - - -GO -ALTER TABLE [dbo].[Package2Item] - ADD CONSTRAINT [DF_Package2Item_NumImb] DEFAULT ((0)) FOR [NumImb]; - - -GO -PRINT N'Creating DF_Package2Item_Durata...'; - - -GO -ALTER TABLE [dbo].[Package2Item] - ADD CONSTRAINT [DF_Package2Item_Durata] DEFAULT ((0)) FOR [Durata]; - - -GO -PRINT N'Creating DF_Package2ItemClient_TotQty...'; - - -GO -ALTER TABLE [dbo].[Package2ItemClient] - ADD CONSTRAINT [DF_Package2ItemClient_TotQty] DEFAULT ((0)) FOR [TotQta]; - - -GO -PRINT N'Creating DF_Package2ItemClient_Weight...'; - - -GO -ALTER TABLE [dbo].[Package2ItemClient] - ADD CONSTRAINT [DF_Package2ItemClient_Weight] DEFAULT ((0)) FOR [Weight]; - - -GO -PRINT N'Creating DF_Package2ItemClient_Tare...'; - - -GO -ALTER TABLE [dbo].[Package2ItemClient] - ADD CONSTRAINT [DF_Package2ItemClient_Tare] DEFAULT ((0)) FOR [Tare]; - - -GO -PRINT N'Creating DF_Package2ItemClient_NumImb...'; - - -GO -ALTER TABLE [dbo].[Package2ItemClient] - ADD CONSTRAINT [DF_Package2ItemClient_NumImb] DEFAULT ((0)) FOR [NumImb]; - - -GO -PRINT N'Creating DF_Package2ItemClient_Durata...'; - - -GO -ALTER TABLE [dbo].[Package2ItemClient] - ADD CONSTRAINT [DF_Package2ItemClient_Durata] DEFAULT ((0)) FOR [Durata]; - - -GO -PRINT N'Creating DF_TabImbArt_NumImb...'; - - -GO -ALTER TABLE [dbo].[TabImbArt] - ADD CONSTRAINT [DF_TabImbArt_NumImb] DEFAULT ((0)) FOR [NumImb]; - - -GO -PRINT N'Creating DF_TabImbArt_TotOut...'; - - -GO -ALTER TABLE [dbo].[TabImbArt] - ADD CONSTRAINT [DF_TabImbArt_TotOut] DEFAULT ((0)) FOR [TotOut]; - - -GO -PRINT N'Creating DF_TabImbArt_Durata...'; - - -GO -ALTER TABLE [dbo].[TabImbArt] - ADD CONSTRAINT [DF_TabImbArt_Durata] DEFAULT ((0)) FOR [Durata]; - - -GO -PRINT N'Creating DF_PlantsDet_OH...'; - - -GO -ALTER TABLE [dbo].[PlantsDet] - ADD CONSTRAINT [DF_PlantsDet_OH] DEFAULT ((1)) FOR [Charge]; - - -GO -PRINT N'Creating DF_RevHistory_RevType...'; - - -GO -ALTER TABLE [dbo].[RevHistory] - ADD CONSTRAINT [DF_RevHistory_RevType] DEFAULT (N'P') FOR [RevType]; - - -GO -PRINT N'Creating DF_RevHistory_RevNum...'; - - -GO -ALTER TABLE [dbo].[RevHistory] - ADD CONSTRAINT [DF_RevHistory_RevNum] DEFAULT ((0)) FOR [RevNum]; - - -GO -PRINT N'Creating DF_RevHistory_Description...'; - - -GO -ALTER TABLE [dbo].[RevHistory] - ADD CONSTRAINT [DF_RevHistory_Description] DEFAULT ('') FOR [Description]; - - -GO -PRINT N'Creating DF_DiesGroupDet_ExpLife...'; - - -GO -ALTER TABLE [dbo].[DiesGroupDet] - ADD CONSTRAINT [DF_DiesGroupDet_ExpLife] DEFAULT ((1)) FOR [ExpLife]; - - -GO -PRINT N'Creating DF_DiesGroupDet_EOLLife...'; - - -GO -ALTER TABLE [dbo].[DiesGroupDet] - ADD CONSTRAINT [DF_DiesGroupDet_EOLLife] DEFAULT ((1)) FOR [EOLLife]; - - -GO -PRINT N'Creating DF_Cost2Plant_VC...'; - - -GO -ALTER TABLE [dbo].[Cost2Plant] - ADD CONSTRAINT [DF_Cost2Plant_VC] DEFAULT ((0)) FOR [VC]; - - -GO -PRINT N'Creating DF_Cost2Plant_OH...'; - - -GO -ALTER TABLE [dbo].[Cost2Plant] - ADD CONSTRAINT [DF_Cost2Plant_OH] DEFAULT ((0)) FOR [OH]; - - -GO -PRINT N'Creating DF_Cost2Plant_OH1...'; - - -GO -ALTER TABLE [dbo].[Cost2Plant] - ADD CONSTRAINT [DF_Cost2Plant_OH1] DEFAULT ((0)) FOR [SC]; - - -GO -PRINT N'Creating DF_Cost2Plant_QuotaPlantStd...'; - - -GO -ALTER TABLE [dbo].[Cost2Plant] - ADD CONSTRAINT [DF_Cost2Plant_QuotaPlantStd] DEFAULT ((0)) FOR [QuotaPlantStd]; - - -GO -PRINT N'Creating DF_Cost2Plant_QuotaManStd...'; - - -GO -ALTER TABLE [dbo].[Cost2Plant] - ADD CONSTRAINT [DF_Cost2Plant_QuotaManStd] DEFAULT ((0)) FOR [QuotaManStd]; - - -GO -PRINT N'Creating DF_ClientDet_Class01...'; - - -GO -ALTER TABLE [dbo].[ClientDet] - ADD CONSTRAINT [DF_ClientDet_Class01] DEFAULT ('') FOR [TranspZone]; - - -GO -PRINT N'Creating DF_AgentsDet_QuotaPerc...'; - - -GO -ALTER TABLE [dbo].[AgentsDet] - ADD CONSTRAINT [DF_AgentsDet_QuotaPerc] DEFAULT ((0)) FOR [QuotaProvvAg]; - - -GO -PRINT N'Creating DF_Utilities_unitCost...'; - - -GO -ALTER TABLE [dbo].[Utilities] - ADD CONSTRAINT [DF_Utilities_unitCost] DEFAULT ((0)) FOR [UnitCost]; - - -GO -PRINT N'Creating DF_Incoterms_HasTC...'; - - -GO -ALTER TABLE [dbo].[Incoterms] - ADD CONSTRAINT [DF_Incoterms_HasTC] DEFAULT ((0)) FOR [HasTC]; - - -GO -PRINT N'Creating DF_Table_1_ClassCli01...'; - - -GO -ALTER TABLE [dbo].[TranspCostDet] - ADD CONSTRAINT [DF_Table_1_ClassCli01] DEFAULT ('') FOR [TranspZone]; - - -GO -PRINT N'Creating DF_QuoteRM_QuoteType...'; - - -GO -ALTER TABLE [dbo].[QuoteRM] - ADD CONSTRAINT [DF_QuoteRM_QuoteType] DEFAULT ('Q') FOR [QuoteType]; - - -GO -PRINT N'Creating DF_QuoteRM_QuoteRev...'; - - -GO -ALTER TABLE [dbo].[QuoteRM] - ADD CONSTRAINT [DF_QuoteRM_QuoteRev] DEFAULT ((0)) FOR [QuoteRev]; - - -GO -PRINT N'Creating DF_QuoteRM_RawMatCost...'; - - -GO -ALTER TABLE [dbo].[QuoteRM] - ADD CONSTRAINT [DF_QuoteRM_RawMatCost] DEFAULT ((0)) FOR [RawMatCost]; - - -GO -PRINT N'Creating DF_QuoteRM_RawMatExtraCost...'; - - -GO -ALTER TABLE [dbo].[QuoteRM] - ADD CONSTRAINT [DF_QuoteRM_RawMatExtraCost] DEFAULT ((0)) FOR [RawMatExtraCost]; - - -GO -PRINT N'Creating DF_QuoteRM_CodPackag...'; - - -GO -ALTER TABLE [dbo].[QuoteRM] - ADD CONSTRAINT [DF_QuoteRM_CodPackag] DEFAULT ((0)) FOR [CodPackag]; - - -GO -PRINT N'Creating DF_QuoteRM_ConvRatio...'; - - -GO -ALTER TABLE [dbo].[QuoteRM] - ADD CONSTRAINT [DF_QuoteRM_ConvRatio] DEFAULT ((1)) FOR [FCR]; - - -GO -PRINT N'Creating DF_QuoteRM_valid...'; - - -GO -ALTER TABLE [dbo].[QuoteRM] - ADD CONSTRAINT [DF_QuoteRM_valid] DEFAULT ((1)) FOR [valid]; - - -GO -PRINT N'Creating DF_ItemDet_Class01...'; - - -GO -ALTER TABLE [dbo].[ItemDet] - ADD CONSTRAINT [DF_ItemDet_Class01] DEFAULT ('') FOR [Class01]; - - -GO -PRINT N'Creating DF_ItemDet_Class02...'; - - -GO -ALTER TABLE [dbo].[ItemDet] - ADD CONSTRAINT [DF_ItemDet_Class02] DEFAULT ('') FOR [Class02]; - - -GO -PRINT N'Creating DF_ItemDet_Class03...'; - - -GO -ALTER TABLE [dbo].[ItemDet] - ADD CONSTRAINT [DF_ItemDet_Class03] DEFAULT ('') FOR [Class03]; - - -GO -PRINT N'Creating DF_ItemDet_Class04...'; - - -GO -ALTER TABLE [dbo].[ItemDet] - ADD CONSTRAINT [DF_ItemDet_Class04] DEFAULT ('') FOR [Class04]; - - -GO -PRINT N'Creating DF_ItemDet_Class05...'; - - -GO -ALTER TABLE [dbo].[ItemDet] - ADD CONSTRAINT [DF_ItemDet_Class05] DEFAULT ('') FOR [Class05]; - - -GO -PRINT N'Creating DF_Package2_TotQty...'; - - -GO -ALTER TABLE [dbo].[Package2] - ADD CONSTRAINT [DF_Package2_TotQty] DEFAULT ((0)) FOR [TotQta]; - - -GO -PRINT N'Creating DF_Package2_Weight...'; - - -GO -ALTER TABLE [dbo].[Package2] - ADD CONSTRAINT [DF_Package2_Weight] DEFAULT ((0)) FOR [Weight]; - - -GO -PRINT N'Creating DF_Package2_Tare...'; - - -GO -ALTER TABLE [dbo].[Package2] - ADD CONSTRAINT [DF_Package2_Tare] DEFAULT ((0)) FOR [Tare]; - - -GO -PRINT N'Creating DF_Package2_NumImb...'; - - -GO -ALTER TABLE [dbo].[Package2] - ADD CONSTRAINT [DF_Package2_NumImb] DEFAULT ((0)) FOR [NumImb]; - - -GO -PRINT N'Creating DF_Package2_Durata...'; - - -GO -ALTER TABLE [dbo].[Package2] - ADD CONSTRAINT [DF_Package2_Durata] DEFAULT ((0)) FOR [Durata]; - - -GO -PRINT N'Creating DF_TabImbGrp_NumImb...'; - - -GO -ALTER TABLE [dbo].[TabImbGrp] - ADD CONSTRAINT [DF_TabImbGrp_NumImb] DEFAULT ((0)) FOR [NumImb]; - - -GO -PRINT N'Creating DF_TabImbGrp_TotOut...'; - - -GO -ALTER TABLE [dbo].[TabImbGrp] - ADD CONSTRAINT [DF_TabImbGrp_TotOut] DEFAULT ((0)) FOR [TotOut]; - - -GO -PRINT N'Creating DF_TabImbGrp_Durata...'; - - -GO -ALTER TABLE [dbo].[TabImbGrp] - ADD CONSTRAINT [DF_TabImbGrp_Durata] DEFAULT ((0)) FOR [Durata]; - - -GO -PRINT N'Creating DF_DiesDet_Price...'; - - -GO -ALTER TABLE [dbo].[DiesDet] - ADD CONSTRAINT [DF_DiesDet_Price] DEFAULT ((0)) FOR [Price]; - - -GO -PRINT N'Creating DF_DiesDet_Price1...'; - - -GO -ALTER TABLE [dbo].[DiesDet] - ADD CONSTRAINT [DF_DiesDet_Price1] DEFAULT ((0)) FOR [TestCost]; - - -GO -PRINT N'Creating DF_ProductionLog_NrPos...'; - - -GO -ALTER TABLE [dbo].[ProductionLog] - ADD CONSTRAINT [DF_ProductionLog_NrPos] DEFAULT ('') FOR [NrPos]; - - -GO -PRINT N'Creating DF_ProductionLog_okPr...'; - - -GO -ALTER TABLE [dbo].[ProductionLog] - ADD CONSTRAINT [DF_ProductionLog_okPr] DEFAULT ((1)) FOR [okPr]; - - -GO -PRINT N'Creating DF_ProductionLog_okQM...'; - - -GO -ALTER TABLE [dbo].[ProductionLog] - ADD CONSTRAINT [DF_ProductionLog_okQM] DEFAULT ((1)) FOR [okQM]; - - -GO -PRINT N'Creating DF_ProductionLog_okSc...'; - - -GO -ALTER TABLE [dbo].[ProductionLog] - ADD CONSTRAINT [DF_ProductionLog_okSc] DEFAULT ((1)) FOR [okSc]; - - -GO -PRINT N'Creating DF_ProductionLog_okDi...'; - - -GO -ALTER TABLE [dbo].[ProductionLog] - ADD CONSTRAINT [DF_ProductionLog_okDi] DEFAULT ((1)) FOR [okDi]; - - -GO -PRINT N'Creating DF_QuoteFull_Q_QuoteType...'; - - -GO -ALTER TABLE [dbo].[QuoteFull_Q] - ADD CONSTRAINT [DF_QuoteFull_Q_QuoteType] DEFAULT ('Q') FOR [QuoteType]; - - -GO -PRINT N'Creating DF_QuoteFull_Q_IdxQState...'; - - -GO -ALTER TABLE [dbo].[QuoteFull_Q] - ADD CONSTRAINT [DF_QuoteFull_Q_IdxQState] DEFAULT ((0)) FOR [IdxQState]; - - -GO -PRINT N'Creating DF_QuoteFull_Q_TranspZone...'; - - -GO -ALTER TABLE [dbo].[QuoteFull_Q] - ADD CONSTRAINT [DF_QuoteFull_Q_TranspZone] DEFAULT ('') FOR [TranspZone]; - - -GO -PRINT N'Creating DF_QuoteFull_Q_PriceOff...'; - - -GO -ALTER TABLE [dbo].[QuoteFull_Q] - ADD CONSTRAINT [DF_QuoteFull_Q_PriceOff] DEFAULT ((0)) FOR [PriceOff]; - - -GO -PRINT N'Creating DF_QuoteFull_Q_DiamDies...'; - - -GO -ALTER TABLE [dbo].[QuoteFull_Q] - ADD CONSTRAINT [DF_QuoteFull_Q_DiamDies] DEFAULT ((0)) FOR [DiamDies]; - - -GO -PRINT N'Creating DF_QuoteFull_Q_DiesPrice...'; - - -GO -ALTER TABLE [dbo].[QuoteFull_Q] - ADD CONSTRAINT [DF_QuoteFull_Q_DiesPrice] DEFAULT ((0)) FOR [DiesPrice]; - - -GO -PRINT N'Creating DF_QuoteFull_Q_DiesExpLife...'; - - -GO -ALTER TABLE [dbo].[QuoteFull_Q] - ADD CONSTRAINT [DF_QuoteFull_Q_DiesExpLife] DEFAULT ((0)) FOR [DiesExpLife]; - - -GO -PRINT N'Creating DF_QuoteFull_Q_DiesByClass...'; - - -GO -ALTER TABLE [dbo].[QuoteFull_Q] - ADD CONSTRAINT [DF_QuoteFull_Q_DiesByClass] DEFAULT ((0)) FOR [DiesByClass]; - - -GO -PRINT N'Creating DF_QuoteFull_Q_valid...'; - - -GO -ALTER TABLE [dbo].[QuoteFull_Q] - ADD CONSTRAINT [DF_QuoteFull_Q_valid] DEFAULT ((1)) FOR [valid]; - - -GO -PRINT N'Creating DF_QuoteFull_Q_errorScore...'; - - -GO -ALTER TABLE [dbo].[QuoteFull_Q] - ADD CONSTRAINT [DF_QuoteFull_Q_errorScore] DEFAULT ((0)) FOR [errorScore]; - - -GO -PRINT N'Creating DF_QuoteList_QuoteType...'; - - -GO -ALTER TABLE [dbo].[QuoteList] - ADD CONSTRAINT [DF_QuoteList_QuoteType] DEFAULT ('Q') FOR [QuoteType]; - - -GO -PRINT N'Creating DF_QuoteList_QuoteRev...'; - - -GO -ALTER TABLE [dbo].[QuoteList] - ADD CONSTRAINT [DF_QuoteList_QuoteRev] DEFAULT ((0)) FOR [QuoteRev]; - - -GO -PRINT N'Creating DF_QuoteList_State...'; - - -GO -ALTER TABLE [dbo].[QuoteList] - ADD CONSTRAINT [DF_QuoteList_State] DEFAULT ((0)) FOR [IdxQState]; - - -GO -PRINT N'Creating DF_QuoteList_CodItem...'; - - -GO -ALTER TABLE [dbo].[QuoteList] - ADD CONSTRAINT [DF_QuoteList_CodItem] DEFAULT ('') FOR [CodItem]; - - -GO -PRINT N'Creating DF_QuoteList_CodItemGroup...'; - - -GO -ALTER TABLE [dbo].[QuoteList] - ADD CONSTRAINT [DF_QuoteList_CodItemGroup] DEFAULT ('') FOR [CodItemGroup]; - - -GO -PRINT N'Creating DF_QuoteList_UnitWeight...'; - - -GO -ALTER TABLE [dbo].[QuoteList] - ADD CONSTRAINT [DF_QuoteList_UnitWeight] DEFAULT ((0)) FOR [UnitWeight]; - - -GO -PRINT N'Creating DF_QuoteList_BathQty...'; - - -GO -ALTER TABLE [dbo].[QuoteList] - ADD CONSTRAINT [DF_QuoteList_BathQty] DEFAULT ((0)) FOR [BatchQty]; - - -GO -PRINT N'Creating DF_QuoteList_Note...'; - - -GO -ALTER TABLE [dbo].[QuoteList] - ADD CONSTRAINT [DF_QuoteList_Note] DEFAULT ('') FOR [Note]; - - -GO -PRINT N'Creating DF_QuoteList_OrdPrice1...'; - - -GO -ALTER TABLE [dbo].[QuoteList] - ADD CONSTRAINT [DF_QuoteList_OrdPrice1] DEFAULT ((0)) FOR [PriceOff]; - - -GO -PRINT N'Creating DF_QuoteList_OrdNum...'; - - -GO -ALTER TABLE [dbo].[QuoteList] - ADD CONSTRAINT [DF_QuoteList_OrdNum] DEFAULT ((0)) FOR [OrdNum]; - - -GO -PRINT N'Creating DF_QuoteList_OrdRow...'; - - -GO -ALTER TABLE [dbo].[QuoteList] - ADD CONSTRAINT [DF_QuoteList_OrdRow] DEFAULT ((0)) FOR [OrdRow]; - - -GO -PRINT N'Creating DF_QuoteList_PriceOff1...'; - - -GO -ALTER TABLE [dbo].[QuoteList] - ADD CONSTRAINT [DF_QuoteList_PriceOff1] DEFAULT ((0)) FOR [OrdPrice]; - - -GO -PRINT N'Creating DF_QuoteList_OrderQty...'; - - -GO -ALTER TABLE [dbo].[QuoteList] - ADD CONSTRAINT [DF_QuoteList_OrderQty] DEFAULT ((0)) FOR [OrdQty]; - - -GO -PRINT N'Creating DF_QuoteList_valid...'; - - -GO -ALTER TABLE [dbo].[QuoteList] - ADD CONSTRAINT [DF_QuoteList_valid] DEFAULT ((1)) FOR [valid]; - - -GO -PRINT N'Creating DF_QuoteList_errorScore...'; - - -GO -ALTER TABLE [dbo].[QuoteList] - ADD CONSTRAINT [DF_QuoteList_errorScore] DEFAULT ((0)) FOR [errorScore]; - - -GO -PRINT N'Creating DF_QuoteList_UserCreaz...'; - - -GO -ALTER TABLE [dbo].[QuoteList] - ADD CONSTRAINT [DF_QuoteList_UserCreaz] DEFAULT ('') FOR [UserCreaz]; - - -GO -PRINT N'Creating DF_QuoteList_DataCreaz...'; - - -GO -ALTER TABLE [dbo].[QuoteList] - ADD CONSTRAINT [DF_QuoteList_DataCreaz] DEFAULT (getdate()) FOR [DataCreaz]; - - -GO -PRINT N'Creating DF_QuoteList_UserMod...'; - - -GO -ALTER TABLE [dbo].[QuoteList] - ADD CONSTRAINT [DF_QuoteList_UserMod] DEFAULT ('') FOR [UserMod]; - - -GO -PRINT N'Creating DF_QuoteList_DataMod...'; - - -GO -ALTER TABLE [dbo].[QuoteList] - ADD CONSTRAINT [DF_QuoteList_DataMod] DEFAULT (getdate()) FOR [DataMod]; - - -GO -PRINT N'Creating DF_QuoteParam_QuoteType...'; +PRINT N'Creating [dbo].[DF_QuoteParam_QuoteType]...'; GO @@ -2918,7 +2000,7 @@ ALTER TABLE [dbo].[QuoteParam] GO -PRINT N'Creating DF_QuoteParam_QuoteRev...'; +PRINT N'Creating [dbo].[DF_QuoteParam_QuoteRev]...'; GO @@ -2927,7 +2009,7 @@ ALTER TABLE [dbo].[QuoteParam] GO -PRINT N'Creating DF_QuoteParam_ProcessNum...'; +PRINT N'Creating [dbo].[DF_QuoteParam_ProcessNum]...'; GO @@ -2936,7 +2018,7 @@ ALTER TABLE [dbo].[QuoteParam] GO -PRINT N'Creating DF_QuoteParam_Parameter...'; +PRINT N'Creating [dbo].[DF_QuoteParam_Parameter]...'; GO @@ -2945,7 +2027,205 @@ ALTER TABLE [dbo].[QuoteParam] GO -PRINT N'Creating DF_QuoteWorkInt_QuoteType...'; +PRINT N'Creating [dbo].[DF_QuoteFull_Q_QuoteType]...'; + + +GO +ALTER TABLE [dbo].[QuoteFull_Q] + ADD CONSTRAINT [DF_QuoteFull_Q_QuoteType] DEFAULT ('Q') FOR [QuoteType]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteFull_Q_IdxQState]...'; + + +GO +ALTER TABLE [dbo].[QuoteFull_Q] + ADD CONSTRAINT [DF_QuoteFull_Q_IdxQState] DEFAULT ((0)) FOR [IdxQState]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteFull_Q_TranspZone]...'; + + +GO +ALTER TABLE [dbo].[QuoteFull_Q] + ADD CONSTRAINT [DF_QuoteFull_Q_TranspZone] DEFAULT ('') FOR [TranspZone]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteFull_Q_PriceOff]...'; + + +GO +ALTER TABLE [dbo].[QuoteFull_Q] + ADD CONSTRAINT [DF_QuoteFull_Q_PriceOff] DEFAULT ((0)) FOR [PriceOff]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteFull_Q_DiamDies]...'; + + +GO +ALTER TABLE [dbo].[QuoteFull_Q] + ADD CONSTRAINT [DF_QuoteFull_Q_DiamDies] DEFAULT ((0)) FOR [DiamDies]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteFull_Q_DiesPrice]...'; + + +GO +ALTER TABLE [dbo].[QuoteFull_Q] + ADD CONSTRAINT [DF_QuoteFull_Q_DiesPrice] DEFAULT ((0)) FOR [DiesPrice]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteFull_Q_DiesExpLife]...'; + + +GO +ALTER TABLE [dbo].[QuoteFull_Q] + ADD CONSTRAINT [DF_QuoteFull_Q_DiesExpLife] DEFAULT ((0)) FOR [DiesExpLife]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteFull_Q_DiesByClass]...'; + + +GO +ALTER TABLE [dbo].[QuoteFull_Q] + ADD CONSTRAINT [DF_QuoteFull_Q_DiesByClass] DEFAULT ((0)) FOR [DiesByClass]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteFull_Q_valid]...'; + + +GO +ALTER TABLE [dbo].[QuoteFull_Q] + ADD CONSTRAINT [DF_QuoteFull_Q_valid] DEFAULT ((1)) FOR [valid]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteFull_Q_errorScore]...'; + + +GO +ALTER TABLE [dbo].[QuoteFull_Q] + ADD CONSTRAINT [DF_QuoteFull_Q_errorScore] DEFAULT ((0)) FOR [errorScore]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteExtra_QuoteType]...'; + + +GO +ALTER TABLE [dbo].[QuoteOC] + ADD CONSTRAINT [DF_QuoteExtra_QuoteType] DEFAULT ('Q') FOR [QuoteType]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteExtra_QuoteRev]...'; + + +GO +ALTER TABLE [dbo].[QuoteOC] + ADD CONSTRAINT [DF_QuoteExtra_QuoteRev] DEFAULT ((0)) FOR [QuoteRev]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteExtra_ResType]...'; + + +GO +ALTER TABLE [dbo].[QuoteOC] + ADD CONSTRAINT [DF_QuoteExtra_ResType] DEFAULT ((0)) FOR [ProcessNum]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteExtra_Class01]...'; + + +GO +ALTER TABLE [dbo].[QuoteOC] + ADD CONSTRAINT [DF_QuoteExtra_Class01] DEFAULT ('') FOR [Class01]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteExtra_Class02]...'; + + +GO +ALTER TABLE [dbo].[QuoteOC] + ADD CONSTRAINT [DF_QuoteExtra_Class02] DEFAULT ('') FOR [Class02]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteExtra_Class03]...'; + + +GO +ALTER TABLE [dbo].[QuoteOC] + ADD CONSTRAINT [DF_QuoteExtra_Class03] DEFAULT ('') FOR [Class03]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteExtra_Class04]...'; + + +GO +ALTER TABLE [dbo].[QuoteOC] + ADD CONSTRAINT [DF_QuoteExtra_Class04] DEFAULT ('') FOR [Class04]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteExtra_Class05]...'; + + +GO +ALTER TABLE [dbo].[QuoteOC] + ADD CONSTRAINT [DF_QuoteExtra_Class05] DEFAULT ('') FOR [Class05]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteExtra_TotQty]...'; + + +GO +ALTER TABLE [dbo].[QuoteOC] + ADD CONSTRAINT [DF_QuoteExtra_TotQty] DEFAULT ((1)) FOR [TotQty]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteExtra_TotCost]...'; + + +GO +ALTER TABLE [dbo].[QuoteOC] + ADD CONSTRAINT [DF_QuoteExtra_TotCost] DEFAULT ((0)) FOR [TotCost]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteExtra_Quota]...'; + + +GO +ALTER TABLE [dbo].[QuoteOC] + ADD CONSTRAINT [DF_QuoteExtra_Quota] DEFAULT ((1)) FOR [Quota]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteOC_valid]...'; + + +GO +ALTER TABLE [dbo].[QuoteOC] + ADD CONSTRAINT [DF_QuoteOC_valid] DEFAULT ((1)) FOR [valid]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteWorkInt_QuoteType]...'; GO @@ -2954,7 +2234,7 @@ ALTER TABLE [dbo].[QuoteWorkInt] GO -PRINT N'Creating DF_QuoteWorkInt_QuoteRev...'; +PRINT N'Creating [dbo].[DF_QuoteWorkInt_QuoteRev]...'; GO @@ -2963,7 +2243,7 @@ ALTER TABLE [dbo].[QuoteWorkInt] GO -PRINT N'Creating DF_QuoteWorkInt_WorkType...'; +PRINT N'Creating [dbo].[DF_QuoteWorkInt_WorkType]...'; GO @@ -2972,7 +2252,7 @@ ALTER TABLE [dbo].[QuoteWorkInt] GO -PRINT N'Creating DF_QuoteWorkInt_Prod_LUK...'; +PRINT N'Creating [dbo].[DF_QuoteWorkInt_Prod_LUK]...'; GO @@ -2981,7 +2261,7 @@ ALTER TABLE [dbo].[QuoteWorkInt] GO -PRINT N'Creating DF_QuoteWorkInt_Class011...'; +PRINT N'Creating [dbo].[DF_QuoteWorkInt_Class011]...'; GO @@ -2990,7 +2270,7 @@ ALTER TABLE [dbo].[QuoteWorkInt] GO -PRINT N'Creating DF_QuoteWorkInt_Class021...'; +PRINT N'Creating [dbo].[DF_QuoteWorkInt_Class021]...'; GO @@ -2999,7 +2279,7 @@ ALTER TABLE [dbo].[QuoteWorkInt] GO -PRINT N'Creating DF_QuoteWorkInt_Class031...'; +PRINT N'Creating [dbo].[DF_QuoteWorkInt_Class031]...'; GO @@ -3008,7 +2288,7 @@ ALTER TABLE [dbo].[QuoteWorkInt] GO -PRINT N'Creating DF_QuoteWorkInt_Class032...'; +PRINT N'Creating [dbo].[DF_QuoteWorkInt_Class032]...'; GO @@ -3017,7 +2297,7 @@ ALTER TABLE [dbo].[QuoteWorkInt] GO -PRINT N'Creating DF_QuoteWorkInt_NetProd...'; +PRINT N'Creating [dbo].[DF_QuoteWorkInt_NetProd]...'; GO @@ -3026,7 +2306,7 @@ ALTER TABLE [dbo].[QuoteWorkInt] GO -PRINT N'Creating DF_QuoteWorkInt_TSR...'; +PRINT N'Creating [dbo].[DF_QuoteWorkInt_TSR]...'; GO @@ -3035,7 +2315,7 @@ ALTER TABLE [dbo].[QuoteWorkInt] GO -PRINT N'Creating DF_QuoteWorkInt_CSR...'; +PRINT N'Creating [dbo].[DF_QuoteWorkInt_CSR]...'; GO @@ -3044,7 +2324,7 @@ ALTER TABLE [dbo].[QuoteWorkInt] GO -PRINT N'Creating DF_QuoteWorkInt_CSR1...'; +PRINT N'Creating [dbo].[DF_QuoteWorkInt_CSR1]...'; GO @@ -3053,7 +2333,7 @@ ALTER TABLE [dbo].[QuoteWorkInt] GO -PRINT N'Creating DF_QuoteWorkInt_RUFG...'; +PRINT N'Creating [dbo].[DF_QuoteWorkInt_RUFG]...'; GO @@ -3062,7 +2342,7 @@ ALTER TABLE [dbo].[QuoteWorkInt] GO -PRINT N'Creating DF_QuoteWorkInt_RCFG...'; +PRINT N'Creating [dbo].[DF_QuoteWorkInt_RCFG]...'; GO @@ -3071,7 +2351,7 @@ ALTER TABLE [dbo].[QuoteWorkInt] GO -PRINT N'Creating DF_QuoteWorkInt_VC4UG1...'; +PRINT N'Creating [dbo].[DF_QuoteWorkInt_VC4UG1]...'; GO @@ -3080,7 +2360,7 @@ ALTER TABLE [dbo].[QuoteWorkInt] GO -PRINT N'Creating DF_QuoteWorkInt_VC4UG1_1...'; +PRINT N'Creating [dbo].[DF_QuoteWorkInt_VC4UG1_1]...'; GO @@ -3089,7 +2369,7 @@ ALTER TABLE [dbo].[QuoteWorkInt] GO -PRINT N'Creating DF_QuoteWorkInt_valid...'; +PRINT N'Creating [dbo].[DF_QuoteWorkInt_valid]...'; GO @@ -3098,7 +2378,700 @@ ALTER TABLE [dbo].[QuoteWorkInt] GO -PRINT N'Creating DF_RawMatDet_ProcCost...'; +PRINT N'Creating [dbo].[DF_QuoteWorkExt_QuoteType]...'; + + +GO +ALTER TABLE [dbo].[QuoteWorkExt] + ADD CONSTRAINT [DF_QuoteWorkExt_QuoteType] DEFAULT ('Q') FOR [QuoteType]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteWorkExt_QuoteRev]...'; + + +GO +ALTER TABLE [dbo].[QuoteWorkExt] + ADD CONSTRAINT [DF_QuoteWorkExt_QuoteRev] DEFAULT ((0)) FOR [QuoteRev]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteWorkExt_FC4UG]...'; + + +GO +ALTER TABLE [dbo].[QuoteWorkExt] + ADD CONSTRAINT [DF_QuoteWorkExt_FC4UG] DEFAULT ((0)) FOR [EWC4UG]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteWorkExt_EWC4UG1]...'; + + +GO +ALTER TABLE [dbo].[QuoteWorkExt] + ADD CONSTRAINT [DF_QuoteWorkExt_EWC4UG1] DEFAULT ((0)) FOR [UM]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteWorkExt_valid]...'; + + +GO +ALTER TABLE [dbo].[QuoteWorkExt] + ADD CONSTRAINT [DF_QuoteWorkExt_valid] DEFAULT ((1)) FOR [valid]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteList_QuoteType]...'; + + +GO +ALTER TABLE [dbo].[QuoteList] + ADD CONSTRAINT [DF_QuoteList_QuoteType] DEFAULT ('Q') FOR [QuoteType]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteList_QuoteRev]...'; + + +GO +ALTER TABLE [dbo].[QuoteList] + ADD CONSTRAINT [DF_QuoteList_QuoteRev] DEFAULT ((0)) FOR [QuoteRev]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteList_State]...'; + + +GO +ALTER TABLE [dbo].[QuoteList] + ADD CONSTRAINT [DF_QuoteList_State] DEFAULT ((0)) FOR [IdxQState]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteList_CodItem]...'; + + +GO +ALTER TABLE [dbo].[QuoteList] + ADD CONSTRAINT [DF_QuoteList_CodItem] DEFAULT ('') FOR [CodItem]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteList_CodItemGroup]...'; + + +GO +ALTER TABLE [dbo].[QuoteList] + ADD CONSTRAINT [DF_QuoteList_CodItemGroup] DEFAULT ('') FOR [CodItemGroup]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteList_UnitWeight]...'; + + +GO +ALTER TABLE [dbo].[QuoteList] + ADD CONSTRAINT [DF_QuoteList_UnitWeight] DEFAULT ((0)) FOR [UnitWeight]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteList_BathQty]...'; + + +GO +ALTER TABLE [dbo].[QuoteList] + ADD CONSTRAINT [DF_QuoteList_BathQty] DEFAULT ((0)) FOR [BatchQty]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteList_Note]...'; + + +GO +ALTER TABLE [dbo].[QuoteList] + ADD CONSTRAINT [DF_QuoteList_Note] DEFAULT ('') FOR [Note]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteList_OrdPrice1]...'; + + +GO +ALTER TABLE [dbo].[QuoteList] + ADD CONSTRAINT [DF_QuoteList_OrdPrice1] DEFAULT ((0)) FOR [PriceOff]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteList_OrdNum]...'; + + +GO +ALTER TABLE [dbo].[QuoteList] + ADD CONSTRAINT [DF_QuoteList_OrdNum] DEFAULT ((0)) FOR [OrdNum]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteList_OrdRow]...'; + + +GO +ALTER TABLE [dbo].[QuoteList] + ADD CONSTRAINT [DF_QuoteList_OrdRow] DEFAULT ((0)) FOR [OrdRow]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteList_PriceOff1]...'; + + +GO +ALTER TABLE [dbo].[QuoteList] + ADD CONSTRAINT [DF_QuoteList_PriceOff1] DEFAULT ((0)) FOR [OrdPrice]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteList_OrderQty]...'; + + +GO +ALTER TABLE [dbo].[QuoteList] + ADD CONSTRAINT [DF_QuoteList_OrderQty] DEFAULT ((0)) FOR [OrdQty]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteList_valid]...'; + + +GO +ALTER TABLE [dbo].[QuoteList] + ADD CONSTRAINT [DF_QuoteList_valid] DEFAULT ((1)) FOR [valid]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteList_errorScore]...'; + + +GO +ALTER TABLE [dbo].[QuoteList] + ADD CONSTRAINT [DF_QuoteList_errorScore] DEFAULT ((0)) FOR [errorScore]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteList_UserCreaz]...'; + + +GO +ALTER TABLE [dbo].[QuoteList] + ADD CONSTRAINT [DF_QuoteList_UserCreaz] DEFAULT ('') FOR [UserCreaz]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteList_DataCreaz]...'; + + +GO +ALTER TABLE [dbo].[QuoteList] + ADD CONSTRAINT [DF_QuoteList_DataCreaz] DEFAULT (getdate()) FOR [DataCreaz]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteList_UserMod]...'; + + +GO +ALTER TABLE [dbo].[QuoteList] + ADD CONSTRAINT [DF_QuoteList_UserMod] DEFAULT ('') FOR [UserMod]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteList_DataMod]...'; + + +GO +ALTER TABLE [dbo].[QuoteList] + ADD CONSTRAINT [DF_QuoteList_DataMod] DEFAULT (getdate()) FOR [DataMod]; + + +GO +PRINT N'Creating [dbo].[DF_Package2Item_TotQty]...'; + + +GO +ALTER TABLE [dbo].[Package2Item] + ADD CONSTRAINT [DF_Package2Item_TotQty] DEFAULT ((0)) FOR [TotQta]; + + +GO +PRINT N'Creating [dbo].[DF_Package2Item_Weight]...'; + + +GO +ALTER TABLE [dbo].[Package2Item] + ADD CONSTRAINT [DF_Package2Item_Weight] DEFAULT ((0)) FOR [Weight]; + + +GO +PRINT N'Creating [dbo].[DF_Package2Item_Tare]...'; + + +GO +ALTER TABLE [dbo].[Package2Item] + ADD CONSTRAINT [DF_Package2Item_Tare] DEFAULT ((0)) FOR [Tare]; + + +GO +PRINT N'Creating [dbo].[DF_Package2Item_NumImb]...'; + + +GO +ALTER TABLE [dbo].[Package2Item] + ADD CONSTRAINT [DF_Package2Item_NumImb] DEFAULT ((0)) FOR [NumImb]; + + +GO +PRINT N'Creating [dbo].[DF_Package2Item_Durata]...'; + + +GO +ALTER TABLE [dbo].[Package2Item] + ADD CONSTRAINT [DF_Package2Item_Durata] DEFAULT ((0)) FOR [Durata]; + + +GO +PRINT N'Creating [dbo].[DF_ProductionLog_NrPos]...'; + + +GO +ALTER TABLE [dbo].[ProductionLog] + ADD CONSTRAINT [DF_ProductionLog_NrPos] DEFAULT ('') FOR [NrPos]; + + +GO +PRINT N'Creating [dbo].[DF_ProductionLog_okPr]...'; + + +GO +ALTER TABLE [dbo].[ProductionLog] + ADD CONSTRAINT [DF_ProductionLog_okPr] DEFAULT ((1)) FOR [okPr]; + + +GO +PRINT N'Creating [dbo].[DF_ProductionLog_okQM]...'; + + +GO +ALTER TABLE [dbo].[ProductionLog] + ADD CONSTRAINT [DF_ProductionLog_okQM] DEFAULT ((1)) FOR [okQM]; + + +GO +PRINT N'Creating [dbo].[DF_ProductionLog_okSc]...'; + + +GO +ALTER TABLE [dbo].[ProductionLog] + ADD CONSTRAINT [DF_ProductionLog_okSc] DEFAULT ((1)) FOR [okSc]; + + +GO +PRINT N'Creating [dbo].[DF_ProductionLog_okDi]...'; + + +GO +ALTER TABLE [dbo].[ProductionLog] + ADD CONSTRAINT [DF_ProductionLog_okDi] DEFAULT ((1)) FOR [okDi]; + + +GO +PRINT N'Creating [dbo].[DF_Package2ItemClient_TotQty]...'; + + +GO +ALTER TABLE [dbo].[Package2ItemClient] + ADD CONSTRAINT [DF_Package2ItemClient_TotQty] DEFAULT ((0)) FOR [TotQta]; + + +GO +PRINT N'Creating [dbo].[DF_Package2ItemClient_Weight]...'; + + +GO +ALTER TABLE [dbo].[Package2ItemClient] + ADD CONSTRAINT [DF_Package2ItemClient_Weight] DEFAULT ((0)) FOR [Weight]; + + +GO +PRINT N'Creating [dbo].[DF_Package2ItemClient_Tare]...'; + + +GO +ALTER TABLE [dbo].[Package2ItemClient] + ADD CONSTRAINT [DF_Package2ItemClient_Tare] DEFAULT ((0)) FOR [Tare]; + + +GO +PRINT N'Creating [dbo].[DF_Package2ItemClient_NumImb]...'; + + +GO +ALTER TABLE [dbo].[Package2ItemClient] + ADD CONSTRAINT [DF_Package2ItemClient_NumImb] DEFAULT ((0)) FOR [NumImb]; + + +GO +PRINT N'Creating [dbo].[DF_Package2ItemClient_Durata]...'; + + +GO +ALTER TABLE [dbo].[Package2ItemClient] + ADD CONSTRAINT [DF_Package2ItemClient_Durata] DEFAULT ((0)) FOR [Durata]; + + +GO +PRINT N'Creating [dbo].[DF_TabImbArt_NumImb]...'; + + +GO +ALTER TABLE [dbo].[TabImbArt] + ADD CONSTRAINT [DF_TabImbArt_NumImb] DEFAULT ((0)) FOR [NumImb]; + + +GO +PRINT N'Creating [dbo].[DF_TabImbArt_TotOut]...'; + + +GO +ALTER TABLE [dbo].[TabImbArt] + ADD CONSTRAINT [DF_TabImbArt_TotOut] DEFAULT ((0)) FOR [TotOut]; + + +GO +PRINT N'Creating [dbo].[DF_TabImbArt_Durata]...'; + + +GO +ALTER TABLE [dbo].[TabImbArt] + ADD CONSTRAINT [DF_TabImbArt_Durata] DEFAULT ((0)) FOR [Durata]; + + +GO +PRINT N'Creating [dbo].[DF_PlantsDet_OH]...'; + + +GO +ALTER TABLE [dbo].[PlantsDet] + ADD CONSTRAINT [DF_PlantsDet_OH] DEFAULT ((1)) FOR [Charge]; + + +GO +PRINT N'Creating [dbo].[DF_RevHistory_RevType]...'; + + +GO +ALTER TABLE [dbo].[RevHistory] + ADD CONSTRAINT [DF_RevHistory_RevType] DEFAULT (N'P') FOR [RevType]; + + +GO +PRINT N'Creating [dbo].[DF_RevHistory_RevNum]...'; + + +GO +ALTER TABLE [dbo].[RevHistory] + ADD CONSTRAINT [DF_RevHistory_RevNum] DEFAULT ((0)) FOR [RevNum]; + + +GO +PRINT N'Creating [dbo].[DF_RevHistory_Description]...'; + + +GO +ALTER TABLE [dbo].[RevHistory] + ADD CONSTRAINT [DF_RevHistory_Description] DEFAULT ('') FOR [Description]; + + +GO +PRINT N'Creating [dbo].[DF_DiesGroupDet_ExpLife]...'; + + +GO +ALTER TABLE [dbo].[DiesGroupDet] + ADD CONSTRAINT [DF_DiesGroupDet_ExpLife] DEFAULT ((1)) FOR [ExpLife]; + + +GO +PRINT N'Creating [dbo].[DF_DiesGroupDet_EOLLife]...'; + + +GO +ALTER TABLE [dbo].[DiesGroupDet] + ADD CONSTRAINT [DF_DiesGroupDet_EOLLife] DEFAULT ((1)) FOR [EOLLife]; + + +GO +PRINT N'Creating [dbo].[DF_Cost2Plant_VC]...'; + + +GO +ALTER TABLE [dbo].[Cost2Plant] + ADD CONSTRAINT [DF_Cost2Plant_VC] DEFAULT ((0)) FOR [VC]; + + +GO +PRINT N'Creating [dbo].[DF_Cost2Plant_OH]...'; + + +GO +ALTER TABLE [dbo].[Cost2Plant] + ADD CONSTRAINT [DF_Cost2Plant_OH] DEFAULT ((0)) FOR [OH]; + + +GO +PRINT N'Creating [dbo].[DF_Cost2Plant_OH1]...'; + + +GO +ALTER TABLE [dbo].[Cost2Plant] + ADD CONSTRAINT [DF_Cost2Plant_OH1] DEFAULT ((0)) FOR [SC]; + + +GO +PRINT N'Creating [dbo].[DF_Cost2Plant_QuotaPlantStd]...'; + + +GO +ALTER TABLE [dbo].[Cost2Plant] + ADD CONSTRAINT [DF_Cost2Plant_QuotaPlantStd] DEFAULT ((0)) FOR [QuotaPlantStd]; + + +GO +PRINT N'Creating [dbo].[DF_Cost2Plant_QuotaManStd]...'; + + +GO +ALTER TABLE [dbo].[Cost2Plant] + ADD CONSTRAINT [DF_Cost2Plant_QuotaManStd] DEFAULT ((0)) FOR [QuotaManStd]; + + +GO +PRINT N'Creating [dbo].[DF_ClientDet_Class01]...'; + + +GO +ALTER TABLE [dbo].[ClientDet] + ADD CONSTRAINT [DF_ClientDet_Class01] DEFAULT ('') FOR [TranspZone]; + + +GO +PRINT N'Creating [dbo].[DF_AgentsDet_QuotaPerc]...'; + + +GO +ALTER TABLE [dbo].[AgentsDet] + ADD CONSTRAINT [DF_AgentsDet_QuotaPerc] DEFAULT ((0)) FOR [QuotaProvvAg]; + + +GO +PRINT N'Creating [dbo].[DF_Utilities_unitCost]...'; + + +GO +ALTER TABLE [dbo].[Utilities] + ADD CONSTRAINT [DF_Utilities_unitCost] DEFAULT ((0)) FOR [UnitCost]; + + +GO +PRINT N'Creating [dbo].[DF_DiesDet_Price]...'; + + +GO +ALTER TABLE [dbo].[DiesDet] + ADD CONSTRAINT [DF_DiesDet_Price] DEFAULT ((0)) FOR [Price]; + + +GO +PRINT N'Creating [dbo].[DF_DiesDet_Price1]...'; + + +GO +ALTER TABLE [dbo].[DiesDet] + ADD CONSTRAINT [DF_DiesDet_Price1] DEFAULT ((0)) FOR [TestCost]; + + +GO +PRINT N'Creating [dbo].[DF_Incoterms_HasTC]...'; + + +GO +ALTER TABLE [dbo].[Incoterms] + ADD CONSTRAINT [DF_Incoterms_HasTC] DEFAULT ((0)) FOR [HasTC]; + + +GO +PRINT N'Creating [dbo].[DF_Table_1_ClassCli01]...'; + + +GO +ALTER TABLE [dbo].[TranspCostDet] + ADD CONSTRAINT [DF_Table_1_ClassCli01] DEFAULT ('') FOR [TranspZone]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteRM_QuoteType]...'; + + +GO +ALTER TABLE [dbo].[QuoteRM] + ADD CONSTRAINT [DF_QuoteRM_QuoteType] DEFAULT ('Q') FOR [QuoteType]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteRM_QuoteRev]...'; + + +GO +ALTER TABLE [dbo].[QuoteRM] + ADD CONSTRAINT [DF_QuoteRM_QuoteRev] DEFAULT ((0)) FOR [QuoteRev]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteRM_RawMatCost]...'; + + +GO +ALTER TABLE [dbo].[QuoteRM] + ADD CONSTRAINT [DF_QuoteRM_RawMatCost] DEFAULT ((0)) FOR [RawMatCost]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteRM_RawMatExtraCost]...'; + + +GO +ALTER TABLE [dbo].[QuoteRM] + ADD CONSTRAINT [DF_QuoteRM_RawMatExtraCost] DEFAULT ((0)) FOR [RawMatExtraCost]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteRM_CodPackag]...'; + + +GO +ALTER TABLE [dbo].[QuoteRM] + ADD CONSTRAINT [DF_QuoteRM_CodPackag] DEFAULT ((0)) FOR [CodPackag]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteRM_ConvRatio]...'; + + +GO +ALTER TABLE [dbo].[QuoteRM] + ADD CONSTRAINT [DF_QuoteRM_ConvRatio] DEFAULT ((1)) FOR [FCR]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteRM_valid]...'; + + +GO +ALTER TABLE [dbo].[QuoteRM] + ADD CONSTRAINT [DF_QuoteRM_valid] DEFAULT ((1)) FOR [valid]; + + +GO +PRINT N'Creating [dbo].[DF_ItemDet_Class01]...'; + + +GO +ALTER TABLE [dbo].[ItemDet] + ADD CONSTRAINT [DF_ItemDet_Class01] DEFAULT ('') FOR [Class01]; + + +GO +PRINT N'Creating [dbo].[DF_ItemDet_Class02]...'; + + +GO +ALTER TABLE [dbo].[ItemDet] + ADD CONSTRAINT [DF_ItemDet_Class02] DEFAULT ('') FOR [Class02]; + + +GO +PRINT N'Creating [dbo].[DF_ItemDet_Class03]...'; + + +GO +ALTER TABLE [dbo].[ItemDet] + ADD CONSTRAINT [DF_ItemDet_Class03] DEFAULT ('') FOR [Class03]; + + +GO +PRINT N'Creating [dbo].[DF_ItemDet_Class04]...'; + + +GO +ALTER TABLE [dbo].[ItemDet] + ADD CONSTRAINT [DF_ItemDet_Class04] DEFAULT ('') FOR [Class04]; + + +GO +PRINT N'Creating [dbo].[DF_ItemDet_Class05]...'; + + +GO +ALTER TABLE [dbo].[ItemDet] + ADD CONSTRAINT [DF_ItemDet_Class05] DEFAULT ('') FOR [Class05]; + + +GO +PRINT N'Creating [dbo].[DF_Package2_TotQty]...'; + + +GO +ALTER TABLE [dbo].[Package2] + ADD CONSTRAINT [DF_Package2_TotQty] DEFAULT ((0)) FOR [TotQta]; + + +GO +PRINT N'Creating [dbo].[DF_Package2_Weight]...'; + + +GO +ALTER TABLE [dbo].[Package2] + ADD CONSTRAINT [DF_Package2_Weight] DEFAULT ((0)) FOR [Weight]; + + +GO +PRINT N'Creating [dbo].[DF_Package2_Tare]...'; + + +GO +ALTER TABLE [dbo].[Package2] + ADD CONSTRAINT [DF_Package2_Tare] DEFAULT ((0)) FOR [Tare]; + + +GO +PRINT N'Creating [dbo].[DF_Package2_NumImb]...'; + + +GO +ALTER TABLE [dbo].[Package2] + ADD CONSTRAINT [DF_Package2_NumImb] DEFAULT ((0)) FOR [NumImb]; + + +GO +PRINT N'Creating [dbo].[DF_Package2_Durata]...'; + + +GO +ALTER TABLE [dbo].[Package2] + ADD CONSTRAINT [DF_Package2_Durata] DEFAULT ((0)) FOR [Durata]; + + +GO +PRINT N'Creating [dbo].[DF_RawMatDet_ProcCost]...'; GO @@ -3107,7 +3080,7 @@ ALTER TABLE [dbo].[RawMatDet] GO -PRINT N'Creating DF_RawMatDet_ProcYield...'; +PRINT N'Creating [dbo].[DF_RawMatDet_ProcYield]...'; GO @@ -3116,7 +3089,7 @@ ALTER TABLE [dbo].[RawMatDet] GO -PRINT N'Creating DF_RawMatDet_CSR...'; +PRINT N'Creating [dbo].[DF_RawMatDet_CSR]...'; GO @@ -3125,7 +3098,7 @@ ALTER TABLE [dbo].[RawMatDet] GO -PRINT N'Creating DF_RawMatDet_SSR...'; +PRINT N'Creating [dbo].[DF_RawMatDet_SSR]...'; GO @@ -3134,7 +3107,7 @@ ALTER TABLE [dbo].[RawMatDet] GO -PRINT N'Creating DF_RawMatDet_SSVA...'; +PRINT N'Creating [dbo].[DF_RawMatDet_SSVA]...'; GO @@ -3143,7 +3116,7 @@ ALTER TABLE [dbo].[RawMatDet] GO -PRINT N'Creating DF_RawMatDet_SSVR...'; +PRINT N'Creating [dbo].[DF_RawMatDet_SSVR]...'; GO @@ -3152,7 +3125,7 @@ ALTER TABLE [dbo].[RawMatDet] GO -PRINT N'Creating DF_RawMatDet_ExtraMatCost...'; +PRINT N'Creating [dbo].[DF_RawMatDet_ExtraMatCost]...'; GO @@ -3161,7 +3134,7 @@ ALTER TABLE [dbo].[RawMatDet] GO -PRINT N'Creating DF_RawMatDet_ExtraServCost...'; +PRINT N'Creating [dbo].[DF_RawMatDet_ExtraServCost]...'; GO @@ -3170,286 +3143,34 @@ ALTER TABLE [dbo].[RawMatDet] GO -PRINT N'Creating DF_OrdersHist_OrdNum...'; +PRINT N'Creating [dbo].[DF_TabImbGrp_NumImb]...'; GO -ALTER TABLE [dbo].[OrdersHist] - ADD CONSTRAINT [DF_OrdersHist_OrdNum] DEFAULT ((0)) FOR [OrdNum]; +ALTER TABLE [dbo].[TabImbGrp] + ADD CONSTRAINT [DF_TabImbGrp_NumImb] DEFAULT ((0)) FOR [NumImb]; GO -PRINT N'Creating DF_OrdersHist_OrdRow...'; +PRINT N'Creating [dbo].[DF_TabImbGrp_TotOut]...'; GO -ALTER TABLE [dbo].[OrdersHist] - ADD CONSTRAINT [DF_OrdersHist_OrdRow] DEFAULT ((0)) FOR [OrdRow]; +ALTER TABLE [dbo].[TabImbGrp] + ADD CONSTRAINT [DF_TabImbGrp_TotOut] DEFAULT ((0)) FOR [TotOut]; GO -PRINT N'Creating DF_OrdersHist_OrdDate...'; +PRINT N'Creating [dbo].[DF_TabImbGrp_Durata]...'; GO -ALTER TABLE [dbo].[OrdersHist] - ADD CONSTRAINT [DF_OrdersHist_OrdDate] DEFAULT (getdate()) FOR [OrdDate]; +ALTER TABLE [dbo].[TabImbGrp] + ADD CONSTRAINT [DF_TabImbGrp_Durata] DEFAULT ((0)) FOR [Durata]; GO -PRINT N'Creating DF_OrdersHist_CodItem...'; - - -GO -ALTER TABLE [dbo].[OrdersHist] - ADD CONSTRAINT [DF_OrdersHist_CodItem] DEFAULT ('') FOR [CodItem]; - - -GO -PRINT N'Creating DF_OrdersHist_RawMatCost...'; - - -GO -ALTER TABLE [dbo].[OrdersHist] - ADD CONSTRAINT [DF_OrdersHist_RawMatCost] DEFAULT ((0)) FOR [RawMatCost]; - - -GO -PRINT N'Creating DF_OrdersHist_BatchQty...'; - - -GO -ALTER TABLE [dbo].[OrdersHist] - ADD CONSTRAINT [DF_OrdersHist_BatchQty] DEFAULT ((0)) FOR [BatchQty]; - - -GO -PRINT N'Creating DF_OrdersHist_OrdPrice...'; - - -GO -ALTER TABLE [dbo].[OrdersHist] - ADD CONSTRAINT [DF_OrdersHist_OrdPrice] DEFAULT ((0)) FOR [OrdPrice]; - - -GO -PRINT N'Creating DF_OrdersHist_QuoteType...'; - - -GO -ALTER TABLE [dbo].[OrdersHist] - ADD CONSTRAINT [DF_OrdersHist_QuoteType] DEFAULT ('R') FOR [QuoteType]; - - -GO -PRINT N'Creating DF_OrdersHist_CodQuote...'; - - -GO -ALTER TABLE [dbo].[OrdersHist] - ADD CONSTRAINT [DF_OrdersHist_CodQuote] DEFAULT ((0)) FOR [CodQuote]; - - -GO -PRINT N'Creating DF_OrdersHist_QuoteRev...'; - - -GO -ALTER TABLE [dbo].[OrdersHist] - ADD CONSTRAINT [DF_OrdersHist_QuoteRev] DEFAULT ((0)) FOR [QuoteRev]; - - -GO -PRINT N'Creating DF_OrdersHist_ProvvCost...'; - - -GO -ALTER TABLE [dbo].[OrdersHist] - ADD CONSTRAINT [DF_OrdersHist_ProvvCost] DEFAULT ((0)) FOR [ProvvCost]; - - -GO -PRINT N'Creating DF_PickList_lemma...'; - - -GO -ALTER TABLE [dbo].[PickList] - ADD CONSTRAINT [DF_PickList_lemma] DEFAULT ('') FOR [Lemma]; - - -GO -PRINT N'Creating DF_PickList_NumOrd...'; - - -GO -ALTER TABLE [dbo].[PickList] - ADD CONSTRAINT [DF_PickList_NumOrd] DEFAULT ((0)) FOR [NumOrd]; - - -GO -PRINT N'Creating DF_QuoteFull_R_QuoteType...'; - - -GO -ALTER TABLE [dbo].[QuoteFull_R] - ADD CONSTRAINT [DF_QuoteFull_R_QuoteType] DEFAULT ('Q') FOR [QuoteType]; - - -GO -PRINT N'Creating DF_QuoteFull_R_IdxQState...'; - - -GO -ALTER TABLE [dbo].[QuoteFull_R] - ADD CONSTRAINT [DF_QuoteFull_R_IdxQState] DEFAULT ((0)) FOR [IdxQState]; - - -GO -PRINT N'Creating DF_QuoteFull_R_TranspZone...'; - - -GO -ALTER TABLE [dbo].[QuoteFull_R] - ADD CONSTRAINT [DF_QuoteFull_R_TranspZone] DEFAULT ('') FOR [TranspZone]; - - -GO -PRINT N'Creating DF_QuoteFull_R_PriceOff...'; - - -GO -ALTER TABLE [dbo].[QuoteFull_R] - ADD CONSTRAINT [DF_QuoteFull_R_PriceOff] DEFAULT ((0)) FOR [PriceOff]; - - -GO -PRINT N'Creating DF_QuoteFull_R_DiamDies...'; - - -GO -ALTER TABLE [dbo].[QuoteFull_R] - ADD CONSTRAINT [DF_QuoteFull_R_DiamDies] DEFAULT ((0)) FOR [DiamDies]; - - -GO -PRINT N'Creating DF_QuoteFull_R_DiesPrice...'; - - -GO -ALTER TABLE [dbo].[QuoteFull_R] - ADD CONSTRAINT [DF_QuoteFull_R_DiesPrice] DEFAULT ((0)) FOR [DiesPrice]; - - -GO -PRINT N'Creating DF_QuoteFull_R_DiesExpLife...'; - - -GO -ALTER TABLE [dbo].[QuoteFull_R] - ADD CONSTRAINT [DF_QuoteFull_R_DiesExpLife] DEFAULT ((0)) FOR [DiesExpLife]; - - -GO -PRINT N'Creating DF_QuoteFull_R_DiesByClass...'; - - -GO -ALTER TABLE [dbo].[QuoteFull_R] - ADD CONSTRAINT [DF_QuoteFull_R_DiesByClass] DEFAULT ((0)) FOR [DiesByClass]; - - -GO -PRINT N'Creating DF_QuoteFull_R_valid...'; - - -GO -ALTER TABLE [dbo].[QuoteFull_R] - ADD CONSTRAINT [DF_QuoteFull_R_valid] DEFAULT ((1)) FOR [valid]; - - -GO -PRINT N'Creating DF_QuoteFull_R_errorScore...'; - - -GO -ALTER TABLE [dbo].[QuoteFull_R] - ADD CONSTRAINT [DF_QuoteFull_R_errorScore] DEFAULT ((0)) FOR [errorScore]; - - -GO -PRINT N'Creating DF_QuoteSimPar_QuoteType...'; - - -GO -ALTER TABLE [dbo].[QuoteSimPar] - ADD CONSTRAINT [DF_QuoteSimPar_QuoteType] DEFAULT ('Q') FOR [QuoteType]; - - -GO -PRINT N'Creating DF_QuoteSimPar_QuoteRev...'; - - -GO -ALTER TABLE [dbo].[QuoteSimPar] - ADD CONSTRAINT [DF_QuoteSimPar_QuoteRev] DEFAULT ((0)) FOR [QuoteRev]; - - -GO -PRINT N'Creating DF_QuoteSimPar_NomePar...'; - - -GO -ALTER TABLE [dbo].[QuoteSimPar] - ADD CONSTRAINT [DF_QuoteSimPar_NomePar] DEFAULT ('') FOR [NomePar]; - - -GO -PRINT N'Creating DF_QuoteSimPar_ValParStr...'; - - -GO -ALTER TABLE [dbo].[QuoteSimPar] - ADD CONSTRAINT [DF_QuoteSimPar_ValParStr] DEFAULT ('') FOR [ValPar]; - - -GO -PRINT N'Creating DF_Table1_Tabella...'; - - -GO -ALTER TABLE [dbo].[ReportPrintTicket] - ADD CONSTRAINT [DF_Table1_Tabella] DEFAULT ('') FOR [Report]; - - -GO -PRINT N'Creating DF_ReportPrintTicket_Chiave...'; - - -GO -ALTER TABLE [dbo].[ReportPrintTicket] - ADD CONSTRAINT [DF_ReportPrintTicket_Chiave] DEFAULT ('') FOR [Chiave]; - - -GO -PRINT N'Creating DF_ReportPrintTicket_UserReq...'; - - -GO -ALTER TABLE [dbo].[ReportPrintTicket] - ADD CONSTRAINT [DF_ReportPrintTicket_UserReq] DEFAULT ('') FOR [UserReq]; - - -GO -PRINT N'Creating DF_ReportPrintTicket_DataReq...'; - - -GO -ALTER TABLE [dbo].[ReportPrintTicket] - ADD CONSTRAINT [DF_ReportPrintTicket_DataReq] DEFAULT (getdate()) FOR [DataReq]; - - -GO -PRINT N'Creating DF_CostList_DataList...'; +PRINT N'Creating [dbo].[DF_CostList_DataList]...'; GO @@ -3458,7 +3179,7 @@ ALTER TABLE [dbo].[CostList] GO -PRINT N'Creating DF_CostList_QuoteType...'; +PRINT N'Creating [dbo].[DF_CostList_QuoteType]...'; GO @@ -3467,7 +3188,7 @@ ALTER TABLE [dbo].[CostList] GO -PRINT N'Creating DF_CostList_CodQuote...'; +PRINT N'Creating [dbo].[DF_CostList_CodQuote]...'; GO @@ -3476,7 +3197,7 @@ ALTER TABLE [dbo].[CostList] GO -PRINT N'Creating DF_CostList_QuoteRev...'; +PRINT N'Creating [dbo].[DF_CostList_QuoteRev]...'; GO @@ -3485,7 +3206,214 @@ ALTER TABLE [dbo].[CostList] GO -PRINT N'Creating DF_QuoteFull_S_QuoteType...'; +PRINT N'Creating [dbo].[DF_OrdersHist_OrdNum]...'; + + +GO +ALTER TABLE [dbo].[OrdersHist] + ADD CONSTRAINT [DF_OrdersHist_OrdNum] DEFAULT ((0)) FOR [OrdNum]; + + +GO +PRINT N'Creating [dbo].[DF_OrdersHist_OrdRow]...'; + + +GO +ALTER TABLE [dbo].[OrdersHist] + ADD CONSTRAINT [DF_OrdersHist_OrdRow] DEFAULT ((0)) FOR [OrdRow]; + + +GO +PRINT N'Creating [dbo].[DF_OrdersHist_OrdDate]...'; + + +GO +ALTER TABLE [dbo].[OrdersHist] + ADD CONSTRAINT [DF_OrdersHist_OrdDate] DEFAULT (getdate()) FOR [OrdDate]; + + +GO +PRINT N'Creating [dbo].[DF_OrdersHist_CodItem]...'; + + +GO +ALTER TABLE [dbo].[OrdersHist] + ADD CONSTRAINT [DF_OrdersHist_CodItem] DEFAULT ('') FOR [CodItem]; + + +GO +PRINT N'Creating [dbo].[DF_OrdersHist_RawMatCost]...'; + + +GO +ALTER TABLE [dbo].[OrdersHist] + ADD CONSTRAINT [DF_OrdersHist_RawMatCost] DEFAULT ((0)) FOR [RawMatCost]; + + +GO +PRINT N'Creating [dbo].[DF_OrdersHist_BatchQty]...'; + + +GO +ALTER TABLE [dbo].[OrdersHist] + ADD CONSTRAINT [DF_OrdersHist_BatchQty] DEFAULT ((0)) FOR [BatchQty]; + + +GO +PRINT N'Creating [dbo].[DF_OrdersHist_OrdPrice]...'; + + +GO +ALTER TABLE [dbo].[OrdersHist] + ADD CONSTRAINT [DF_OrdersHist_OrdPrice] DEFAULT ((0)) FOR [OrdPrice]; + + +GO +PRINT N'Creating [dbo].[DF_OrdersHist_QuoteType]...'; + + +GO +ALTER TABLE [dbo].[OrdersHist] + ADD CONSTRAINT [DF_OrdersHist_QuoteType] DEFAULT ('R') FOR [QuoteType]; + + +GO +PRINT N'Creating [dbo].[DF_OrdersHist_CodQuote]...'; + + +GO +ALTER TABLE [dbo].[OrdersHist] + ADD CONSTRAINT [DF_OrdersHist_CodQuote] DEFAULT ((0)) FOR [CodQuote]; + + +GO +PRINT N'Creating [dbo].[DF_OrdersHist_QuoteRev]...'; + + +GO +ALTER TABLE [dbo].[OrdersHist] + ADD CONSTRAINT [DF_OrdersHist_QuoteRev] DEFAULT ((0)) FOR [QuoteRev]; + + +GO +PRINT N'Creating [dbo].[DF_OrdersHist_ProvvCost]...'; + + +GO +ALTER TABLE [dbo].[OrdersHist] + ADD CONSTRAINT [DF_OrdersHist_ProvvCost] DEFAULT ((0)) FOR [ProvvCost]; + + +GO +PRINT N'Creating [dbo].[DF_PickList_lemma]...'; + + +GO +ALTER TABLE [dbo].[PickList] + ADD CONSTRAINT [DF_PickList_lemma] DEFAULT ('') FOR [Lemma]; + + +GO +PRINT N'Creating [dbo].[DF_PickList_NumOrd]...'; + + +GO +ALTER TABLE [dbo].[PickList] + ADD CONSTRAINT [DF_PickList_NumOrd] DEFAULT ((0)) FOR [NumOrd]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteFull_R_QuoteType]...'; + + +GO +ALTER TABLE [dbo].[QuoteFull_R] + ADD CONSTRAINT [DF_QuoteFull_R_QuoteType] DEFAULT ('Q') FOR [QuoteType]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteFull_R_IdxQState]...'; + + +GO +ALTER TABLE [dbo].[QuoteFull_R] + ADD CONSTRAINT [DF_QuoteFull_R_IdxQState] DEFAULT ((0)) FOR [IdxQState]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteFull_R_TranspZone]...'; + + +GO +ALTER TABLE [dbo].[QuoteFull_R] + ADD CONSTRAINT [DF_QuoteFull_R_TranspZone] DEFAULT ('') FOR [TranspZone]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteFull_R_PriceOff]...'; + + +GO +ALTER TABLE [dbo].[QuoteFull_R] + ADD CONSTRAINT [DF_QuoteFull_R_PriceOff] DEFAULT ((0)) FOR [PriceOff]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteFull_R_DiamDies]...'; + + +GO +ALTER TABLE [dbo].[QuoteFull_R] + ADD CONSTRAINT [DF_QuoteFull_R_DiamDies] DEFAULT ((0)) FOR [DiamDies]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteFull_R_DiesPrice]...'; + + +GO +ALTER TABLE [dbo].[QuoteFull_R] + ADD CONSTRAINT [DF_QuoteFull_R_DiesPrice] DEFAULT ((0)) FOR [DiesPrice]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteFull_R_DiesExpLife]...'; + + +GO +ALTER TABLE [dbo].[QuoteFull_R] + ADD CONSTRAINT [DF_QuoteFull_R_DiesExpLife] DEFAULT ((0)) FOR [DiesExpLife]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteFull_R_DiesByClass]...'; + + +GO +ALTER TABLE [dbo].[QuoteFull_R] + ADD CONSTRAINT [DF_QuoteFull_R_DiesByClass] DEFAULT ((0)) FOR [DiesByClass]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteFull_R_valid]...'; + + +GO +ALTER TABLE [dbo].[QuoteFull_R] + ADD CONSTRAINT [DF_QuoteFull_R_valid] DEFAULT ((1)) FOR [valid]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteFull_R_errorScore]...'; + + +GO +ALTER TABLE [dbo].[QuoteFull_R] + ADD CONSTRAINT [DF_QuoteFull_R_errorScore] DEFAULT ((0)) FOR [errorScore]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteFull_S_QuoteType]...'; GO @@ -3494,7 +3422,7 @@ ALTER TABLE [dbo].[QuoteFull_S] GO -PRINT N'Creating DF_QuoteFull_S_CodQuote...'; +PRINT N'Creating [dbo].[DF_QuoteFull_S_CodQuote]...'; GO @@ -3503,7 +3431,7 @@ ALTER TABLE [dbo].[QuoteFull_S] GO -PRINT N'Creating DF_QuoteFull_S_QuoteRev...'; +PRINT N'Creating [dbo].[DF_QuoteFull_S_QuoteRev]...'; GO @@ -3512,7 +3440,7 @@ ALTER TABLE [dbo].[QuoteFull_S] GO -PRINT N'Creating DF_QuoteFull_S_IdxQState...'; +PRINT N'Creating [dbo].[DF_QuoteFull_S_IdxQState]...'; GO @@ -3521,7 +3449,7 @@ ALTER TABLE [dbo].[QuoteFull_S] GO -PRINT N'Creating DF_QuoteFull_S_UnitWeight...'; +PRINT N'Creating [dbo].[DF_QuoteFull_S_UnitWeight]...'; GO @@ -3530,7 +3458,7 @@ ALTER TABLE [dbo].[QuoteFull_S] GO -PRINT N'Creating DF_QuoteFull_S_BatchQty...'; +PRINT N'Creating [dbo].[DF_QuoteFull_S_BatchQty]...'; GO @@ -3539,7 +3467,7 @@ ALTER TABLE [dbo].[QuoteFull_S] GO -PRINT N'Creating DF_QuoteFull_S_PriceOff...'; +PRINT N'Creating [dbo].[DF_QuoteFull_S_PriceOff]...'; GO @@ -3548,7 +3476,7 @@ ALTER TABLE [dbo].[QuoteFull_S] GO -PRINT N'Creating DF_QuoteFull_S_DiamDies...'; +PRINT N'Creating [dbo].[DF_QuoteFull_S_DiamDies]...'; GO @@ -3557,7 +3485,7 @@ ALTER TABLE [dbo].[QuoteFull_S] GO -PRINT N'Creating DF_QuoteFull_S_HoleNumDies...'; +PRINT N'Creating [dbo].[DF_QuoteFull_S_HoleNumDies]...'; GO @@ -3566,7 +3494,7 @@ ALTER TABLE [dbo].[QuoteFull_S] GO -PRINT N'Creating DF_QuoteFull_S_DiesPrice_avg...'; +PRINT N'Creating [dbo].[DF_QuoteFull_S_DiesPrice_avg]...'; GO @@ -3575,7 +3503,7 @@ ALTER TABLE [dbo].[QuoteFull_S] GO -PRINT N'Creating DF_QuoteFull_S_DiesPrice...'; +PRINT N'Creating [dbo].[DF_QuoteFull_S_DiesPrice]...'; GO @@ -3584,7 +3512,7 @@ ALTER TABLE [dbo].[QuoteFull_S] GO -PRINT N'Creating DF_QuoteFull_S_TestPrice...'; +PRINT N'Creating [dbo].[DF_QuoteFull_S_TestPrice]...'; GO @@ -3593,7 +3521,7 @@ ALTER TABLE [dbo].[QuoteFull_S] GO -PRINT N'Creating DF_QuoteFull_S_DiesFullCost...'; +PRINT N'Creating [dbo].[DF_QuoteFull_S_DiesFullCost]...'; GO @@ -3602,7 +3530,7 @@ ALTER TABLE [dbo].[QuoteFull_S] GO -PRINT N'Creating DF_QuoteFull_S_DiesPrice1...'; +PRINT N'Creating [dbo].[DF_QuoteFull_S_DiesPrice1]...'; GO @@ -3611,7 +3539,7 @@ ALTER TABLE [dbo].[QuoteFull_S] GO -PRINT N'Creating DF_QuoteFull_S_DiesExpLife...'; +PRINT N'Creating [dbo].[DF_QuoteFull_S_DiesExpLife]...'; GO @@ -3620,7 +3548,7 @@ ALTER TABLE [dbo].[QuoteFull_S] GO -PRINT N'Creating DF_QuoteFull_S_DiesEOLife...'; +PRINT N'Creating [dbo].[DF_QuoteFull_S_DiesEOLife]...'; GO @@ -3629,7 +3557,7 @@ ALTER TABLE [dbo].[QuoteFull_S] GO -PRINT N'Creating DF_QuoteFull_S_DiesTecLife...'; +PRINT N'Creating [dbo].[DF_QuoteFull_S_DiesTecLife]...'; GO @@ -3638,7 +3566,7 @@ ALTER TABLE [dbo].[QuoteFull_S] GO -PRINT N'Creating DF_QuoteFull_S_DiesCommLife1...'; +PRINT N'Creating [dbo].[DF_QuoteFull_S_DiesCommLife1]...'; GO @@ -3647,7 +3575,7 @@ ALTER TABLE [dbo].[QuoteFull_S] GO -PRINT N'Creating DF_QuoteFull_S_DiesTecLife1...'; +PRINT N'Creating [dbo].[DF_QuoteFull_S_DiesTecLife1]...'; GO @@ -3656,7 +3584,7 @@ ALTER TABLE [dbo].[QuoteFull_S] GO -PRINT N'Creating DF_QuoteFull_S_SalesPrevCost...'; +PRINT N'Creating [dbo].[DF_QuoteFull_S_SalesPrevCost]...'; GO @@ -3665,7 +3593,7 @@ ALTER TABLE [dbo].[QuoteFull_S] GO -PRINT N'Creating DF_QuoteFull_S_DiesFinCost...'; +PRINT N'Creating [dbo].[DF_QuoteFull_S_DiesFinCost]...'; GO @@ -3674,7 +3602,7 @@ ALTER TABLE [dbo].[QuoteFull_S] GO -PRINT N'Creating DF_QuoteFull_S_ClientQuoteReven...'; +PRINT N'Creating [dbo].[DF_QuoteFull_S_ClientQuoteReven]...'; GO @@ -3683,7 +3611,7 @@ ALTER TABLE [dbo].[QuoteFull_S] GO -PRINT N'Creating DF_QuoteFull_S_ExtraDiscountDies...'; +PRINT N'Creating [dbo].[DF_QuoteFull_S_ExtraDiscountDies]...'; GO @@ -3692,7 +3620,7 @@ ALTER TABLE [dbo].[QuoteFull_S] GO -PRINT N'Creating DF_QuoteFull_S_DiesByClass...'; +PRINT N'Creating [dbo].[DF_QuoteFull_S_DiesByClass]...'; GO @@ -3701,7 +3629,7 @@ ALTER TABLE [dbo].[QuoteFull_S] GO -PRINT N'Creating DF_QuoteFull_S_NumDiesInList...'; +PRINT N'Creating [dbo].[DF_QuoteFull_S_NumDiesInList]...'; GO @@ -3710,7 +3638,7 @@ ALTER TABLE [dbo].[QuoteFull_S] GO -PRINT N'Creating DF_QuoteFull_S_NumDiesExaust...'; +PRINT N'Creating [dbo].[DF_QuoteFull_S_NumDiesExaust]...'; GO @@ -3719,7 +3647,7 @@ ALTER TABLE [dbo].[QuoteFull_S] GO -PRINT N'Creating DF_QuoteFull_S_KgTeo...'; +PRINT N'Creating [dbo].[DF_QuoteFull_S_KgTeo]...'; GO @@ -3728,7 +3656,7 @@ ALTER TABLE [dbo].[QuoteFull_S] GO -PRINT N'Creating DF_QuoteFull_S_NumSMED...'; +PRINT N'Creating [dbo].[DF_QuoteFull_S_NumSMED]...'; GO @@ -3737,7 +3665,7 @@ ALTER TABLE [dbo].[QuoteFull_S] GO -PRINT N'Creating DF_QuoteFull_S_QuotaMan...'; +PRINT N'Creating [dbo].[DF_QuoteFull_S_QuotaMan]...'; GO @@ -3746,7 +3674,7 @@ ALTER TABLE [dbo].[QuoteFull_S] GO -PRINT N'Creating DF_QuoteFull_S_PRMWeight...'; +PRINT N'Creating [dbo].[DF_QuoteFull_S_PRMWeight]...'; GO @@ -3755,7 +3683,7 @@ ALTER TABLE [dbo].[QuoteFull_S] GO -PRINT N'Creating DF_QuoteFull_S_PWeight...'; +PRINT N'Creating [dbo].[DF_QuoteFull_S_PWeight]...'; GO @@ -3764,7 +3692,7 @@ ALTER TABLE [dbo].[QuoteFull_S] GO -PRINT N'Creating DF_QuoteFull_S_PTare...'; +PRINT N'Creating [dbo].[DF_QuoteFull_S_PTare]...'; GO @@ -3773,7 +3701,7 @@ ALTER TABLE [dbo].[QuoteFull_S] GO -PRINT N'Creating DF_QuoteFull_S_RawMatCost...'; +PRINT N'Creating [dbo].[DF_QuoteFull_S_RawMatCost]...'; GO @@ -3782,7 +3710,7 @@ ALTER TABLE [dbo].[QuoteFull_S] GO -PRINT N'Creating DF_QuoteFull_S_RawMatExtraCost...'; +PRINT N'Creating [dbo].[DF_QuoteFull_S_RawMatExtraCost]...'; GO @@ -3791,7 +3719,7 @@ ALTER TABLE [dbo].[QuoteFull_S] GO -PRINT N'Creating DF_QuoteFull_S_RawMatFullCost...'; +PRINT N'Creating [dbo].[DF_QuoteFull_S_RawMatFullCost]...'; GO @@ -3800,7 +3728,7 @@ ALTER TABLE [dbo].[QuoteFull_S] GO -PRINT N'Creating DF_QuoteFull_S_FSR...'; +PRINT N'Creating [dbo].[DF_QuoteFull_S_FSR]...'; GO @@ -3809,7 +3737,7 @@ ALTER TABLE [dbo].[QuoteFull_S] GO -PRINT N'Creating DF_QuoteFull_S_ProvvCost...'; +PRINT N'Creating [dbo].[DF_QuoteFull_S_ProvvCost]...'; GO @@ -3818,7 +3746,7 @@ ALTER TABLE [dbo].[QuoteFull_S] GO -PRINT N'Creating DF_QuoteFull_S_EECost...'; +PRINT N'Creating [dbo].[DF_QuoteFull_S_EECost]...'; GO @@ -3827,7 +3755,7 @@ ALTER TABLE [dbo].[QuoteFull_S] GO -PRINT N'Creating DF_QuoteFull_S_GasCost...'; +PRINT N'Creating [dbo].[DF_QuoteFull_S_GasCost]...'; GO @@ -3836,7 +3764,7 @@ ALTER TABLE [dbo].[QuoteFull_S] GO -PRINT N'Creating DF_QuoteFull_S_DiesCost...'; +PRINT N'Creating [dbo].[DF_QuoteFull_S_DiesCost]...'; GO @@ -3845,7 +3773,7 @@ ALTER TABLE [dbo].[QuoteFull_S] GO -PRINT N'Creating DF_QuoteFull_S_PackCost...'; +PRINT N'Creating [dbo].[DF_QuoteFull_S_PackCost]...'; GO @@ -3854,7 +3782,7 @@ ALTER TABLE [dbo].[QuoteFull_S] GO -PRINT N'Creating DF_QuoteFull_S_TranspCost...'; +PRINT N'Creating [dbo].[DF_QuoteFull_S_TranspCost]...'; GO @@ -3863,7 +3791,7 @@ ALTER TABLE [dbo].[QuoteFull_S] GO -PRINT N'Creating DF_QuoteFull_S_SellCost01...'; +PRINT N'Creating [dbo].[DF_QuoteFull_S_SellCost01]...'; GO @@ -3872,7 +3800,7 @@ ALTER TABLE [dbo].[QuoteFull_S] GO -PRINT N'Creating DF_QuoteFull_S_RefCost01...'; +PRINT N'Creating [dbo].[DF_QuoteFull_S_RefCost01]...'; GO @@ -3881,7 +3809,7 @@ ALTER TABLE [dbo].[QuoteFull_S] GO -PRINT N'Creating DF_QuoteFull_S_SellCost04...'; +PRINT N'Creating [dbo].[DF_QuoteFull_S_SellCost04]...'; GO @@ -3890,7 +3818,7 @@ ALTER TABLE [dbo].[QuoteFull_S] GO -PRINT N'Creating DF_QuoteFull_S_RefCost04...'; +PRINT N'Creating [dbo].[DF_QuoteFull_S_RefCost04]...'; GO @@ -3899,7 +3827,7 @@ ALTER TABLE [dbo].[QuoteFull_S] GO -PRINT N'Creating DF_QuoteFull_S_WSR01_avg...'; +PRINT N'Creating [dbo].[DF_QuoteFull_S_WSR01_avg]...'; GO @@ -3908,7 +3836,7 @@ ALTER TABLE [dbo].[QuoteFull_S] GO -PRINT N'Creating DF_QuoteFull_S_WSR01...'; +PRINT N'Creating [dbo].[DF_QuoteFull_S_WSR01]...'; GO @@ -3917,7 +3845,7 @@ ALTER TABLE [dbo].[QuoteFull_S] GO -PRINT N'Creating DF_QuoteFull_S_MSR01_avg...'; +PRINT N'Creating [dbo].[DF_QuoteFull_S_MSR01_avg]...'; GO @@ -3926,7 +3854,7 @@ ALTER TABLE [dbo].[QuoteFull_S] GO -PRINT N'Creating DF_QuoteFull_S_MSR01...'; +PRINT N'Creating [dbo].[DF_QuoteFull_S_MSR01]...'; GO @@ -3935,7 +3863,7 @@ ALTER TABLE [dbo].[QuoteFull_S] GO -PRINT N'Creating DF_QuoteFull_S_NetProd01_avg...'; +PRINT N'Creating [dbo].[DF_QuoteFull_S_NetProd01_avg]...'; GO @@ -3944,7 +3872,7 @@ ALTER TABLE [dbo].[QuoteFull_S] GO -PRINT N'Creating DF_QuoteFull_S_NetProd01_sim1...'; +PRINT N'Creating [dbo].[DF_QuoteFull_S_NetProd01_sim1]...'; GO @@ -3953,7 +3881,7 @@ ALTER TABLE [dbo].[QuoteFull_S] GO -PRINT N'Creating DF_QuoteFull_S_NetProd01...'; +PRINT N'Creating [dbo].[DF_QuoteFull_S_NetProd01]...'; GO @@ -3962,7 +3890,7 @@ ALTER TABLE [dbo].[QuoteFull_S] GO -PRINT N'Creating DF_QuoteFull_S_FC4UG01...'; +PRINT N'Creating [dbo].[DF_QuoteFull_S_FC4UG01]...'; GO @@ -3971,7 +3899,7 @@ ALTER TABLE [dbo].[QuoteFull_S] GO -PRINT N'Creating DF_QuoteFull_S_VC4UG01...'; +PRINT N'Creating [dbo].[DF_QuoteFull_S_VC4UG01]...'; GO @@ -3980,7 +3908,7 @@ ALTER TABLE [dbo].[QuoteFull_S] GO -PRINT N'Creating DF_QuoteFull_S_OH4UG01...'; +PRINT N'Creating [dbo].[DF_QuoteFull_S_OH4UG01]...'; GO @@ -3989,7 +3917,7 @@ ALTER TABLE [dbo].[QuoteFull_S] GO -PRINT N'Creating DF_QuoteFull_S_SC4UG01...'; +PRINT N'Creating [dbo].[DF_QuoteFull_S_SC4UG01]...'; GO @@ -3998,7 +3926,7 @@ ALTER TABLE [dbo].[QuoteFull_S] GO -PRINT N'Creating DF_QuoteFull_S_DSR_avg...'; +PRINT N'Creating [dbo].[DF_QuoteFull_S_DSR_avg]...'; GO @@ -4007,7 +3935,7 @@ ALTER TABLE [dbo].[QuoteFull_S] GO -PRINT N'Creating DF_QuoteFull_S_DSR...'; +PRINT N'Creating [dbo].[DF_QuoteFull_S_DSR]...'; GO @@ -4016,7 +3944,7 @@ ALTER TABLE [dbo].[QuoteFull_S] GO -PRINT N'Creating DF_QuoteFull_S_NetProd04...'; +PRINT N'Creating [dbo].[DF_QuoteFull_S_NetProd04]...'; GO @@ -4025,7 +3953,7 @@ ALTER TABLE [dbo].[QuoteFull_S] GO -PRINT N'Creating DF_QuoteFull_S_FC4UG04...'; +PRINT N'Creating [dbo].[DF_QuoteFull_S_FC4UG04]...'; GO @@ -4034,7 +3962,7 @@ ALTER TABLE [dbo].[QuoteFull_S] GO -PRINT N'Creating DF_QuoteFull_S_VC4UG04...'; +PRINT N'Creating [dbo].[DF_QuoteFull_S_VC4UG04]...'; GO @@ -4043,7 +3971,7 @@ ALTER TABLE [dbo].[QuoteFull_S] GO -PRINT N'Creating DF_QuoteFull_S_FVC...'; +PRINT N'Creating [dbo].[DF_QuoteFull_S_FVC]...'; GO @@ -4052,7 +3980,7 @@ ALTER TABLE [dbo].[QuoteFull_S] GO -PRINT N'Creating DF_QuoteFull_S_Charge...'; +PRINT N'Creating [dbo].[DF_QuoteFull_S_Charge]...'; GO @@ -4061,7 +3989,79 @@ ALTER TABLE [dbo].[QuoteFull_S] GO -PRINT N'Creating DF_ProductionLogRaw_NrPos_KO...'; +PRINT N'Creating [dbo].[DF_QuoteSimPar_QuoteType]...'; + + +GO +ALTER TABLE [dbo].[QuoteSimPar] + ADD CONSTRAINT [DF_QuoteSimPar_QuoteType] DEFAULT ('Q') FOR [QuoteType]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteSimPar_QuoteRev]...'; + + +GO +ALTER TABLE [dbo].[QuoteSimPar] + ADD CONSTRAINT [DF_QuoteSimPar_QuoteRev] DEFAULT ((0)) FOR [QuoteRev]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteSimPar_NomePar]...'; + + +GO +ALTER TABLE [dbo].[QuoteSimPar] + ADD CONSTRAINT [DF_QuoteSimPar_NomePar] DEFAULT ('') FOR [NomePar]; + + +GO +PRINT N'Creating [dbo].[DF_QuoteSimPar_ValParStr]...'; + + +GO +ALTER TABLE [dbo].[QuoteSimPar] + ADD CONSTRAINT [DF_QuoteSimPar_ValParStr] DEFAULT ('') FOR [ValPar]; + + +GO +PRINT N'Creating [dbo].[DF_Table1_Tabella]...'; + + +GO +ALTER TABLE [dbo].[ReportPrintTicket] + ADD CONSTRAINT [DF_Table1_Tabella] DEFAULT ('') FOR [Report]; + + +GO +PRINT N'Creating [dbo].[DF_ReportPrintTicket_Chiave]...'; + + +GO +ALTER TABLE [dbo].[ReportPrintTicket] + ADD CONSTRAINT [DF_ReportPrintTicket_Chiave] DEFAULT ('') FOR [Chiave]; + + +GO +PRINT N'Creating [dbo].[DF_ReportPrintTicket_UserReq]...'; + + +GO +ALTER TABLE [dbo].[ReportPrintTicket] + ADD CONSTRAINT [DF_ReportPrintTicket_UserReq] DEFAULT ('') FOR [UserReq]; + + +GO +PRINT N'Creating [dbo].[DF_ReportPrintTicket_DataReq]...'; + + +GO +ALTER TABLE [dbo].[ReportPrintTicket] + ADD CONSTRAINT [DF_ReportPrintTicket_DataReq] DEFAULT (getdate()) FOR [DataReq]; + + +GO +PRINT N'Creating [tmp].[DF_ProductionLogRaw_NrPos_KO]...'; GO @@ -4070,7 +4070,7 @@ ALTER TABLE [tmp].[ProductionLogRaw_KO] GO -PRINT N'Creating DF_ProductionLogRaw_KO_okPr...'; +PRINT N'Creating [tmp].[DF_ProductionLogRaw_KO_okPr]...'; GO @@ -4079,7 +4079,7 @@ ALTER TABLE [tmp].[ProductionLogRaw_KO] GO -PRINT N'Creating DF_ProductionLogRaw_KO_okQM...'; +PRINT N'Creating [tmp].[DF_ProductionLogRaw_KO_okQM]...'; GO @@ -4088,7 +4088,7 @@ ALTER TABLE [tmp].[ProductionLogRaw_KO] GO -PRINT N'Creating DF_ProductionLogRaw_KO_okSc...'; +PRINT N'Creating [tmp].[DF_ProductionLogRaw_KO_okSc]...'; GO @@ -4097,7 +4097,7 @@ ALTER TABLE [tmp].[ProductionLogRaw_KO] GO -PRINT N'Creating DF_ProductionLogRaw_KO_okDi...'; +PRINT N'Creating [tmp].[DF_ProductionLogRaw_KO_okDi]...'; GO @@ -4106,7 +4106,7 @@ ALTER TABLE [tmp].[ProductionLogRaw_KO] GO -PRINT N'Creating DF_ProductionLogRaw_KO_ImportDate...'; +PRINT N'Creating [tmp].[DF_ProductionLogRaw_KO_ImportDate]...'; GO @@ -4115,7 +4115,7 @@ ALTER TABLE [tmp].[ProductionLogRaw_KO] GO -PRINT N'Creating DF_ClientsRaw_TranspZone...'; +PRINT N'Creating [tmp].[DF_ClientsRaw_TranspZone]...'; GO @@ -4124,7 +4124,7 @@ ALTER TABLE [tmp].[ClientsRaw] GO -PRINT N'Creating DF_ItemsRaw_Class01...'; +PRINT N'Creating [tmp].[DF_ItemsRaw_Class01]...'; GO @@ -4133,7 +4133,7 @@ ALTER TABLE [tmp].[ItemsRaw] GO -PRINT N'Creating DF_ItemsRaw_Class02...'; +PRINT N'Creating [tmp].[DF_ItemsRaw_Class02]...'; GO @@ -4142,7 +4142,7 @@ ALTER TABLE [tmp].[ItemsRaw] GO -PRINT N'Creating DF_ItemsRaw_Class03...'; +PRINT N'Creating [tmp].[DF_ItemsRaw_Class03]...'; GO @@ -4151,7 +4151,7 @@ ALTER TABLE [tmp].[ItemsRaw] GO -PRINT N'Creating DF_ItemsRaw_Class04...'; +PRINT N'Creating [tmp].[DF_ItemsRaw_Class04]...'; GO @@ -4160,7 +4160,7 @@ ALTER TABLE [tmp].[ItemsRaw] GO -PRINT N'Creating DF_ItemsRaw_Class05...'; +PRINT N'Creating [tmp].[DF_ItemsRaw_Class05]...'; GO @@ -4169,7 +4169,7 @@ ALTER TABLE [tmp].[ItemsRaw] GO -PRINT N'Creating DF_TraspZoneRaw...'; +PRINT N'Creating [tmp].[DF_TraspZoneRaw]...'; GO @@ -4178,7 +4178,7 @@ ALTER TABLE [tmp].[TranspCostRaw] GO -PRINT N'Creating DF_ProductionLogRaw_NrPos...'; +PRINT N'Creating [tmp].[DF_ProductionLogRaw_NrPos]...'; GO @@ -4187,7 +4187,7 @@ ALTER TABLE [tmp].[ProductionLogRaw] GO -PRINT N'Creating DF_ProductionLogRaw_okPr...'; +PRINT N'Creating [tmp].[DF_ProductionLogRaw_okPr]...'; GO @@ -4196,7 +4196,7 @@ ALTER TABLE [tmp].[ProductionLogRaw] GO -PRINT N'Creating DF_ProductionLogRaw_okQM...'; +PRINT N'Creating [tmp].[DF_ProductionLogRaw_okQM]...'; GO @@ -4205,7 +4205,7 @@ ALTER TABLE [tmp].[ProductionLogRaw] GO -PRINT N'Creating DF_ProductionLogRaw_okSc...'; +PRINT N'Creating [tmp].[DF_ProductionLogRaw_okSc]...'; GO @@ -4214,7 +4214,7 @@ ALTER TABLE [tmp].[ProductionLogRaw] GO -PRINT N'Creating DF_ProductionLogRaw_okDi...'; +PRINT N'Creating [tmp].[DF_ProductionLogRaw_okDi]...'; GO @@ -4223,7 +4223,7 @@ ALTER TABLE [tmp].[ProductionLogRaw] GO -PRINT N'Creating DF_OrdersHistRaw_ProvCost...'; +PRINT N'Creating [tmp].[DF_OrdersHistRaw_ProvCost]...'; GO @@ -4232,7 +4232,7 @@ ALTER TABLE [tmp].[OrdersHistRaw] GO -PRINT N'Creating DF_TraspZoneExt...'; +PRINT N'Creating [ext].[DF_TraspZoneExt]...'; GO @@ -4241,7 +4241,7 @@ ALTER TABLE [ext].[TranspCostRaw] GO -PRINT N'Creating DF_ClientsRaw_ClassZona...'; +PRINT N'Creating [ext].[DF_ClientsRaw_ClassZona]...'; GO @@ -4250,7 +4250,7 @@ ALTER TABLE [ext].[ClientsRaw] GO -PRINT N'Creating DF_ProductionLogRaw_NrPos_1...'; +PRINT N'Creating [ext].[DF_ProductionLogRaw_NrPos_1]...'; GO @@ -4259,7 +4259,7 @@ ALTER TABLE [ext].[ProductionLogRaw] GO -PRINT N'Creating DF_ProductionLogRaw_CodDies...'; +PRINT N'Creating [ext].[DF_ProductionLogRaw_CodDies]...'; GO @@ -4268,7 +4268,7 @@ ALTER TABLE [ext].[ProductionLogRaw] GO -PRINT N'Creating DF_ProductionLogRaw_CodClient...'; +PRINT N'Creating [ext].[DF_ProductionLogRaw_CodClient]...'; GO @@ -4277,7 +4277,7 @@ ALTER TABLE [ext].[ProductionLogRaw] GO -PRINT N'Creating DF_ProductionLogRaw_OrderNum...'; +PRINT N'Creating [ext].[DF_ProductionLogRaw_OrderNum]...'; GO @@ -4286,7 +4286,7 @@ ALTER TABLE [ext].[ProductionLogRaw] GO -PRINT N'Creating DF_ProductionLogRaw_BatchNum...'; +PRINT N'Creating [ext].[DF_ProductionLogRaw_BatchNum]...'; GO @@ -4295,7 +4295,7 @@ ALTER TABLE [ext].[ProductionLogRaw] GO -PRINT N'Creating DF_ProductionLogRaw_ProcessType...'; +PRINT N'Creating [ext].[DF_ProductionLogRaw_ProcessType]...'; GO @@ -4304,7 +4304,7 @@ ALTER TABLE [ext].[ProductionLogRaw] GO -PRINT N'Creating DF_ProductionLogRaw_EventType...'; +PRINT N'Creating [ext].[DF_ProductionLogRaw_EventType]...'; GO @@ -4313,7 +4313,7 @@ ALTER TABLE [ext].[ProductionLogRaw] GO -PRINT N'Creating DF_ProductionLogRaw_RawMat...'; +PRINT N'Creating [ext].[DF_ProductionLogRaw_RawMat]...'; GO @@ -4322,7 +4322,7 @@ ALTER TABLE [ext].[ProductionLogRaw] GO -PRINT N'Creating DF_ProductionLogRaw_CodPackag...'; +PRINT N'Creating [ext].[DF_ProductionLogRaw_CodPackag]...'; GO @@ -4331,7 +4331,7 @@ ALTER TABLE [ext].[ProductionLogRaw] GO -PRINT N'Creating DF_ProductionLogRaw_QtyIN...'; +PRINT N'Creating [ext].[DF_ProductionLogRaw_QtyIN]...'; GO @@ -4340,7 +4340,7 @@ ALTER TABLE [ext].[ProductionLogRaw] GO -PRINT N'Creating DF_ProductionLogRaw_QtyOUT...'; +PRINT N'Creating [ext].[DF_ProductionLogRaw_QtyOUT]...'; GO @@ -4349,7 +4349,7 @@ ALTER TABLE [ext].[ProductionLogRaw] GO -PRINT N'Creating DF_ProductionLogRaw_QtyEXT...'; +PRINT N'Creating [ext].[DF_ProductionLogRaw_QtyEXT]...'; GO @@ -4358,7 +4358,7 @@ ALTER TABLE [ext].[ProductionLogRaw] GO -PRINT N'Creating DF_ProductionLogRaw_NumIN...'; +PRINT N'Creating [ext].[DF_ProductionLogRaw_NumIN]...'; GO @@ -4367,7 +4367,7 @@ ALTER TABLE [ext].[ProductionLogRaw] GO -PRINT N'Creating DF_ProductionLogRaw_NumOUT...'; +PRINT N'Creating [ext].[DF_ProductionLogRaw_NumOUT]...'; GO @@ -4376,7 +4376,7 @@ ALTER TABLE [ext].[ProductionLogRaw] GO -PRINT N'Creating DF_ProductionLogRaw_QuotaPlant...'; +PRINT N'Creating [ext].[DF_ProductionLogRaw_QuotaPlant]...'; GO @@ -4385,7 +4385,7 @@ ALTER TABLE [ext].[ProductionLogRaw] GO -PRINT N'Creating DF_ProductionLogRaw_QuotaMan...'; +PRINT N'Creating [ext].[DF_ProductionLogRaw_QuotaMan]...'; GO @@ -4394,7 +4394,7 @@ ALTER TABLE [ext].[ProductionLogRaw] GO -PRINT N'Creating DF_ProductionLogRaw_Tags...'; +PRINT N'Creating [ext].[DF_ProductionLogRaw_Tags]...'; GO @@ -4403,7 +4403,7 @@ ALTER TABLE [ext].[ProductionLogRaw] GO -PRINT N'Creating DF_ProductionLogRaw_okPr_1...'; +PRINT N'Creating [ext].[DF_ProductionLogRaw_okPr_1]...'; GO @@ -4412,7 +4412,7 @@ ALTER TABLE [ext].[ProductionLogRaw] GO -PRINT N'Creating DF_ProductionLogRaw_okQM_1...'; +PRINT N'Creating [ext].[DF_ProductionLogRaw_okQM_1]...'; GO @@ -4421,7 +4421,7 @@ ALTER TABLE [ext].[ProductionLogRaw] GO -PRINT N'Creating DF_ProductionLogRaw_okSc_1...'; +PRINT N'Creating [ext].[DF_ProductionLogRaw_okSc_1]...'; GO @@ -4430,7 +4430,7 @@ ALTER TABLE [ext].[ProductionLogRaw] GO -PRINT N'Creating DF_ProductionLogRaw_okDi_1...'; +PRINT N'Creating [ext].[DF_ProductionLogRaw_okDi_1]...'; GO @@ -4439,7 +4439,7 @@ ALTER TABLE [ext].[ProductionLogRaw] GO -PRINT N'Creating DF_ProductionLogRaw_KO_okPr...'; +PRINT N'Creating [ext].[DF_ProductionLogRaw_KO_okPr]...'; GO @@ -4448,7 +4448,7 @@ ALTER TABLE [ext].[ProductionLogRaw_KO] GO -PRINT N'Creating DF_ProductionLogRaw_KO_okQM...'; +PRINT N'Creating [ext].[DF_ProductionLogRaw_KO_okQM]...'; GO @@ -4457,7 +4457,7 @@ ALTER TABLE [ext].[ProductionLogRaw_KO] GO -PRINT N'Creating DF_ProductionLogRaw_KO_okSc...'; +PRINT N'Creating [ext].[DF_ProductionLogRaw_KO_okSc]...'; GO @@ -4466,7 +4466,7 @@ ALTER TABLE [ext].[ProductionLogRaw_KO] GO -PRINT N'Creating DF_ProductionLogRaw_KO_okDi...'; +PRINT N'Creating [ext].[DF_ProductionLogRaw_KO_okDi]...'; GO @@ -4475,7 +4475,7 @@ ALTER TABLE [ext].[ProductionLogRaw_KO] GO -PRINT N'Creating DF_ProductionLogRaw_KO_ImportDateExt...'; +PRINT N'Creating [ext].[DF_ProductionLogRaw_KO_ImportDateExt]...'; GO @@ -4484,7 +4484,7 @@ ALTER TABLE [ext].[ProductionLogRaw_KO] GO -PRINT N'Creating DF_ItemsRaw_CodPlant...'; +PRINT N'Creating [ext].[DF_ItemsRaw_CodPlant]...'; GO @@ -4493,7 +4493,7 @@ ALTER TABLE [ext].[ItemsRaw] GO -PRINT N'Creating DF_ItemsRaw_Class01_1...'; +PRINT N'Creating [ext].[DF_ItemsRaw_Class01_1]...'; GO @@ -4502,7 +4502,7 @@ ALTER TABLE [ext].[ItemsRaw] GO -PRINT N'Creating DF_ItemsRaw_Class02_1...'; +PRINT N'Creating [ext].[DF_ItemsRaw_Class02_1]...'; GO @@ -4511,7 +4511,7 @@ ALTER TABLE [ext].[ItemsRaw] GO -PRINT N'Creating DF_ItemsRaw_Class03_1...'; +PRINT N'Creating [ext].[DF_ItemsRaw_Class03_1]...'; GO @@ -4520,7 +4520,7 @@ ALTER TABLE [ext].[ItemsRaw] GO -PRINT N'Creating DF_ItemsRaw_Class04_1...'; +PRINT N'Creating [ext].[DF_ItemsRaw_Class04_1]...'; GO @@ -4529,7 +4529,7 @@ ALTER TABLE [ext].[ItemsRaw] GO -PRINT N'Creating DF_ItemsRaw_Class05_1...'; +PRINT N'Creating [ext].[DF_ItemsRaw_Class05_1]...'; GO @@ -4538,7 +4538,7 @@ ALTER TABLE [ext].[ItemsRaw] GO -PRINT N'Creating DF_OrdersHistRaw_OrdNum...'; +PRINT N'Creating [ext].[DF_OrdersHistRaw_OrdNum]...'; GO @@ -4547,7 +4547,7 @@ ALTER TABLE [ext].[OrdersHistRaw] GO -PRINT N'Creating DF_OrdersHistRaw_OrdRow...'; +PRINT N'Creating [ext].[DF_OrdersHistRaw_OrdRow]...'; GO @@ -4556,7 +4556,7 @@ ALTER TABLE [ext].[OrdersHistRaw] GO -PRINT N'Creating DF_OrdersHistRaw_OrdDate...'; +PRINT N'Creating [ext].[DF_OrdersHistRaw_OrdDate]...'; GO @@ -4565,7 +4565,7 @@ ALTER TABLE [ext].[OrdersHistRaw] GO -PRINT N'Creating DF_OrdersHistRaw_CodItem...'; +PRINT N'Creating [ext].[DF_OrdersHistRaw_CodItem]...'; GO @@ -4574,7 +4574,7 @@ ALTER TABLE [ext].[OrdersHistRaw] GO -PRINT N'Creating DF_OrdersHistRaw_RawMatCost...'; +PRINT N'Creating [ext].[DF_OrdersHistRaw_RawMatCost]...'; GO @@ -4583,7 +4583,7 @@ ALTER TABLE [ext].[OrdersHistRaw] GO -PRINT N'Creating DF_OrdersHistRaw_BatchQty...'; +PRINT N'Creating [ext].[DF_OrdersHistRaw_BatchQty]...'; GO @@ -4592,7 +4592,7 @@ ALTER TABLE [ext].[OrdersHistRaw] GO -PRINT N'Creating DF_OrdersHistRaw_OrdPrice...'; +PRINT N'Creating [ext].[DF_OrdersHistRaw_OrdPrice]...'; GO @@ -4601,7 +4601,7 @@ ALTER TABLE [ext].[OrdersHistRaw] GO -PRINT N'Creating DF_OrdersHistRaw_RawMatExtraCost...'; +PRINT N'Creating [ext].[DF_OrdersHistRaw_RawMatExtraCost]...'; GO @@ -4610,7 +4610,7 @@ ALTER TABLE [ext].[OrdersHistRaw] GO -PRINT N'Creating DF_OrdersHistRaw_PriceOff...'; +PRINT N'Creating [ext].[DF_OrdersHistRaw_PriceOff]...'; GO @@ -4619,7 +4619,7 @@ ALTER TABLE [ext].[OrdersHistRaw] GO -PRINT N'Creating DF_OrdersHistRaw_OrderQty...'; +PRINT N'Creating [ext].[DF_OrdersHistRaw_OrderQty]...'; GO @@ -4628,7 +4628,7 @@ ALTER TABLE [ext].[OrdersHistRaw] GO -PRINT N'Creating DF_OrdersHistRaw_ProvvCost...'; +PRINT N'Creating [ext].[DF_OrdersHistRaw_ProvvCost]...'; GO @@ -4637,34 +4637,7 @@ ALTER TABLE [ext].[OrdersHistRaw] GO -PRINT N'Creating DF_RcdItem_ItemDescrRcd...'; - - -GO -ALTER TABLE [ext].[RcdItem] - ADD CONSTRAINT [DF_RcdItem_ItemDescrRcd] DEFAULT ('') FOR [ItemDescrRcd]; - - -GO -PRINT N'Creating DF_RcdItem_CodPlantRcd...'; - - -GO -ALTER TABLE [ext].[RcdItem] - ADD CONSTRAINT [DF_RcdItem_CodPlantRcd] DEFAULT ('') FOR [CodPlantRcd]; - - -GO -PRINT N'Creating DF_RcdClient_ClientNameRcd...'; - - -GO -ALTER TABLE [ext].[RcdClient] - ADD CONSTRAINT [DF_RcdClient_ClientNameRcd] DEFAULT ('') FOR [ClientNameRcd]; - - -GO -PRINT N'Creating DF_RcdClass_CodClassRcd...'; +PRINT N'Creating [ext].[DF_RcdClass_CodClassRcd]...'; GO @@ -4673,7 +4646,34 @@ ALTER TABLE [ext].[RcdClass01] GO -PRINT N'Creating DF_RcdPackage_PackagDescOrig...'; +PRINT N'Creating [ext].[DF_RcdClient_ClientNameRcd]...'; + + +GO +ALTER TABLE [ext].[RcdClient] + ADD CONSTRAINT [DF_RcdClient_ClientNameRcd] DEFAULT ('') FOR [ClientNameRcd]; + + +GO +PRINT N'Creating [ext].[DF_RcdItem_ItemDescrRcd]...'; + + +GO +ALTER TABLE [ext].[RcdItem] + ADD CONSTRAINT [DF_RcdItem_ItemDescrRcd] DEFAULT ('') FOR [ItemDescrRcd]; + + +GO +PRINT N'Creating [ext].[DF_RcdItem_CodPlantRcd]...'; + + +GO +ALTER TABLE [ext].[RcdItem] + ADD CONSTRAINT [DF_RcdItem_CodPlantRcd] DEFAULT ('') FOR [CodPlantRcd]; + + +GO +PRINT N'Creating [ext].[DF_RcdPackage_PackagDescOrig]...'; GO @@ -4682,7 +4682,7 @@ ALTER TABLE [ext].[RcdPackage] GO -PRINT N'Creating FK_Vocabolario_Lingue...'; +PRINT N'Creating [dbo].[FK_Vocabolario_Lingue]...'; GO @@ -4691,169 +4691,7 @@ ALTER TABLE [dbo].[Vocabolario] GO -PRINT N'Creating FK_QuoteExtra_QuoteList...'; - - -GO -ALTER TABLE [dbo].[QuoteOC] - ADD CONSTRAINT [FK_QuoteExtra_QuoteList] FOREIGN KEY ([QuoteType], [CodQuote], [QuoteRev]) REFERENCES [dbo].[QuoteList] ([QuoteType], [CodQuote], [QuoteRev]) ON UPDATE CASCADE; - - -GO -PRINT N'Creating FK_QuoteWorkExt_QuoteList...'; - - -GO -ALTER TABLE [dbo].[QuoteWorkExt] - ADD CONSTRAINT [FK_QuoteWorkExt_QuoteList] FOREIGN KEY ([QuoteType], [CodQuote], [QuoteRev]) REFERENCES [dbo].[QuoteList] ([QuoteType], [CodQuote], [QuoteRev]) ON UPDATE CASCADE; - - -GO -PRINT N'Creating FK_Package2Item_ItemDet...'; - - -GO -ALTER TABLE [dbo].[Package2Item] - ADD CONSTRAINT [FK_Package2Item_ItemDet] FOREIGN KEY ([CodItem]) REFERENCES [dbo].[ItemDet] ([CodItem]) ON UPDATE CASCADE; - - -GO -PRINT N'Creating FK_Package2Item_PackagDet...'; - - -GO -ALTER TABLE [dbo].[Package2Item] - ADD CONSTRAINT [FK_Package2Item_PackagDet] FOREIGN KEY ([CodPackag]) REFERENCES [dbo].[PackagDet] ([CodPackag]) ON UPDATE CASCADE; - - -GO -PRINT N'Creating FK_Package2ItemClient_ClientDet...'; - - -GO -ALTER TABLE [dbo].[Package2ItemClient] - ADD CONSTRAINT [FK_Package2ItemClient_ClientDet] FOREIGN KEY ([CodClient]) REFERENCES [dbo].[ClientDet] ([CodClient]) ON UPDATE CASCADE; - - -GO -PRINT N'Creating FK_Package2ItemClient_ItemDet...'; - - -GO -ALTER TABLE [dbo].[Package2ItemClient] - ADD CONSTRAINT [FK_Package2ItemClient_ItemDet] FOREIGN KEY ([CodItem]) REFERENCES [dbo].[ItemDet] ([CodItem]) ON UPDATE CASCADE; - - -GO -PRINT N'Creating FK_Package2ItemClient_PackagDet...'; - - -GO -ALTER TABLE [dbo].[Package2ItemClient] - ADD CONSTRAINT [FK_Package2ItemClient_PackagDet] FOREIGN KEY ([CodPackag]) REFERENCES [dbo].[PackagDet] ([CodPackag]) ON UPDATE CASCADE; - - -GO -PRINT N'Creating FK_Cost2Plant_PlantsDet...'; - - -GO -ALTER TABLE [dbo].[Cost2Plant] - ADD CONSTRAINT [FK_Cost2Plant_PlantsDet] FOREIGN KEY ([CodPlant]) REFERENCES [dbo].[PlantsDet] ([CodPlant]) ON UPDATE CASCADE; - - -GO -PRINT N'Creating FK_ClientDet_AgentsDet...'; - - -GO -ALTER TABLE [dbo].[ClientDet] - ADD CONSTRAINT [FK_ClientDet_AgentsDet] FOREIGN KEY ([CodAg]) REFERENCES [dbo].[AgentsDet] ([CodAg]) ON UPDATE CASCADE; - - -GO -PRINT N'Creating FK_QuoteRM_QuoteList...'; - - -GO -ALTER TABLE [dbo].[QuoteRM] - ADD CONSTRAINT [FK_QuoteRM_QuoteList] FOREIGN KEY ([QuoteType], [CodQuote], [QuoteRev]) REFERENCES [dbo].[QuoteList] ([QuoteType], [CodQuote], [QuoteRev]) ON UPDATE CASCADE; - - -GO -PRINT N'Creating FK_Package2_PackagDet...'; - - -GO -ALTER TABLE [dbo].[Package2] - ADD CONSTRAINT [FK_Package2_PackagDet] FOREIGN KEY ([CodPackag]) REFERENCES [dbo].[PackagDet] ([CodPackag]) ON UPDATE CASCADE; - - -GO -PRINT N'Creating FK_Permessi2Funzione_Permessi...'; - - -GO -ALTER TABLE [dbo].[Permessi2Funzione] - ADD CONSTRAINT [FK_Permessi2Funzione_Permessi] FOREIGN KEY ([COD_PERMESSO]) REFERENCES [dbo].[Permessi] ([COD_PERMESSO]) ON UPDATE CASCADE; - - -GO -PRINT N'Creating FK_DiesDet_DiesGroupDet...'; - - -GO -ALTER TABLE [dbo].[DiesDet] - ADD CONSTRAINT [FK_DiesDet_DiesGroupDet] FOREIGN KEY ([CodDiesGroup]) REFERENCES [dbo].[DiesGroupDet] ([CodDiesGroup]) ON UPDATE CASCADE; - - -GO -PRINT N'Creating FK_DiesDet_ItemDet...'; - - -GO -ALTER TABLE [dbo].[DiesDet] - ADD CONSTRAINT [FK_DiesDet_ItemDet] FOREIGN KEY ([CodItem]) REFERENCES [dbo].[ItemDet] ([CodItem]) ON UPDATE CASCADE; - - -GO -PRINT N'Creating FK_ProductionLog_ClientDet...'; - - -GO -ALTER TABLE [dbo].[ProductionLog] - ADD CONSTRAINT [FK_ProductionLog_ClientDet] FOREIGN KEY ([CodClient]) REFERENCES [dbo].[ClientDet] ([CodClient]) ON UPDATE CASCADE; - - -GO -PRINT N'Creating FK_ProductionLog_PackagDet...'; - - -GO -ALTER TABLE [dbo].[ProductionLog] - ADD CONSTRAINT [FK_ProductionLog_PackagDet] FOREIGN KEY ([CodPackag]) REFERENCES [dbo].[PackagDet] ([CodPackag]) ON UPDATE CASCADE; - - -GO -PRINT N'Creating FK_ProductionLog_PlantsDet...'; - - -GO -ALTER TABLE [dbo].[ProductionLog] - ADD CONSTRAINT [FK_ProductionLog_PlantsDet] FOREIGN KEY ([CodPlant]) REFERENCES [dbo].[PlantsDet] ([CodPlant]) ON UPDATE CASCADE; - - -GO -PRINT N'Creating FK_ProductionLog_RawMatDet...'; - - -GO -ALTER TABLE [dbo].[ProductionLog] - ADD CONSTRAINT [FK_ProductionLog_RawMatDet] FOREIGN KEY ([RawMat]) REFERENCES [dbo].[RawMatDet] ([RawMat]) ON UPDATE CASCADE; - - -GO -PRINT N'Creating FK_QuoteParam_QuoteList...'; +PRINT N'Creating [dbo].[FK_QuoteParam_QuoteList]...'; GO @@ -4862,7 +4700,16 @@ ALTER TABLE [dbo].[QuoteParam] GO -PRINT N'Creating FK_QuoteWorkInt_QuoteList...'; +PRINT N'Creating [dbo].[FK_QuoteExtra_QuoteList]...'; + + +GO +ALTER TABLE [dbo].[QuoteOC] + ADD CONSTRAINT [FK_QuoteExtra_QuoteList] FOREIGN KEY ([QuoteType], [CodQuote], [QuoteRev]) REFERENCES [dbo].[QuoteList] ([QuoteType], [CodQuote], [QuoteRev]) ON UPDATE CASCADE; + + +GO +PRINT N'Creating [dbo].[FK_QuoteWorkInt_QuoteList]...'; GO @@ -4871,7 +4718,151 @@ ALTER TABLE [dbo].[QuoteWorkInt] GO -PRINT N'Creating FK_UTENTE_CDC...'; +PRINT N'Creating [dbo].[FK_QuoteWorkExt_QuoteList]...'; + + +GO +ALTER TABLE [dbo].[QuoteWorkExt] + ADD CONSTRAINT [FK_QuoteWorkExt_QuoteList] FOREIGN KEY ([QuoteType], [CodQuote], [QuoteRev]) REFERENCES [dbo].[QuoteList] ([QuoteType], [CodQuote], [QuoteRev]) ON UPDATE CASCADE; + + +GO +PRINT N'Creating [dbo].[FK_Package2Item_ItemDet]...'; + + +GO +ALTER TABLE [dbo].[Package2Item] + ADD CONSTRAINT [FK_Package2Item_ItemDet] FOREIGN KEY ([CodItem]) REFERENCES [dbo].[ItemDet] ([CodItem]) ON UPDATE CASCADE; + + +GO +PRINT N'Creating [dbo].[FK_Package2Item_PackagDet]...'; + + +GO +ALTER TABLE [dbo].[Package2Item] + ADD CONSTRAINT [FK_Package2Item_PackagDet] FOREIGN KEY ([CodPackag]) REFERENCES [dbo].[PackagDet] ([CodPackag]) ON UPDATE CASCADE; + + +GO +PRINT N'Creating [dbo].[FK_ProductionLog_ClientDet]...'; + + +GO +ALTER TABLE [dbo].[ProductionLog] + ADD CONSTRAINT [FK_ProductionLog_ClientDet] FOREIGN KEY ([CodClient]) REFERENCES [dbo].[ClientDet] ([CodClient]) ON UPDATE CASCADE; + + +GO +PRINT N'Creating [dbo].[FK_ProductionLog_PackagDet]...'; + + +GO +ALTER TABLE [dbo].[ProductionLog] + ADD CONSTRAINT [FK_ProductionLog_PackagDet] FOREIGN KEY ([CodPackag]) REFERENCES [dbo].[PackagDet] ([CodPackag]) ON UPDATE CASCADE; + + +GO +PRINT N'Creating [dbo].[FK_ProductionLog_PlantsDet]...'; + + +GO +ALTER TABLE [dbo].[ProductionLog] + ADD CONSTRAINT [FK_ProductionLog_PlantsDet] FOREIGN KEY ([CodPlant]) REFERENCES [dbo].[PlantsDet] ([CodPlant]) ON UPDATE CASCADE; + + +GO +PRINT N'Creating [dbo].[FK_ProductionLog_RawMatDet]...'; + + +GO +ALTER TABLE [dbo].[ProductionLog] + ADD CONSTRAINT [FK_ProductionLog_RawMatDet] FOREIGN KEY ([RawMat]) REFERENCES [dbo].[RawMatDet] ([RawMat]) ON UPDATE CASCADE; + + +GO +PRINT N'Creating [dbo].[FK_Package2ItemClient_ClientDet]...'; + + +GO +ALTER TABLE [dbo].[Package2ItemClient] + ADD CONSTRAINT [FK_Package2ItemClient_ClientDet] FOREIGN KEY ([CodClient]) REFERENCES [dbo].[ClientDet] ([CodClient]) ON UPDATE CASCADE; + + +GO +PRINT N'Creating [dbo].[FK_Package2ItemClient_ItemDet]...'; + + +GO +ALTER TABLE [dbo].[Package2ItemClient] + ADD CONSTRAINT [FK_Package2ItemClient_ItemDet] FOREIGN KEY ([CodItem]) REFERENCES [dbo].[ItemDet] ([CodItem]) ON UPDATE CASCADE; + + +GO +PRINT N'Creating [dbo].[FK_Package2ItemClient_PackagDet]...'; + + +GO +ALTER TABLE [dbo].[Package2ItemClient] + ADD CONSTRAINT [FK_Package2ItemClient_PackagDet] FOREIGN KEY ([CodPackag]) REFERENCES [dbo].[PackagDet] ([CodPackag]) ON UPDATE CASCADE; + + +GO +PRINT N'Creating [dbo].[FK_Cost2Plant_PlantsDet]...'; + + +GO +ALTER TABLE [dbo].[Cost2Plant] + ADD CONSTRAINT [FK_Cost2Plant_PlantsDet] FOREIGN KEY ([CodPlant]) REFERENCES [dbo].[PlantsDet] ([CodPlant]) ON UPDATE CASCADE; + + +GO +PRINT N'Creating [dbo].[FK_ClientDet_AgentsDet]...'; + + +GO +ALTER TABLE [dbo].[ClientDet] + ADD CONSTRAINT [FK_ClientDet_AgentsDet] FOREIGN KEY ([CodAg]) REFERENCES [dbo].[AgentsDet] ([CodAg]) ON UPDATE CASCADE; + + +GO +PRINT N'Creating [dbo].[FK_DiesDet_DiesGroupDet]...'; + + +GO +ALTER TABLE [dbo].[DiesDet] + ADD CONSTRAINT [FK_DiesDet_DiesGroupDet] FOREIGN KEY ([CodDiesGroup]) REFERENCES [dbo].[DiesGroupDet] ([CodDiesGroup]) ON UPDATE CASCADE; + + +GO +PRINT N'Creating [dbo].[FK_DiesDet_ItemDet]...'; + + +GO +ALTER TABLE [dbo].[DiesDet] + ADD CONSTRAINT [FK_DiesDet_ItemDet] FOREIGN KEY ([CodItem]) REFERENCES [dbo].[ItemDet] ([CodItem]) ON UPDATE CASCADE; + + +GO +PRINT N'Creating [dbo].[FK_QuoteRM_QuoteList]...'; + + +GO +ALTER TABLE [dbo].[QuoteRM] + ADD CONSTRAINT [FK_QuoteRM_QuoteList] FOREIGN KEY ([QuoteType], [CodQuote], [QuoteRev]) REFERENCES [dbo].[QuoteList] ([QuoteType], [CodQuote], [QuoteRev]) ON UPDATE CASCADE; + + +GO +PRINT N'Creating [dbo].[FK_Package2_PackagDet]...'; + + +GO +ALTER TABLE [dbo].[Package2] + ADD CONSTRAINT [FK_Package2_PackagDet] FOREIGN KEY ([CodPackag]) REFERENCES [dbo].[PackagDet] ([CodPackag]) ON UPDATE CASCADE; + + +GO +PRINT N'Creating [dbo].[FK_UTENTE_CDC]...'; GO @@ -4880,7 +4871,16 @@ ALTER TABLE [dbo].[UTENTE] GO -PRINT N'Creating FK_DIRITTI_FUNZIONE...'; +PRINT N'Creating [dbo].[FK_Permessi2Funzione_Permessi]...'; + + +GO +ALTER TABLE [dbo].[Permessi2Funzione] + ADD CONSTRAINT [FK_Permessi2Funzione_Permessi] FOREIGN KEY ([COD_PERMESSO]) REFERENCES [dbo].[Permessi] ([COD_PERMESSO]) ON UPDATE CASCADE; + + +GO +PRINT N'Creating [dbo].[FK_DIRITTI_FUNZIONE]...'; GO @@ -4889,7 +4889,7 @@ ALTER TABLE [dbo].[DIRITTI] GO -PRINT N'Creating FK_DIRITTI_MODULO...'; +PRINT N'Creating [dbo].[FK_DIRITTI_MODULO]...'; GO @@ -4898,7 +4898,7 @@ ALTER TABLE [dbo].[DIRITTI] GO -PRINT N'Creating FK_DIRITTI_UTENTE...'; +PRINT N'Creating [dbo].[FK_DIRITTI_UTENTE]...'; GO @@ -4906,6 +4906,71 @@ ALTER TABLE [dbo].[DIRITTI] ADD CONSTRAINT [FK_DIRITTI_UTENTE] FOREIGN KEY ([USER_NAME]) REFERENCES [dbo].[UTENTE] ([USER_NAME]) ON UPDATE CASCADE; +GO +PRINT N'Creating [dbo].[f_getSubstring]...'; + + +GO +-- ================================================================ +-- Author : Steamware +-- Create date: 2014-01-17 +-- +-- Description: Data una stringa con una serie di valori separati da un separatore ( es. ; ) +-- ritorna l'elemento nella posizione richiesta +-- +-- esempio : SELECT dbo.f_GetSubstring('asda-fff-bbb','-' , 2) +-- ================================================================ +CREATE FUNCTION [dbo].[f_getSubstring] +( + @str_in NVARCHAR(4000), @separator NVARCHAR(4)= '-', @PosizValue INT = 1 +) +RETURNS NVARCHAR(4000) +AS +BEGIN + + DECLARE @Occurrences INT, + @Counter INT, + @tmpStr NVARCHAR(4000), + @str_out NVARCHAR(4000) + + IF RIGHT(@str_in, DATALENGTH(@separator)/2 ) <> @separator + SET @str_out = @str_in + @separator ; + ELSE + SET @str_out = @str_in ; + + -- calcolo il numero di elementi della nella stringa + SET @Occurrences = ( (DATALENGTH( REPLACE(@str_out, @separator, @separator+'#')) - DATALENGTH(@str_out)) ) / 2 + + -- se l'elemento richiesto esiste proseguo altrimenti ritorno NULL + IF @Occurrences >= @PosizValue AND @PosizValue <> 0 + BEGIN + + SET @tmpStr = @str_out ; + SET @Counter = 1 ; + + WHILE @Counter <= @PosizValue + BEGIN + SET @Counter = @Counter + 1 ; + SET @str_out = SUBSTRING( @tmpStr, 1, CHARINDEX(@separator,@tmpStr) - 1) ; + -- metto via il resto della stringa + SET @tmpStr = SUBSTRING( @tmpStr, CHARINDEX(@separator,@tmpStr) + DATALENGTH(@separator)/2, 4000) ; + + IF DATALENGTH(@tmpStr) = 0 + BREAK + END + + -- pulisco da caratteri NON voluti + --SET @str_out = REPLACE(@str_out, char(13), '') ; -- carriage return + --SET @str_out = REPLACE(@str_out, char(10), '') ; -- line feed + --SET @str_out = REPLACE(@str_out, char(9), '') ; -- tab + --SET @str_out = LTRIM ( RTRIM (@str_out) ) ; -- blank + END + ELSE + SET @str_out = NULL ; + + RETURN @str_out + +END GO PRINT N'Creating [dbo].[f_dtFromRaw]...'; @@ -5056,115 +5121,52 @@ BEGIN END GO -PRINT N'Creating [dbo].[f_getSubstring]...'; - - -GO --- ================================================================ --- Author : Steamware --- Create date: 2014-01-17 --- --- Description: Data una stringa con una serie di valori separati da un separatore ( es. ; ) --- ritorna l'elemento nella posizione richiesta --- --- esempio : SELECT dbo.f_GetSubstring('asda-fff-bbb','-' , 2) --- ================================================================ -CREATE FUNCTION [dbo].[f_getSubstring] -( - @str_in NVARCHAR(4000), @separator NVARCHAR(4)= '-', @PosizValue INT = 1 -) -RETURNS NVARCHAR(4000) -AS -BEGIN - - DECLARE @Occurrences INT, - @Counter INT, - @tmpStr NVARCHAR(4000), - @str_out NVARCHAR(4000) - - IF RIGHT(@str_in, DATALENGTH(@separator)/2 ) <> @separator - SET @str_out = @str_in + @separator ; - ELSE - SET @str_out = @str_in ; - - -- calcolo il numero di elementi della nella stringa - SET @Occurrences = ( (DATALENGTH( REPLACE(@str_out, @separator, @separator+'#')) - DATALENGTH(@str_out)) ) / 2 - - -- se l'elemento richiesto esiste proseguo altrimenti ritorno NULL - IF @Occurrences >= @PosizValue AND @PosizValue <> 0 - BEGIN - - SET @tmpStr = @str_out ; - SET @Counter = 1 ; - - WHILE @Counter <= @PosizValue - BEGIN - SET @Counter = @Counter + 1 ; - SET @str_out = SUBSTRING( @tmpStr, 1, CHARINDEX(@separator,@tmpStr) - 1) ; - -- metto via il resto della stringa - SET @tmpStr = SUBSTRING( @tmpStr, CHARINDEX(@separator,@tmpStr) + DATALENGTH(@separator)/2, 4000) ; - - IF DATALENGTH(@tmpStr) = 0 - BREAK - END - - -- pulisco da caratteri NON voluti - --SET @str_out = REPLACE(@str_out, char(13), '') ; -- carriage return - --SET @str_out = REPLACE(@str_out, char(10), '') ; -- line feed - --SET @str_out = REPLACE(@str_out, char(9), '') ; -- tab - --SET @str_out = LTRIM ( RTRIM (@str_out) ) ; -- blank - END - ELSE - SET @str_out = NULL ; - - RETURN @str_out - -END -GO -PRINT N'Creating [dbo].[f_getNewCodQuote]...'; +PRINT N'Creating [dbo].[f_prt_getParameter]...'; GO -- ============================================= --- Author: S.E.Locatelli --- Create date: 2014.02.21 --- Description: Retituisce un codice offerta valido da yyMMdd + incr +-- Author: G:A:R +-- Create date: +-- Description: estrazione valore del paramento passato -- ============================================= -CREATE FUNCTION [dbo].[f_getNewCodQuote] +CREATE FUNCTION f_prt_getParameter ( + @par AS VARCHAR(50) + ,@val AS VARCHAR(50) + ,@endSepar AS VARCHAR(10) = '&' ) -RETURNS INT +RETURNS VARCHAR(50) AS BEGIN - DECLARE @output INT - DECLARE @oggi DATETIME = GETDATE() - - - SELECT @output = ISNULL(MAX(CodQuote) + 1,CAST(RIGHT(YEAR(@oggi),2) AS NVARCHAR) + dbo.f_padLeft(MONTH(@oggi), 2,'0') + dbo.f_padLeft(DAY(@oggi), 2,'0')+'0001') - FROM QuoteList - WHERE codquote LIKE CAST(RIGHT(YEAR(@oggi),2) AS NVARCHAR) + dbo.f_padLeft(MONTH(@oggi), 2,'0') + dbo.f_padLeft(DAY(@oggi), 2,'0') + '%' - AND (QuoteType = 'Q' OR QuoteType = 'S') + DECLARE @Result VARCHAR(50) + DECLARE @Inizio INT; + DECLARE @Fine INT; - RETURN @output + SET @par = '%'+ @par + '=%' -- '%QuoteType=%' - /* altra modalità (valutare...) - -- calcolo prox valori "free" x cod Quote (QuoteRev parte a zero...) - SELECT @CodQuote = ISNULL(CodQuote, 0) - FROM QuoteList - WHERE QuoteType = 'Q' - AND CodQuote LIKE dbo.fnFormatDate (getdate(), 'YYMMDD') +'%' + --;WITH CTE AS + --( + -- SELECT *, ( PATINDEX(@campo , Chiave) + LEN(@campo) - 2 ) As Inizio , CHARINDEX ( '&' ,Chiave , PATINDEX(@campo , Chiave) ) As Fine + -- FROM dbo.ReportPrintTicket + -- WHERE Ticket = 1 AND PATINDEX(@campo , Chiave) > 0 + --) - -- se è vuoto prendo primo valore... - IF(@CodQuote = 0) - BEGIN - SELECT @CodQuote = dbo.fnFormatDate (getdate(), 'YYMMDD0000') - END - - - */ + SET @Inizio = PATINDEX(@par , @val ) + IF @Inizio > 0 + BEGIN + SET @Inizio = @Inizio + LEN(@par) - 2 + SET @Fine = CASE WHEN ( CHARINDEX ( @endSepar , @val , @Inizio ) ) = 0 + THEN LEN(@val) + ELSE CHARINDEX ( @endSepar , @val , @Inizio ) + END ; + + SELECT @Result = SUBSTRING( @val, @Inizio, @Fine-@Inizio ) + END + RETURN @Result END GO PRINT N'Creating [dbo].[fnFormatDate]...'; @@ -5214,52 +5216,50 @@ BEGIN RETURN @StringDate END GO -PRINT N'Creating [dbo].[f_prt_getParameter]...'; +PRINT N'Creating [dbo].[f_getNewCodQuote]...'; GO -- ============================================= --- Author: G:A:R --- Create date: --- Description: estrazione valore del paramento passato +-- Author: S.E.Locatelli +-- Create date: 2014.02.21 +-- Description: Retituisce un codice offerta valido da yyMMdd + incr -- ============================================= -CREATE FUNCTION f_prt_getParameter +CREATE FUNCTION [dbo].[f_getNewCodQuote] ( - @par AS VARCHAR(50) - ,@val AS VARCHAR(50) - ,@endSepar AS VARCHAR(10) = '&' ) -RETURNS VARCHAR(50) +RETURNS INT AS BEGIN - DECLARE @Result VARCHAR(50) - DECLARE @Inizio INT; - DECLARE @Fine INT; + DECLARE @output INT + DECLARE @oggi DATETIME = GETDATE() + + + SELECT @output = ISNULL(MAX(CodQuote) + 1,CAST(RIGHT(YEAR(@oggi),2) AS NVARCHAR) + dbo.f_padLeft(MONTH(@oggi), 2,'0') + dbo.f_padLeft(DAY(@oggi), 2,'0')+'0001') + FROM QuoteList + WHERE codquote LIKE CAST(RIGHT(YEAR(@oggi),2) AS NVARCHAR) + dbo.f_padLeft(MONTH(@oggi), 2,'0') + dbo.f_padLeft(DAY(@oggi), 2,'0') + '%' + AND (QuoteType = 'Q' OR QuoteType = 'S') - SET @par = '%'+ @par + '=%' -- '%QuoteType=%' + RETURN @output - --;WITH CTE AS - --( - -- SELECT *, ( PATINDEX(@campo , Chiave) + LEN(@campo) - 2 ) As Inizio , CHARINDEX ( '&' ,Chiave , PATINDEX(@campo , Chiave) ) As Fine - -- FROM dbo.ReportPrintTicket - -- WHERE Ticket = 1 AND PATINDEX(@campo , Chiave) > 0 - --) + /* altra modalità (valutare...) + -- calcolo prox valori "free" x cod Quote (QuoteRev parte a zero...) + SELECT @CodQuote = ISNULL(CodQuote, 0) + FROM QuoteList + WHERE QuoteType = 'Q' + AND CodQuote LIKE dbo.fnFormatDate (getdate(), 'YYMMDD') +'%' - SET @Inizio = PATINDEX(@par , @val ) + -- se è vuoto prendo primo valore... + IF(@CodQuote = 0) + BEGIN + SELECT @CodQuote = dbo.fnFormatDate (getdate(), 'YYMMDD0000') + END + + + */ - IF @Inizio > 0 - BEGIN - SET @Inizio = @Inizio + LEN(@par) - 2 - SET @Fine = CASE WHEN ( CHARINDEX ( @endSepar , @val , @Inizio ) ) = 0 - THEN LEN(@val) - ELSE CHARINDEX ( @endSepar , @val , @Inizio ) - END ; - - SELECT @Result = SUBSTRING( @val, @Inizio, @Fine-@Inizio ) - END - RETURN @Result END GO PRINT N'Creating [dbo].[f_getDataCodPackag]...'; @@ -5335,6 +5335,16 @@ BEGIN RETURN END GO +PRINT N'Creating [dbo].[v_selItems]...'; + + +GO +CREATE VIEW dbo.v_selItems +AS +SELECT CodItem AS value, CodItem + ' - ' + ItemDescr AS label +FROM dbo.ItemDet +WHERE (CodItem <> '') +GO PRINT N'Creating [dbo].[v_selClient]...'; @@ -5345,6 +5355,248 @@ SELECT CodClient AS value, CASE WHEN LEN(ClientName) > 40 THEN SUBSTRING( FROM dbo.ClientDet WHERE (CodClient <> '') GO +PRINT N'Creating [dbo].[v_QuoteFull_Q]...'; + + +GO +CREATE VIEW dbo.v_QuoteFull_Q +AS +SELECT Vers + , QuoteType + , CodQuote + , QuoteRev + , IdxQState + , CodClient + , ClientName + , CodItem + , CodItemGroup + , RawMat + , UnitWeight + , BatchQty + , CodInco + , TranspZone + , KeyAM + , Note + , PriceOff + , CodClientAssoc + , ClientNameAssoc + , ItemDescr + , CodifProfilo + , ClasseMerc + , TipoDies + , CodDiesGroup + , DiamDies + , HoleNumDies + , DiesPrice + , DiesExpLife + , DiesEOLife + , DiesByClass + , NumDiesInList + , NumDiesExaust + , CodPlant + , KeyAMIL + , KgTeo + , NumSMED + , QuotaMan + , PRMWeight + , PWeight + , PTare + , LivPackage + , LivPackageDett + , RawMatCost + , RawMatExtraCost + , RawMatFullCost + , CodPackag + , PkgDesc + , FSR + , ProvvCost + , EECost + , GasCost + , DiesCost + , PackCost + , TranspCost + , SellCost01 + , RefCost01 + , SellCost04 + , RefCost04 + , WSR01 + , MSR01 + , NetProd01 + , FC4UG01 + , VC4UG01 + , OH4UG01 + , SC4UG01 + , DSR + , NetProd04 + , FC4UG04 + , VC4UG04 + , FVC + , Charge + , FVC + RawMatFullCost AS P_FVC + , FC4UG01 + OH4UG01 AS CPS + , FC4UG01 + OH4UG01 + FVC + RawMatFullCost AS P_CPS + , FC4UG04 + FVC + RawMatFullCost AS P_FC4UG04 + , FVC + FC4UG01 + OH4UG01 + FC4UG04 AS FullCost + , FVC + FC4UG01 + OH4UG01 + FC4UG04 + RawMatFullCost AS P_FullCost + , Charge * (FVC + FC4UG01 + OH4UG01 + FC4UG04) AS MinPrice + , Charge * (FVC + FC4UG01 + OH4UG01 + FC4UG04) + RawMatFullCost AS P_MinPrice + , PriceOff + RawMatFullCost AS P_PriceOff + , PriceOff - (FVC + FC4UG01 + OH4UG01 + FC4UG04) AS NetMar + , CASE + WHEN (FC4UG01 + OH4UG01 + FC4UG04) = 0 + THEN 0 + ELSE (PriceOff - FVC) / (FC4UG01 + OH4UG01 + FC4UG04) + END AS FCShield + , CASE + WHEN PWeight = 0 + THEN 0 + ELSE (PRMWeight - PTare) * (PriceOff + RawMatFullCost) / PWeight + END AS PckSur + , valid + , errorScore + , DiesPrice_sim + , SamplePrice + , DiesFullCost + , DiesPriceClientQuote + , DiesTecLife + , DiesCommLife + , MonthSalesPrev + , SalesPrevCost + , DiesFinCost + , ClientQuoteReven + , ExtraDiscountDies + , WSR01_sim + , MSR01_sim + , NetProd01_sim + , NetProd04_sim + , DSR_sim + , PriceOff - (FVC + FC4UG01 + OH4UG01 + FC4UG04) - ExtraDiscountDies AS NetMar_sim + , CASE + WHEN (FC4UG01 + OH4UG01 + FC4UG04) = 0 + THEN 0 + ELSE (PriceOff - FVC - ExtraDiscountDies) / (FC4UG01 + OH4UG01 + FC4UG04) + END AS FCShield_sim + , Charge * (FVC + FC4UG01 + OH4UG01 + FC4UG04) + ExtraDiscountDies AS MinPrice_sim + , Charge * (FVC + FC4UG01 + OH4UG01 + FC4UG04) + RawMatFullCost + ExtraDiscountDies AS P_MinPrice_sim +FROM dbo.QuoteFull_S + +UNION + +SELECT Vers + , QuoteType + , CodQuote + , QuoteRev + , IdxQState + , CodClient + , ClientName + , CodItem + , CodItemGroup + , RawMat + , UnitWeight + , BatchQty + , CodInco + , TranspZone + , KeyAM + , Note + , PriceOff + , CodClientAssoc + , ClientNameAssoc + , ItemDescr + , CodifProfilo + , ClasseMerc + , TipoDies + , CodDiesGroup + , DiamDies + , HoleNumDies + , DiesPrice + , DiesExpLife + , DiesEOLife + , DiesByClass + , NumDiesInList + , NumDiesExaust + , CodPlant + , KeyAMIL + , KgTeo + , NumSMED + , QuotaMan + , PRMWeight + , PWeight + , PTare + , LivPackage + , LivPackageDett + , RawMatCost + , RawMatExtraCost + , RawMatFullCost + , CodPackag + , PkgDesc + , FSR + , ProvvCost + , EECost + , GasCost + , DiesCost + , PackCost + , TranspCost + , SellCost01 + , RefCost01 + , SellCost04 + , RefCost04 + , WSR01 + , MSR01 + , NetProd01 + , FC4UG01 + , VC4UG01 + , OH4UG01 + , SC4UG01 + , DSR + , NetProd04 + , FC4UG04 + , VC4UG04 + , FVC + , Charge + , FVC + RawMatFullCost AS P_FVC + , FC4UG01 + OH4UG01 AS CPS + , FC4UG01 + OH4UG01 + FVC + RawMatFullCost AS P_CPS + , FC4UG04 + FVC + RawMatFullCost AS P_FC4UG04 + , FVC + FC4UG01 + OH4UG01 + FC4UG04 AS FullCost + , FVC + FC4UG01 + OH4UG01 + FC4UG04 + RawMatFullCost AS P_FullCost + , Charge * (FVC + FC4UG01 + OH4UG01 + FC4UG04) AS MinPrice + , Charge * (FVC + FC4UG01 + OH4UG01 + FC4UG04) + RawMatFullCost AS P_MinPrice + , PriceOff + RawMatFullCost AS P_PriceOff + , PriceOff - (FVC + FC4UG01 + OH4UG01 + FC4UG04) AS NetMar + , CASE + WHEN (FC4UG01 + OH4UG01 + FC4UG04) = 0 + THEN 0 + ELSE (PriceOff - FVC) / (FC4UG01 + OH4UG01 + FC4UG04) + END AS FCShield + , CASE + WHEN PWeight = 0 + THEN 0 + ELSE (PRMWeight - PTare) * (PriceOff + RawMatFullCost) / PWeight + END AS PckSur + , valid + , errorScore + , 0.0 AS DiesPrice_sim + , 0.0 AS SamplePrice + , 0.0 AS DiesFullCost + , 0.0 AS DiesPriceClientQuote + , 0.0 AS DiesTecLife + , 0.0 AS DiesCommLife + , 0.0 AS MonthSalesPrev + , 0.0 AS SalesPrevCost + , 0.0 AS DiesFinCost + , 0.0 AS ClientQuoteReven + , 0.0 AS ExtraDiscountDies + , 0.0 AS WSR01_sim + , 0.0 AS MSR01_sim + , 0.0 AS NetProd01_sim + , 0.0 AS NetProd04_sim + , 0.0 AS DSR_sim + , 0.0 AS NetMar_sim + , 0.0 AS FCShield_sim + , 0.0 AS MinPrice_sim + , 0.0 AS P_MinPrice_sim +FROM dbo.QuoteFull_Q +GO PRINT N'Creating [dbo].[v_selIncoterms]...'; @@ -5374,15 +5626,65 @@ SELECT RawMat AS value, RawMat AS label FROM dbo.RawMatDet WHERE (RawMat <> '') GO -PRINT N'Creating [dbo].[v_selItems]...'; +PRINT N'Creating [dbo].[v_selPackage]...'; GO -CREATE VIEW dbo.v_selItems +CREATE VIEW dbo.v_selPackage AS -SELECT CodItem AS value, CodItem + ' - ' + ItemDescr AS label -FROM dbo.ItemDet -WHERE (CodItem <> '') +SELECT CodPackag AS value, PackagDesc AS label +FROM dbo.PackagDet +GO +PRINT N'Creating [dbo].[v_selPlant]...'; + + +GO +CREATE VIEW dbo.v_selPlant +AS +SELECT CodPlant AS value, Descript AS label +FROM dbo.PlantsDet +GO +PRINT N'Creating [dbo].[v_StdCostList]...'; + + +GO +CREATE VIEW dbo.v_StdCostList +AS +SELECT LEFT(CodQuote, 6) AS DataRif, Class01, Class02, CodItem, RawMat, CodPlant, CodDiesGroup, CodPackag, batchQty, CodInco, RawMatFullCost, FVC, FullCost +FROM dbo.QuoteFull_C +GO +PRINT N'Creating [dbo].[v_listinoArticoli]...'; + + +GO +CREATE VIEW dbo.v_listinoArticoli +AS +SELECT DISTINCT + GETDATE() AS DataRif, 'C' AS QuoteType, '' AS CodClient, dbo.DiesDet.CodItem, CASE WHEN dbo.ProductionLog.RawMat = '' THEN '6060' ELSE dbo.ProductionLog.RawMat END AS RawMat, + 2.00 + dbo.RawMatDet.ExtraMatCost AS RawMatCost, 1000 AS batchQty, 'EXW' AS CodInco +FROM dbo.DiesDet INNER JOIN + dbo.ProductionLog ON dbo.DiesDet.CodDies = dbo.ProductionLog.CodDies INNER JOIN + dbo.RawMatDet ON dbo.ProductionLog.RawMat = dbo.RawMatDet.RawMat +GO +PRINT N'Creating [dbo].[v_MarginReportStats]...'; + + +GO +CREATE VIEW dbo.v_MarginReportStats +AS +SELECT MIN(OrdDate) AS FromDate, MAX(OrdDate) AS ToDate, COUNT(*) AS NumOrderRows, COUNT(DISTINCT OrdNum) AS NumOrders, COUNT(DISTINCT CodItem) AS NumItem, COUNT(DISTINCT CodClient) + AS NumClients +FROM dbo.QuoteFull_R +GO +PRINT N'Creating [dbo].[v_MarginReportStatsNewData]...'; + + +GO +CREATE VIEW dbo.[v_MarginReportStatsNewData] +AS +SELECT MIN(OrdDate) AS FromDate, MAX(OrdDate) AS ToDate, COUNT(*) AS NumOrderRows, COUNT(DISTINCT OrdNum) AS NumOrders, COUNT(DISTINCT CodItem) AS NumItem, COUNT(DISTINCT CodClient) + AS NumClients +FROM ext.OrdersHistRaw GO PRINT N'Creating [dbo].[v_pivot]...'; @@ -5633,317 +5935,6 @@ AS SELECT DISTINCT CONVERT(date, LEFT(CodQuote, 6)) AS label, LEFT(CodQuote, 6) AS value FROM dbo.QuoteFull_C GO -PRINT N'Creating [dbo].[v_selPackage]...'; - - -GO -CREATE VIEW dbo.v_selPackage -AS -SELECT CodPackag AS value, PackagDesc AS label -FROM dbo.PackagDet -GO -PRINT N'Creating [dbo].[v_selPlant]...'; - - -GO -CREATE VIEW dbo.v_selPlant -AS -SELECT CodPlant AS value, Descript AS label -FROM dbo.PlantsDet -GO -PRINT N'Creating [dbo].[v_StdCostList]...'; - - -GO -CREATE VIEW dbo.v_StdCostList -AS -SELECT LEFT(CodQuote, 6) AS DataRif, Class01, Class02, CodItem, RawMat, CodPlant, CodDiesGroup, CodPackag, batchQty, CodInco, RawMatFullCost, FVC, FullCost -FROM dbo.QuoteFull_C -GO -PRINT N'Creating [dbo].[v_listinoArticoli]...'; - - -GO -CREATE VIEW dbo.v_listinoArticoli -AS -SELECT DISTINCT - GETDATE() AS DataRif, 'C' AS QuoteType, '' AS CodClient, dbo.DiesDet.CodItem, CASE WHEN dbo.ProductionLog.RawMat = '' THEN '6060' ELSE dbo.ProductionLog.RawMat END AS RawMat, - 2.00 + dbo.RawMatDet.ExtraMatCost AS RawMatCost, 1000 AS batchQty, 'EXW' AS CodInco -FROM dbo.DiesDet INNER JOIN - dbo.ProductionLog ON dbo.DiesDet.CodDies = dbo.ProductionLog.CodDies INNER JOIN - dbo.RawMatDet ON dbo.ProductionLog.RawMat = dbo.RawMatDet.RawMat -GO -PRINT N'Creating [dbo].[v_MarginReportStats]...'; - - -GO -CREATE VIEW dbo.v_MarginReportStats -AS -SELECT MIN(OrdDate) AS FromDate, MAX(OrdDate) AS ToDate, COUNT(*) AS NumOrderRows, COUNT(DISTINCT OrdNum) AS NumOrders, COUNT(DISTINCT CodItem) AS NumItem, COUNT(DISTINCT CodClient) - AS NumClients -FROM dbo.QuoteFull_R -GO -PRINT N'Creating [dbo].[v_MarginReportStatsNewData]...'; - - -GO -CREATE VIEW dbo.[v_MarginReportStatsNewData] -AS -SELECT MIN(OrdDate) AS FromDate, MAX(OrdDate) AS ToDate, COUNT(*) AS NumOrderRows, COUNT(DISTINCT OrdNum) AS NumOrders, COUNT(DISTINCT CodItem) AS NumItem, COUNT(DISTINCT CodClient) - AS NumClients -FROM ext.OrdersHistRaw -GO -PRINT N'Creating [dbo].[v_QuoteFull_Q]...'; - - -GO -CREATE VIEW dbo.v_QuoteFull_Q -AS -SELECT Vers - , QuoteType - , CodQuote - , QuoteRev - , IdxQState - , CodClient - , ClientName - , CodItem - , CodItemGroup - , RawMat - , UnitWeight - , BatchQty - , CodInco - , TranspZone - , KeyAM - , Note - , PriceOff - , CodClientAssoc - , ClientNameAssoc - , ItemDescr - , CodifProfilo - , ClasseMerc - , TipoDies - , CodDiesGroup - , DiamDies - , HoleNumDies - , DiesPrice - , DiesExpLife - , DiesEOLife - , DiesByClass - , NumDiesInList - , NumDiesExaust - , CodPlant - , KeyAMIL - , KgTeo - , NumSMED - , QuotaMan - , PRMWeight - , PWeight - , PTare - , LivPackage - , LivPackageDett - , RawMatCost - , RawMatExtraCost - , RawMatFullCost - , CodPackag - , PkgDesc - , FSR - , ProvvCost - , EECost - , GasCost - , DiesCost - , PackCost - , TranspCost - , SellCost01 - , RefCost01 - , SellCost04 - , RefCost04 - , WSR01 - , MSR01 - , NetProd01 - , FC4UG01 - , VC4UG01 - , OH4UG01 - , SC4UG01 - , DSR - , NetProd04 - , FC4UG04 - , VC4UG04 - , FVC - , Charge - , FVC + RawMatFullCost AS P_FVC - , FC4UG01 + OH4UG01 AS CPS - , FC4UG01 + OH4UG01 + FVC + RawMatFullCost AS P_CPS - , FC4UG04 + FVC + RawMatFullCost AS P_FC4UG04 - , FVC + FC4UG01 + OH4UG01 + FC4UG04 AS FullCost - , FVC + FC4UG01 + OH4UG01 + FC4UG04 + RawMatFullCost AS P_FullCost - , Charge * (FVC + FC4UG01 + OH4UG01 + FC4UG04) AS MinPrice - , Charge * (FVC + FC4UG01 + OH4UG01 + FC4UG04) + RawMatFullCost AS P_MinPrice - , PriceOff + RawMatFullCost AS P_PriceOff - , PriceOff - (FVC + FC4UG01 + OH4UG01 + FC4UG04) AS NetMar - , CASE - WHEN (FC4UG01 + OH4UG01 + FC4UG04) = 0 - THEN 0 - ELSE (PriceOff - FVC) / (FC4UG01 + OH4UG01 + FC4UG04) - END AS FCShield - , CASE - WHEN PWeight = 0 - THEN 0 - ELSE (PRMWeight - PTare) * (PriceOff + RawMatFullCost) / PWeight - END AS PckSur - , valid - , errorScore - , DiesPrice_sim - , SamplePrice - , DiesFullCost - , DiesPriceClientQuote - , DiesTecLife - , DiesCommLife - , MonthSalesPrev - , SalesPrevCost - , DiesFinCost - , ClientQuoteReven - , ExtraDiscountDies - , WSR01_sim - , MSR01_sim - , NetProd01_sim - , NetProd04_sim - , DSR_sim - , PriceOff - (FVC + FC4UG01 + OH4UG01 + FC4UG04) - ExtraDiscountDies AS NetMar_sim - , CASE - WHEN (FC4UG01 + OH4UG01 + FC4UG04) = 0 - THEN 0 - ELSE (PriceOff - FVC - ExtraDiscountDies) / (FC4UG01 + OH4UG01 + FC4UG04) - END AS FCShield_sim - , Charge * (FVC + FC4UG01 + OH4UG01 + FC4UG04) + ExtraDiscountDies AS MinPrice_sim - , Charge * (FVC + FC4UG01 + OH4UG01 + FC4UG04) + RawMatFullCost + ExtraDiscountDies AS P_MinPrice_sim -FROM dbo.QuoteFull_S - -UNION - -SELECT Vers - , QuoteType - , CodQuote - , QuoteRev - , IdxQState - , CodClient - , ClientName - , CodItem - , CodItemGroup - , RawMat - , UnitWeight - , BatchQty - , CodInco - , TranspZone - , KeyAM - , Note - , PriceOff - , CodClientAssoc - , ClientNameAssoc - , ItemDescr - , CodifProfilo - , ClasseMerc - , TipoDies - , CodDiesGroup - , DiamDies - , HoleNumDies - , DiesPrice - , DiesExpLife - , DiesEOLife - , DiesByClass - , NumDiesInList - , NumDiesExaust - , CodPlant - , KeyAMIL - , KgTeo - , NumSMED - , QuotaMan - , PRMWeight - , PWeight - , PTare - , LivPackage - , LivPackageDett - , RawMatCost - , RawMatExtraCost - , RawMatFullCost - , CodPackag - , PkgDesc - , FSR - , ProvvCost - , EECost - , GasCost - , DiesCost - , PackCost - , TranspCost - , SellCost01 - , RefCost01 - , SellCost04 - , RefCost04 - , WSR01 - , MSR01 - , NetProd01 - , FC4UG01 - , VC4UG01 - , OH4UG01 - , SC4UG01 - , DSR - , NetProd04 - , FC4UG04 - , VC4UG04 - , FVC - , Charge - , FVC + RawMatFullCost AS P_FVC - , FC4UG01 + OH4UG01 AS CPS - , FC4UG01 + OH4UG01 + FVC + RawMatFullCost AS P_CPS - , FC4UG04 + FVC + RawMatFullCost AS P_FC4UG04 - , FVC + FC4UG01 + OH4UG01 + FC4UG04 AS FullCost - , FVC + FC4UG01 + OH4UG01 + FC4UG04 + RawMatFullCost AS P_FullCost - , Charge * (FVC + FC4UG01 + OH4UG01 + FC4UG04) AS MinPrice - , Charge * (FVC + FC4UG01 + OH4UG01 + FC4UG04) + RawMatFullCost AS P_MinPrice - , PriceOff + RawMatFullCost AS P_PriceOff - , PriceOff - (FVC + FC4UG01 + OH4UG01 + FC4UG04) AS NetMar - , CASE - WHEN (FC4UG01 + OH4UG01 + FC4UG04) = 0 - THEN 0 - ELSE (PriceOff - FVC) / (FC4UG01 + OH4UG01 + FC4UG04) - END AS FCShield - , CASE - WHEN PWeight = 0 - THEN 0 - ELSE (PRMWeight - PTare) * (PriceOff + RawMatFullCost) / PWeight - END AS PckSur - , valid - , errorScore - , 0.0 AS DiesPrice_sim - , 0.0 AS SamplePrice - , 0.0 AS DiesFullCost - , 0.0 AS DiesPriceClientQuote - , 0.0 AS DiesTecLife - , 0.0 AS DiesCommLife - , 0.0 AS MonthSalesPrev - , 0.0 AS SalesPrevCost - , 0.0 AS DiesFinCost - , 0.0 AS ClientQuoteReven - , 0.0 AS ExtraDiscountDies - , 0.0 AS WSR01_sim - , 0.0 AS MSR01_sim - , 0.0 AS NetProd01_sim - , 0.0 AS NetProd04_sim - , 0.0 AS DSR_sim - , 0.0 AS NetMar_sim - , 0.0 AS FCShield_sim - , 0.0 AS MinPrice_sim - , 0.0 AS P_MinPrice_sim -FROM dbo.QuoteFull_Q -GO -PRINT N'Creating [dbo].[v_selListVal]...'; - - -GO -CREATE VIEW dbo.v_selListVal -AS -SELECT TableName + '-' + FieldName + '-' + value AS value, label -FROM dbo.ListValues -GO PRINT N'Creating [dbo].[v_MarginReport]...'; @@ -5960,6 +5951,39 @@ SELECT Vers, CodClient, CodItem, RawMat, BatchQty, CodInco, KeyAM, CodDie OrdRow, OrdPrice, PriceOff AS OrdTrasf, OrdQty FROM dbo.QuoteFull_R GO +PRINT N'Creating [dbo].[v_selListVal]...'; + + +GO +CREATE VIEW dbo.v_selListVal +AS +SELECT TableName + '-' + FieldName + '-' + value AS value, label +FROM dbo.ListValues +GO +PRINT N'Creating [ext].[v_ClientDetRcd]...'; + + +GO +CREATE VIEW ext.v_ClientDetRcd +AS +SELECT ext.RcdClient.CodClientRcd AS CodClient, ext.RcdClient.ClientNameRcd AS ClientName, ext.RcdClient.CodAgRcd AS CodAg, dbo.ClientDet.ZipCode, dbo.ClientDet.City, dbo.ClientDet.State, dbo.ClientDet.Nation, + dbo.ClientDet.TranspZone +FROM dbo.ClientDet INNER JOIN + ext.RcdClient ON dbo.ClientDet.CodClient = ext.RcdClient.CodClient +GO +PRINT N'Creating [ext].[v_ItemDetRcd]...'; + + +GO +CREATE VIEW ext.v_ItemDetRcd +AS +SELECT ext.RcdItem.CodItemRcd AS CodItem, ext.RcdItem.ItemDescrRcd AS ItemDescr, ext.RcdItem.CodPlantRcd AS CodPlant, dbo.ItemDet.UnitWeight, dbo.ItemDet.CodItemGroup, + ext.RcdClass01.CodClass01Rcd AS Class01, ext.RcdClass02.CodClass02Rcd AS Class02, '' AS Class03, '' AS Class04, '' AS Class05 +FROM dbo.ItemDet INNER JOIN + ext.RcdItem ON dbo.ItemDet.CodItem = ext.RcdItem.CodItem INNER JOIN + ext.RcdClass01 ON dbo.ItemDet.Class01 = ext.RcdClass01.CodClass01 INNER JOIN + ext.RcdClass02 ON dbo.ItemDet.Class02 = ext.RcdClass02.CodClass02 +GO PRINT N'Creating [ext].[v_MarginReportRcd]...'; @@ -5985,30 +6009,6 @@ FROM dbo.v_MarginReport INNER JOIN ext.RcdItem ON dbo.v_MarginReport.CodItem = ext.RcdItem.CodItem INNER JOIN ext.RcdPlants ON dbo.v_MarginReport.CodPlant = ext.RcdPlants.CodPlant GO -PRINT N'Creating [ext].[v_ItemDetRcd]...'; - - -GO -CREATE VIEW ext.v_ItemDetRcd -AS -SELECT ext.RcdItem.CodItemRcd AS CodItem, ext.RcdItem.ItemDescrRcd AS ItemDescr, ext.RcdItem.CodPlantRcd AS CodPlant, dbo.ItemDet.UnitWeight, dbo.ItemDet.CodItemGroup, - ext.RcdClass01.CodClass01Rcd AS Class01, ext.RcdClass02.CodClass02Rcd AS Class02, '' AS Class03, '' AS Class04, '' AS Class05 -FROM dbo.ItemDet INNER JOIN - ext.RcdItem ON dbo.ItemDet.CodItem = ext.RcdItem.CodItem INNER JOIN - ext.RcdClass01 ON dbo.ItemDet.Class01 = ext.RcdClass01.CodClass01 INNER JOIN - ext.RcdClass02 ON dbo.ItemDet.Class02 = ext.RcdClass02.CodClass02 -GO -PRINT N'Creating [ext].[v_ClientDetRcd]...'; - - -GO -CREATE VIEW ext.v_ClientDetRcd -AS -SELECT ext.RcdClient.CodClientRcd AS CodClient, ext.RcdClient.ClientNameRcd AS ClientName, ext.RcdClient.CodAgRcd AS CodAg, dbo.ClientDet.ZipCode, dbo.ClientDet.City, dbo.ClientDet.State, dbo.ClientDet.Nation, - dbo.ClientDet.TranspZone -FROM dbo.ClientDet INNER JOIN - ext.RcdClient ON dbo.ClientDet.CodClient = ext.RcdClient.CodClient -GO PRINT N'Creating [dbo].[stp_packageCost]...'; @@ -6077,6 +6077,76 @@ BEGIN -- faccio ultimi calcoli! SELECT @PackCost = @RMCost / @Weight, @TareStRat = (@RMWeight - @Tare) / @Weight +END +GO +PRINT N'Creating [dbo].[stp_TD_upsert]...'; + + +GO + +-- ============================================= +-- Author: S.E. Locatelli +-- Create date: 2013.12.17 +-- Description: Crea TabDifett (tabella difettosità) +-- ============================================= +CREATE PROCEDURE [dbo].[stp_TD_upsert] +( + @dateFrom DATETIME, -- data da cui iniziare a caricare + @dateTo DATETIME -- data fino a cui caricare +) +AS +BEGIN + + SET XACT_ABORT ON; + BEGIN TRAN + + SET NOCOUNT ON; + + -- svuoto tabella... + TRUNCATE TABLE TabDifett + + -- riempio di nuovo valori! chiave AMI + INSERT INTO TabDifett + SELECT + dd.CodItem + '-' + pl.RawMat + '-' + pl.CodPlant as KeyAMI + , pl.ProcessNum + , dd.CodItem, pl.RawMat, pl.CodPlant + , SUM(NumOUT) as TotOUT + , SUM(NumIN) as TotIn + FROM ProductionLog pl INNER JOIN DiesDet dd ON pl.CodDies=dd.CodDies + WHERE pl.ProcessNum IN ('02', '04') + AND pl.okDi = 1 + -- and pl.EventType=1 + AND pl.EventStart BETWEEN @dateFrom AND @dateTo + GROUP BY dd.CodItem, pl.RawMat, pl.CodPlant, pl.ProcessNum + ORDER BY dd.CodItem, pl.RawMat, pl.ProcessNum--, SUM(NumOUT) DESC + + -- riempio di nuovo valori! chiave CMI + INSERT INTO TabDifett + SELECT + id.CodItemGroup + '-' + pl.RawMat + '-' + pl.CodPlant as KeyAMI + , pl.ProcessNum + , id.CodItemGroup, pl.RawMat, pl.CodPlant + , SUM(NumOUT) as TotOUT + , SUM(NumIN) as TotIn + FROM ProductionLog pl + INNER JOIN DiesDet dd ON pl.CodDies=dd.CodDies + INNER JOIN ItemDet id ON dd.CodItem = id.CodItem + WHERE pl.ProcessNum IN ('02', '04') + AND pl.okDi = 1 + -- and pl.EventType=1 + AND pl.EventStart BETWEEN @dateFrom AND @dateTo + GROUP BY id.CodItemGroup, pl.RawMat, pl.CodPlant, pl.ProcessNum + ORDER BY id.CodItemGroup, pl.RawMat, pl.ProcessNum--, SUM(NumOUT) DESC + + -- salvo nuova revisione dati di produzione... + INSERT INTO RevHistory + SELECT 'P', ISNULL(MAX(RevNum),0) + 1, GETDATE(), 'Aggiornamento dati di produzione x fasi 02/03 ' + CONVERT(NVARCHAR(20), @dateFrom, 120) + ' --> ' +CONVERT(NVARCHAR(20), @dateTo, 120) + FROM RevHistory + WHERE RevType = 'P' + + COMMIT TRAN + END GO PRINT N'Creating [dbo].[stp_esplodiVocab]...'; @@ -6137,6 +6207,92 @@ BEGIN END GO +PRINT N'Creating [dbo].[stp_VSItem_SearchLike]...'; + + +GO +-- ============================================= +-- Author: S.E. Locatelli +-- Create date: 2014.02.18 +-- Description: Ricerca items +-- ============================================= +CREATE PROCEDURE [dbo].stp_VSItem_SearchLike +( + @value NVARCHAR(50) +) + +AS +SET NOCOUNT ON; + +SELECT value + ,label +FROM v_selItems +WHERE (value LIKE '%' + @value + '%') + OR (label LIKE '%' + @value + '%') +ORDER BY value +GO +PRINT N'Creating [dbo].[stp_QL_fullDataSearch]...'; + + +GO +-- ============================================= +-- STORED PROCEDURE stp_QL_fullDataSearch +-- +-- Author: Steamware +-- Mod date: 2014.02.11 +-- Description: Recupera tutti i dati dalle tab QuoteList x avere schema con ricerca x cliente, item, materiale +-- ============================================= +CREATE PROCEDURE [dbo].[stp_QL_fullDataSearch] +( + @CodClient NVARCHAR(50) = '' + , @CodItem NVARCHAR(50) = '' + , @RawMat NVARCHAR(50) = '' + , @DataMin DATETIME + , @DataMax DATETIME + , @qtaMin INT = 0 + , @qtaMax INT = 999999 + , @QuoteType CHAR(1) = '*' + , @IdxQState INT = '-1' + , @search NVARCHAR(250) = '*' +) +AS +SET NOCOUNT ON + +-- cte x selezionare solo ultime revisioni... +;WITH myCte AS +( + SELECT QuoteType, CodQuote, MAX(QuoteRev) AS QuoteRev + FROM QuoteList + GROUP BY QuoteType, CodQuote +), +qfq_filt AS +( + SELECT * + FROM v_QuoteFull_Q + WHERE ClientName LIKE CASE WHEN @search <> '*' THEN '%'+@search+'%' ELSE ClientName END + OR RawMat LIKE CASE WHEN @search <> '*' THEN '%'+@search+'%' ELSE RawMat END + OR CodItem LIKE CASE WHEN @search <> '*' THEN '%'+@search+'%' ELSE CodItem END + OR CONVERT(NVARCHAR(30), CodQuote) LIKE CASE WHEN @search <> '*' THEN '%'+@search+'%' ELSE CONVERT(NVARCHAR(30), CodQuote) END +) +-- calcolo con aggiunta campi sommati... +SELECT vq.* +FROM qfq_filt vq + INNER JOIN myCte mc ON vq.QuoteType = mc.QuoteType AND vq.CodQuote = mc.CodQuote AND vq.QuoteRev = mc.QuoteRev +WHERE vq.CodClient = CASE WHEN ISNULL(@CodClient,'') = '' THEN vq.CodClient ELSE @CodClient END + AND vq.CodItem = CASE WHEN ISNULL(@CodItem,'') = '' THEN vq.CodItem ELSE @CodItem END + AND vq.RawMat = CASE WHEN ISNULL(@RawMat,'') = '' THEN vq.RawMat ELSE @RawMat END + AND vq.CodQuote BETWEEN CONVERT(NVARCHAR(30), @DataMin, 12)*10000 AND (CONVERT(NVARCHAR(30), @DataMax, 12) +1 )*10000 + AND vq.BatchQty BETWEEN @qtaMin AND @qtaMax + AND vq.QuoteType = CASE WHEN @QuoteType = '*' THEN vq.QuoteType ELSE @QuoteType END + AND vq.IdxQState = CASE WHEN @IdxQState = -1 THEN vq.IdxQState ELSE @IdxQState END + +-- AND vq.ClientName LIKE '%{0}%' OR RawMat LIKE '%{0}%' OR CodItem LIKE '%{0}%' OR CONVERT(CodQuote, 'System.String') LIKE '%{0}%' + + +ORDER BY CodQuote DESC + +RETURN +GO PRINT N'Creating [dbo].[stp_VSCli_SearchLike]...'; @@ -6924,713 +7080,6 @@ ORDER BY CodQuote DESC RETURN GO -PRINT N'Creating [dbo].[stp_QL_update_30_01]...'; - - -GO - --- ============================================= --- Author: Steamware --- Create date: 2014.01.22 --- Description: aggiorna le tabelle QuoteList con i dati selezionati dalla TabProdSc --- ============================================= -CREATE PROCEDURE [dbo].[stp_QL_update_30_01] -( - @QuoteType CHAR(1) = 'Q', - @CodQuote BIGINT = 0, - @QuoteRev INT = 0 -) -AS -BEGIN - - SET NOCOUNT ON; - - -- dichiaro valori da recuperare - DECLARE @strTemp NVARCHAR(50) = '' --stringa temporanea x variabili "locali" - - DECLARE @valid BIT - DECLARE @CodDiesGroup NVARCHAR(50) - DECLARE @CodPlant NVARCHAR(50) - DECLARE @CodPlantFix NVARCHAR(50) = '' - DECLARE @HoleNum INT - DECLARE @CodItem NVARCHAR(50) = '' --cod item - DECLARE @ItemDescr NVARCHAR(50) = '' -- descrizione item - DECLARE @KeyAM NVARCHAR(50) = '' - DECLARE @KeyAMI NVARCHAR(50) = '' - DECLARE @KeyAMIL NVARCHAR(50) = '' - DECLARE @NumSMED INT = 0 -- numero cambi - DECLARE @KgTeo DECIMAL(18, 6) = 0 -- kg totali - DECLARE @RawMat NVARCHAR(50) - DECLARE @ProdTeo DECIMAL(18,6) - DECLARE @ScTec DECIMAL(18,6) - DECLARE @BatchQty INT - DECLARE @MAC_SC DECIMAL(18,6) -- Messa a cento scarto cesoia - DECLARE @MAC_ST DECIMAL(18,6) -- Messa a cento scarto tecnico - DECLARE @MAC_IN DECIMAL(18,6) -- Messa a cento difettosità all'incestatura - DECLARE @MAC_IM DECIMAL(18,6) -- Messa a cento difettosità all'imballo - DECLARE @SSR DECIMAL(9,6) -- percentuale vendita rottame - DECLARE @DiesPrice DECIMAL(9,3) -- prezzo matrice - DECLARE @DiesEOLife DECIMAL(9,2) -- durata matrice - DECLARE @DiesExpLife DECIMAL(9,2) -- durata matrice - DECLARE @DiesPriceLife DECIMAL(18,6) -- Price/Life matrice - DECLARE @OCF01 DECIMAL(18,6) = 0 -- altri costi di fase 01 - DECLARE @VCF01 DECIMAL(18,6) = 0 -- costi variabili di fase 01 - DECLARE @VCF04 DECIMAL(18,6) = 0 -- costi variabili di fase 04 - DECLARE @SellCostF01 DECIMAL(18,6) = 0 -- costo vendita fase 01 - DECLARE @SellCostF04 DECIMAL(18,6) = 0 -- costo vendita fase 04 - DECLARE @RefCostF01 DECIMAL(18,6) = 0 -- costo rifusione fase 01 - DECLARE @RefCostF04 DECIMAL(18,6) = 0 -- costo rifusione fase 04 - -- IMBALLO - DECLARE @CodPackag NVARCHAR(50) = '0' -- codice dell'imballo - DECLARE @CodClient NVARCHAR(50) = '' -- codice cliente - DECLARE @NumImb DECIMAL(9,6) = 0 -- num imballatori - DECLARE @PkgDesc NVARCHAR(50) = '' -- descrizione imballo - DECLARE @PRMWeight DECIMAL(9,4) = 0 -- peso dell'imballo - DECLARE @PWeight DECIMAL(9,4) = 0 -- peso del pacco - DECLARE @PTare DECIMAL(9,4) = 0 -- media delal tara di imballo dichiarata - DECLARE @PCost DECIMAL(9,6) = 0 -- costo unitario dell'imballo (al kg) - DECLARE @PTareStRatio DECIMAL(9,4) = 0 -- coefficiente di recupero tara/prodotto - - -- TRASPORTI - DECLARE @TranspZone NVARCHAR(50) = '', -- codice ZONA - @TranspCost DECIMAL(9,6), -- costo di trasporto - @HasTC INT - - -- PROVVIGIONI - DECLARE @Provvig DECIMAL(9,6) -- provvigione agente - - -- default: validità è true! - SET @valid = 1 - - -- ================================================= - -- CREAZIONE TEMP TABLE - -- ================================================= - - -- elimino e ricreo #QuoteParam temp table... - IF OBJECT_ID('tempdb..#QuoteParam') IS NOT NULL - DROP TABLE #QuoteParam - - CREATE TABLE #QuoteParam - ( - [QuoteType] [char](1) NOT NULL, - [CodQuote] [bigint] NOT NULL, - [QuoteRev] [int] NOT NULL, - [NumP] [int] IDENTITY(1,1) NOT NULL, - [ProcessNum] [nvarchar](50) NOT NULL, - [Descr] [nvarchar](50) NOT NULL, - [Parameter] [nvarchar](100) NOT NULL, - --PRIMARY KEY - -- ( [NumP] ASC, [QuoteType] ASC, [CodQuote] ASC, [QuoteRev] ASC ) WITH (PAD_INDEX = ON, FILLFACTOR = 90 ) - ) - - -- elimino e ricreo #QuoteParam temp table... - IF OBJECT_ID('tempdb..#QuoteWorkInt') IS NOT NULL - DROP TABLE #QuoteWorkInt - - CREATE TABLE #QuoteWorkInt - ( - [QuoteType] [char](1) NOT NULL, - [CodQuote] [bigint] NOT NULL, - [QuoteRev] [int] NOT NULL, - [NumWI] [int] IDENTITY(1,1) NOT NULL, - [ProcessNum] [nvarchar](50) NOT NULL, - [CodPlant] [nvarchar](50) NOT NULL, - [Class01] [nvarchar](50) NOT NULL DEFAULT (''), - [Class02] [nvarchar](50) NOT NULL DEFAULT (''), - [Class03] [nvarchar](50) NOT NULL DEFAULT (''), - [Class04] [nvarchar](50) NOT NULL DEFAULT (''), - [Class05] [nvarchar](50) NOT NULL DEFAULT (''), - [NetProd] [decimal](9, 3) NOT NULL DEFAULT ((0)), - [WSR] [decimal](9, 8) NOT NULL DEFAULT ((0)), - [MSR] [decimal](9, 8) NOT NULL DEFAULT ((0)), - [DSR] [decimal](9, 8) NOT NULL DEFAULT ((0)), - [FC4UG] [decimal](9, 6) NOT NULL DEFAULT ((0)), - [VC4UG] [decimal](9, 6) NOT NULL DEFAULT ((0)), - [OH4UG] [decimal](9, 6) NOT NULL DEFAULT ((0)), - [SC4UG] [decimal](9, 6) NOT NULL DEFAULT ((0)), - [WYR] AS ((1)-[WSR]), - [MYR] AS ((1)-[MSR]), - [DYR] AS ((1)-[DSR]), - [WCR] AS ((1)/((1)-[WSR])), - [MCR] AS ((1)/((1)-[MSR])), - [DCR] AS ((1)/((1)-[DSR])), - [valid] [bit] NOT NULL DEFAULT((1)), - ) - - -- elimino e ricreo #QuoteParam temp table... - IF OBJECT_ID('tempdb..#QuoteOC') IS NOT NULL - DROP TABLE #QuoteOC - - CREATE TABLE #QuoteOC - ( - [QuoteType] [char](1) NOT NULL, - [CodQuote] [bigint] NOT NULL, - [QuoteRev] [int] NOT NULL, - [NumEx] [int] IDENTITY(1,1) NOT NULL, - [ProcessNum] [nvarchar](50) NOT NULL, - [CodPlant] [nvarchar](50) NOT NULL, - [Class01] [nvarchar](50) NOT NULL DEFAULT (''), - [Class02] [nvarchar](50) NOT NULL DEFAULT (''), - [Class03] [nvarchar](50) NOT NULL DEFAULT (''), - [Class04] [nvarchar](50) NOT NULL DEFAULT (''), - [Class05] [nvarchar](50) NOT NULL DEFAULT (''), - [TotQty] [decimal](18, 6) NOT NULL DEFAULT ((1)), - [TotCost] [decimal](18, 6) NOT NULL DEFAULT ((0)), - [Quota] [decimal](18, 6) NOT NULL DEFAULT ((1)), - [C4UG] AS (([TotCost]*[Quota])/[TotQty]), - [valid] [bit] NOT NULL DEFAULT ((1)) - ) - - -- =================================== - -- INIZIO TRANSAZIONE - -- =================================== - SET XACT_ABORT ON; - BEGIN TRAN - - --------------------------------------- - -- svuotamento iniziale - --------------------------------------- - - -- elimino lavorazioni esterne! - DELETE - FROM dbo.QuoteWorkExt - WHERE QuoteType = @QuoteType - AND CodQuote = @CodQuote - AND QuoteRev = @QuoteRev - - -- se ci sono eccezioni nella tab dell'anagrafico articoli imposto il codPlant desiderato - SET @CodPlantFix = ISNULL ( ( SELECT id.CodPlant FROM dbo.ItemDet id INNER JOIN dbo.QuoteList ql ON id.CodItem = ql.CodItem - WHERE ql.QuoteType = @QuoteType - AND ql.CodQuote = @CodQuote - AND ql.QuoteRev = @QuoteRev ), '' ) - - -- recupero da dati dell'offerta il valore del cliente - SELECT @CodClient = CodClient - FROM dbo.QuoteList - WHERE QuoteType = @QuoteType - AND CodQuote = @CodQuote - AND QuoteRev = @QuoteRev - - -- recupero dati!! - SELECT TOP 1 @CodItem = ql.CodItem - , @CodDiesGroup = tps.CodDiesGroup - , @CodPlant = CASE WHEN @CodPlantFix <> '' THEN @CodPlantFix ELSE tps.CodPlant END - , @HoleNum = tps.HoleNum - , @KeyAM = ql.KeyAM - , @KeyAMI = ql.KeyAM + '-' + ISNULL(@CodPlant,'0000') - , @KeyAMIL = ql.KeyAM + '-' + ISNULL(@CodPlant,'0000') + '-' + CAST(ISNULL(tps.HoleNum,0) AS NVARCHAR(10)) - , @ProdTeo = tps.ProdTeo - , @ScTec = tps.ScTec - , @KgTeo = tps.KgTeo - , @NumSMED = tps.NumSMED - , @RawMat = ql.RawMat - , @BatchQty = ql.BatchQty - , @ItemDescr= i.ItemDescr - FROM dbo.QuoteList ql - INNER JOIN dbo.TabProdSc tps ON ql.KeyAM = tps.KeyAM - INNER JOIN dbo.ItemDet i ON ql.CodItem = i.CodItem - WHERE ql.QuoteType = @QuoteType - AND ql.CodQuote = @CodQuote - AND ql.QuoteRev = @QuoteRev - ORDER BY tps.KgTeo DESC - - -- recupero da dati dell'offerta il valore del package scelto - SET @CodPackag = ( SELECT dbo.f_getCodPackag( @CodItem , @CodClient ) ) - - -- e aggiorno QuoteRM - UPDATE dbo.QuoteRM - SET CodPackag = @CodPackag - FROM dbo.QuoteRM - WHERE QuoteType = @QuoteType - AND CodQuote = @CodQuote - AND QuoteRev = @QuoteRev - - INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter) - VALUES (@QuoteType, @CodQuote, @QuoteRev, '01', 'ItemDescr', @ItemDescr) - - INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter) - SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'CodifProfilo', Class01 - FROM dbo.ItemDet - WHERE CodItem = @CodItem - - INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter) - SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'ClasseMerc', Class02 - FROM dbo.ItemDet - WHERE CodItem = @CodItem - - INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter) - SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'CodClientAssoc', Class03 - FROM dbo.ItemDet - WHERE CodItem = @CodItem - - INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter) - SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'ClientNameAssoc', ClientDet.ClientName - FROM dbo.ItemDet INNER JOIN ClientDet ON ItemDet.Class03=ClientDet.CodClient - WHERE CodItem = @CodItem - - -- INFORMAZIONI su MATRICE - INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter) - VALUES (@QuoteType, @CodQuote, @QuoteRev, '01', 'CodDiesGroup', @CodDiesGroup) - - SET @strTemp = dbo.f_getSubstring(@CodDiesGroup, '-', 1) --@strTemp = SUBSTRING(@CodDiesGroup, 0, CHARINDEX('-', @CodDiesGroup)) -- !!!fare con finc Gian - INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter) - VALUES (@QuoteType, @CodQuote, @QuoteRev, '01', 'TipoDies', @strTemp) - - SET @strTemp = dbo.f_getSubstring(@CodDiesGroup, '-', 2) --@strTemp = SUBSTRING(REPLACE(@CodDiesGroup, @strTemp,''), 2, CHARINDEX('-', @CodDiesGroup)) -- !!!fare con finc Gian - INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter) - VALUES (@QuoteType, @CodQuote, @QuoteRev, '01', 'DiamDies', @strTemp) - - SET @strTemp = dbo.f_getSubstring(@CodDiesGroup, '-', 3) --@strTemp = SUBSTRING(REPLACE(@CodDiesGroup, @strTemp,''), 5, CHARINDEX('-', @CodDiesGroup)) -- !!!fare con finc Gian - INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter) - VALUES (@QuoteType, @CodQuote, @QuoteRev, '01', 'HoleNumDies', @strTemp) - - INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter) - SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'NumDiesInList', COUNT(CodDies) - FROM dbo.DiesDet - WHERE CodDiesGroup = @CodDiesGroup AND CodItem = @CodItem - - INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter) - SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'NumDiesExaust', COUNT(CodDies) - FROM dbo.DiesDet - WHERE CodDiesGroup = @CodDiesGroup AND Active = 0 - - -- inserisco parametri calcolati x lavorazione estruzione - INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter) - SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'CodPlant', @CodPlant - - INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter) - SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'KeyAM', @KeyAM - - INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter) - SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'KeyAMIL', @KeyAMIL - - INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter) - SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'NumSMED', @NumSMED - - INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter) - SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'KgTeo', @KgTeo - - -- tolto: è duplicato di HoleNumDies - --INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter) - --SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'HoleNum', @HoleNum - - -- inserisco lavorazione estrusione! - INSERT INTO #QuoteWorkInt (QuoteType, CodQuote, QuoteRev, ProcessNum, CodPlant, Class01, Class02, Class03, NetProd, WSR) - SELECT @QuoteType, @CodQuote, @QuoteRev, '01', @CodPlant, @KeyAM, @KeyAMIL, @RawMat, @ProdTeo, @ScTec - - INSERT INTO #QuoteParam (QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter) - SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'KgProdotti', SUM(KgTeo) - FROM dbo.QuoteList ql - INNER JOIN dbo.TabProdSc tps ON ql.KeyAM = tps.KeyAM - WHERE ql.QuoteType = @QuoteType - AND ql.CodQuote = @CodQuote - AND ql.QuoteRev = @QuoteRev - - --SELECT @cont = @cont + 1 - --INSERT INTO QuoteParam(QuoteType, CodQuote, QuoteRev, NumP, ProcessNum, Descr, Parameter) - --SELECT @QuoteType, @CodQuote, @QuoteRev, @cont, '01', 'NumLotti', COUNT(*) - --FROM QuoteList ql INNER JOIN TabProdSc tps ON ql.KeyAM = tps.KeyAM - --WHERE ql.QuoteType = @QuoteType - -- AND ql.CodQuote = @CodQuote - -- AND ql.QuoteRev = @QuoteRev - - -- inserisco dati mancanti di MSR/CSR (scarto cesoia x estrusione) - DSR è NULLO x estrusione! - UPDATE qwi - SET MSR = rmd.CSR - FROM #QuoteWorkInt qwi - INNER JOIN dbo.RawMatDet rmd ON qwi.Class03 = rmd.RawMat - - -- calcolo i costi legati alla fase estrusione! - UPDATE qwi - SET FC4UG = (cp.FC * cp.QuotaPlantStd / cp.QuotaManStd) / qwi.NetProd - , VC4UG = (cp.VC * cp.QuotaPlantStd / cp.QuotaManStd) / qwi.NetProd - , OH4UG = (cp.OH * cp.QuotaPlantStd / cp.QuotaManStd) / qwi.NetProd - , SC4UG = cp.SC / ql.BatchQty - FROM #QuoteWorkInt qwi - INNER JOIN dbo.Cost2Plant cp ON qwi.CodPlant = cp.CodPlant AND qwi.ProcessNum = cp.ProcessNum - INNER JOIN dbo.QuoteList ql ON qwi.QuoteType = ql.QuoteType AND qwi.CodQuote = ql.CodQuote AND qwi.QuoteRev = ql.QuoteRev - WHERE qwi.ProcessNum = '01' - - -- inserisco lavorazione incestatura! - INSERT INTO #QuoteWorkInt (QuoteType, CodQuote, QuoteRev, ProcessNum, CodPlant, Class01, Class02, Class03) - SELECT @QuoteType, @CodQuote, @QuoteRev, '02', @CodPlant, @KeyAM, @KeyAMI, @RawMat - - -- inserisco dati mancanti di DSR x incestatura come 1 - OUT/IN - UPDATE qwi - SET DSR = 1 - CAST(td.TotOUT AS DECIMAL(18,6))/CAST(td.TotIN AS DECIMAL(18,6)) - FROM #QuoteWorkInt qwi - INNER JOIN dbo.TabDifett td ON qwi.Class02 = td.KeyAMI AND qwi.ProcessNum = td.ProcessNum - WHERE qwi.ProcessNum = '02' -- solo incestatura - - -- inserisco lavorazione FORNO! - INSERT INTO #QuoteWorkInt(QuoteType, CodQuote, QuoteRev, ProcessNum, CodPlant, Class01, Class02, Class03) - SELECT @QuoteType, @CodQuote, @QuoteRev, '03', @CodPlant, @KeyAM, @KeyAMI, @RawMat - - -- inserisco lavorazione imballo! - INSERT INTO #QuoteWorkInt(QuoteType, CodQuote, QuoteRev, ProcessNum, CodPlant, Class01, Class02, Class03, Class04, Class05) - SELECT @QuoteType, @CodQuote, @QuoteRev, '04', @CodPlant, @KeyAM, @KeyAMIL, @RawMat, @CodItem, @KeyAMI - - -- calcolo produttività netta nella fase imballo - UPDATE qwi - SET NetProd = CASE ti.Durata WHEN 0 THEN 0 ELSE ti.TotOut / ti.Durata END - FROM #QuoteWorkInt qwi - INNER JOIN dbo.TabImbArt ti ON qwi.Class04 = ti.KeyA - WHERE qwi.ProcessNum = '04' -- solo imballo - - -- Se Produttività netta ancora = 0 la leggo nella tabella Gruppo Imballo ( Packaging ) - IF ( SELECT NetProd FROM #QuoteWorkInt WHERE ProcessNum = '04' ) = 0 - BEGIN - UPDATE qwi - SET NetProd = CASE ti.Durata WHEN 0 THEN 0 ELSE ti.TotOut / ti.Durata END - FROM #QuoteWorkInt qwi - INNER JOIN dbo.TabImbGrp ti ON ti.CodPackag = @CodPackag -- packag generico dell' offerta - WHERE qwi.ProcessNum = '04' -- solo imballo - END - - -- salvo numero imballatori - SELECT @NumImb = ISNULL(NumImb,0) - FROM dbo.TabImbArt - WHERE KeyA = @CodItem - - -- parametro num imballatori - INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter) - SELECT @QuoteType, @CodQuote, @QuoteRev, '04', 'QuotaMan', @NumImb - - -- calcolo i costi legati alla fase di imballo! - -- QUI VA FATTO CALCOLO PUNTUALE SU quotaPlant tramite Articolo-Cliente / Articolo / Packaging - UPDATE qwi - SET FC4UG = (cp.FC * cp.QuotaPlantStd / cp.QuotaManStd) / qwi.NetProd - , VC4UG = (cp.VC * cp.QuotaPlantStd / cp.QuotaManStd) / qwi.NetProd - , OH4UG = (cp.OH * cp.QuotaPlantStd / cp.QuotaManStd) / qwi.NetProd - , SC4UG = cp.SC / ql.BatchQty - FROM #QuoteWorkInt qwi - INNER JOIN dbo.Cost2Plant cp ON qwi.CodPlant = cp.CodPlant AND qwi.ProcessNum = cp.ProcessNum - INNER JOIN dbo.QuoteList ql ON qwi.QuoteType = ql.QuoteType AND qwi.CodQuote = ql.CodQuote AND qwi.QuoteRev = ql.QuoteRev - WHERE qwi.ProcessNum = '04' -- solo imballo - - -- inserisco dati mancanti di DSR x incestatura come 1 - OUT/IN - UPDATE qwi - SET DSR = 1 - CAST(td.TotOUT AS DECIMAL(18,6))/CAST(td.TotIN AS DECIMAL(18,6)) - FROM #QuoteWorkInt qwi - INNER JOIN dbo.TabDifett td ON qwi.Class05 = td.KeyAMI AND qwi.ProcessNum = td.ProcessNum - WHERE qwi.ProcessNum = '04' -- solo imballo - - -- recupero le MAC fase 01 - SELECT - @MAC_SC = MCR - ,@MAC_ST = WCR - FROM #QuoteWorkInt WITH (NOLOCK) - WHERE ProcessNum = '01' - - -- recupero le MAC fase 02 - SELECT - @MAC_IN = DCR - FROM #QuoteWorkInt WITH (NOLOCK) - WHERE ProcessNum = '02' - - -- recupero le MAC fase 04 - SELECT - @MAC_IM = DCR - FROM #QuoteWorkInt WITH (NOLOCK) - WHERE ProcessNum = '04' - - -- calcolo percentuale vendita rottame - SELECT @SSR = SSR - FROM dbo.RawMatDet - WHERE RawMat = @RawMat - - - -- NOTA : la transazione posso probabilmente iniziarla qui visto che è il - -- primo Update/insert/delete su tabelle non temporanee - - -- update rese RawMat! - UPDATE dbo.QuoteRM - SET FCR = @MAC_SC * @MAC_ST * @MAC_IN * @MAC_IM - WHERE QuoteType = @QuoteType - AND CodQuote = @CodQuote - AND QuoteRev = @QuoteRev - AND RawMat = @RawMat - - -- inserisco i costi delle utilities in QuoteOC - - -- inserisco altri costi x lavorazione estrusione! GAS ed EE - INSERT INTO #QuoteOC(QuoteType, CodQuote, QuoteRev, ProcessNum, CodPlant, Class01, Class02, TotQty, TotCost, Quota) - SELECT @QuoteType, @CodQuote, @QuoteRev, '01', @CodPlant, CodUtil, @RawMat, @BatchQty, UnitCost * @BatchQty, 1 - FROM dbo.Utilities - WHERE CodPlant = @CodPlant - - - /************************************************************* - * MATRICE - * - * calcolo prezzo e durata matrice con procedura a 5 step... - * A) media ponderata prezzo ed ExpLife da DiesDet selezionando x CodItem + CodDiesGroup - * B) EOLLife x media ponderata su DiesDet dove Active = 0 - * C) SE prezzo = 0 --> prendo prezzo da DiesGroupDet selezionando x CodDiesGroup - * D) Se EOL = 0 --> prendo ExpLife della singola matrice, se è 0 --> prendo EOLLife da DiesGroupDet selezionando x CodDiesGroup - * E) Calcolo Price / Life - * - *************************************************************/ - - -- (A) da DiesDet - SELECT @DiesPrice = SUM(ISNULL(Price, 0) * ISNULL(ActLife, 1)) / SUM(ISNULL(ActLife, 1)), - @DiesExpLife = SUM(ISNULL(ExpLife, 0) * ISNULL(ActLife, 1)) / SUM(ISNULL(ActLife, 1)) - FROM dbo.DiesDet - WHERE CodItem = @CodItem - AND CodDiesGroup = @CodDiesGroup - GROUP BY CodItem, CodDiesGroup - - -- (B) da DiesDet - SELECT @DiesEOLife = AVG(ISNULL(ActLife, 0)) - FROM dbo.DiesDet - WHERE CodItem = @CodItem - AND CodDiesGroup = @CodDiesGroup - AND Active = 0 - GROUP BY CodItem, CodDiesGroup - - SET @DiesPrice = ISNULL(@DiesPrice,0) - SET @DiesExpLife = ISNULL(@DiesExpLife,0) - SET @DiesEOLife = ISNULL(@DiesEOLife,0) - - -- (C) verifico se prezzo è OK... - IF (@DiesPrice = 0) - BEGIN - -- calcolo da DiesGroupDet - SELECT @DiesPrice = ISNULL(Price, 0) - FROM DiesGroupDet - WHERE CodDiesGroup = @CodDiesGroup - END - - -- (D) verifico se vita è OK... - IF (@DiesEOLife = 0) - BEGIN - -- uso exp life articolo... - SET @DiesEOLife = @DiesExpLife - END - -- controllo che non sia nulla/vuota la durata... - IF (@DiesEOLife = 0) - BEGIN - SELECT @DiesEOLife = CASE WHEN EOLLife > 0 THEN EOLLife ELSE ExpLife END - FROM DiesGroupDet - WHERE CodDiesGroup = @CodDiesGroup - END - - -- controllo che non sia nulla/vuota la durata... - IF (@DiesEOLife = 0) - BEGIN - SET @DiesEOLife = 1 -- metto 1 kg che è sbagliato e mi fa esplodere prezzo matrice ma non blocca calcoli - END - - -- (E) Calcolo price/life! - SET @DiesPriceLife = @DiesPrice / @DiesEOLife - - -- (D) verifico se vita è OK... - IF (@DiesPriceLife = 0) - BEGIN - SET @DiesPriceLife = 1 - SET @valid = 0 - END - - -- inserisco costi per Matrice: costo e durata da matrice, se non ci sono da gruppo, (anche solo uno dei due, ovviamente più facile trovare durata x matrice...) - INSERT INTO #QuoteOC(QuoteType, CodQuote, QuoteRev, ProcessNum, CodPlant, Class01, Class02, TotQty, TotCost, Quota, valid) - SELECT @QuoteType, @CodQuote, @QuoteRev, '01', @CodPlant, 'MATRICE', @RawMat, @BatchQty, @DiesPriceLife * @BatchQty, 1, @valid - - - -- inserisco parametri calcolati x matrice - INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter) - SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'DiesPrice', @DiesPrice - - INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter) - SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'DiesExpLife', @DiesExpLife - - INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter) - SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'DiesEOLife', @DiesEOLife - - /************************************************************* - * VENDITA ROTTAME - * - * calcolo COSTO DI VENDITA PER LE 2 FASI ESTRUSIONE 01 ED IMBALLO 04 - * - calcolo costi variabili fase 01 / 04 - * - calcolo costo di vendita x fase 01 / 04 - *************************************************************/ - - SELECT @OCF01 = SUM(ISNULL(C4UG,0)) - FROM #QuoteOC WITH (NOLOCK) - - SELECT @VCF01 = @OCF01 + VC4UG - FROM #QuoteWorkInt - WHERE ProcessNum = '01' - - SELECT @VCF04 = @OCF01 + SUM(VC4UG) - FROM #QuoteWorkInt - - SELECT @SellCostF01 = ((@MAC_ST * @MAC_SC * @MAC_IN) - 1) * (q.RawMatCost + q.RawMatExtraCost - CASE WHEN SSVA > 0 THEN SSVA ELSE q.RawMatCost * SSVR END + @VCF01) -- ((prodotto delle MAC = inverso del prodotto delle rese) - 1) * (costo Al - prezzo rivendita + costi var fase 01) - , @RefCostF01 = -- ( (A - B) / 100 - C ) - ( - -- (A) = (costo pieno di acquisto + costi fase 1) * MAC * 100 (IN CENTESIMI) - ((q.RawMatCost + q.RawMatExtraCost + @VCF01) * (@MAC_ST * @MAC_SC * @MAC_IN * 100)) - -- (B) = ((MAC * 100) - 100) * Resa di fonderia * (costo pieno acquisto - costo di trasformazione)) - - ((@MAC_ST * @MAC_SC * @MAC_IN * 100) - 100) * rmd.ProcYield * (q.RawMatCost + q.RawMatExtraCost + @VCF01 - rmd.ProcCost) - ) / 100 -- divido per 100 finale - -- (C) = sottraggo costo pieno alluminio - - (q.RawMatCost + q.RawMatExtraCost + @VCF01) - FROM dbo.RawMatDet rmd - INNER JOIN dbo.QuoteRM q ON q.RawMat = rmd.RawMat - WHERE q.QuoteType = @QuoteType - AND q.CodQuote = @CodQuote - AND q.QuoteRev = @QuoteRev - AND q.RawMat = @RawMat - - SELECT @SellCostF04 = ((@MAC_IM) - 1) * (q.RawMatCost + q.RawMatExtraCost - CASE WHEN SSVA > 0 THEN SSVA ELSE q.RawMatCost * SSVR END + @VCF01 + @VCF04) -- ((prodotto delle MAC = inverso del prodotto delle rese) - 1) * (costo Al - prezzo rivendita + costi var fase 04) - , @RefCostF04 = -- ( (A - B) / 100 - C ) - ( - -- (A) = (costo pieno di acquisto + costi variabili fase 1 e 4) * MAC * 100 (IN CENTESIMI) - ((q.RawMatCost + q.RawMatExtraCost + @VCF01 + @VCF04) * (@MAC_IM * 100)) - -- (B) = ((MAC * 100) - 100) * Resa di fonderia * (costo pieno acquisto - costo di trasformazione)) - - ((@MAC_IM * 100) - 100) * rmd.ProcYield * (q.RawMatCost + q.RawMatExtraCost + @VCF01 + @VCF04 - rmd.ProcCost) - ) / 100 -- divido per 100 finale - -- (C) = sottraggo costo pieno alluminio - - (q.RawMatCost + q.RawMatExtraCost + @VCF01 + @VCF04) - - -- NOTA: usiamo (q.RawMatCost + q.RawMatExtraCost + @VCF01) e non (q.RawMatCost + q.RawMatExtraCost + @VCF01 + @RefCostF01) perché la differenza è minimale, si tratta di 10/20 PPM... - - FROM RawMatDet rmd INNER JOIN QuoteRM q ON q.RawMat = rmd.RawMat - WHERE q.QuoteType = @QuoteType - AND q.CodQuote = @CodQuote - AND q.QuoteRev = @QuoteRev - AND q.RawMat = @RawMat - - -- inserisco costi per VENDITA - INSERT INTO #QuoteOC(QuoteType, CodQuote, QuoteRev, ProcessNum, CodPlant, Class01, Class02, TotQty, TotCost, Quota) - SELECT @QuoteType, @CodQuote, @QuoteRev, '01', @CodPlant, 'VENDITA', @RawMat, @BatchQty, @SellCostF01 * @BatchQty, @SSR - - -- inserisco costi per ROTTAME - INSERT INTO #QuoteOC(QuoteType, CodQuote, QuoteRev, ProcessNum, CodPlant, Class01, Class02, TotQty, TotCost, Quota) - SELECT @QuoteType, @CodQuote, @QuoteRev, '01', @CodPlant, 'ROTTAME', @RawMat, @BatchQty, @RefCostF01 * @BatchQty, 1 - @SSR - - -- inserisco costi per VENDITA - INSERT INTO #QuoteOC(QuoteType, CodQuote, QuoteRev, ProcessNum, CodPlant, Class01, Class02, TotQty, TotCost, Quota) - SELECT @QuoteType, @CodQuote, @QuoteRev, '04', @CodPlant, 'VENDITA', @RawMat, @BatchQty, @SellCostF04 * @BatchQty, @SSR - - -- inserisco costi per ROTTAME - INSERT INTO #QuoteOC(QuoteType, CodQuote, QuoteRev, ProcessNum, CodPlant, Class01, Class02, TotQty, TotCost, Quota) - SELECT @QuoteType, @CodQuote, @QuoteRev, '04', @CodPlant, 'ROTTAME', @RawMat, @BatchQty, @RefCostF04 * @BatchQty, 1 - @SSR - - EXEC stp_packageCost @CodItem, @CodClient, @CodPackag, @PDesc=@PkgDesc OUTPUT, @RMWeight=@PRMWeight OUTPUT, @Weight=@PWeight OUTPUT, @Tare=@PTare OUTPUT, @PackCost=@PCost OUTPUT, @TareStRat=@PTareStRatio OUTPUT - - -- inserisco costi per IMBALLO - INSERT INTO #QuoteOC(QuoteType, CodQuote, QuoteRev, ProcessNum, CodPlant, Class01, Class02, TotQty, TotCost, Quota) - SELECT @QuoteType, @CodQuote, @QuoteRev, '04', @CodPlant, 'IMBALLO', @RawMat, @BatchQty, @PCost * @BatchQty, 1 - - - -- inserisco parametri calcolati x imballaggio - INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter) - SELECT @QuoteType, @CodQuote, @QuoteRev, '04', 'PkgDesc', @PkgDesc - - INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter) - SELECT @QuoteType, @CodQuote, @QuoteRev, '04', 'PRMWeight', @PRMWeight - - INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter) - SELECT @QuoteType, @CodQuote, @QuoteRev, '04', 'PWeight', @PWeight - - INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter) - SELECT @QuoteType, @CodQuote, @QuoteRev, '04', 'PTare', @PTare - - INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter) - SELECT @QuoteType, @CodQuote, @QuoteRev, '04', 'TareStRatio', @PTareStRatio - - - --------------------------------------------- - -- inserisco costi per TRASPORTI - --------------------------------------------- - -- recupero zona da cliente... - SELECT @TranspZone = TranspZone - FROM dbo.ClientDet - WHERE CodClient = @CodClient - - -- recupero tipo di trasporto - SELECT @HasTC = ISNULL(i.HasTC, 0) - FROM dbo.QuoteList q INNER JOIN Incoterms i ON q.CodInco = i.CodInco - WHERE q.QuoteType = @QuoteType - AND q.CodQuote = @CodQuote - AND q.QuoteRev = @QuoteRev - - -- recupero costi trasporto - SELECT @TranspCost = TranspCost - FROM dbo.TranspCostDet - WHERE TranspZone = @TranspZone - - INSERT INTO #QuoteOC(QuoteType, CodQuote, QuoteRev, ProcessNum, CodPlant, Class01, Class02, TotQty, TotCost, Quota) - SELECT @QuoteType, @CodQuote, @QuoteRev, '04', @CodPlant, 'TRASPORTI', @RawMat, @BatchQty, @HasTC * @TranspCost * @BatchQty, 1 - - - --------------------------------------------- - -- inserisco costi per PROVVIGIONI - --------------------------------------------- - SELECT @Provvig = ISNULL(a.QuotaProvvAg, 0) - FROM dbo.AgentsDet a - INNER JOIN ClientDet c ON a.CodAg = c.CodAg - INNER JOIN QuoteList q ON q.CodClient = c.CodClient - WHERE q.QuoteType = @QuoteType - AND q.CodQuote = @CodQuote - AND q.QuoteRev = @QuoteRev - - -- inserisco costi per PROVVIGIONI - INSERT INTO #QuoteOC(QuoteType, CodQuote, QuoteRev, ProcessNum, CodPlant, Class01, Class02, TotQty, TotCost, Quota) - SELECT @QuoteType, @CodQuote, @QuoteRev, '04', @CodPlant, 'PROVVIGIONI', @RawMat, @BatchQty, @Provvig * @BatchQty, 1 - - /* ================================================== - CANCELLO E CARICO TABELLE EFFETTIVE - ==================================================*/ - - -- elimino e carico parametri! - DELETE FROM dbo.QuoteParam - WHERE QuoteType = @QuoteType - AND CodQuote = @CodQuote - AND QuoteRev = @QuoteRev - - INSERT dbo.QuoteParam - SELECT * FROM #QuoteParam WITH (NOLOCK) - - -- elimino e carico lavorazioni interne! - DELETE FROM dbo.QuoteWorkInt - WHERE QuoteType = @QuoteType - AND CodQuote = @CodQuote - AND QuoteRev = @QuoteRev - - INSERT dbo.QuoteWorkInt -- ci sono valori calcolati quindi devo selezionare i campi - SELECT QuoteType, CodQuote, QuoteRev, NumWI, ProcessNum, CodPlant, Class01, Class02, Class03, Class04, Class05 - , NetProd, WSR, MSR, DSR, FC4UG, VC4UG, OH4UG, SC4UG, valid - FROM #QuoteWorkInt WITH (NOLOCK) - - -- elimino e carico OtherCosts - DELETE FROM dbo.QuoteOC - WHERE QuoteType = @QuoteType - AND CodQuote = @CodQuote - AND QuoteRev = @QuoteRev - - INSERT dbo.QuoteOC -- ci sono valori calcolati quindi devo selezionare i campi - SELECT QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Class02, Class03, Class04 - , Class05, TotQty, TotCost, Quota, valid - FROM #QuoteOC WITH (NOLOCK) - - - COMMIT TRAN - - --SELECT * FROM #QuoteParam - --SELECT * FROM #QuoteWorkInt - --SELECT * FROM #QuoteOC - - -- elimino temp table... - IF OBJECT_ID('tempdb..#QuoteParam') IS NOT NULL - DROP TABLE #QuoteParam - IF OBJECT_ID('tempdb..#QuoteWorkInt') IS NOT NULL - DROP TABLE #QuoteWorkInt - IF OBJECT_ID('tempdb..#QuoteOC') IS NOT NULL - DROP TABLE #QuoteOC - -END -GO PRINT N'Creating [dbo].[stp_QL_update_SAM]...'; @@ -8367,218 +7816,6 @@ BEGIN COMMIT TRAN -END -GO -PRINT N'Creating [dbo].[stp_QL_getByKey]...'; - - -GO --- ============================================= --- Author: Steamware --- Create date: 2014.02.23 --- Description: recupera riga QL --- ============================================= -CREATE PROCEDURE dbo.stp_QL_getByKey -( - @QuoteType CHAR(1) = 'Q' - ,@CodQuote BIGINT = 0 - ,@QuoteRev INT = 0 -) -AS - -SELECT * -FROM QuoteList -WHERE QuoteType = @QuoteType - AND CodQuote = @CodQuote - AND QuoteRev = @QuoteRev - -RETURN -GO -PRINT N'Creating [dbo].[stp_QRM_getByKey]...'; - - -GO --- ============================================= --- Author: Steamware --- Create date: 2014.02.23 --- Description: recupera riga QRM --- ============================================= -create PROCEDURE dbo.stp_QRM_getByKey -( - @QuoteType CHAR(1) = 'Q' - ,@CodQuote BIGINT = 0 - ,@QuoteRev INT = 0 - ,@NumRM INT = 0 -) -AS - -SELECT * -FROM QuoteRM -WHERE QuoteType = @QuoteType - AND CodQuote = @CodQuote - AND QuoteRev = @QuoteRev - AND NumRM = @NumRM - -RETURN -GO -PRINT N'Creating [dbo].[stp_VSRM_SearchLike]...'; - - -GO --- ============================================= --- Author: S.E. Locatelli --- Create date: 2014.02.18 --- Description: Ricerca materiale Al --- ============================================= -create PROCEDURE [dbo].stp_VSRM_SearchLike -( - @value NVARCHAR(50) -) - -AS -SET NOCOUNT ON; - -SELECT value - ,label -FROM v_selRawMat -WHERE (value LIKE '%' + @value + '%') - OR (label LIKE '%' + @value + '%') -GO -PRINT N'Creating [dbo].[stp_QuoteFull_delete]...'; - - -GO - --- ============================================= --- Author: Steamware --- Create date: 2014.02.23 --- Description: upelimina tutti i record di un offerta --- ============================================= -CREATE PROCEDURE [dbo].[stp_QuoteFull_delete] -( - @Original_QuoteType CHAR(1) = 'Q' - ,@Original_CodQuote BIGINT = 0 - ,@Original_QuoteRev INT = 0 -) -AS - -SET XACT_ABORT ON; -BEGIN tran - -- elimino da QuoteFull - DELETE - FROM QuoteFull_Q - WHERE QuoteType = @Original_QuoteType - AND CodQuote = @Original_CodQuote - AND QuoteRev = @Original_QuoteRev - - -- elimino da tab child - DELETE - FROM QuoteWorkExt - WHERE QuoteType = @Original_QuoteType - AND CodQuote = @Original_CodQuote - AND QuoteRev = @Original_QuoteRev - - DELETE - FROM QuoteWorkInt - WHERE QuoteType = @Original_QuoteType - AND CodQuote = @Original_CodQuote - AND QuoteRev = @Original_QuoteRev - - DELETE - FROM QuoteOC - WHERE QuoteType = @Original_QuoteType - AND CodQuote = @Original_CodQuote - AND QuoteRev = @Original_QuoteRev - - DELETE - FROM QuoteParam - WHERE QuoteType = @Original_QuoteType - AND CodQuote = @Original_CodQuote - AND QuoteRev = @Original_QuoteRev - - -- elimino le 2 master: RM e list... - DELETE - FROM QuoteRM - WHERE QuoteType = @Original_QuoteType - AND CodQuote = @Original_CodQuote - AND QuoteRev = @Original_QuoteRev - - DELETE - FROM QuoteList - WHERE QuoteType = @Original_QuoteType - AND CodQuote = @Original_CodQuote - AND QuoteRev = @Original_QuoteRev - -COMMIT tran - -RETURN -GO -PRINT N'Creating [dbo].[stp_TI_upsert]...'; - - -GO - - --- ============================================= --- Author: S.E. Locatelli --- Create date: 2013.12.20 --- Description: Crea TabImb (tabella imballi) --- NON SERVE PIU' le due tabelle sono state inglobate in Package2/Item/Client --- ============================================= -CREATE PROCEDURE [dbo].[stp_TI_upsert] -( - @dateFrom DATETIME, -- data da cui iniziare a caricare - @dateTo DATETIME -- data fino a cui caricare -) -AS -BEGIN - - SET XACT_ABORT ON; - BEGIN TRAN - - SET NOCOUNT ON; - - -- svuoto tabella... - TRUNCATE TABLE TabImbArt - TRUNCATE TABLE TabImbGrp - - -- riempio di nuovo valori x articolo! - INSERT INTO TabImbArt - SELECT - dd.CodItem as KeyA - , ROUND(SUM(QtyOUT* QuotaMan) / CASE WHEN SUM(QtyOUT) = 0 THEN 1 ELSE SUM(QtyOUT) END,0) as NumImb - , SUM(QtyOUT) AS TotOut - , SUM(Duration) AS Durata - FROM ProductionLog pl INNER JOIN DiesDet dd ON pl.CodDies=dd.CodDies - WHERE pl.ProcessNum = '04' - AND pl.okPr = 1 AND pl.okQM = 1 - AND pl.EventStart BETWEEN @dateFrom AND @dateTo - GROUP BY dd.CodItem - ORDER BY dd.CodItem - - - -- riempio di nuovo valori x gruppo imballo! - INSERT INTO TabImbGrp - SELECT - pl.CodPackag - , ROUND(SUM(QtyOUT* QuotaMan) / CASE WHEN SUM(QtyOUT) = 0 THEN 1 ELSE SUM(QtyOUT) END,0) as NumImb - , SUM(QtyOUT) AS TotOut - , SUM(Duration) AS Durata - FROM ProductionLog pl INNER JOIN DiesDet dd ON pl.CodDies=dd.CodDies - WHERE pl.ProcessNum = '04' - AND pl.okPr = 1 AND pl.okQM = 1 - AND pl.EventStart BETWEEN @dateFrom AND @dateTo - GROUP BY pl.CodPackag - ORDER BY pl.CodPackag - - -- salvo nuova revisione dati di produzione... - INSERT INTO RevHistory - SELECT 'P', ISNULL(MAX(RevNum),0) + 1, GETDATE(), 'Aggiornamento dati di produzione x fase 04 ' + CONVERT(NVARCHAR(20), @dateFrom, 120) + ' --> ' +CONVERT(NVARCHAR(20), @dateTo, 120) - FROM RevHistory - WHERE RevType = 'P' - - COMMIT TRAN - END GO PRINT N'Creating [dbo].[stp_TPS_upsert]...'; @@ -8762,16 +7999,205 @@ BEGIN END GO -PRINT N'Creating [dbo].[stp_VSItem_SearchLike]...'; +PRINT N'Creating [dbo].[stp_TI_upsert]...'; + + +GO + + +-- ============================================= +-- Author: S.E. Locatelli +-- Create date: 2013.12.20 +-- Description: Crea TabImb (tabella imballi) +-- NON SERVE PIU' le due tabelle sono state inglobate in Package2/Item/Client +-- ============================================= +CREATE PROCEDURE [dbo].[stp_TI_upsert] +( + @dateFrom DATETIME, -- data da cui iniziare a caricare + @dateTo DATETIME -- data fino a cui caricare +) +AS +BEGIN + + SET XACT_ABORT ON; + BEGIN TRAN + + SET NOCOUNT ON; + + -- svuoto tabella... + TRUNCATE TABLE TabImbArt + TRUNCATE TABLE TabImbGrp + + -- riempio di nuovo valori x articolo! + INSERT INTO TabImbArt + SELECT + dd.CodItem as KeyA + , ROUND(SUM(QtyOUT* QuotaMan) / CASE WHEN SUM(QtyOUT) = 0 THEN 1 ELSE SUM(QtyOUT) END,0) as NumImb + , SUM(QtyOUT) AS TotOut + , SUM(Duration) AS Durata + FROM ProductionLog pl INNER JOIN DiesDet dd ON pl.CodDies=dd.CodDies + WHERE pl.ProcessNum = '04' + AND pl.okPr = 1 AND pl.okQM = 1 + AND pl.EventStart BETWEEN @dateFrom AND @dateTo + GROUP BY dd.CodItem + ORDER BY dd.CodItem + + + -- riempio di nuovo valori x gruppo imballo! + INSERT INTO TabImbGrp + SELECT + pl.CodPackag + , ROUND(SUM(QtyOUT* QuotaMan) / CASE WHEN SUM(QtyOUT) = 0 THEN 1 ELSE SUM(QtyOUT) END,0) as NumImb + , SUM(QtyOUT) AS TotOut + , SUM(Duration) AS Durata + FROM ProductionLog pl INNER JOIN DiesDet dd ON pl.CodDies=dd.CodDies + WHERE pl.ProcessNum = '04' + AND pl.okPr = 1 AND pl.okQM = 1 + AND pl.EventStart BETWEEN @dateFrom AND @dateTo + GROUP BY pl.CodPackag + ORDER BY pl.CodPackag + + -- salvo nuova revisione dati di produzione... + INSERT INTO RevHistory + SELECT 'P', ISNULL(MAX(RevNum),0) + 1, GETDATE(), 'Aggiornamento dati di produzione x fase 04 ' + CONVERT(NVARCHAR(20), @dateFrom, 120) + ' --> ' +CONVERT(NVARCHAR(20), @dateTo, 120) + FROM RevHistory + WHERE RevType = 'P' + + COMMIT TRAN + +END +GO +PRINT N'Creating [dbo].[stp_QL_getByKey]...'; + + +GO +-- ============================================= +-- Author: Steamware +-- Create date: 2014.02.23 +-- Description: recupera riga QL +-- ============================================= +CREATE PROCEDURE dbo.stp_QL_getByKey +( + @QuoteType CHAR(1) = 'Q' + ,@CodQuote BIGINT = 0 + ,@QuoteRev INT = 0 +) +AS + +SELECT * +FROM QuoteList +WHERE QuoteType = @QuoteType + AND CodQuote = @CodQuote + AND QuoteRev = @QuoteRev + +RETURN +GO +PRINT N'Creating [dbo].[stp_QRM_getByKey]...'; + + +GO +-- ============================================= +-- Author: Steamware +-- Create date: 2014.02.23 +-- Description: recupera riga QRM +-- ============================================= +create PROCEDURE dbo.stp_QRM_getByKey +( + @QuoteType CHAR(1) = 'Q' + ,@CodQuote BIGINT = 0 + ,@QuoteRev INT = 0 + ,@NumRM INT = 0 +) +AS + +SELECT * +FROM QuoteRM +WHERE QuoteType = @QuoteType + AND CodQuote = @CodQuote + AND QuoteRev = @QuoteRev + AND NumRM = @NumRM + +RETURN +GO +PRINT N'Creating [dbo].[stp_QuoteFull_delete]...'; + + +GO + +-- ============================================= +-- Author: Steamware +-- Create date: 2014.02.23 +-- Description: upelimina tutti i record di un offerta +-- ============================================= +CREATE PROCEDURE [dbo].[stp_QuoteFull_delete] +( + @Original_QuoteType CHAR(1) = 'Q' + ,@Original_CodQuote BIGINT = 0 + ,@Original_QuoteRev INT = 0 +) +AS + +SET XACT_ABORT ON; +BEGIN tran + -- elimino da QuoteFull + DELETE + FROM QuoteFull_Q + WHERE QuoteType = @Original_QuoteType + AND CodQuote = @Original_CodQuote + AND QuoteRev = @Original_QuoteRev + + -- elimino da tab child + DELETE + FROM QuoteWorkExt + WHERE QuoteType = @Original_QuoteType + AND CodQuote = @Original_CodQuote + AND QuoteRev = @Original_QuoteRev + + DELETE + FROM QuoteWorkInt + WHERE QuoteType = @Original_QuoteType + AND CodQuote = @Original_CodQuote + AND QuoteRev = @Original_QuoteRev + + DELETE + FROM QuoteOC + WHERE QuoteType = @Original_QuoteType + AND CodQuote = @Original_CodQuote + AND QuoteRev = @Original_QuoteRev + + DELETE + FROM QuoteParam + WHERE QuoteType = @Original_QuoteType + AND CodQuote = @Original_CodQuote + AND QuoteRev = @Original_QuoteRev + + -- elimino le 2 master: RM e list... + DELETE + FROM QuoteRM + WHERE QuoteType = @Original_QuoteType + AND CodQuote = @Original_CodQuote + AND QuoteRev = @Original_QuoteRev + + DELETE + FROM QuoteList + WHERE QuoteType = @Original_QuoteType + AND CodQuote = @Original_CodQuote + AND QuoteRev = @Original_QuoteRev + +COMMIT tran + +RETURN +GO +PRINT N'Creating [dbo].[stp_VSRM_SearchLike]...'; GO -- ============================================= -- Author: S.E. Locatelli -- Create date: 2014.02.18 --- Description: Ricerca items +-- Description: Ricerca materiale Al -- ============================================= -CREATE PROCEDURE [dbo].stp_VSItem_SearchLike +create PROCEDURE [dbo].stp_VSRM_SearchLike ( @value NVARCHAR(50) ) @@ -8781,59 +8207,9 @@ SET NOCOUNT ON; SELECT value ,label -FROM v_selItems +FROM v_selRawMat WHERE (value LIKE '%' + @value + '%') OR (label LIKE '%' + @value + '%') -ORDER BY value -GO -PRINT N'Creating [dbo].[stp_QSP_upsert]...'; - - -GO --- ============================================= --- Author: Steamware - S.E.L. --- Create date: 2014.05.16 --- Description: update di un record in QL (Full) TIPO SIMULAZIONE e poi aggiorna a cascata --- ============================================= -create PROCEDURE [dbo].[stp_QSP_upsert] -( - @QuoteType CHAR(1) = 'S', - @CodQuote BIGINT = 0 , - @QuoteRev INT = 0 , - @NomePar NVARCHAR(50) = '' , - @ValPar NVARCHAR(50) = '' -) -AS -BEGIN - -- SET NOCOUNT ON added to prevent extra result sets from - -- interfering with SELECT statements. - SET NOCOUNT ON; - - -- variabili - DECLARE @trovati INT = 0 - - -- inserisco CodDiesGroup - SELECT @trovati = COUNT(*) - FROM QuoteSimPar - WHERE QuoteType = @QuoteType - AND CodQuote = @CodQuote - AND QuoteRev = @QuoteRev - AND NomePar = @NomePar - IF(@trovati = 0) - BEGIN - INSERT INTO QuoteSimPar(QuoteType, CodQuote, QuoteRev, NomePar, ValPar) - VALUES(@QuoteType, @CodQuote, @QuoteRev, @NomePar, @ValPar) - END - ELSE - BEGIN - UPDATE QuoteSimPar - SET ValPar = @ValPar - WHERE QuoteType = @QuoteType - AND CodQuote = @CodQuote - AND QuoteRev = @QuoteRev - AND NomePar = @NomePar - END -END GO PRINT N'Creating [dbo].[stp_RMD_getByKey]...'; @@ -8989,221 +8365,6 @@ RETURN END GO -PRINT N'Creating [dbo].[stp_QLF_getLast]...'; - - -GO --- ============================================= --- Author: Steamware - S.E.L. --- Create date: 2014.04.17 --- Description: recupera ultimo record del tipo richiesto --- ============================================= -create PROCEDURE [dbo].[stp_QLF_getLast] -AS - -SELECT TOP 1 * -FROM v_QuoteFull_Q -ORDER BY CodQuote DESC - -RETURN -GO -PRINT N'Creating [dbo].[stp_QLF_getMinMax]...'; - - -GO --- ============================================= --- Author: Steamware - S.E.L. --- Create date: 2014.04.23 --- Description: recupera record min/max per qta batch dato intervallo di analisi --- ============================================= -CREATE PROCEDURE [dbo].[stp_QLF_getMinMax] -( - @DateMin INT, -- formato aammgg - @DateMax INT -- formato aammgg -) -AS - -WITH cteMin AS -( -SELECT TOP 1 * -FROM v_QuoteFull_Q -WHERE CodQuote BETWEEN @DateMin AND @DateMax -ORDER BY BatchQty -) -, cteMax AS -( -SELECT TOP 1 * -FROM v_QuoteFull_Q -WHERE CodQuote BETWEEN @DateMin AND @DateMax -ORDER BY BatchQty DESC -) - -SELECT * FROM cteMin -UNION -SELECT * FROM cteMax - -RETURN -GO -PRINT N'Creating [dbo].[stp_QLF_revHist]...'; - - -GO --- ============================================= --- STORED PROCEDURE stp_QLF_revHist --- --- Author: Steamware --- Create date: 2014.04.29 --- Description: Recupera tutte le revisioni di un offerta --- ============================================= -create PROCEDURE stp_QLF_revHist -( - @QuoteType CHAR(1) = 'Q' - , @CodQuote BIGINT = 0 -) -AS -SET NOCOUNT ON - --- calcolo con aggiunta campi sommati... -SELECT vq.* -FROM v_QuoteFull_Q vq -WHERE QuoteType = @QuoteType - AND CodQuote = @CodQuote -ORDER BY QuoteRev DESC - -RETURN -GO -PRINT N'Creating [dbo].[stp_QLR_getByDate]...'; - - -GO --- ============================================= --- Author: Steamware --- Mod. date: 2014.05.27 --- Description: elaborazione OrdersHist --- ============================================= -CREATE PROCEDURE [dbo].[stp_QLR_getByDate] -( - @DataRif INT -) -AS -BEGIN - -SET NOCOUNT ON; - -SELECT * -FROM v_StdCostList -WHERE DataRif = @DataRif - -END -RETURN -GO -PRINT N'Creating [dbo].[stp_checkOffers4Item]...'; - - -GO --- ============================================= --- Author: Steamware --- Create date: 2014.05.11 --- Description: elenco dati produzione x item indicato --- ============================================= -CREATE PROCEDURE dbo.stp_checkOffers4Item (@CodItem NVARCHAR(50) = '') -AS -SELECT rmd.RawMat - , ISNULL(@CodItem,'-') AS CodItem - , COUNT(pl.EventStart) AS numRec -FROM RawMatDet rmd -LEFT JOIN ( - SELECT pl.EventStart - , pl.RawMat - FROM ProductionLog pl - INNER JOIN DiesDet dd - ON pl.CodDies = dd.CodDies - WHERE dd.CodItem = @CodItem - AND ISNULL(pl.RawMat, '') <> '' - ) AS pl - ON rmd.RawMat = pl.RawMat -WHERE ISNULL(rmd.RawMat, '') <>'' -GROUP BY rmd.RawMat -ORDER BY rmd.RawMat - -RETURN -GO -PRINT N'Creating [dbo].[stp_getDataCodPackag]...'; - - -GO --- ============================================= --- Author: G.A.R. --- Mad. date: 2014-06-06 --- Description: Ritorna il package e i dati associati dove presenti --- sostituisce la relativa funzione UDF f_getDataCodPackag --- ============================================= -CREATE PROCEDURE [stp_getDataCodPackag] - - @CodItem NVARCHAR(50), - @CodClient NVARCHAR(50), - -- output variable - @CodPackag NVARCHAR(50) OUTPUT, - @TotQta DECIMAL(18, 3) OUTPUT, - @Weight DECIMAL(18, 6) OUTPUT, - @Tare DECIMAL(18, 6) OUTPUT, - @NumImb DECIMAL(9, 6) OUTPUT, - @Durata DECIMAL(18, 6) OUTPUT, - @LivPackag NVARCHAR(50) OUTPUT, - @LivPackagDet NVARCHAR(50) OUTPUT -AS -BEGIN - - SET NOCOUNT ON; - SET XACT_ABORT ON; - - IF EXISTS ( SELECT * FROM dbo.Package2ItemClient WHERE CodClient = @CodClient AND CodItem = @CodItem) - -- primo tentativo: cerco il package dato SIA cliente che ITEM - BEGIN - SELECT TOP 1 @CodPackag = CodPackag, @TotQta = TotQta, @Weight = Weight, @Tare = Tare, @NumImb = NumImb, @Durata = Durata - ,@LivPackag = 'Item-Client-Package' , @LivPackagDet = @CodItem + '-' + @CodClient + '-' + CodPackag - FROM dbo.Package2ItemClient - WHERE CodClient = @CodClient AND CodItem = @CodItem - ORDER BY TotQta DESC - END - ELSE IF EXISTS ( SELECT * FROM Package2Item WHERE CodItem = @CodItem ) - -- secondo tentativo: se non lo trovo cerco per SOLO ITEM - BEGIN - SELECT TOP 1 @CodPackag = CodPackag, @TotQta = TotQta, @Weight = Weight, @Tare = Tare, @NumImb = NumImb, @Durata = Durata - ,@LivPackag = 'Item-Package', @LivPackagDet = @CodItem + '-' + CodPackag - FROM dbo.Package2Item WHERE CodItem = @CodItem - ORDER BY TotQta DESC - END - ELSE - -- secondo tentativo: se non lo trovo cerco per SOLO ITEM - BEGIN - SELECT TOP 1 @CodPackag = CodPackag, @TotQta = TotQta, @Weight = Weight, @Tare = Tare, @NumImb = NumImb, @Durata = Durata - ,@LivPackag = 'Package', @LivPackagDet = CodPackag - FROM dbo.Package2 WHERE CodPackag = 0 - END -END - -RETURN -GO -PRINT N'Creating [dbo].[stp_OH_countRemaining]...'; - - -GO --- ============================================= --- Author: Steamware --- Mod. date: 2014.05.27 --- Description: conteggio OrdersHist ancora da processare --- ============================================= -CREATE PROCEDURE dbo.stp_OH_countRemaining -AS - - -SELECT COUNT(*) as RecordsIn -FROM dbo.OrdersHist -WHERE CodQuote = 0 - -RETURN -GO PRINT N'Creating [dbo].[stp_PL_getByListLingua]...'; @@ -9230,6 +8391,623 @@ ORDER BY NumOrd RETURN GO +PRINT N'Creating [dbo].[stp_prt_dsQuoteFull_byChiave]...'; + + +GO +-- ============================================= +-- STORED PROCEDURE stp_prt_dsQuoteFull_Q_Data +-- +-- Author: Steamware +-- Mod date: 2014.05.23 +-- Description: dataset stp_prt_dsQuoteFull_Q_Data per reportOffers +-- ============================================= +CREATE PROCEDURE [dbo].[stp_prt_dsQuoteFull_byChiave] +( + @Chiave AS NVARCHAR(50) = '' +) +AS +BEGIN + SET NOCOUNT ON; + +/* + Se decidiamo di separare le traduzioni dei lemmi tra Applicazione e stampa basta usare la prima cte come insert + nella tabella vocabolario e poi sostituire la cte con la tabella vocabolario stessa +*/ + +SELECT + -- chiave + Vers + , QuoteType + , CodQuote + , QuoteRev + -- valori + , IdxQState + , CodClient + , ClientName + , CodItem + , CodItemGroup + , RawMat + , UnitWeight + , BatchQty + , CodInco + , TranspZone + , KeyAM + , Note + , PriceOff + , CodClientAssoc + , ClientNameAssoc + , ItemDescr + , CodifProfilo + , ClasseMerc + , TipoDies + , CodDiesGroup + , DiamDies + , HoleNumDies + , DiesPrice + , DiesExpLife + , DiesEOLife + , DiesByClass + , NumDiesInList + , NumDiesExaust + , CodPlant + , KeyAMIL + , KgTeo + , NumSMED + , QuotaMan + , PRMWeight + , PWeight + , PTare + , LivPackage + , LivPackageDett + , RawMatCost + , RawMatExtraCost + , RawMatFullCost + , CodPackag + , PkgDesc + , FSR + , ProvvCost + , EECost + , GasCost + , DiesCost + , PackCost + , TranspCost + , SellCost01 + , RefCost01 + , SellCost04 + , RefCost04 + , WSR01 + , MSR01 + , NetProd01 + , FC4UG01 + , VC4UG01 + , OH4UG01 + , SC4UG01 + , DSR + , NetProd04 + , FC4UG04 + , VC4UG04 + , FVC + , Charge + , P_FVC + , CPS + , P_CPS + , P_FC4UG04 + , FullCost + , P_FullCost + , MinPrice + , P_MinPrice + , P_PriceOff + , NetMar + , FCShield + , PckSur + , valid + , errorScore + , DiesPrice_sim + , SamplePrice + , DiesFullCost + , DiesPriceClientQuote + , DiesTecLife + , DiesCommLife + , MonthSalesPrev + , SalesPrevCost + , DiesFinCost + , ClientQuoteReven + , ExtraDiscountDies + , WSR01_sim + , MSR01_sim + , NetProd01_sim + , NetProd04_sim + , DSR_sim + , NetMar_sim + , FCShield_sim + , MinPrice_sim + , P_MinPrice_sim + +FROM dbo.v_QuoteFull_Q +WHERE QuoteType = dbo.f_prt_getParameter ( 'QuoteType', @Chiave , '&') + AND CodQuote = dbo.f_prt_getParameter ( 'CodQuote' , @Chiave , '&') + AND QuoteRev = dbo.f_prt_getParameter ( 'QuoteRev' , @Chiave +'&' , '&') + + +END +GO +PRINT N'Creating [dbo].[stp_prt_dsQuoteFull_Q_Data]...'; + + +GO +-- ============================================= +-- STORED PROCEDURE stp_prt_dsQuoteFull_Q_Data +-- +-- Author: Steamware +-- Mod date: 2014.04.28 +-- Description: dataset stp_prt_dsQuoteFull_Q_Data per reportOffers +-- ============================================= +CREATE PROCEDURE [dbo].[stp_prt_dsQuoteFull_Q_Data] + @Ticket AS INT = 1 +AS +BEGIN + SET NOCOUNT ON; + +/* + Se decidiamo di separare le traduzioni dei lemmi tra Applicazione e stampa basta usare la prima cte come insert + nella tabella vocabolario e poi sostituire la cte con la tabella vocabolario stessa +*/ + +SELECT + -- chiave + Vers + , QuoteType + , CodQuote + , QuoteRev + -- valori + , IdxQState + , CodClient + , ClientName + , CodItem + , CodItemGroup + , RawMat + , UnitWeight + , BatchQty + , CodInco + , TranspZone + , KeyAM + , Note + , PriceOff + , CodClientAssoc + , ClientNameAssoc + , ItemDescr + , CodifProfilo + , ClasseMerc + , TipoDies + , CodDiesGroup + , DiamDies + , HoleNumDies + , DiesPrice + , DiesExpLife + , DiesEOLife + , DiesByClass + , NumDiesInList + , NumDiesExaust + , CodPlant + , KeyAMIL + , KgTeo + , NumSMED + , QuotaMan + , PRMWeight + , PWeight + , PTare + , LivPackage + , LivPackageDett + , RawMatCost + , RawMatExtraCost + , RawMatFullCost + , CodPackag + , PkgDesc + , FSR + , ProvvCost + , EECost + , GasCost + , DiesCost + , PackCost + , TranspCost + , SellCost01 + , RefCost01 + , SellCost04 + , RefCost04 + , WSR01 + , MSR01 + , NetProd01 + , FC4UG01 + , VC4UG01 + , OH4UG01 + , SC4UG01 + , DSR + , NetProd04 + , FC4UG04 + , VC4UG04 + , FVC + , Charge + , P_FVC + , CPS + , P_CPS + , P_FC4UG04 + , FullCost + , P_FullCost + , MinPrice + , P_MinPrice + , P_PriceOff + , NetMar + , FCShield + , PckSur + , valid + , errorScore + , DiesPrice_sim + , SamplePrice + , DiesFullCost + , DiesPriceClientQuote + , DiesTecLife + , DiesCommLife + , MonthSalesPrev + , SalesPrevCost + , DiesFinCost + , ClientQuoteReven + , ExtraDiscountDies + , WSR01_sim + , MSR01_sim + , NetProd01_sim + , NetProd04_sim + , DSR_sim + , NetMar_sim + , FCShield_sim + , MinPrice_sim + , P_MinPrice_sim + +FROM dbo.v_QuoteFull_Q AS qf +INNER JOIN dbo.ReportPrintTicket AS prt + ON qf.QuoteType = dbo.f_prt_getParameter ( 'QuoteType', prt.Chiave , '&') + AND qf.CodQuote = dbo.f_prt_getParameter ( 'CodQuote' , prt.Chiave , '&') + AND qf.QuoteRev = dbo.f_prt_getParameter ( 'QuoteRev' , prt.Chiave +'&' , '&') + AND prt.Ticket = @Ticket + + +/* OLD VERSION +WITH Cte AS -- carico i lemmi dei campi che mi servono per la stampa +( +SELECT Lingua, + 'prt1_'+ Lemma AS Lemma, + CASE WHEN @Lingua = 'LB' + THEN Lemma + ELSE Traduzione END + AS Traduzione -- il lemma corrisponde ai campi +FROM Vocabolario +WHERE Lemma IN ( 'ClientName' + ,'CodClient' + ,'CodItem' + ,'ItemDescr' + ,'CodifProfilo' + ,'ClasseMerc' + ,'CodClientAssoc' + ,'ClientNameAssoc' + ,'CodItemGroup' + ,'UnitWeight' + ,'RawMat' + ,'RawMatCost' + ,'RawMatExtraCost' + ,'RawMatFullCost' + ,'RawMatCost' + ,'RawMatExtraCost' + ,'BatchQty' + ,'ProvvCost' + ,'CodInco','TipoDies' + ,'CodDiesGroup' + ,'DiamDies' + ,'DiesPrice' + ,'HoleNumDies' + ,'DiesExpLife' + ,'NumDiesInList' + ,'DiesEOLife' + ,'NumDiesExaust' + ,'CodPlant' + ,'HoleNumDies' + ,'KeyAMIL' + ,'KgTeo' + ,'WSR01' + ,'NumSMED' + ,'MSR01' + ,'NetProd01' + ,'CodPackag' + ,'NetProd04' + ,'QuotaMan' + ,'LivPackage' + ,'LivPackageDet' + ,'PkgDesc' + ,'PRMWeight' + ,'DSR' + ,'PWeight' + ,'PTare' + ,'FSR' + ,'RefCost01' + ,'SellCost01' + ,'EECost' + ,'GasCost' + ,'DiesCost' + ,'RefCost04' + ,'SellCost04' + ,'PackCost' + ,'ProvvCost' + ,'TranspCost' + ,'VC4UG01' + ,'VC4UG04' + ,'SC4UG01' + ,'FVC' + ,'P_FVC' + ,'CPS' + ,'P_CPS' + ,'FC4UG04' + ,'P_FC4UG04' + ,'FullCost' + ,'P_FullCost' + ,'MinPrice' + ,'P_MinPrice' + ,'Charge' + ,'PriceOff' + ,'P_PriceOff' + ,'NetMar' + ,'FCShield' + ,'PckSur' + ) +), +ctepvt AS ( -- faccio pivot dei lemmi e loro traduzioni + SELECT + Lingua, + prt1_BatchQty, + prt1_Charge, + prt1_ClasseMerc, + prt1_ClientName, + prt1_ClientNameAssoc, + prt1_CodClient, + prt1_CodClientAssoc, + prt1_CodDiesGroup, + prt1_CodifProfilo, + prt1_CodInco, + prt1_CodItem, + prt1_CodItemGroup, + prt1_CodPackag, + prt1_CodPlant, + prt1_CPS, + prt1_DiamDies, + prt1_DiesCost, + prt1_DiesEOLife, + prt1_DiesExpLife, + prt1_DiesPrice, + prt1_DSR, + prt1_EECost, + prt1_FC4UG04, + prt1_FCShield, + prt1_FSR, + prt1_FullCost, + prt1_FVC, + prt1_GasCost, + prt1_HoleNumDies, + prt1_ItemDescr, + prt1_KeyAMIL, + prt1_KgTeo, + prt1_LivPackage, + prt1_LivPackageDet, + prt1_MinPrice, + prt1_MSR01, + prt1_NetMar, + prt1_NetProd01, + prt1_NetProd04, + prt1_NumDiesExaust, + prt1_NumDiesInList, + prt1_NumSMED, + prt1_P_CPS, + prt1_P_FC4UG04, + prt1_P_FullCost, + prt1_P_FVC, + prt1_P_MinPrice, + prt1_P_PriceOff, + prt1_PackCost, + prt1_PckSur, + prt1_PkgDesc, + prt1_PriceOff, + prt1_PRMWeight, + prt1_ProvvCost, + prt1_PTare, + prt1_PWeight, + prt1_QuotaMan, + prt1_RawMat, + prt1_RawMatCost, + prt1_RawMatExtraCost, + prt1_RawMatFullCost, + prt1_RefCost01, + prt1_RefCost04, + prt1_SC4UG01, + prt1_SellCost01, + prt1_SellCost04, + prt1_TipoDies, + prt1_TranspCost, + prt1_UnitWeight, + prt1_VC4UG01, + prt1_VC4UG04, + prt1_WSR01 + FROM ( SELECT * FROM cte + WHERE Lemma Like 'prt1%' ) AS tab -- al momento non serve ma se mettiamo i lemmi separati con prt1_ in vocabolario + PIVOT ( MIN ( Traduzione ) -- possiamo semplicemente sostituire la tab vocabolario alla cte + FOR Lemma IN ( + prt1_BatchQty, + prt1_Charge, + prt1_ClasseMerc, + prt1_ClientName, + prt1_ClientNameAssoc, + prt1_CodClient, + prt1_CodClientAssoc, + prt1_CodDiesGroup, + prt1_CodifProfilo, + prt1_CodInco, + prt1_CodItem, + prt1_CodItemGroup, + prt1_CodPackag, + prt1_CodPlant, + prt1_CPS, + prt1_DiamDies, + prt1_DiesCost, + prt1_DiesEOLife, + prt1_DiesExpLife, + prt1_DiesPrice, + prt1_DSR, + prt1_EECost, + prt1_FC4UG04, + prt1_FCShield, + prt1_FSR, + prt1_FullCost, + prt1_FVC, + prt1_GasCost, + prt1_HoleNumDies, + prt1_ItemDescr, + prt1_KeyAMIL, + prt1_KgTeo, + prt1_LivPackage, + prt1_LivPackageDet, + prt1_MinPrice, + prt1_MSR01, + prt1_NetMar, + prt1_NetProd01, + prt1_NetProd04, + prt1_NumDiesExaust, + prt1_NumDiesInList, + prt1_NumSMED, + prt1_P_CPS, + prt1_P_FC4UG04, + prt1_P_FullCost, + prt1_P_FVC, + prt1_P_MinPrice, + prt1_P_PriceOff, + prt1_PackCost, + prt1_PckSur, + prt1_PkgDesc, + prt1_PriceOff, + prt1_PRMWeight, + prt1_ProvvCost, + prt1_PTare, + prt1_PWeight, + prt1_QuotaMan, + prt1_RawMat, + prt1_RawMatCost, + prt1_RawMatExtraCost, + prt1_RawMatFullCost, + prt1_RefCost01, + prt1_RefCost04, + prt1_SC4UG01, + prt1_SellCost01, + prt1_SellCost04, + prt1_TipoDies, + prt1_TranspCost, + prt1_UnitWeight, + prt1_VC4UG01, + prt1_VC4UG04, + prt1_WSR01 ) ) AS pvt +) +SELECT + -- chiave + Vers + ,QuoteType + ,CodQuote + ,QuoteRev + -- valori + ,BatchQty + ,Charge + ,ClasseMerc + ,ClientName + ,ClientNameAssoc + ,CodClient + ,CodClientAssoc + ,CodDiesGroup + ,CodifProfilo + ,CodInco + ,CodItem + ,CodItemGroup + ,CodPackag + ,CodPlant + ,CPS + ,DiamDies + ,DiesCost + ,DiesEOLife + ,DiesExpLife + ,DiesPrice + ,DSR + ,EECost + ,FC4UG01 + ,FC4UG04 + ,FCShield + ,FSR + ,FullCost + ,FVC + ,GasCost + ,HoleNumDies + ,IdxQState + ,ItemDescr + ,KeyAM + ,KeyAMIL + ,KgTeo + ,LivPackage + ,LivPackageDett + ,MinPrice + ,MSR01 + ,NetMar + ,NetProd01 + ,NetProd04 + ,Note + ,NumDiesExaust + ,NumDiesInList + ,NumSMED + ,OH4UG01 + ,P_CPS + ,P_FC4UG04 + ,P_FullCost + ,P_FVC + ,P_MinPrice + ,P_PriceOff + ,PackCost + ,PckSur + ,PkgDesc + ,PriceOff + ,PRMWeight + ,ProvvCost + ,PTare + ,PWeight + ,QuotaMan + ,RawMat + ,RawMatCost + ,RawMatExtraCost + ,RawMatFullCost + ,RefCost01 + ,RefCost04 + ,SC4UG01 + ,SellCost01 + ,SellCost04 + ,TipoDies + ,TranspCost + ,UnitWeight + ,VC4UG01 + ,VC4UG04 + ,WSR01 + -- lemmi x traduzione etichette campi + ,ctepvt.* +FROM dbo.v_QuoteFull_Q +INNER JOIN ctepvt +-- ON ctepvt.Lingua = 'EN' -- qui va messa la variabile della lingua di stampa +-- ON ctepvt.Lingua = @Lingua -- 'EN' -- qui va messa la variabile della lingua di stampa +ON ctepvt.Lingua = CASE WHEN @Lingua = 'LB' -- se richiede le Label dei campi estraggo i lemmi in inglese + THEN 'EN' + ELSE @Lingua + END +*/ + +END +GO PRINT N'Creating [dbo].[stp_QFC_creaListino]...'; @@ -9370,176 +9148,6 @@ BEGIN TRAN COMMIT TRAN -RETURN -GO -PRINT N'Creating [dbo].[stp_QLF_Delete]...'; - - -GO --- ============================================= --- Author: Steamware - S.E.L. --- Create date: 2014.04.16 --- Description: elimina un record in QL (Full) e in tabelle connesse --- ============================================= -create PROCEDURE [dbo].[stp_QLF_Delete] -( - @Original_QuoteType CHAR(1) = 'Q', - @Original_CodQuote BIGINT = 0, - @Original_QuoteRev INT = 0 -) -AS - -SET XACT_ABORT ON; -BEGIN TRAN - - -- elimino da QuoteFull_Q - DELETE - FROM QuoteFull_Q - WHERE QuoteType = @Original_QuoteType - AND CodQuote = @Original_CodQuote - AND QuoteRev = @Original_QuoteRev - - -- elimino da QuoteFull_S - DELETE - FROM QuoteFull_S - WHERE QuoteType = @Original_QuoteType - AND CodQuote = @Original_CodQuote - AND QuoteRev = @Original_QuoteRev - - -- elimino da QuoteWorkExt - DELETE - FROM QuoteWorkExt - WHERE QuoteType = @Original_QuoteType - AND CodQuote = @Original_CodQuote - AND QuoteRev = @Original_QuoteRev - - -- elimino da QuoteWorkInt - DELETE - FROM QuoteWorkInt - WHERE QuoteType = @Original_QuoteType - AND CodQuote = @Original_CodQuote - AND QuoteRev = @Original_QuoteRev - - -- elimino da QuoteSimPar - DELETE - FROM QuoteSimPar - WHERE QuoteType = @Original_QuoteType - AND CodQuote = @Original_CodQuote - AND QuoteRev = @Original_QuoteRev - - -- elimino da QuoteRM - DELETE - FROM QuoteRM - WHERE QuoteType = @Original_QuoteType - AND CodQuote = @Original_CodQuote - AND QuoteRev = @Original_QuoteRev - - -- elimino da QuoteParam - DELETE - FROM QuoteParam - WHERE QuoteType = @Original_QuoteType - AND CodQuote = @Original_CodQuote - AND QuoteRev = @Original_QuoteRev - - -- elimino da QuoteOC - DELETE - FROM QuoteOC - WHERE QuoteType = @Original_QuoteType - AND CodQuote = @Original_CodQuote - AND QuoteRev = @Original_QuoteRev - - -- elimino da QuoteList - DELETE - FROM QuoteList - WHERE QuoteType = @Original_QuoteType - AND CodQuote = @Original_CodQuote - AND QuoteRev = @Original_QuoteRev - -COMMIT TRAN - -RETURN -GO -PRINT N'Creating [dbo].[stp_listValues_getValidValuesFilt]...'; - - -GO --- ============================================= --- STORED stp_getValidValuesFilt --- --- Author: S.E.L. --- Create date: 2011.05.26 --- Description: gestione selezione dati parametrici --- con filtro su valore con LIKE --- ============================================= -create PROCEDURE [stp_listValues_getValidValuesFilt] -( - @TableName NVARCHAR(50), - @FieldName NVARCHAR(50), - @valueLike NVARCHAR(10) -) -AS -BEGIN - SET NOCOUNT ON; - - SELECT value, label - FROM ListValues - WHERE TableName = @TableName - AND FieldName = @FieldName - AND value LIKE @valueLike +'%' - ORDER BY ordinal -END -GO -PRINT N'Creating [dbo].[stp_listValues_getValidValues]...'; - - -GO --- ============================================= --- STORED stp_getValidValues --- --- Author: S.E.L. --- Create date: 2011.05.26 --- Description: gestione selezione dati parametrici --- ============================================= -create PROCEDURE [stp_listValues_getValidValues] -( - @TableName NVARCHAR(50), - @FieldName NVARCHAR(50) -) -AS -BEGIN - SET NOCOUNT ON; - - SELECT value, label - FROM ListValues - WHERE TableName = @TableName - AND FieldName = @FieldName - ORDER BY ordinal -END -GO -PRINT N'Creating [dbo].[stp_listValues_getByTable]...'; - - -GO -/*************************************** -* STORED stp_listValues_getByTable -* -* ottiene elenco campi data Table -* -* Steamware, S.E.L. -* mod: 2014.08.04 -* -****************************************/ -create PROCEDURE [stp_listValues_getByTable] -( - @TableName NVARCHAR(50) -) -AS - - SELECT * - FROM ListValues - WHERE TableName = @TableName - ORDER BY ordinal - RETURN GO PRINT N'Creating [dbo].[stp_QL_fullDataCount]...'; @@ -9589,6 +9197,163 @@ WHERE vq.CodClient = CASE WHEN ISNULL(@CodClient,'') = '' THEN vq.CodClient ELSE RETURN GO +PRINT N'Creating [dbo].[stp_QLF_getLast]...'; + + +GO +-- ============================================= +-- Author: Steamware - S.E.L. +-- Create date: 2014.04.17 +-- Description: recupera ultimo record del tipo richiesto +-- ============================================= +create PROCEDURE [dbo].[stp_QLF_getLast] +AS + +SELECT TOP 1 * +FROM v_QuoteFull_Q +ORDER BY CodQuote DESC + +RETURN +GO +PRINT N'Creating [dbo].[stp_QLF_getMinMax]...'; + + +GO +-- ============================================= +-- Author: Steamware - S.E.L. +-- Create date: 2014.04.23 +-- Description: recupera record min/max per qta batch dato intervallo di analisi +-- ============================================= +CREATE PROCEDURE [dbo].[stp_QLF_getMinMax] +( + @DateMin INT, -- formato aammgg + @DateMax INT -- formato aammgg +) +AS + +WITH cteMin AS +( +SELECT TOP 1 * +FROM v_QuoteFull_Q +WHERE CodQuote BETWEEN @DateMin AND @DateMax +ORDER BY BatchQty +) +, cteMax AS +( +SELECT TOP 1 * +FROM v_QuoteFull_Q +WHERE CodQuote BETWEEN @DateMin AND @DateMax +ORDER BY BatchQty DESC +) + +SELECT * FROM cteMin +UNION +SELECT * FROM cteMax + +RETURN +GO +PRINT N'Creating [dbo].[stp_QLF_revHist]...'; + + +GO +-- ============================================= +-- STORED PROCEDURE stp_QLF_revHist +-- +-- Author: Steamware +-- Create date: 2014.04.29 +-- Description: Recupera tutte le revisioni di un offerta +-- ============================================= +create PROCEDURE stp_QLF_revHist +( + @QuoteType CHAR(1) = 'Q' + , @CodQuote BIGINT = 0 +) +AS +SET NOCOUNT ON + +-- calcolo con aggiunta campi sommati... +SELECT vq.* +FROM v_QuoteFull_Q vq +WHERE QuoteType = @QuoteType + AND CodQuote = @CodQuote +ORDER BY QuoteRev DESC + +RETURN +GO +PRINT N'Creating [dbo].[stp_QLR_getByDate]...'; + + +GO +-- ============================================= +-- Author: Steamware +-- Mod. date: 2014.05.27 +-- Description: elaborazione OrdersHist +-- ============================================= +CREATE PROCEDURE [dbo].[stp_QLR_getByDate] +( + @DataRif INT +) +AS +BEGIN + +SET NOCOUNT ON; + +SELECT * +FROM v_StdCostList +WHERE DataRif = @DataRif + +END +RETURN +GO +PRINT N'Creating [dbo].[stp_QSP_upsert]...'; + + +GO +-- ============================================= +-- Author: Steamware - S.E.L. +-- Create date: 2014.05.16 +-- Description: update di un record in QL (Full) TIPO SIMULAZIONE e poi aggiorna a cascata +-- ============================================= +create PROCEDURE [dbo].[stp_QSP_upsert] +( + @QuoteType CHAR(1) = 'S', + @CodQuote BIGINT = 0 , + @QuoteRev INT = 0 , + @NomePar NVARCHAR(50) = '' , + @ValPar NVARCHAR(50) = '' +) +AS +BEGIN + -- SET NOCOUNT ON added to prevent extra result sets from + -- interfering with SELECT statements. + SET NOCOUNT ON; + + -- variabili + DECLARE @trovati INT = 0 + + -- inserisco CodDiesGroup + SELECT @trovati = COUNT(*) + FROM QuoteSimPar + WHERE QuoteType = @QuoteType + AND CodQuote = @CodQuote + AND QuoteRev = @QuoteRev + AND NomePar = @NomePar + IF(@trovati = 0) + BEGIN + INSERT INTO QuoteSimPar(QuoteType, CodQuote, QuoteRev, NomePar, ValPar) + VALUES(@QuoteType, @CodQuote, @QuoteRev, @NomePar, @ValPar) + END + ELSE + BEGIN + UPDATE QuoteSimPar + SET ValPar = @ValPar + WHERE QuoteType = @QuoteType + AND CodQuote = @CodQuote + AND QuoteRev = @QuoteRev + AND NomePar = @NomePar + END +END +GO PRINT N'Creating [dbo].[stp_QL_copyParamS]...'; @@ -9697,73 +9462,3222 @@ ELSE RETURN GO -PRINT N'Creating [dbo].[stp_TD_upsert]...'; +PRINT N'Creating [dbo].[stp_listValues_getByTable]...'; + + +GO +/*************************************** +* STORED stp_listValues_getByTable +* +* ottiene elenco campi data Table +* +* Steamware, S.E.L. +* mod: 2014.08.04 +* +****************************************/ +create PROCEDURE [stp_listValues_getByTable] +( + @TableName NVARCHAR(50) +) +AS + + SELECT * + FROM ListValues + WHERE TableName = @TableName + ORDER BY ordinal + +RETURN +GO +PRINT N'Creating [dbo].[stp_listValues_getValidValues]...'; + + +GO +-- ============================================= +-- STORED stp_getValidValues +-- +-- Author: S.E.L. +-- Create date: 2011.05.26 +-- Description: gestione selezione dati parametrici +-- ============================================= +create PROCEDURE [stp_listValues_getValidValues] +( + @TableName NVARCHAR(50), + @FieldName NVARCHAR(50) +) +AS +BEGIN + SET NOCOUNT ON; + + SELECT value, label + FROM ListValues + WHERE TableName = @TableName + AND FieldName = @FieldName + ORDER BY ordinal +END +GO +PRINT N'Creating [dbo].[stp_listValues_getValidValuesFilt]...'; + + +GO +-- ============================================= +-- STORED stp_getValidValuesFilt +-- +-- Author: S.E.L. +-- Create date: 2011.05.26 +-- Description: gestione selezione dati parametrici +-- con filtro su valore con LIKE +-- ============================================= +create PROCEDURE [stp_listValues_getValidValuesFilt] +( + @TableName NVARCHAR(50), + @FieldName NVARCHAR(50), + @valueLike NVARCHAR(10) +) +AS +BEGIN + SET NOCOUNT ON; + + SELECT value, label + FROM ListValues + WHERE TableName = @TableName + AND FieldName = @FieldName + AND value LIKE @valueLike +'%' + ORDER BY ordinal +END +GO +PRINT N'Creating [dbo].[stp_QLF_Delete]...'; + + +GO +-- ============================================= +-- Author: Steamware - S.E.L. +-- Create date: 2014.04.16 +-- Description: elimina un record in QL (Full) e in tabelle connesse +-- ============================================= +create PROCEDURE [dbo].[stp_QLF_Delete] +( + @Original_QuoteType CHAR(1) = 'Q', + @Original_CodQuote BIGINT = 0, + @Original_QuoteRev INT = 0 +) +AS + +SET XACT_ABORT ON; +BEGIN TRAN + + -- elimino da QuoteFull_Q + DELETE + FROM QuoteFull_Q + WHERE QuoteType = @Original_QuoteType + AND CodQuote = @Original_CodQuote + AND QuoteRev = @Original_QuoteRev + + -- elimino da QuoteFull_S + DELETE + FROM QuoteFull_S + WHERE QuoteType = @Original_QuoteType + AND CodQuote = @Original_CodQuote + AND QuoteRev = @Original_QuoteRev + + -- elimino da QuoteWorkExt + DELETE + FROM QuoteWorkExt + WHERE QuoteType = @Original_QuoteType + AND CodQuote = @Original_CodQuote + AND QuoteRev = @Original_QuoteRev + + -- elimino da QuoteWorkInt + DELETE + FROM QuoteWorkInt + WHERE QuoteType = @Original_QuoteType + AND CodQuote = @Original_CodQuote + AND QuoteRev = @Original_QuoteRev + + -- elimino da QuoteSimPar + DELETE + FROM QuoteSimPar + WHERE QuoteType = @Original_QuoteType + AND CodQuote = @Original_CodQuote + AND QuoteRev = @Original_QuoteRev + + -- elimino da QuoteRM + DELETE + FROM QuoteRM + WHERE QuoteType = @Original_QuoteType + AND CodQuote = @Original_CodQuote + AND QuoteRev = @Original_QuoteRev + + -- elimino da QuoteParam + DELETE + FROM QuoteParam + WHERE QuoteType = @Original_QuoteType + AND CodQuote = @Original_CodQuote + AND QuoteRev = @Original_QuoteRev + + -- elimino da QuoteOC + DELETE + FROM QuoteOC + WHERE QuoteType = @Original_QuoteType + AND CodQuote = @Original_CodQuote + AND QuoteRev = @Original_QuoteRev + + -- elimino da QuoteList + DELETE + FROM QuoteList + WHERE QuoteType = @Original_QuoteType + AND CodQuote = @Original_CodQuote + AND QuoteRev = @Original_QuoteRev + +COMMIT TRAN + +RETURN +GO +PRINT N'Creating [dbo].[stp_checkOffers4Item]...'; + + +GO +-- ============================================= +-- Author: Steamware +-- Create date: 2014.05.11 +-- Description: elenco dati produzione x item indicato +-- ============================================= +CREATE PROCEDURE dbo.stp_checkOffers4Item (@CodItem NVARCHAR(50) = '') +AS +SELECT rmd.RawMat + , ISNULL(@CodItem,'-') AS CodItem + , COUNT(pl.EventStart) AS numRec +FROM RawMatDet rmd +LEFT JOIN ( + SELECT pl.EventStart + , pl.RawMat + FROM ProductionLog pl + INNER JOIN DiesDet dd + ON pl.CodDies = dd.CodDies + WHERE dd.CodItem = @CodItem + AND ISNULL(pl.RawMat, '') <> '' + ) AS pl + ON rmd.RawMat = pl.RawMat +WHERE ISNULL(rmd.RawMat, '') <>'' +GROUP BY rmd.RawMat +ORDER BY rmd.RawMat + +RETURN +GO +PRINT N'Creating [dbo].[stp_getDataCodPackag]...'; + + +GO +-- ============================================= +-- Author: G.A.R. +-- Mad. date: 2014-06-06 +-- Description: Ritorna il package e i dati associati dove presenti +-- sostituisce la relativa funzione UDF f_getDataCodPackag +-- ============================================= +CREATE PROCEDURE [stp_getDataCodPackag] + + @CodItem NVARCHAR(50), + @CodClient NVARCHAR(50), + -- output variable + @CodPackag NVARCHAR(50) OUTPUT, + @TotQta DECIMAL(18, 3) OUTPUT, + @Weight DECIMAL(18, 6) OUTPUT, + @Tare DECIMAL(18, 6) OUTPUT, + @NumImb DECIMAL(9, 6) OUTPUT, + @Durata DECIMAL(18, 6) OUTPUT, + @LivPackag NVARCHAR(50) OUTPUT, + @LivPackagDet NVARCHAR(50) OUTPUT +AS +BEGIN + + SET NOCOUNT ON; + SET XACT_ABORT ON; + + IF EXISTS ( SELECT * FROM dbo.Package2ItemClient WHERE CodClient = @CodClient AND CodItem = @CodItem) + -- primo tentativo: cerco il package dato SIA cliente che ITEM + BEGIN + SELECT TOP 1 @CodPackag = CodPackag, @TotQta = TotQta, @Weight = Weight, @Tare = Tare, @NumImb = NumImb, @Durata = Durata + ,@LivPackag = 'Item-Client-Package' , @LivPackagDet = @CodItem + '-' + @CodClient + '-' + CodPackag + FROM dbo.Package2ItemClient + WHERE CodClient = @CodClient AND CodItem = @CodItem + ORDER BY TotQta DESC + END + ELSE IF EXISTS ( SELECT * FROM Package2Item WHERE CodItem = @CodItem ) + -- secondo tentativo: se non lo trovo cerco per SOLO ITEM + BEGIN + SELECT TOP 1 @CodPackag = CodPackag, @TotQta = TotQta, @Weight = Weight, @Tare = Tare, @NumImb = NumImb, @Durata = Durata + ,@LivPackag = 'Item-Package', @LivPackagDet = @CodItem + '-' + CodPackag + FROM dbo.Package2Item WHERE CodItem = @CodItem + ORDER BY TotQta DESC + END + ELSE + -- secondo tentativo: se non lo trovo cerco per SOLO ITEM + BEGIN + SELECT TOP 1 @CodPackag = CodPackag, @TotQta = TotQta, @Weight = Weight, @Tare = Tare, @NumImb = NumImb, @Durata = Durata + ,@LivPackag = 'Package', @LivPackagDet = CodPackag + FROM dbo.Package2 WHERE CodPackag = 0 + END +END + +RETURN +GO +PRINT N'Creating [dbo].[stp_OH_countRemaining]...'; + + +GO +-- ============================================= +-- Author: Steamware +-- Mod. date: 2014.05.27 +-- Description: conteggio OrdersHist ancora da processare +-- ============================================= +CREATE PROCEDURE dbo.stp_OH_countRemaining +AS + + +SELECT COUNT(*) as RecordsIn +FROM dbo.OrdersHist +WHERE CodQuote = 0 + +RETURN +GO +PRINT N'Creating [voc].[stp_insNewLemma]...'; + + +GO +/************************************* +* STORED PROCEDURE stp_insNewLemma +* +* inseriemtno lemma vocabolario +* +* mod : 14/05/2012 +* aut : S.E. Locatelli +**************************************/ +CREATE PROCEDURE [voc].[stp_insNewLemma] +( + @lemma NVARCHAR(50), + @traduzione NVARCHAR(500), + @OverWrite CHAR(1) = 'Y' -- Y/N Per forzarne inserimento anche se già presente +) +AS + +-- elimino se c'era già e se richiesto... +IF @OverWrite = 'Y' +BEGIN + DELETE FROM Vocabolario + WHERE lemma = @lemma +END + +-- inserisco x tutte le lingue attive... +INSERT INTO Vocabolario +SELECT lingua, @lemma, @traduzione +FROM Lingue + +SELECT * +FROM Vocabolario +WHERE lemma = @lemma + +RETURN +GO +PRINT N'Creating [voc].[stp_getByLingua]...'; + + +GO + +CREATE PROCEDURE [voc].[stp_getByLingua] +( + @Lingua nvarchar(3) +) +AS + SET NOCOUNT ON; +SELECT Lingua, Lemma, Traduzione +FROM Vocabolario +WHERE (Lingua = @Lingua) +GO +PRINT N'Creating [voc].[stp_getByLinguaLemmaLike]...'; + + +GO + + +/************************************* +* STORED PROCEDURE stp_getByLemmaLike +* +* elenco record da ricerca LIKE su lemma +* +* mod : 2014.04.28 +* aut : S.E. Locatelli +**************************************/ +CREATE PROCEDURE [voc].[stp_getByLinguaLemmaLike] +( + @Lingua NVARCHAR(3), + @search NVARCHAR(50) +) +AS + +SET NOCOUNT ON; +SELECT Lingua, Lemma + ,CASE WHEN @Lingua = 'LB' THEN CONVERT(NVARCHAR(500),Lemma) + ELSE Traduzione END + AS Traduzione -- la traduzione corrisponde ai campi/lemmi x i report +FROM Vocabolario +WHERE (Lemma LIKE @search + '%') + AND ( Lingua = CASE WHEN @Lingua = 'LB' -- se richiede le Label dei campi estraggo i lemmi in inglese + THEN 'EN' + ELSE @Lingua + END ) + +/* OLD +SELECT Lingua, Lemma, Traduzione +FROM Vocabolario +WHERE (Lemma LIKE @search + '%') + AND (Lingua = @Lingua) +*/ +GO +PRINT N'Creating [voc].[stp_updateQuery]...'; + + +GO + +CREATE PROCEDURE [voc].[stp_updateQuery] +( + @Traduzione nvarchar(500), + @Original_Lingua nvarchar(3), + @Original_Lemma nvarchar(50) +) +AS + SET NOCOUNT OFF; +UPDATE [dbo].[Vocabolario] SET [Traduzione] = @Traduzione WHERE ([Lingua] = @Original_Lingua) AND ([Lemma] = @Original_Lemma) +GO +PRINT N'Creating [voc].[stp_upsertLemma]...'; + + +GO +/************************************* +* STORED PROCEDURE stp_upsertLemma +* +* upsert record lemma +* +* mod : 14/05/2012 +* aut : S.E. Locatelli +**************************************/ +create PROCEDURE [voc].[stp_upsertLemma] +( + @Lingua NVARCHAR(3), + @Lemma NVARCHAR(50), + @Traduzione NVARCHAR(500) +) +AS + +-- effettuo merge x upsert! + + MERGE Vocabolario AS target + USING (SELECT @Lingua, @Lemma, @Traduzione) AS source (Lingua, Lemma, Traduzione) + ON (target.Lingua = source.Lingua AND target.Lemma = source.Lemma) + WHEN MATCHED THEN + UPDATE SET Traduzione = source.traduzione + WHEN NOT MATCHED THEN + INSERT (Lingua, Lemma, Traduzione) + VALUES (source.Lingua, source.Lemma, source.Traduzione); + +RETURN +GO +PRINT N'Creating [voc].[stp_voUpdateLemmiReport]...'; + + +GO +-- ============================================= +-- Author: Samuele Locatelli +-- Create date: 2014.05.09 +-- Description: riallinea le traduzioni dei report ai termini corrispondenti a video +-- ============================================= +CREATE PROCEDURE voc.stp_voUpdateLemmiReport +AS +BEGIN + -- SET NOCOUNT ON added to prevent extra result sets from + -- interfering with SELECT statements. + SET NOCOUNT ON; + + -- mostro situazione iniziale + SELECT * + FROM Vocabolario v1 + inner join vocabolario v ON replace(v1.Lemma, 'C2P_prt1_','') = v.Lemma AND v1.Lingua = v.Lingua + WHERE v1.lemma LIKE 'C2P_prt1_%' + + -- update! + UPDATE v1 + SET traduzione = v.traduzione + FROM Vocabolario v1 + INNER JOIN vocabolario v ON replace(v1.Lemma, 'C2P_prt1_','') = v.Lemma AND v1.Lingua = v.Lingua + WHERE v1.lemma LIKE 'C2P_prt1_%' + + + -- mostro situazione finale + SELECT * + FROM Vocabolario v1 + inner join vocabolario v ON replace(v1.Lemma, 'C2P_prt1_','') = v.Lemma AND v1.Lingua = v.Lingua + WHERE v1.lemma LIKE 'C2P_prt1_%' + +END +GO +PRINT N'Creating [tmp].[importClientsRaw]...'; + + +GO + + + +-- ============================================= +-- Author: S.E. Locatelli +-- Mod. date: 2013.11.29 +-- Description: Procedura per import dati in tabella tmp da file csv +-- ============================================= +CREATE PROCEDURE [tmp].[importClientsRaw] +( + @fileType NVARCHAR(50) = 'ClientsRaw' +) +AS +BEGIN + SET NOCOUNT ON; + + -- per Giancarlo: rendere parametrico con esecuzione sql x poter inserire nei parametri il separatore ed il resto? http://www.sqlteam.com/article/using-bulk-insert-to-load-a-text-file + + IF @fileType = 'ClientsRaw' + BEGIN + -- svuoto tabella temp + TRUNCATE TABLE tmp.ClientsRaw + + -- carico dati bulk! + BULK INSERT tmp.ClientsRaw + FROM 'e:\test\ClientsRaw.csv' + WITH (FIELDTERMINATOR = ';', ROWTERMINATOR = '\n', FIRSTROW = 2, ERRORFILE = 'e:\test\errorClients.log') + --WITH (FIELDTERMINATOR = ';', ROWTERMINATOR = '\n', FIRSTROW = 2, ERRORFILE = 'e:\test\errorClients.log', CODEPAGE = '1252') + + SELECT COUNT(*) as RecordsIn FROM tmp.ClientsRaw + + END + +END +GO +PRINT N'Creating [tmp].[importItemsRaw]...'; + + +GO + + +-- ============================================= +-- Author: S.E. Locatelli +-- Create date: 2013.11.29 +-- Description: Procedura per import dati in tabella tmp da file csv +-- ============================================= +CREATE PROCEDURE [tmp].[importItemsRaw] +( + @fileType NVARCHAR(50) = 'ItemsRaw' +) +AS +BEGIN + SET NOCOUNT ON; + + -- per Giancarlo: rendere parametrico con esecuzione sql x poter inserire nei parametri il separatore ed il resto? http://www.sqlteam.com/article/using-bulk-insert-to-load-a-text-file + + IF @fileType = 'ItemsRaw' + BEGIN + -- svuoto tabella temp + TRUNCATE TABLE tmp.ItemsRaw + + -- carico dati bulk! + BULK INSERT tmp.ItemsRaw + FROM 'e:\test\ItemsRaw.csv' + WITH (FIELDTERMINATOR = ';', ROWTERMINATOR = '\n', FIRSTROW = 2, ERRORFILE = 'e:\test\errorItems.log') + --WITH (FIELDTERMINATOR = ';', ROWTERMINATOR = '\n', FIRSTROW = 2, ERRORFILE = 'e:\test\errorItems.log', CODEPAGE = '1252') + + SELECT COUNT(*) as RecordsIn FROM tmp.ItemsRaw + + END + +END +GO +PRINT N'Creating [tmp].[convertTranspCostRaw]...'; + + +GO + + +-- ============================================= +-- Author: S.E. Locatelli +-- Create date: 2013.11.28 +-- Description: Procedura per conversioen e tipizzazione dati da tmp a ext x TranspCostRaw +-- ============================================= +CREATE PROCEDURE [tmp].[convertTranspCostRaw] +( + @fileType NVARCHAR(50) = 'TranspCostRaw' +) +AS +BEGIN + SET NOCOUNT ON; + + -- per Giancarlo: rendere parametrico con esecuzione sql x poter inserire nei parametri il separatore ed il resto? http://www.sqlteam.com/article/using-bulk-insert-to-load-a-text-file + + IF @fileType = 'TranspCostRaw' + BEGIN + -- svuoto tabella temp + TRUNCATE TABLE ext.TranspCostRaw + + -- inserisco con cast valori... + INSERT ext.TranspCostRaw + WITH (TABLOCK) + (TranspZone, TranspCost) + SELECT + TranspZone, + MAX(CAST( CAST( REPLACE( '0' + TranspCost,',','.' )AS float )AS decimal( 18,9 ))) AS TranspCost + FROM tmp.TranspCostRaw + GROUP BY TranspZone + + SELECT COUNT(*) as RecordsIn FROM ext.TranspCostRaw + END + +END +GO +PRINT N'Creating [tmp].[importDiesGroupRaw]...'; + + +GO + + +-- ============================================= +-- Author: S.E. Locatelli +-- Create date: 2013.12.02 +-- Description: Procedura per import dati in tabella tmp da file csv +-- ============================================= +CREATE PROCEDURE [tmp].[importDiesGroupRaw] +( + @fileType NVARCHAR(50) = 'DiesGroupRaw' +) +AS +BEGIN + SET NOCOUNT ON; + + -- per Giancarlo: rendere parametrico con esecuzione sql x poter inserire nei parametri il separatore ed il resto? http://www.sqlteam.com/article/using-bulk-insert-to-load-a-text-file + + IF @fileType = 'DiesGroupRaw' + BEGIN + -- svuoto tabella temp + TRUNCATE TABLE tmp.DiesGroupRaw + + -- carico dati bulk! + BULK INSERT tmp.DiesGroupRaw + FROM 'e:\test\DiesGroupRaw.csv' + WITH (FIELDTERMINATOR = ';', ROWTERMINATOR = '\n', FIRSTROW = 2, ERRORFILE = 'e:\test\errorDiesGroup.log') + --WITH (FIELDTERMINATOR = ';', ROWTERMINATOR = '\n', FIRSTROW = 2, ERRORFILE = 'e:\test\errorDiesGroup.log', CODEPAGE = '1252') + + SELECT COUNT(*) as RecordsIn FROM tmp.DiesGroupRaw + + END + +END +GO +PRINT N'Creating [tmp].[importTranspCostRaw]...'; + + +GO + + +-- ============================================= +-- Author: S.E. Locatelli +-- Create date: 2014.01.16 +-- Description: Procedura per import dati in tabella tmp da file csv +-- ============================================= +create PROCEDURE [tmp].[importTranspCostRaw] +( + @fileType NVARCHAR(50) = 'TranspCostRaw' +) +AS +BEGIN + SET NOCOUNT ON; + + -- per Giancarlo: rendere parametrico con esecuzione sql x poter inserire nei parametri il separatore ed il resto? http://www.sqlteam.com/article/using-bulk-insert-to-load-a-text-file + + IF @fileType = 'TranspCostRaw' + BEGIN + -- svuoto tabella temp + TRUNCATE TABLE tmp.TranspCostRaw + + -- carico dati bulk! + BULK INSERT tmp.TranspCostRaw + FROM 'e:\test\TranspCostRaw.csv' + WITH (FIELDTERMINATOR = ';', ROWTERMINATOR = '\n', FIRSTROW = 2, ERRORFILE = 'e:\test\errorTranspCost.log') + --WITH (FIELDTERMINATOR = ';', ROWTERMINATOR = '\n', FIRSTROW = 2, ERRORFILE = 'e:\test\errorTranspCost.log', CODEPAGE = '1252') + + SELECT COUNT(*) as RecordsIn FROM tmp.TranspCostRaw + + END + +END +GO +PRINT N'Creating [tmp].[convertDiesRaw]...'; + + +GO + + +-- ============================================= +-- Author: S.E. Locatelli +-- Create date: 2013.12.02 +-- Description: Procedura per conversione e tipizzazione dati da tmp a ext x DiesRaw +-- ============================================= +CREATE PROCEDURE [tmp].[convertDiesRaw] +( + @fileType NVARCHAR(50) = 'DiesRaw' +) +AS +BEGIN + SET NOCOUNT ON; + + -- per Giancarlo: rendere parametrico con esecuzione sql x poter inserire nei parametri il separatore ed il resto? http://www.sqlteam.com/article/using-bulk-insert-to-load-a-text-file + + IF @fileType = 'DiesRaw' + BEGIN + -- svuoto tabella temp + TRUNCATE TABLE ext.DiesRaw + + -- inserisco con cast valori... + INSERT ext.DiesRaw + WITH (TABLOCK) + ( CodDies, HoleNum, CodItem, CodDiesGroup, Price, ExpLife, ActLife, Active ) + SELECT + CodDies, + CAST(ISNULL(HoleNum,0) AS INT) AS HoleNum, + CodItem, + CodDiesGroup, + CAST( CAST( REPLACE( '0' + Price,',','.' )AS float )AS decimal( 9,3 )) AS Price, + CAST( CAST( REPLACE( '0' + ExpLife,',','.' )AS float )AS decimal( 9,2 )) AS ExpLife, + CAST( CAST( REPLACE( '0' + ActLife,',','.' )AS float )AS decimal( 9,2 )) AS ActLife, + CAST(ISNULL(Active,0) AS INT) AS Active + FROM tmp.DiesRaw; + + SELECT COUNT(*) as RecordsIn FROM ext.DiesRaw + END + +END +GO +PRINT N'Creating [tmp].[convertClientsRaw]...'; + + +GO + + +-- ============================================= +-- Author: S.E. Locatelli +-- Create date: 2013.11.28 +-- Description: Procedura per conversioen e tipizzazione dati da tmp a ext x ClientsRaw +-- ============================================= +CREATE PROCEDURE [tmp].[convertClientsRaw] +( + @fileType NVARCHAR(50) = 'ClientsRaw' +) +AS +BEGIN + SET NOCOUNT ON; + + -- per Giancarlo: rendere parametrico con esecuzione sql x poter inserire nei parametri il separatore ed il resto? http://www.sqlteam.com/article/using-bulk-insert-to-load-a-text-file + + IF @fileType = 'ClientsRaw' + BEGIN + -- svuoto tabella temp + TRUNCATE TABLE ext.ClientsRaw + + -- inserisco con cast valori... + INSERT ext.ClientsRaw + WITH (TABLOCK) + ( CodClient, ClientName, CodAg, ZipCode, City, [State], Nation, TranspZone) + SELECT + CodClient, + ClientName, + CodAg, + ZipCode, + City, + [State], + Nation, + TranspZone + FROM tmp.ClientsRaw; + + SELECT COUNT(*) as RecordsIn FROM ext.ClientsRaw + END + +END +GO +PRINT N'Creating [tmp].[importDiesRaw]...'; + + +GO + + +-- ============================================= +-- Author: S.E. Locatelli +-- Create date: 2013.12.02 +-- Description: Procedura per import dati in tabella tmp da file csv +-- ============================================= +create PROCEDURE [tmp].[importDiesRaw] +( + @fileType NVARCHAR(50) = 'DiesRaw' +) +AS +BEGIN + SET NOCOUNT ON; + + -- per Giancarlo: rendere parametrico con esecuzione sql x poter inserire nei parametri il separatore ed il resto? http://www.sqlteam.com/article/using-bulk-insert-to-load-a-text-file + + IF @fileType = 'DiesRaw' + BEGIN + -- svuoto tabella temp + TRUNCATE TABLE tmp.DiesRaw + + -- carico dati bulk! + BULK INSERT tmp.DiesRaw + FROM 'e:\test\DiesRaw.csv' + WITH (FIELDTERMINATOR = ';', ROWTERMINATOR = '\n', FIRSTROW = 2, ERRORFILE = 'e:\test\errorDies.log') + --WITH (FIELDTERMINATOR = ';', ROWTERMINATOR = '\n', FIRSTROW = 2, ERRORFILE = 'e:\test\errorDies.log', CODEPAGE = '1252') + + SELECT COUNT(*) as RecordsIn FROM tmp.DiesRaw + + END + +END +GO +PRINT N'Creating [tmp].[convertItemsRaw]...'; + + +GO + + +-- ============================================= +-- Author: S.E. Locatelli +-- Create date: 2013.11.28 +-- Description: Procedura per conversioen e tipizzazione dati da tmp a ext x ItemsRaw +-- ============================================= +CREATE PROCEDURE [tmp].[convertItemsRaw] +( + @fileType NVARCHAR(50) = 'ItemsRaw' +) +AS +BEGIN + SET NOCOUNT ON; + + -- per Giancarlo: rendere parametrico con esecuzione sql x poter inserire nei parametri il separatore ed il resto? http://www.sqlteam.com/article/using-bulk-insert-to-load-a-text-file + + IF @fileType = 'ItemsRaw' + BEGIN + -- svuoto tabella temp + TRUNCATE TABLE ext.ItemsRaw + + -- inserisco con cast valori... + INSERT ext.ItemsRaw + WITH (TABLOCK) + ( CodItem, ItemDescr, UnitWeight, CodPlant, CodItemGroup, Class01, Class02, Class03, Class04, Class05 ) + SELECT DISTINCT + CodItem, + ItemDescr, + CAST( CAST( REPLACE( '0' + UnitWeight,',','.' )AS float )AS decimal( 9,3 )) AS UnitWeight, + CodPlant, + CodItemGroup, + Class01, + Class02, + Class03, + Class04, + Class05 + FROM tmp.ItemsRaw; + + SELECT COUNT(*) as RecordsIn FROM ext.ItemsRaw + END + +END +GO +PRINT N'Creating [tmp].[convertDiesGroupRaw]...'; + + +GO + + + +-- ============================================= +-- Author: S.E. Locatelli +-- Create date: 2014.01.08 +-- Description: Procedura per conversione e tipizzazione dati da tmp a ext x DiesGroupRaw +-- ============================================= +CREATE PROCEDURE [tmp].[convertDiesGroupRaw] +( + @fileType NVARCHAR(50) = 'DiesGroupRaw' +) +AS +BEGIN + SET NOCOUNT ON; + + -- per Giancarlo: rendere parametrico con esecuzione sql x poter inserire nei parametri il separatore ed il resto? http://www.sqlteam.com/article/using-bulk-insert-to-load-a-text-file + + IF @fileType = 'DiesGroupRaw' + BEGIN + -- svuoto tabella temp + TRUNCATE TABLE ext.DiesGroupRaw + + -- inserisco con cast valori... + INSERT ext.DiesGroupRaw + WITH (TABLOCK) + ( CodDiesGroup, Price, QtyTot, QtyEOL, ExpLife, EOLLife) + SELECT + CodDiesGroup, + CAST( CAST( REPLACE( '0' + REPLACE(Price,'.',''),',','.' ) AS float )AS decimal( 9,3 )) AS Price, + CAST(ISNULL(QtyTot,0) AS INT) AS QtyTot, + CAST(ISNULL(QtyEOL,0) AS INT) AS QtyEOL, + CAST( CAST( REPLACE( '0' + REPLACE(ExpLife,'.',''),',','.' ) AS float )AS decimal( 9,2 )) AS ExpLife, + CAST( CAST( REPLACE( '0' + REPLACE(EOLLife,'.',''),',','.' ) AS float )AS decimal( 9,2 )) AS EOLLife + FROM tmp.DiesGroupRaw; + + SELECT COUNT(*) as RecordsIn FROM ext.DiesGroupRaw + END + +END +GO +PRINT N'Creating [tmp].[convertPackagRaw]...'; + + +GO + + +-- ============================================= +-- Author: S.E. Locatelli +-- Create date: 2013.11.29 +-- Description: Procedura per conversioen e tipizzazione dati da tmp a ext x PackagRaw +-- ============================================= +CREATE PROCEDURE [tmp].[convertPackagRaw] +( + @fileType NVARCHAR(50) = 'PackagRaw' +) +AS +BEGIN + SET NOCOUNT ON; + + -- per Giancarlo: rendere parametrico con esecuzione sql x poter inserire nei parametri il separatore ed il resto? http://www.sqlteam.com/article/using-bulk-insert-to-load-a-text-file + + IF @fileType = 'PackagRaw' + BEGIN + -- svuoto tabella temp + TRUNCATE TABLE ext.PackagRaw + + -- inserisco con cast valori... + INSERT ext.PackagRaw + WITH (TABLOCK) + ( CodPackag, PackagDesc, RMCost, RMWeight, Tare, FullWeight ) + SELECT + CodPackag, + PackagDesc, + CAST( CAST( REPLACE( '0' + RMCost,',','.' )AS float )AS decimal( 9,3 )) AS RMCost, + CAST( CAST( REPLACE( '0' + RMWeight,',','.' )AS float )AS decimal( 9,4 )) AS RMWeight, + CAST( CAST( REPLACE( '0' + Tare,',','.' )AS float )AS decimal( 9,4 )) AS Tare, + CAST( CAST( REPLACE( '0' + FullWeight,',','.' )AS float )AS decimal( 9,4 )) AS FullWeight + FROM tmp.PackagRaw; + + SELECT COUNT(*) as RecordsIn FROM ext.PackagRaw + END + +END +GO +PRINT N'Creating [tmp].[importPackagRaw]...'; + + +GO + + +-- ============================================= +-- Author: S.E. Locatelli +-- Create date: 2013.11.29 +-- Description: Procedura per import dati in tabella tmp da file csv +-- ============================================= +create PROCEDURE [tmp].[importPackagRaw] +( + @fileType NVARCHAR(50) = 'PackagRaw' +) +AS +BEGIN + SET NOCOUNT ON; + + -- per Giancarlo: rendere parametrico con esecuzione sql x poter inserire nei parametri il separatore ed il resto? http://www.sqlteam.com/article/using-bulk-insert-to-load-a-text-file + + IF @fileType = 'PackagRaw' + BEGIN + -- svuoto tabella temp + TRUNCATE TABLE tmp.PackagRaw + + -- carico dati bulk! + BULK INSERT tmp.PackagRaw + FROM 'e:\test\PackagRaw.csv' + WITH (FIELDTERMINATOR = ';', ROWTERMINATOR = '\n', FIRSTROW = 2, ERRORFILE = 'e:\test\errorPackag.log') + --WITH (FIELDTERMINATOR = ';', ROWTERMINATOR = '\n', FIRSTROW = 2, ERRORFILE = 'e:\test\errorPackag.log', CODEPAGE = '1252') + + SELECT COUNT(*) as RecordsIn FROM tmp.PackagRaw + + END + +END +GO +PRINT N'Creating [tmp].[convertProductionLogRaw]...'; + + +GO + + + +-- ============================================= +-- Author: S.E. Locatelli +-- Create date: 2013.11.28 +-- Description: Procedura per conversioen e tipizzazione dati da tmp a ext x ProductionLogRaw +-- ============================================= +CREATE PROCEDURE [tmp].[convertProductionLogRaw] +( + @fileType NVARCHAR(50) = 'ProductionLogRaw' +) +AS +BEGIN + SET NOCOUNT ON; + + -- per Giancarlo: rendere parametrico con esecuzione sql x poter inserire nei parametri il separatore ed il resto? http://www.sqlteam.com/article/using-bulk-insert-to-load-a-text-file + + IF @fileType = 'ProductionLogRaw' + BEGIN + -- svuoto tabella temp + TRUNCATE TABLE ext.ProductionLogRaw + + -- inserisco con cast valori... + INSERT ext.ProductionLogRaw + WITH (TABLOCK) + ( EventStart, EventEnd, CodPlant, ProcessNum, NrPos, CodDies, CodClient, OrderNum, BatchNum, ProcessType, EventType, RawMat, CodPackag, QtyIN, QtyOUT, QtyEXT, NumIN, NumOUT, QuotaPlant, QuotaMan, Tags, okPr, okQM, okSc, okDi ) + + SELECT + dbo.f_dtFromRaw( EventStart ) AS EventStart, -- record nulli sono già stati cancellati + dbo.f_dtFromRaw( EventEnd ) AS EventEnd, -- record nulli sono già stati cancellati + dbo.f_trim(ISNULL(CodPlant ,'')), + dbo.f_trim(ISNULL(ProcessNum ,'')), + dbo.f_trim(ISNULL(NrPos ,'')), + dbo.f_trim(ISNULL(CodDies ,'')), + dbo.f_trim(ISNULL(CodClient ,'')), + dbo.f_trim(ISNULL(OrderNum ,'')), + dbo.f_trim(ISNULL(BatchNum ,'')), + dbo.f_trim(ISNULL(ProcessType,'')), + dbo.f_trim(ISNULL(EventType ,'')), + dbo.f_trim(ISNULL(RawMat ,'')), + dbo.f_trim(ISNULL(CodPackag ,'')), + CAST( CAST( REPLACE( '0' + ISNULL(QtyIN,'') ,',','.' ) AS float ) AS decimal( 18,4 )) AS QtyIN, + CAST( CAST( REPLACE( '0' + ISNULL(QtyOUT,''),',','.' ) AS float ) AS decimal( 18,4 )) AS QtyOUT, + CAST( CAST( REPLACE( '0' + ISNULL(QtyEXT,''),',','.' ) AS float ) AS decimal( 18,4 )) AS QtyEXT, + CAST( ISNULL(NumIN ,'') AS int )AS NumIN, + CAST( ISNULL(NumOUT ,'') AS int )AS NumOUT, + CAST( CAST( REPLACE( '0' + ISNULL(QuotaPlant,''),',','.' ) AS float )AS decimal( 9,4 )) AS QuotaPlant, + CAST( CAST( REPLACE( '0' + ISNULL(QuotaMan,''),',','.' ) AS float )AS decimal( 9,4 )) AS QuotaMan, + dbo.f_trim(ISNULL(Tags ,'')), + okPr, + okQM, + okSc, + okDi + FROM tmp.ProductionLogRaw; + + SELECT COUNT(*) as RecordsIn FROM ext.ProductionLogRaw + END + +END +GO +PRINT N'Creating [tmp].[importProductionLogRaw]...'; + + +GO + + + + +-- ============================================= +-- Author: S.E. Locatelli +-- Create date: 2013.11.28 +-- Description: Procedura per import dati in tabelal tmp da file csv +-- +-- TRUNCATE TABLE tmp.ProductionLogRaw_KO +-- +-- ============================================= +CREATE PROCEDURE [tmp].[importProductionLogRaw] +( + @fileType NVARCHAR(50) = 'ProductionLogRaw' +) +AS +BEGIN + SET NOCOUNT ON; + + -- per Giancarlo: rendere parametrico con esecuzione sql x poter inserire nei parametri il separatore ed il resto? http://www.sqlteam.com/article/using-bulk-insert-to-load-a-text-file + + IF @fileType = 'ProductionLogRaw' + BEGIN + -- svuoto tabella temp + TRUNCATE TABLE tmp.ProductionLogRaw + + -- carico dati bulk! + BULK INSERT tmp.ProductionLogRaw + FROM 'e:\test\ProductRaw.csv' + + WITH (FIELDTERMINATOR = ';', ROWTERMINATOR = '\n', FIRSTROW = 2, ERRORFILE = 'e:\test\errorProduct.log') + --WITH (FIELDTERMINATOR = ';', ROWTERMINATOR = '\n', FIRSTROW = 2, ERRORFILE = 'e:\test\errorProduct.log', CODEPAGE = '1252') + + -- =============================================================================== + -- pulisco l tabella dai record con chiave duplicata ( se doppi li elimino tutti ) + -- =============================================================================== + SET XACT_ABORT ON; + BEGIN TRAN + + -- salvo i dati con chiave duplicata + INSERT INTO tmp.ProductionLogRaw_KO + SELECT Prod.*, GETDATE() FROM tmp.ProductionLogRaw AS Prod + INNER JOIN + ( + SELECT EventStart, EventEnd, CodPlant, ProcessNum, NrPos, CodDies + FROM tmp.ProductionLogRaw + GROUP BY EventStart, EventEnd, CodPlant, ProcessNum, NrPos, CodDies + HAVING COUNT(*)>1 + ) AS Dupl ON Prod.EventStart = Dupl.EventStart AND + Prod.EventEnd = Dupl.EventEnd AND + Prod.CodPlant = Dupl.CodPlant AND + Prod.ProcessNum = Dupl.ProcessNum AND + Prod.NrPos = Dupl.NrPos AND + Prod.CodDies = Dupl.CodDies + + -- Cancello i record con chiave duplicata + DELETE Prod + WITH (TABLOCK) + FROM tmp.ProductionLogRaw AS Prod + INNER JOIN + ( + SELECT EventStart, EventEnd, CodPlant, ProcessNum, NrPos, CodDies + FROM tmp.ProductionLogRaw + GROUP BY EventStart, EventEnd, CodPlant, ProcessNum, NrPos, CodDies + HAVING COUNT(*)>1 + ) AS Dupl ON Prod.EventStart = Dupl.EventStart AND + Prod.EventEnd = Dupl.EventEnd AND + Prod.CodPlant = Dupl.CodPlant AND + Prod.ProcessNum = Dupl.ProcessNum AND + Prod.NrPos = Dupl.NrPos AND + Prod.CodDies = Dupl.CodDies + + -- =============================================================================== + -- pulisco la tabella dai record con date non corrette + -- =============================================================================== + DELETE FROM tmp.ProductionLogRaw + WITH (TABLOCK) + OUTPUT deleted.* INTO tmp.ProductionLogRaw_KO -- salvo i record cancellati in tabella KO + ( EventStart, EventEnd, CodPlant, ProcessNum, NrPos, CodDies, CodClient, OrderNum, BatchNum, ProcessType, EventType, RawMat + , CodPackag, QtyIN, QtyOUT, QtyEXT, NumIN, NumOUT, QuotaPlant, QuotaMan, Tags, okPr, okQM, okSc, okDi ) + WHERE EventStart >= EventEnd + OR CONVERT( BIGINT , EventStart ) + 68000000000000 <= EventEnd -- record che darebbero errore poi nel datediff > 68 anni + OR EventStart IS NULL + OR EventEnd IS NULL + +-- SELECT * FROM tmp.ProductionLogRaw_KO + + --ROLLBACK + COMMIT + + SELECT COUNT(*) AS RecordsIn FROM tmp.ProductionLogRaw + + END +END +GO +PRINT N'Creating [tmp].[convertOrdersHistRaw]...'; + + +GO +-- ============================================= +-- Author: Steamware +-- Mod. date: 2014.05.22 +-- Description: Procedura per conversione e tipizzazione dati da tmp a ext x OrdersHistRaw +-- ============================================= +CREATE PROCEDURE [tmp].[convertOrdersHistRaw] +( + @fileType NVARCHAR(50) = 'OrdersHistRaw' +) +AS +BEGIN + SET NOCOUNT ON; + + -- per Giancarlo: rendere parametrico con esecuzione sql x poter inserire nei parametri il separatore ed il resto? http://www.sqlteam.com/article/using-bulk-insert-to-load-a-text-file + + IF @fileType = 'OrdersHistRaw' + BEGIN + -- svuoto tabella temp + TRUNCATE TABLE ext.OrdersHistRaw + + -- inserisco con cast valori... + INSERT ext.OrdersHistRaw + WITH (TABLOCK) + ( OrdNum, OrdRow, OrdDate, CodClient, CodItem, RawMat, RawMatCost, BatchQty, CodInco, OrdPrice, RawMatExtraCost, PriceOff, OrdQty, ProvvCost) + SELECT + OrdNum, + OrdRow, + dbo.f_dtFromRaw( OrdDate ) AS OrdDate, + CodClient, + CodItem, + RawMat, + CONVERT( DECIMAL( 18,6 ), CONVERT ( FLOAT , REPLACE( '0' + REPLACE(RawMatCost,'.',''),',','.' ) )) AS RawMatCost, + CONVERT(INT, CONVERT ( FLOAT , REPLACE( '0' + REPLACE(BatchQty,'.',''),',','.' ) )) AS BatchQty, -- lotto + CodInco, + CONVERT( DECIMAL( 18,6 ), CONVERT ( FLOAT , REPLACE( '0' + REPLACE(OrdPrice,'.',''),',','.' ) )) AS OrdPrice, + CONVERT( DECIMAL( 18,6 ), CONVERT ( FLOAT , REPLACE( '0' + REPLACE(RawMatExtraCost,'.',''),',','.' ) )) AS RawMatExtraCost, + CONVERT( DECIMAL( 9,6 ), CONVERT ( FLOAT , REPLACE( '0' + REPLACE(PriceOff,'.',''),',','.' ) )) AS PriceOff, -- trasformazione + CONVERT( INT, CONVERT ( FLOAT , REPLACE( '0' + REPLACE(OrdQty,'.',''),',','.' ) )) AS OrdQty, + CONVERT( DECIMAL( 9,6 ), CONVERT ( FLOAT , REPLACE( '0' + REPLACE(ProvvCost,'.',''),',','.' ) )) AS ProvvCost -- provvigioni + FROM tmp.OrdersHistRaw; + + SELECT COUNT(*) as RecordsIn FROM ext.OrdersHistRaw + END + +END +GO +PRINT N'Creating [tmp].[importOrdersHistRaw]...'; + + +GO +-- ============================================= +-- Author: S.E. Locatelli +-- mod. date: 2014.05.22 +-- Description: Procedura per import dati in tabella tmp da file csv +-- +-- TRUNCATE TABLE [tmp].[OrdersHistRaw] +-- +-- ============================================= +CREATE PROCEDURE [tmp].[importOrdersHistRaw] +( + @fileType NVARCHAR(50) = 'OrdersHistRaw' +) +AS +BEGIN + SET NOCOUNT ON; + + -- per Giancarlo: rendere parametrico con esecuzione sql x poter inserire nei parametri il separatore ed il resto? http://www.sqlteam.com/article/using-bulk-insert-to-load-a-text-file + + IF @fileType = 'OrdersHistRaw' + BEGIN + -- svuoto tabella temp + TRUNCATE TABLE tmp.OrdersHistRaw + + -- carico dati bulk! + BULK INSERT tmp.OrdersHistRaw + FROM 'e:\test\MarginRep_Import.csv' + WITH (FIELDTERMINATOR = ';', ROWTERMINATOR = '\n', FIRSTROW = 2, ERRORFILE = 'e:\test\errorOrdersHist.log') + --WITH (FIELDTERMINATOR = ';', ROWTERMINATOR = '\n', FIRSTROW = 2, ERRORFILE = 'e:\test\errorProduct.log', CODEPAGE = '1252') + + SELECT COUNT(*) AS RecordsIn FROM tmp.OrdersHistRaw + END +END +GO +PRINT N'Creating [ext].[stp_mergePackage2ItemClient]...'; + + +GO + + + +-- ============================================= +-- Author: S.E. Locatelli +-- Create date: 2013.11.27 +-- Description: Procedura per import dati in Package2ItemClient da dati ProductionLogRaw +-- ============================================= +CREATE PROCEDURE [ext].[stp_mergePackage2ItemClient] +( + @source NVARCHAR(20) = 'ProductionLog', -- nome della tabella sorgente tra ProductionLogRaw e ItemsRaw + @dateFrom DATETIME, -- data da cui iniziare a caricare + @dateTo DATETIME -- data fino a cui caricare +) +AS +BEGIN + SET NOCOUNT ON; + + + -- Create a temporary table variable to hold the output actions. + DECLARE @SummaryOfChanges TABLE(Change VARCHAR(20)); + + -- import con MERGE... verifico tipo di caricamento richiesto! + IF @source = 'ProductionLog' -- carico da tracciato produzione + BEGIN + MERGE INTO Package2ItemClient AS Target + USING ( + --SELECT dd.CodItem, plr.CodClient, plr.CodPackag, SUM(QtyOUT) AS TotQta, COUNT(*) AS NumEv + -- , SUM(QtyOUT) / COUNT(*) AS PesoMedio + -- , SUM(QtyEXT) / COUNT(*) AS TaraMedia + --FROM ext.ProductionLogRaw plr + -- INNER JOIN DiesDet dd ON plr.CodDies = dd.CodDies + -- WHERE ISNULL(plr.CodPackag, '') <> '' + --GROUP BY dd.CodItem, plr.CodClient, plr.CodPackag + SELECT + dd.CodItem + , pl.CodClient + , pl.CodPackag + , SUM(QtyOUT) AS TotQta + -- , COUNT(*) AS NumEv + , SUM(QtyOUT) / COUNT(*) AS PesoMedio + , SUM(QtyEXT) / COUNT(*) AS TaraMedia + -- dati produttività imballo + , ROUND(SUM(QtyOUT* QuotaMan) / CASE WHEN SUM(QtyOUT) = 0 THEN 1 ELSE SUM(QtyOUT) END,0) as NumImb + , SUM(Duration) AS Durata + FROM dbo.ProductionLog pl + INNER JOIN dbo.DiesDet dd ON pl.CodDies=dd.CodDies + + WHERE pl.ProcessNum = '04' + AND pl.okPr = 1 AND pl.okQM = 1 + AND ISNULL(pl.CodPackag, '') <> '' + AND pl.EventStart BETWEEN @dateFrom AND @dateTo + GROUP BY dd.CodItem, pl.CodClient, pl.CodPackag + + ) + AS Source + ON Target.CodItem = Source.CodItem AND Target.CodClient = Source.CodClient AND Target.CodPackag = Source.CodPackag + WHEN MATCHED THEN + UPDATE SET TotQta = Source.TotQta + , [Weight] = Source.PesoMedio + , Tare = Source.TaraMedia + , NumImb = Source.NumImb + , Durata = Source.Durata + WHEN NOT MATCHED BY TARGET THEN + INSERT (CodItem, CodClient, CodPackag, TotQta, [Weight], Tare, NumImb, Durata) + VALUES (CodItem, CodClient, CodPackag, TotQta, PesoMedio, TaraMedia, NumImb, Durata) + WHEN NOT MATCHED BY SOURCE THEN + DELETE + OUTPUT $action INTO @SummaryOfChanges; + + END + --ELSE IF @source = 'ItemsRaw' -- carico da anagrafica + -- BEGIN + -- MERGE INTO Item2PackageClient AS Target + -- USING (SELECT CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup FROM ItemsRaw) + -- AS Source + -- ON Target.CodItem = Source.CodItem + -- WHEN MATCHED THEN + -- UPDATE SET ItemDescr = Source.ItemDescr, CodPlant = Source.CodPlant, UnitWeight = Source.UnitWeight, CodItemGroup = Source.CodItemGroup + -- WHEN NOT MATCHED BY TARGET THEN + -- INSERT (CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup) VALUES (CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup) + -- OUTPUT $action INTO @SummaryOfChanges; + + -- END + + -- Query the results of the table variable. + SELECT Change, COUNT(*) AS CountPerChange + FROM @SummaryOfChanges + GROUP BY Change; +END +GO +PRINT N'Creating [ext].[stp_mergePackage2Item]...'; + + +GO + + + +-- ============================================= +-- Author: S.E. Locatelli +-- Create date: 2014.01.15 +-- Description: Procedura per import dati in Package2Item da dati ProductionLogRaw +-- ============================================= +CREATE PROCEDURE [ext].[stp_mergePackage2Item] +( + @source NVARCHAR(20) = 'ProductionLog', -- nome della tabella sorgente tra ProductionLogRaw e ItemsRaw + @dateFrom DATETIME, -- data da cui iniziare a caricare + @dateTo DATETIME -- data fino a cui caricare +) +AS +BEGIN + SET NOCOUNT ON; + + + -- Create a temporary table variable to hold the output actions. + DECLARE @SummaryOfChanges TABLE(Change VARCHAR(20)); + + -- import con MERGE... verifico tipo di caricamento richiesto! + IF @source = 'ProductionLog' -- carico da tracciato produzione + BEGIN + MERGE INTO Package2Item AS Target + USING ( + --SELECT dd.CodItem, plr.CodPackag, SUM(QtyOUT) AS TotQta, COUNT(*) AS NumEv + -- , SUM(QtyOUT) / COUNT(*) AS PesoMedio + -- , SUM(QtyEXT) / COUNT(*) AS TaraMedia + --FROM ext.ProductionLogRaw plr + -- INNER JOIN DiesDet dd ON plr.CodDies = dd.CodDies + -- WHERE ISNULL(plr.CodPackag, '') <> '' + --GROUP BY dd.CodItem, plr.CodPackag + SELECT + dd.CodItem + , pl.CodPackag + , SUM(QtyOUT) AS TotQta + -- , COUNT(*) AS NumEv + , SUM(QtyOUT) / COUNT(*) AS PesoMedio + , SUM(QtyEXT) / COUNT(*) AS TaraMedia + -- dati produttività imballo + , ROUND(SUM(QtyOUT* QuotaMan) / CASE WHEN SUM(QtyOUT) = 0 THEN 1 ELSE SUM(QtyOUT) END,0) as NumImb + , SUM(Duration) AS Durata + FROM ProductionLog pl + INNER JOIN DiesDet dd ON pl.CodDies=dd.CodDies + WHERE pl.ProcessNum = '04' + AND pl.okPr = 1 AND pl.okQM = 1 + AND ISNULL(pl.CodPackag, '') <> '' + AND pl.EventStart BETWEEN @dateFrom AND @dateTo + GROUP BY dd.CodItem, pl.CodPackag + ) + AS Source + ON Target.CodItem = Source.CodItem AND Target.CodPackag = Source.CodPackag + WHEN MATCHED THEN + UPDATE SET TotQta = Source.TotQta + , [Weight] = Source.PesoMedio + , Tare = Source.TaraMedia + , NumImb = Source.NumImb + , Durata = Source.Durata + WHEN NOT MATCHED BY TARGET THEN + INSERT (CodItem, CodPackag, TotQta, [Weight], Tare, NumImb, Durata) + VALUES (CodItem, CodPackag, TotQta, PesoMedio, TaraMedia, NumImb, Durata) + WHEN NOT MATCHED BY SOURCE THEN + DELETE + OUTPUT $action INTO @SummaryOfChanges; + + END + --ELSE IF @source = 'ItemsRaw' -- carico da anagrafica + -- BEGIN + -- MERGE INTO Item2Package AS Target + -- USING (SELECT CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup FROM ItemsRaw) + -- AS Source + -- ON Target.CodItem = Source.CodItem + -- WHEN MATCHED THEN + -- UPDATE SET ItemDescr = Source.ItemDescr, CodPlant = Source.CodPlant, UnitWeight = Source.UnitWeight, CodItemGroup = Source.CodItemGroup + -- WHEN NOT MATCHED BY TARGET THEN + -- INSERT (CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup) VALUES (CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup) + -- OUTPUT $action INTO @SummaryOfChanges; + + -- END + + -- Query the results of the table variable. + SELECT Change, COUNT(*) AS CountPerChange + FROM @SummaryOfChanges + GROUP BY Change; +END +GO +PRINT N'Creating [ext].[stp_mergeRawMat]...'; GO -- ============================================= -- Author: S.E. Locatelli --- Create date: 2013.12.17 --- Description: Crea TabDifett (tabella difettosità) +-- Create date: 2013.12.02 +-- Description: Procedura per import dati in PackagDet da dati ProductionLogRaw/PackagRaw -- ============================================= -CREATE PROCEDURE [dbo].[stp_TD_upsert] +CREATE PROCEDURE [ext].[stp_mergeRawMat] ( + @source NVARCHAR(20) = 'ProductionLogRaw' -- nome della tabella sorgente tra ProductionLogRaw e PackagRaw +) +AS +BEGIN + SET NOCOUNT ON; + + -- Create a temporary table variable to hold the output actions. + DECLARE @SummaryOfChanges TABLE(Change VARCHAR(20)); + + -- import con MERGE... verifico tipo di caricamento richiesto! + IF @source = 'ProductionLogRaw' -- carico da tracciato produzione + BEGIN + MERGE INTO RawMatDet AS Target + USING (SELECT DISTINCT RawMat FROM ext.ProductionLogRaw) + AS Source + ON Target.RawMat = Source.RawMat + --WHEN MATCHED THEN + -- UPDATE SET PackagName = Source.PackagName + WHEN NOT MATCHED BY TARGET THEN + INSERT (RawMat, ProcCost, ProcYield, CSR) VALUES (RawMat, 0, 0, 0) + OUTPUT $action INTO @SummaryOfChanges; + + END + --ELSE IF @source = 'PackagRaw' -- carico da anagrafica + -- BEGIN + -- MERGE INTO PackagDet AS Target + -- USING (SELECT CodPackag, PackagDesc, RMCost, RMWeight, Tare, FullWeight FROM ext.PackagRaw) + -- AS Source + -- ON Target.CodPackag = Source.CodPackag + -- WHEN MATCHED THEN + -- UPDATE SET PackagDesc = Source.PackagDesc, RMCost = Source.RMCost, RMWeight = Source.RMWeight, Tare = Source.Tare, FullWeight = Source.FullWeight + -- WHEN NOT MATCHED BY TARGET THEN + -- INSERT (CodPackag, PackagDesc, RMCost, RMWeight, Tare, FullWeight) VALUES (CodPackag, PackagDesc, RMCost, RMWeight, Tare, FullWeight) + -- OUTPUT $action INTO @SummaryOfChanges; + + -- END + + -- Query the results of the table variable. + SELECT Change, COUNT(*) AS CountPerChange + FROM @SummaryOfChanges + GROUP BY Change; +END +GO +PRINT N'Creating [ext].[stp_mergeItemDet]...'; + + +GO + +-- ============================================= +-- Author: S.E. Locatelli +-- Create date: 2013.11.27 +-- Description: Procedura per import dati in ItemDet da dati ProductionLogRaw/ItemsRaw +-- ============================================= +CREATE PROCEDURE [ext].[stp_mergeItemDet] +( + @source NVARCHAR(20) = 'ProductionLogRaw' -- nome della tabella sorgente tra ProductionLogRaw e ItemsRaw +) +AS +BEGIN + SET NOCOUNT ON; + + + -- Create a temporary table variable to hold the output actions. + DECLARE @SummaryOfChanges TABLE(Change VARCHAR(20)); + + -- import con MERGE... verifico tipo di caricamento richiesto! + IF @source = 'ProductionLogRaw' -- carico da tracciato produzione + BEGIN + --MERGE INTO ItemDet AS Target + --USING (SELECT DISTINCT CodItem FROM ext.ProductionLogRaw) + -- AS Source + --ON Target.CodItem = Source.CodItem + ----WHEN MATCHED THEN + ---- UPDATE SET ClientName = Source.ClientName + --WHEN NOT MATCHED BY TARGET THEN + -- INSERT (CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup) VALUES (CodItem, '#### - ' + CodItem, '', 0, '') + --OUTPUT $action INTO @SummaryOfChanges; + select 1 + END + ELSE IF @source = 'ItemsRaw' -- carico da anagrafica + BEGIN + MERGE INTO ItemDet AS Target + USING (SELECT CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup, Class01, Class02, Class03, Class04, Class05 FROM ext.ItemsRaw) + AS Source + ON Target.CodItem = Source.CodItem + WHEN MATCHED THEN + UPDATE SET ItemDescr = Source.ItemDescr, CodPlant = Source.CodPlant, UnitWeight = Source.UnitWeight, CodItemGroup = Source.CodItemGroup, Class01 = Source.Class01, Class02 = Source.Class02, Class03 = Source.Class03, Class04 = Source.Class04, Class05 = Source.Class05 + WHEN NOT MATCHED BY TARGET THEN + INSERT (CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup, Class01, Class02, Class03, Class04, Class05) VALUES (CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup, Class01, Class02, Class03, Class04, Class05) + OUTPUT $action INTO @SummaryOfChanges; + + END + + -- Query the results of the table variable. + SELECT Change, COUNT(*) AS CountPerChange + FROM @SummaryOfChanges + GROUP BY Change; +END +GO +PRINT N'Creating [ext].[stp_mergeClientDet]...'; + + +GO + + + +-- ============================================= +-- Author: S.E. Locatelli +-- Create date: 2013.11.27 +-- Description: Procedura per import dati in ClientDet da dati ProductionLogRaw/ClientsRaw +-- ============================================= +CREATE PROCEDURE [ext].[stp_mergeClientDet] +( + @source NVARCHAR(20) = 'ProductionLogRaw' -- nome della tabella sorgente tra ProductionLogRaw e ClientsRaw +) +AS +BEGIN + SET NOCOUNT ON; + + -- Create a temporary table variable to hold the output actions. + DECLARE @SummaryOfChanges TABLE(Change VARCHAR(20)); + + -- import con MERGE... verifico tipo di caricamento richiesto! + IF @source = 'ProductionLogRaw' -- carico da tracciato produzione + BEGIN + MERGE INTO ClientDet AS Target + USING (SELECT DISTINCT CodClient FROM ext.ProductionLogRaw) + AS Source + ON Target.CodClient = Source.CodClient + --WHEN MATCHED THEN + -- UPDATE SET ClientName = Source.ClientName + WHEN NOT MATCHED BY TARGET THEN + INSERT (CodClient, ClientName, CodAg, ZipCode, City, [State], Nation, TranspZone) VALUES (CodClient, '#### - ' + CodClient, '', '', '', '', '', '') + OUTPUT $action INTO @SummaryOfChanges; + + END + ELSE IF @source = 'ClientsRaw' -- carico da anagrafica + BEGIN + MERGE INTO ClientDet AS Target + USING (SELECT DISTINCT CodClient, ClientName, CodAg, ZipCode, City, [State], Nation, TranspZone FROM ext.ClientsRaw) + AS Source + ON Target.CodClient = Source.CodClient + WHEN MATCHED THEN + UPDATE SET ClientName = Source.ClientName, CodAg = Source.CodAg, ZipCode = Source.ZipCode, City = Source.City, [State] = Source.[State], Nation = Source.Nation, TranspZone = Source.TranspZone + WHEN NOT MATCHED BY TARGET THEN + INSERT (CodClient, ClientName, CodAg, ZipCode, City, [State], Nation, TranspZone) VALUES (CodClient, ClientName, CodAg, ZipCode, City, [State], Nation, TranspZone) + OUTPUT $action INTO @SummaryOfChanges; + + END + + -- Query the results of the table variable. + SELECT Change, COUNT(*) AS CountPerChange + FROM @SummaryOfChanges + GROUP BY Change; +END +GO +PRINT N'Creating [ext].[stp_mergeDiesDet]...'; + + +GO + + + +-- ============================================= +-- Author: S.E. Locatelli +-- Create date: 2013.12.02 +-- Description: Procedura per import dati in DiesDet da dati ProductionLogRaw/DiesRaw +-- ============================================= +CREATE PROCEDURE [ext].[stp_mergeDiesDet] + +AS +BEGIN + SET NOCOUNT ON; + + -- Create a temporary table variable to hold the output actions. + DECLARE @SummaryOfChanges TABLE(Change VARCHAR(20)); + + SET XACT_ABORT ON + + BEGIN tran + + -- ======================================= + -- ora aggiungiamo eventuali item mancanti + -- ======================================= + MERGE INTO ItemDet AS Target + USING (SELECT DISTINCT CodItem FROM ext.DiesRaw) + AS Source + ON Target.CodItem = Source.CodItem + --WHEN MATCHED THEN + -- UPDATE SET ClientName = Source.ClientName + WHEN NOT MATCHED BY TARGET THEN + INSERT (CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup) VALUES (CodItem, '#### - ' + CodItem, '', 0, '') + OUTPUT $action INTO @SummaryOfChanges; + + -- ================================================= + -- Carico i dati dei GRUPPI DI MATRICI ( DiesGroupDet ) mancanti + -- ================================================= + MERGE INTO dbo.DiesGroupDet AS Target + USING ( + SELECT CodDiesGroup + , ISNULL ( AVG( Price ),0) AS Price -- prezzo medio ( valori nulli non considerati ) + , COUNT (*) AS QtyTot -- N. Matrici nel gruppo + , COUNT ( CASE Active WHEN 0 THEN 1 END ) AS QtyEOL -- Qta Matrici rottamate + , ISNULL( AVG( ExpLife ), 0 ) AS ExpLife -- Vita stimata matrice ( iniziale ) + , ISNULL( AVG ( CASE WHEN Active = 0 AND ActLife > 5000 THEN ActLife END ),0 ) AS EOLLife -- solo Matrici rottamate e vita > 5000KG + FROM ext.DiesRaw + GROUP BY CodDiesGroup + ) AS Source + ON Target.CodDiesGroup = Source.CodDiesGroup + --WHEN MATCHED THEN + -- UPDATE SET CodDiesGroup = Source.CodDiesGroup, Price = Source.Price, QtyTot = Source.QtyTot + -- , QtyEOL = Source.QtyEOL, ExpLife = Source.ExpLife, EOLLife = Source.EOLLife + -- , DateMod = GETDATE(), UserMod = 'IMPORT_DiesRaw' + + WHEN NOT MATCHED BY TARGET THEN + INSERT ( CodDiesGroup, Price, QtyTot, QtyEOL, ExpLife, EOLLife, DateMod ,UserMod ) + VALUES ( CodDiesGroup, Source.Price, Source.QtyTot, Source.QtyEOL, Source.ExpLife, Source.EOLLife, GETDATE(), 'IMPORT_DiesRaw' ) -- mi da errori in calcoli successivi altrimenti con zero a ExpLife e EOLLife + OUTPUT $action INTO @SummaryOfChanges; + + -- ======================================= + -- ora carico i dati delle singole matrici + -- ======================================= + MERGE INTO DiesDet AS Target + USING (SELECT CodDies, HoleNum, CodItem, CodDiesGroup, Price, ExpLife, ActLife, Active FROM ext.DiesRaw) + AS Source + ON Target.CodDies = Source.CodDies + WHEN MATCHED THEN + UPDATE SET HoleNum = Source.HoleNum, CodItem = Source.CodItem, CodDiesGroup = Source.CodDiesGroup, Price = Source.Price, ExpLife = Source.ExpLife, ActLife = Source.ActLife, Active = Source.Active + WHEN NOT MATCHED BY TARGET THEN + INSERT (CodDies, HoleNum, CodItem, CodDiesGroup, Price, ExpLife, ActLife, Active) VALUES (CodDies, HoleNum, CodItem, CodDiesGroup, Price, ExpLife, ActLife, Active) + OUTPUT $action INTO @SummaryOfChanges; + + -- ================================================= + -- Aggiorno i dati dei GRUPPI DI MATRICI ( DiesGroupDet ) + -- con tutti i dati presenti in dbo.DiesDet ( nel caso di aggiornamento parziale ) + -- ================================================= + MERGE INTO dbo.DiesGroupDet AS Target + USING ( + SELECT CodDiesGroup + , ISNULL ( AVG( Price ),0) AS Price -- prezzo medio ( valori nulli non considerati ) + , COUNT (*) AS QtyTot -- N. Matrici nel gruppo + , COUNT ( CASE Active WHEN 0 THEN 1 END ) AS QtyEOL -- Qta Matrici rottamate + , ISNULL( AVG( ExpLife ), 0 ) AS ExpLife -- Vita stimata matrice ( iniziale ) + , ISNULL( AVG ( CASE WHEN Active = 0 AND ActLife > 5000 THEN ActLife END ),0 ) AS EOLLife -- solo Matrici rottamate e vita > 5000KG + FROM dbo.DiesDet + GROUP BY CodDiesGroup + ) AS Source + ON Target.CodDiesGroup = Source.CodDiesGroup + WHEN MATCHED THEN + UPDATE SET CodDiesGroup = Source.CodDiesGroup, Price = Source.Price, QtyTot = Source.QtyTot + , QtyEOL = Source.QtyEOL, ExpLife = Source.ExpLife, EOLLife = Source.EOLLife + , DateMod = GETDATE(), UserMod = 'UPDATE_DiesDet' + + WHEN NOT MATCHED BY TARGET THEN -- nel caso siano mancanti + INSERT ( CodDiesGroup, Price, QtyTot, QtyEOL, ExpLife, EOLLife, DateMod ,UserMod ) + VALUES ( CodDiesGroup, Source.Price, Source.QtyTot, Source.QtyEOL, Source.ExpLife, Source.EOLLife, GETDATE(), 'IMPORT_DiesDet' ) + OUTPUT $action INTO @SummaryOfChanges; + + ---- a questo punto calcolo il VERO update dalle inforamzioni di dbo.DiesDet --> dbo.DiesGroupDet + --MERGE INTO dbo.DiesGroupDet AS Target + --USING ( + -- SELECT coddiesgroup, + -- Avg(Isnull(price, 0)) AS Price, + -- Count(*) AS QtyTot, + -- Count(*) - Sum(Active) AS QtyEOL, + -- Avg(Isnull(ExpLife, 0.1)) AS ExpLife, -- mi da errori in calcoli successivi altrimenti con zero a ExpLife e EOLLife + -- Sum(Isnull(ActLife * (1 - Active), 0)) / (Count(*) - Sum(Active)) AS EOLLife + -- FROM dbo.DiesDet + -- WHERE ActLife > 5000 + -- GROUP BY CodDiesGroup + -- HAVING Count(*) > Sum(Active) -- ci siano rottamate + -- ) + -- AS Source + --ON Target.CodDiesGroup = Source.CodDiesGroup + --WHEN MATCHED THEN + -- UPDATE SET Price = Source.Price, QtyTot = Source.QtyTot, QtyEOL = Source.QtyEOL, ExpLife = Source.ExpLife, EOLLife = Source.EOLLife + --OUTPUT $action INTO @SummaryOfChanges; + + COMMIT tran + + -- Query the results of the table variable. + SELECT Change, COUNT(*) AS CountPerChange + FROM @SummaryOfChanges + GROUP BY Change; +END +GO +PRINT N'Creating [ext].[stp_mergeTranspCostDet]...'; + + +GO + +-- ============================================= +-- Author: S.E. Locatelli +-- Create date: 2014.01.16 +-- Description: Procedura per import dati in ClientDet da dati ProductionLogRaw/ClientsRaw +-- ============================================= +CREATE PROCEDURE [ext].[stp_mergeTranspCostDet] +( + @source NVARCHAR(20) = 'TranspCostRaw' -- nome della tabella sorgente tra ProductionLogRaw e ClientsRaw +) +AS +BEGIN + SET NOCOUNT ON; + + -- Create a temporary table variable to hold the output actions. + DECLARE @SummaryOfChanges TABLE(Change VARCHAR(20)); + + -- import con MERGE... verifico tipo di caricamento richiesto! + IF @source = 'TranspCostRaw' -- carico da anagrafica + BEGIN + MERGE INTO TranspCostDet AS Target + USING (SELECT DISTINCT TranspZone, TranspCost FROM ext.TranspCostRaw) + AS Source + ON Target.TranspZone = Source.TranspZone + WHEN MATCHED THEN + UPDATE SET TranspCost = Source.TranspCost + WHEN NOT MATCHED BY TARGET THEN + INSERT (TranspZone, TranspCost) VALUES (TranspZone, TranspCost) + OUTPUT $action INTO @SummaryOfChanges; + + END + + -- Query the results of the table variable. + SELECT Change, COUNT(*) AS CountPerChange + FROM @SummaryOfChanges + GROUP BY Change; +END +GO +PRINT N'Creating [ext].[stp_mergePackage2Item_OLD]...'; + + +GO + +-- ============================================= +-- Author: S.E. Locatelli +-- Create date: 2014.01.15 +-- Description: Procedura per import dati in Package2Item da dati ProductionLogRaw +-- ============================================= +CREATE PROCEDURE [ext].[stp_mergePackage2Item_OLD] +( + @source NVARCHAR(20) = 'ProductionLogRaw' -- nome della tabella sorgente tra ProductionLogRaw e ItemsRaw +) +AS +BEGIN + SET NOCOUNT ON; + + + ---- Create a temporary table variable to hold the output actions. + --DECLARE @SummaryOfChanges TABLE(Change VARCHAR(20)); + + -- -- import con MERGE... verifico tipo di caricamento richiesto! + --IF @source = 'ProductionLogRaw' -- carico da tracciato produzione + -- BEGIN + -- MERGE INTO Package2Item AS Target + -- USING ( + -- SELECT dd.CodItem, plr.CodPackag, SUM(QtyOUT) AS TotQta, COUNT(*) AS NumEv + -- , SUM(QtyOUT) / COUNT(*) AS PesoMedio + -- , SUM(QtyEXT) / COUNT(*) AS TaraMedia + -- FROM ext.ProductionLogRaw plr + -- INNER JOIN DiesDet dd ON plr.CodDies = dd.CodDies + -- WHERE ISNULL(plr.CodPackag, '') <> '' + -- GROUP BY dd.CodItem, plr.CodPackag + -- ) + -- AS Source + -- ON Target.CodItem = Source.CodItem AND Target.CodPackag = Source.CodPackag + -- WHEN MATCHED THEN + -- UPDATE SET TotQty = Source.TotQta + -- , [Weight] = Source.PesoMedio + -- , Tare = Source.TaraMedia + -- WHEN NOT MATCHED BY TARGET THEN + -- INSERT (CodItem, CodPackag, TotQty, [Weight], Tare) VALUES (CodItem, CodPackag, TotQta, PesoMedio, TaraMedia) + -- OUTPUT $action INTO @SummaryOfChanges; + + -- END + ----ELSE IF @source = 'ItemsRaw' -- carico da anagrafica + ---- BEGIN + ---- MERGE INTO Item2Package AS Target + ---- USING (SELECT CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup FROM ItemsRaw) + ---- AS Source + ---- ON Target.CodItem = Source.CodItem + ---- WHEN MATCHED THEN + ---- UPDATE SET ItemDescr = Source.ItemDescr, CodPlant = Source.CodPlant, UnitWeight = Source.UnitWeight, CodItemGroup = Source.CodItemGroup + ---- WHEN NOT MATCHED BY TARGET THEN + ---- INSERT (CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup) VALUES (CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup) + ---- OUTPUT $action INTO @SummaryOfChanges; + + ---- END + + ---- Query the results of the table variable. + --SELECT Change, COUNT(*) AS CountPerChange + --FROM @SummaryOfChanges + --GROUP BY Change; +END +GO +PRINT N'Creating [ext].[stp_mergePackage2ItemClient_OLD]...'; + + +GO + +-- ============================================= +-- Author: S.E. Locatelli +-- Create date: 2013.11.27 +-- Description: Procedura per import dati in Package2ItemClient da dati ProductionLogRaw +-- ============================================= +CREATE PROCEDURE [ext].[stp_mergePackage2ItemClient_OLD] +( + @source NVARCHAR(20) = 'ProductionLogRaw' -- nome della tabella sorgente tra ProductionLogRaw e ItemsRaw +) +AS +BEGIN + SET NOCOUNT ON; + + + ---- Create a temporary table variable to hold the output actions. + --DECLARE @SummaryOfChanges TABLE(Change VARCHAR(20)); + + -- -- import con MERGE... verifico tipo di caricamento richiesto! + --IF @source = 'ProductionLogRaw' -- carico da tracciato produzione + -- BEGIN + -- MERGE INTO Package2ItemClient AS Target + -- USING ( + -- SELECT dd.CodItem, plr.CodClient, plr.CodPackag, SUM(QtyOUT) AS TotQta, COUNT(*) AS NumEv + -- , SUM(QtyOUT) / COUNT(*) AS PesoMedio + -- , SUM(QtyEXT) / COUNT(*) AS TaraMedia + -- FROM ext.ProductionLogRaw plr + -- INNER JOIN DiesDet dd ON plr.CodDies = dd.CodDies + -- WHERE ISNULL(plr.CodPackag, '') <> '' + -- GROUP BY dd.CodItem, plr.CodClient, plr.CodPackag + -- ) + -- AS Source + -- ON Target.CodItem = Source.CodItem AND Target.CodClient = Source.CodClient AND Target.CodPackag = Source.CodPackag + -- WHEN MATCHED THEN + -- UPDATE SET TotQty = Source.TotQta + -- , [Weight] = Source.PesoMedio + -- , Tare = Source.TaraMedia + -- WHEN NOT MATCHED BY TARGET THEN + -- INSERT (CodItem, CodClient, CodPackag, TotQty, [Weight], Tare) VALUES (CodItem, CodClient, CodPackag, TotQta, PesoMedio, TaraMedia) + -- OUTPUT $action INTO @SummaryOfChanges; + + -- END + ----ELSE IF @source = 'ItemsRaw' -- carico da anagrafica + ---- BEGIN + ---- MERGE INTO Item2PackageClient AS Target + ---- USING (SELECT CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup FROM ItemsRaw) + ---- AS Source + ---- ON Target.CodItem = Source.CodItem + ---- WHEN MATCHED THEN + ---- UPDATE SET ItemDescr = Source.ItemDescr, CodPlant = Source.CodPlant, UnitWeight = Source.UnitWeight, CodItemGroup = Source.CodItemGroup + ---- WHEN NOT MATCHED BY TARGET THEN + ---- INSERT (CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup) VALUES (CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup) + ---- OUTPUT $action INTO @SummaryOfChanges; + + ---- END + + ---- Query the results of the table variable. + --SELECT Change, COUNT(*) AS CountPerChange + --FROM @SummaryOfChanges + --GROUP BY Change; +END +GO +PRINT N'Creating [ext].[stp_mergePackage2]...'; + + +GO + + + + +-- ============================================= +-- Author: S.E. Locatelli +-- Create date: 2014.01.15 +-- Description: Procedura per import dati in Package2Item da dati ProductionLogRaw +-- ============================================= +CREATE PROCEDURE [ext].[stp_mergePackage2] +( + @source NVARCHAR(20) = 'ProductionLog', -- nome della tabella sorgente tra ProductionLogRaw e ItemsRaw @dateFrom DATETIME, -- data da cui iniziare a caricare @dateTo DATETIME -- data fino a cui caricare +) +AS +BEGIN + SET NOCOUNT ON; + + + -- Create a temporary table variable to hold the output actions. + DECLARE @SummaryOfChanges TABLE(Change VARCHAR(20)); + + -- import con MERGE... verifico tipo di caricamento richiesto! + IF @source = 'ProductionLog' -- carico da tracciato produzione + BEGIN + MERGE INTO Package2 AS Target + USING ( + --SELECT plr.CodPackag, SUM(QtyOUT) AS TotQta, COUNT(*) AS NumEv + -- , SUM(QtyOUT) / COUNT(*) AS PesoMedio + -- , SUM(QtyEXT) / COUNT(*) AS TaraMedia + --FROM ext.ProductionLogRaw plr + -- INNER JOIN DiesDet dd ON plr.CodDies = dd.CodDies + -- WHERE ISNULL(plr.CodPackag, '') <> '' + --GROUP BY plr.CodPackag + SELECT + pl.CodPackag + , SUM(QtyOUT) AS TotQta +-- , COUNT(*) AS NumEv + , SUM(QtyOUT) / COUNT(*) AS PesoMedio + , SUM(QtyEXT) / COUNT(*) AS TaraMedia + + -- dati produttività imballo + , ROUND(SUM(QtyOUT * QuotaMan) / CASE WHEN SUM(QtyOUT) = 0 THEN 1 ELSE SUM(QtyOUT) END,0) as NumImb + -- , SUM(QtyOUT) AS TotOut -- unificata a TotQta + , SUM(Duration) AS Durata + FROM ProductionLog pl + INNER JOIN DiesDet dd ON pl.CodDies=dd.CodDies + WHERE pl.ProcessNum = '04' + AND pl.okPr = 1 AND pl.okQM = 1 + AND ISNULL(pl.CodPackag, '') <> '' -- cmq filtro righe con package VUOTO + AND pl.EventStart BETWEEN @dateFrom AND @dateTo + GROUP BY pl.CodPackag + ) + AS Source + ON Target.CodPackag = Source.CodPackag + WHEN MATCHED THEN + UPDATE SET TotQta = Source.TotQta + , [Weight] = Source.PesoMedio + , Tare = Source.TaraMedia + , NumImb = Source.NumImb + , Durata = Source.Durata + WHEN NOT MATCHED BY TARGET THEN + INSERT (CodPackag, TotQta, [Weight], Tare, NumImb, Durata) + VALUES (CodPackag, TotQta, PesoMedio, TaraMedia, NumImb, Durata) + WHEN NOT MATCHED BY SOURCE THEN + DELETE + OUTPUT $action INTO @SummaryOfChanges; + + END + --ELSE IF @source = 'ItemsRaw' -- carico da anagrafica + -- BEGIN + -- MERGE INTO Item2Package AS Target + -- USING (SELECT CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup FROM ItemsRaw) + -- AS Source + -- ON Target.CodItem = Source.CodItem + -- WHEN MATCHED THEN + -- UPDATE SET ItemDescr = Source.ItemDescr, CodPlant = Source.CodPlant, UnitWeight = Source.UnitWeight, CodItemGroup = Source.CodItemGroup + -- WHEN NOT MATCHED BY TARGET THEN + -- INSERT (CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup) VALUES (CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup) + -- OUTPUT $action INTO @SummaryOfChanges; + + -- END + + -- Query the results of the table variable. + SELECT Change, COUNT(*) AS CountPerChange + FROM @SummaryOfChanges + GROUP BY Change; +END +GO +PRINT N'Creating [ext].[stp_filterProductionLogRow]...'; + + +GO + + +-- ============================================= +-- Author: +-- Create date: 2013.11.29 +-- Description: Procedura per pulizia dati della tabella ext.ProductionLogRaw +-- +-- Use: +-- EXECUTE ext.stp_filterProductionLogRow 0 -- selezione record +-- EXECUTE ext.stp_filterProductionLogRow 1 -- cancellazione record +-- +-- SELECT * FROM tmp.ExcludeCondFilter -- Tabella con i filtri +-- SELECT * FROM ext.ProductionLogRaw_KO -- Tabella dove eseguo delete +-- +-- ============================================= +CREATE PROCEDURE [ext].[stp_filterProductionLogRow] +( + @flgDelete AS TINYINT = 0 -- 0 = solo select 1 = fa delete +) +AS +BEGIN + +-- DECLARE @flgDelete AS TINYINT = 1; -- 0 + + DECLARE @Sql AS NVARCHAR(MAX) = ''; + DECLARE @TotRighe AS INT = 0; + DECLARE @Riga AS INT = 1; + DECLARE @WhereCond AS NVARCHAR(4000); + + IF OBJECT_ID('tempdb..#tmpTable') IS NOT NULL + DROP TABLE #tmpTable + + -- creo sql di base x select o delete + IF @flgDelete = 0 -- voglio fare solo select + SET @Sql = 'SELECT * FROM ext.ProductionLogRaw WHERE 1=0' -- per test + ELSE + SET @Sql = 'DELETE FROM ext.ProductionLogRaw + WITH (TABLOCK) + OUTPUT deleted.* INTO ext.ProductionLogRaw_KO -- salvo i record cancellati in tabella KO + ( EventStart, EventEnd, CodPlant, ProcessNum, NrPos, CodDies, CodClient, OrderNum, BatchNum, ProcessType, EventType, RawMat, CodPackag, QtyIN, QtyOUT, QtyEXT, NumIN, NumOUT, QuotaPlant, QuotaMan, Tags ) + WHERE 1=0' + + -- carico in tabella i filtri ( record da cancellare ) + SELECT ROW_NUMBER() OVER ( ORDER BY TableName, FieldName) AS Riga, * + INTO #tmpTable + FROM tmp.ExcludeCondFilter + WHERE TableName = 'ProductionLogRaw' + + SET @TotRighe = @@ROWCOUNT; + + -- accodo le condizioni di where allo statement iniziale ( collegate con OR ) + IF @TotRighe > 0 + BEGIN + WHILE @Riga <= @TotRighe + BEGIN + SELECT @WhereCond = WhereCond FROM #tmpTable WHERE Riga = @Riga + + SET @Sql = @Sql + ' OR ' + @WhereCond; + SET @Riga = @Riga + 1; + END + END + + -- Ritorno la select eseguita + SELECT @Sql + -- ======================================================= + -- Eseguo la select/delete e ritorno i record elaborati + -- ======================================================= + EXEC sp_executesql @Sql + SELECT @@ROWCOUNT + +-- SELECT * FROM ext.ProductionLogRaw_KO + + IF OBJECT_ID('tempdb..#tmpTable') IS NOT NULL + DROP TABLE #tmpTable +END +GO +PRINT N'Creating [ext].[stp_mergePackagDet]...'; + + +GO + + +-- ============================================= +-- Author: S.E. Locatelli +-- Create date: 2013.11.29 +-- Description: Procedura per import dati in PackagDet da dati ProductionLogRaw/PackagRaw +-- ============================================= +CREATE PROCEDURE [ext].[stp_mergePackagDet] +( + @source NVARCHAR(20) = 'ProductionLogRaw' -- nome della tabella sorgente tra ProductionLogRaw e PackagRaw +) +AS +BEGIN + SET NOCOUNT ON; + + -- Create a temporary table variable to hold the output actions. + DECLARE @SummaryOfChanges TABLE(Change VARCHAR(20)); + + -- import con MERGE... verifico tipo di caricamento richiesto! + IF @source = 'ProductionLogRaw' -- carico da tracciato produzione + BEGIN + MERGE INTO PackagDet AS Target + USING (SELECT DISTINCT CodPackag FROM ext.ProductionLogRaw) + AS Source + ON Target.CodPackag = Source.CodPackag + --WHEN MATCHED THEN + -- UPDATE SET PackagName = Source.PackagName + WHEN NOT MATCHED BY TARGET THEN + INSERT (CodPackag, PackagDesc, RMCost, RMWeight) VALUES (CodPackag, '#### - ' + CodPackag, 0, 0) + OUTPUT $action INTO @SummaryOfChanges; + + END + ELSE IF @source = 'PackagRaw' -- carico da anagrafica + BEGIN + MERGE INTO PackagDet AS Target + USING (SELECT CodPackag, PackagDesc, RMCost, RMWeight FROM ext.PackagRaw) + AS Source + ON Target.CodPackag = Source.CodPackag + WHEN MATCHED THEN + UPDATE SET PackagDesc = Source.PackagDesc, RMCost = Source.RMCost, RMWeight = Source.RMWeight + WHEN NOT MATCHED BY TARGET THEN + INSERT (CodPackag, PackagDesc, RMCost, RMWeight) VALUES (CodPackag, PackagDesc, RMCost, RMWeight) + OUTPUT $action INTO @SummaryOfChanges; + + END + + -- Query the results of the table variable. + SELECT Change, COUNT(*) AS CountPerChange + FROM @SummaryOfChanges + GROUP BY Change; +END +GO +PRINT N'Creating [ext].[stp_mergeDiesGroupDet]...'; + + +GO + + +-- ============================================= +-- Author: S.E. Locatelli +-- Create date: 2014.01.08 +-- Description: Procedura per import dati in DiesDet da dati DiesGroupRaw +-- Il caricamento principale avviene tramite DiesRaw, questa +-- serve solo per completare i dati mancanti +-- ============================================= +CREATE PROCEDURE [ext].[stp_mergeDiesGroupDet] + +AS +BEGIN + SET NOCOUNT ON; + + -- Create a temporary table variable to hold the output actions. + DECLARE @SummaryOfChanges TABLE(Change VARCHAR(20)); + + SET XACT_ABORT ON + + BEGIN TRAN + + -- vado ad aggiornare i dati dei gruppi di matrici SOLO x i campi <> 0 ( li ritengo come non passati ) + MERGE INTO dbo.DiesGroupDet AS Target + USING ( SELECT * FROM ext.DiesGroupRaw ) + AS Source + ON Target.CodDiesGroup = Source.CodDiesGroup + WHEN MATCHED THEN + UPDATE SET Price = CASE Source.Price WHEN 0 THEN Target.Price ELSE Source.Price END + , QtyTot = CASE Source.QtyTot WHEN 0 THEN Target.QtyTot ELSE Source.QtyTot END + , QtyEOL = CASE Source.QtyEOL WHEN 0 THEN Target.QtyEOL ELSE Source.QtyEOL END + , ExpLife = CASE Source.ExpLife WHEN 0 THEN Target.ExpLife ELSE Source.ExpLife END + , EOLLife = CASE Source.EOLLife WHEN 0 THEN Target.EOLLife ELSE Source.EOLLife END + , DateMod = GETDATE() + , UserMod = 'UPDATE_DiesGroupRaw' + WHEN NOT MATCHED BY TARGET THEN + INSERT ( CodDiesGroup, Price, QtyTot, QtyEOL, ExpLife, EOLLife, DateMod, UserMod ) + VALUES ( Source.CodDiesGroup, Source.Price, Source.QtyTot, Source.QtyEOL, Source.ExpLife, Source.EOLLife, GETDATE(), 'INSERT_DiesGroupRaw' ) +-- VALUES ( CodDiesGroup, 0, 1, 0, 0.1, 0.1 ) -- mi da errori in calcoli successivi altrimenti con 0 a ExpLife e EOLLife + OUTPUT $action INTO @SummaryOfChanges; + + COMMIT TRAN + + -- Query the results of the table variable. + SELECT Change, COUNT(*) AS CountPerChange + FROM @SummaryOfChanges + GROUP BY Change; +END +GO +PRINT N'Creating [ext].[stp_mergeCost2Plant]...'; + + +GO + + + +-- ============================================= +-- Author: S.E. Locatelli +-- Create date: 2013.12.03 +-- Description: Procedura per import dati in Cost2Plant da dati ProductionLogRaw +-- ============================================= +CREATE PROCEDURE [ext].[stp_mergeCost2Plant] +( + @source NVARCHAR(20) = 'ProductionLogRaw' -- nome della tabella sorgente tra ProductionLogRaw +) +AS +BEGIN + SET NOCOUNT ON; + + -- Create a temporary table variable to hold the output actions. + DECLARE @SummaryOfChanges TABLE(Change VARCHAR(20)); + + -- import con MERGE... verifico tipo di caricamento richiesto! + IF @source = 'ProductionLogRaw' -- carico da tracciato produzione + BEGIN + MERGE INTO Cost2Plant AS Target + USING (SELECT DISTINCT CodPlant, ProcessNum FROM ext.ProductionLogRaw) + AS Source + ON Target.CodPlant = Source.CodPlant + --WHEN MATCHED THEN + -- UPDATE SET PackagName = Source.PackagName + WHEN NOT MATCHED BY TARGET THEN + INSERT (CodPlant, ProcessNum, FC, VC, OH, SC, QuotaPlantStd, QuotaManStd) VALUES (CodPlant, ProcessNum, 0,0,0,0,1,1 ) --> i valori sono stati caricati a mano??? + OUTPUT $action INTO @SummaryOfChanges; + + END + --ELSE IF @source = 'PackagRaw' -- carico da anagrafica + -- BEGIN + -- MERGE INTO PackagDet AS Target + -- USING (SELECT CodPackag, PackagDesc, RMCost, RMWeight, Tare, FullWeight FROM ext.PackagRaw) + -- AS Source + -- ON Target.CodPackag = Source.CodPackag + -- WHEN MATCHED THEN + -- UPDATE SET PackagDesc = Source.PackagDesc, RMCost = Source.RMCost, RMWeight = Source.RMWeight, Tare = Source.Tare, FullWeight = Source.FullWeight + -- WHEN NOT MATCHED BY TARGET THEN + -- INSERT (CodPackag, PackagDesc, RMCost, RMWeight, Tare, FullWeight) VALUES (CodPackag, PackagDesc, RMCost, RMWeight, Tare, FullWeight) + -- OUTPUT $action INTO @SummaryOfChanges; + + -- END + + -- Query the results of the table variable. + SELECT Change, COUNT(*) AS CountPerChange + FROM @SummaryOfChanges + GROUP BY Change; +END +GO +PRINT N'Creating [ext].[stp_mergePlantsDet]...'; + + +GO + + +-- ============================================= +-- Author: S.E. Locatelli +-- Create date: 2013.12.03 +-- Description: Procedura per import dati in PlantsDet da dati ProductionLogRaw +-- ============================================= +CREATE PROCEDURE [ext].[stp_mergePlantsDet] +( + @source NVARCHAR(20) = 'ProductionLogRaw' -- nome della tabella sorgente tra ProductionLogRaw e PackagRaw +) +AS +BEGIN + SET NOCOUNT ON; + + -- Create a temporary table variable to hold the output actions. + DECLARE @SummaryOfChanges TABLE(Change VARCHAR(20)); + + -- import con MERGE... verifico tipo di caricamento richiesto! + IF @source = 'ProductionLogRaw' -- carico da tracciato produzione + BEGIN + MERGE INTO PlantsDet AS Target + USING (SELECT DISTINCT CodPlant FROM ext.ProductionLogRaw) + AS Source + ON Target.CodPlant = Source.CodPlant + --WHEN MATCHED THEN + -- UPDATE SET PackagName = Source.PackagName + WHEN NOT MATCHED BY TARGET THEN + INSERT (CodPlant, Descript) VALUES (CodPlant, 'Plant - ' + CodPlant) + OUTPUT $action INTO @SummaryOfChanges; + + END + --ELSE IF @source = 'PackagRaw' -- carico da anagrafica + -- BEGIN + -- MERGE INTO PackagDet AS Target + -- USING (SELECT CodPackag, PackagDesc, RMCost, RMWeight, Tare, FullWeight FROM ext.PackagRaw) + -- AS Source + -- ON Target.CodPackag = Source.CodPackag + -- WHEN MATCHED THEN + -- UPDATE SET PackagDesc = Source.PackagDesc, RMCost = Source.RMCost, RMWeight = Source.RMWeight, Tare = Source.Tare, FullWeight = Source.FullWeight + -- WHEN NOT MATCHED BY TARGET THEN + -- INSERT (CodPackag, PackagDesc, RMCost, RMWeight, Tare, FullWeight) VALUES (CodPackag, PackagDesc, RMCost, RMWeight, Tare, FullWeight) + -- OUTPUT $action INTO @SummaryOfChanges; + + -- END + + -- Query the results of the table variable. + SELECT Change, COUNT(*) AS CountPerChange + FROM @SummaryOfChanges + GROUP BY Change; +END +GO +PRINT N'Creating [ext].[stp_mergeAgentsDet]...'; + + +GO + +-- ============================================= +-- Author: S.E. Locatelli +-- Create date: 2013.12.03 +-- Description: Procedura per import dati in AgentsDet da dati ClientsRaw +-- ============================================= +CREATE PROCEDURE [ext].[stp_mergeAgentsDet] +( + @source NVARCHAR(20) = 'ClientsRaw' -- nome della tabella sorgente tra ProductionLogRaw e AgentssRaw +) +AS +BEGIN + SET NOCOUNT ON; + + -- Create a temporary table variable to hold the output actions. + DECLARE @SummaryOfChanges TABLE(Change VARCHAR(20)); + + -- import con MERGE... verifico tipo di caricamento richiesto! + IF @source = 'ClientsRaw' -- carico da anagrafica + BEGIN + MERGE INTO AgentsDet AS Target + USING (SELECT DISTINCT CodAg FROM ext.ClientsRaw) + AS Source + ON Target.CodAg = Source.CodAg + --WHEN MATCHED THEN + -- UPDATE SET AgentsName = Source.AgentsName, CodAg = Source.CodAg, ZipCode = Source.ZipCode, City = Source.City, [State] = Source.[State], Nation = Source.Nation + WHEN NOT MATCHED BY TARGET THEN + INSERT (CodAg, Firstname, Lastname, QuotaProvvAg) VALUES (CodAg, '#### - '+ CodAg, '#### - ' + CodAg, 0) + OUTPUT $action INTO @SummaryOfChanges; + + END + + -- Query the results of the table variable. + SELECT Change, COUNT(*) AS CountPerChange + FROM @SummaryOfChanges + GROUP BY Change; +END +GO +PRINT N'Creating [ext].[stp_updateProductionLog]...'; + + +GO + +-- ============================================= +-- Author: S.E. Locatelli +-- Create date: 2013.11.29 +-- Description: Procedura per import dati in ProductionLog da dati ProductionLogRaw +-- +-- ATTENZIONE: dato l'intervallo temporale in ext.ProductionLogRaw eventuali dati precedenti in dbo.ProductionLog saranno eliminati +-- ============================================= +CREATE PROCEDURE [ext].[stp_updateProductionLog] + +AS +BEGIN + SET NOCOUNT ON; + + -- Create a temporary table variable to hold the output actions. + DECLARE @deleted INT = 0 + ,@inserted INT = 0 + ,@fromDate DATETIME = GETDATE() + ,@toDate DATETIME = GETDATE() + + -- primo step: calcolo inizio/fine periodo... + SELECT @fromDate=MIN(EventStart), @toDate=MAX(EventStart) FROM ext.ProductionLogRaw + + + -- secondo step: elimino dal tracciato tutti i dati dal periodo indicato + DELETE FROM dbo.ProductionLog + WHERE EventStart BETWEEN @fromDate AND @toDate + + SELECT @deleted = ISNULL(@@ROWCOUNT,0) + + -- inserisco i nuovi dati + INSERT INTO dbo.ProductionLog + SELECT * FROM ext.ProductionLogRaw + + SELECT @inserted = ISNULL(@@ROWCOUNT,0) + + -- riporto in output quanto eliminato/inserito + SELECT @deleted as RecDeleted, @inserted as RecInserted + +END +GO +PRINT N'Creating [ext].[stp_mergePackage2_OLD]...'; + + +GO + +-- ============================================= +-- Author: S.E. Locatelli +-- Create date: 2014.01.15 +-- Description: Procedura per import dati in Package2Item da dati ProductionLogRaw +-- ============================================= +CREATE PROCEDURE [ext].[stp_mergePackage2_OLD] +( + @source NVARCHAR(20) = 'ProductionLogRaw' -- nome della tabella sorgente tra ProductionLogRaw e ItemsRaw +) +AS +BEGIN + SET NOCOUNT ON; + + + ---- Create a temporary table variable to hold the output actions. + --DECLARE @SummaryOfChanges TABLE(Change VARCHAR(20)); + + -- -- import con MERGE... verifico tipo di caricamento richiesto! + --IF @source = 'ProductionLogRaw' -- carico da tracciato produzione + -- BEGIN + -- MERGE INTO Package2 AS Target + -- USING ( + -- SELECT plr.CodPackag, SUM(QtyOUT) AS TotQta, COUNT(*) AS NumEv + -- , SUM(QtyOUT) / COUNT(*) AS PesoMedio + -- , SUM(QtyEXT) / COUNT(*) AS TaraMedia + -- FROM ext.ProductionLogRaw plr + -- INNER JOIN DiesDet dd ON plr.CodDies = dd.CodDies + -- WHERE ISNULL(plr.CodPackag, '') <> '' + -- GROUP BY plr.CodPackag + -- ) + -- AS Source + -- ON Target.CodPackag = Source.CodPackag + -- WHEN MATCHED THEN + -- UPDATE SET TotQty = Source.TotQta + -- , [Weight] = Source.PesoMedio + -- , Tare = Source.TaraMedia + -- WHEN NOT MATCHED BY TARGET THEN + -- INSERT (CodPackag, TotQty, [Weight], Tare) VALUES (CodPackag, TotQta, PesoMedio, TaraMedia) + -- OUTPUT $action INTO @SummaryOfChanges; + + -- END + ----ELSE IF @source = 'ItemsRaw' -- carico da anagrafica + ---- BEGIN + ---- MERGE INTO Item2Package AS Target + ---- USING (SELECT CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup FROM ItemsRaw) + ---- AS Source + ---- ON Target.CodItem = Source.CodItem + ---- WHEN MATCHED THEN + ---- UPDATE SET ItemDescr = Source.ItemDescr, CodPlant = Source.CodPlant, UnitWeight = Source.UnitWeight, CodItemGroup = Source.CodItemGroup + ---- WHEN NOT MATCHED BY TARGET THEN + ---- INSERT (CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup) VALUES (CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup) + ---- OUTPUT $action INTO @SummaryOfChanges; + + ---- END + + ---- Query the results of the table variable. + --SELECT Change, COUNT(*) AS CountPerChange + --FROM @SummaryOfChanges + --GROUP BY Change; +END +GO +PRINT N'Creating [ext].[stp_mergeOrdersHist]...'; + + +GO + +-- ============================================= +-- Author: Steamware +-- Mod. date: 2014.05.22 +-- Description: Procedura per import dati in OrdersHist da dati OrdersHistRaw +-- ============================================= +CREATE PROCEDURE [ext].[stp_mergeOrdersHist] +( + @source NVARCHAR(20) = 'OrdersHistRaw' -- nome della tabella sorgente +) +AS +BEGIN + SET NOCOUNT ON; + + -- Create a temporary table variable to hold the output actions. + DECLARE @SummaryOfChanges TABLE(Change VARCHAR(20)); + + -- import con MERGE... verifico tipo di caricamento richiesto! + IF @source = 'OrdersHistRaw' -- carico da tracciato produzione + BEGIN + + MERGE INTO dbo.OrdersHist AS Target + USING( + SELECT OrdNum, + OrdRow, + OrdDate, + CodClient, + CodItem, + RawMat, + RawMatCost, + BatchQty, + CodInco, + OrdPrice, + RawMatExtraCost, + PriceOff, + OrdQty, + ProvvCost + FROM ext.OrdersHistRaw ) AS Source + ON Target.Ordnum = Source.Ordnum AND Target.Ordrow = Source.Ordrow + + -- non faccio aggiornamento dei dati oppure potrei farlo solo per le righe non elaborate cioè con Codquote non valorizzato + --WHEN MATCHED + --THEN UPDATE SET + -- Orddate = Source.OrdDate, + -- Codclient = Source.CodClient, + -- Coditem = Source.CodItem, + -- Rawmat = Source.RawMat, + -- Rawmatcost = Source.RawMatCost, + -- Batchqty = Source.BatchQty, + -- Codinco = Source.CodInco, + -- Ordprice = Source.OrdPrice, + -- Quotetype = Source.QuoteType, + -- Codquote = Source.CodQuote, + -- Quoterev = Source.QuoteRev, + -- Endcalc = Source.EndCalc + + WHEN NOT MATCHED BY TARGET + THEN INSERT ( OrdNum, + OrdRow, + OrdDate, + CodClient, + CodItem, + RawMat, + RawMatCost, + BatchQty, + CodInco, + OrdPrice, + RawMatExtraCost, + PriceOff, + OrdQty, + ProvvCost + --,Quotetype + --,Codquote + --,Quoterev + --,Endcalc + ) + VALUES( OrdNum, OrdRow, OrdDate, CodClient, CodItem, RawMat, RawMatCost, BatchQty, CodInco, OrdPrice, RawMatExtraCost, PriceOff, OrdQty, ProvvCost ) -- , QuoteType, CodQuote, QuoteRev, EndCalc ) + OUTPUT $action INTO @SummaryOfChanges; + END + + -- aggiorno indici tabella ( attenzione durata per tabelle grandi ) + ALTER INDEX ALL ON dbo.OrdersHist + REBUILD WITH ( FILLFACTOR = 100, SORT_IN_TEMPDB = ON ) ; -- ,STATISTICS_NORECOMPUTE = ON ) + + -- aggiorno statistiche tabella + UPDATE STATISTICS dbo.OrdersHist WITH FULLSCAN; + + -- Query the results of the table variable. + SELECT Change, COUNT(*) AS CountPerChange + FROM @SummaryOfChanges + GROUP BY Change; +END +GO +PRINT N'Creating [dbo].[stp_QL_update_30_01]...'; + + +GO + +-- ============================================= +-- Author: Steamware +-- Create date: 2014.01.22 +-- Description: aggiorna le tabelle QuoteList con i dati selezionati dalla TabProdSc +-- ============================================= +CREATE PROCEDURE [dbo].[stp_QL_update_30_01] +( + @QuoteType CHAR(1) = 'Q', + @CodQuote BIGINT = 0, + @QuoteRev INT = 0 ) AS BEGIN - SET XACT_ABORT ON; + SET NOCOUNT ON; + + -- dichiaro valori da recuperare + DECLARE @strTemp NVARCHAR(50) = '' --stringa temporanea x variabili "locali" + + DECLARE @valid BIT + DECLARE @CodDiesGroup NVARCHAR(50) + DECLARE @CodPlant NVARCHAR(50) + DECLARE @CodPlantFix NVARCHAR(50) = '' + DECLARE @HoleNum INT + DECLARE @CodItem NVARCHAR(50) = '' --cod item + DECLARE @ItemDescr NVARCHAR(50) = '' -- descrizione item + DECLARE @KeyAM NVARCHAR(50) = '' + DECLARE @KeyAMI NVARCHAR(50) = '' + DECLARE @KeyAMIL NVARCHAR(50) = '' + DECLARE @NumSMED INT = 0 -- numero cambi + DECLARE @KgTeo DECIMAL(18, 6) = 0 -- kg totali + DECLARE @RawMat NVARCHAR(50) + DECLARE @ProdTeo DECIMAL(18,6) + DECLARE @ScTec DECIMAL(18,6) + DECLARE @BatchQty INT + DECLARE @MAC_SC DECIMAL(18,6) -- Messa a cento scarto cesoia + DECLARE @MAC_ST DECIMAL(18,6) -- Messa a cento scarto tecnico + DECLARE @MAC_IN DECIMAL(18,6) -- Messa a cento difettosità all'incestatura + DECLARE @MAC_IM DECIMAL(18,6) -- Messa a cento difettosità all'imballo + DECLARE @SSR DECIMAL(9,6) -- percentuale vendita rottame + DECLARE @DiesPrice DECIMAL(9,3) -- prezzo matrice + DECLARE @DiesEOLife DECIMAL(9,2) -- durata matrice + DECLARE @DiesExpLife DECIMAL(9,2) -- durata matrice + DECLARE @DiesPriceLife DECIMAL(18,6) -- Price/Life matrice + DECLARE @OCF01 DECIMAL(18,6) = 0 -- altri costi di fase 01 + DECLARE @VCF01 DECIMAL(18,6) = 0 -- costi variabili di fase 01 + DECLARE @VCF04 DECIMAL(18,6) = 0 -- costi variabili di fase 04 + DECLARE @SellCostF01 DECIMAL(18,6) = 0 -- costo vendita fase 01 + DECLARE @SellCostF04 DECIMAL(18,6) = 0 -- costo vendita fase 04 + DECLARE @RefCostF01 DECIMAL(18,6) = 0 -- costo rifusione fase 01 + DECLARE @RefCostF04 DECIMAL(18,6) = 0 -- costo rifusione fase 04 + -- IMBALLO + DECLARE @CodPackag NVARCHAR(50) = '0' -- codice dell'imballo + DECLARE @CodClient NVARCHAR(50) = '' -- codice cliente + DECLARE @NumImb DECIMAL(9,6) = 0 -- num imballatori + DECLARE @PkgDesc NVARCHAR(50) = '' -- descrizione imballo + DECLARE @PRMWeight DECIMAL(9,4) = 0 -- peso dell'imballo + DECLARE @PWeight DECIMAL(9,4) = 0 -- peso del pacco + DECLARE @PTare DECIMAL(9,4) = 0 -- media delal tara di imballo dichiarata + DECLARE @PCost DECIMAL(9,6) = 0 -- costo unitario dell'imballo (al kg) + DECLARE @PTareStRatio DECIMAL(9,4) = 0 -- coefficiente di recupero tara/prodotto + + -- TRASPORTI + DECLARE @TranspZone NVARCHAR(50) = '', -- codice ZONA + @TranspCost DECIMAL(9,6), -- costo di trasporto + @HasTC INT + + -- PROVVIGIONI + DECLARE @Provvig DECIMAL(9,6) -- provvigione agente + + -- default: validità è true! + SET @valid = 1 + + -- ================================================= + -- CREAZIONE TEMP TABLE + -- ================================================= + + -- elimino e ricreo #QuoteParam temp table... + IF OBJECT_ID('tempdb..#QuoteParam') IS NOT NULL + DROP TABLE #QuoteParam + + CREATE TABLE #QuoteParam + ( + [QuoteType] [char](1) NOT NULL, + [CodQuote] [bigint] NOT NULL, + [QuoteRev] [int] NOT NULL, + [NumP] [int] IDENTITY(1,1) NOT NULL, + [ProcessNum] [nvarchar](50) NOT NULL, + [Descr] [nvarchar](50) NOT NULL, + [Parameter] [nvarchar](100) NOT NULL, + --PRIMARY KEY + -- ( [NumP] ASC, [QuoteType] ASC, [CodQuote] ASC, [QuoteRev] ASC ) WITH (PAD_INDEX = ON, FILLFACTOR = 90 ) + ) + + -- elimino e ricreo #QuoteParam temp table... + IF OBJECT_ID('tempdb..#QuoteWorkInt') IS NOT NULL + DROP TABLE #QuoteWorkInt + + CREATE TABLE #QuoteWorkInt + ( + [QuoteType] [char](1) NOT NULL, + [CodQuote] [bigint] NOT NULL, + [QuoteRev] [int] NOT NULL, + [NumWI] [int] IDENTITY(1,1) NOT NULL, + [ProcessNum] [nvarchar](50) NOT NULL, + [CodPlant] [nvarchar](50) NOT NULL, + [Class01] [nvarchar](50) NOT NULL DEFAULT (''), + [Class02] [nvarchar](50) NOT NULL DEFAULT (''), + [Class03] [nvarchar](50) NOT NULL DEFAULT (''), + [Class04] [nvarchar](50) NOT NULL DEFAULT (''), + [Class05] [nvarchar](50) NOT NULL DEFAULT (''), + [NetProd] [decimal](9, 3) NOT NULL DEFAULT ((0)), + [WSR] [decimal](9, 8) NOT NULL DEFAULT ((0)), + [MSR] [decimal](9, 8) NOT NULL DEFAULT ((0)), + [DSR] [decimal](9, 8) NOT NULL DEFAULT ((0)), + [FC4UG] [decimal](9, 6) NOT NULL DEFAULT ((0)), + [VC4UG] [decimal](9, 6) NOT NULL DEFAULT ((0)), + [OH4UG] [decimal](9, 6) NOT NULL DEFAULT ((0)), + [SC4UG] [decimal](9, 6) NOT NULL DEFAULT ((0)), + [WYR] AS ((1)-[WSR]), + [MYR] AS ((1)-[MSR]), + [DYR] AS ((1)-[DSR]), + [WCR] AS ((1)/((1)-[WSR])), + [MCR] AS ((1)/((1)-[MSR])), + [DCR] AS ((1)/((1)-[DSR])), + [valid] [bit] NOT NULL DEFAULT((1)), + ) + + -- elimino e ricreo #QuoteParam temp table... + IF OBJECT_ID('tempdb..#QuoteOC') IS NOT NULL + DROP TABLE #QuoteOC + + CREATE TABLE #QuoteOC + ( + [QuoteType] [char](1) NOT NULL, + [CodQuote] [bigint] NOT NULL, + [QuoteRev] [int] NOT NULL, + [NumEx] [int] IDENTITY(1,1) NOT NULL, + [ProcessNum] [nvarchar](50) NOT NULL, + [CodPlant] [nvarchar](50) NOT NULL, + [Class01] [nvarchar](50) NOT NULL DEFAULT (''), + [Class02] [nvarchar](50) NOT NULL DEFAULT (''), + [Class03] [nvarchar](50) NOT NULL DEFAULT (''), + [Class04] [nvarchar](50) NOT NULL DEFAULT (''), + [Class05] [nvarchar](50) NOT NULL DEFAULT (''), + [TotQty] [decimal](18, 6) NOT NULL DEFAULT ((1)), + [TotCost] [decimal](18, 6) NOT NULL DEFAULT ((0)), + [Quota] [decimal](18, 6) NOT NULL DEFAULT ((1)), + [C4UG] AS (([TotCost]*[Quota])/[TotQty]), + [valid] [bit] NOT NULL DEFAULT ((1)) + ) + + -- =================================== + -- INIZIO TRANSAZIONE + -- =================================== + SET XACT_ABORT ON; BEGIN TRAN - SET NOCOUNT ON; - - -- svuoto tabella... - TRUNCATE TABLE TabDifett - - -- riempio di nuovo valori! chiave AMI - INSERT INTO TabDifett - SELECT - dd.CodItem + '-' + pl.RawMat + '-' + pl.CodPlant as KeyAMI - , pl.ProcessNum - , dd.CodItem, pl.RawMat, pl.CodPlant - , SUM(NumOUT) as TotOUT - , SUM(NumIN) as TotIn - FROM ProductionLog pl INNER JOIN DiesDet dd ON pl.CodDies=dd.CodDies - WHERE pl.ProcessNum IN ('02', '04') - AND pl.okDi = 1 - -- and pl.EventType=1 - AND pl.EventStart BETWEEN @dateFrom AND @dateTo - GROUP BY dd.CodItem, pl.RawMat, pl.CodPlant, pl.ProcessNum - ORDER BY dd.CodItem, pl.RawMat, pl.ProcessNum--, SUM(NumOUT) DESC + --------------------------------------- + -- svuotamento iniziale + --------------------------------------- - -- riempio di nuovo valori! chiave CMI - INSERT INTO TabDifett - SELECT - id.CodItemGroup + '-' + pl.RawMat + '-' + pl.CodPlant as KeyAMI - , pl.ProcessNum - , id.CodItemGroup, pl.RawMat, pl.CodPlant - , SUM(NumOUT) as TotOUT - , SUM(NumIN) as TotIn - FROM ProductionLog pl - INNER JOIN DiesDet dd ON pl.CodDies=dd.CodDies - INNER JOIN ItemDet id ON dd.CodItem = id.CodItem - WHERE pl.ProcessNum IN ('02', '04') - AND pl.okDi = 1 - -- and pl.EventType=1 - AND pl.EventStart BETWEEN @dateFrom AND @dateTo - GROUP BY id.CodItemGroup, pl.RawMat, pl.CodPlant, pl.ProcessNum - ORDER BY id.CodItemGroup, pl.RawMat, pl.ProcessNum--, SUM(NumOUT) DESC + -- elimino lavorazioni esterne! + DELETE + FROM dbo.QuoteWorkExt + WHERE QuoteType = @QuoteType + AND CodQuote = @CodQuote + AND QuoteRev = @QuoteRev + + -- se ci sono eccezioni nella tab dell'anagrafico articoli imposto il codPlant desiderato + SET @CodPlantFix = ISNULL ( ( SELECT id.CodPlant FROM dbo.ItemDet id INNER JOIN dbo.QuoteList ql ON id.CodItem = ql.CodItem + WHERE ql.QuoteType = @QuoteType + AND ql.CodQuote = @CodQuote + AND ql.QuoteRev = @QuoteRev ), '' ) + + -- recupero da dati dell'offerta il valore del cliente + SELECT @CodClient = CodClient + FROM dbo.QuoteList + WHERE QuoteType = @QuoteType + AND CodQuote = @CodQuote + AND QuoteRev = @QuoteRev + + -- recupero dati!! + SELECT TOP 1 @CodItem = ql.CodItem + , @CodDiesGroup = tps.CodDiesGroup + , @CodPlant = CASE WHEN @CodPlantFix <> '' THEN @CodPlantFix ELSE tps.CodPlant END + , @HoleNum = tps.HoleNum + , @KeyAM = ql.KeyAM + , @KeyAMI = ql.KeyAM + '-' + ISNULL(@CodPlant,'0000') + , @KeyAMIL = ql.KeyAM + '-' + ISNULL(@CodPlant,'0000') + '-' + CAST(ISNULL(tps.HoleNum,0) AS NVARCHAR(10)) + , @ProdTeo = tps.ProdTeo + , @ScTec = tps.ScTec + , @KgTeo = tps.KgTeo + , @NumSMED = tps.NumSMED + , @RawMat = ql.RawMat + , @BatchQty = ql.BatchQty + , @ItemDescr= i.ItemDescr + FROM dbo.QuoteList ql + INNER JOIN dbo.TabProdSc tps ON ql.KeyAM = tps.KeyAM + INNER JOIN dbo.ItemDet i ON ql.CodItem = i.CodItem + WHERE ql.QuoteType = @QuoteType + AND ql.CodQuote = @CodQuote + AND ql.QuoteRev = @QuoteRev + ORDER BY tps.KgTeo DESC + + -- recupero da dati dell'offerta il valore del package scelto + SET @CodPackag = ( SELECT dbo.f_getCodPackag( @CodItem , @CodClient ) ) + + -- e aggiorno QuoteRM + UPDATE dbo.QuoteRM + SET CodPackag = @CodPackag + FROM dbo.QuoteRM + WHERE QuoteType = @QuoteType + AND CodQuote = @CodQuote + AND QuoteRev = @QuoteRev + + INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter) + VALUES (@QuoteType, @CodQuote, @QuoteRev, '01', 'ItemDescr', @ItemDescr) + + INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter) + SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'CodifProfilo', Class01 + FROM dbo.ItemDet + WHERE CodItem = @CodItem + + INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter) + SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'ClasseMerc', Class02 + FROM dbo.ItemDet + WHERE CodItem = @CodItem + + INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter) + SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'CodClientAssoc', Class03 + FROM dbo.ItemDet + WHERE CodItem = @CodItem + + INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter) + SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'ClientNameAssoc', ClientDet.ClientName + FROM dbo.ItemDet INNER JOIN ClientDet ON ItemDet.Class03=ClientDet.CodClient + WHERE CodItem = @CodItem + + -- INFORMAZIONI su MATRICE + INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter) + VALUES (@QuoteType, @CodQuote, @QuoteRev, '01', 'CodDiesGroup', @CodDiesGroup) + + SET @strTemp = dbo.f_getSubstring(@CodDiesGroup, '-', 1) --@strTemp = SUBSTRING(@CodDiesGroup, 0, CHARINDEX('-', @CodDiesGroup)) -- !!!fare con finc Gian + INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter) + VALUES (@QuoteType, @CodQuote, @QuoteRev, '01', 'TipoDies', @strTemp) + + SET @strTemp = dbo.f_getSubstring(@CodDiesGroup, '-', 2) --@strTemp = SUBSTRING(REPLACE(@CodDiesGroup, @strTemp,''), 2, CHARINDEX('-', @CodDiesGroup)) -- !!!fare con finc Gian + INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter) + VALUES (@QuoteType, @CodQuote, @QuoteRev, '01', 'DiamDies', @strTemp) + + SET @strTemp = dbo.f_getSubstring(@CodDiesGroup, '-', 3) --@strTemp = SUBSTRING(REPLACE(@CodDiesGroup, @strTemp,''), 5, CHARINDEX('-', @CodDiesGroup)) -- !!!fare con finc Gian + INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter) + VALUES (@QuoteType, @CodQuote, @QuoteRev, '01', 'HoleNumDies', @strTemp) + + INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter) + SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'NumDiesInList', COUNT(CodDies) + FROM dbo.DiesDet + WHERE CodDiesGroup = @CodDiesGroup AND CodItem = @CodItem + + INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter) + SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'NumDiesExaust', COUNT(CodDies) + FROM dbo.DiesDet + WHERE CodDiesGroup = @CodDiesGroup AND Active = 0 + + -- inserisco parametri calcolati x lavorazione estruzione + INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter) + SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'CodPlant', @CodPlant + + INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter) + SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'KeyAM', @KeyAM + + INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter) + SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'KeyAMIL', @KeyAMIL + + INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter) + SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'NumSMED', @NumSMED + + INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter) + SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'KgTeo', @KgTeo + + -- tolto: è duplicato di HoleNumDies + --INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter) + --SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'HoleNum', @HoleNum + + -- inserisco lavorazione estrusione! + INSERT INTO #QuoteWorkInt (QuoteType, CodQuote, QuoteRev, ProcessNum, CodPlant, Class01, Class02, Class03, NetProd, WSR) + SELECT @QuoteType, @CodQuote, @QuoteRev, '01', @CodPlant, @KeyAM, @KeyAMIL, @RawMat, @ProdTeo, @ScTec + + INSERT INTO #QuoteParam (QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter) + SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'KgProdotti', SUM(KgTeo) + FROM dbo.QuoteList ql + INNER JOIN dbo.TabProdSc tps ON ql.KeyAM = tps.KeyAM + WHERE ql.QuoteType = @QuoteType + AND ql.CodQuote = @CodQuote + AND ql.QuoteRev = @QuoteRev + + --SELECT @cont = @cont + 1 + --INSERT INTO QuoteParam(QuoteType, CodQuote, QuoteRev, NumP, ProcessNum, Descr, Parameter) + --SELECT @QuoteType, @CodQuote, @QuoteRev, @cont, '01', 'NumLotti', COUNT(*) + --FROM QuoteList ql INNER JOIN TabProdSc tps ON ql.KeyAM = tps.KeyAM + --WHERE ql.QuoteType = @QuoteType + -- AND ql.CodQuote = @CodQuote + -- AND ql.QuoteRev = @QuoteRev + + -- inserisco dati mancanti di MSR/CSR (scarto cesoia x estrusione) - DSR è NULLO x estrusione! + UPDATE qwi + SET MSR = rmd.CSR + FROM #QuoteWorkInt qwi + INNER JOIN dbo.RawMatDet rmd ON qwi.Class03 = rmd.RawMat + + -- calcolo i costi legati alla fase estrusione! + UPDATE qwi + SET FC4UG = (cp.FC * cp.QuotaPlantStd / cp.QuotaManStd) / qwi.NetProd + , VC4UG = (cp.VC * cp.QuotaPlantStd / cp.QuotaManStd) / qwi.NetProd + , OH4UG = (cp.OH * cp.QuotaPlantStd / cp.QuotaManStd) / qwi.NetProd + , SC4UG = cp.SC / ql.BatchQty + FROM #QuoteWorkInt qwi + INNER JOIN dbo.Cost2Plant cp ON qwi.CodPlant = cp.CodPlant AND qwi.ProcessNum = cp.ProcessNum + INNER JOIN dbo.QuoteList ql ON qwi.QuoteType = ql.QuoteType AND qwi.CodQuote = ql.CodQuote AND qwi.QuoteRev = ql.QuoteRev + WHERE qwi.ProcessNum = '01' + + -- inserisco lavorazione incestatura! + INSERT INTO #QuoteWorkInt (QuoteType, CodQuote, QuoteRev, ProcessNum, CodPlant, Class01, Class02, Class03) + SELECT @QuoteType, @CodQuote, @QuoteRev, '02', @CodPlant, @KeyAM, @KeyAMI, @RawMat + + -- inserisco dati mancanti di DSR x incestatura come 1 - OUT/IN + UPDATE qwi + SET DSR = 1 - CAST(td.TotOUT AS DECIMAL(18,6))/CAST(td.TotIN AS DECIMAL(18,6)) + FROM #QuoteWorkInt qwi + INNER JOIN dbo.TabDifett td ON qwi.Class02 = td.KeyAMI AND qwi.ProcessNum = td.ProcessNum + WHERE qwi.ProcessNum = '02' -- solo incestatura + + -- inserisco lavorazione FORNO! + INSERT INTO #QuoteWorkInt(QuoteType, CodQuote, QuoteRev, ProcessNum, CodPlant, Class01, Class02, Class03) + SELECT @QuoteType, @CodQuote, @QuoteRev, '03', @CodPlant, @KeyAM, @KeyAMI, @RawMat + + -- inserisco lavorazione imballo! + INSERT INTO #QuoteWorkInt(QuoteType, CodQuote, QuoteRev, ProcessNum, CodPlant, Class01, Class02, Class03, Class04, Class05) + SELECT @QuoteType, @CodQuote, @QuoteRev, '04', @CodPlant, @KeyAM, @KeyAMIL, @RawMat, @CodItem, @KeyAMI + + -- calcolo produttività netta nella fase imballo + UPDATE qwi + SET NetProd = CASE ti.Durata WHEN 0 THEN 0 ELSE ti.TotOut / ti.Durata END + FROM #QuoteWorkInt qwi + INNER JOIN dbo.TabImbArt ti ON qwi.Class04 = ti.KeyA + WHERE qwi.ProcessNum = '04' -- solo imballo + + -- Se Produttività netta ancora = 0 la leggo nella tabella Gruppo Imballo ( Packaging ) + IF ( SELECT NetProd FROM #QuoteWorkInt WHERE ProcessNum = '04' ) = 0 + BEGIN + UPDATE qwi + SET NetProd = CASE ti.Durata WHEN 0 THEN 0 ELSE ti.TotOut / ti.Durata END + FROM #QuoteWorkInt qwi + INNER JOIN dbo.TabImbGrp ti ON ti.CodPackag = @CodPackag -- packag generico dell' offerta + WHERE qwi.ProcessNum = '04' -- solo imballo + END + + -- salvo numero imballatori + SELECT @NumImb = ISNULL(NumImb,0) + FROM dbo.TabImbArt + WHERE KeyA = @CodItem + + -- parametro num imballatori + INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter) + SELECT @QuoteType, @CodQuote, @QuoteRev, '04', 'QuotaMan', @NumImb + + -- calcolo i costi legati alla fase di imballo! + -- QUI VA FATTO CALCOLO PUNTUALE SU quotaPlant tramite Articolo-Cliente / Articolo / Packaging + UPDATE qwi + SET FC4UG = (cp.FC * cp.QuotaPlantStd / cp.QuotaManStd) / qwi.NetProd + , VC4UG = (cp.VC * cp.QuotaPlantStd / cp.QuotaManStd) / qwi.NetProd + , OH4UG = (cp.OH * cp.QuotaPlantStd / cp.QuotaManStd) / qwi.NetProd + , SC4UG = cp.SC / ql.BatchQty + FROM #QuoteWorkInt qwi + INNER JOIN dbo.Cost2Plant cp ON qwi.CodPlant = cp.CodPlant AND qwi.ProcessNum = cp.ProcessNum + INNER JOIN dbo.QuoteList ql ON qwi.QuoteType = ql.QuoteType AND qwi.CodQuote = ql.CodQuote AND qwi.QuoteRev = ql.QuoteRev + WHERE qwi.ProcessNum = '04' -- solo imballo + + -- inserisco dati mancanti di DSR x incestatura come 1 - OUT/IN + UPDATE qwi + SET DSR = 1 - CAST(td.TotOUT AS DECIMAL(18,6))/CAST(td.TotIN AS DECIMAL(18,6)) + FROM #QuoteWorkInt qwi + INNER JOIN dbo.TabDifett td ON qwi.Class05 = td.KeyAMI AND qwi.ProcessNum = td.ProcessNum + WHERE qwi.ProcessNum = '04' -- solo imballo + + -- recupero le MAC fase 01 + SELECT + @MAC_SC = MCR + ,@MAC_ST = WCR + FROM #QuoteWorkInt WITH (NOLOCK) + WHERE ProcessNum = '01' + + -- recupero le MAC fase 02 + SELECT + @MAC_IN = DCR + FROM #QuoteWorkInt WITH (NOLOCK) + WHERE ProcessNum = '02' + + -- recupero le MAC fase 04 + SELECT + @MAC_IM = DCR + FROM #QuoteWorkInt WITH (NOLOCK) + WHERE ProcessNum = '04' + + -- calcolo percentuale vendita rottame + SELECT @SSR = SSR + FROM dbo.RawMatDet + WHERE RawMat = @RawMat + + + -- NOTA : la transazione posso probabilmente iniziarla qui visto che è il + -- primo Update/insert/delete su tabelle non temporanee + + -- update rese RawMat! + UPDATE dbo.QuoteRM + SET FCR = @MAC_SC * @MAC_ST * @MAC_IN * @MAC_IM + WHERE QuoteType = @QuoteType + AND CodQuote = @CodQuote + AND QuoteRev = @QuoteRev + AND RawMat = @RawMat + + -- inserisco i costi delle utilities in QuoteOC + + -- inserisco altri costi x lavorazione estrusione! GAS ed EE + INSERT INTO #QuoteOC(QuoteType, CodQuote, QuoteRev, ProcessNum, CodPlant, Class01, Class02, TotQty, TotCost, Quota) + SELECT @QuoteType, @CodQuote, @QuoteRev, '01', @CodPlant, CodUtil, @RawMat, @BatchQty, UnitCost * @BatchQty, 1 + FROM dbo.Utilities + WHERE CodPlant = @CodPlant + + + /************************************************************* + * MATRICE + * + * calcolo prezzo e durata matrice con procedura a 5 step... + * A) media ponderata prezzo ed ExpLife da DiesDet selezionando x CodItem + CodDiesGroup + * B) EOLLife x media ponderata su DiesDet dove Active = 0 + * C) SE prezzo = 0 --> prendo prezzo da DiesGroupDet selezionando x CodDiesGroup + * D) Se EOL = 0 --> prendo ExpLife della singola matrice, se è 0 --> prendo EOLLife da DiesGroupDet selezionando x CodDiesGroup + * E) Calcolo Price / Life + * + *************************************************************/ + + -- (A) da DiesDet + SELECT @DiesPrice = SUM(ISNULL(Price, 0) * ISNULL(ActLife, 1)) / SUM(ISNULL(ActLife, 1)), + @DiesExpLife = SUM(ISNULL(ExpLife, 0) * ISNULL(ActLife, 1)) / SUM(ISNULL(ActLife, 1)) + FROM dbo.DiesDet + WHERE CodItem = @CodItem + AND CodDiesGroup = @CodDiesGroup + GROUP BY CodItem, CodDiesGroup + + -- (B) da DiesDet + SELECT @DiesEOLife = AVG(ISNULL(ActLife, 0)) + FROM dbo.DiesDet + WHERE CodItem = @CodItem + AND CodDiesGroup = @CodDiesGroup + AND Active = 0 + GROUP BY CodItem, CodDiesGroup + + SET @DiesPrice = ISNULL(@DiesPrice,0) + SET @DiesExpLife = ISNULL(@DiesExpLife,0) + SET @DiesEOLife = ISNULL(@DiesEOLife,0) + + -- (C) verifico se prezzo è OK... + IF (@DiesPrice = 0) + BEGIN + -- calcolo da DiesGroupDet + SELECT @DiesPrice = ISNULL(Price, 0) + FROM DiesGroupDet + WHERE CodDiesGroup = @CodDiesGroup + END + + -- (D) verifico se vita è OK... + IF (@DiesEOLife = 0) + BEGIN + -- uso exp life articolo... + SET @DiesEOLife = @DiesExpLife + END + -- controllo che non sia nulla/vuota la durata... + IF (@DiesEOLife = 0) + BEGIN + SELECT @DiesEOLife = CASE WHEN EOLLife > 0 THEN EOLLife ELSE ExpLife END + FROM DiesGroupDet + WHERE CodDiesGroup = @CodDiesGroup + END + + -- controllo che non sia nulla/vuota la durata... + IF (@DiesEOLife = 0) + BEGIN + SET @DiesEOLife = 1 -- metto 1 kg che è sbagliato e mi fa esplodere prezzo matrice ma non blocca calcoli + END + + -- (E) Calcolo price/life! + SET @DiesPriceLife = @DiesPrice / @DiesEOLife + + -- (D) verifico se vita è OK... + IF (@DiesPriceLife = 0) + BEGIN + SET @DiesPriceLife = 1 + SET @valid = 0 + END + + -- inserisco costi per Matrice: costo e durata da matrice, se non ci sono da gruppo, (anche solo uno dei due, ovviamente più facile trovare durata x matrice...) + INSERT INTO #QuoteOC(QuoteType, CodQuote, QuoteRev, ProcessNum, CodPlant, Class01, Class02, TotQty, TotCost, Quota, valid) + SELECT @QuoteType, @CodQuote, @QuoteRev, '01', @CodPlant, 'MATRICE', @RawMat, @BatchQty, @DiesPriceLife * @BatchQty, 1, @valid + + + -- inserisco parametri calcolati x matrice + INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter) + SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'DiesPrice', @DiesPrice + + INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter) + SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'DiesExpLife', @DiesExpLife + + INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter) + SELECT @QuoteType, @CodQuote, @QuoteRev, '01', 'DiesEOLife', @DiesEOLife + + /************************************************************* + * VENDITA ROTTAME + * + * calcolo COSTO DI VENDITA PER LE 2 FASI ESTRUSIONE 01 ED IMBALLO 04 + * - calcolo costi variabili fase 01 / 04 + * - calcolo costo di vendita x fase 01 / 04 + *************************************************************/ + + SELECT @OCF01 = SUM(ISNULL(C4UG,0)) + FROM #QuoteOC WITH (NOLOCK) + + SELECT @VCF01 = @OCF01 + VC4UG + FROM #QuoteWorkInt + WHERE ProcessNum = '01' + + SELECT @VCF04 = @OCF01 + SUM(VC4UG) + FROM #QuoteWorkInt + + SELECT @SellCostF01 = ((@MAC_ST * @MAC_SC * @MAC_IN) - 1) * (q.RawMatCost + q.RawMatExtraCost - CASE WHEN SSVA > 0 THEN SSVA ELSE q.RawMatCost * SSVR END + @VCF01) -- ((prodotto delle MAC = inverso del prodotto delle rese) - 1) * (costo Al - prezzo rivendita + costi var fase 01) + , @RefCostF01 = -- ( (A - B) / 100 - C ) + ( + -- (A) = (costo pieno di acquisto + costi fase 1) * MAC * 100 (IN CENTESIMI) + ((q.RawMatCost + q.RawMatExtraCost + @VCF01) * (@MAC_ST * @MAC_SC * @MAC_IN * 100)) + -- (B) = ((MAC * 100) - 100) * Resa di fonderia * (costo pieno acquisto - costo di trasformazione)) + - ((@MAC_ST * @MAC_SC * @MAC_IN * 100) - 100) * rmd.ProcYield * (q.RawMatCost + q.RawMatExtraCost + @VCF01 - rmd.ProcCost) + ) / 100 -- divido per 100 finale + -- (C) = sottraggo costo pieno alluminio + - (q.RawMatCost + q.RawMatExtraCost + @VCF01) + FROM dbo.RawMatDet rmd + INNER JOIN dbo.QuoteRM q ON q.RawMat = rmd.RawMat + WHERE q.QuoteType = @QuoteType + AND q.CodQuote = @CodQuote + AND q.QuoteRev = @QuoteRev + AND q.RawMat = @RawMat + + SELECT @SellCostF04 = ((@MAC_IM) - 1) * (q.RawMatCost + q.RawMatExtraCost - CASE WHEN SSVA > 0 THEN SSVA ELSE q.RawMatCost * SSVR END + @VCF01 + @VCF04) -- ((prodotto delle MAC = inverso del prodotto delle rese) - 1) * (costo Al - prezzo rivendita + costi var fase 04) + , @RefCostF04 = -- ( (A - B) / 100 - C ) + ( + -- (A) = (costo pieno di acquisto + costi variabili fase 1 e 4) * MAC * 100 (IN CENTESIMI) + ((q.RawMatCost + q.RawMatExtraCost + @VCF01 + @VCF04) * (@MAC_IM * 100)) + -- (B) = ((MAC * 100) - 100) * Resa di fonderia * (costo pieno acquisto - costo di trasformazione)) + - ((@MAC_IM * 100) - 100) * rmd.ProcYield * (q.RawMatCost + q.RawMatExtraCost + @VCF01 + @VCF04 - rmd.ProcCost) + ) / 100 -- divido per 100 finale + -- (C) = sottraggo costo pieno alluminio + - (q.RawMatCost + q.RawMatExtraCost + @VCF01 + @VCF04) + + -- NOTA: usiamo (q.RawMatCost + q.RawMatExtraCost + @VCF01) e non (q.RawMatCost + q.RawMatExtraCost + @VCF01 + @RefCostF01) perché la differenza è minimale, si tratta di 10/20 PPM... + + FROM RawMatDet rmd INNER JOIN QuoteRM q ON q.RawMat = rmd.RawMat + WHERE q.QuoteType = @QuoteType + AND q.CodQuote = @CodQuote + AND q.QuoteRev = @QuoteRev + AND q.RawMat = @RawMat + + -- inserisco costi per VENDITA + INSERT INTO #QuoteOC(QuoteType, CodQuote, QuoteRev, ProcessNum, CodPlant, Class01, Class02, TotQty, TotCost, Quota) + SELECT @QuoteType, @CodQuote, @QuoteRev, '01', @CodPlant, 'VENDITA', @RawMat, @BatchQty, @SellCostF01 * @BatchQty, @SSR + + -- inserisco costi per ROTTAME + INSERT INTO #QuoteOC(QuoteType, CodQuote, QuoteRev, ProcessNum, CodPlant, Class01, Class02, TotQty, TotCost, Quota) + SELECT @QuoteType, @CodQuote, @QuoteRev, '01', @CodPlant, 'ROTTAME', @RawMat, @BatchQty, @RefCostF01 * @BatchQty, 1 - @SSR + + -- inserisco costi per VENDITA + INSERT INTO #QuoteOC(QuoteType, CodQuote, QuoteRev, ProcessNum, CodPlant, Class01, Class02, TotQty, TotCost, Quota) + SELECT @QuoteType, @CodQuote, @QuoteRev, '04', @CodPlant, 'VENDITA', @RawMat, @BatchQty, @SellCostF04 * @BatchQty, @SSR + + -- inserisco costi per ROTTAME + INSERT INTO #QuoteOC(QuoteType, CodQuote, QuoteRev, ProcessNum, CodPlant, Class01, Class02, TotQty, TotCost, Quota) + SELECT @QuoteType, @CodQuote, @QuoteRev, '04', @CodPlant, 'ROTTAME', @RawMat, @BatchQty, @RefCostF04 * @BatchQty, 1 - @SSR - -- salvo nuova revisione dati di produzione... - INSERT INTO RevHistory - SELECT 'P', ISNULL(MAX(RevNum),0) + 1, GETDATE(), 'Aggiornamento dati di produzione x fasi 02/03 ' + CONVERT(NVARCHAR(20), @dateFrom, 120) + ' --> ' +CONVERT(NVARCHAR(20), @dateTo, 120) - FROM RevHistory - WHERE RevType = 'P' + EXEC stp_packageCost @CodItem, @CodClient, @CodPackag, @PDesc=@PkgDesc OUTPUT, @RMWeight=@PRMWeight OUTPUT, @Weight=@PWeight OUTPUT, @Tare=@PTare OUTPUT, @PackCost=@PCost OUTPUT, @TareStRat=@PTareStRatio OUTPUT + + -- inserisco costi per IMBALLO + INSERT INTO #QuoteOC(QuoteType, CodQuote, QuoteRev, ProcessNum, CodPlant, Class01, Class02, TotQty, TotCost, Quota) + SELECT @QuoteType, @CodQuote, @QuoteRev, '04', @CodPlant, 'IMBALLO', @RawMat, @BatchQty, @PCost * @BatchQty, 1 + + + -- inserisco parametri calcolati x imballaggio + INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter) + SELECT @QuoteType, @CodQuote, @QuoteRev, '04', 'PkgDesc', @PkgDesc + + INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter) + SELECT @QuoteType, @CodQuote, @QuoteRev, '04', 'PRMWeight', @PRMWeight + + INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter) + SELECT @QuoteType, @CodQuote, @QuoteRev, '04', 'PWeight', @PWeight + + INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter) + SELECT @QuoteType, @CodQuote, @QuoteRev, '04', 'PTare', @PTare + + INSERT INTO #QuoteParam(QuoteType, CodQuote, QuoteRev, ProcessNum, Descr, Parameter) + SELECT @QuoteType, @CodQuote, @QuoteRev, '04', 'TareStRatio', @PTareStRatio + + + --------------------------------------------- + -- inserisco costi per TRASPORTI + --------------------------------------------- + -- recupero zona da cliente... + SELECT @TranspZone = TranspZone + FROM dbo.ClientDet + WHERE CodClient = @CodClient + + -- recupero tipo di trasporto + SELECT @HasTC = ISNULL(i.HasTC, 0) + FROM dbo.QuoteList q INNER JOIN Incoterms i ON q.CodInco = i.CodInco + WHERE q.QuoteType = @QuoteType + AND q.CodQuote = @CodQuote + AND q.QuoteRev = @QuoteRev + + -- recupero costi trasporto + SELECT @TranspCost = TranspCost + FROM dbo.TranspCostDet + WHERE TranspZone = @TranspZone + + INSERT INTO #QuoteOC(QuoteType, CodQuote, QuoteRev, ProcessNum, CodPlant, Class01, Class02, TotQty, TotCost, Quota) + SELECT @QuoteType, @CodQuote, @QuoteRev, '04', @CodPlant, 'TRASPORTI', @RawMat, @BatchQty, @HasTC * @TranspCost * @BatchQty, 1 + + + --------------------------------------------- + -- inserisco costi per PROVVIGIONI + --------------------------------------------- + SELECT @Provvig = ISNULL(a.QuotaProvvAg, 0) + FROM dbo.AgentsDet a + INNER JOIN ClientDet c ON a.CodAg = c.CodAg + INNER JOIN QuoteList q ON q.CodClient = c.CodClient + WHERE q.QuoteType = @QuoteType + AND q.CodQuote = @CodQuote + AND q.QuoteRev = @QuoteRev + + -- inserisco costi per PROVVIGIONI + INSERT INTO #QuoteOC(QuoteType, CodQuote, QuoteRev, ProcessNum, CodPlant, Class01, Class02, TotQty, TotCost, Quota) + SELECT @QuoteType, @CodQuote, @QuoteRev, '04', @CodPlant, 'PROVVIGIONI', @RawMat, @BatchQty, @Provvig * @BatchQty, 1 + + /* ================================================== + CANCELLO E CARICO TABELLE EFFETTIVE + ==================================================*/ + + -- elimino e carico parametri! + DELETE FROM dbo.QuoteParam + WHERE QuoteType = @QuoteType + AND CodQuote = @CodQuote + AND QuoteRev = @QuoteRev + + INSERT dbo.QuoteParam + SELECT * FROM #QuoteParam WITH (NOLOCK) + + -- elimino e carico lavorazioni interne! + DELETE FROM dbo.QuoteWorkInt + WHERE QuoteType = @QuoteType + AND CodQuote = @CodQuote + AND QuoteRev = @QuoteRev + + INSERT dbo.QuoteWorkInt -- ci sono valori calcolati quindi devo selezionare i campi + SELECT QuoteType, CodQuote, QuoteRev, NumWI, ProcessNum, CodPlant, Class01, Class02, Class03, Class04, Class05 + , NetProd, WSR, MSR, DSR, FC4UG, VC4UG, OH4UG, SC4UG, valid + FROM #QuoteWorkInt WITH (NOLOCK) + + -- elimino e carico OtherCosts + DELETE FROM dbo.QuoteOC + WHERE QuoteType = @QuoteType + AND CodQuote = @CodQuote + AND QuoteRev = @QuoteRev + + INSERT dbo.QuoteOC -- ci sono valori calcolati quindi devo selezionare i campi + SELECT QuoteType, CodQuote, QuoteRev, NumEx, ProcessNum, CodPlant, Class01, Class02, Class03, Class04 + , Class05, TotQty, TotCost, Quota, valid + FROM #QuoteOC WITH (NOLOCK) + COMMIT TRAN + + --SELECT * FROM #QuoteParam + --SELECT * FROM #QuoteWorkInt + --SELECT * FROM #QuoteOC + + -- elimino temp table... + IF OBJECT_ID('tempdb..#QuoteParam') IS NOT NULL + DROP TABLE #QuoteParam + IF OBJECT_ID('tempdb..#QuoteWorkInt') IS NOT NULL + DROP TABLE #QuoteWorkInt + IF OBJECT_ID('tempdb..#QuoteOC') IS NOT NULL + DROP TABLE #QuoteOC END GO @@ -10881,6 +13795,254 @@ BEGIN --IF OBJECT_ID('tempdb..#QuoteOC') IS NOT NULL -- DROP TABLE #QuoteOC +END +GO +PRINT N'Creating [dbo].[stp_zzz_scratch]...'; + + +GO + + + + + + +-- ============================================= +-- Author: S.E. Locatelli +-- Create date: 2013.11.20 +-- Description: Procedure x calcoli e test import dati e prove varie +-- ============================================= +CREATE PROCEDURE [dbo].[stp_zzz_scratch] +AS +BEGIN + + -- dichiaro e imposto periodo di calcolo dei valori + -- andrà impostato in una tabella e mi determinerà la versione dei dati + DECLARE @dateFrom AS DateTime; + DECLARE @dateTo AS DateTime; + + SET @dateFrom = '20100101' + SET @dateTo = '20130929' + + -- ========================================== + -- IMPORTAZIONE DATI CSV + -- ========================================== + exec tmp.importProductionLogRaw + exec tmp.importClientsRaw + exec tmp.importTranspCostRaw + exec tmp.importItemsRaw + exec tmp.importPackagRaw + exec tmp.importDiesRaw + -- questo sotto va fatto solo se ci sono dati da integrare in DiesRaw + exec tmp.importDiesGroupRaw + + select top 10 * FROM tmp.ProductionLogRaw + select * FROM tmp.ClientsRaw + select * FROM tmp.ItemsRaw + select * FROM tmp.PackagRaw + select * FROM tmp.DiesRaw + select * FROM tmp.DiesGroupRaw + + -- Se ci sono record con Item doppi li cancello???? + SELECT CodItem,COUNT(*) as qty + FROM ( SELECT DISTINCT * FROM tmp.ItemsRaw ) AS a + GROUP BY CodItem + having COUNT(*)>1 + + delete from tmp.ItemsRaw + where CodItem IN + ( + SELECT CodItem + FROM ( SELECT DISTINCT * FROM tmp.ItemsRaw ) AS a + GROUP BY CodItem + having COUNT(*)>1 + ) + + + -- ========================================== + -- CARICO DATI IN RAW ( da Char a Tipi corretti ) + -- ========================================== + exec tmp.convertClientsRaw + exec tmp.convertTranspCostRaw + exec tmp.convertItemsRaw + exec tmp.convertProductionLogRaw + exec tmp.convertPackagRaw + exec tmp.convertDiesRaw + + -- necessario se integriamo i dati x i gruppi di matrici con un file + exec tmp.convertDiesGroupRaw + + select top 10 * FROM ext.ProductionLogRaw + select * FROM ext.ClientsRaw + select * FROM ext.ItemsRaw + select * FROM ext.PackagRaw + select * FROM ext.DiesRaw + SELECT * FROM ext.DiesGroupRaw + + -- elimino a mano dato con oltre 68 anni di evento... + select * + --delete + from ext.ProductionLogRaw + where DATEDIFF(YEAR,EventStart,EventEnd)> 10 + + exec ext.stp_mergeAgentsDet + exec ext.stp_mergeClientDet 'ProductionLogRaw' + exec ext.stp_mergeClientDet 'ClientsRaw' + exec ext.stp_mergeTranspCostDet 'TranspCostRaw' + exec ext.stp_mergePlantsDet + exec ext.stp_mergeCost2Plant + exec ext.stp_mergeItemDet 'ItemsRaw' + exec ext.stp_mergePackagDet 'ProductionLogRaw' -- 'PackagRaw' + + -- QUESTE ANDREBBERO ESEGUITO DOPO ext.stp_updateProductionLog prendendo in considerazione un periodo di tempo + -- di tre anno o comunque stabilito a priori predefinito ( configurabile a sistema ) + -- DA VERIFICARE + exec ext.stp_mergePackage2ItemClient 'ProductionLog', @dateFrom, @dateTo + exec ext.stp_mergePackage2Item 'ProductionLog', @dateFrom, @dateTo + exec ext.stp_mergePackage2 'ProductionLog', @dateFrom, @dateTo + + exec ext.stp_mergeDiesDet + -- se ricarico diesgroup... ricarico solo i campi che nel file sono <> '' + exec ext.stp_mergeDiesGroupDet + + exec ext.stp_mergeRawMat + exec ext.stp_updateProductionLog + + ---- aggiorno quota agenti a 0.037 + ----update AgentsDet set quotaperc=0.0374 + + + SELECT DISTINCT dr.CodItem FROM ext.DiesRaw dr LEFT OUTER JOIN ItemDet id ON dr.CodItem = id.CodItem + where id.CodItemGroup is null + + select * from ClientDet + select * from ItemDet + select * from Package2ItemClient + select * from Package2Item + select * from Package2 + select * from PackagDet + select * from DiesGroupDet where EOLLife > 0 + select * from DiesDet + select * from DiesGroupDet + select * from AgentsDet + select * from PlantsDet + select * from Cost2Plant + select * from utilities + select top 100 * from ProductionLog + + --update tmp.ProductionLogRaw + --set + -- okPr = 1 + -- , okDi = 1 + -- , okQM = 1 + -- , okSc = 1 + + select distinct ProcessNum from ProductionLog + + select top 10 * from ext.ProductionLogRaw + + + ---- fix errore packaging + --update tmp.ProductionLogRaw + --SET CodPackag='4' + --where CodPackag LIKE '%4%' and CodPackag <> '4' + --select * from tmp.ProductionLogRaw where CodPackag LIKE '%4%' and CodPackag <> '4' + + SELECT p.CodDies, CodItem, CodClient, CodPackag, p.* FROM ext.ProductionLogRaw AS p + LEFT JOIN dbo.DiesDet AS d ON p.CodDies = d.CodDies + WHERE CodItem IS NULL + + + + -- parte CALCOLI!!! + + select * from QuoteList + + select * from ClientDet where CodClient='05000001048' + + select * from itemdet + where CodItem like '1PT00102%' + + select * from RawMatDet + + + --Q 1312130001 0 05000001048 1PT00102 A 7020 7673,400 1000 CPT NULL NULL NULL NULL + + SELECT --TOP 10 + dd.CodItem, pl.RawMat, dd.CodItem + '-' + pl.RawMat as KeyAM, dd.CodDiesGroup, pl.CodPlant, dd.HoleNum + ,dd.CodItem + '-' + pl.RawMat + '-' + pl.CodPlant + '-' + CAST(dd.HoleNum AS NVARCHAR(19)) as KeyAMIL + ,0 as NumSMED -- numero cambi, da sistemare... + , SUM(QtyOUT) as KgTeorici, SUM(Duration) AS Durata + ,ISNULL(SUM(QtyOUT),0)/ISNULL(SUM(Duration), 1) as ProduttTeo + FROM ProductionLog pl INNER JOIN DiesDet dd ON pl.CodDies=dd.CodDies + WHERE pl.ProcessNum='01' and pl.EventType=1 + GROUP BY dd.CodItem, pl.RawMat, dd.CodDiesGroup, pl.CodPlant, dd.HoleNum + ORDER BY dd.CodItem, pl.RawMat, dd.CodDiesGroup, SUM(QtyOUT) DESC + + -- ========================================== + -- re-insert dei dati di produzione x statistiche + -- ========================================== + exec stp_TPS_upsert @dateFrom, @dateTo + exec stp_TD_upsert @dateFrom , @dateTo +-- exec stp_TI_upsert @dateFrom , @dateTo -- adesso sono già calcolati e inseriti in Package2 / Package2Item + + -- ========================================== + -- salvo nuova revisione dati di produzione... + -- Va messa in ogni procedura di update con 'procedura' e versione anno-mese-giorno + -- ========================================== + INSERT INTO RevHistory + SELECT 'P', ISNULL(MAX(RevNum),0) + 1, GETDATE(), 'Aggiornamento dati di produzione x fase 04 ' + CONVERT(NVARCHAR(20), @dateFrom, 120) + ' --> ' +CONVERT(NVARCHAR(20), @dateTo, 120) + FROM RevHistory + WHERE RevType = 'P' + + + select * from RevHistory + + -- simulazione tempo di calcolo: circa 50/sec + ---- aggiornamento dei dati dell'offerta in oggetto + --DECLARE @tick DATETIME, + -- @idx INT = 100 + --SET @tick = GETDATE() + --WHILE @idx > 0 + --BEGIN + -- EXEC stp_QL_update 'Q', 1312130001, 0 + -- SELECT @idx = @idx - 1 + --END + --SELECT GETDATE() - @tick as tempo + + DECLARE @QuoteType CHAR(1) = 'Q', + @CodQuote BIGINT = 1312130001, + @QuoteRev INT = 0 + + EXEC stp_QL_update @QuoteType, @CodQuote, @QuoteRev + SELECT * FROM QuoteList WHERE QuoteType=@QuoteType AND CodQuote = @CodQuote AND QuoteRev = @QuoteRev + SELECT * FROM QuoteRM WHERE QuoteType=@QuoteType AND CodQuote = @CodQuote AND QuoteRev = @QuoteRev + SELECT * FROM QuoteWorkInt WHERE QuoteType=@QuoteType AND CodQuote = @CodQuote AND QuoteRev = @QuoteRev + SELECT * FROM QuoteWorkExt WHERE QuoteType=@QuoteType AND CodQuote = @CodQuote AND QuoteRev = @QuoteRev + SELECT * FROM QuoteOC WHERE QuoteType=@QuoteType AND CodQuote = @CodQuote AND QuoteRev = @QuoteRev + SELECT * FROM QuoteParam WHERE QuoteType=@QuoteType AND CodQuote = @CodQuote AND QuoteRev = @QuoteRev + + select top 10 * from ItemDet + + SELECT * FROM RawMatDet + + SELECT top 10 * FROM TabProdSc + SELECT top 10 * FROM TabDifett +-- SELECT * FROM TabImbArt +-- SELECT * FROM TabImbGrp + SELECT * FROM PackagDet + SELECT * FROM Package2 + + ---- test gestione selezione CodPackag corretto + --SELECT TOP 5 * FROM Package2ItemClient + --SELECT TOP 5 * FROM Package2Item + --SELECT TOP 5 * FROM Package2 + + SELECT dbo.f_getCodPackag('1EL00005', '05000001048') + --SELECT dbo.f_getCodPackag('1AN00001', '05000000137') + + + END GO PRINT N'Creating [dbo].[stp_QL_fullDataUpdate]...'; @@ -11279,3021 +14441,56 @@ END RETURN GO -PRINT N'Creating [dbo].[stp_QL_fullDataSearch]...'; +PRINT N'Creating [dbo].[stp_QLF_UpdQState]...'; GO + -- ============================================= --- STORED PROCEDURE stp_QL_fullDataSearch --- --- Author: Steamware --- Mod date: 2014.02.11 --- Description: Recupera tutti i dati dalle tab QuoteList x avere schema con ricerca x cliente, item, materiale +-- Author: Steamware - S.E.L. +-- Create date: 2014.04.16 +-- Description: update di un record in QL (Full) e poi aggiorna a cascata -- ============================================= -CREATE PROCEDURE [dbo].[stp_QL_fullDataSearch] +CREATE PROCEDURE [dbo].[stp_QLF_UpdQState] ( - @CodClient NVARCHAR(50) = '' - , @CodItem NVARCHAR(50) = '' - , @RawMat NVARCHAR(50) = '' - , @DataMin DATETIME - , @DataMax DATETIME - , @qtaMin INT = 0 - , @qtaMax INT = 999999 - , @QuoteType CHAR(1) = '*' - , @IdxQState INT = '-1' - , @search NVARCHAR(250) = '*' + @Original_QuoteType CHAR(1) = 'Q', + @Original_CodQuote BIGINT = 0, + @Original_QuoteRev INT = 0, + @IdxQState INT ) AS -SET NOCOUNT ON --- cte x selezionare solo ultime revisioni... -;WITH myCte AS -( - SELECT QuoteType, CodQuote, MAX(QuoteRev) AS QuoteRev - FROM QuoteList - GROUP BY QuoteType, CodQuote -), -qfq_filt AS -( - SELECT * - FROM v_QuoteFull_Q - WHERE ClientName LIKE CASE WHEN @search <> '*' THEN '%'+@search+'%' ELSE ClientName END - OR RawMat LIKE CASE WHEN @search <> '*' THEN '%'+@search+'%' ELSE RawMat END - OR CodItem LIKE CASE WHEN @search <> '*' THEN '%'+@search+'%' ELSE CodItem END - OR CONVERT(NVARCHAR(30), CodQuote) LIKE CASE WHEN @search <> '*' THEN '%'+@search+'%' ELSE CONVERT(NVARCHAR(30), CodQuote) END -) --- calcolo con aggiunta campi sommati... -SELECT vq.* -FROM qfq_filt vq - INNER JOIN myCte mc ON vq.QuoteType = mc.QuoteType AND vq.CodQuote = mc.CodQuote AND vq.QuoteRev = mc.QuoteRev -WHERE vq.CodClient = CASE WHEN ISNULL(@CodClient,'') = '' THEN vq.CodClient ELSE @CodClient END - AND vq.CodItem = CASE WHEN ISNULL(@CodItem,'') = '' THEN vq.CodItem ELSE @CodItem END - AND vq.RawMat = CASE WHEN ISNULL(@RawMat,'') = '' THEN vq.RawMat ELSE @RawMat END - AND vq.CodQuote BETWEEN CONVERT(NVARCHAR(30), @DataMin, 12)*10000 AND (CONVERT(NVARCHAR(30), @DataMax, 12) +1 )*10000 - AND vq.BatchQty BETWEEN @qtaMin AND @qtaMax - AND vq.QuoteType = CASE WHEN @QuoteType = '*' THEN vq.QuoteType ELSE @QuoteType END - AND vq.IdxQState = CASE WHEN @IdxQState = -1 THEN vq.IdxQState ELSE @IdxQState END +SET XACT_ABORT ON; +BEGIN TRAN --- AND vq.ClientName LIKE '%{0}%' OR RawMat LIKE '%{0}%' OR CodItem LIKE '%{0}%' OR CONVERT(CodQuote, 'System.String') LIKE '%{0}%' + -- aggiorno valori QuoteList! + UPDATE QuoteList + SET IdxQState = @IdxQState + WHERE QuoteType = @Original_QuoteType + AND CodQuote = @Original_CodQuote + AND QuoteRev = @Original_QuoteRev + + + -- update dei valori calcolati! + EXEC stp_QL_fullDataUpdate @Original_QuoteType + ,@Original_CodQuote + ,@Original_QuoteRev + ,'Y' + +COMMIT TRAN -ORDER BY CodQuote DESC +-- seleziono intera riga! + +SELECT * +FROM v_QuoteFull_Q +WHERE QuoteType = @Original_QuoteType + AND CodQuote = @Original_CodQuote + AND QuoteRev = @Original_QuoteRev + RETURN GO -PRINT N'Creating [dbo].[stp_QL_fullData]...'; - - -GO --- ============================================= --- STORED PROCEDURE stp_QL_fullData --- --- Author: Steamware --- Create date: 2014.01.27 --- Description: Recupera tutti i dati dalle tab QuoteList x avere schema x report/gestioen web --- ============================================= -CREATE PROCEDURE [dbo].[stp_QL_fullData] ( - @QuoteType CHAR(1) = 'Q' - , @CodQuote BIGINT = 0 - , @QuoteRev INT = 0 - , @DoUpdate CHAR(1) = 'N' -- se si debba fare ricalcolo Y/N - ) -AS -SET NOCOUNT ON - -IF(@QuoteType <> '' AND @DoUpdate = 'N') -BEGIN - EXEC stp_QL_fullDataUpdate @QuoteType - , @CodQuote - , @QuoteRev - , @DoUpdate -END - ----- calcolo con aggiunta campi sommati... ---SELECT * --- , FVC + RawMatFullCost AS P_FVC --- , FC4UG01 + OH4UG01 AS CPS --- , FC4UG01 + OH4UG01 + FVC + RawMatFullCost AS P_CPS --- , FC4UG04 + FVC + RawMatFullCost AS P_FC4UG04 --- , FVC + FC4UG01 + OH4UG01 + FC4UG04 AS FullCost --- , FVC + FC4UG01 + OH4UG01 + FC4UG04 + RawMatFullCost AS P_FullCost --- , Charge * (FVC + FC4UG01 + OH4UG01 + FC4UG04) AS MinPrice --- , Charge * (FVC + FC4UG01 + OH4UG01 + FC4UG04) + RawMatFullCost AS P_MinPrice --- , PriceOff + RawMatFullCost AS P_PriceOff --- , (FVC + FC4UG01 + OH4UG01 + FC4UG04) - PriceOff AS NetMar --- , (PriceOff - FVC) / (FC4UG01 + OH4UG01 + FC4UG04) AS FCShield --- , (PRMWeight - Ptare) * (PriceOff + RawMatFullCost) / Pweight AS PckSur ---FROM QuoteFull_Q ---WHERE QuoteType = @QuoteType --- AND CodQuote = @CodQuote --- AND QuoteRev = @QuoteRev - --- calcolo con aggiunta campi sommati... -SELECT * -FROM v_QuoteFull_Q -WHERE QuoteType = @QuoteType - AND CodQuote = @CodQuote - AND QuoteRev = @QuoteRev - -RETURN -GO -PRINT N'Creating [dbo].[stp_prt_dsQuoteFull_byChiave]...'; - - -GO --- ============================================= --- STORED PROCEDURE stp_prt_dsQuoteFull_Q_Data --- --- Author: Steamware --- Mod date: 2014.05.23 --- Description: dataset stp_prt_dsQuoteFull_Q_Data per reportOffers --- ============================================= -CREATE PROCEDURE [dbo].[stp_prt_dsQuoteFull_byChiave] -( - @Chiave AS NVARCHAR(50) = '' -) -AS -BEGIN - SET NOCOUNT ON; - -/* - Se decidiamo di separare le traduzioni dei lemmi tra Applicazione e stampa basta usare la prima cte come insert - nella tabella vocabolario e poi sostituire la cte con la tabella vocabolario stessa -*/ - -SELECT - -- chiave - Vers - , QuoteType - , CodQuote - , QuoteRev - -- valori - , IdxQState - , CodClient - , ClientName - , CodItem - , CodItemGroup - , RawMat - , UnitWeight - , BatchQty - , CodInco - , TranspZone - , KeyAM - , Note - , PriceOff - , CodClientAssoc - , ClientNameAssoc - , ItemDescr - , CodifProfilo - , ClasseMerc - , TipoDies - , CodDiesGroup - , DiamDies - , HoleNumDies - , DiesPrice - , DiesExpLife - , DiesEOLife - , DiesByClass - , NumDiesInList - , NumDiesExaust - , CodPlant - , KeyAMIL - , KgTeo - , NumSMED - , QuotaMan - , PRMWeight - , PWeight - , PTare - , LivPackage - , LivPackageDett - , RawMatCost - , RawMatExtraCost - , RawMatFullCost - , CodPackag - , PkgDesc - , FSR - , ProvvCost - , EECost - , GasCost - , DiesCost - , PackCost - , TranspCost - , SellCost01 - , RefCost01 - , SellCost04 - , RefCost04 - , WSR01 - , MSR01 - , NetProd01 - , FC4UG01 - , VC4UG01 - , OH4UG01 - , SC4UG01 - , DSR - , NetProd04 - , FC4UG04 - , VC4UG04 - , FVC - , Charge - , P_FVC - , CPS - , P_CPS - , P_FC4UG04 - , FullCost - , P_FullCost - , MinPrice - , P_MinPrice - , P_PriceOff - , NetMar - , FCShield - , PckSur - , valid - , errorScore - , DiesPrice_sim - , SamplePrice - , DiesFullCost - , DiesPriceClientQuote - , DiesTecLife - , DiesCommLife - , MonthSalesPrev - , SalesPrevCost - , DiesFinCost - , ClientQuoteReven - , ExtraDiscountDies - , WSR01_sim - , MSR01_sim - , NetProd01_sim - , NetProd04_sim - , DSR_sim - , NetMar_sim - , FCShield_sim - , MinPrice_sim - , P_MinPrice_sim - -FROM dbo.v_QuoteFull_Q -WHERE QuoteType = dbo.f_prt_getParameter ( 'QuoteType', @Chiave , '&') - AND CodQuote = dbo.f_prt_getParameter ( 'CodQuote' , @Chiave , '&') - AND QuoteRev = dbo.f_prt_getParameter ( 'QuoteRev' , @Chiave +'&' , '&') - - -END -GO -PRINT N'Creating [dbo].[stp_prt_dsQuoteFull_Q_Data]...'; - - -GO --- ============================================= --- STORED PROCEDURE stp_prt_dsQuoteFull_Q_Data --- --- Author: Steamware --- Mod date: 2014.04.28 --- Description: dataset stp_prt_dsQuoteFull_Q_Data per reportOffers --- ============================================= -CREATE PROCEDURE [dbo].[stp_prt_dsQuoteFull_Q_Data] - @Ticket AS INT = 1 -AS -BEGIN - SET NOCOUNT ON; - -/* - Se decidiamo di separare le traduzioni dei lemmi tra Applicazione e stampa basta usare la prima cte come insert - nella tabella vocabolario e poi sostituire la cte con la tabella vocabolario stessa -*/ - -SELECT - -- chiave - Vers - , QuoteType - , CodQuote - , QuoteRev - -- valori - , IdxQState - , CodClient - , ClientName - , CodItem - , CodItemGroup - , RawMat - , UnitWeight - , BatchQty - , CodInco - , TranspZone - , KeyAM - , Note - , PriceOff - , CodClientAssoc - , ClientNameAssoc - , ItemDescr - , CodifProfilo - , ClasseMerc - , TipoDies - , CodDiesGroup - , DiamDies - , HoleNumDies - , DiesPrice - , DiesExpLife - , DiesEOLife - , DiesByClass - , NumDiesInList - , NumDiesExaust - , CodPlant - , KeyAMIL - , KgTeo - , NumSMED - , QuotaMan - , PRMWeight - , PWeight - , PTare - , LivPackage - , LivPackageDett - , RawMatCost - , RawMatExtraCost - , RawMatFullCost - , CodPackag - , PkgDesc - , FSR - , ProvvCost - , EECost - , GasCost - , DiesCost - , PackCost - , TranspCost - , SellCost01 - , RefCost01 - , SellCost04 - , RefCost04 - , WSR01 - , MSR01 - , NetProd01 - , FC4UG01 - , VC4UG01 - , OH4UG01 - , SC4UG01 - , DSR - , NetProd04 - , FC4UG04 - , VC4UG04 - , FVC - , Charge - , P_FVC - , CPS - , P_CPS - , P_FC4UG04 - , FullCost - , P_FullCost - , MinPrice - , P_MinPrice - , P_PriceOff - , NetMar - , FCShield - , PckSur - , valid - , errorScore - , DiesPrice_sim - , SamplePrice - , DiesFullCost - , DiesPriceClientQuote - , DiesTecLife - , DiesCommLife - , MonthSalesPrev - , SalesPrevCost - , DiesFinCost - , ClientQuoteReven - , ExtraDiscountDies - , WSR01_sim - , MSR01_sim - , NetProd01_sim - , NetProd04_sim - , DSR_sim - , NetMar_sim - , FCShield_sim - , MinPrice_sim - , P_MinPrice_sim - -FROM dbo.v_QuoteFull_Q AS qf -INNER JOIN dbo.ReportPrintTicket AS prt - ON qf.QuoteType = dbo.f_prt_getParameter ( 'QuoteType', prt.Chiave , '&') - AND qf.CodQuote = dbo.f_prt_getParameter ( 'CodQuote' , prt.Chiave , '&') - AND qf.QuoteRev = dbo.f_prt_getParameter ( 'QuoteRev' , prt.Chiave +'&' , '&') - AND prt.Ticket = @Ticket - - -/* OLD VERSION -WITH Cte AS -- carico i lemmi dei campi che mi servono per la stampa -( -SELECT Lingua, - 'prt1_'+ Lemma AS Lemma, - CASE WHEN @Lingua = 'LB' - THEN Lemma - ELSE Traduzione END - AS Traduzione -- il lemma corrisponde ai campi -FROM Vocabolario -WHERE Lemma IN ( 'ClientName' - ,'CodClient' - ,'CodItem' - ,'ItemDescr' - ,'CodifProfilo' - ,'ClasseMerc' - ,'CodClientAssoc' - ,'ClientNameAssoc' - ,'CodItemGroup' - ,'UnitWeight' - ,'RawMat' - ,'RawMatCost' - ,'RawMatExtraCost' - ,'RawMatFullCost' - ,'RawMatCost' - ,'RawMatExtraCost' - ,'BatchQty' - ,'ProvvCost' - ,'CodInco','TipoDies' - ,'CodDiesGroup' - ,'DiamDies' - ,'DiesPrice' - ,'HoleNumDies' - ,'DiesExpLife' - ,'NumDiesInList' - ,'DiesEOLife' - ,'NumDiesExaust' - ,'CodPlant' - ,'HoleNumDies' - ,'KeyAMIL' - ,'KgTeo' - ,'WSR01' - ,'NumSMED' - ,'MSR01' - ,'NetProd01' - ,'CodPackag' - ,'NetProd04' - ,'QuotaMan' - ,'LivPackage' - ,'LivPackageDet' - ,'PkgDesc' - ,'PRMWeight' - ,'DSR' - ,'PWeight' - ,'PTare' - ,'FSR' - ,'RefCost01' - ,'SellCost01' - ,'EECost' - ,'GasCost' - ,'DiesCost' - ,'RefCost04' - ,'SellCost04' - ,'PackCost' - ,'ProvvCost' - ,'TranspCost' - ,'VC4UG01' - ,'VC4UG04' - ,'SC4UG01' - ,'FVC' - ,'P_FVC' - ,'CPS' - ,'P_CPS' - ,'FC4UG04' - ,'P_FC4UG04' - ,'FullCost' - ,'P_FullCost' - ,'MinPrice' - ,'P_MinPrice' - ,'Charge' - ,'PriceOff' - ,'P_PriceOff' - ,'NetMar' - ,'FCShield' - ,'PckSur' - ) -), -ctepvt AS ( -- faccio pivot dei lemmi e loro traduzioni - SELECT - Lingua, - prt1_BatchQty, - prt1_Charge, - prt1_ClasseMerc, - prt1_ClientName, - prt1_ClientNameAssoc, - prt1_CodClient, - prt1_CodClientAssoc, - prt1_CodDiesGroup, - prt1_CodifProfilo, - prt1_CodInco, - prt1_CodItem, - prt1_CodItemGroup, - prt1_CodPackag, - prt1_CodPlant, - prt1_CPS, - prt1_DiamDies, - prt1_DiesCost, - prt1_DiesEOLife, - prt1_DiesExpLife, - prt1_DiesPrice, - prt1_DSR, - prt1_EECost, - prt1_FC4UG04, - prt1_FCShield, - prt1_FSR, - prt1_FullCost, - prt1_FVC, - prt1_GasCost, - prt1_HoleNumDies, - prt1_ItemDescr, - prt1_KeyAMIL, - prt1_KgTeo, - prt1_LivPackage, - prt1_LivPackageDet, - prt1_MinPrice, - prt1_MSR01, - prt1_NetMar, - prt1_NetProd01, - prt1_NetProd04, - prt1_NumDiesExaust, - prt1_NumDiesInList, - prt1_NumSMED, - prt1_P_CPS, - prt1_P_FC4UG04, - prt1_P_FullCost, - prt1_P_FVC, - prt1_P_MinPrice, - prt1_P_PriceOff, - prt1_PackCost, - prt1_PckSur, - prt1_PkgDesc, - prt1_PriceOff, - prt1_PRMWeight, - prt1_ProvvCost, - prt1_PTare, - prt1_PWeight, - prt1_QuotaMan, - prt1_RawMat, - prt1_RawMatCost, - prt1_RawMatExtraCost, - prt1_RawMatFullCost, - prt1_RefCost01, - prt1_RefCost04, - prt1_SC4UG01, - prt1_SellCost01, - prt1_SellCost04, - prt1_TipoDies, - prt1_TranspCost, - prt1_UnitWeight, - prt1_VC4UG01, - prt1_VC4UG04, - prt1_WSR01 - FROM ( SELECT * FROM cte - WHERE Lemma Like 'prt1%' ) AS tab -- al momento non serve ma se mettiamo i lemmi separati con prt1_ in vocabolario - PIVOT ( MIN ( Traduzione ) -- possiamo semplicemente sostituire la tab vocabolario alla cte - FOR Lemma IN ( - prt1_BatchQty, - prt1_Charge, - prt1_ClasseMerc, - prt1_ClientName, - prt1_ClientNameAssoc, - prt1_CodClient, - prt1_CodClientAssoc, - prt1_CodDiesGroup, - prt1_CodifProfilo, - prt1_CodInco, - prt1_CodItem, - prt1_CodItemGroup, - prt1_CodPackag, - prt1_CodPlant, - prt1_CPS, - prt1_DiamDies, - prt1_DiesCost, - prt1_DiesEOLife, - prt1_DiesExpLife, - prt1_DiesPrice, - prt1_DSR, - prt1_EECost, - prt1_FC4UG04, - prt1_FCShield, - prt1_FSR, - prt1_FullCost, - prt1_FVC, - prt1_GasCost, - prt1_HoleNumDies, - prt1_ItemDescr, - prt1_KeyAMIL, - prt1_KgTeo, - prt1_LivPackage, - prt1_LivPackageDet, - prt1_MinPrice, - prt1_MSR01, - prt1_NetMar, - prt1_NetProd01, - prt1_NetProd04, - prt1_NumDiesExaust, - prt1_NumDiesInList, - prt1_NumSMED, - prt1_P_CPS, - prt1_P_FC4UG04, - prt1_P_FullCost, - prt1_P_FVC, - prt1_P_MinPrice, - prt1_P_PriceOff, - prt1_PackCost, - prt1_PckSur, - prt1_PkgDesc, - prt1_PriceOff, - prt1_PRMWeight, - prt1_ProvvCost, - prt1_PTare, - prt1_PWeight, - prt1_QuotaMan, - prt1_RawMat, - prt1_RawMatCost, - prt1_RawMatExtraCost, - prt1_RawMatFullCost, - prt1_RefCost01, - prt1_RefCost04, - prt1_SC4UG01, - prt1_SellCost01, - prt1_SellCost04, - prt1_TipoDies, - prt1_TranspCost, - prt1_UnitWeight, - prt1_VC4UG01, - prt1_VC4UG04, - prt1_WSR01 ) ) AS pvt -) -SELECT - -- chiave - Vers - ,QuoteType - ,CodQuote - ,QuoteRev - -- valori - ,BatchQty - ,Charge - ,ClasseMerc - ,ClientName - ,ClientNameAssoc - ,CodClient - ,CodClientAssoc - ,CodDiesGroup - ,CodifProfilo - ,CodInco - ,CodItem - ,CodItemGroup - ,CodPackag - ,CodPlant - ,CPS - ,DiamDies - ,DiesCost - ,DiesEOLife - ,DiesExpLife - ,DiesPrice - ,DSR - ,EECost - ,FC4UG01 - ,FC4UG04 - ,FCShield - ,FSR - ,FullCost - ,FVC - ,GasCost - ,HoleNumDies - ,IdxQState - ,ItemDescr - ,KeyAM - ,KeyAMIL - ,KgTeo - ,LivPackage - ,LivPackageDett - ,MinPrice - ,MSR01 - ,NetMar - ,NetProd01 - ,NetProd04 - ,Note - ,NumDiesExaust - ,NumDiesInList - ,NumSMED - ,OH4UG01 - ,P_CPS - ,P_FC4UG04 - ,P_FullCost - ,P_FVC - ,P_MinPrice - ,P_PriceOff - ,PackCost - ,PckSur - ,PkgDesc - ,PriceOff - ,PRMWeight - ,ProvvCost - ,PTare - ,PWeight - ,QuotaMan - ,RawMat - ,RawMatCost - ,RawMatExtraCost - ,RawMatFullCost - ,RefCost01 - ,RefCost04 - ,SC4UG01 - ,SellCost01 - ,SellCost04 - ,TipoDies - ,TranspCost - ,UnitWeight - ,VC4UG01 - ,VC4UG04 - ,WSR01 - -- lemmi x traduzione etichette campi - ,ctepvt.* -FROM dbo.v_QuoteFull_Q -INNER JOIN ctepvt --- ON ctepvt.Lingua = 'EN' -- qui va messa la variabile della lingua di stampa --- ON ctepvt.Lingua = @Lingua -- 'EN' -- qui va messa la variabile della lingua di stampa -ON ctepvt.Lingua = CASE WHEN @Lingua = 'LB' -- se richiede le Label dei campi estraggo i lemmi in inglese - THEN 'EN' - ELSE @Lingua - END -*/ - -END -GO -PRINT N'Creating [tmp].[importItemsRaw]...'; - - -GO - - --- ============================================= --- Author: S.E. Locatelli --- Create date: 2013.11.29 --- Description: Procedura per import dati in tabella tmp da file csv --- ============================================= -CREATE PROCEDURE [tmp].[importItemsRaw] -( - @fileType NVARCHAR(50) = 'ItemsRaw' -) -AS -BEGIN - SET NOCOUNT ON; - - -- per Giancarlo: rendere parametrico con esecuzione sql x poter inserire nei parametri il separatore ed il resto? http://www.sqlteam.com/article/using-bulk-insert-to-load-a-text-file - - IF @fileType = 'ItemsRaw' - BEGIN - -- svuoto tabella temp - TRUNCATE TABLE tmp.ItemsRaw - - -- carico dati bulk! - BULK INSERT tmp.ItemsRaw - FROM 'e:\test\ItemsRaw.csv' - WITH (FIELDTERMINATOR = ';', ROWTERMINATOR = '\n', FIRSTROW = 2, ERRORFILE = 'e:\test\errorItems.log') - --WITH (FIELDTERMINATOR = ';', ROWTERMINATOR = '\n', FIRSTROW = 2, ERRORFILE = 'e:\test\errorItems.log', CODEPAGE = '1252') - - SELECT COUNT(*) as RecordsIn FROM tmp.ItemsRaw - - END - -END -GO -PRINT N'Creating [tmp].[convertTranspCostRaw]...'; - - -GO - - --- ============================================= --- Author: S.E. Locatelli --- Create date: 2013.11.28 --- Description: Procedura per conversioen e tipizzazione dati da tmp a ext x TranspCostRaw --- ============================================= -CREATE PROCEDURE [tmp].[convertTranspCostRaw] -( - @fileType NVARCHAR(50) = 'TranspCostRaw' -) -AS -BEGIN - SET NOCOUNT ON; - - -- per Giancarlo: rendere parametrico con esecuzione sql x poter inserire nei parametri il separatore ed il resto? http://www.sqlteam.com/article/using-bulk-insert-to-load-a-text-file - - IF @fileType = 'TranspCostRaw' - BEGIN - -- svuoto tabella temp - TRUNCATE TABLE ext.TranspCostRaw - - -- inserisco con cast valori... - INSERT ext.TranspCostRaw - WITH (TABLOCK) - (TranspZone, TranspCost) - SELECT - TranspZone, - MAX(CAST( CAST( REPLACE( '0' + TranspCost,',','.' )AS float )AS decimal( 18,9 ))) AS TranspCost - FROM tmp.TranspCostRaw - GROUP BY TranspZone - - SELECT COUNT(*) as RecordsIn FROM ext.TranspCostRaw - END - -END -GO -PRINT N'Creating [tmp].[importDiesGroupRaw]...'; - - -GO - - --- ============================================= --- Author: S.E. Locatelli --- Create date: 2013.12.02 --- Description: Procedura per import dati in tabella tmp da file csv --- ============================================= -CREATE PROCEDURE [tmp].[importDiesGroupRaw] -( - @fileType NVARCHAR(50) = 'DiesGroupRaw' -) -AS -BEGIN - SET NOCOUNT ON; - - -- per Giancarlo: rendere parametrico con esecuzione sql x poter inserire nei parametri il separatore ed il resto? http://www.sqlteam.com/article/using-bulk-insert-to-load-a-text-file - - IF @fileType = 'DiesGroupRaw' - BEGIN - -- svuoto tabella temp - TRUNCATE TABLE tmp.DiesGroupRaw - - -- carico dati bulk! - BULK INSERT tmp.DiesGroupRaw - FROM 'e:\test\DiesGroupRaw.csv' - WITH (FIELDTERMINATOR = ';', ROWTERMINATOR = '\n', FIRSTROW = 2, ERRORFILE = 'e:\test\errorDiesGroup.log') - --WITH (FIELDTERMINATOR = ';', ROWTERMINATOR = '\n', FIRSTROW = 2, ERRORFILE = 'e:\test\errorDiesGroup.log', CODEPAGE = '1252') - - SELECT COUNT(*) as RecordsIn FROM tmp.DiesGroupRaw - - END - -END -GO -PRINT N'Creating [tmp].[importTranspCostRaw]...'; - - -GO - - --- ============================================= --- Author: S.E. Locatelli --- Create date: 2014.01.16 --- Description: Procedura per import dati in tabella tmp da file csv --- ============================================= -create PROCEDURE [tmp].[importTranspCostRaw] -( - @fileType NVARCHAR(50) = 'TranspCostRaw' -) -AS -BEGIN - SET NOCOUNT ON; - - -- per Giancarlo: rendere parametrico con esecuzione sql x poter inserire nei parametri il separatore ed il resto? http://www.sqlteam.com/article/using-bulk-insert-to-load-a-text-file - - IF @fileType = 'TranspCostRaw' - BEGIN - -- svuoto tabella temp - TRUNCATE TABLE tmp.TranspCostRaw - - -- carico dati bulk! - BULK INSERT tmp.TranspCostRaw - FROM 'e:\test\TranspCostRaw.csv' - WITH (FIELDTERMINATOR = ';', ROWTERMINATOR = '\n', FIRSTROW = 2, ERRORFILE = 'e:\test\errorTranspCost.log') - --WITH (FIELDTERMINATOR = ';', ROWTERMINATOR = '\n', FIRSTROW = 2, ERRORFILE = 'e:\test\errorTranspCost.log', CODEPAGE = '1252') - - SELECT COUNT(*) as RecordsIn FROM tmp.TranspCostRaw - - END - -END -GO -PRINT N'Creating [tmp].[convertDiesRaw]...'; - - -GO - - --- ============================================= --- Author: S.E. Locatelli --- Create date: 2013.12.02 --- Description: Procedura per conversione e tipizzazione dati da tmp a ext x DiesRaw --- ============================================= -CREATE PROCEDURE [tmp].[convertDiesRaw] -( - @fileType NVARCHAR(50) = 'DiesRaw' -) -AS -BEGIN - SET NOCOUNT ON; - - -- per Giancarlo: rendere parametrico con esecuzione sql x poter inserire nei parametri il separatore ed il resto? http://www.sqlteam.com/article/using-bulk-insert-to-load-a-text-file - - IF @fileType = 'DiesRaw' - BEGIN - -- svuoto tabella temp - TRUNCATE TABLE ext.DiesRaw - - -- inserisco con cast valori... - INSERT ext.DiesRaw - WITH (TABLOCK) - ( CodDies, HoleNum, CodItem, CodDiesGroup, Price, ExpLife, ActLife, Active ) - SELECT - CodDies, - CAST(ISNULL(HoleNum,0) AS INT) AS HoleNum, - CodItem, - CodDiesGroup, - CAST( CAST( REPLACE( '0' + Price,',','.' )AS float )AS decimal( 9,3 )) AS Price, - CAST( CAST( REPLACE( '0' + ExpLife,',','.' )AS float )AS decimal( 9,2 )) AS ExpLife, - CAST( CAST( REPLACE( '0' + ActLife,',','.' )AS float )AS decimal( 9,2 )) AS ActLife, - CAST(ISNULL(Active,0) AS INT) AS Active - FROM tmp.DiesRaw; - - SELECT COUNT(*) as RecordsIn FROM ext.DiesRaw - END - -END -GO -PRINT N'Creating [tmp].[convertClientsRaw]...'; - - -GO - - --- ============================================= --- Author: S.E. Locatelli --- Create date: 2013.11.28 --- Description: Procedura per conversioen e tipizzazione dati da tmp a ext x ClientsRaw --- ============================================= -CREATE PROCEDURE [tmp].[convertClientsRaw] -( - @fileType NVARCHAR(50) = 'ClientsRaw' -) -AS -BEGIN - SET NOCOUNT ON; - - -- per Giancarlo: rendere parametrico con esecuzione sql x poter inserire nei parametri il separatore ed il resto? http://www.sqlteam.com/article/using-bulk-insert-to-load-a-text-file - - IF @fileType = 'ClientsRaw' - BEGIN - -- svuoto tabella temp - TRUNCATE TABLE ext.ClientsRaw - - -- inserisco con cast valori... - INSERT ext.ClientsRaw - WITH (TABLOCK) - ( CodClient, ClientName, CodAg, ZipCode, City, [State], Nation, TranspZone) - SELECT - CodClient, - ClientName, - CodAg, - ZipCode, - City, - [State], - Nation, - TranspZone - FROM tmp.ClientsRaw; - - SELECT COUNT(*) as RecordsIn FROM ext.ClientsRaw - END - -END -GO -PRINT N'Creating [tmp].[importDiesRaw]...'; - - -GO - - --- ============================================= --- Author: S.E. Locatelli --- Create date: 2013.12.02 --- Description: Procedura per import dati in tabella tmp da file csv --- ============================================= -create PROCEDURE [tmp].[importDiesRaw] -( - @fileType NVARCHAR(50) = 'DiesRaw' -) -AS -BEGIN - SET NOCOUNT ON; - - -- per Giancarlo: rendere parametrico con esecuzione sql x poter inserire nei parametri il separatore ed il resto? http://www.sqlteam.com/article/using-bulk-insert-to-load-a-text-file - - IF @fileType = 'DiesRaw' - BEGIN - -- svuoto tabella temp - TRUNCATE TABLE tmp.DiesRaw - - -- carico dati bulk! - BULK INSERT tmp.DiesRaw - FROM 'e:\test\DiesRaw.csv' - WITH (FIELDTERMINATOR = ';', ROWTERMINATOR = '\n', FIRSTROW = 2, ERRORFILE = 'e:\test\errorDies.log') - --WITH (FIELDTERMINATOR = ';', ROWTERMINATOR = '\n', FIRSTROW = 2, ERRORFILE = 'e:\test\errorDies.log', CODEPAGE = '1252') - - SELECT COUNT(*) as RecordsIn FROM tmp.DiesRaw - - END - -END -GO -PRINT N'Creating [tmp].[convertItemsRaw]...'; - - -GO - - --- ============================================= --- Author: S.E. Locatelli --- Create date: 2013.11.28 --- Description: Procedura per conversioen e tipizzazione dati da tmp a ext x ItemsRaw --- ============================================= -CREATE PROCEDURE [tmp].[convertItemsRaw] -( - @fileType NVARCHAR(50) = 'ItemsRaw' -) -AS -BEGIN - SET NOCOUNT ON; - - -- per Giancarlo: rendere parametrico con esecuzione sql x poter inserire nei parametri il separatore ed il resto? http://www.sqlteam.com/article/using-bulk-insert-to-load-a-text-file - - IF @fileType = 'ItemsRaw' - BEGIN - -- svuoto tabella temp - TRUNCATE TABLE ext.ItemsRaw - - -- inserisco con cast valori... - INSERT ext.ItemsRaw - WITH (TABLOCK) - ( CodItem, ItemDescr, UnitWeight, CodPlant, CodItemGroup, Class01, Class02, Class03, Class04, Class05 ) - SELECT DISTINCT - CodItem, - ItemDescr, - CAST( CAST( REPLACE( '0' + UnitWeight,',','.' )AS float )AS decimal( 9,3 )) AS UnitWeight, - CodPlant, - CodItemGroup, - Class01, - Class02, - Class03, - Class04, - Class05 - FROM tmp.ItemsRaw; - - SELECT COUNT(*) as RecordsIn FROM ext.ItemsRaw - END - -END -GO -PRINT N'Creating [tmp].[convertDiesGroupRaw]...'; - - -GO - - - --- ============================================= --- Author: S.E. Locatelli --- Create date: 2014.01.08 --- Description: Procedura per conversione e tipizzazione dati da tmp a ext x DiesGroupRaw --- ============================================= -CREATE PROCEDURE [tmp].[convertDiesGroupRaw] -( - @fileType NVARCHAR(50) = 'DiesGroupRaw' -) -AS -BEGIN - SET NOCOUNT ON; - - -- per Giancarlo: rendere parametrico con esecuzione sql x poter inserire nei parametri il separatore ed il resto? http://www.sqlteam.com/article/using-bulk-insert-to-load-a-text-file - - IF @fileType = 'DiesGroupRaw' - BEGIN - -- svuoto tabella temp - TRUNCATE TABLE ext.DiesGroupRaw - - -- inserisco con cast valori... - INSERT ext.DiesGroupRaw - WITH (TABLOCK) - ( CodDiesGroup, Price, QtyTot, QtyEOL, ExpLife, EOLLife) - SELECT - CodDiesGroup, - CAST( CAST( REPLACE( '0' + REPLACE(Price,'.',''),',','.' ) AS float )AS decimal( 9,3 )) AS Price, - CAST(ISNULL(QtyTot,0) AS INT) AS QtyTot, - CAST(ISNULL(QtyEOL,0) AS INT) AS QtyEOL, - CAST( CAST( REPLACE( '0' + REPLACE(ExpLife,'.',''),',','.' ) AS float )AS decimal( 9,2 )) AS ExpLife, - CAST( CAST( REPLACE( '0' + REPLACE(EOLLife,'.',''),',','.' ) AS float )AS decimal( 9,2 )) AS EOLLife - FROM tmp.DiesGroupRaw; - - SELECT COUNT(*) as RecordsIn FROM ext.DiesGroupRaw - END - -END -GO -PRINT N'Creating [tmp].[convertPackagRaw]...'; - - -GO - - --- ============================================= --- Author: S.E. Locatelli --- Create date: 2013.11.29 --- Description: Procedura per conversioen e tipizzazione dati da tmp a ext x PackagRaw --- ============================================= -CREATE PROCEDURE [tmp].[convertPackagRaw] -( - @fileType NVARCHAR(50) = 'PackagRaw' -) -AS -BEGIN - SET NOCOUNT ON; - - -- per Giancarlo: rendere parametrico con esecuzione sql x poter inserire nei parametri il separatore ed il resto? http://www.sqlteam.com/article/using-bulk-insert-to-load-a-text-file - - IF @fileType = 'PackagRaw' - BEGIN - -- svuoto tabella temp - TRUNCATE TABLE ext.PackagRaw - - -- inserisco con cast valori... - INSERT ext.PackagRaw - WITH (TABLOCK) - ( CodPackag, PackagDesc, RMCost, RMWeight, Tare, FullWeight ) - SELECT - CodPackag, - PackagDesc, - CAST( CAST( REPLACE( '0' + RMCost,',','.' )AS float )AS decimal( 9,3 )) AS RMCost, - CAST( CAST( REPLACE( '0' + RMWeight,',','.' )AS float )AS decimal( 9,4 )) AS RMWeight, - CAST( CAST( REPLACE( '0' + Tare,',','.' )AS float )AS decimal( 9,4 )) AS Tare, - CAST( CAST( REPLACE( '0' + FullWeight,',','.' )AS float )AS decimal( 9,4 )) AS FullWeight - FROM tmp.PackagRaw; - - SELECT COUNT(*) as RecordsIn FROM ext.PackagRaw - END - -END -GO -PRINT N'Creating [tmp].[importPackagRaw]...'; - - -GO - - --- ============================================= --- Author: S.E. Locatelli --- Create date: 2013.11.29 --- Description: Procedura per import dati in tabella tmp da file csv --- ============================================= -create PROCEDURE [tmp].[importPackagRaw] -( - @fileType NVARCHAR(50) = 'PackagRaw' -) -AS -BEGIN - SET NOCOUNT ON; - - -- per Giancarlo: rendere parametrico con esecuzione sql x poter inserire nei parametri il separatore ed il resto? http://www.sqlteam.com/article/using-bulk-insert-to-load-a-text-file - - IF @fileType = 'PackagRaw' - BEGIN - -- svuoto tabella temp - TRUNCATE TABLE tmp.PackagRaw - - -- carico dati bulk! - BULK INSERT tmp.PackagRaw - FROM 'e:\test\PackagRaw.csv' - WITH (FIELDTERMINATOR = ';', ROWTERMINATOR = '\n', FIRSTROW = 2, ERRORFILE = 'e:\test\errorPackag.log') - --WITH (FIELDTERMINATOR = ';', ROWTERMINATOR = '\n', FIRSTROW = 2, ERRORFILE = 'e:\test\errorPackag.log', CODEPAGE = '1252') - - SELECT COUNT(*) as RecordsIn FROM tmp.PackagRaw - - END - -END -GO -PRINT N'Creating [tmp].[convertProductionLogRaw]...'; - - -GO - - - --- ============================================= --- Author: S.E. Locatelli --- Create date: 2013.11.28 --- Description: Procedura per conversioen e tipizzazione dati da tmp a ext x ProductionLogRaw --- ============================================= -CREATE PROCEDURE [tmp].[convertProductionLogRaw] -( - @fileType NVARCHAR(50) = 'ProductionLogRaw' -) -AS -BEGIN - SET NOCOUNT ON; - - -- per Giancarlo: rendere parametrico con esecuzione sql x poter inserire nei parametri il separatore ed il resto? http://www.sqlteam.com/article/using-bulk-insert-to-load-a-text-file - - IF @fileType = 'ProductionLogRaw' - BEGIN - -- svuoto tabella temp - TRUNCATE TABLE ext.ProductionLogRaw - - -- inserisco con cast valori... - INSERT ext.ProductionLogRaw - WITH (TABLOCK) - ( EventStart, EventEnd, CodPlant, ProcessNum, NrPos, CodDies, CodClient, OrderNum, BatchNum, ProcessType, EventType, RawMat, CodPackag, QtyIN, QtyOUT, QtyEXT, NumIN, NumOUT, QuotaPlant, QuotaMan, Tags, okPr, okQM, okSc, okDi ) - - SELECT - dbo.f_dtFromRaw( EventStart ) AS EventStart, -- record nulli sono già stati cancellati - dbo.f_dtFromRaw( EventEnd ) AS EventEnd, -- record nulli sono già stati cancellati - dbo.f_trim(ISNULL(CodPlant ,'')), - dbo.f_trim(ISNULL(ProcessNum ,'')), - dbo.f_trim(ISNULL(NrPos ,'')), - dbo.f_trim(ISNULL(CodDies ,'')), - dbo.f_trim(ISNULL(CodClient ,'')), - dbo.f_trim(ISNULL(OrderNum ,'')), - dbo.f_trim(ISNULL(BatchNum ,'')), - dbo.f_trim(ISNULL(ProcessType,'')), - dbo.f_trim(ISNULL(EventType ,'')), - dbo.f_trim(ISNULL(RawMat ,'')), - dbo.f_trim(ISNULL(CodPackag ,'')), - CAST( CAST( REPLACE( '0' + ISNULL(QtyIN,'') ,',','.' ) AS float ) AS decimal( 18,4 )) AS QtyIN, - CAST( CAST( REPLACE( '0' + ISNULL(QtyOUT,''),',','.' ) AS float ) AS decimal( 18,4 )) AS QtyOUT, - CAST( CAST( REPLACE( '0' + ISNULL(QtyEXT,''),',','.' ) AS float ) AS decimal( 18,4 )) AS QtyEXT, - CAST( ISNULL(NumIN ,'') AS int )AS NumIN, - CAST( ISNULL(NumOUT ,'') AS int )AS NumOUT, - CAST( CAST( REPLACE( '0' + ISNULL(QuotaPlant,''),',','.' ) AS float )AS decimal( 9,4 )) AS QuotaPlant, - CAST( CAST( REPLACE( '0' + ISNULL(QuotaMan,''),',','.' ) AS float )AS decimal( 9,4 )) AS QuotaMan, - dbo.f_trim(ISNULL(Tags ,'')), - okPr, - okQM, - okSc, - okDi - FROM tmp.ProductionLogRaw; - - SELECT COUNT(*) as RecordsIn FROM ext.ProductionLogRaw - END - -END -GO -PRINT N'Creating [tmp].[importProductionLogRaw]...'; - - -GO - - - - --- ============================================= --- Author: S.E. Locatelli --- Create date: 2013.11.28 --- Description: Procedura per import dati in tabelal tmp da file csv --- --- TRUNCATE TABLE tmp.ProductionLogRaw_KO --- --- ============================================= -CREATE PROCEDURE [tmp].[importProductionLogRaw] -( - @fileType NVARCHAR(50) = 'ProductionLogRaw' -) -AS -BEGIN - SET NOCOUNT ON; - - -- per Giancarlo: rendere parametrico con esecuzione sql x poter inserire nei parametri il separatore ed il resto? http://www.sqlteam.com/article/using-bulk-insert-to-load-a-text-file - - IF @fileType = 'ProductionLogRaw' - BEGIN - -- svuoto tabella temp - TRUNCATE TABLE tmp.ProductionLogRaw - - -- carico dati bulk! - BULK INSERT tmp.ProductionLogRaw - FROM 'e:\test\ProductRaw.csv' - - WITH (FIELDTERMINATOR = ';', ROWTERMINATOR = '\n', FIRSTROW = 2, ERRORFILE = 'e:\test\errorProduct.log') - --WITH (FIELDTERMINATOR = ';', ROWTERMINATOR = '\n', FIRSTROW = 2, ERRORFILE = 'e:\test\errorProduct.log', CODEPAGE = '1252') - - -- =============================================================================== - -- pulisco l tabella dai record con chiave duplicata ( se doppi li elimino tutti ) - -- =============================================================================== - SET XACT_ABORT ON; - BEGIN TRAN - - -- salvo i dati con chiave duplicata - INSERT INTO tmp.ProductionLogRaw_KO - SELECT Prod.*, GETDATE() FROM tmp.ProductionLogRaw AS Prod - INNER JOIN - ( - SELECT EventStart, EventEnd, CodPlant, ProcessNum, NrPos, CodDies - FROM tmp.ProductionLogRaw - GROUP BY EventStart, EventEnd, CodPlant, ProcessNum, NrPos, CodDies - HAVING COUNT(*)>1 - ) AS Dupl ON Prod.EventStart = Dupl.EventStart AND - Prod.EventEnd = Dupl.EventEnd AND - Prod.CodPlant = Dupl.CodPlant AND - Prod.ProcessNum = Dupl.ProcessNum AND - Prod.NrPos = Dupl.NrPos AND - Prod.CodDies = Dupl.CodDies - - -- Cancello i record con chiave duplicata - DELETE Prod - WITH (TABLOCK) - FROM tmp.ProductionLogRaw AS Prod - INNER JOIN - ( - SELECT EventStart, EventEnd, CodPlant, ProcessNum, NrPos, CodDies - FROM tmp.ProductionLogRaw - GROUP BY EventStart, EventEnd, CodPlant, ProcessNum, NrPos, CodDies - HAVING COUNT(*)>1 - ) AS Dupl ON Prod.EventStart = Dupl.EventStart AND - Prod.EventEnd = Dupl.EventEnd AND - Prod.CodPlant = Dupl.CodPlant AND - Prod.ProcessNum = Dupl.ProcessNum AND - Prod.NrPos = Dupl.NrPos AND - Prod.CodDies = Dupl.CodDies - - -- =============================================================================== - -- pulisco la tabella dai record con date non corrette - -- =============================================================================== - DELETE FROM tmp.ProductionLogRaw - WITH (TABLOCK) - OUTPUT deleted.* INTO tmp.ProductionLogRaw_KO -- salvo i record cancellati in tabella KO - ( EventStart, EventEnd, CodPlant, ProcessNum, NrPos, CodDies, CodClient, OrderNum, BatchNum, ProcessType, EventType, RawMat - , CodPackag, QtyIN, QtyOUT, QtyEXT, NumIN, NumOUT, QuotaPlant, QuotaMan, Tags, okPr, okQM, okSc, okDi ) - WHERE EventStart >= EventEnd - OR CONVERT( BIGINT , EventStart ) + 68000000000000 <= EventEnd -- record che darebbero errore poi nel datediff > 68 anni - OR EventStart IS NULL - OR EventEnd IS NULL - --- SELECT * FROM tmp.ProductionLogRaw_KO - - --ROLLBACK - COMMIT - - SELECT COUNT(*) AS RecordsIn FROM tmp.ProductionLogRaw - - END -END -GO -PRINT N'Creating [tmp].[importClientsRaw]...'; - - -GO - - - --- ============================================= --- Author: S.E. Locatelli --- Mod. date: 2013.11.29 --- Description: Procedura per import dati in tabella tmp da file csv --- ============================================= -CREATE PROCEDURE [tmp].[importClientsRaw] -( - @fileType NVARCHAR(50) = 'ClientsRaw' -) -AS -BEGIN - SET NOCOUNT ON; - - -- per Giancarlo: rendere parametrico con esecuzione sql x poter inserire nei parametri il separatore ed il resto? http://www.sqlteam.com/article/using-bulk-insert-to-load-a-text-file - - IF @fileType = 'ClientsRaw' - BEGIN - -- svuoto tabella temp - TRUNCATE TABLE tmp.ClientsRaw - - -- carico dati bulk! - BULK INSERT tmp.ClientsRaw - FROM 'e:\test\ClientsRaw.csv' - WITH (FIELDTERMINATOR = ';', ROWTERMINATOR = '\n', FIRSTROW = 2, ERRORFILE = 'e:\test\errorClients.log') - --WITH (FIELDTERMINATOR = ';', ROWTERMINATOR = '\n', FIRSTROW = 2, ERRORFILE = 'e:\test\errorClients.log', CODEPAGE = '1252') - - SELECT COUNT(*) as RecordsIn FROM tmp.ClientsRaw - - END - -END -GO -PRINT N'Creating [tmp].[convertOrdersHistRaw]...'; - - -GO --- ============================================= --- Author: Steamware --- Mod. date: 2014.05.22 --- Description: Procedura per conversione e tipizzazione dati da tmp a ext x OrdersHistRaw --- ============================================= -CREATE PROCEDURE [tmp].[convertOrdersHistRaw] -( - @fileType NVARCHAR(50) = 'OrdersHistRaw' -) -AS -BEGIN - SET NOCOUNT ON; - - -- per Giancarlo: rendere parametrico con esecuzione sql x poter inserire nei parametri il separatore ed il resto? http://www.sqlteam.com/article/using-bulk-insert-to-load-a-text-file - - IF @fileType = 'OrdersHistRaw' - BEGIN - -- svuoto tabella temp - TRUNCATE TABLE ext.OrdersHistRaw - - -- inserisco con cast valori... - INSERT ext.OrdersHistRaw - WITH (TABLOCK) - ( OrdNum, OrdRow, OrdDate, CodClient, CodItem, RawMat, RawMatCost, BatchQty, CodInco, OrdPrice, RawMatExtraCost, PriceOff, OrdQty, ProvvCost) - SELECT - OrdNum, - OrdRow, - dbo.f_dtFromRaw( OrdDate ) AS OrdDate, - CodClient, - CodItem, - RawMat, - CONVERT( DECIMAL( 18,6 ), CONVERT ( FLOAT , REPLACE( '0' + REPLACE(RawMatCost,'.',''),',','.' ) )) AS RawMatCost, - CONVERT(INT, CONVERT ( FLOAT , REPLACE( '0' + REPLACE(BatchQty,'.',''),',','.' ) )) AS BatchQty, -- lotto - CodInco, - CONVERT( DECIMAL( 18,6 ), CONVERT ( FLOAT , REPLACE( '0' + REPLACE(OrdPrice,'.',''),',','.' ) )) AS OrdPrice, - CONVERT( DECIMAL( 18,6 ), CONVERT ( FLOAT , REPLACE( '0' + REPLACE(RawMatExtraCost,'.',''),',','.' ) )) AS RawMatExtraCost, - CONVERT( DECIMAL( 9,6 ), CONVERT ( FLOAT , REPLACE( '0' + REPLACE(PriceOff,'.',''),',','.' ) )) AS PriceOff, -- trasformazione - CONVERT( INT, CONVERT ( FLOAT , REPLACE( '0' + REPLACE(OrdQty,'.',''),',','.' ) )) AS OrdQty, - CONVERT( DECIMAL( 9,6 ), CONVERT ( FLOAT , REPLACE( '0' + REPLACE(ProvvCost,'.',''),',','.' ) )) AS ProvvCost -- provvigioni - FROM tmp.OrdersHistRaw; - - SELECT COUNT(*) as RecordsIn FROM ext.OrdersHistRaw - END - -END -GO -PRINT N'Creating [tmp].[importOrdersHistRaw]...'; - - -GO --- ============================================= --- Author: S.E. Locatelli --- mod. date: 2014.05.22 --- Description: Procedura per import dati in tabella tmp da file csv --- --- TRUNCATE TABLE [tmp].[OrdersHistRaw] --- --- ============================================= -CREATE PROCEDURE [tmp].[importOrdersHistRaw] -( - @fileType NVARCHAR(50) = 'OrdersHistRaw' -) -AS -BEGIN - SET NOCOUNT ON; - - -- per Giancarlo: rendere parametrico con esecuzione sql x poter inserire nei parametri il separatore ed il resto? http://www.sqlteam.com/article/using-bulk-insert-to-load-a-text-file - - IF @fileType = 'OrdersHistRaw' - BEGIN - -- svuoto tabella temp - TRUNCATE TABLE tmp.OrdersHistRaw - - -- carico dati bulk! - BULK INSERT tmp.OrdersHistRaw - FROM 'e:\test\MarginRep_Import.csv' - WITH (FIELDTERMINATOR = ';', ROWTERMINATOR = '\n', FIRSTROW = 2, ERRORFILE = 'e:\test\errorOrdersHist.log') - --WITH (FIELDTERMINATOR = ';', ROWTERMINATOR = '\n', FIRSTROW = 2, ERRORFILE = 'e:\test\errorProduct.log', CODEPAGE = '1252') - - SELECT COUNT(*) AS RecordsIn FROM tmp.OrdersHistRaw - END -END -GO -PRINT N'Creating [voc].[stp_insNewLemma]...'; - - -GO -/************************************* -* STORED PROCEDURE stp_insNewLemma -* -* inseriemtno lemma vocabolario -* -* mod : 14/05/2012 -* aut : S.E. Locatelli -**************************************/ -CREATE PROCEDURE [voc].[stp_insNewLemma] -( - @lemma NVARCHAR(50), - @traduzione NVARCHAR(500), - @OverWrite CHAR(1) = 'Y' -- Y/N Per forzarne inserimento anche se già presente -) -AS - --- elimino se c'era già e se richiesto... -IF @OverWrite = 'Y' -BEGIN - DELETE FROM Vocabolario - WHERE lemma = @lemma -END - --- inserisco x tutte le lingue attive... -INSERT INTO Vocabolario -SELECT lingua, @lemma, @traduzione -FROM Lingue - -SELECT * -FROM Vocabolario -WHERE lemma = @lemma - -RETURN -GO -PRINT N'Creating [voc].[stp_getByLingua]...'; - - -GO - -CREATE PROCEDURE [voc].[stp_getByLingua] -( - @Lingua nvarchar(3) -) -AS - SET NOCOUNT ON; -SELECT Lingua, Lemma, Traduzione -FROM Vocabolario -WHERE (Lingua = @Lingua) -GO -PRINT N'Creating [voc].[stp_getByLinguaLemmaLike]...'; - - -GO - - -/************************************* -* STORED PROCEDURE stp_getByLemmaLike -* -* elenco record da ricerca LIKE su lemma -* -* mod : 2014.04.28 -* aut : S.E. Locatelli -**************************************/ -CREATE PROCEDURE [voc].[stp_getByLinguaLemmaLike] -( - @Lingua NVARCHAR(3), - @search NVARCHAR(50) -) -AS - -SET NOCOUNT ON; -SELECT Lingua, Lemma - ,CASE WHEN @Lingua = 'LB' THEN CONVERT(NVARCHAR(500),Lemma) - ELSE Traduzione END - AS Traduzione -- la traduzione corrisponde ai campi/lemmi x i report -FROM Vocabolario -WHERE (Lemma LIKE @search + '%') - AND ( Lingua = CASE WHEN @Lingua = 'LB' -- se richiede le Label dei campi estraggo i lemmi in inglese - THEN 'EN' - ELSE @Lingua - END ) - -/* OLD -SELECT Lingua, Lemma, Traduzione -FROM Vocabolario -WHERE (Lemma LIKE @search + '%') - AND (Lingua = @Lingua) -*/ -GO -PRINT N'Creating [voc].[stp_updateQuery]...'; - - -GO - -CREATE PROCEDURE [voc].[stp_updateQuery] -( - @Traduzione nvarchar(500), - @Original_Lingua nvarchar(3), - @Original_Lemma nvarchar(50) -) -AS - SET NOCOUNT OFF; -UPDATE [dbo].[Vocabolario] SET [Traduzione] = @Traduzione WHERE ([Lingua] = @Original_Lingua) AND ([Lemma] = @Original_Lemma) -GO -PRINT N'Creating [voc].[stp_upsertLemma]...'; - - -GO -/************************************* -* STORED PROCEDURE stp_upsertLemma -* -* upsert record lemma -* -* mod : 14/05/2012 -* aut : S.E. Locatelli -**************************************/ -create PROCEDURE [voc].[stp_upsertLemma] -( - @Lingua NVARCHAR(3), - @Lemma NVARCHAR(50), - @Traduzione NVARCHAR(500) -) -AS - --- effettuo merge x upsert! - - MERGE Vocabolario AS target - USING (SELECT @Lingua, @Lemma, @Traduzione) AS source (Lingua, Lemma, Traduzione) - ON (target.Lingua = source.Lingua AND target.Lemma = source.Lemma) - WHEN MATCHED THEN - UPDATE SET Traduzione = source.traduzione - WHEN NOT MATCHED THEN - INSERT (Lingua, Lemma, Traduzione) - VALUES (source.Lingua, source.Lemma, source.Traduzione); - -RETURN -GO -PRINT N'Creating [voc].[stp_voUpdateLemmiReport]...'; - - -GO --- ============================================= --- Author: Samuele Locatelli --- Create date: 2014.05.09 --- Description: riallinea le traduzioni dei report ai termini corrispondenti a video --- ============================================= -CREATE PROCEDURE voc.stp_voUpdateLemmiReport -AS -BEGIN - -- SET NOCOUNT ON added to prevent extra result sets from - -- interfering with SELECT statements. - SET NOCOUNT ON; - - -- mostro situazione iniziale - SELECT * - FROM Vocabolario v1 - inner join vocabolario v ON replace(v1.Lemma, 'C2P_prt1_','') = v.Lemma AND v1.Lingua = v.Lingua - WHERE v1.lemma LIKE 'C2P_prt1_%' - - -- update! - UPDATE v1 - SET traduzione = v.traduzione - FROM Vocabolario v1 - INNER JOIN vocabolario v ON replace(v1.Lemma, 'C2P_prt1_','') = v.Lemma AND v1.Lingua = v.Lingua - WHERE v1.lemma LIKE 'C2P_prt1_%' - - - -- mostro situazione finale - SELECT * - FROM Vocabolario v1 - inner join vocabolario v ON replace(v1.Lemma, 'C2P_prt1_','') = v.Lemma AND v1.Lingua = v.Lingua - WHERE v1.lemma LIKE 'C2P_prt1_%' - -END -GO -PRINT N'Creating [ext].[stp_mergePackage2ItemClient]...'; - - -GO - - - --- ============================================= --- Author: S.E. Locatelli --- Create date: 2013.11.27 --- Description: Procedura per import dati in Package2ItemClient da dati ProductionLogRaw --- ============================================= -CREATE PROCEDURE [ext].[stp_mergePackage2ItemClient] -( - @source NVARCHAR(20) = 'ProductionLog', -- nome della tabella sorgente tra ProductionLogRaw e ItemsRaw - @dateFrom DATETIME, -- data da cui iniziare a caricare - @dateTo DATETIME -- data fino a cui caricare -) -AS -BEGIN - SET NOCOUNT ON; - - - -- Create a temporary table variable to hold the output actions. - DECLARE @SummaryOfChanges TABLE(Change VARCHAR(20)); - - -- import con MERGE... verifico tipo di caricamento richiesto! - IF @source = 'ProductionLog' -- carico da tracciato produzione - BEGIN - MERGE INTO Package2ItemClient AS Target - USING ( - --SELECT dd.CodItem, plr.CodClient, plr.CodPackag, SUM(QtyOUT) AS TotQta, COUNT(*) AS NumEv - -- , SUM(QtyOUT) / COUNT(*) AS PesoMedio - -- , SUM(QtyEXT) / COUNT(*) AS TaraMedia - --FROM ext.ProductionLogRaw plr - -- INNER JOIN DiesDet dd ON plr.CodDies = dd.CodDies - -- WHERE ISNULL(plr.CodPackag, '') <> '' - --GROUP BY dd.CodItem, plr.CodClient, plr.CodPackag - SELECT - dd.CodItem - , pl.CodClient - , pl.CodPackag - , SUM(QtyOUT) AS TotQta - -- , COUNT(*) AS NumEv - , SUM(QtyOUT) / COUNT(*) AS PesoMedio - , SUM(QtyEXT) / COUNT(*) AS TaraMedia - -- dati produttività imballo - , ROUND(SUM(QtyOUT* QuotaMan) / CASE WHEN SUM(QtyOUT) = 0 THEN 1 ELSE SUM(QtyOUT) END,0) as NumImb - , SUM(Duration) AS Durata - FROM dbo.ProductionLog pl - INNER JOIN dbo.DiesDet dd ON pl.CodDies=dd.CodDies - - WHERE pl.ProcessNum = '04' - AND pl.okPr = 1 AND pl.okQM = 1 - AND ISNULL(pl.CodPackag, '') <> '' - AND pl.EventStart BETWEEN @dateFrom AND @dateTo - GROUP BY dd.CodItem, pl.CodClient, pl.CodPackag - - ) - AS Source - ON Target.CodItem = Source.CodItem AND Target.CodClient = Source.CodClient AND Target.CodPackag = Source.CodPackag - WHEN MATCHED THEN - UPDATE SET TotQta = Source.TotQta - , [Weight] = Source.PesoMedio - , Tare = Source.TaraMedia - , NumImb = Source.NumImb - , Durata = Source.Durata - WHEN NOT MATCHED BY TARGET THEN - INSERT (CodItem, CodClient, CodPackag, TotQta, [Weight], Tare, NumImb, Durata) - VALUES (CodItem, CodClient, CodPackag, TotQta, PesoMedio, TaraMedia, NumImb, Durata) - WHEN NOT MATCHED BY SOURCE THEN - DELETE - OUTPUT $action INTO @SummaryOfChanges; - - END - --ELSE IF @source = 'ItemsRaw' -- carico da anagrafica - -- BEGIN - -- MERGE INTO Item2PackageClient AS Target - -- USING (SELECT CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup FROM ItemsRaw) - -- AS Source - -- ON Target.CodItem = Source.CodItem - -- WHEN MATCHED THEN - -- UPDATE SET ItemDescr = Source.ItemDescr, CodPlant = Source.CodPlant, UnitWeight = Source.UnitWeight, CodItemGroup = Source.CodItemGroup - -- WHEN NOT MATCHED BY TARGET THEN - -- INSERT (CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup) VALUES (CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup) - -- OUTPUT $action INTO @SummaryOfChanges; - - -- END - - -- Query the results of the table variable. - SELECT Change, COUNT(*) AS CountPerChange - FROM @SummaryOfChanges - GROUP BY Change; -END -GO -PRINT N'Creating [ext].[stp_mergePackage2Item]...'; - - -GO - - - --- ============================================= --- Author: S.E. Locatelli --- Create date: 2014.01.15 --- Description: Procedura per import dati in Package2Item da dati ProductionLogRaw --- ============================================= -CREATE PROCEDURE [ext].[stp_mergePackage2Item] -( - @source NVARCHAR(20) = 'ProductionLog', -- nome della tabella sorgente tra ProductionLogRaw e ItemsRaw - @dateFrom DATETIME, -- data da cui iniziare a caricare - @dateTo DATETIME -- data fino a cui caricare -) -AS -BEGIN - SET NOCOUNT ON; - - - -- Create a temporary table variable to hold the output actions. - DECLARE @SummaryOfChanges TABLE(Change VARCHAR(20)); - - -- import con MERGE... verifico tipo di caricamento richiesto! - IF @source = 'ProductionLog' -- carico da tracciato produzione - BEGIN - MERGE INTO Package2Item AS Target - USING ( - --SELECT dd.CodItem, plr.CodPackag, SUM(QtyOUT) AS TotQta, COUNT(*) AS NumEv - -- , SUM(QtyOUT) / COUNT(*) AS PesoMedio - -- , SUM(QtyEXT) / COUNT(*) AS TaraMedia - --FROM ext.ProductionLogRaw plr - -- INNER JOIN DiesDet dd ON plr.CodDies = dd.CodDies - -- WHERE ISNULL(plr.CodPackag, '') <> '' - --GROUP BY dd.CodItem, plr.CodPackag - SELECT - dd.CodItem - , pl.CodPackag - , SUM(QtyOUT) AS TotQta - -- , COUNT(*) AS NumEv - , SUM(QtyOUT) / COUNT(*) AS PesoMedio - , SUM(QtyEXT) / COUNT(*) AS TaraMedia - -- dati produttività imballo - , ROUND(SUM(QtyOUT* QuotaMan) / CASE WHEN SUM(QtyOUT) = 0 THEN 1 ELSE SUM(QtyOUT) END,0) as NumImb - , SUM(Duration) AS Durata - FROM ProductionLog pl - INNER JOIN DiesDet dd ON pl.CodDies=dd.CodDies - WHERE pl.ProcessNum = '04' - AND pl.okPr = 1 AND pl.okQM = 1 - AND ISNULL(pl.CodPackag, '') <> '' - AND pl.EventStart BETWEEN @dateFrom AND @dateTo - GROUP BY dd.CodItem, pl.CodPackag - ) - AS Source - ON Target.CodItem = Source.CodItem AND Target.CodPackag = Source.CodPackag - WHEN MATCHED THEN - UPDATE SET TotQta = Source.TotQta - , [Weight] = Source.PesoMedio - , Tare = Source.TaraMedia - , NumImb = Source.NumImb - , Durata = Source.Durata - WHEN NOT MATCHED BY TARGET THEN - INSERT (CodItem, CodPackag, TotQta, [Weight], Tare, NumImb, Durata) - VALUES (CodItem, CodPackag, TotQta, PesoMedio, TaraMedia, NumImb, Durata) - WHEN NOT MATCHED BY SOURCE THEN - DELETE - OUTPUT $action INTO @SummaryOfChanges; - - END - --ELSE IF @source = 'ItemsRaw' -- carico da anagrafica - -- BEGIN - -- MERGE INTO Item2Package AS Target - -- USING (SELECT CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup FROM ItemsRaw) - -- AS Source - -- ON Target.CodItem = Source.CodItem - -- WHEN MATCHED THEN - -- UPDATE SET ItemDescr = Source.ItemDescr, CodPlant = Source.CodPlant, UnitWeight = Source.UnitWeight, CodItemGroup = Source.CodItemGroup - -- WHEN NOT MATCHED BY TARGET THEN - -- INSERT (CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup) VALUES (CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup) - -- OUTPUT $action INTO @SummaryOfChanges; - - -- END - - -- Query the results of the table variable. - SELECT Change, COUNT(*) AS CountPerChange - FROM @SummaryOfChanges - GROUP BY Change; -END -GO -PRINT N'Creating [ext].[stp_mergeItemDet]...'; - - -GO - --- ============================================= --- Author: S.E. Locatelli --- Create date: 2013.11.27 --- Description: Procedura per import dati in ItemDet da dati ProductionLogRaw/ItemsRaw --- ============================================= -CREATE PROCEDURE [ext].[stp_mergeItemDet] -( - @source NVARCHAR(20) = 'ProductionLogRaw' -- nome della tabella sorgente tra ProductionLogRaw e ItemsRaw -) -AS -BEGIN - SET NOCOUNT ON; - - - -- Create a temporary table variable to hold the output actions. - DECLARE @SummaryOfChanges TABLE(Change VARCHAR(20)); - - -- import con MERGE... verifico tipo di caricamento richiesto! - IF @source = 'ProductionLogRaw' -- carico da tracciato produzione - BEGIN - --MERGE INTO ItemDet AS Target - --USING (SELECT DISTINCT CodItem FROM ext.ProductionLogRaw) - -- AS Source - --ON Target.CodItem = Source.CodItem - ----WHEN MATCHED THEN - ---- UPDATE SET ClientName = Source.ClientName - --WHEN NOT MATCHED BY TARGET THEN - -- INSERT (CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup) VALUES (CodItem, '#### - ' + CodItem, '', 0, '') - --OUTPUT $action INTO @SummaryOfChanges; - select 1 - END - ELSE IF @source = 'ItemsRaw' -- carico da anagrafica - BEGIN - MERGE INTO ItemDet AS Target - USING (SELECT CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup, Class01, Class02, Class03, Class04, Class05 FROM ext.ItemsRaw) - AS Source - ON Target.CodItem = Source.CodItem - WHEN MATCHED THEN - UPDATE SET ItemDescr = Source.ItemDescr, CodPlant = Source.CodPlant, UnitWeight = Source.UnitWeight, CodItemGroup = Source.CodItemGroup, Class01 = Source.Class01, Class02 = Source.Class02, Class03 = Source.Class03, Class04 = Source.Class04, Class05 = Source.Class05 - WHEN NOT MATCHED BY TARGET THEN - INSERT (CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup, Class01, Class02, Class03, Class04, Class05) VALUES (CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup, Class01, Class02, Class03, Class04, Class05) - OUTPUT $action INTO @SummaryOfChanges; - - END - - -- Query the results of the table variable. - SELECT Change, COUNT(*) AS CountPerChange - FROM @SummaryOfChanges - GROUP BY Change; -END -GO -PRINT N'Creating [ext].[stp_mergeClientDet]...'; - - -GO - - - --- ============================================= --- Author: S.E. Locatelli --- Create date: 2013.11.27 --- Description: Procedura per import dati in ClientDet da dati ProductionLogRaw/ClientsRaw --- ============================================= -CREATE PROCEDURE [ext].[stp_mergeClientDet] -( - @source NVARCHAR(20) = 'ProductionLogRaw' -- nome della tabella sorgente tra ProductionLogRaw e ClientsRaw -) -AS -BEGIN - SET NOCOUNT ON; - - -- Create a temporary table variable to hold the output actions. - DECLARE @SummaryOfChanges TABLE(Change VARCHAR(20)); - - -- import con MERGE... verifico tipo di caricamento richiesto! - IF @source = 'ProductionLogRaw' -- carico da tracciato produzione - BEGIN - MERGE INTO ClientDet AS Target - USING (SELECT DISTINCT CodClient FROM ext.ProductionLogRaw) - AS Source - ON Target.CodClient = Source.CodClient - --WHEN MATCHED THEN - -- UPDATE SET ClientName = Source.ClientName - WHEN NOT MATCHED BY TARGET THEN - INSERT (CodClient, ClientName, CodAg, ZipCode, City, [State], Nation, TranspZone) VALUES (CodClient, '#### - ' + CodClient, '', '', '', '', '', '') - OUTPUT $action INTO @SummaryOfChanges; - - END - ELSE IF @source = 'ClientsRaw' -- carico da anagrafica - BEGIN - MERGE INTO ClientDet AS Target - USING (SELECT DISTINCT CodClient, ClientName, CodAg, ZipCode, City, [State], Nation, TranspZone FROM ext.ClientsRaw) - AS Source - ON Target.CodClient = Source.CodClient - WHEN MATCHED THEN - UPDATE SET ClientName = Source.ClientName, CodAg = Source.CodAg, ZipCode = Source.ZipCode, City = Source.City, [State] = Source.[State], Nation = Source.Nation, TranspZone = Source.TranspZone - WHEN NOT MATCHED BY TARGET THEN - INSERT (CodClient, ClientName, CodAg, ZipCode, City, [State], Nation, TranspZone) VALUES (CodClient, ClientName, CodAg, ZipCode, City, [State], Nation, TranspZone) - OUTPUT $action INTO @SummaryOfChanges; - - END - - -- Query the results of the table variable. - SELECT Change, COUNT(*) AS CountPerChange - FROM @SummaryOfChanges - GROUP BY Change; -END -GO -PRINT N'Creating [ext].[stp_mergeTranspCostDet]...'; - - -GO - --- ============================================= --- Author: S.E. Locatelli --- Create date: 2014.01.16 --- Description: Procedura per import dati in ClientDet da dati ProductionLogRaw/ClientsRaw --- ============================================= -CREATE PROCEDURE [ext].[stp_mergeTranspCostDet] -( - @source NVARCHAR(20) = 'TranspCostRaw' -- nome della tabella sorgente tra ProductionLogRaw e ClientsRaw -) -AS -BEGIN - SET NOCOUNT ON; - - -- Create a temporary table variable to hold the output actions. - DECLARE @SummaryOfChanges TABLE(Change VARCHAR(20)); - - -- import con MERGE... verifico tipo di caricamento richiesto! - IF @source = 'TranspCostRaw' -- carico da anagrafica - BEGIN - MERGE INTO TranspCostDet AS Target - USING (SELECT DISTINCT TranspZone, TranspCost FROM ext.TranspCostRaw) - AS Source - ON Target.TranspZone = Source.TranspZone - WHEN MATCHED THEN - UPDATE SET TranspCost = Source.TranspCost - WHEN NOT MATCHED BY TARGET THEN - INSERT (TranspZone, TranspCost) VALUES (TranspZone, TranspCost) - OUTPUT $action INTO @SummaryOfChanges; - - END - - -- Query the results of the table variable. - SELECT Change, COUNT(*) AS CountPerChange - FROM @SummaryOfChanges - GROUP BY Change; -END -GO -PRINT N'Creating [ext].[stp_mergePackage2ItemClient_OLD]...'; - - -GO - --- ============================================= --- Author: S.E. Locatelli --- Create date: 2013.11.27 --- Description: Procedura per import dati in Package2ItemClient da dati ProductionLogRaw --- ============================================= -CREATE PROCEDURE [ext].[stp_mergePackage2ItemClient_OLD] -( - @source NVARCHAR(20) = 'ProductionLogRaw' -- nome della tabella sorgente tra ProductionLogRaw e ItemsRaw -) -AS -BEGIN - SET NOCOUNT ON; - - - ---- Create a temporary table variable to hold the output actions. - --DECLARE @SummaryOfChanges TABLE(Change VARCHAR(20)); - - -- -- import con MERGE... verifico tipo di caricamento richiesto! - --IF @source = 'ProductionLogRaw' -- carico da tracciato produzione - -- BEGIN - -- MERGE INTO Package2ItemClient AS Target - -- USING ( - -- SELECT dd.CodItem, plr.CodClient, plr.CodPackag, SUM(QtyOUT) AS TotQta, COUNT(*) AS NumEv - -- , SUM(QtyOUT) / COUNT(*) AS PesoMedio - -- , SUM(QtyEXT) / COUNT(*) AS TaraMedia - -- FROM ext.ProductionLogRaw plr - -- INNER JOIN DiesDet dd ON plr.CodDies = dd.CodDies - -- WHERE ISNULL(plr.CodPackag, '') <> '' - -- GROUP BY dd.CodItem, plr.CodClient, plr.CodPackag - -- ) - -- AS Source - -- ON Target.CodItem = Source.CodItem AND Target.CodClient = Source.CodClient AND Target.CodPackag = Source.CodPackag - -- WHEN MATCHED THEN - -- UPDATE SET TotQty = Source.TotQta - -- , [Weight] = Source.PesoMedio - -- , Tare = Source.TaraMedia - -- WHEN NOT MATCHED BY TARGET THEN - -- INSERT (CodItem, CodClient, CodPackag, TotQty, [Weight], Tare) VALUES (CodItem, CodClient, CodPackag, TotQta, PesoMedio, TaraMedia) - -- OUTPUT $action INTO @SummaryOfChanges; - - -- END - ----ELSE IF @source = 'ItemsRaw' -- carico da anagrafica - ---- BEGIN - ---- MERGE INTO Item2PackageClient AS Target - ---- USING (SELECT CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup FROM ItemsRaw) - ---- AS Source - ---- ON Target.CodItem = Source.CodItem - ---- WHEN MATCHED THEN - ---- UPDATE SET ItemDescr = Source.ItemDescr, CodPlant = Source.CodPlant, UnitWeight = Source.UnitWeight, CodItemGroup = Source.CodItemGroup - ---- WHEN NOT MATCHED BY TARGET THEN - ---- INSERT (CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup) VALUES (CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup) - ---- OUTPUT $action INTO @SummaryOfChanges; - - ---- END - - ---- Query the results of the table variable. - --SELECT Change, COUNT(*) AS CountPerChange - --FROM @SummaryOfChanges - --GROUP BY Change; -END -GO -PRINT N'Creating [ext].[stp_mergePackage2]...'; - - -GO - - - - --- ============================================= --- Author: S.E. Locatelli --- Create date: 2014.01.15 --- Description: Procedura per import dati in Package2Item da dati ProductionLogRaw --- ============================================= -CREATE PROCEDURE [ext].[stp_mergePackage2] -( - @source NVARCHAR(20) = 'ProductionLog', -- nome della tabella sorgente tra ProductionLogRaw e ItemsRaw - @dateFrom DATETIME, -- data da cui iniziare a caricare - @dateTo DATETIME -- data fino a cui caricare -) -AS -BEGIN - SET NOCOUNT ON; - - - -- Create a temporary table variable to hold the output actions. - DECLARE @SummaryOfChanges TABLE(Change VARCHAR(20)); - - -- import con MERGE... verifico tipo di caricamento richiesto! - IF @source = 'ProductionLog' -- carico da tracciato produzione - BEGIN - MERGE INTO Package2 AS Target - USING ( - --SELECT plr.CodPackag, SUM(QtyOUT) AS TotQta, COUNT(*) AS NumEv - -- , SUM(QtyOUT) / COUNT(*) AS PesoMedio - -- , SUM(QtyEXT) / COUNT(*) AS TaraMedia - --FROM ext.ProductionLogRaw plr - -- INNER JOIN DiesDet dd ON plr.CodDies = dd.CodDies - -- WHERE ISNULL(plr.CodPackag, '') <> '' - --GROUP BY plr.CodPackag - SELECT - pl.CodPackag - , SUM(QtyOUT) AS TotQta --- , COUNT(*) AS NumEv - , SUM(QtyOUT) / COUNT(*) AS PesoMedio - , SUM(QtyEXT) / COUNT(*) AS TaraMedia - - -- dati produttività imballo - , ROUND(SUM(QtyOUT * QuotaMan) / CASE WHEN SUM(QtyOUT) = 0 THEN 1 ELSE SUM(QtyOUT) END,0) as NumImb - -- , SUM(QtyOUT) AS TotOut -- unificata a TotQta - , SUM(Duration) AS Durata - FROM ProductionLog pl - INNER JOIN DiesDet dd ON pl.CodDies=dd.CodDies - WHERE pl.ProcessNum = '04' - AND pl.okPr = 1 AND pl.okQM = 1 - AND ISNULL(pl.CodPackag, '') <> '' -- cmq filtro righe con package VUOTO - AND pl.EventStart BETWEEN @dateFrom AND @dateTo - GROUP BY pl.CodPackag - ) - AS Source - ON Target.CodPackag = Source.CodPackag - WHEN MATCHED THEN - UPDATE SET TotQta = Source.TotQta - , [Weight] = Source.PesoMedio - , Tare = Source.TaraMedia - , NumImb = Source.NumImb - , Durata = Source.Durata - WHEN NOT MATCHED BY TARGET THEN - INSERT (CodPackag, TotQta, [Weight], Tare, NumImb, Durata) - VALUES (CodPackag, TotQta, PesoMedio, TaraMedia, NumImb, Durata) - WHEN NOT MATCHED BY SOURCE THEN - DELETE - OUTPUT $action INTO @SummaryOfChanges; - - END - --ELSE IF @source = 'ItemsRaw' -- carico da anagrafica - -- BEGIN - -- MERGE INTO Item2Package AS Target - -- USING (SELECT CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup FROM ItemsRaw) - -- AS Source - -- ON Target.CodItem = Source.CodItem - -- WHEN MATCHED THEN - -- UPDATE SET ItemDescr = Source.ItemDescr, CodPlant = Source.CodPlant, UnitWeight = Source.UnitWeight, CodItemGroup = Source.CodItemGroup - -- WHEN NOT MATCHED BY TARGET THEN - -- INSERT (CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup) VALUES (CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup) - -- OUTPUT $action INTO @SummaryOfChanges; - - -- END - - -- Query the results of the table variable. - SELECT Change, COUNT(*) AS CountPerChange - FROM @SummaryOfChanges - GROUP BY Change; -END -GO -PRINT N'Creating [ext].[stp_filterProductionLogRow]...'; - - -GO - - --- ============================================= --- Author: --- Create date: 2013.11.29 --- Description: Procedura per pulizia dati della tabella ext.ProductionLogRaw --- --- Use: --- EXECUTE ext.stp_filterProductionLogRow 0 -- selezione record --- EXECUTE ext.stp_filterProductionLogRow 1 -- cancellazione record --- --- SELECT * FROM tmp.ExcludeCondFilter -- Tabella con i filtri --- SELECT * FROM ext.ProductionLogRaw_KO -- Tabella dove eseguo delete --- --- ============================================= -CREATE PROCEDURE [ext].[stp_filterProductionLogRow] -( - @flgDelete AS TINYINT = 0 -- 0 = solo select 1 = fa delete -) -AS -BEGIN - --- DECLARE @flgDelete AS TINYINT = 1; -- 0 - - DECLARE @Sql AS NVARCHAR(MAX) = ''; - DECLARE @TotRighe AS INT = 0; - DECLARE @Riga AS INT = 1; - DECLARE @WhereCond AS NVARCHAR(4000); - - IF OBJECT_ID('tempdb..#tmpTable') IS NOT NULL - DROP TABLE #tmpTable - - -- creo sql di base x select o delete - IF @flgDelete = 0 -- voglio fare solo select - SET @Sql = 'SELECT * FROM ext.ProductionLogRaw WHERE 1=0' -- per test - ELSE - SET @Sql = 'DELETE FROM ext.ProductionLogRaw - WITH (TABLOCK) - OUTPUT deleted.* INTO ext.ProductionLogRaw_KO -- salvo i record cancellati in tabella KO - ( EventStart, EventEnd, CodPlant, ProcessNum, NrPos, CodDies, CodClient, OrderNum, BatchNum, ProcessType, EventType, RawMat, CodPackag, QtyIN, QtyOUT, QtyEXT, NumIN, NumOUT, QuotaPlant, QuotaMan, Tags ) - WHERE 1=0' - - -- carico in tabella i filtri ( record da cancellare ) - SELECT ROW_NUMBER() OVER ( ORDER BY TableName, FieldName) AS Riga, * - INTO #tmpTable - FROM tmp.ExcludeCondFilter - WHERE TableName = 'ProductionLogRaw' - - SET @TotRighe = @@ROWCOUNT; - - -- accodo le condizioni di where allo statement iniziale ( collegate con OR ) - IF @TotRighe > 0 - BEGIN - WHILE @Riga <= @TotRighe - BEGIN - SELECT @WhereCond = WhereCond FROM #tmpTable WHERE Riga = @Riga - - SET @Sql = @Sql + ' OR ' + @WhereCond; - SET @Riga = @Riga + 1; - END - END - - -- Ritorno la select eseguita - SELECT @Sql - -- ======================================================= - -- Eseguo la select/delete e ritorno i record elaborati - -- ======================================================= - EXEC sp_executesql @Sql - SELECT @@ROWCOUNT - --- SELECT * FROM ext.ProductionLogRaw_KO - - IF OBJECT_ID('tempdb..#tmpTable') IS NOT NULL - DROP TABLE #tmpTable -END -GO -PRINT N'Creating [ext].[stp_mergePackagDet]...'; - - -GO - - --- ============================================= --- Author: S.E. Locatelli --- Create date: 2013.11.29 --- Description: Procedura per import dati in PackagDet da dati ProductionLogRaw/PackagRaw --- ============================================= -CREATE PROCEDURE [ext].[stp_mergePackagDet] -( - @source NVARCHAR(20) = 'ProductionLogRaw' -- nome della tabella sorgente tra ProductionLogRaw e PackagRaw -) -AS -BEGIN - SET NOCOUNT ON; - - -- Create a temporary table variable to hold the output actions. - DECLARE @SummaryOfChanges TABLE(Change VARCHAR(20)); - - -- import con MERGE... verifico tipo di caricamento richiesto! - IF @source = 'ProductionLogRaw' -- carico da tracciato produzione - BEGIN - MERGE INTO PackagDet AS Target - USING (SELECT DISTINCT CodPackag FROM ext.ProductionLogRaw) - AS Source - ON Target.CodPackag = Source.CodPackag - --WHEN MATCHED THEN - -- UPDATE SET PackagName = Source.PackagName - WHEN NOT MATCHED BY TARGET THEN - INSERT (CodPackag, PackagDesc, RMCost, RMWeight) VALUES (CodPackag, '#### - ' + CodPackag, 0, 0) - OUTPUT $action INTO @SummaryOfChanges; - - END - ELSE IF @source = 'PackagRaw' -- carico da anagrafica - BEGIN - MERGE INTO PackagDet AS Target - USING (SELECT CodPackag, PackagDesc, RMCost, RMWeight FROM ext.PackagRaw) - AS Source - ON Target.CodPackag = Source.CodPackag - WHEN MATCHED THEN - UPDATE SET PackagDesc = Source.PackagDesc, RMCost = Source.RMCost, RMWeight = Source.RMWeight - WHEN NOT MATCHED BY TARGET THEN - INSERT (CodPackag, PackagDesc, RMCost, RMWeight) VALUES (CodPackag, PackagDesc, RMCost, RMWeight) - OUTPUT $action INTO @SummaryOfChanges; - - END - - -- Query the results of the table variable. - SELECT Change, COUNT(*) AS CountPerChange - FROM @SummaryOfChanges - GROUP BY Change; -END -GO -PRINT N'Creating [ext].[stp_mergeDiesGroupDet]...'; - - -GO - - --- ============================================= --- Author: S.E. Locatelli --- Create date: 2014.01.08 --- Description: Procedura per import dati in DiesDet da dati DiesGroupRaw --- Il caricamento principale avviene tramite DiesRaw, questa --- serve solo per completare i dati mancanti --- ============================================= -CREATE PROCEDURE [ext].[stp_mergeDiesGroupDet] - -AS -BEGIN - SET NOCOUNT ON; - - -- Create a temporary table variable to hold the output actions. - DECLARE @SummaryOfChanges TABLE(Change VARCHAR(20)); - - SET XACT_ABORT ON - - BEGIN TRAN - - -- vado ad aggiornare i dati dei gruppi di matrici SOLO x i campi <> 0 ( li ritengo come non passati ) - MERGE INTO dbo.DiesGroupDet AS Target - USING ( SELECT * FROM ext.DiesGroupRaw ) - AS Source - ON Target.CodDiesGroup = Source.CodDiesGroup - WHEN MATCHED THEN - UPDATE SET Price = CASE Source.Price WHEN 0 THEN Target.Price ELSE Source.Price END - , QtyTot = CASE Source.QtyTot WHEN 0 THEN Target.QtyTot ELSE Source.QtyTot END - , QtyEOL = CASE Source.QtyEOL WHEN 0 THEN Target.QtyEOL ELSE Source.QtyEOL END - , ExpLife = CASE Source.ExpLife WHEN 0 THEN Target.ExpLife ELSE Source.ExpLife END - , EOLLife = CASE Source.EOLLife WHEN 0 THEN Target.EOLLife ELSE Source.EOLLife END - , DateMod = GETDATE() - , UserMod = 'UPDATE_DiesGroupRaw' - WHEN NOT MATCHED BY TARGET THEN - INSERT ( CodDiesGroup, Price, QtyTot, QtyEOL, ExpLife, EOLLife, DateMod, UserMod ) - VALUES ( Source.CodDiesGroup, Source.Price, Source.QtyTot, Source.QtyEOL, Source.ExpLife, Source.EOLLife, GETDATE(), 'INSERT_DiesGroupRaw' ) --- VALUES ( CodDiesGroup, 0, 1, 0, 0.1, 0.1 ) -- mi da errori in calcoli successivi altrimenti con 0 a ExpLife e EOLLife - OUTPUT $action INTO @SummaryOfChanges; - - COMMIT TRAN - - -- Query the results of the table variable. - SELECT Change, COUNT(*) AS CountPerChange - FROM @SummaryOfChanges - GROUP BY Change; -END -GO -PRINT N'Creating [ext].[stp_mergeAgentsDet]...'; - - -GO - --- ============================================= --- Author: S.E. Locatelli --- Create date: 2013.12.03 --- Description: Procedura per import dati in AgentsDet da dati ClientsRaw --- ============================================= -CREATE PROCEDURE [ext].[stp_mergeAgentsDet] -( - @source NVARCHAR(20) = 'ClientsRaw' -- nome della tabella sorgente tra ProductionLogRaw e AgentssRaw -) -AS -BEGIN - SET NOCOUNT ON; - - -- Create a temporary table variable to hold the output actions. - DECLARE @SummaryOfChanges TABLE(Change VARCHAR(20)); - - -- import con MERGE... verifico tipo di caricamento richiesto! - IF @source = 'ClientsRaw' -- carico da anagrafica - BEGIN - MERGE INTO AgentsDet AS Target - USING (SELECT DISTINCT CodAg FROM ext.ClientsRaw) - AS Source - ON Target.CodAg = Source.CodAg - --WHEN MATCHED THEN - -- UPDATE SET AgentsName = Source.AgentsName, CodAg = Source.CodAg, ZipCode = Source.ZipCode, City = Source.City, [State] = Source.[State], Nation = Source.Nation - WHEN NOT MATCHED BY TARGET THEN - INSERT (CodAg, Firstname, Lastname, QuotaProvvAg) VALUES (CodAg, '#### - '+ CodAg, '#### - ' + CodAg, 0) - OUTPUT $action INTO @SummaryOfChanges; - - END - - -- Query the results of the table variable. - SELECT Change, COUNT(*) AS CountPerChange - FROM @SummaryOfChanges - GROUP BY Change; -END -GO -PRINT N'Creating [ext].[stp_updateProductionLog]...'; - - -GO - --- ============================================= --- Author: S.E. Locatelli --- Create date: 2013.11.29 --- Description: Procedura per import dati in ProductionLog da dati ProductionLogRaw --- --- ATTENZIONE: dato l'intervallo temporale in ext.ProductionLogRaw eventuali dati precedenti in dbo.ProductionLog saranno eliminati --- ============================================= -CREATE PROCEDURE [ext].[stp_updateProductionLog] - -AS -BEGIN - SET NOCOUNT ON; - - -- Create a temporary table variable to hold the output actions. - DECLARE @deleted INT = 0 - ,@inserted INT = 0 - ,@fromDate DATETIME = GETDATE() - ,@toDate DATETIME = GETDATE() - - -- primo step: calcolo inizio/fine periodo... - SELECT @fromDate=MIN(EventStart), @toDate=MAX(EventStart) FROM ext.ProductionLogRaw - - - -- secondo step: elimino dal tracciato tutti i dati dal periodo indicato - DELETE FROM dbo.ProductionLog - WHERE EventStart BETWEEN @fromDate AND @toDate - - SELECT @deleted = ISNULL(@@ROWCOUNT,0) - - -- inserisco i nuovi dati - INSERT INTO dbo.ProductionLog - SELECT * FROM ext.ProductionLogRaw - - SELECT @inserted = ISNULL(@@ROWCOUNT,0) - - -- riporto in output quanto eliminato/inserito - SELECT @deleted as RecDeleted, @inserted as RecInserted - -END -GO -PRINT N'Creating [ext].[stp_mergeRawMat]...'; - - -GO - --- ============================================= --- Author: S.E. Locatelli --- Create date: 2013.12.02 --- Description: Procedura per import dati in PackagDet da dati ProductionLogRaw/PackagRaw --- ============================================= -CREATE PROCEDURE [ext].[stp_mergeRawMat] -( - @source NVARCHAR(20) = 'ProductionLogRaw' -- nome della tabella sorgente tra ProductionLogRaw e PackagRaw -) -AS -BEGIN - SET NOCOUNT ON; - - -- Create a temporary table variable to hold the output actions. - DECLARE @SummaryOfChanges TABLE(Change VARCHAR(20)); - - -- import con MERGE... verifico tipo di caricamento richiesto! - IF @source = 'ProductionLogRaw' -- carico da tracciato produzione - BEGIN - MERGE INTO RawMatDet AS Target - USING (SELECT DISTINCT RawMat FROM ext.ProductionLogRaw) - AS Source - ON Target.RawMat = Source.RawMat - --WHEN MATCHED THEN - -- UPDATE SET PackagName = Source.PackagName - WHEN NOT MATCHED BY TARGET THEN - INSERT (RawMat, ProcCost, ProcYield, CSR) VALUES (RawMat, 0, 0, 0) - OUTPUT $action INTO @SummaryOfChanges; - - END - --ELSE IF @source = 'PackagRaw' -- carico da anagrafica - -- BEGIN - -- MERGE INTO PackagDet AS Target - -- USING (SELECT CodPackag, PackagDesc, RMCost, RMWeight, Tare, FullWeight FROM ext.PackagRaw) - -- AS Source - -- ON Target.CodPackag = Source.CodPackag - -- WHEN MATCHED THEN - -- UPDATE SET PackagDesc = Source.PackagDesc, RMCost = Source.RMCost, RMWeight = Source.RMWeight, Tare = Source.Tare, FullWeight = Source.FullWeight - -- WHEN NOT MATCHED BY TARGET THEN - -- INSERT (CodPackag, PackagDesc, RMCost, RMWeight, Tare, FullWeight) VALUES (CodPackag, PackagDesc, RMCost, RMWeight, Tare, FullWeight) - -- OUTPUT $action INTO @SummaryOfChanges; - - -- END - - -- Query the results of the table variable. - SELECT Change, COUNT(*) AS CountPerChange - FROM @SummaryOfChanges - GROUP BY Change; -END -GO -PRINT N'Creating [ext].[stp_mergePackage2_OLD]...'; - - -GO - --- ============================================= --- Author: S.E. Locatelli --- Create date: 2014.01.15 --- Description: Procedura per import dati in Package2Item da dati ProductionLogRaw --- ============================================= -CREATE PROCEDURE [ext].[stp_mergePackage2_OLD] -( - @source NVARCHAR(20) = 'ProductionLogRaw' -- nome della tabella sorgente tra ProductionLogRaw e ItemsRaw -) -AS -BEGIN - SET NOCOUNT ON; - - - ---- Create a temporary table variable to hold the output actions. - --DECLARE @SummaryOfChanges TABLE(Change VARCHAR(20)); - - -- -- import con MERGE... verifico tipo di caricamento richiesto! - --IF @source = 'ProductionLogRaw' -- carico da tracciato produzione - -- BEGIN - -- MERGE INTO Package2 AS Target - -- USING ( - -- SELECT plr.CodPackag, SUM(QtyOUT) AS TotQta, COUNT(*) AS NumEv - -- , SUM(QtyOUT) / COUNT(*) AS PesoMedio - -- , SUM(QtyEXT) / COUNT(*) AS TaraMedia - -- FROM ext.ProductionLogRaw plr - -- INNER JOIN DiesDet dd ON plr.CodDies = dd.CodDies - -- WHERE ISNULL(plr.CodPackag, '') <> '' - -- GROUP BY plr.CodPackag - -- ) - -- AS Source - -- ON Target.CodPackag = Source.CodPackag - -- WHEN MATCHED THEN - -- UPDATE SET TotQty = Source.TotQta - -- , [Weight] = Source.PesoMedio - -- , Tare = Source.TaraMedia - -- WHEN NOT MATCHED BY TARGET THEN - -- INSERT (CodPackag, TotQty, [Weight], Tare) VALUES (CodPackag, TotQta, PesoMedio, TaraMedia) - -- OUTPUT $action INTO @SummaryOfChanges; - - -- END - ----ELSE IF @source = 'ItemsRaw' -- carico da anagrafica - ---- BEGIN - ---- MERGE INTO Item2Package AS Target - ---- USING (SELECT CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup FROM ItemsRaw) - ---- AS Source - ---- ON Target.CodItem = Source.CodItem - ---- WHEN MATCHED THEN - ---- UPDATE SET ItemDescr = Source.ItemDescr, CodPlant = Source.CodPlant, UnitWeight = Source.UnitWeight, CodItemGroup = Source.CodItemGroup - ---- WHEN NOT MATCHED BY TARGET THEN - ---- INSERT (CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup) VALUES (CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup) - ---- OUTPUT $action INTO @SummaryOfChanges; - - ---- END - - ---- Query the results of the table variable. - --SELECT Change, COUNT(*) AS CountPerChange - --FROM @SummaryOfChanges - --GROUP BY Change; -END -GO -PRINT N'Creating [ext].[stp_mergePackage2Item_OLD]...'; - - -GO - --- ============================================= --- Author: S.E. Locatelli --- Create date: 2014.01.15 --- Description: Procedura per import dati in Package2Item da dati ProductionLogRaw --- ============================================= -CREATE PROCEDURE [ext].[stp_mergePackage2Item_OLD] -( - @source NVARCHAR(20) = 'ProductionLogRaw' -- nome della tabella sorgente tra ProductionLogRaw e ItemsRaw -) -AS -BEGIN - SET NOCOUNT ON; - - - ---- Create a temporary table variable to hold the output actions. - --DECLARE @SummaryOfChanges TABLE(Change VARCHAR(20)); - - -- -- import con MERGE... verifico tipo di caricamento richiesto! - --IF @source = 'ProductionLogRaw' -- carico da tracciato produzione - -- BEGIN - -- MERGE INTO Package2Item AS Target - -- USING ( - -- SELECT dd.CodItem, plr.CodPackag, SUM(QtyOUT) AS TotQta, COUNT(*) AS NumEv - -- , SUM(QtyOUT) / COUNT(*) AS PesoMedio - -- , SUM(QtyEXT) / COUNT(*) AS TaraMedia - -- FROM ext.ProductionLogRaw plr - -- INNER JOIN DiesDet dd ON plr.CodDies = dd.CodDies - -- WHERE ISNULL(plr.CodPackag, '') <> '' - -- GROUP BY dd.CodItem, plr.CodPackag - -- ) - -- AS Source - -- ON Target.CodItem = Source.CodItem AND Target.CodPackag = Source.CodPackag - -- WHEN MATCHED THEN - -- UPDATE SET TotQty = Source.TotQta - -- , [Weight] = Source.PesoMedio - -- , Tare = Source.TaraMedia - -- WHEN NOT MATCHED BY TARGET THEN - -- INSERT (CodItem, CodPackag, TotQty, [Weight], Tare) VALUES (CodItem, CodPackag, TotQta, PesoMedio, TaraMedia) - -- OUTPUT $action INTO @SummaryOfChanges; - - -- END - ----ELSE IF @source = 'ItemsRaw' -- carico da anagrafica - ---- BEGIN - ---- MERGE INTO Item2Package AS Target - ---- USING (SELECT CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup FROM ItemsRaw) - ---- AS Source - ---- ON Target.CodItem = Source.CodItem - ---- WHEN MATCHED THEN - ---- UPDATE SET ItemDescr = Source.ItemDescr, CodPlant = Source.CodPlant, UnitWeight = Source.UnitWeight, CodItemGroup = Source.CodItemGroup - ---- WHEN NOT MATCHED BY TARGET THEN - ---- INSERT (CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup) VALUES (CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup) - ---- OUTPUT $action INTO @SummaryOfChanges; - - ---- END - - ---- Query the results of the table variable. - --SELECT Change, COUNT(*) AS CountPerChange - --FROM @SummaryOfChanges - --GROUP BY Change; -END -GO -PRINT N'Creating [ext].[stp_mergeCost2Plant]...'; - - -GO - - - --- ============================================= --- Author: S.E. Locatelli --- Create date: 2013.12.03 --- Description: Procedura per import dati in Cost2Plant da dati ProductionLogRaw --- ============================================= -CREATE PROCEDURE [ext].[stp_mergeCost2Plant] -( - @source NVARCHAR(20) = 'ProductionLogRaw' -- nome della tabella sorgente tra ProductionLogRaw -) -AS -BEGIN - SET NOCOUNT ON; - - -- Create a temporary table variable to hold the output actions. - DECLARE @SummaryOfChanges TABLE(Change VARCHAR(20)); - - -- import con MERGE... verifico tipo di caricamento richiesto! - IF @source = 'ProductionLogRaw' -- carico da tracciato produzione - BEGIN - MERGE INTO Cost2Plant AS Target - USING (SELECT DISTINCT CodPlant, ProcessNum FROM ext.ProductionLogRaw) - AS Source - ON Target.CodPlant = Source.CodPlant - --WHEN MATCHED THEN - -- UPDATE SET PackagName = Source.PackagName - WHEN NOT MATCHED BY TARGET THEN - INSERT (CodPlant, ProcessNum, FC, VC, OH, SC, QuotaPlantStd, QuotaManStd) VALUES (CodPlant, ProcessNum, 0,0,0,0,1,1 ) --> i valori sono stati caricati a mano??? - OUTPUT $action INTO @SummaryOfChanges; - - END - --ELSE IF @source = 'PackagRaw' -- carico da anagrafica - -- BEGIN - -- MERGE INTO PackagDet AS Target - -- USING (SELECT CodPackag, PackagDesc, RMCost, RMWeight, Tare, FullWeight FROM ext.PackagRaw) - -- AS Source - -- ON Target.CodPackag = Source.CodPackag - -- WHEN MATCHED THEN - -- UPDATE SET PackagDesc = Source.PackagDesc, RMCost = Source.RMCost, RMWeight = Source.RMWeight, Tare = Source.Tare, FullWeight = Source.FullWeight - -- WHEN NOT MATCHED BY TARGET THEN - -- INSERT (CodPackag, PackagDesc, RMCost, RMWeight, Tare, FullWeight) VALUES (CodPackag, PackagDesc, RMCost, RMWeight, Tare, FullWeight) - -- OUTPUT $action INTO @SummaryOfChanges; - - -- END - - -- Query the results of the table variable. - SELECT Change, COUNT(*) AS CountPerChange - FROM @SummaryOfChanges - GROUP BY Change; -END -GO -PRINT N'Creating [ext].[stp_mergeDiesDet]...'; - - -GO - - - --- ============================================= --- Author: S.E. Locatelli --- Create date: 2013.12.02 --- Description: Procedura per import dati in DiesDet da dati ProductionLogRaw/DiesRaw --- ============================================= -CREATE PROCEDURE [ext].[stp_mergeDiesDet] - -AS -BEGIN - SET NOCOUNT ON; - - -- Create a temporary table variable to hold the output actions. - DECLARE @SummaryOfChanges TABLE(Change VARCHAR(20)); - - SET XACT_ABORT ON - - BEGIN tran - - -- ======================================= - -- ora aggiungiamo eventuali item mancanti - -- ======================================= - MERGE INTO ItemDet AS Target - USING (SELECT DISTINCT CodItem FROM ext.DiesRaw) - AS Source - ON Target.CodItem = Source.CodItem - --WHEN MATCHED THEN - -- UPDATE SET ClientName = Source.ClientName - WHEN NOT MATCHED BY TARGET THEN - INSERT (CodItem, ItemDescr, CodPlant, UnitWeight, CodItemGroup) VALUES (CodItem, '#### - ' + CodItem, '', 0, '') - OUTPUT $action INTO @SummaryOfChanges; - - -- ================================================= - -- Carico i dati dei GRUPPI DI MATRICI ( DiesGroupDet ) mancanti - -- ================================================= - MERGE INTO dbo.DiesGroupDet AS Target - USING ( - SELECT CodDiesGroup - , ISNULL ( AVG( Price ),0) AS Price -- prezzo medio ( valori nulli non considerati ) - , COUNT (*) AS QtyTot -- N. Matrici nel gruppo - , COUNT ( CASE Active WHEN 0 THEN 1 END ) AS QtyEOL -- Qta Matrici rottamate - , ISNULL( AVG( ExpLife ), 0 ) AS ExpLife -- Vita stimata matrice ( iniziale ) - , ISNULL( AVG ( CASE WHEN Active = 0 AND ActLife > 5000 THEN ActLife END ),0 ) AS EOLLife -- solo Matrici rottamate e vita > 5000KG - FROM ext.DiesRaw - GROUP BY CodDiesGroup - ) AS Source - ON Target.CodDiesGroup = Source.CodDiesGroup - --WHEN MATCHED THEN - -- UPDATE SET CodDiesGroup = Source.CodDiesGroup, Price = Source.Price, QtyTot = Source.QtyTot - -- , QtyEOL = Source.QtyEOL, ExpLife = Source.ExpLife, EOLLife = Source.EOLLife - -- , DateMod = GETDATE(), UserMod = 'IMPORT_DiesRaw' - - WHEN NOT MATCHED BY TARGET THEN - INSERT ( CodDiesGroup, Price, QtyTot, QtyEOL, ExpLife, EOLLife, DateMod ,UserMod ) - VALUES ( CodDiesGroup, Source.Price, Source.QtyTot, Source.QtyEOL, Source.ExpLife, Source.EOLLife, GETDATE(), 'IMPORT_DiesRaw' ) -- mi da errori in calcoli successivi altrimenti con zero a ExpLife e EOLLife - OUTPUT $action INTO @SummaryOfChanges; - - -- ======================================= - -- ora carico i dati delle singole matrici - -- ======================================= - MERGE INTO DiesDet AS Target - USING (SELECT CodDies, HoleNum, CodItem, CodDiesGroup, Price, ExpLife, ActLife, Active FROM ext.DiesRaw) - AS Source - ON Target.CodDies = Source.CodDies - WHEN MATCHED THEN - UPDATE SET HoleNum = Source.HoleNum, CodItem = Source.CodItem, CodDiesGroup = Source.CodDiesGroup, Price = Source.Price, ExpLife = Source.ExpLife, ActLife = Source.ActLife, Active = Source.Active - WHEN NOT MATCHED BY TARGET THEN - INSERT (CodDies, HoleNum, CodItem, CodDiesGroup, Price, ExpLife, ActLife, Active) VALUES (CodDies, HoleNum, CodItem, CodDiesGroup, Price, ExpLife, ActLife, Active) - OUTPUT $action INTO @SummaryOfChanges; - - -- ================================================= - -- Aggiorno i dati dei GRUPPI DI MATRICI ( DiesGroupDet ) - -- con tutti i dati presenti in dbo.DiesDet ( nel caso di aggiornamento parziale ) - -- ================================================= - MERGE INTO dbo.DiesGroupDet AS Target - USING ( - SELECT CodDiesGroup - , ISNULL ( AVG( Price ),0) AS Price -- prezzo medio ( valori nulli non considerati ) - , COUNT (*) AS QtyTot -- N. Matrici nel gruppo - , COUNT ( CASE Active WHEN 0 THEN 1 END ) AS QtyEOL -- Qta Matrici rottamate - , ISNULL( AVG( ExpLife ), 0 ) AS ExpLife -- Vita stimata matrice ( iniziale ) - , ISNULL( AVG ( CASE WHEN Active = 0 AND ActLife > 5000 THEN ActLife END ),0 ) AS EOLLife -- solo Matrici rottamate e vita > 5000KG - FROM dbo.DiesDet - GROUP BY CodDiesGroup - ) AS Source - ON Target.CodDiesGroup = Source.CodDiesGroup - WHEN MATCHED THEN - UPDATE SET CodDiesGroup = Source.CodDiesGroup, Price = Source.Price, QtyTot = Source.QtyTot - , QtyEOL = Source.QtyEOL, ExpLife = Source.ExpLife, EOLLife = Source.EOLLife - , DateMod = GETDATE(), UserMod = 'UPDATE_DiesDet' - - WHEN NOT MATCHED BY TARGET THEN -- nel caso siano mancanti - INSERT ( CodDiesGroup, Price, QtyTot, QtyEOL, ExpLife, EOLLife, DateMod ,UserMod ) - VALUES ( CodDiesGroup, Source.Price, Source.QtyTot, Source.QtyEOL, Source.ExpLife, Source.EOLLife, GETDATE(), 'IMPORT_DiesDet' ) - OUTPUT $action INTO @SummaryOfChanges; - - ---- a questo punto calcolo il VERO update dalle inforamzioni di dbo.DiesDet --> dbo.DiesGroupDet - --MERGE INTO dbo.DiesGroupDet AS Target - --USING ( - -- SELECT coddiesgroup, - -- Avg(Isnull(price, 0)) AS Price, - -- Count(*) AS QtyTot, - -- Count(*) - Sum(Active) AS QtyEOL, - -- Avg(Isnull(ExpLife, 0.1)) AS ExpLife, -- mi da errori in calcoli successivi altrimenti con zero a ExpLife e EOLLife - -- Sum(Isnull(ActLife * (1 - Active), 0)) / (Count(*) - Sum(Active)) AS EOLLife - -- FROM dbo.DiesDet - -- WHERE ActLife > 5000 - -- GROUP BY CodDiesGroup - -- HAVING Count(*) > Sum(Active) -- ci siano rottamate - -- ) - -- AS Source - --ON Target.CodDiesGroup = Source.CodDiesGroup - --WHEN MATCHED THEN - -- UPDATE SET Price = Source.Price, QtyTot = Source.QtyTot, QtyEOL = Source.QtyEOL, ExpLife = Source.ExpLife, EOLLife = Source.EOLLife - --OUTPUT $action INTO @SummaryOfChanges; - - COMMIT tran - - -- Query the results of the table variable. - SELECT Change, COUNT(*) AS CountPerChange - FROM @SummaryOfChanges - GROUP BY Change; -END -GO -PRINT N'Creating [ext].[stp_mergePlantsDet]...'; - - -GO - - --- ============================================= --- Author: S.E. Locatelli --- Create date: 2013.12.03 --- Description: Procedura per import dati in PlantsDet da dati ProductionLogRaw --- ============================================= -CREATE PROCEDURE [ext].[stp_mergePlantsDet] -( - @source NVARCHAR(20) = 'ProductionLogRaw' -- nome della tabella sorgente tra ProductionLogRaw e PackagRaw -) -AS -BEGIN - SET NOCOUNT ON; - - -- Create a temporary table variable to hold the output actions. - DECLARE @SummaryOfChanges TABLE(Change VARCHAR(20)); - - -- import con MERGE... verifico tipo di caricamento richiesto! - IF @source = 'ProductionLogRaw' -- carico da tracciato produzione - BEGIN - MERGE INTO PlantsDet AS Target - USING (SELECT DISTINCT CodPlant FROM ext.ProductionLogRaw) - AS Source - ON Target.CodPlant = Source.CodPlant - --WHEN MATCHED THEN - -- UPDATE SET PackagName = Source.PackagName - WHEN NOT MATCHED BY TARGET THEN - INSERT (CodPlant, Descript) VALUES (CodPlant, 'Plant - ' + CodPlant) - OUTPUT $action INTO @SummaryOfChanges; - - END - --ELSE IF @source = 'PackagRaw' -- carico da anagrafica - -- BEGIN - -- MERGE INTO PackagDet AS Target - -- USING (SELECT CodPackag, PackagDesc, RMCost, RMWeight, Tare, FullWeight FROM ext.PackagRaw) - -- AS Source - -- ON Target.CodPackag = Source.CodPackag - -- WHEN MATCHED THEN - -- UPDATE SET PackagDesc = Source.PackagDesc, RMCost = Source.RMCost, RMWeight = Source.RMWeight, Tare = Source.Tare, FullWeight = Source.FullWeight - -- WHEN NOT MATCHED BY TARGET THEN - -- INSERT (CodPackag, PackagDesc, RMCost, RMWeight, Tare, FullWeight) VALUES (CodPackag, PackagDesc, RMCost, RMWeight, Tare, FullWeight) - -- OUTPUT $action INTO @SummaryOfChanges; - - -- END - - -- Query the results of the table variable. - SELECT Change, COUNT(*) AS CountPerChange - FROM @SummaryOfChanges - GROUP BY Change; -END -GO -PRINT N'Creating [ext].[stp_mergeOrdersHist]...'; - - -GO - --- ============================================= --- Author: Steamware --- Mod. date: 2014.05.22 --- Description: Procedura per import dati in OrdersHist da dati OrdersHistRaw --- ============================================= -CREATE PROCEDURE [ext].[stp_mergeOrdersHist] -( - @source NVARCHAR(20) = 'OrdersHistRaw' -- nome della tabella sorgente -) -AS -BEGIN - SET NOCOUNT ON; - - -- Create a temporary table variable to hold the output actions. - DECLARE @SummaryOfChanges TABLE(Change VARCHAR(20)); - - -- import con MERGE... verifico tipo di caricamento richiesto! - IF @source = 'OrdersHistRaw' -- carico da tracciato produzione - BEGIN - - MERGE INTO dbo.OrdersHist AS Target - USING( - SELECT OrdNum, - OrdRow, - OrdDate, - CodClient, - CodItem, - RawMat, - RawMatCost, - BatchQty, - CodInco, - OrdPrice, - RawMatExtraCost, - PriceOff, - OrdQty, - ProvvCost - FROM ext.OrdersHistRaw ) AS Source - ON Target.Ordnum = Source.Ordnum AND Target.Ordrow = Source.Ordrow - - -- non faccio aggiornamento dei dati oppure potrei farlo solo per le righe non elaborate cioè con Codquote non valorizzato - --WHEN MATCHED - --THEN UPDATE SET - -- Orddate = Source.OrdDate, - -- Codclient = Source.CodClient, - -- Coditem = Source.CodItem, - -- Rawmat = Source.RawMat, - -- Rawmatcost = Source.RawMatCost, - -- Batchqty = Source.BatchQty, - -- Codinco = Source.CodInco, - -- Ordprice = Source.OrdPrice, - -- Quotetype = Source.QuoteType, - -- Codquote = Source.CodQuote, - -- Quoterev = Source.QuoteRev, - -- Endcalc = Source.EndCalc - - WHEN NOT MATCHED BY TARGET - THEN INSERT ( OrdNum, - OrdRow, - OrdDate, - CodClient, - CodItem, - RawMat, - RawMatCost, - BatchQty, - CodInco, - OrdPrice, - RawMatExtraCost, - PriceOff, - OrdQty, - ProvvCost - --,Quotetype - --,Codquote - --,Quoterev - --,Endcalc - ) - VALUES( OrdNum, OrdRow, OrdDate, CodClient, CodItem, RawMat, RawMatCost, BatchQty, CodInco, OrdPrice, RawMatExtraCost, PriceOff, OrdQty, ProvvCost ) -- , QuoteType, CodQuote, QuoteRev, EndCalc ) - OUTPUT $action INTO @SummaryOfChanges; - END - - -- aggiorno indici tabella ( attenzione durata per tabelle grandi ) - ALTER INDEX ALL ON dbo.OrdersHist - REBUILD WITH ( FILLFACTOR = 100, SORT_IN_TEMPDB = ON ) ; -- ,STATISTICS_NORECOMPUTE = ON ) - - -- aggiorno statistiche tabella - UPDATE STATISTICS dbo.OrdersHist WITH FULLSCAN; - - -- Query the results of the table variable. - SELECT Change, COUNT(*) AS CountPerChange - FROM @SummaryOfChanges - GROUP BY Change; -END -GO -PRINT N'Creating [dbo].[stp_QuoteFull_Q_update]...'; - - -GO --- ============================================= --- Author: Steamware --- Create date: 2014.02.07 --- Description: update valori tab QuoteList --- ============================================= -CREATE PROCEDURE [dbo].[stp_QuoteFull_Q_update] ( - @Original_QuoteType CHAR(1) = 'Q' - ,@Original_CodQuote BIGINT = 0 - ,@Original_QuoteRev INT = 0 - ,@PriceOff DECIMAL(9, 6) = 0 - ) -AS -BEGIN - --- aggiorno valori! - UPDATE QuoteList - SET PriceOff = @PriceOff - WHERE QuoteType = @Original_QuoteType - AND CodQuote = @Original_CodQuote - AND QuoteRev = @Original_QuoteRev - - -- update dei valori calcolati! - EXEC stp_QL_fullDataUpdate @Original_QuoteType - ,@Original_CodQuote - ,@Original_QuoteRev -END -GO -PRINT N'Creating [dbo].[stp_test]...'; - - -GO - - -CREATE PROCEDURE [dbo].[stp_test] -AS - -- Test per funzionamento temp table - SELECT TOP 1 * INTO #QuoteParam FROM dbo.ClientDet - EXEC stp_QL_update 'Q', 1312130001, 0 --WITH RECOMPILE - SELECT * FROM #QuoteParam - DROP TABLE #QuoteParam -GO PRINT N'Creating [dbo].[stp_QLF_UpdCosts]...'; @@ -14418,303 +14615,19 @@ WHERE QuoteType = @Original_QuoteType RETURN GO -PRINT N'Creating [dbo].[stp_QLF_UpdQState]...'; +PRINT N'Creating [dbo].[stp_test]...'; GO --- ============================================= --- Author: Steamware - S.E.L. --- Create date: 2014.04.16 --- Description: update di un record in QL (Full) e poi aggiorna a cascata --- ============================================= -CREATE PROCEDURE [dbo].[stp_QLF_UpdQState] -( - @Original_QuoteType CHAR(1) = 'Q', - @Original_CodQuote BIGINT = 0, - @Original_QuoteRev INT = 0, - @IdxQState INT -) + +CREATE PROCEDURE [dbo].[stp_test] AS - -SET XACT_ABORT ON; -BEGIN TRAN - - -- aggiorno valori QuoteList! - UPDATE QuoteList - SET IdxQState = @IdxQState - WHERE QuoteType = @Original_QuoteType - AND CodQuote = @Original_CodQuote - AND QuoteRev = @Original_QuoteRev - - - -- update dei valori calcolati! - EXEC stp_QL_fullDataUpdate @Original_QuoteType - ,@Original_CodQuote - ,@Original_QuoteRev - ,'Y' - -COMMIT TRAN - - --- seleziono intera riga! - -SELECT * -FROM v_QuoteFull_Q -WHERE QuoteType = @Original_QuoteType - AND CodQuote = @Original_CodQuote - AND QuoteRev = @Original_QuoteRev - - -RETURN -GO -PRINT N'Creating [dbo].[stp_zzz_scratch]...'; - - -GO - - - - - - --- ============================================= --- Author: S.E. Locatelli --- Create date: 2013.11.20 --- Description: Procedure x calcoli e test import dati e prove varie --- ============================================= -CREATE PROCEDURE [dbo].[stp_zzz_scratch] -AS -BEGIN - - -- dichiaro e imposto periodo di calcolo dei valori - -- andrà impostato in una tabella e mi determinerà la versione dei dati - DECLARE @dateFrom AS DateTime; - DECLARE @dateTo AS DateTime; - - SET @dateFrom = '20100101' - SET @dateTo = '20130929' - - -- ========================================== - -- IMPORTAZIONE DATI CSV - -- ========================================== - exec tmp.importProductionLogRaw - exec tmp.importClientsRaw - exec tmp.importTranspCostRaw - exec tmp.importItemsRaw - exec tmp.importPackagRaw - exec tmp.importDiesRaw - -- questo sotto va fatto solo se ci sono dati da integrare in DiesRaw - exec tmp.importDiesGroupRaw - - select top 10 * FROM tmp.ProductionLogRaw - select * FROM tmp.ClientsRaw - select * FROM tmp.ItemsRaw - select * FROM tmp.PackagRaw - select * FROM tmp.DiesRaw - select * FROM tmp.DiesGroupRaw - - -- Se ci sono record con Item doppi li cancello???? - SELECT CodItem,COUNT(*) as qty - FROM ( SELECT DISTINCT * FROM tmp.ItemsRaw ) AS a - GROUP BY CodItem - having COUNT(*)>1 - - delete from tmp.ItemsRaw - where CodItem IN - ( - SELECT CodItem - FROM ( SELECT DISTINCT * FROM tmp.ItemsRaw ) AS a - GROUP BY CodItem - having COUNT(*)>1 - ) - - - -- ========================================== - -- CARICO DATI IN RAW ( da Char a Tipi corretti ) - -- ========================================== - exec tmp.convertClientsRaw - exec tmp.convertTranspCostRaw - exec tmp.convertItemsRaw - exec tmp.convertProductionLogRaw - exec tmp.convertPackagRaw - exec tmp.convertDiesRaw - - -- necessario se integriamo i dati x i gruppi di matrici con un file - exec tmp.convertDiesGroupRaw - - select top 10 * FROM ext.ProductionLogRaw - select * FROM ext.ClientsRaw - select * FROM ext.ItemsRaw - select * FROM ext.PackagRaw - select * FROM ext.DiesRaw - SELECT * FROM ext.DiesGroupRaw - - -- elimino a mano dato con oltre 68 anni di evento... - select * - --delete - from ext.ProductionLogRaw - where DATEDIFF(YEAR,EventStart,EventEnd)> 10 - - exec ext.stp_mergeAgentsDet - exec ext.stp_mergeClientDet 'ProductionLogRaw' - exec ext.stp_mergeClientDet 'ClientsRaw' - exec ext.stp_mergeTranspCostDet 'TranspCostRaw' - exec ext.stp_mergePlantsDet - exec ext.stp_mergeCost2Plant - exec ext.stp_mergeItemDet 'ItemsRaw' - exec ext.stp_mergePackagDet 'ProductionLogRaw' -- 'PackagRaw' - - -- QUESTE ANDREBBERO ESEGUITO DOPO ext.stp_updateProductionLog prendendo in considerazione un periodo di tempo - -- di tre anno o comunque stabilito a priori predefinito ( configurabile a sistema ) - -- DA VERIFICARE - exec ext.stp_mergePackage2ItemClient 'ProductionLog', @dateFrom, @dateTo - exec ext.stp_mergePackage2Item 'ProductionLog', @dateFrom, @dateTo - exec ext.stp_mergePackage2 'ProductionLog', @dateFrom, @dateTo - - exec ext.stp_mergeDiesDet - -- se ricarico diesgroup... ricarico solo i campi che nel file sono <> '' - exec ext.stp_mergeDiesGroupDet - - exec ext.stp_mergeRawMat - exec ext.stp_updateProductionLog - - ---- aggiorno quota agenti a 0.037 - ----update AgentsDet set quotaperc=0.0374 - - - SELECT DISTINCT dr.CodItem FROM ext.DiesRaw dr LEFT OUTER JOIN ItemDet id ON dr.CodItem = id.CodItem - where id.CodItemGroup is null - - select * from ClientDet - select * from ItemDet - select * from Package2ItemClient - select * from Package2Item - select * from Package2 - select * from PackagDet - select * from DiesGroupDet where EOLLife > 0 - select * from DiesDet - select * from DiesGroupDet - select * from AgentsDet - select * from PlantsDet - select * from Cost2Plant - select * from utilities - select top 100 * from ProductionLog - - --update tmp.ProductionLogRaw - --set - -- okPr = 1 - -- , okDi = 1 - -- , okQM = 1 - -- , okSc = 1 - - select distinct ProcessNum from ProductionLog - - select top 10 * from ext.ProductionLogRaw - - - ---- fix errore packaging - --update tmp.ProductionLogRaw - --SET CodPackag='4' - --where CodPackag LIKE '%4%' and CodPackag <> '4' - --select * from tmp.ProductionLogRaw where CodPackag LIKE '%4%' and CodPackag <> '4' - - SELECT p.CodDies, CodItem, CodClient, CodPackag, p.* FROM ext.ProductionLogRaw AS p - LEFT JOIN dbo.DiesDet AS d ON p.CodDies = d.CodDies - WHERE CodItem IS NULL - - - - -- parte CALCOLI!!! - - select * from QuoteList - - select * from ClientDet where CodClient='05000001048' - - select * from itemdet - where CodItem like '1PT00102%' - - select * from RawMatDet - - - --Q 1312130001 0 05000001048 1PT00102 A 7020 7673,400 1000 CPT NULL NULL NULL NULL - - SELECT --TOP 10 - dd.CodItem, pl.RawMat, dd.CodItem + '-' + pl.RawMat as KeyAM, dd.CodDiesGroup, pl.CodPlant, dd.HoleNum - ,dd.CodItem + '-' + pl.RawMat + '-' + pl.CodPlant + '-' + CAST(dd.HoleNum AS NVARCHAR(19)) as KeyAMIL - ,0 as NumSMED -- numero cambi, da sistemare... - , SUM(QtyOUT) as KgTeorici, SUM(Duration) AS Durata - ,ISNULL(SUM(QtyOUT),0)/ISNULL(SUM(Duration), 1) as ProduttTeo - FROM ProductionLog pl INNER JOIN DiesDet dd ON pl.CodDies=dd.CodDies - WHERE pl.ProcessNum='01' and pl.EventType=1 - GROUP BY dd.CodItem, pl.RawMat, dd.CodDiesGroup, pl.CodPlant, dd.HoleNum - ORDER BY dd.CodItem, pl.RawMat, dd.CodDiesGroup, SUM(QtyOUT) DESC - - -- ========================================== - -- re-insert dei dati di produzione x statistiche - -- ========================================== - exec stp_TPS_upsert @dateFrom, @dateTo - exec stp_TD_upsert @dateFrom , @dateTo --- exec stp_TI_upsert @dateFrom , @dateTo -- adesso sono già calcolati e inseriti in Package2 / Package2Item - - -- ========================================== - -- salvo nuova revisione dati di produzione... - -- Va messa in ogni procedura di update con 'procedura' e versione anno-mese-giorno - -- ========================================== - INSERT INTO RevHistory - SELECT 'P', ISNULL(MAX(RevNum),0) + 1, GETDATE(), 'Aggiornamento dati di produzione x fase 04 ' + CONVERT(NVARCHAR(20), @dateFrom, 120) + ' --> ' +CONVERT(NVARCHAR(20), @dateTo, 120) - FROM RevHistory - WHERE RevType = 'P' - - - select * from RevHistory - - -- simulazione tempo di calcolo: circa 50/sec - ---- aggiornamento dei dati dell'offerta in oggetto - --DECLARE @tick DATETIME, - -- @idx INT = 100 - --SET @tick = GETDATE() - --WHILE @idx > 0 - --BEGIN - -- EXEC stp_QL_update 'Q', 1312130001, 0 - -- SELECT @idx = @idx - 1 - --END - --SELECT GETDATE() - @tick as tempo - - DECLARE @QuoteType CHAR(1) = 'Q', - @CodQuote BIGINT = 1312130001, - @QuoteRev INT = 0 - - EXEC stp_QL_update @QuoteType, @CodQuote, @QuoteRev - SELECT * FROM QuoteList WHERE QuoteType=@QuoteType AND CodQuote = @CodQuote AND QuoteRev = @QuoteRev - SELECT * FROM QuoteRM WHERE QuoteType=@QuoteType AND CodQuote = @CodQuote AND QuoteRev = @QuoteRev - SELECT * FROM QuoteWorkInt WHERE QuoteType=@QuoteType AND CodQuote = @CodQuote AND QuoteRev = @QuoteRev - SELECT * FROM QuoteWorkExt WHERE QuoteType=@QuoteType AND CodQuote = @CodQuote AND QuoteRev = @QuoteRev - SELECT * FROM QuoteOC WHERE QuoteType=@QuoteType AND CodQuote = @CodQuote AND QuoteRev = @QuoteRev - SELECT * FROM QuoteParam WHERE QuoteType=@QuoteType AND CodQuote = @CodQuote AND QuoteRev = @QuoteRev - - select top 10 * from ItemDet - - SELECT * FROM RawMatDet - - SELECT top 10 * FROM TabProdSc - SELECT top 10 * FROM TabDifett --- SELECT * FROM TabImbArt --- SELECT * FROM TabImbGrp - SELECT * FROM PackagDet - SELECT * FROM Package2 - - ---- test gestione selezione CodPackag corretto - --SELECT TOP 5 * FROM Package2ItemClient - --SELECT TOP 5 * FROM Package2Item - --SELECT TOP 5 * FROM Package2 - - SELECT dbo.f_getCodPackag('1EL00005', '05000001048') - --SELECT dbo.f_getCodPackag('1AN00001', '05000000137') - - - -END + -- Test per funzionamento temp table + SELECT TOP 1 * INTO #QuoteParam FROM dbo.ClientDet + EXEC stp_QL_update 'Q', 1312130001, 0 --WITH RECOMPILE + SELECT * FROM #QuoteParam + DROP TABLE #QuoteParam GO PRINT N'Creating [dbo].[stp_QL_insNew]...'; @@ -14775,64 +14688,6 @@ WHERE QuoteType = @QuoteType AND CodQuote = @CodQuote AND QuoteRev = @QuoteRev -RETURN -GO -PRINT N'Creating [dbo].[stp_QLS_UpdDiesPar]...'; - - -GO - --- ============================================= --- Author: Steamware - S.E.L. --- Create date: 2014.05.20 --- Description: update di un record in QL (Full) TIPO SIMULAZIONE e poi aggiorna a cascata --- ============================================= -CREATE PROCEDURE [dbo].[stp_QLS_UpdDiesPar] -( - @Original_QuoteType CHAR(1) = 'S', - @Original_CodQuote BIGINT = 0, - @Original_QuoteRev INT = 0, - @SamplePrice DECIMAL(18, 6), - @DiesPriceClientQuote DECIMAL(18, 6), - @DiesCommLife DECIMAL(18, 6), - @MonthSalesPrev INT -) -AS - -SET XACT_ABORT ON; -BEGIN TRAN - - -- @SamplePrice - EXEC stp_QSP_upsert @Original_QuoteType, @Original_CodQuote, @Original_QuoteRev, 'SamplePrice', @SamplePrice - - -- @DiesPriceClientQuote - EXEC stp_QSP_upsert @Original_QuoteType, @Original_CodQuote, @Original_QuoteRev, 'DiesPriceClientQuote', @DiesPriceClientQuote - - -- @DiesCommLife - EXEC stp_QSP_upsert @Original_QuoteType, @Original_CodQuote, @Original_QuoteRev, 'DiesCommLife', @DiesCommLife - - -- @MonthSalesPrev - EXEC stp_QSP_upsert @Original_QuoteType, @Original_CodQuote, @Original_QuoteRev, 'MonthSalesPrev', @MonthSalesPrev - - - -- update dei valori calcolati! - EXEC stp_QL_fullDataUpdate @Original_QuoteType - ,@Original_CodQuote - ,@Original_QuoteRev - ,'Y' - -COMMIT TRAN - - --- seleziono intera riga! - -SELECT * -FROM v_QuoteFull_Q -WHERE QuoteType = @Original_QuoteType - AND CodQuote = @Original_CodQuote - AND QuoteRev = @Original_QuoteRev - - RETURN GO PRINT N'Creating [dbo].[stp_SC2C_insertForDate]...'; @@ -14869,6 +14724,370 @@ RETURN END GO +PRINT N'Creating [dbo].[stp_QL_clone]...'; + + +GO +-- ============================================= +-- Author: Steamware +-- Create date: 2014.04.23 +-- Description: duplica record QuoteList +-- ============================================= +CREATE PROCEDURE [dbo].[stp_QL_clone] +( + @QuoteType CHAR(1) = 'Q', + @QuoteType_orig CHAR(1) = 'Q', + @CodQuote_orig BIGINT = 0, + @QuoteRev_orig INT = 0 +) +AS + +-- variabili +DECLARE @CodQuote BIGINT = 0, + @QuoteRev INT = 0 + +SET XACT_ABORT ON; +BEGIN TRAN + + -- calcolo nuovo record odierno + SELECT @CodQuote = dbo.f_getNewCodQuote() + + -- inserisco riga in QuoteList + INSERT INTO QuoteList(QuoteType, CodQuote, QuoteRev, CodClient, CodItem, UnitWeight, BatchQty, CodItemGroup, RawMat, CodInco, Note, PriceOff) + SELECT @QuoteType, @CodQuote, @QuoteRev as QuoteRev, CodClient, CodItem, UnitWeight, BatchQty, CodItemGroup, RawMat, CodInco, 'CLONE - ' + Note, PriceOff + FROM QuoteList + WHERE QuoteType = @QuoteType_orig + AND CodQuote = @CodQuote_orig + AND QuoteRev = @QuoteRev_orig + + -- ora inserisco in QuoteRM + INSERT INTO QuoteRM(QuoteType, CodQuote, QuoteRev, NumRM, RawMat, RawMatCost, RawMatExtraCost) + SELECT @QuoteType, @CodQuote, @QuoteRev as QuoteRev, NumRM, RawMat, RawMatCost, RawMatExtraCost + FROM QuoteRM + WHERE QuoteType = @QuoteType_orig + AND CodQuote = @CodQuote_orig + AND QuoteRev = @QuoteRev_orig + + + + -- se la scheda di destinazione è simulazione + IF(@QuoteType = 'S') + BEGIN + EXEC stp_QL_copyParamS @QuoteType, @QuoteType_orig, @CodQuote, @CodQuote_orig, @QuoteRev, @QuoteRev_orig + + /* + IF(@QuoteType_orig = 'S') + -- se partenza è S duplico dati accessori... + BEGIN + INSERT INTO QuoteSimPar(QuoteType, CodQuote, QuoteRev, NomePar, ValPar) + SELECT @QuoteType, @CodQuote, @QuoteRev, NomePar, ValPar + FROM QuoteSimPar + WHERE QuoteType = @QuoteType_orig + AND CodQuote = @CodQuote_orig + AND QuoteRev = @QuoteRev_orig + END + ELSE + -- se partenza è Q carico alcuni dati accessori precompilando... + BEGIN + INSERT INTO QuoteSimPar(QuoteType, CodQuote, QuoteRev, NomePar, ValPar) + SELECT @QuoteType, @CodQuote, @QuoteRev, Descr, Parameter + FROM QuoteParam + WHERE QuoteType = @QuoteType_orig + AND CodQuote = @CodQuote_orig + AND QuoteRev = @QuoteRev_orig + AND Descr IN ('CodDiesGroup', 'CodPlant') + + INSERT INTO QuoteSimPar(QuoteType, CodQuote, QuoteRev, NomePar, ValPar) + SELECT @QuoteType, @CodQuote, @QuoteRev, 'DiesTecLife', Parameter + FROM QuoteParam + WHERE QuoteType = @QuoteType_orig + AND CodQuote = @CodQuote_orig + AND QuoteRev = @QuoteRev_orig + AND Descr = 'KgTeo' + + INSERT INTO QuoteSimPar(QuoteType, CodQuote, QuoteRev, NomePar, ValPar) + SELECT @QuoteType, @CodQuote, @QuoteRev, 'DiesPrice_sim', Parameter + FROM QuoteParam + WHERE QuoteType = @QuoteType_orig + AND CodQuote = @CodQuote_orig + AND QuoteRev = @QuoteRev_orig + AND Descr = 'DiesPrice' + + INSERT INTO QuoteSimPar(QuoteType, CodQuote, QuoteRev, NomePar, ValPar) + SELECT @QuoteType, @CodQuote, @QuoteRev, 'CodPackag', CodPackag + FROM QuoteRM + WHERE QuoteType = @QuoteType_orig + AND CodQuote = @CodQuote_orig + AND QuoteRev = @QuoteRev_orig + + INSERT INTO QuoteSimPar(QuoteType, CodQuote, QuoteRev, NomePar, ValPar) + SELECT @QuoteType, @CodQuote, @QuoteRev, 'NetProd01_sim', NetProd + FROM QuoteWorkInt + WHERE QuoteType = @QuoteType_orig + AND CodQuote = @CodQuote_orig + AND QuoteRev = @QuoteRev_orig + AND ProcessNum = '01' + + INSERT INTO QuoteSimPar(QuoteType, CodQuote, QuoteRev, NomePar, ValPar) + SELECT @QuoteType, @CodQuote, @QuoteRev, 'NetProd04_sim', NetProd + FROM QuoteWorkInt + WHERE QuoteType = @QuoteType_orig + AND CodQuote = @CodQuote_orig + AND QuoteRev = @QuoteRev_orig + AND ProcessNum = '04' + + INSERT INTO QuoteSimPar(QuoteType, CodQuote, QuoteRev, NomePar, ValPar) + SELECT @QuoteType, @CodQuote, @QuoteRev, 'MSR01_sim', MSR + FROM QuoteWorkInt + WHERE QuoteType = @QuoteType_orig + AND CodQuote = @CodQuote_orig + AND QuoteRev = @QuoteRev_orig + AND ProcessNum = '01' + + INSERT INTO QuoteSimPar(QuoteType, CodQuote, QuoteRev, NomePar, ValPar) + SELECT @QuoteType, @CodQuote, @QuoteRev, 'WSR01_sim', WSR + FROM QuoteWorkInt + WHERE QuoteType = @QuoteType_orig + AND CodQuote = @CodQuote_orig + AND QuoteRev = @QuoteRev_orig + AND ProcessNum = '01' + + INSERT INTO QuoteSimPar(QuoteType, CodQuote, QuoteRev, NomePar, ValPar) + SELECT @QuoteType, @CodQuote, @QuoteRev, 'DSR_sim', DSR + FROM QuoteWorkInt + WHERE QuoteType = @QuoteType_orig + AND CodQuote = @CodQuote_orig + AND QuoteRev = @QuoteRev_orig + AND ProcessNum = '04' + END + */ + END + + -- ricalcolo! + EXEC stp_QL_fullDataUpdate @QuoteType + ,@CodQuote + ,@QuoteRev + ,'Y' + + -- PATCH 2014/10 rieseguo ricalcolo x problema parametri simulati mancanti in quoteparam + EXEC stp_QL_fullDataUpdate @QuoteType + , @CodQuote + , @QuoteRev + , 'Y' + +COMMIT TRAN + +-- seleziono intera riga! +SELECT * +FROM QuoteList +WHERE QuoteType = @QuoteType + AND CodQuote = @CodQuote + AND QuoteRev = @QuoteRev + +RETURN +GO +PRINT N'Creating [dbo].[stp_QL_makeSim]...'; + + +GO +-- ============================================= +-- Author: Steamware +-- Mod date: 2014.10.01 +-- Description: modifica una quotazione da Q ad S in QuoteList e ricalcola +-- ============================================= +CREATE PROCEDURE [dbo].[stp_QL_makeSim] +( + @CodQuote_orig BIGINT = 0, + @QuoteRev_orig INT = 0 +) +AS + +SET XACT_ABORT ON; +BEGIN TRAN + + -- passo x definizione a 'S' + DECLARE @QuoteType_orig CHAR(1) = 'Q', + @QuoteType CHAR(1) = 'S' + + -- elimino record in QuoteFull_Q + DELETE + FROM QuoteFull_Q + WHERE QuoteType = @QuoteType_orig + AND CodQuote = @CodQuote_orig + AND QuoteRev = @QuoteRev_orig + + -- carico alcuni dati accessori precompilando... + INSERT INTO QuoteSimPar(QuoteType, CodQuote, QuoteRev, NomePar, ValPar) + SELECT @QuoteType, @CodQuote_orig, @QuoteRev_orig, Descr, Parameter + FROM QuoteParam + WHERE QuoteType = @QuoteType_orig + AND CodQuote = @CodQuote_orig + AND QuoteRev = @QuoteRev_orig + AND Descr IN ('CodDiesGroup', 'CodPlant') + + INSERT INTO QuoteSimPar(QuoteType, CodQuote, QuoteRev, NomePar, ValPar) + SELECT @QuoteType, @CodQuote_orig, @QuoteRev_orig, 'DiesTecLife', Parameter + FROM QuoteParam + WHERE QuoteType = @QuoteType_orig + AND CodQuote = @CodQuote_orig + AND QuoteRev = @QuoteRev_orig + AND Descr = 'KgTeo' + + INSERT INTO QuoteSimPar(QuoteType, CodQuote, QuoteRev, NomePar, ValPar) + SELECT @QuoteType, @CodQuote_orig, @QuoteRev_orig, 'DiesPrice_sim', Parameter + FROM QuoteParam + WHERE QuoteType = @QuoteType_orig + AND CodQuote = @CodQuote_orig + AND QuoteRev = @QuoteRev_orig + AND Descr = 'DiesPrice' + + INSERT INTO QuoteSimPar(QuoteType, CodQuote, QuoteRev, NomePar, ValPar) + SELECT @QuoteType, @CodQuote_orig, @QuoteRev_orig, 'CodPackag', CodPackag + FROM QuoteRM + WHERE QuoteType = @QuoteType_orig + AND CodQuote = @CodQuote_orig + AND QuoteRev = @QuoteRev_orig + + INSERT INTO QuoteSimPar(QuoteType, CodQuote, QuoteRev, NomePar, ValPar) + SELECT @QuoteType, @CodQuote_orig, @QuoteRev_orig, 'NetProd01_sim', NetProd + FROM QuoteWorkInt + WHERE QuoteType = @QuoteType_orig + AND CodQuote = @CodQuote_orig + AND QuoteRev = @QuoteRev_orig + AND ProcessNum = '01' + + INSERT INTO QuoteSimPar(QuoteType, CodQuote, QuoteRev, NomePar, ValPar) + SELECT @QuoteType, @CodQuote_orig, @QuoteRev_orig, 'NetProd04_sim', NetProd + FROM QuoteWorkInt + WHERE QuoteType = @QuoteType_orig + AND CodQuote = @CodQuote_orig + AND QuoteRev = @QuoteRev_orig + AND ProcessNum = '04' + + INSERT INTO QuoteSimPar(QuoteType, CodQuote, QuoteRev, NomePar, ValPar) + SELECT @QuoteType, @CodQuote_orig, @QuoteRev_orig, 'MSR01_sim', MSR + FROM QuoteWorkInt + WHERE QuoteType = @QuoteType_orig + AND CodQuote = @CodQuote_orig + AND QuoteRev = @QuoteRev_orig + AND ProcessNum = '01' + + INSERT INTO QuoteSimPar(QuoteType, CodQuote, QuoteRev, NomePar, ValPar) + SELECT @QuoteType, @CodQuote_orig, @QuoteRev_orig, 'WSR01_sim', WSR + FROM QuoteWorkInt + WHERE QuoteType = @QuoteType_orig + AND CodQuote = @CodQuote_orig + AND QuoteRev = @QuoteRev_orig + AND ProcessNum = '01' + + INSERT INTO QuoteSimPar(QuoteType, CodQuote, QuoteRev, NomePar, ValPar) + SELECT @QuoteType, @CodQuote_orig, @QuoteRev_orig, 'DSR_sim', DSR + FROM QuoteWorkInt + WHERE QuoteType = @QuoteType_orig + AND CodQuote = @CodQuote_orig + AND QuoteRev = @QuoteRev_orig + AND ProcessNum = '04' + + -- update riga in QuoteList + UPDATE QuoteList + SET QuoteType = @QuoteType + WHERE QuoteType = @QuoteType_orig + AND CodQuote = @CodQuote_orig + AND QuoteRev = @QuoteRev_orig + + -- ricalcolo! + EXEC stp_QL_fullDataUpdate @QuoteType + , @CodQuote_orig + , @QuoteRev_orig + , 'Y' + + -- PATCH 2014/10 rieseguo ricalcolo x problema parametri simulati mancanti in quoteparam + EXEC stp_QL_fullDataUpdate @QuoteType + , @CodQuote_orig + , @QuoteRev_orig + , 'Y' + +COMMIT TRAN + +-- seleziono intera riga! +SELECT * +FROM QuoteList +WHERE QuoteType = @QuoteType + AND CodQuote = @CodQuote_orig + AND QuoteRev = @QuoteRev_orig + +RETURN +GO +PRINT N'Creating [dbo].[stp_QL_newRev]...'; + + +GO +-- ============================================= +-- Author: Steamware +-- Create date: 2014.04.23 +-- Description: duplica record QuoteList generando una NUOVA REVISIONE +-- ============================================= +CREATE PROCEDURE [dbo].[stp_QL_newRev] +( + @QuoteType CHAR(1) = 'Q', + @CodQuote BIGINT = 0, + @QuoteRev_orig INT = 0 +) +AS + +-- variabili +DECLARE @QuoteRev INT = 0 + +SET @QuoteRev = @QuoteRev_orig + 1 + +SET XACT_ABORT ON; +BEGIN TRAN + + -- inserisco riga in QuoteList + INSERT INTO QuoteList(QuoteType, CodQuote, QuoteRev, CodClient, CodItem, UnitWeight, BatchQty, CodItemGroup, RawMat, CodInco, Note) + SELECT QuoteType, @CodQuote, @QuoteRev as QuoteRev, CodClient, CodItem, UnitWeight, BatchQty, CodItemGroup, RawMat, CodInco, Note + FROM QuoteList + WHERE QuoteType = @QuoteType + AND CodQuote = @CodQuote + AND QuoteRev = @QuoteRev_orig + + -- ora inserisco in QuoteRM + INSERT INTO QuoteRM(QuoteType, CodQuote, QuoteRev, NumRM, RawMat, RawMatCost, RawMatExtraCost) + SELECT QuoteType, @CodQuote, @QuoteRev as QuoteRev, NumRM, RawMat, RawMatCost, RawMatExtraCost + FROM QuoteRM + WHERE QuoteType = @QuoteType + AND CodQuote = @CodQuote + AND QuoteRev = @QuoteRev_orig + + -- se la scheda di destinazione è simulazione + IF(@QuoteType = 'S') + BEGIN + EXEC stp_QL_copyParamS @QuoteType, @QuoteType, @CodQuote, @CodQuote, @QuoteRev, @QuoteRev_orig + END + + -- ricalcolo! + EXEC stp_QL_fullDataUpdate @QuoteType + ,@CodQuote + ,@QuoteRev + ,'Y' + + -- PATCH 2014/10 rieseguo ricalcolo x problema parametri simulati mancanti in quoteparam + EXEC stp_QL_fullDataUpdate @QuoteType + , @CodQuote + , @QuoteRev + , 'Y' + +COMMIT TRAN + +-- seleziono intera riga! +SELECT * +FROM QuoteList +WHERE QuoteType = @QuoteType + AND CodQuote = @CodQuote + AND QuoteRev = @QuoteRev + +RETURN +GO PRINT N'Creating [dbo].[stp_QLC_insNew]...'; @@ -15559,77 +15778,44 @@ TRUNCATE TABLE dbo.OrdersHist */ GO -PRINT N'Creating [dbo].[stp_QLS_UpdHead]...'; +PRINT N'Creating [dbo].[stp_QLS_UpdDiesPar]...'; GO -- ============================================= -- Author: Steamware - S.E.L. --- Create date: 2014.05.16 +-- Create date: 2014.05.20 -- Description: update di un record in QL (Full) TIPO SIMULAZIONE e poi aggiorna a cascata -- ============================================= -CREATE PROCEDURE [dbo].[stp_QLS_UpdHead] +CREATE PROCEDURE [dbo].[stp_QLS_UpdDiesPar] ( @Original_QuoteType CHAR(1) = 'S', @Original_CodQuote BIGINT = 0, @Original_QuoteRev INT = 0, - @CodClient NVARCHAR(50) = '', - @CodItem NVARCHAR(50) = '', - @UnitWeight DECIMAL(9, 3) = 0, - @CodItemGroup NVARCHAR(50) = '', - @RawMat NVARCHAR(50), - @RawMatCost DECIMAL(18, 6), - @RawMatExtraCost DECIMAL(18, 6), - @BatchQty INT, - @CodInco NVARCHAR(5), - @ProvvCost DECIMAL(18,6), - @Note NVARCHAR(2500) = '' + @SamplePrice DECIMAL(18, 6), + @DiesPriceClientQuote DECIMAL(18, 6), + @DiesCommLife DECIMAL(18, 6), + @MonthSalesPrev INT ) AS SET XACT_ABORT ON; BEGIN TRAN - -- aggiorno valori QuoteList! - UPDATE QuoteList - SET CodClient = @CodClient - , CodItem = @CodItem - , RawMat = @RawMat - , BatchQty = @BatchQty - , CodInco = @CodInco - , Note = ISNULL(@Note,'') - , CodItemGroup= @CodItemGroup - , UnitWeight = @UnitWeight - WHERE QuoteType = @Original_QuoteType - AND CodQuote = @Original_CodQuote - AND QuoteRev = @Original_QuoteRev - - -- aggiorno valori QuoteRM - UPDATE QuoteRM - SET RawMat = @RawMat - , RawMatCost = @RawMatCost - , RawMatExtraCost = @RawMatExtraCost - WHERE QuoteType = @Original_QuoteType - AND CodQuote = @Original_CodQuote - AND QuoteRev = @Original_QuoteRev - - - -- @CodDiesGroup - DECLARE @CodDiesGroup NVARCHAR(50) = '' - SELECT @CodDiesGroup = ValPar - FROM QuoteSimPar - WHERE QuoteType = @Original_QuoteType - AND CodQuote = @Original_CodQuote - AND QuoteRev = @Original_QuoteRev - AND NomePar = 'CodDiesGroup' - - -- scambio ultimo valore - SELECT @CodDiesGroup = ISNULL(REPLACE(@CodDiesGroup, '-' + dbo.f_GetSubstring(@CodDiesGroup,'-' , 4), '-'+@CodItemGroup), '' ) - - EXEC stp_QSP_upsert @Original_QuoteType, @Original_CodQuote, @Original_QuoteRev, 'CodDiesGroup', @CodDiesGroup - EXEC stp_QSP_upsert @Original_QuoteType, @Original_CodQuote, @Original_QuoteRev, 'ProvvCost', @ProvvCost - + -- @SamplePrice + EXEC stp_QSP_upsert @Original_QuoteType, @Original_CodQuote, @Original_QuoteRev, 'SamplePrice', @SamplePrice + + -- @DiesPriceClientQuote + EXEC stp_QSP_upsert @Original_QuoteType, @Original_CodQuote, @Original_QuoteRev, 'DiesPriceClientQuote', @DiesPriceClientQuote + + -- @DiesCommLife + EXEC stp_QSP_upsert @Original_QuoteType, @Original_CodQuote, @Original_QuoteRev, 'DiesCommLife', @DiesCommLife + + -- @MonthSalesPrev + EXEC stp_QSP_upsert @Original_QuoteType, @Original_CodQuote, @Original_QuoteRev, 'MonthSalesPrev', @MonthSalesPrev + + -- update dei valori calcolati! EXEC stp_QL_fullDataUpdate @Original_QuoteType ,@Original_CodQuote @@ -15737,367 +15923,94 @@ WHERE QuoteType = @Original_QuoteType RETURN GO -PRINT N'Creating [dbo].[stp_QL_newRev]...'; +PRINT N'Creating [dbo].[stp_QLS_UpdHead]...'; GO + -- ============================================= --- Author: Steamware --- Create date: 2014.04.23 --- Description: duplica record QuoteList generando una NUOVA REVISIONE +-- Author: Steamware - S.E.L. +-- Create date: 2014.05.16 +-- Description: update di un record in QL (Full) TIPO SIMULAZIONE e poi aggiorna a cascata -- ============================================= -CREATE PROCEDURE [dbo].[stp_QL_newRev] +CREATE PROCEDURE [dbo].[stp_QLS_UpdHead] ( - @QuoteType CHAR(1) = 'Q', - @CodQuote BIGINT = 0, - @QuoteRev_orig INT = 0 -) -AS - --- variabili -DECLARE @QuoteRev INT = 0 - -SET @QuoteRev = @QuoteRev_orig + 1 - -SET XACT_ABORT ON; -BEGIN TRAN - - -- inserisco riga in QuoteList - INSERT INTO QuoteList(QuoteType, CodQuote, QuoteRev, CodClient, CodItem, UnitWeight, BatchQty, CodItemGroup, RawMat, CodInco, Note) - SELECT QuoteType, @CodQuote, @QuoteRev as QuoteRev, CodClient, CodItem, UnitWeight, BatchQty, CodItemGroup, RawMat, CodInco, Note - FROM QuoteList - WHERE QuoteType = @QuoteType - AND CodQuote = @CodQuote - AND QuoteRev = @QuoteRev_orig - - -- ora inserisco in QuoteRM - INSERT INTO QuoteRM(QuoteType, CodQuote, QuoteRev, NumRM, RawMat, RawMatCost, RawMatExtraCost) - SELECT QuoteType, @CodQuote, @QuoteRev as QuoteRev, NumRM, RawMat, RawMatCost, RawMatExtraCost - FROM QuoteRM - WHERE QuoteType = @QuoteType - AND CodQuote = @CodQuote - AND QuoteRev = @QuoteRev_orig - - -- se la scheda di destinazione è simulazione - IF(@QuoteType = 'S') - BEGIN - EXEC stp_QL_copyParamS @QuoteType, @QuoteType, @CodQuote, @CodQuote, @QuoteRev, @QuoteRev_orig - END - - -- ricalcolo! - EXEC stp_QL_fullDataUpdate @QuoteType - ,@CodQuote - ,@QuoteRev - ,'Y' - - -- PATCH 2014/10 rieseguo ricalcolo x problema parametri simulati mancanti in quoteparam - EXEC stp_QL_fullDataUpdate @QuoteType - , @CodQuote - , @QuoteRev - , 'Y' - -COMMIT TRAN - --- seleziono intera riga! -SELECT * -FROM QuoteList -WHERE QuoteType = @QuoteType - AND CodQuote = @CodQuote - AND QuoteRev = @QuoteRev - -RETURN -GO -PRINT N'Creating [dbo].[stp_QL_makeSim]...'; - - -GO --- ============================================= --- Author: Steamware --- Mod date: 2014.10.01 --- Description: modifica una quotazione da Q ad S in QuoteList e ricalcola --- ============================================= -CREATE PROCEDURE [dbo].[stp_QL_makeSim] -( - @CodQuote_orig BIGINT = 0, - @QuoteRev_orig INT = 0 + @Original_QuoteType CHAR(1) = 'S', + @Original_CodQuote BIGINT = 0, + @Original_QuoteRev INT = 0, + @CodClient NVARCHAR(50) = '', + @CodItem NVARCHAR(50) = '', + @UnitWeight DECIMAL(9, 3) = 0, + @CodItemGroup NVARCHAR(50) = '', + @RawMat NVARCHAR(50), + @RawMatCost DECIMAL(18, 6), + @RawMatExtraCost DECIMAL(18, 6), + @BatchQty INT, + @CodInco NVARCHAR(5), + @ProvvCost DECIMAL(18,6), + @Note NVARCHAR(2500) = '' ) AS SET XACT_ABORT ON; BEGIN TRAN - - -- passo x definizione a 'S' - DECLARE @QuoteType_orig CHAR(1) = 'Q', - @QuoteType CHAR(1) = 'S' - - -- elimino record in QuoteFull_Q - DELETE - FROM QuoteFull_Q - WHERE QuoteType = @QuoteType_orig - AND CodQuote = @CodQuote_orig - AND QuoteRev = @QuoteRev_orig - - -- carico alcuni dati accessori precompilando... - INSERT INTO QuoteSimPar(QuoteType, CodQuote, QuoteRev, NomePar, ValPar) - SELECT @QuoteType, @CodQuote_orig, @QuoteRev_orig, Descr, Parameter - FROM QuoteParam - WHERE QuoteType = @QuoteType_orig - AND CodQuote = @CodQuote_orig - AND QuoteRev = @QuoteRev_orig - AND Descr IN ('CodDiesGroup', 'CodPlant') - - INSERT INTO QuoteSimPar(QuoteType, CodQuote, QuoteRev, NomePar, ValPar) - SELECT @QuoteType, @CodQuote_orig, @QuoteRev_orig, 'DiesTecLife', Parameter - FROM QuoteParam - WHERE QuoteType = @QuoteType_orig - AND CodQuote = @CodQuote_orig - AND QuoteRev = @QuoteRev_orig - AND Descr = 'KgTeo' - - INSERT INTO QuoteSimPar(QuoteType, CodQuote, QuoteRev, NomePar, ValPar) - SELECT @QuoteType, @CodQuote_orig, @QuoteRev_orig, 'DiesPrice_sim', Parameter - FROM QuoteParam - WHERE QuoteType = @QuoteType_orig - AND CodQuote = @CodQuote_orig - AND QuoteRev = @QuoteRev_orig - AND Descr = 'DiesPrice' - - INSERT INTO QuoteSimPar(QuoteType, CodQuote, QuoteRev, NomePar, ValPar) - SELECT @QuoteType, @CodQuote_orig, @QuoteRev_orig, 'CodPackag', CodPackag - FROM QuoteRM - WHERE QuoteType = @QuoteType_orig - AND CodQuote = @CodQuote_orig - AND QuoteRev = @QuoteRev_orig - - INSERT INTO QuoteSimPar(QuoteType, CodQuote, QuoteRev, NomePar, ValPar) - SELECT @QuoteType, @CodQuote_orig, @QuoteRev_orig, 'NetProd01_sim', NetProd - FROM QuoteWorkInt - WHERE QuoteType = @QuoteType_orig - AND CodQuote = @CodQuote_orig - AND QuoteRev = @QuoteRev_orig - AND ProcessNum = '01' - - INSERT INTO QuoteSimPar(QuoteType, CodQuote, QuoteRev, NomePar, ValPar) - SELECT @QuoteType, @CodQuote_orig, @QuoteRev_orig, 'NetProd04_sim', NetProd - FROM QuoteWorkInt - WHERE QuoteType = @QuoteType_orig - AND CodQuote = @CodQuote_orig - AND QuoteRev = @QuoteRev_orig - AND ProcessNum = '04' - - INSERT INTO QuoteSimPar(QuoteType, CodQuote, QuoteRev, NomePar, ValPar) - SELECT @QuoteType, @CodQuote_orig, @QuoteRev_orig, 'MSR01_sim', MSR - FROM QuoteWorkInt - WHERE QuoteType = @QuoteType_orig - AND CodQuote = @CodQuote_orig - AND QuoteRev = @QuoteRev_orig - AND ProcessNum = '01' - - INSERT INTO QuoteSimPar(QuoteType, CodQuote, QuoteRev, NomePar, ValPar) - SELECT @QuoteType, @CodQuote_orig, @QuoteRev_orig, 'WSR01_sim', WSR - FROM QuoteWorkInt - WHERE QuoteType = @QuoteType_orig - AND CodQuote = @CodQuote_orig - AND QuoteRev = @QuoteRev_orig - AND ProcessNum = '01' - - INSERT INTO QuoteSimPar(QuoteType, CodQuote, QuoteRev, NomePar, ValPar) - SELECT @QuoteType, @CodQuote_orig, @QuoteRev_orig, 'DSR_sim', DSR - FROM QuoteWorkInt - WHERE QuoteType = @QuoteType_orig - AND CodQuote = @CodQuote_orig - AND QuoteRev = @QuoteRev_orig - AND ProcessNum = '04' - - -- update riga in QuoteList + -- aggiorno valori QuoteList! UPDATE QuoteList - SET QuoteType = @QuoteType - WHERE QuoteType = @QuoteType_orig - AND CodQuote = @CodQuote_orig - AND QuoteRev = @QuoteRev_orig + SET CodClient = @CodClient + , CodItem = @CodItem + , RawMat = @RawMat + , BatchQty = @BatchQty + , CodInco = @CodInco + , Note = ISNULL(@Note,'') + , CodItemGroup= @CodItemGroup + , UnitWeight = @UnitWeight + WHERE QuoteType = @Original_QuoteType + AND CodQuote = @Original_CodQuote + AND QuoteRev = @Original_QuoteRev + + -- aggiorno valori QuoteRM + UPDATE QuoteRM + SET RawMat = @RawMat + , RawMatCost = @RawMatCost + , RawMatExtraCost = @RawMatExtraCost + WHERE QuoteType = @Original_QuoteType + AND CodQuote = @Original_CodQuote + AND QuoteRev = @Original_QuoteRev - -- ricalcolo! - EXEC stp_QL_fullDataUpdate @QuoteType - , @CodQuote_orig - , @QuoteRev_orig - , 'Y' + + -- @CodDiesGroup + DECLARE @CodDiesGroup NVARCHAR(50) = '' + SELECT @CodDiesGroup = ValPar + FROM QuoteSimPar + WHERE QuoteType = @Original_QuoteType + AND CodQuote = @Original_CodQuote + AND QuoteRev = @Original_QuoteRev + AND NomePar = 'CodDiesGroup' - -- PATCH 2014/10 rieseguo ricalcolo x problema parametri simulati mancanti in quoteparam - EXEC stp_QL_fullDataUpdate @QuoteType - , @CodQuote_orig - , @QuoteRev_orig - , 'Y' + -- scambio ultimo valore + SELECT @CodDiesGroup = ISNULL(REPLACE(@CodDiesGroup, '-' + dbo.f_GetSubstring(@CodDiesGroup,'-' , 4), '-'+@CodItemGroup), '' ) + + EXEC stp_QSP_upsert @Original_QuoteType, @Original_CodQuote, @Original_QuoteRev, 'CodDiesGroup', @CodDiesGroup + EXEC stp_QSP_upsert @Original_QuoteType, @Original_CodQuote, @Original_QuoteRev, 'ProvvCost', @ProvvCost + + -- update dei valori calcolati! + EXEC stp_QL_fullDataUpdate @Original_QuoteType + ,@Original_CodQuote + ,@Original_QuoteRev + ,'Y' + COMMIT TRAN --- seleziono intera riga! -SELECT * -FROM QuoteList -WHERE QuoteType = @QuoteType - AND CodQuote = @CodQuote_orig - AND QuoteRev = @QuoteRev_orig - -RETURN -GO -PRINT N'Creating [dbo].[stp_QL_clone]...'; - - -GO --- ============================================= --- Author: Steamware --- Create date: 2014.04.23 --- Description: duplica record QuoteList --- ============================================= -CREATE PROCEDURE [dbo].[stp_QL_clone] -( - @QuoteType CHAR(1) = 'Q', - @QuoteType_orig CHAR(1) = 'Q', - @CodQuote_orig BIGINT = 0, - @QuoteRev_orig INT = 0 -) -AS - --- variabili -DECLARE @CodQuote BIGINT = 0, - @QuoteRev INT = 0 - -SET XACT_ABORT ON; -BEGIN TRAN - - -- calcolo nuovo record odierno - SELECT @CodQuote = dbo.f_getNewCodQuote() - - -- inserisco riga in QuoteList - INSERT INTO QuoteList(QuoteType, CodQuote, QuoteRev, CodClient, CodItem, UnitWeight, BatchQty, CodItemGroup, RawMat, CodInco, Note, PriceOff) - SELECT @QuoteType, @CodQuote, @QuoteRev as QuoteRev, CodClient, CodItem, UnitWeight, BatchQty, CodItemGroup, RawMat, CodInco, 'CLONE - ' + Note, PriceOff - FROM QuoteList - WHERE QuoteType = @QuoteType_orig - AND CodQuote = @CodQuote_orig - AND QuoteRev = @QuoteRev_orig - - -- ora inserisco in QuoteRM - INSERT INTO QuoteRM(QuoteType, CodQuote, QuoteRev, NumRM, RawMat, RawMatCost, RawMatExtraCost) - SELECT @QuoteType, @CodQuote, @QuoteRev as QuoteRev, NumRM, RawMat, RawMatCost, RawMatExtraCost - FROM QuoteRM - WHERE QuoteType = @QuoteType_orig - AND CodQuote = @CodQuote_orig - AND QuoteRev = @QuoteRev_orig - - - - -- se la scheda di destinazione è simulazione - IF(@QuoteType = 'S') - BEGIN - EXEC stp_QL_copyParamS @QuoteType, @QuoteType_orig, @CodQuote, @CodQuote_orig, @QuoteRev, @QuoteRev_orig - - /* - IF(@QuoteType_orig = 'S') - -- se partenza è S duplico dati accessori... - BEGIN - INSERT INTO QuoteSimPar(QuoteType, CodQuote, QuoteRev, NomePar, ValPar) - SELECT @QuoteType, @CodQuote, @QuoteRev, NomePar, ValPar - FROM QuoteSimPar - WHERE QuoteType = @QuoteType_orig - AND CodQuote = @CodQuote_orig - AND QuoteRev = @QuoteRev_orig - END - ELSE - -- se partenza è Q carico alcuni dati accessori precompilando... - BEGIN - INSERT INTO QuoteSimPar(QuoteType, CodQuote, QuoteRev, NomePar, ValPar) - SELECT @QuoteType, @CodQuote, @QuoteRev, Descr, Parameter - FROM QuoteParam - WHERE QuoteType = @QuoteType_orig - AND CodQuote = @CodQuote_orig - AND QuoteRev = @QuoteRev_orig - AND Descr IN ('CodDiesGroup', 'CodPlant') - - INSERT INTO QuoteSimPar(QuoteType, CodQuote, QuoteRev, NomePar, ValPar) - SELECT @QuoteType, @CodQuote, @QuoteRev, 'DiesTecLife', Parameter - FROM QuoteParam - WHERE QuoteType = @QuoteType_orig - AND CodQuote = @CodQuote_orig - AND QuoteRev = @QuoteRev_orig - AND Descr = 'KgTeo' - - INSERT INTO QuoteSimPar(QuoteType, CodQuote, QuoteRev, NomePar, ValPar) - SELECT @QuoteType, @CodQuote, @QuoteRev, 'DiesPrice_sim', Parameter - FROM QuoteParam - WHERE QuoteType = @QuoteType_orig - AND CodQuote = @CodQuote_orig - AND QuoteRev = @QuoteRev_orig - AND Descr = 'DiesPrice' - - INSERT INTO QuoteSimPar(QuoteType, CodQuote, QuoteRev, NomePar, ValPar) - SELECT @QuoteType, @CodQuote, @QuoteRev, 'CodPackag', CodPackag - FROM QuoteRM - WHERE QuoteType = @QuoteType_orig - AND CodQuote = @CodQuote_orig - AND QuoteRev = @QuoteRev_orig - - INSERT INTO QuoteSimPar(QuoteType, CodQuote, QuoteRev, NomePar, ValPar) - SELECT @QuoteType, @CodQuote, @QuoteRev, 'NetProd01_sim', NetProd - FROM QuoteWorkInt - WHERE QuoteType = @QuoteType_orig - AND CodQuote = @CodQuote_orig - AND QuoteRev = @QuoteRev_orig - AND ProcessNum = '01' - - INSERT INTO QuoteSimPar(QuoteType, CodQuote, QuoteRev, NomePar, ValPar) - SELECT @QuoteType, @CodQuote, @QuoteRev, 'NetProd04_sim', NetProd - FROM QuoteWorkInt - WHERE QuoteType = @QuoteType_orig - AND CodQuote = @CodQuote_orig - AND QuoteRev = @QuoteRev_orig - AND ProcessNum = '04' - - INSERT INTO QuoteSimPar(QuoteType, CodQuote, QuoteRev, NomePar, ValPar) - SELECT @QuoteType, @CodQuote, @QuoteRev, 'MSR01_sim', MSR - FROM QuoteWorkInt - WHERE QuoteType = @QuoteType_orig - AND CodQuote = @CodQuote_orig - AND QuoteRev = @QuoteRev_orig - AND ProcessNum = '01' - - INSERT INTO QuoteSimPar(QuoteType, CodQuote, QuoteRev, NomePar, ValPar) - SELECT @QuoteType, @CodQuote, @QuoteRev, 'WSR01_sim', WSR - FROM QuoteWorkInt - WHERE QuoteType = @QuoteType_orig - AND CodQuote = @CodQuote_orig - AND QuoteRev = @QuoteRev_orig - AND ProcessNum = '01' - - INSERT INTO QuoteSimPar(QuoteType, CodQuote, QuoteRev, NomePar, ValPar) - SELECT @QuoteType, @CodQuote, @QuoteRev, 'DSR_sim', DSR - FROM QuoteWorkInt - WHERE QuoteType = @QuoteType_orig - AND CodQuote = @CodQuote_orig - AND QuoteRev = @QuoteRev_orig - AND ProcessNum = '04' - END - */ - END - - -- ricalcolo! - EXEC stp_QL_fullDataUpdate @QuoteType - ,@CodQuote - ,@QuoteRev - ,'Y' - - -- PATCH 2014/10 rieseguo ricalcolo x problema parametri simulati mancanti in quoteparam - EXEC stp_QL_fullDataUpdate @QuoteType - , @CodQuote - , @QuoteRev - , 'Y' - -COMMIT TRAN -- seleziono intera riga! + SELECT * -FROM QuoteList -WHERE QuoteType = @QuoteType - AND CodQuote = @CodQuote - AND QuoteRev = @QuoteRev +FROM v_QuoteFull_Q +WHERE QuoteType = @Original_QuoteType + AND CodQuote = @Original_CodQuote + AND QuoteRev = @Original_QuoteRev + RETURN GO @@ -16160,6 +16073,93 @@ WHERE QuoteType = @Original_QuoteType RETURN GO +PRINT N'Creating [dbo].[stp_QL_fullData]...'; + + +GO +-- ============================================= +-- STORED PROCEDURE stp_QL_fullData +-- +-- Author: Steamware +-- Create date: 2014.01.27 +-- Description: Recupera tutti i dati dalle tab QuoteList x avere schema x report/gestioen web +-- ============================================= +CREATE PROCEDURE [dbo].[stp_QL_fullData] ( + @QuoteType CHAR(1) = 'Q' + , @CodQuote BIGINT = 0 + , @QuoteRev INT = 0 + , @DoUpdate CHAR(1) = 'N' -- se si debba fare ricalcolo Y/N + ) +AS +SET NOCOUNT ON + +IF(@QuoteType <> '' AND @DoUpdate = 'N') +BEGIN + EXEC stp_QL_fullDataUpdate @QuoteType + , @CodQuote + , @QuoteRev + , @DoUpdate +END + +---- calcolo con aggiunta campi sommati... +--SELECT * +-- , FVC + RawMatFullCost AS P_FVC +-- , FC4UG01 + OH4UG01 AS CPS +-- , FC4UG01 + OH4UG01 + FVC + RawMatFullCost AS P_CPS +-- , FC4UG04 + FVC + RawMatFullCost AS P_FC4UG04 +-- , FVC + FC4UG01 + OH4UG01 + FC4UG04 AS FullCost +-- , FVC + FC4UG01 + OH4UG01 + FC4UG04 + RawMatFullCost AS P_FullCost +-- , Charge * (FVC + FC4UG01 + OH4UG01 + FC4UG04) AS MinPrice +-- , Charge * (FVC + FC4UG01 + OH4UG01 + FC4UG04) + RawMatFullCost AS P_MinPrice +-- , PriceOff + RawMatFullCost AS P_PriceOff +-- , (FVC + FC4UG01 + OH4UG01 + FC4UG04) - PriceOff AS NetMar +-- , (PriceOff - FVC) / (FC4UG01 + OH4UG01 + FC4UG04) AS FCShield +-- , (PRMWeight - Ptare) * (PriceOff + RawMatFullCost) / Pweight AS PckSur +--FROM QuoteFull_Q +--WHERE QuoteType = @QuoteType +-- AND CodQuote = @CodQuote +-- AND QuoteRev = @QuoteRev + +-- calcolo con aggiunta campi sommati... +SELECT * +FROM v_QuoteFull_Q +WHERE QuoteType = @QuoteType + AND CodQuote = @CodQuote + AND QuoteRev = @QuoteRev + +RETURN +GO +PRINT N'Creating [dbo].[stp_QuoteFull_Q_update]...'; + + +GO +-- ============================================= +-- Author: Steamware +-- Create date: 2014.02.07 +-- Description: update valori tab QuoteList +-- ============================================= +CREATE PROCEDURE [dbo].[stp_QuoteFull_Q_update] ( + @Original_QuoteType CHAR(1) = 'Q' + ,@Original_CodQuote BIGINT = 0 + ,@Original_QuoteRev INT = 0 + ,@PriceOff DECIMAL(9, 6) = 0 + ) +AS +BEGIN + +-- aggiorno valori! + UPDATE QuoteList + SET PriceOff = @PriceOff + WHERE QuoteType = @Original_QuoteType + AND CodQuote = @Original_CodQuote + AND QuoteRev = @Original_QuoteRev + + -- update dei valori calcolati! + EXEC stp_QL_fullDataUpdate @Original_QuoteType + ,@Original_CodQuote + ,@Original_QuoteRev +END +GO PRINT N'Creating [dbo].[stp_zzz_scratchDatiDemo]...'; @@ -16492,6 +16492,78 @@ BEGIN END +GO +PRINT N'Creating [dbo].[QuoteParam].[QuoteType].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'tipo di preventivo: Q = quote, S = simulation', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteParam', @level2type = N'COLUMN', @level2name = N'QuoteType'; + + +GO +PRINT N'Creating [dbo].[QuoteParam].[CodQuote].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'numero nel formato yyMMddnnnn dove nnn è incrementale giornaliero', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteParam', @level2type = N'COLUMN', @level2name = N'CodQuote'; + + +GO +PRINT N'Creating [dbo].[QuoteParam].[NumP].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'progressivo interno', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteParam', @level2type = N'COLUMN', @level2name = N'NumP'; + + +GO +PRINT N'Creating [dbo].[QuoteParam].[ProcessNum].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Tipo risorsa (e lavorazione): 01 .. 04', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteParam', @level2type = N'COLUMN', @level2name = N'ProcessNum'; + + +GO +PRINT N'Creating [dbo].[QuoteFull_Q].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Quotation', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteFull_Q'; + + +GO +PRINT N'Creating [dbo].[QuoteFull_Q].[IdxQState].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Stato offerta: 0 = D raft, 1 = C ompleted / in approvazione, 2 = A pprouved, 3 = R eleased', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteFull_Q', @level2type = N'COLUMN', @level2name = N'IdxQState'; + + +GO +PRINT N'Creating [dbo].[QuoteFull_Q].[TranspZone].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Classificazione cliente (es zona, provincia...) x incrocio con tab costi trasporto', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteFull_Q', @level2type = N'COLUMN', @level2name = N'TranspZone'; + + +GO +PRINT N'Creating [dbo].[QuoteFull_Q].[PriceOff].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Prezzo Offerto', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteFull_Q', @level2type = N'COLUMN', @level2name = N'PriceOff'; + + +GO +PRINT N'Creating [dbo].[QuoteFull_Q].[errorScore].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'punteggio complessivo errori in procedure di calcolo', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteFull_Q', @level2type = N'COLUMN', @level2name = N'errorScore'; + + GO PRINT N'Creating [dbo].[QuoteOC].[MS_Description]...'; @@ -16618,6 +16690,198 @@ GO EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Costo pro quota di impiego (per matrici, imballi,...)', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteOC', @level2type = N'COLUMN', @level2name = N'C4UG'; +GO +PRINT N'Creating [dbo].[QuoteWorkInt].[QuoteType].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'tipo di preventivo: Q = quote, S = simulation', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteWorkInt', @level2type = N'COLUMN', @level2name = N'QuoteType'; + + +GO +PRINT N'Creating [dbo].[QuoteWorkInt].[CodQuote].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'numero nel formato yyMMddnnnn dove nnn è incrementale giornaliero', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteWorkInt', @level2type = N'COLUMN', @level2name = N'CodQuote'; + + +GO +PRINT N'Creating [dbo].[QuoteWorkInt].[NumWI].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'progressivo interno', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteWorkInt', @level2type = N'COLUMN', @level2name = N'NumWI'; + + +GO +PRINT N'Creating [dbo].[QuoteWorkInt].[ProcessNum].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Tipo risorsa (e lavorazione): estrusione/imballo', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteWorkInt', @level2type = N'COLUMN', @level2name = N'ProcessNum'; + + +GO +PRINT N'Creating [dbo].[QuoteWorkInt].[CodPlant].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'codice impianto', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteWorkInt', @level2type = N'COLUMN', @level2name = N'CodPlant'; + + +GO +PRINT N'Creating [dbo].[QuoteWorkInt].[Class01].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Riclass. 01, ARTICOLO + MATERIALE', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteWorkInt', @level2type = N'COLUMN', @level2name = N'Class01'; + + +GO +PRINT N'Creating [dbo].[QuoteWorkInt].[Class02].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Riclass. 02, codice di ricerca per prod - es cod imballo o Chiave di ricerca Articolo/ClasseArt + RawMat+ Impianto + NumLuci', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteWorkInt', @level2type = N'COLUMN', @level2name = N'Class02'; + + +GO +PRINT N'Creating [dbo].[QuoteWorkInt].[Class03].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Riclass. 03, tipo imballo', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteWorkInt', @level2type = N'COLUMN', @level2name = N'Class03'; + + +GO +PRINT N'Creating [dbo].[QuoteWorkInt].[Class04].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Riclass. 04', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteWorkInt', @level2type = N'COLUMN', @level2name = N'Class04'; + + +GO +PRINT N'Creating [dbo].[QuoteWorkInt].[Class05].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Riclass. 05', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteWorkInt', @level2type = N'COLUMN', @level2name = N'Class05'; + + +GO +PRINT N'Creating [dbo].[QuoteWorkInt].[NetProd].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Produttivita netta (teorica) kg/h', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteWorkInt', @level2type = N'COLUMN', @level2name = N'NetProd'; + + +GO +PRINT N'Creating [dbo].[QuoteWorkInt].[WSR].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Work Scrape Ratio, percentuale scarto della lavorazione (tecnico)', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteWorkInt', @level2type = N'COLUMN', @level2name = N'WSR'; + + +GO +PRINT N'Creating [dbo].[QuoteWorkInt].[MSR].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Material Scrape Ratio, percentuale scarto legato alla MP (cesoia x alx)', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteWorkInt', @level2type = N'COLUMN', @level2name = N'MSR'; + + +GO +PRINT N'Creating [dbo].[QuoteWorkInt].[DSR].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Defect Scrape Ratio, percentuale scarto per difettosità prodotto (qualità)', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteWorkInt', @level2type = N'COLUMN', @level2name = N'DSR'; + + +GO +PRINT N'Creating [dbo].[QuoteWorkInt].[FC4UG].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Fixed Cost FOR Unit of Good, quota dei costi fissi per unità di prodotto finito (Copertura Costo Struttura e Linea)', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteWorkInt', @level2type = N'COLUMN', @level2name = N'FC4UG'; + + +GO +PRINT N'Creating [dbo].[QuoteWorkInt].[VC4UG].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Variables Cost FOR Unit of Good, quota dei costi variabili per unità di prodotto finito (Costo del personale x Alx)', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteWorkInt', @level2type = N'COLUMN', @level2name = N'VC4UG'; + + +GO +PRINT N'Creating [dbo].[QuoteWorkInt].[OH4UG].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'OH Cost FOR Unit of Good, quota dei costi Over Head per unità di prodotto finito', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteWorkInt', @level2type = N'COLUMN', @level2name = N'OH4UG'; + + +GO +PRINT N'Creating [dbo].[QuoteWorkInt].[SC4UG].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Setup Cost FOR Unit of Good, quota dei costi di setup per unità di prodotto finito (costo cambio matrice x Alx)', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteWorkInt', @level2type = N'COLUMN', @level2name = N'SC4UG'; + + +GO +PRINT N'Creating [dbo].[QuoteWorkInt].[WYR].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Work Yield Ratio, percentuale RESA della lavorazione (tecnico), 1 - scarto', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteWorkInt', @level2type = N'COLUMN', @level2name = N'WYR'; + + +GO +PRINT N'Creating [dbo].[QuoteWorkInt].[MYR].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Material Yield Ratio, percentuale RESA legato alla MP (cesoia x alx), 1 - scarto', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteWorkInt', @level2type = N'COLUMN', @level2name = N'MYR'; + + +GO +PRINT N'Creating [dbo].[QuoteWorkInt].[DYR].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Defect Yield Ratio, percentuale RESA per difettosità prodotto (qualità), 1 - scarto', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteWorkInt', @level2type = N'COLUMN', @level2name = N'DYR'; + + +GO +PRINT N'Creating [dbo].[QuoteWorkInt].[WCR].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Work Conversion Ratio, Messa a Cento, 1 / RESA', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteWorkInt', @level2type = N'COLUMN', @level2name = N'WCR'; + + +GO +PRINT N'Creating [dbo].[QuoteWorkInt].[MCR].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Material Conversion Ratio, Messa a Cento, 1 / RESA', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteWorkInt', @level2type = N'COLUMN', @level2name = N'MCR'; + + +GO +PRINT N'Creating [dbo].[QuoteWorkInt].[DCR].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Defect Conversion Ratio, Messa a Cento, 1 / RESA', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteWorkInt', @level2type = N'COLUMN', @level2name = N'DCR'; + + GO PRINT N'Creating [dbo].[QuoteWorkExt].[QuoteType].[MS_Description]...'; @@ -16658,6 +16922,134 @@ GO EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Unità di misura di riferimento per il costo', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteWorkExt', @level2type = N'COLUMN', @level2name = N'UM'; +GO +PRINT N'Creating [dbo].[QuoteList].[QuoteType].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'tipo di preventivo: Q = quote, S = simulation', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteList', @level2type = N'COLUMN', @level2name = N'QuoteType'; + + +GO +PRINT N'Creating [dbo].[QuoteList].[CodQuote].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'numero nel formato yyMMddnnnn dove nnn è incrementale giornaliero', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteList', @level2type = N'COLUMN', @level2name = N'CodQuote'; + + +GO +PRINT N'Creating [dbo].[QuoteList].[IdxQState].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Stato offerta: 0 = D raft, 1 = C ompleted / in approvazione, 2 = A pprouved, 3 = R eleased', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteList', @level2type = N'COLUMN', @level2name = N'IdxQState'; + + +GO +PRINT N'Creating [dbo].[QuoteList].[CodClient].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'codice cliente', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteList', @level2type = N'COLUMN', @level2name = N'CodClient'; + + +GO +PRINT N'Creating [dbo].[QuoteList].[CodItem].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'codice articolo', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteList', @level2type = N'COLUMN', @level2name = N'CodItem'; + + +GO +PRINT N'Creating [dbo].[QuoteList].[CodItemGroup].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'classe raggruppamento (es complessità disegno)', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteList', @level2type = N'COLUMN', @level2name = N'CodItemGroup'; + + +GO +PRINT N'Creating [dbo].[QuoteList].[RawMat].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'codice MP', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteList', @level2type = N'COLUMN', @level2name = N'RawMat'; + + +GO +PRINT N'Creating [dbo].[QuoteList].[UnitWeight].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'peso espresso come g/m (grammi / metro)', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteList', @level2type = N'COLUMN', @level2name = N'UnitWeight'; + + +GO +PRINT N'Creating [dbo].[QuoteList].[BatchQty].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Quantità lotto kg', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteList', @level2type = N'COLUMN', @level2name = N'BatchQty'; + + +GO +PRINT N'Creating [dbo].[QuoteList].[CodInco].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Codice Incoterms', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteList', @level2type = N'COLUMN', @level2name = N'CodInco'; + + +GO +PRINT N'Creating [dbo].[QuoteList].[PriceOff].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Prezzo Offerto', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteList', @level2type = N'COLUMN', @level2name = N'PriceOff'; + + +GO +PRINT N'Creating [dbo].[QuoteList].[OrdDate].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'data dell''ordine', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteList', @level2type = N'COLUMN', @level2name = N'OrdDate'; + + +GO +PRINT N'Creating [dbo].[QuoteList].[OrdNum].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'numero ordine', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteList', @level2type = N'COLUMN', @level2name = N'OrdNum'; + + +GO +PRINT N'Creating [dbo].[QuoteList].[OrdRow].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'riga ordine', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteList', @level2type = N'COLUMN', @level2name = N'OrdRow'; + + +GO +PRINT N'Creating [dbo].[QuoteList].[OrdPrice].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Prezzo finale ordine', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteList', @level2type = N'COLUMN', @level2name = N'OrdPrice'; + + +GO +PRINT N'Creating [dbo].[QuoteList].[errorScore].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'punteggio complessivo errori in procedure di calcolo', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteList', @level2type = N'COLUMN', @level2name = N'errorScore'; + + GO PRINT N'Creating [dbo].[Package2Item].[CodItem].[MS_Description]...'; @@ -16690,6 +17082,206 @@ GO EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Tara', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'Package2Item', @level2type = N'COLUMN', @level2name = N'Tare'; +GO +PRINT N'Creating [dbo].[ProductionLog].[EventStart].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'inizio evento - formato INT 16 cifre yyyyMMddHHmmssnn dove nn = centesimi di sec oppure 00', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ProductionLog', @level2type = N'COLUMN', @level2name = N'EventStart'; + + +GO +PRINT N'Creating [dbo].[ProductionLog].[EventEnd].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'fine evento - formato INT 16 cifre yyyyMMddHHmmssnn dove nn = centesimi di sec oppure 00', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ProductionLog', @level2type = N'COLUMN', @level2name = N'EventEnd'; + + +GO +PRINT N'Creating [dbo].[ProductionLog].[CodPlant].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'codice impianto', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ProductionLog', @level2type = N'COLUMN', @level2name = N'CodPlant'; + + +GO +PRINT N'Creating [dbo].[ProductionLog].[ProcessNum].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'codice fase, da qui si crea anagrafica fasi distinct', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ProductionLog', @level2type = N'COLUMN', @level2name = N'ProcessNum'; + + +GO +PRINT N'Creating [dbo].[ProductionLog].[CodDies].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'codice matrice', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ProductionLog', @level2type = N'COLUMN', @level2name = N'CodDies'; + + +GO +PRINT N'Creating [dbo].[ProductionLog].[CodClient].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'codice cliente', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ProductionLog', @level2type = N'COLUMN', @level2name = N'CodClient'; + + +GO +PRINT N'Creating [dbo].[ProductionLog].[OrderNum].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'rif codice ordine', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ProductionLog', @level2type = N'COLUMN', @level2name = N'OrderNum'; + + +GO +PRINT N'Creating [dbo].[ProductionLog].[BatchNum].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'codice lotto', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ProductionLog', @level2type = N'COLUMN', @level2name = N'BatchNum'; + + +GO +PRINT N'Creating [dbo].[ProductionLog].[ProcessType].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'codice del TIPO di fase, x raggruppamento funzionale', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ProductionLog', @level2type = N'COLUMN', @level2name = N'ProcessType'; + + +GO +PRINT N'Creating [dbo].[ProductionLog].[EventType].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'tipo evento: produzione, prova, guasto, setup...', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ProductionLog', @level2type = N'COLUMN', @level2name = N'EventType'; + + +GO +PRINT N'Creating [dbo].[ProductionLog].[RawMat].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'codice MP', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ProductionLog', @level2type = N'COLUMN', @level2name = N'RawMat'; + + +GO +PRINT N'Creating [dbo].[ProductionLog].[CodPackag].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'codice imballo', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ProductionLog', @level2type = N'COLUMN', @level2name = N'CodPackag'; + + +GO +PRINT N'Creating [dbo].[ProductionLog].[QtyIN].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'kg materiale in ingresso', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ProductionLog', @level2type = N'COLUMN', @level2name = N'QtyIN'; + + +GO +PRINT N'Creating [dbo].[ProductionLog].[QtyOUT].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'kg materiale BUONO prodotto in OUTput', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ProductionLog', @level2type = N'COLUMN', @level2name = N'QtyOUT'; + + +GO +PRINT N'Creating [dbo].[ProductionLog].[QtyEXT].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'kg materiale dbora che fa parte dell''OUT, es imballi/tara', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ProductionLog', @level2type = N'COLUMN', @level2name = N'QtyEXT'; + + +GO +PRINT N'Creating [dbo].[ProductionLog].[NumIN].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'qta materiale in ingresso', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ProductionLog', @level2type = N'COLUMN', @level2name = N'NumIN'; + + +GO +PRINT N'Creating [dbo].[ProductionLog].[NumOUT].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'qta materiale BUONO prodotto in OUTput', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ProductionLog', @level2type = N'COLUMN', @level2name = N'NumOUT'; + + +GO +PRINT N'Creating [dbo].[ProductionLog].[QuotaPlant].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'indicazione della quota macchina per produrre quanto registrato', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ProductionLog', @level2type = N'COLUMN', @level2name = N'QuotaPlant'; + + +GO +PRINT N'Creating [dbo].[ProductionLog].[QuotaMan].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'indicazione della quota uomo per produrre quanto registrato', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ProductionLog', @level2type = N'COLUMN', @level2name = N'QuotaMan'; + + +GO +PRINT N'Creating [dbo].[ProductionLog].[Tags].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'categorie LIBERE, separatore #', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ProductionLog', @level2type = N'COLUMN', @level2name = N'Tags'; + + +GO +PRINT N'Creating [dbo].[ProductionLog].[Duration].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Durata espressa in ore', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ProductionLog', @level2type = N'COLUMN', @level2name = N'Duration'; + + +GO +PRINT N'Creating [dbo].[ProductionLog].[okPr].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'validazione riga x calcolo produttività', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ProductionLog', @level2type = N'COLUMN', @level2name = N'okPr'; + + +GO +PRINT N'Creating [dbo].[ProductionLog].[okQM].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'validazione riga x calcolo quota MAN', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ProductionLog', @level2type = N'COLUMN', @level2name = N'okQM'; + + +GO +PRINT N'Creating [dbo].[ProductionLog].[okSc].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'validazione riga x calcolo scarti', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ProductionLog', @level2type = N'COLUMN', @level2name = N'okSc'; + + +GO +PRINT N'Creating [dbo].[ProductionLog].[okDi].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'validazione riga x calcolo difettosità', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ProductionLog', @level2type = N'COLUMN', @level2name = N'okDi'; + + GO PRINT N'Creating [dbo].[Package2ItemClient].[CodItem].[MS_Description]...'; @@ -16914,6 +17506,22 @@ GO EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'indicazione della quota uomo per produrre quanto registrato', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'Cost2Plant', @level2type = N'COLUMN', @level2name = N'QuotaManStd'; +GO +PRINT N'Creating [dbo].[TabProdSc].[ProdTeo].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'produttività teorica (kgTeorici / durata h)', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'TabProdSc', @level2type = N'COLUMN', @level2name = N'ProdTeo'; + + +GO +PRINT N'Creating [dbo].[TabProdSc].[ScTec].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'scarto tecnico: 1 - (KgTeorici/ISNULL(KgLordi,1))', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'TabProdSc', @level2type = N'COLUMN', @level2name = N'ScTec'; + + GO PRINT N'Creating [dbo].[ClientDet].[MS_Description]...'; @@ -17050,6 +17658,70 @@ GO EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Costo al kg per impianto ed utility', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'Utilities', @level2type = N'COLUMN', @level2name = N'UnitCost'; +GO +PRINT N'Creating [dbo].[DiesDet].[CodDies].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'codice matrice', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'DiesDet', @level2type = N'COLUMN', @level2name = N'CodDies'; + + +GO +PRINT N'Creating [dbo].[DiesDet].[CodItem].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'codice articolo', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'DiesDet', @level2type = N'COLUMN', @level2name = N'CodItem'; + + +GO +PRINT N'Creating [dbo].[DiesDet].[CodDiesGroup].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'codice CLASSE matrice, es tipo + diametro; nota: massima numerosità pari a numero articoli, minima numerosità 1', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'DiesDet', @level2type = N'COLUMN', @level2name = N'CodDiesGroup'; + + +GO +PRINT N'Creating [dbo].[DiesDet].[Price].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'prezzo di acquisto', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'DiesDet', @level2type = N'COLUMN', @level2name = N'Price'; + + +GO +PRINT N'Creating [dbo].[DiesDet].[TestCost].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'costo di prove e correzioni', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'DiesDet', @level2type = N'COLUMN', @level2name = N'TestCost'; + + +GO +PRINT N'Creating [dbo].[DiesDet].[ExpLife].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Durata attesa in kg PREVISTA', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'DiesDet', @level2type = N'COLUMN', @level2name = N'ExpLife'; + + +GO +PRINT N'Creating [dbo].[DiesDet].[ActLife].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Durata attuale (delle rottamate, media) in kg', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'DiesDet', @level2type = N'COLUMN', @level2name = N'ActLife'; + + +GO +PRINT N'Creating [dbo].[DiesDet].[Active].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Stato: 1 = disponibile, 0 = rottamata', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'DiesDet', @level2type = N'COLUMN', @level2name = N'Active'; + + GO PRINT N'Creating [dbo].[Incoterms].[CodInco].[MS_Description]...'; @@ -17202,6 +17874,140 @@ GO EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ItemDet', @level2type = N'COLUMN', @level2name = N'Class01'; +GO +PRINT N'Creating [dbo].[v_selItems].[MS_DiagramPane1]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_DiagramPane1', @value = N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00] +Begin DesignProperties = + Begin PaneConfigurations = + Begin PaneConfiguration = 0 + NumPanes = 4 + Configuration = "(H (1[40] 4[20] 2[20] 3) )" + End + Begin PaneConfiguration = 1 + NumPanes = 3 + Configuration = "(H (1 [50] 4 [25] 3))" + End + Begin PaneConfiguration = 2 + NumPanes = 3 + Configuration = "(H (1 [50] 2 [25] 3))" + End + Begin PaneConfiguration = 3 + NumPanes = 3 + Configuration = "(H (4 [30] 2 [40] 3))" + End + Begin PaneConfiguration = 4 + NumPanes = 2 + Configuration = "(H (1 [56] 3))" + End + Begin PaneConfiguration = 5 + NumPanes = 2 + Configuration = "(H (2 [66] 3))" + End + Begin PaneConfiguration = 6 + NumPanes = 2 + Configuration = "(H (4 [50] 3))" + End + Begin PaneConfiguration = 7 + NumPanes = 1 + Configuration = "(V (3))" + End + Begin PaneConfiguration = 8 + NumPanes = 3 + Configuration = "(H (1[56] 4[18] 2) )" + End + Begin PaneConfiguration = 9 + NumPanes = 2 + Configuration = "(H (1 [75] 4))" + End + Begin PaneConfiguration = 10 + NumPanes = 2 + Configuration = "(H (1[66] 2) )" + End + Begin PaneConfiguration = 11 + NumPanes = 2 + Configuration = "(H (4 [60] 2))" + End + Begin PaneConfiguration = 12 + NumPanes = 1 + Configuration = "(H (1) )" + End + Begin PaneConfiguration = 13 + NumPanes = 1 + Configuration = "(V (4))" + End + Begin PaneConfiguration = 14 + NumPanes = 1 + Configuration = "(V (2))" + End + ActivePaneConfig = 0 + End + Begin DiagramPane = + Begin Origin = + Top = 0 + Left = 0 + End + Begin Tables = + Begin Table = "ItemDet" + Begin Extent = + Top = 6 + Left = 38 + Bottom = 254 + Right = 208 + End + DisplayFlags = 280 + TopColumn = 0 + End + End + End + Begin SQLPane = + End + Begin DataPane = + Begin ParameterDefaults = "" + End + Begin ColumnWidths = 9 + Width = 284 + Width = 1500 + Width = 4635 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + End + End + Begin CriteriaPane = + Begin ColumnWidths = 11 + Column = 1440 + Alias = 900 + Table = 1170 + Output = 720 + Append = 1400 + NewValue = 1170 + SortType = 1350 + SortOrder = 1410 + GroupBy = 1350 + Filter = 1350 + Or = 1350 + Or = 1350 + Or = 1350 + End + End +End +', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_selItems'; + + +GO +PRINT N'Creating [dbo].[v_selItems].[MS_DiagramPaneCount]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_DiagramPaneCount', @value = 1, @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_selItems'; + + GO PRINT N'Creating [dbo].[v_selClient].[MS_DiagramPane1]...'; @@ -17336,6 +18142,230 @@ GO EXECUTE sp_addextendedproperty @name = N'MS_DiagramPaneCount', @value = 1, @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_selClient'; +GO +PRINT N'Creating [dbo].[v_QuoteFull_Q].[MS_DiagramPane1]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_DiagramPane1', @value = N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00] +Begin DesignProperties = + Begin PaneConfigurations = + Begin PaneConfiguration = 0 + NumPanes = 4 + Configuration = "(H (1[40] 4[20] 2[20] 3) )" + End + Begin PaneConfiguration = 1 + NumPanes = 3 + Configuration = "(H (1 [50] 4 [25] 3))" + End + Begin PaneConfiguration = 2 + NumPanes = 3 + Configuration = "(H (1 [50] 2 [25] 3))" + End + Begin PaneConfiguration = 3 + NumPanes = 3 + Configuration = "(H (4 [30] 2 [40] 3))" + End + Begin PaneConfiguration = 4 + NumPanes = 2 + Configuration = "(H (1 [56] 3))" + End + Begin PaneConfiguration = 5 + NumPanes = 2 + Configuration = "(H (2 [66] 3))" + End + Begin PaneConfiguration = 6 + NumPanes = 2 + Configuration = "(H (4 [50] 3))" + End + Begin PaneConfiguration = 7 + NumPanes = 1 + Configuration = "(V (3))" + End + Begin PaneConfiguration = 8 + NumPanes = 3 + Configuration = "(H (1[56] 4[18] 2) )" + End + Begin PaneConfiguration = 9 + NumPanes = 2 + Configuration = "(H (1 [75] 4))" + End + Begin PaneConfiguration = 10 + NumPanes = 2 + Configuration = "(H (1[66] 2) )" + End + Begin PaneConfiguration = 11 + NumPanes = 2 + Configuration = "(H (4 [60] 2))" + End + Begin PaneConfiguration = 12 + NumPanes = 1 + Configuration = "(H (1) )" + End + Begin PaneConfiguration = 13 + NumPanes = 1 + Configuration = "(V (4))" + End + Begin PaneConfiguration = 14 + NumPanes = 1 + Configuration = "(V (2))" + End + ActivePaneConfig = 0 + End + Begin DiagramPane = + Begin Origin = + Top = -672 + Left = 0 + End + Begin Tables = + End + End + Begin SQLPane = + End + Begin DataPane = + Begin ParameterDefaults = "" + End + Begin ColumnWidths = 101 + Width = 284 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + ', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_QuoteFull_Q'; + + +GO +PRINT N'Creating [dbo].[v_QuoteFull_Q].[MS_DiagramPaneCount]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_DiagramPaneCount', @value = 2, @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_QuoteFull_Q'; + + +GO +PRINT N'Creating [dbo].[v_QuoteFull_Q].[MS_DiagramPane2]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_DiagramPane2', @value = N' Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + End + End + Begin CriteriaPane = + Begin ColumnWidths = 11 + Column = 1440 + Alias = 900 + Table = 1170 + Output = 720 + Append = 1400 + NewValue = 1170 + SortType = 1350 + SortOrder = 1410 + GroupBy = 1350 + Filter = 1350 + Or = 1350 + Or = 1350 + Or = 1350 + End + End +End +', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_QuoteFull_Q'; + + GO PRINT N'Creating [dbo].[Package2].[TotQta].[MS_Description]...'; @@ -17360,6 +18390,86 @@ GO EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Tara', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'Package2', @level2type = N'COLUMN', @level2name = N'Tare'; +GO +PRINT N'Creating [dbo].[RawMatDet].[RawMat].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'codice MP', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'RawMatDet', @level2type = N'COLUMN', @level2name = N'RawMat'; + + +GO +PRINT N'Creating [dbo].[RawMatDet].[ProcCost].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'costo del processo di rifusione €/kg', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'RawMatDet', @level2type = N'COLUMN', @level2name = N'ProcCost'; + + +GO +PRINT N'Creating [dbo].[RawMatDet].[ProcYield].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'resa del processo di rifusione %', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'RawMatDet', @level2type = N'COLUMN', @level2name = N'ProcYield'; + + +GO +PRINT N'Creating [dbo].[RawMatDet].[CSR].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Cut Scrape Ratio, percentuale scarto cesoia', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'RawMatDet', @level2type = N'COLUMN', @level2name = N'CSR'; + + +GO +PRINT N'Creating [dbo].[RawMatDet].[SSR].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Scrape Sell Ratio, percentuale di vendita dello scarto ( da 0 a 1)', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'RawMatDet', @level2type = N'COLUMN', @level2name = N'SSR'; + + +GO +PRINT N'Creating [dbo].[RawMatDet].[SSVA].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Scrape Sell Value - ABSOLUTE, valore di vendita dello scarto ASSOLUTO', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'RawMatDet', @level2type = N'COLUMN', @level2name = N'SSVA'; + + +GO +PRINT N'Creating [dbo].[RawMatDet].[SSVR].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Scrape Sell Value - RELATIVE come valore % del valore lega', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'RawMatDet', @level2type = N'COLUMN', @level2name = N'SSVR'; + + +GO +PRINT N'Creating [dbo].[RawMatDet].[ExtraMatCost].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Costo extra di acquisto del materiale', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'RawMatDet', @level2type = N'COLUMN', @level2name = N'ExtraMatCost'; + + +GO +PRINT N'Creating [dbo].[RawMatDet].[ExtraServCost].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Costo extra dei servizi sul materiale (es ultrasuoni)', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'RawMatDet', @level2type = N'COLUMN', @level2name = N'ExtraServCost'; + + +GO +PRINT N'Creating [dbo].[TrascPlan].[Note]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'Note', @value = N'Tabella per Trascodifica dati in Dati DEMO', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'TrascPlan'; + + GO PRINT N'Creating [dbo].[v_selIncoterms].[MS_DiagramPaneCount]...'; @@ -17628,1368 +18738,6 @@ End ', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_selCons'; -GO -PRINT N'Creating [dbo].[DiesDet].[CodDies].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'codice matrice', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'DiesDet', @level2type = N'COLUMN', @level2name = N'CodDies'; - - -GO -PRINT N'Creating [dbo].[DiesDet].[CodItem].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'codice articolo', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'DiesDet', @level2type = N'COLUMN', @level2name = N'CodItem'; - - -GO -PRINT N'Creating [dbo].[DiesDet].[CodDiesGroup].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'codice CLASSE matrice, es tipo + diametro; nota: massima numerosità pari a numero articoli, minima numerosità 1', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'DiesDet', @level2type = N'COLUMN', @level2name = N'CodDiesGroup'; - - -GO -PRINT N'Creating [dbo].[DiesDet].[Price].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'prezzo di acquisto', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'DiesDet', @level2type = N'COLUMN', @level2name = N'Price'; - - -GO -PRINT N'Creating [dbo].[DiesDet].[TestCost].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'costo di prove e correzioni', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'DiesDet', @level2type = N'COLUMN', @level2name = N'TestCost'; - - -GO -PRINT N'Creating [dbo].[DiesDet].[ExpLife].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Durata attesa in kg PREVISTA', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'DiesDet', @level2type = N'COLUMN', @level2name = N'ExpLife'; - - -GO -PRINT N'Creating [dbo].[DiesDet].[ActLife].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Durata attuale (delle rottamate, media) in kg', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'DiesDet', @level2type = N'COLUMN', @level2name = N'ActLife'; - - -GO -PRINT N'Creating [dbo].[DiesDet].[Active].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Stato: 1 = disponibile, 0 = rottamata', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'DiesDet', @level2type = N'COLUMN', @level2name = N'Active'; - - -GO -PRINT N'Creating [dbo].[ProductionLog].[EventStart].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'inizio evento - formato INT 16 cifre yyyyMMddHHmmssnn dove nn = centesimi di sec oppure 00', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ProductionLog', @level2type = N'COLUMN', @level2name = N'EventStart'; - - -GO -PRINT N'Creating [dbo].[ProductionLog].[EventEnd].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'fine evento - formato INT 16 cifre yyyyMMddHHmmssnn dove nn = centesimi di sec oppure 00', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ProductionLog', @level2type = N'COLUMN', @level2name = N'EventEnd'; - - -GO -PRINT N'Creating [dbo].[ProductionLog].[CodPlant].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'codice impianto', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ProductionLog', @level2type = N'COLUMN', @level2name = N'CodPlant'; - - -GO -PRINT N'Creating [dbo].[ProductionLog].[ProcessNum].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'codice fase, da qui si crea anagrafica fasi distinct', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ProductionLog', @level2type = N'COLUMN', @level2name = N'ProcessNum'; - - -GO -PRINT N'Creating [dbo].[ProductionLog].[CodDies].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'codice matrice', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ProductionLog', @level2type = N'COLUMN', @level2name = N'CodDies'; - - -GO -PRINT N'Creating [dbo].[ProductionLog].[CodClient].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'codice cliente', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ProductionLog', @level2type = N'COLUMN', @level2name = N'CodClient'; - - -GO -PRINT N'Creating [dbo].[ProductionLog].[OrderNum].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'rif codice ordine', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ProductionLog', @level2type = N'COLUMN', @level2name = N'OrderNum'; - - -GO -PRINT N'Creating [dbo].[ProductionLog].[BatchNum].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'codice lotto', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ProductionLog', @level2type = N'COLUMN', @level2name = N'BatchNum'; - - -GO -PRINT N'Creating [dbo].[ProductionLog].[ProcessType].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'codice del TIPO di fase, x raggruppamento funzionale', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ProductionLog', @level2type = N'COLUMN', @level2name = N'ProcessType'; - - -GO -PRINT N'Creating [dbo].[ProductionLog].[EventType].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'tipo evento: produzione, prova, guasto, setup...', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ProductionLog', @level2type = N'COLUMN', @level2name = N'EventType'; - - -GO -PRINT N'Creating [dbo].[ProductionLog].[RawMat].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'codice MP', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ProductionLog', @level2type = N'COLUMN', @level2name = N'RawMat'; - - -GO -PRINT N'Creating [dbo].[ProductionLog].[CodPackag].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'codice imballo', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ProductionLog', @level2type = N'COLUMN', @level2name = N'CodPackag'; - - -GO -PRINT N'Creating [dbo].[ProductionLog].[QtyIN].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'kg materiale in ingresso', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ProductionLog', @level2type = N'COLUMN', @level2name = N'QtyIN'; - - -GO -PRINT N'Creating [dbo].[ProductionLog].[QtyOUT].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'kg materiale BUONO prodotto in OUTput', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ProductionLog', @level2type = N'COLUMN', @level2name = N'QtyOUT'; - - -GO -PRINT N'Creating [dbo].[ProductionLog].[QtyEXT].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'kg materiale dbora che fa parte dell''OUT, es imballi/tara', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ProductionLog', @level2type = N'COLUMN', @level2name = N'QtyEXT'; - - -GO -PRINT N'Creating [dbo].[ProductionLog].[NumIN].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'qta materiale in ingresso', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ProductionLog', @level2type = N'COLUMN', @level2name = N'NumIN'; - - -GO -PRINT N'Creating [dbo].[ProductionLog].[NumOUT].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'qta materiale BUONO prodotto in OUTput', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ProductionLog', @level2type = N'COLUMN', @level2name = N'NumOUT'; - - -GO -PRINT N'Creating [dbo].[ProductionLog].[QuotaPlant].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'indicazione della quota macchina per produrre quanto registrato', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ProductionLog', @level2type = N'COLUMN', @level2name = N'QuotaPlant'; - - -GO -PRINT N'Creating [dbo].[ProductionLog].[QuotaMan].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'indicazione della quota uomo per produrre quanto registrato', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ProductionLog', @level2type = N'COLUMN', @level2name = N'QuotaMan'; - - -GO -PRINT N'Creating [dbo].[ProductionLog].[Tags].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'categorie LIBERE, separatore #', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ProductionLog', @level2type = N'COLUMN', @level2name = N'Tags'; - - -GO -PRINT N'Creating [dbo].[ProductionLog].[Duration].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Durata espressa in ore', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ProductionLog', @level2type = N'COLUMN', @level2name = N'Duration'; - - -GO -PRINT N'Creating [dbo].[ProductionLog].[okPr].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'validazione riga x calcolo produttività', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ProductionLog', @level2type = N'COLUMN', @level2name = N'okPr'; - - -GO -PRINT N'Creating [dbo].[ProductionLog].[okQM].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'validazione riga x calcolo quota MAN', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ProductionLog', @level2type = N'COLUMN', @level2name = N'okQM'; - - -GO -PRINT N'Creating [dbo].[ProductionLog].[okSc].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'validazione riga x calcolo scarti', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ProductionLog', @level2type = N'COLUMN', @level2name = N'okSc'; - - -GO -PRINT N'Creating [dbo].[ProductionLog].[okDi].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'validazione riga x calcolo difettosità', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ProductionLog', @level2type = N'COLUMN', @level2name = N'okDi'; - - -GO -PRINT N'Creating [dbo].[QuoteFull_Q].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Quotation', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteFull_Q'; - - -GO -PRINT N'Creating [dbo].[QuoteFull_Q].[IdxQState].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Stato offerta: 0 = D raft, 1 = C ompleted / in approvazione, 2 = A pprouved, 3 = R eleased', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteFull_Q', @level2type = N'COLUMN', @level2name = N'IdxQState'; - - -GO -PRINT N'Creating [dbo].[QuoteFull_Q].[TranspZone].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Classificazione cliente (es zona, provincia...) x incrocio con tab costi trasporto', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteFull_Q', @level2type = N'COLUMN', @level2name = N'TranspZone'; - - -GO -PRINT N'Creating [dbo].[QuoteFull_Q].[PriceOff].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Prezzo Offerto', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteFull_Q', @level2type = N'COLUMN', @level2name = N'PriceOff'; - - -GO -PRINT N'Creating [dbo].[QuoteFull_Q].[errorScore].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'punteggio complessivo errori in procedure di calcolo', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteFull_Q', @level2type = N'COLUMN', @level2name = N'errorScore'; - - -GO -PRINT N'Creating [dbo].[QuoteList].[QuoteType].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'tipo di preventivo: Q = quote, S = simulation', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteList', @level2type = N'COLUMN', @level2name = N'QuoteType'; - - -GO -PRINT N'Creating [dbo].[QuoteList].[CodQuote].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'numero nel formato yyMMddnnnn dove nnn è incrementale giornaliero', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteList', @level2type = N'COLUMN', @level2name = N'CodQuote'; - - -GO -PRINT N'Creating [dbo].[QuoteList].[IdxQState].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Stato offerta: 0 = D raft, 1 = C ompleted / in approvazione, 2 = A pprouved, 3 = R eleased', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteList', @level2type = N'COLUMN', @level2name = N'IdxQState'; - - -GO -PRINT N'Creating [dbo].[QuoteList].[CodClient].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'codice cliente', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteList', @level2type = N'COLUMN', @level2name = N'CodClient'; - - -GO -PRINT N'Creating [dbo].[QuoteList].[CodItem].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'codice articolo', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteList', @level2type = N'COLUMN', @level2name = N'CodItem'; - - -GO -PRINT N'Creating [dbo].[QuoteList].[CodItemGroup].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'classe raggruppamento (es complessità disegno)', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteList', @level2type = N'COLUMN', @level2name = N'CodItemGroup'; - - -GO -PRINT N'Creating [dbo].[QuoteList].[RawMat].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'codice MP', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteList', @level2type = N'COLUMN', @level2name = N'RawMat'; - - -GO -PRINT N'Creating [dbo].[QuoteList].[UnitWeight].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'peso espresso come g/m (grammi / metro)', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteList', @level2type = N'COLUMN', @level2name = N'UnitWeight'; - - -GO -PRINT N'Creating [dbo].[QuoteList].[BatchQty].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Quantità lotto kg', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteList', @level2type = N'COLUMN', @level2name = N'BatchQty'; - - -GO -PRINT N'Creating [dbo].[QuoteList].[CodInco].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Codice Incoterms', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteList', @level2type = N'COLUMN', @level2name = N'CodInco'; - - -GO -PRINT N'Creating [dbo].[QuoteList].[PriceOff].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Prezzo Offerto', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteList', @level2type = N'COLUMN', @level2name = N'PriceOff'; - - -GO -PRINT N'Creating [dbo].[QuoteList].[OrdDate].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'data dell''ordine', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteList', @level2type = N'COLUMN', @level2name = N'OrdDate'; - - -GO -PRINT N'Creating [dbo].[QuoteList].[OrdNum].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'numero ordine', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteList', @level2type = N'COLUMN', @level2name = N'OrdNum'; - - -GO -PRINT N'Creating [dbo].[QuoteList].[OrdRow].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'riga ordine', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteList', @level2type = N'COLUMN', @level2name = N'OrdRow'; - - -GO -PRINT N'Creating [dbo].[QuoteList].[OrdPrice].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Prezzo finale ordine', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteList', @level2type = N'COLUMN', @level2name = N'OrdPrice'; - - -GO -PRINT N'Creating [dbo].[QuoteList].[errorScore].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'punteggio complessivo errori in procedure di calcolo', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteList', @level2type = N'COLUMN', @level2name = N'errorScore'; - - -GO -PRINT N'Creating [dbo].[QuoteParam].[QuoteType].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'tipo di preventivo: Q = quote, S = simulation', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteParam', @level2type = N'COLUMN', @level2name = N'QuoteType'; - - -GO -PRINT N'Creating [dbo].[QuoteParam].[CodQuote].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'numero nel formato yyMMddnnnn dove nnn è incrementale giornaliero', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteParam', @level2type = N'COLUMN', @level2name = N'CodQuote'; - - -GO -PRINT N'Creating [dbo].[QuoteParam].[NumP].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'progressivo interno', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteParam', @level2type = N'COLUMN', @level2name = N'NumP'; - - -GO -PRINT N'Creating [dbo].[QuoteParam].[ProcessNum].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Tipo risorsa (e lavorazione): 01 .. 04', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteParam', @level2type = N'COLUMN', @level2name = N'ProcessNum'; - - -GO -PRINT N'Creating [dbo].[QuoteWorkInt].[QuoteType].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'tipo di preventivo: Q = quote, S = simulation', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteWorkInt', @level2type = N'COLUMN', @level2name = N'QuoteType'; - - -GO -PRINT N'Creating [dbo].[QuoteWorkInt].[CodQuote].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'numero nel formato yyMMddnnnn dove nnn è incrementale giornaliero', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteWorkInt', @level2type = N'COLUMN', @level2name = N'CodQuote'; - - -GO -PRINT N'Creating [dbo].[QuoteWorkInt].[NumWI].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'progressivo interno', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteWorkInt', @level2type = N'COLUMN', @level2name = N'NumWI'; - - -GO -PRINT N'Creating [dbo].[QuoteWorkInt].[ProcessNum].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Tipo risorsa (e lavorazione): estrusione/imballo', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteWorkInt', @level2type = N'COLUMN', @level2name = N'ProcessNum'; - - -GO -PRINT N'Creating [dbo].[QuoteWorkInt].[CodPlant].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'codice impianto', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteWorkInt', @level2type = N'COLUMN', @level2name = N'CodPlant'; - - -GO -PRINT N'Creating [dbo].[QuoteWorkInt].[Class01].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Riclass. 01, ARTICOLO + MATERIALE', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteWorkInt', @level2type = N'COLUMN', @level2name = N'Class01'; - - -GO -PRINT N'Creating [dbo].[QuoteWorkInt].[Class02].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Riclass. 02, codice di ricerca per prod - es cod imballo o Chiave di ricerca Articolo/ClasseArt + RawMat+ Impianto + NumLuci', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteWorkInt', @level2type = N'COLUMN', @level2name = N'Class02'; - - -GO -PRINT N'Creating [dbo].[QuoteWorkInt].[Class03].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Riclass. 03, tipo imballo', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteWorkInt', @level2type = N'COLUMN', @level2name = N'Class03'; - - -GO -PRINT N'Creating [dbo].[QuoteWorkInt].[Class04].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Riclass. 04', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteWorkInt', @level2type = N'COLUMN', @level2name = N'Class04'; - - -GO -PRINT N'Creating [dbo].[QuoteWorkInt].[Class05].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Riclass. 05', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteWorkInt', @level2type = N'COLUMN', @level2name = N'Class05'; - - -GO -PRINT N'Creating [dbo].[QuoteWorkInt].[NetProd].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Produttivita netta (teorica) kg/h', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteWorkInt', @level2type = N'COLUMN', @level2name = N'NetProd'; - - -GO -PRINT N'Creating [dbo].[QuoteWorkInt].[WSR].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Work Scrape Ratio, percentuale scarto della lavorazione (tecnico)', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteWorkInt', @level2type = N'COLUMN', @level2name = N'WSR'; - - -GO -PRINT N'Creating [dbo].[QuoteWorkInt].[MSR].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Material Scrape Ratio, percentuale scarto legato alla MP (cesoia x alx)', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteWorkInt', @level2type = N'COLUMN', @level2name = N'MSR'; - - -GO -PRINT N'Creating [dbo].[QuoteWorkInt].[DSR].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Defect Scrape Ratio, percentuale scarto per difettosità prodotto (qualità)', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteWorkInt', @level2type = N'COLUMN', @level2name = N'DSR'; - - -GO -PRINT N'Creating [dbo].[QuoteWorkInt].[FC4UG].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Fixed Cost FOR Unit of Good, quota dei costi fissi per unità di prodotto finito (Copertura Costo Struttura e Linea)', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteWorkInt', @level2type = N'COLUMN', @level2name = N'FC4UG'; - - -GO -PRINT N'Creating [dbo].[QuoteWorkInt].[VC4UG].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Variables Cost FOR Unit of Good, quota dei costi variabili per unità di prodotto finito (Costo del personale x Alx)', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteWorkInt', @level2type = N'COLUMN', @level2name = N'VC4UG'; - - -GO -PRINT N'Creating [dbo].[QuoteWorkInt].[OH4UG].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'OH Cost FOR Unit of Good, quota dei costi Over Head per unità di prodotto finito', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteWorkInt', @level2type = N'COLUMN', @level2name = N'OH4UG'; - - -GO -PRINT N'Creating [dbo].[QuoteWorkInt].[SC4UG].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Setup Cost FOR Unit of Good, quota dei costi di setup per unità di prodotto finito (costo cambio matrice x Alx)', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteWorkInt', @level2type = N'COLUMN', @level2name = N'SC4UG'; - - -GO -PRINT N'Creating [dbo].[QuoteWorkInt].[WYR].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Work Yield Ratio, percentuale RESA della lavorazione (tecnico), 1 - scarto', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteWorkInt', @level2type = N'COLUMN', @level2name = N'WYR'; - - -GO -PRINT N'Creating [dbo].[QuoteWorkInt].[MYR].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Material Yield Ratio, percentuale RESA legato alla MP (cesoia x alx), 1 - scarto', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteWorkInt', @level2type = N'COLUMN', @level2name = N'MYR'; - - -GO -PRINT N'Creating [dbo].[QuoteWorkInt].[DYR].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Defect Yield Ratio, percentuale RESA per difettosità prodotto (qualità), 1 - scarto', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteWorkInt', @level2type = N'COLUMN', @level2name = N'DYR'; - - -GO -PRINT N'Creating [dbo].[QuoteWorkInt].[WCR].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Work Conversion Ratio, Messa a Cento, 1 / RESA', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteWorkInt', @level2type = N'COLUMN', @level2name = N'WCR'; - - -GO -PRINT N'Creating [dbo].[QuoteWorkInt].[MCR].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Material Conversion Ratio, Messa a Cento, 1 / RESA', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteWorkInt', @level2type = N'COLUMN', @level2name = N'MCR'; - - -GO -PRINT N'Creating [dbo].[QuoteWorkInt].[DCR].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Defect Conversion Ratio, Messa a Cento, 1 / RESA', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteWorkInt', @level2type = N'COLUMN', @level2name = N'DCR'; - - -GO -PRINT N'Creating [dbo].[RawMatDet].[RawMat].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'codice MP', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'RawMatDet', @level2type = N'COLUMN', @level2name = N'RawMat'; - - -GO -PRINT N'Creating [dbo].[RawMatDet].[ProcCost].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'costo del processo di rifusione €/kg', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'RawMatDet', @level2type = N'COLUMN', @level2name = N'ProcCost'; - - -GO -PRINT N'Creating [dbo].[RawMatDet].[ProcYield].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'resa del processo di rifusione %', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'RawMatDet', @level2type = N'COLUMN', @level2name = N'ProcYield'; - - -GO -PRINT N'Creating [dbo].[RawMatDet].[CSR].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Cut Scrape Ratio, percentuale scarto cesoia', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'RawMatDet', @level2type = N'COLUMN', @level2name = N'CSR'; - - -GO -PRINT N'Creating [dbo].[RawMatDet].[SSR].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Scrape Sell Ratio, percentuale di vendita dello scarto ( da 0 a 1)', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'RawMatDet', @level2type = N'COLUMN', @level2name = N'SSR'; - - -GO -PRINT N'Creating [dbo].[RawMatDet].[SSVA].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Scrape Sell Value - ABSOLUTE, valore di vendita dello scarto ASSOLUTO', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'RawMatDet', @level2type = N'COLUMN', @level2name = N'SSVA'; - - -GO -PRINT N'Creating [dbo].[RawMatDet].[SSVR].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Scrape Sell Value - RELATIVE come valore % del valore lega', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'RawMatDet', @level2type = N'COLUMN', @level2name = N'SSVR'; - - -GO -PRINT N'Creating [dbo].[RawMatDet].[ExtraMatCost].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Costo extra di acquisto del materiale', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'RawMatDet', @level2type = N'COLUMN', @level2name = N'ExtraMatCost'; - - -GO -PRINT N'Creating [dbo].[RawMatDet].[ExtraServCost].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Costo extra dei servizi sul materiale (es ultrasuoni)', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'RawMatDet', @level2type = N'COLUMN', @level2name = N'ExtraServCost'; - - -GO -PRINT N'Creating [dbo].[TabProdSc].[ProdTeo].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'produttività teorica (kgTeorici / durata h)', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'TabProdSc', @level2type = N'COLUMN', @level2name = N'ProdTeo'; - - -GO -PRINT N'Creating [dbo].[TabProdSc].[ScTec].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'scarto tecnico: 1 - (KgTeorici/ISNULL(KgLordi,1))', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'TabProdSc', @level2type = N'COLUMN', @level2name = N'ScTec'; - - -GO -PRINT N'Creating [dbo].[v_selItems].[MS_DiagramPane1]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_DiagramPane1', @value = N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00] -Begin DesignProperties = - Begin PaneConfigurations = - Begin PaneConfiguration = 0 - NumPanes = 4 - Configuration = "(H (1[40] 4[20] 2[20] 3) )" - End - Begin PaneConfiguration = 1 - NumPanes = 3 - Configuration = "(H (1 [50] 4 [25] 3))" - End - Begin PaneConfiguration = 2 - NumPanes = 3 - Configuration = "(H (1 [50] 2 [25] 3))" - End - Begin PaneConfiguration = 3 - NumPanes = 3 - Configuration = "(H (4 [30] 2 [40] 3))" - End - Begin PaneConfiguration = 4 - NumPanes = 2 - Configuration = "(H (1 [56] 3))" - End - Begin PaneConfiguration = 5 - NumPanes = 2 - Configuration = "(H (2 [66] 3))" - End - Begin PaneConfiguration = 6 - NumPanes = 2 - Configuration = "(H (4 [50] 3))" - End - Begin PaneConfiguration = 7 - NumPanes = 1 - Configuration = "(V (3))" - End - Begin PaneConfiguration = 8 - NumPanes = 3 - Configuration = "(H (1[56] 4[18] 2) )" - End - Begin PaneConfiguration = 9 - NumPanes = 2 - Configuration = "(H (1 [75] 4))" - End - Begin PaneConfiguration = 10 - NumPanes = 2 - Configuration = "(H (1[66] 2) )" - End - Begin PaneConfiguration = 11 - NumPanes = 2 - Configuration = "(H (4 [60] 2))" - End - Begin PaneConfiguration = 12 - NumPanes = 1 - Configuration = "(H (1) )" - End - Begin PaneConfiguration = 13 - NumPanes = 1 - Configuration = "(V (4))" - End - Begin PaneConfiguration = 14 - NumPanes = 1 - Configuration = "(V (2))" - End - ActivePaneConfig = 0 - End - Begin DiagramPane = - Begin Origin = - Top = 0 - Left = 0 - End - Begin Tables = - Begin Table = "ItemDet" - Begin Extent = - Top = 6 - Left = 38 - Bottom = 254 - Right = 208 - End - DisplayFlags = 280 - TopColumn = 0 - End - End - End - Begin SQLPane = - End - Begin DataPane = - Begin ParameterDefaults = "" - End - Begin ColumnWidths = 9 - Width = 284 - Width = 1500 - Width = 4635 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - End - End - Begin CriteriaPane = - Begin ColumnWidths = 11 - Column = 1440 - Alias = 900 - Table = 1170 - Output = 720 - Append = 1400 - NewValue = 1170 - SortType = 1350 - SortOrder = 1410 - GroupBy = 1350 - Filter = 1350 - Or = 1350 - Or = 1350 - Or = 1350 - End - End -End -', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_selItems'; - - -GO -PRINT N'Creating [dbo].[v_selItems].[MS_DiagramPaneCount]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_DiagramPaneCount', @value = 1, @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_selItems'; - - -GO -PRINT N'Creating [dbo].[TrascDies].[Note]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'Note', @value = N'Tabella per Trascodifica dati in Dati DEMO', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'TrascDies'; - - -GO -PRINT N'Creating [dbo].[TrascItem].[Note]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'Note', @value = N'Tabella per Trascodifica dati in Dati DEMO', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'TrascItem'; - - -GO -PRINT N'Creating [dbo].[TrascPlan].[Note]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'Note', @value = N'Tabella per Trascodifica dati in Dati DEMO', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'TrascPlan'; - - -GO -PRINT N'Creating [dbo].[OrdersHist].[OrdNum].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'numero ordine', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'OrdersHist', @level2type = N'COLUMN', @level2name = N'OrdNum'; - - -GO -PRINT N'Creating [dbo].[OrdersHist].[OrdRow].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'riga ordine', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'OrdersHist', @level2type = N'COLUMN', @level2name = N'OrdRow'; - - -GO -PRINT N'Creating [dbo].[OrdersHist].[OrdDate].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'data dell''ordine', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'OrdersHist', @level2type = N'COLUMN', @level2name = N'OrdDate'; - - -GO -PRINT N'Creating [dbo].[OrdersHist].[CodClient].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'codice cliente', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'OrdersHist', @level2type = N'COLUMN', @level2name = N'CodClient'; - - -GO -PRINT N'Creating [dbo].[OrdersHist].[CodItem].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'codice articolo', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'OrdersHist', @level2type = N'COLUMN', @level2name = N'CodItem'; - - -GO -PRINT N'Creating [dbo].[OrdersHist].[RawMat].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'codice MP', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'OrdersHist', @level2type = N'COLUMN', @level2name = N'RawMat'; - - -GO -PRINT N'Creating [dbo].[OrdersHist].[RawMatCost].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'costo della MP €/kg', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'OrdersHist', @level2type = N'COLUMN', @level2name = N'RawMatCost'; - - -GO -PRINT N'Creating [dbo].[OrdersHist].[BatchQty].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Quantità lotto kg', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'OrdersHist', @level2type = N'COLUMN', @level2name = N'BatchQty'; - - -GO -PRINT N'Creating [dbo].[OrdersHist].[CodInco].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Codice Incoterms', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'OrdersHist', @level2type = N'COLUMN', @level2name = N'CodInco'; - - -GO -PRINT N'Creating [dbo].[OrdersHist].[OrdPrice].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Prezzo finale ordine', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'OrdersHist', @level2type = N'COLUMN', @level2name = N'OrdPrice'; - - -GO -PRINT N'Creating [dbo].[OrdersHist].[QuoteType].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'tipo di preventivo: Q = quote, S = simulation', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'OrdersHist', @level2type = N'COLUMN', @level2name = N'QuoteType'; - - -GO -PRINT N'Creating [dbo].[OrdersHist].[CodQuote].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'numero nel formato yyMMddnnnn dove nnn è incrementale giornaliero', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'OrdersHist', @level2type = N'COLUMN', @level2name = N'CodQuote'; - - -GO -PRINT N'Creating [dbo].[QuoteFull_R].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Resa', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteFull_R'; - - -GO -PRINT N'Creating [dbo].[QuoteFull_R].[IdxQState].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Stato offerta: 0 = D raft, 1 = C ompleted / in approvazione, 2 = A pprouved, 3 = R eleased', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteFull_R', @level2type = N'COLUMN', @level2name = N'IdxQState'; - - -GO -PRINT N'Creating [dbo].[QuoteFull_R].[TranspZone].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Classificazione cliente (es zona, provincia...) x incrocio con tab costi trasporto', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteFull_R', @level2type = N'COLUMN', @level2name = N'TranspZone'; - - -GO -PRINT N'Creating [dbo].[QuoteFull_R].[PriceOff].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Prezzo Offerto', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteFull_R', @level2type = N'COLUMN', @level2name = N'PriceOff'; - - -GO -PRINT N'Creating [dbo].[QuoteFull_R].[errorScore].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'punteggio complessivo errori in procedure di calcolo', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteFull_R', @level2type = N'COLUMN', @level2name = N'errorScore'; - - -GO -PRINT N'Creating [dbo].[QuoteSimPar].[QuoteType].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'tipo di preventivo: Q = quote, S = simulation', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteSimPar', @level2type = N'COLUMN', @level2name = N'QuoteType'; - - -GO -PRINT N'Creating [dbo].[QuoteSimPar].[CodQuote].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'numero nel formato yyMMddnnnn dove nnn è incrementale giornaliero', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteSimPar', @level2type = N'COLUMN', @level2name = N'CodQuote'; - - -GO -PRINT N'Creating [dbo].[ReportPrintTicket].[Ticket].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Ticket univoco per stampa', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ReportPrintTicket', @level2type = N'COLUMN', @level2name = N'Ticket'; - - -GO -PRINT N'Creating [dbo].[ReportPrintTicket].[Chiave].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'chiave multipla richiesta (specifica epr report)', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ReportPrintTicket', @level2type = N'COLUMN', @level2name = N'Chiave'; - - -GO -PRINT N'Creating [dbo].[ReportPrintTicket].[UserReq].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'user richiesta', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ReportPrintTicket', @level2type = N'COLUMN', @level2name = N'UserReq'; - - -GO -PRINT N'Creating [dbo].[ReportPrintTicket].[DataReq].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'data richiesta', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ReportPrintTicket', @level2type = N'COLUMN', @level2name = N'DataReq'; - - -GO -PRINT N'Creating [dbo].[ReportPrintTicket].[DataPrint].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'data stampa', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ReportPrintTicket', @level2type = N'COLUMN', @level2name = N'DataPrint'; - - -GO -PRINT N'Creating [dbo].[TrascClass01].[Note]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'Note', @value = N'Tabella per Trascodifica dati in Dati DEMO', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'TrascClass01'; - - -GO -PRINT N'Creating [dbo].[TrascClass02].[Note]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'Note', @value = N'Tabella per Trascodifica dati in Dati DEMO', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'TrascClass02'; - - -GO -PRINT N'Creating [dbo].[TrascClass03].[Note]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'Note', @value = N'Tabella per Trascodifica dati in Dati DEMO', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'TrascClass03'; - - -GO -PRINT N'Creating [dbo].[TrascClient].[Note]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'Note', @value = N'Tabella per Trascodifica dati in Dati DEMO', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'TrascClient'; - - -GO -PRINT N'Creating [dbo].[v_pivot].[MS_DiagramPaneCount]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_DiagramPaneCount', @value = 1, @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_pivot'; - - -GO -PRINT N'Creating [dbo].[v_pivot].[MS_DiagramPane1]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_DiagramPane1', @value = N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00] -Begin DesignProperties = - Begin PaneConfigurations = - Begin PaneConfiguration = 0 - NumPanes = 4 - Configuration = "(H (1[40] 4[20] 2[20] 3) )" - End - Begin PaneConfiguration = 1 - NumPanes = 3 - Configuration = "(H (1 [50] 4 [25] 3))" - End - Begin PaneConfiguration = 2 - NumPanes = 3 - Configuration = "(H (1 [50] 2 [25] 3))" - End - Begin PaneConfiguration = 3 - NumPanes = 3 - Configuration = "(H (4 [30] 2 [40] 3))" - End - Begin PaneConfiguration = 4 - NumPanes = 2 - Configuration = "(H (1 [56] 3))" - End - Begin PaneConfiguration = 5 - NumPanes = 2 - Configuration = "(H (2 [66] 3))" - End - Begin PaneConfiguration = 6 - NumPanes = 2 - Configuration = "(H (4 [50] 3))" - End - Begin PaneConfiguration = 7 - NumPanes = 1 - Configuration = "(V (3))" - End - Begin PaneConfiguration = 8 - NumPanes = 3 - Configuration = "(H (1[56] 4[18] 2) )" - End - Begin PaneConfiguration = 9 - NumPanes = 2 - Configuration = "(H (1 [75] 4))" - End - Begin PaneConfiguration = 10 - NumPanes = 2 - Configuration = "(H (1[66] 2) )" - End - Begin PaneConfiguration = 11 - NumPanes = 2 - Configuration = "(H (4 [60] 2))" - End - Begin PaneConfiguration = 12 - NumPanes = 1 - Configuration = "(H (1) )" - End - Begin PaneConfiguration = 13 - NumPanes = 1 - Configuration = "(V (4))" - End - Begin PaneConfiguration = 14 - NumPanes = 1 - Configuration = "(V (2))" - End - ActivePaneConfig = 0 - End - Begin DiagramPane = - Begin Origin = - Top = 0 - Left = 0 - End - Begin Tables = - End - End - Begin SQLPane = - End - Begin DataPane = - Begin ParameterDefaults = "" - End - End - Begin CriteriaPane = - Begin ColumnWidths = 11 - Column = 1440 - Alias = 900 - Table = 1170 - Output = 720 - Append = 1400 - NewValue = 1170 - SortType = 1350 - SortOrder = 1410 - GroupBy = 1350 - Filter = 1350 - Or = 1350 - Or = 1350 - Or = 1350 - End - End -End -', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_pivot'; - - -GO -PRINT N'Creating [dbo].[v_selDateStdCost].[MS_DiagramPaneCount]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_DiagramPaneCount', @value = 1, @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_selDateStdCost'; - - -GO -PRINT N'Creating [dbo].[v_selDateStdCost].[MS_DiagramPane1]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_DiagramPane1', @value = N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00] -Begin DesignProperties = - Begin PaneConfigurations = - Begin PaneConfiguration = 0 - NumPanes = 4 - Configuration = "(H (1[40] 4[20] 2[20] 3) )" - End - Begin PaneConfiguration = 1 - NumPanes = 3 - Configuration = "(H (1 [50] 4 [25] 3))" - End - Begin PaneConfiguration = 2 - NumPanes = 3 - Configuration = "(H (1 [50] 2 [25] 3))" - End - Begin PaneConfiguration = 3 - NumPanes = 3 - Configuration = "(H (4 [30] 2 [40] 3))" - End - Begin PaneConfiguration = 4 - NumPanes = 2 - Configuration = "(H (1 [56] 3))" - End - Begin PaneConfiguration = 5 - NumPanes = 2 - Configuration = "(H (2 [66] 3))" - End - Begin PaneConfiguration = 6 - NumPanes = 2 - Configuration = "(H (4 [50] 3))" - End - Begin PaneConfiguration = 7 - NumPanes = 1 - Configuration = "(V (3))" - End - Begin PaneConfiguration = 8 - NumPanes = 3 - Configuration = "(H (1[56] 4[18] 2) )" - End - Begin PaneConfiguration = 9 - NumPanes = 2 - Configuration = "(H (1 [75] 4))" - End - Begin PaneConfiguration = 10 - NumPanes = 2 - Configuration = "(H (1[66] 2) )" - End - Begin PaneConfiguration = 11 - NumPanes = 2 - Configuration = "(H (4 [60] 2))" - End - Begin PaneConfiguration = 12 - NumPanes = 1 - Configuration = "(H (1) )" - End - Begin PaneConfiguration = 13 - NumPanes = 1 - Configuration = "(V (4))" - End - Begin PaneConfiguration = 14 - NumPanes = 1 - Configuration = "(V (2))" - End - ActivePaneConfig = 0 - End - Begin DiagramPane = - Begin Origin = - Top = 0 - Left = 0 - End - Begin Tables = - Begin Table = "QuoteFull_C" - Begin Extent = - Top = 6 - Left = 38 - Bottom = 136 - Right = 213 - End - DisplayFlags = 280 - TopColumn = 0 - End - End - End - Begin SQLPane = - End - Begin DataPane = - Begin ParameterDefaults = "" - End - End - Begin CriteriaPane = - Begin ColumnWidths = 11 - Column = 1440 - Alias = 900 - Table = 1170 - Output = 720 - Append = 1400 - NewValue = 1170 - SortType = 1350 - SortOrder = 1410 - GroupBy = 1350 - Filter = 1350 - Or = 1350 - Or = 1350 - Or = 1350 - End - End -End -', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_selDateStdCost'; - - GO PRINT N'Creating [dbo].[v_selPackage].[MS_DiagramPaneCount]...'; @@ -19399,6 +19147,406 @@ End ', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_StdCostList'; +GO +PRINT N'Creating [dbo].[OrdersHist].[OrdNum].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'numero ordine', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'OrdersHist', @level2type = N'COLUMN', @level2name = N'OrdNum'; + + +GO +PRINT N'Creating [dbo].[OrdersHist].[OrdRow].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'riga ordine', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'OrdersHist', @level2type = N'COLUMN', @level2name = N'OrdRow'; + + +GO +PRINT N'Creating [dbo].[OrdersHist].[OrdDate].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'data dell''ordine', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'OrdersHist', @level2type = N'COLUMN', @level2name = N'OrdDate'; + + +GO +PRINT N'Creating [dbo].[OrdersHist].[CodClient].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'codice cliente', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'OrdersHist', @level2type = N'COLUMN', @level2name = N'CodClient'; + + +GO +PRINT N'Creating [dbo].[OrdersHist].[CodItem].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'codice articolo', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'OrdersHist', @level2type = N'COLUMN', @level2name = N'CodItem'; + + +GO +PRINT N'Creating [dbo].[OrdersHist].[RawMat].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'codice MP', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'OrdersHist', @level2type = N'COLUMN', @level2name = N'RawMat'; + + +GO +PRINT N'Creating [dbo].[OrdersHist].[RawMatCost].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'costo della MP €/kg', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'OrdersHist', @level2type = N'COLUMN', @level2name = N'RawMatCost'; + + +GO +PRINT N'Creating [dbo].[OrdersHist].[BatchQty].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Quantità lotto kg', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'OrdersHist', @level2type = N'COLUMN', @level2name = N'BatchQty'; + + +GO +PRINT N'Creating [dbo].[OrdersHist].[CodInco].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Codice Incoterms', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'OrdersHist', @level2type = N'COLUMN', @level2name = N'CodInco'; + + +GO +PRINT N'Creating [dbo].[OrdersHist].[OrdPrice].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Prezzo finale ordine', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'OrdersHist', @level2type = N'COLUMN', @level2name = N'OrdPrice'; + + +GO +PRINT N'Creating [dbo].[OrdersHist].[QuoteType].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'tipo di preventivo: Q = quote, S = simulation', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'OrdersHist', @level2type = N'COLUMN', @level2name = N'QuoteType'; + + +GO +PRINT N'Creating [dbo].[OrdersHist].[CodQuote].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'numero nel formato yyMMddnnnn dove nnn è incrementale giornaliero', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'OrdersHist', @level2type = N'COLUMN', @level2name = N'CodQuote'; + + +GO +PRINT N'Creating [dbo].[QuoteFull_R].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Resa', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteFull_R'; + + +GO +PRINT N'Creating [dbo].[QuoteFull_R].[IdxQState].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Stato offerta: 0 = D raft, 1 = C ompleted / in approvazione, 2 = A pprouved, 3 = R eleased', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteFull_R', @level2type = N'COLUMN', @level2name = N'IdxQState'; + + +GO +PRINT N'Creating [dbo].[QuoteFull_R].[TranspZone].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Classificazione cliente (es zona, provincia...) x incrocio con tab costi trasporto', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteFull_R', @level2type = N'COLUMN', @level2name = N'TranspZone'; + + +GO +PRINT N'Creating [dbo].[QuoteFull_R].[PriceOff].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Prezzo Offerto', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteFull_R', @level2type = N'COLUMN', @level2name = N'PriceOff'; + + +GO +PRINT N'Creating [dbo].[QuoteFull_R].[errorScore].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'punteggio complessivo errori in procedure di calcolo', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteFull_R', @level2type = N'COLUMN', @level2name = N'errorScore'; + + +GO +PRINT N'Creating [dbo].[QuoteFull_S].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Simulation', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteFull_S'; + + +GO +PRINT N'Creating [dbo].[QuoteFull_S].[DiesPrice_sim].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'costo matrice per SIMULAZIONE', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteFull_S', @level2type = N'COLUMN', @level2name = N'DiesPrice_sim'; + + +GO +PRINT N'Creating [dbo].[QuoteFull_S].[SamplePrice].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'costo prove', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteFull_S', @level2type = N'COLUMN', @level2name = N'SamplePrice'; + + +GO +PRINT N'Creating [dbo].[QuoteFull_S].[DiesFullCost].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'costo prove', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteFull_S', @level2type = N'COLUMN', @level2name = N'DiesFullCost'; + + +GO +PRINT N'Creating [dbo].[QuoteFull_S].[DiesTecLife].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Durata tecnica stimata', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteFull_S', @level2type = N'COLUMN', @level2name = N'DiesTecLife'; + + +GO +PRINT N'Creating [dbo].[QuoteFull_S].[DiesCommLife].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Durata commerciale in kg', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteFull_S', @level2type = N'COLUMN', @level2name = N'DiesCommLife'; + + +GO +PRINT N'Creating [dbo].[QuoteFull_S].[MonthSalesPrev].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Durata commerciale in mesi prevista', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteFull_S', @level2type = N'COLUMN', @level2name = N'MonthSalesPrev'; + + +GO +PRINT N'Creating [dbo].[QuoteFull_S].[SalesPrevCost].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'costi per durata commerciale', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteFull_S', @level2type = N'COLUMN', @level2name = N'SalesPrevCost'; + + +GO +PRINT N'Creating [dbo].[QuoteFull_S].[DiesFinCost].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'oneri finanziari anticipo matrice', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteFull_S', @level2type = N'COLUMN', @level2name = N'DiesFinCost'; + + +GO +PRINT N'Creating [dbo].[QuoteFull_S].[ClientQuoteReven].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Ricavo quota cliente', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteFull_S', @level2type = N'COLUMN', @level2name = N'ClientQuoteReven'; + + +GO +PRINT N'Creating [dbo].[QuoteFull_S].[ExtraDiscountDies].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Ricavo quota cliente', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteFull_S', @level2type = N'COLUMN', @level2name = N'ExtraDiscountDies'; + + +GO +PRINT N'Creating [dbo].[QuoteFull_S].[WSR01_sim].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'scarto tecnico SIMULAZIONE', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteFull_S', @level2type = N'COLUMN', @level2name = N'WSR01_sim'; + + +GO +PRINT N'Creating [dbo].[QuoteFull_S].[WSR01].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'scarto tecnico medio AMIL', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteFull_S', @level2type = N'COLUMN', @level2name = N'WSR01'; + + +GO +PRINT N'Creating [dbo].[QuoteFull_S].[MSR01_sim].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'scarto cesoia SIMULAZIONE', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteFull_S', @level2type = N'COLUMN', @level2name = N'MSR01_sim'; + + +GO +PRINT N'Creating [dbo].[QuoteFull_S].[MSR01].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'scarto cesoia medio AMIL', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteFull_S', @level2type = N'COLUMN', @level2name = N'MSR01'; + + +GO +PRINT N'Creating [dbo].[QuoteFull_S].[NetProd01_sim].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'produttività teorica SIMULAZIONE', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteFull_S', @level2type = N'COLUMN', @level2name = N'NetProd01_sim'; + + +GO +PRINT N'Creating [dbo].[QuoteFull_S].[NetProd04_sim].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'produttività teorica SIMULAZIONE', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteFull_S', @level2type = N'COLUMN', @level2name = N'NetProd04_sim'; + + +GO +PRINT N'Creating [dbo].[QuoteFull_S].[NetProd01].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'produttività teorica medio AMIL', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteFull_S', @level2type = N'COLUMN', @level2name = N'NetProd01'; + + +GO +PRINT N'Creating [dbo].[QuoteFull_S].[DSR_sim].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'scarto medio SIMULAZIONE', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteFull_S', @level2type = N'COLUMN', @level2name = N'DSR_sim'; + + +GO +PRINT N'Creating [dbo].[QuoteFull_S].[DSR].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'scarto medio AMI', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteFull_S', @level2type = N'COLUMN', @level2name = N'DSR'; + + +GO +PRINT N'Creating [dbo].[QuoteSimPar].[QuoteType].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'tipo di preventivo: Q = quote, S = simulation', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteSimPar', @level2type = N'COLUMN', @level2name = N'QuoteType'; + + +GO +PRINT N'Creating [dbo].[QuoteSimPar].[CodQuote].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'numero nel formato yyMMddnnnn dove nnn è incrementale giornaliero', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteSimPar', @level2type = N'COLUMN', @level2name = N'CodQuote'; + + +GO +PRINT N'Creating [dbo].[ReportPrintTicket].[Ticket].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Ticket univoco per stampa', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ReportPrintTicket', @level2type = N'COLUMN', @level2name = N'Ticket'; + + +GO +PRINT N'Creating [dbo].[ReportPrintTicket].[Chiave].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'chiave multipla richiesta (specifica epr report)', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ReportPrintTicket', @level2type = N'COLUMN', @level2name = N'Chiave'; + + +GO +PRINT N'Creating [dbo].[ReportPrintTicket].[UserReq].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'user richiesta', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ReportPrintTicket', @level2type = N'COLUMN', @level2name = N'UserReq'; + + +GO +PRINT N'Creating [dbo].[ReportPrintTicket].[DataReq].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'data richiesta', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ReportPrintTicket', @level2type = N'COLUMN', @level2name = N'DataReq'; + + +GO +PRINT N'Creating [dbo].[ReportPrintTicket].[DataPrint].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'data stampa', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ReportPrintTicket', @level2type = N'COLUMN', @level2name = N'DataPrint'; + + +GO +PRINT N'Creating [dbo].[TrascClass01].[Note]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'Note', @value = N'Tabella per Trascodifica dati in Dati DEMO', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'TrascClass01'; + + +GO +PRINT N'Creating [dbo].[TrascClass02].[Note]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'Note', @value = N'Tabella per Trascodifica dati in Dati DEMO', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'TrascClass02'; + + +GO +PRINT N'Creating [dbo].[TrascClass03].[Note]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'Note', @value = N'Tabella per Trascodifica dati in Dati DEMO', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'TrascClass03'; + + +GO +PRINT N'Creating [dbo].[TrascClient].[Note]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'Note', @value = N'Tabella per Trascodifica dati in Dati DEMO', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'TrascClient'; + + +GO +PRINT N'Creating [dbo].[TrascDies].[Note]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'Note', @value = N'Tabella per Trascodifica dati in Dati DEMO', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'TrascDies'; + + +GO +PRINT N'Creating [dbo].[TrascItem].[Note]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'Note', @value = N'Tabella per Trascodifica dati in Dati DEMO', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'TrascItem'; + + GO PRINT N'Creating [dbo].[v_listinoArticoli].[MS_DiagramPaneCount]...'; @@ -19815,239 +19963,15 @@ End GO -PRINT N'Creating [dbo].[v_QuoteFull_Q].[MS_DiagramPane1]...'; +PRINT N'Creating [dbo].[v_pivot].[MS_DiagramPaneCount]...'; GO -EXECUTE sp_addextendedproperty @name = N'MS_DiagramPane1', @value = N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00] -Begin DesignProperties = - Begin PaneConfigurations = - Begin PaneConfiguration = 0 - NumPanes = 4 - Configuration = "(H (1[40] 4[20] 2[20] 3) )" - End - Begin PaneConfiguration = 1 - NumPanes = 3 - Configuration = "(H (1 [50] 4 [25] 3))" - End - Begin PaneConfiguration = 2 - NumPanes = 3 - Configuration = "(H (1 [50] 2 [25] 3))" - End - Begin PaneConfiguration = 3 - NumPanes = 3 - Configuration = "(H (4 [30] 2 [40] 3))" - End - Begin PaneConfiguration = 4 - NumPanes = 2 - Configuration = "(H (1 [56] 3))" - End - Begin PaneConfiguration = 5 - NumPanes = 2 - Configuration = "(H (2 [66] 3))" - End - Begin PaneConfiguration = 6 - NumPanes = 2 - Configuration = "(H (4 [50] 3))" - End - Begin PaneConfiguration = 7 - NumPanes = 1 - Configuration = "(V (3))" - End - Begin PaneConfiguration = 8 - NumPanes = 3 - Configuration = "(H (1[56] 4[18] 2) )" - End - Begin PaneConfiguration = 9 - NumPanes = 2 - Configuration = "(H (1 [75] 4))" - End - Begin PaneConfiguration = 10 - NumPanes = 2 - Configuration = "(H (1[66] 2) )" - End - Begin PaneConfiguration = 11 - NumPanes = 2 - Configuration = "(H (4 [60] 2))" - End - Begin PaneConfiguration = 12 - NumPanes = 1 - Configuration = "(H (1) )" - End - Begin PaneConfiguration = 13 - NumPanes = 1 - Configuration = "(V (4))" - End - Begin PaneConfiguration = 14 - NumPanes = 1 - Configuration = "(V (2))" - End - ActivePaneConfig = 0 - End - Begin DiagramPane = - Begin Origin = - Top = -672 - Left = 0 - End - Begin Tables = - End - End - Begin SQLPane = - End - Begin DataPane = - Begin ParameterDefaults = "" - End - Begin ColumnWidths = 101 - Width = 284 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - ', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_QuoteFull_Q'; +EXECUTE sp_addextendedproperty @name = N'MS_DiagramPaneCount', @value = 1, @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_pivot'; GO -PRINT N'Creating [dbo].[v_QuoteFull_Q].[MS_DiagramPaneCount]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_DiagramPaneCount', @value = 2, @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_QuoteFull_Q'; - - -GO -PRINT N'Creating [dbo].[v_QuoteFull_Q].[MS_DiagramPane2]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_DiagramPane2', @value = N' Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - End - End - Begin CriteriaPane = - Begin ColumnWidths = 11 - Column = 1440 - Alias = 900 - Table = 1170 - Output = 720 - Append = 1400 - NewValue = 1170 - SortType = 1350 - SortOrder = 1410 - GroupBy = 1350 - Filter = 1350 - Or = 1350 - Or = 1350 - Or = 1350 - End - End -End -', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_QuoteFull_Q'; - - -GO -PRINT N'Creating [dbo].[v_selListVal].[MS_DiagramPaneCount]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_DiagramPaneCount', @value = 1, @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_selListVal'; - - -GO -PRINT N'Creating [dbo].[v_selListVal].[MS_DiagramPane1]...'; +PRINT N'Creating [dbo].[v_pivot].[MS_DiagramPane1]...'; GO @@ -20122,16 +20046,6 @@ Begin DesignProperties = Left = 0 End Begin Tables = - Begin Table = "ListValues" - Begin Extent = - Top = 6 - Left = 38 - Bottom = 136 - Right = 208 - End - DisplayFlags = 280 - TopColumn = 0 - End End End Begin SQLPane = @@ -20139,17 +20053,6 @@ Begin DesignProperties = Begin DataPane = Begin ParameterDefaults = "" End - Begin ColumnWidths = 9 - Width = 284 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - End End Begin CriteriaPane = Begin ColumnWidths = 11 @@ -20169,7 +20072,130 @@ Begin DesignProperties = End End End -', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_selListVal'; +', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_pivot'; + + +GO +PRINT N'Creating [dbo].[v_selDateStdCost].[MS_DiagramPaneCount]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_DiagramPaneCount', @value = 1, @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_selDateStdCost'; + + +GO +PRINT N'Creating [dbo].[v_selDateStdCost].[MS_DiagramPane1]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_DiagramPane1', @value = N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00] +Begin DesignProperties = + Begin PaneConfigurations = + Begin PaneConfiguration = 0 + NumPanes = 4 + Configuration = "(H (1[40] 4[20] 2[20] 3) )" + End + Begin PaneConfiguration = 1 + NumPanes = 3 + Configuration = "(H (1 [50] 4 [25] 3))" + End + Begin PaneConfiguration = 2 + NumPanes = 3 + Configuration = "(H (1 [50] 2 [25] 3))" + End + Begin PaneConfiguration = 3 + NumPanes = 3 + Configuration = "(H (4 [30] 2 [40] 3))" + End + Begin PaneConfiguration = 4 + NumPanes = 2 + Configuration = "(H (1 [56] 3))" + End + Begin PaneConfiguration = 5 + NumPanes = 2 + Configuration = "(H (2 [66] 3))" + End + Begin PaneConfiguration = 6 + NumPanes = 2 + Configuration = "(H (4 [50] 3))" + End + Begin PaneConfiguration = 7 + NumPanes = 1 + Configuration = "(V (3))" + End + Begin PaneConfiguration = 8 + NumPanes = 3 + Configuration = "(H (1[56] 4[18] 2) )" + End + Begin PaneConfiguration = 9 + NumPanes = 2 + Configuration = "(H (1 [75] 4))" + End + Begin PaneConfiguration = 10 + NumPanes = 2 + Configuration = "(H (1[66] 2) )" + End + Begin PaneConfiguration = 11 + NumPanes = 2 + Configuration = "(H (4 [60] 2))" + End + Begin PaneConfiguration = 12 + NumPanes = 1 + Configuration = "(H (1) )" + End + Begin PaneConfiguration = 13 + NumPanes = 1 + Configuration = "(V (4))" + End + Begin PaneConfiguration = 14 + NumPanes = 1 + Configuration = "(V (2))" + End + ActivePaneConfig = 0 + End + Begin DiagramPane = + Begin Origin = + Top = 0 + Left = 0 + End + Begin Tables = + Begin Table = "QuoteFull_C" + Begin Extent = + Top = 6 + Left = 38 + Bottom = 136 + Right = 213 + End + DisplayFlags = 280 + TopColumn = 0 + End + End + End + Begin SQLPane = + End + Begin DataPane = + Begin ParameterDefaults = "" + End + End + Begin CriteriaPane = + Begin ColumnWidths = 11 + Column = 1440 + Alias = 900 + Table = 1170 + Output = 720 + Append = 1400 + NewValue = 1170 + SortType = 1350 + SortOrder = 1410 + GroupBy = 1350 + Filter = 1350 + Or = 1350 + Or = 1350 + Or = 1350 + End + End +End +', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_selDateStdCost'; GO @@ -20415,163 +20441,137 @@ Begin DesignProperties = GO -PRINT N'Creating [dbo].[QuoteFull_S].[MS_Description]...'; +PRINT N'Creating [dbo].[v_selListVal].[MS_DiagramPaneCount]...'; GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Simulation', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteFull_S'; +EXECUTE sp_addextendedproperty @name = N'MS_DiagramPaneCount', @value = 1, @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_selListVal'; GO -PRINT N'Creating [dbo].[QuoteFull_S].[DiesPrice_sim].[MS_Description]...'; +PRINT N'Creating [dbo].[v_selListVal].[MS_DiagramPane1]...'; GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'costo matrice per SIMULAZIONE', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteFull_S', @level2type = N'COLUMN', @level2name = N'DiesPrice_sim'; - - -GO -PRINT N'Creating [dbo].[QuoteFull_S].[SamplePrice].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'costo prove', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteFull_S', @level2type = N'COLUMN', @level2name = N'SamplePrice'; - - -GO -PRINT N'Creating [dbo].[QuoteFull_S].[DiesFullCost].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'costo prove', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteFull_S', @level2type = N'COLUMN', @level2name = N'DiesFullCost'; - - -GO -PRINT N'Creating [dbo].[QuoteFull_S].[DiesTecLife].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Durata tecnica stimata', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteFull_S', @level2type = N'COLUMN', @level2name = N'DiesTecLife'; - - -GO -PRINT N'Creating [dbo].[QuoteFull_S].[DiesCommLife].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Durata commerciale in kg', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteFull_S', @level2type = N'COLUMN', @level2name = N'DiesCommLife'; - - -GO -PRINT N'Creating [dbo].[QuoteFull_S].[MonthSalesPrev].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Durata commerciale in mesi prevista', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteFull_S', @level2type = N'COLUMN', @level2name = N'MonthSalesPrev'; - - -GO -PRINT N'Creating [dbo].[QuoteFull_S].[SalesPrevCost].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'costi per durata commerciale', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteFull_S', @level2type = N'COLUMN', @level2name = N'SalesPrevCost'; - - -GO -PRINT N'Creating [dbo].[QuoteFull_S].[DiesFinCost].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'oneri finanziari anticipo matrice', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteFull_S', @level2type = N'COLUMN', @level2name = N'DiesFinCost'; - - -GO -PRINT N'Creating [dbo].[QuoteFull_S].[ClientQuoteReven].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Ricavo quota cliente', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteFull_S', @level2type = N'COLUMN', @level2name = N'ClientQuoteReven'; - - -GO -PRINT N'Creating [dbo].[QuoteFull_S].[ExtraDiscountDies].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Ricavo quota cliente', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteFull_S', @level2type = N'COLUMN', @level2name = N'ExtraDiscountDies'; - - -GO -PRINT N'Creating [dbo].[QuoteFull_S].[WSR01_sim].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'scarto tecnico SIMULAZIONE', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteFull_S', @level2type = N'COLUMN', @level2name = N'WSR01_sim'; - - -GO -PRINT N'Creating [dbo].[QuoteFull_S].[WSR01].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'scarto tecnico medio AMIL', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteFull_S', @level2type = N'COLUMN', @level2name = N'WSR01'; - - -GO -PRINT N'Creating [dbo].[QuoteFull_S].[MSR01_sim].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'scarto cesoia SIMULAZIONE', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteFull_S', @level2type = N'COLUMN', @level2name = N'MSR01_sim'; - - -GO -PRINT N'Creating [dbo].[QuoteFull_S].[MSR01].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'scarto cesoia medio AMIL', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteFull_S', @level2type = N'COLUMN', @level2name = N'MSR01'; - - -GO -PRINT N'Creating [dbo].[QuoteFull_S].[NetProd01_sim].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'produttività teorica SIMULAZIONE', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteFull_S', @level2type = N'COLUMN', @level2name = N'NetProd01_sim'; - - -GO -PRINT N'Creating [dbo].[QuoteFull_S].[NetProd04_sim].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'produttività teorica SIMULAZIONE', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteFull_S', @level2type = N'COLUMN', @level2name = N'NetProd04_sim'; - - -GO -PRINT N'Creating [dbo].[QuoteFull_S].[NetProd01].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'produttività teorica medio AMIL', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteFull_S', @level2type = N'COLUMN', @level2name = N'NetProd01'; - - -GO -PRINT N'Creating [dbo].[QuoteFull_S].[DSR_sim].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'scarto medio SIMULAZIONE', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteFull_S', @level2type = N'COLUMN', @level2name = N'DSR_sim'; - - -GO -PRINT N'Creating [dbo].[QuoteFull_S].[DSR].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'scarto medio AMI', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteFull_S', @level2type = N'COLUMN', @level2name = N'DSR'; +EXECUTE sp_addextendedproperty @name = N'MS_DiagramPane1', @value = N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00] +Begin DesignProperties = + Begin PaneConfigurations = + Begin PaneConfiguration = 0 + NumPanes = 4 + Configuration = "(H (1[40] 4[20] 2[20] 3) )" + End + Begin PaneConfiguration = 1 + NumPanes = 3 + Configuration = "(H (1 [50] 4 [25] 3))" + End + Begin PaneConfiguration = 2 + NumPanes = 3 + Configuration = "(H (1 [50] 2 [25] 3))" + End + Begin PaneConfiguration = 3 + NumPanes = 3 + Configuration = "(H (4 [30] 2 [40] 3))" + End + Begin PaneConfiguration = 4 + NumPanes = 2 + Configuration = "(H (1 [56] 3))" + End + Begin PaneConfiguration = 5 + NumPanes = 2 + Configuration = "(H (2 [66] 3))" + End + Begin PaneConfiguration = 6 + NumPanes = 2 + Configuration = "(H (4 [50] 3))" + End + Begin PaneConfiguration = 7 + NumPanes = 1 + Configuration = "(V (3))" + End + Begin PaneConfiguration = 8 + NumPanes = 3 + Configuration = "(H (1[56] 4[18] 2) )" + End + Begin PaneConfiguration = 9 + NumPanes = 2 + Configuration = "(H (1 [75] 4))" + End + Begin PaneConfiguration = 10 + NumPanes = 2 + Configuration = "(H (1[66] 2) )" + End + Begin PaneConfiguration = 11 + NumPanes = 2 + Configuration = "(H (4 [60] 2))" + End + Begin PaneConfiguration = 12 + NumPanes = 1 + Configuration = "(H (1) )" + End + Begin PaneConfiguration = 13 + NumPanes = 1 + Configuration = "(V (4))" + End + Begin PaneConfiguration = 14 + NumPanes = 1 + Configuration = "(V (2))" + End + ActivePaneConfig = 0 + End + Begin DiagramPane = + Begin Origin = + Top = 0 + Left = 0 + End + Begin Tables = + Begin Table = "ListValues" + Begin Extent = + Top = 6 + Left = 38 + Bottom = 136 + Right = 208 + End + DisplayFlags = 280 + TopColumn = 0 + End + End + End + Begin SQLPane = + End + Begin DataPane = + Begin ParameterDefaults = "" + End + Begin ColumnWidths = 9 + Width = 284 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + End + End + Begin CriteriaPane = + Begin ColumnWidths = 11 + Column = 1440 + Alias = 900 + Table = 1170 + Output = 720 + Append = 1400 + NewValue = 1170 + SortType = 1350 + SortOrder = 1410 + GroupBy = 1350 + Filter = 1350 + Or = 1350 + Or = 1350 + Or = 1350 + End + End +End +', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'VIEW', @level1name = N'v_selListVal'; GO @@ -21135,67 +21135,325 @@ EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'peso medio GO -PRINT N'Creating [ext].[RcdItem].[CodItem].[MS_Description]...'; +PRINT N'Creating [ext].[v_ClientDetRcd].[MS_DiagramPaneCount]...'; GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'codice articolo', @level0type = N'SCHEMA', @level0name = N'ext', @level1type = N'TABLE', @level1name = N'RcdItem', @level2type = N'COLUMN', @level2name = N'CodItem'; +EXECUTE sp_addextendedproperty @name = N'MS_DiagramPaneCount', @value = 1, @level0type = N'SCHEMA', @level0name = N'ext', @level1type = N'VIEW', @level1name = N'v_ClientDetRcd'; GO -PRINT N'Creating [ext].[RcdItem].[CodItemRcd].[MS_Description]...'; +PRINT N'Creating [ext].[v_ClientDetRcd].[MS_DiagramPane1]...'; GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'codice articolo', @level0type = N'SCHEMA', @level0name = N'ext', @level1type = N'TABLE', @level1name = N'RcdItem', @level2type = N'COLUMN', @level2name = N'CodItemRcd'; +EXECUTE sp_addextendedproperty @name = N'MS_DiagramPane1', @value = N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00] +Begin DesignProperties = + Begin PaneConfigurations = + Begin PaneConfiguration = 0 + NumPanes = 4 + Configuration = "(H (1[40] 4[20] 2[20] 3) )" + End + Begin PaneConfiguration = 1 + NumPanes = 3 + Configuration = "(H (1 [50] 4 [25] 3))" + End + Begin PaneConfiguration = 2 + NumPanes = 3 + Configuration = "(H (1 [50] 2 [25] 3))" + End + Begin PaneConfiguration = 3 + NumPanes = 3 + Configuration = "(H (4 [30] 2 [40] 3))" + End + Begin PaneConfiguration = 4 + NumPanes = 2 + Configuration = "(H (1 [56] 3))" + End + Begin PaneConfiguration = 5 + NumPanes = 2 + Configuration = "(H (2 [66] 3))" + End + Begin PaneConfiguration = 6 + NumPanes = 2 + Configuration = "(H (4 [50] 3))" + End + Begin PaneConfiguration = 7 + NumPanes = 1 + Configuration = "(V (3))" + End + Begin PaneConfiguration = 8 + NumPanes = 3 + Configuration = "(H (1[56] 4[18] 2) )" + End + Begin PaneConfiguration = 9 + NumPanes = 2 + Configuration = "(H (1 [75] 4))" + End + Begin PaneConfiguration = 10 + NumPanes = 2 + Configuration = "(H (1[66] 2) )" + End + Begin PaneConfiguration = 11 + NumPanes = 2 + Configuration = "(H (4 [60] 2))" + End + Begin PaneConfiguration = 12 + NumPanes = 1 + Configuration = "(H (1) )" + End + Begin PaneConfiguration = 13 + NumPanes = 1 + Configuration = "(V (4))" + End + Begin PaneConfiguration = 14 + NumPanes = 1 + Configuration = "(V (2))" + End + ActivePaneConfig = 0 + End + Begin DiagramPane = + Begin Origin = + Top = 0 + Left = 0 + End + Begin Tables = + Begin Table = "ClientDet" + Begin Extent = + Top = 6 + Left = 38 + Bottom = 136 + Right = 208 + End + DisplayFlags = 280 + TopColumn = 0 + End + Begin Table = "RcdClient (ext)" + Begin Extent = + Top = 6 + Left = 246 + Bottom = 153 + Right = 416 + End + DisplayFlags = 280 + TopColumn = 0 + End + End + End + Begin SQLPane = + End + Begin DataPane = + Begin ParameterDefaults = "" + End + Begin ColumnWidths = 10 + Width = 284 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + End + End + Begin CriteriaPane = + Begin ColumnWidths = 11 + Column = 1440 + Alias = 900 + Table = 1170 + Output = 720 + Append = 1400 + NewValue = 1170 + SortType = 1350 + SortOrder = 1410 + GroupBy = 1350 + Filter = 1350 + Or = 1350 + Or = 1350 + Or = 1350 + End + End +End +', @level0type = N'SCHEMA', @level0name = N'ext', @level1type = N'VIEW', @level1name = N'v_ClientDetRcd'; GO -PRINT N'Creating [ext].[RcdClient].[CodClient].[MS_Description]...'; +PRINT N'Creating [ext].[v_ItemDetRcd].[MS_DiagramPaneCount]...'; GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'codice cliente', @level0type = N'SCHEMA', @level0name = N'ext', @level1type = N'TABLE', @level1name = N'RcdClient', @level2type = N'COLUMN', @level2name = N'CodClient'; +EXECUTE sp_addextendedproperty @name = N'MS_DiagramPaneCount', @value = 2, @level0type = N'SCHEMA', @level0name = N'ext', @level1type = N'VIEW', @level1name = N'v_ItemDetRcd'; GO -PRINT N'Creating [ext].[RcdClient].[CodClientRcd].[MS_Description]...'; +PRINT N'Creating [ext].[v_ItemDetRcd].[MS_DiagramPane2]...'; GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'codice cliente', @level0type = N'SCHEMA', @level0name = N'ext', @level1type = N'TABLE', @level1name = N'RcdClient', @level2type = N'COLUMN', @level2name = N'CodClientRcd'; +EXECUTE sp_addextendedproperty @name = N'MS_DiagramPane2', @value = N' SortOrder = 1410 + GroupBy = 1350 + Filter = 1350 + Or = 1350 + Or = 1350 + Or = 1350 + End + End +End +', @level0type = N'SCHEMA', @level0name = N'ext', @level1type = N'VIEW', @level1name = N'v_ItemDetRcd'; GO -PRINT N'Creating [ext].[RcdClient].[CodAgRcd].[MS_Description]...'; +PRINT N'Creating [ext].[v_ItemDetRcd].[MS_DiagramPane1]...'; GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'codice agente...', @level0type = N'SCHEMA', @level0name = N'ext', @level1type = N'TABLE', @level1name = N'RcdClient', @level2type = N'COLUMN', @level2name = N'CodAgRcd'; - - -GO -PRINT N'Creating [ext].[RcdClient].[ClientNameRcd].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Ragione Sociale', @level0type = N'SCHEMA', @level0name = N'ext', @level1type = N'TABLE', @level1name = N'RcdClient', @level2type = N'COLUMN', @level2name = N'ClientNameRcd'; - - -GO -PRINT N'Creating [ext].[RcdClass01].[CodClass01].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'codice cliente', @level0type = N'SCHEMA', @level0name = N'ext', @level1type = N'TABLE', @level1name = N'RcdClass01', @level2type = N'COLUMN', @level2name = N'CodClass01'; - - -GO -PRINT N'Creating [ext].[RcdClass01].[CodClass01Rcd].[MS_Description]...'; - - -GO -EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'codice cliente', @level0type = N'SCHEMA', @level0name = N'ext', @level1type = N'TABLE', @level1name = N'RcdClass01', @level2type = N'COLUMN', @level2name = N'CodClass01Rcd'; +EXECUTE sp_addextendedproperty @name = N'MS_DiagramPane1', @value = N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00] +Begin DesignProperties = + Begin PaneConfigurations = + Begin PaneConfiguration = 0 + NumPanes = 4 + Configuration = "(H (1[40] 4[20] 2[20] 3) )" + End + Begin PaneConfiguration = 1 + NumPanes = 3 + Configuration = "(H (1 [50] 4 [25] 3))" + End + Begin PaneConfiguration = 2 + NumPanes = 3 + Configuration = "(H (1 [50] 2 [25] 3))" + End + Begin PaneConfiguration = 3 + NumPanes = 3 + Configuration = "(H (4 [30] 2 [40] 3))" + End + Begin PaneConfiguration = 4 + NumPanes = 2 + Configuration = "(H (1 [56] 3))" + End + Begin PaneConfiguration = 5 + NumPanes = 2 + Configuration = "(H (2 [66] 3))" + End + Begin PaneConfiguration = 6 + NumPanes = 2 + Configuration = "(H (4 [50] 3))" + End + Begin PaneConfiguration = 7 + NumPanes = 1 + Configuration = "(V (3))" + End + Begin PaneConfiguration = 8 + NumPanes = 3 + Configuration = "(H (1[56] 4[18] 2) )" + End + Begin PaneConfiguration = 9 + NumPanes = 2 + Configuration = "(H (1 [75] 4))" + End + Begin PaneConfiguration = 10 + NumPanes = 2 + Configuration = "(H (1[66] 2) )" + End + Begin PaneConfiguration = 11 + NumPanes = 2 + Configuration = "(H (4 [60] 2))" + End + Begin PaneConfiguration = 12 + NumPanes = 1 + Configuration = "(H (1) )" + End + Begin PaneConfiguration = 13 + NumPanes = 1 + Configuration = "(V (4))" + End + Begin PaneConfiguration = 14 + NumPanes = 1 + Configuration = "(V (2))" + End + ActivePaneConfig = 0 + End + Begin DiagramPane = + Begin Origin = + Top = 0 + Left = 0 + End + Begin Tables = + Begin Table = "ItemDet" + Begin Extent = + Top = 34 + Left = 516 + Bottom = 272 + Right = 686 + End + DisplayFlags = 280 + TopColumn = 0 + End + Begin Table = "RcdItem (ext)" + Begin Extent = + Top = 6 + Left = 246 + Bottom = 178 + Right = 416 + End + DisplayFlags = 280 + TopColumn = 0 + End + Begin Table = "RcdClass01 (ext)" + Begin Extent = + Top = 64 + Left = 836 + Bottom = 160 + Right = 1006 + End + DisplayFlags = 280 + TopColumn = 0 + End + Begin Table = "RcdClass02 (ext)" + Begin Extent = + Top = 185 + Left = 840 + Bottom = 281 + Right = 1010 + End + DisplayFlags = 280 + TopColumn = 0 + End + End + End + Begin SQLPane = + End + Begin DataPane = + Begin ParameterDefaults = "" + End + Begin ColumnWidths = 14 + Width = 284 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + Width = 1500 + End + End + Begin CriteriaPane = + Begin ColumnWidths = 11 + Column = 1440 + Alias = 900 + Table = 1605 + Output = 720 + Append = 1400 + NewValue = 1170 + SortType = 1350 + ', @level0type = N'SCHEMA', @level0name = N'ext', @level1type = N'VIEW', @level1name = N'v_ItemDetRcd'; GO @@ -21438,325 +21696,67 @@ Begin DesignProperties = GO -PRINT N'Creating [ext].[v_ItemDetRcd].[MS_DiagramPaneCount]...'; +PRINT N'Creating [ext].[RcdClass01].[CodClass01].[MS_Description]...'; GO -EXECUTE sp_addextendedproperty @name = N'MS_DiagramPaneCount', @value = 2, @level0type = N'SCHEMA', @level0name = N'ext', @level1type = N'VIEW', @level1name = N'v_ItemDetRcd'; +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'codice cliente', @level0type = N'SCHEMA', @level0name = N'ext', @level1type = N'TABLE', @level1name = N'RcdClass01', @level2type = N'COLUMN', @level2name = N'CodClass01'; GO -PRINT N'Creating [ext].[v_ItemDetRcd].[MS_DiagramPane2]...'; +PRINT N'Creating [ext].[RcdClass01].[CodClass01Rcd].[MS_Description]...'; GO -EXECUTE sp_addextendedproperty @name = N'MS_DiagramPane2', @value = N' SortOrder = 1410 - GroupBy = 1350 - Filter = 1350 - Or = 1350 - Or = 1350 - Or = 1350 - End - End -End -', @level0type = N'SCHEMA', @level0name = N'ext', @level1type = N'VIEW', @level1name = N'v_ItemDetRcd'; +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'codice cliente', @level0type = N'SCHEMA', @level0name = N'ext', @level1type = N'TABLE', @level1name = N'RcdClass01', @level2type = N'COLUMN', @level2name = N'CodClass01Rcd'; GO -PRINT N'Creating [ext].[v_ItemDetRcd].[MS_DiagramPane1]...'; +PRINT N'Creating [ext].[RcdClient].[CodClient].[MS_Description]...'; GO -EXECUTE sp_addextendedproperty @name = N'MS_DiagramPane1', @value = N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00] -Begin DesignProperties = - Begin PaneConfigurations = - Begin PaneConfiguration = 0 - NumPanes = 4 - Configuration = "(H (1[40] 4[20] 2[20] 3) )" - End - Begin PaneConfiguration = 1 - NumPanes = 3 - Configuration = "(H (1 [50] 4 [25] 3))" - End - Begin PaneConfiguration = 2 - NumPanes = 3 - Configuration = "(H (1 [50] 2 [25] 3))" - End - Begin PaneConfiguration = 3 - NumPanes = 3 - Configuration = "(H (4 [30] 2 [40] 3))" - End - Begin PaneConfiguration = 4 - NumPanes = 2 - Configuration = "(H (1 [56] 3))" - End - Begin PaneConfiguration = 5 - NumPanes = 2 - Configuration = "(H (2 [66] 3))" - End - Begin PaneConfiguration = 6 - NumPanes = 2 - Configuration = "(H (4 [50] 3))" - End - Begin PaneConfiguration = 7 - NumPanes = 1 - Configuration = "(V (3))" - End - Begin PaneConfiguration = 8 - NumPanes = 3 - Configuration = "(H (1[56] 4[18] 2) )" - End - Begin PaneConfiguration = 9 - NumPanes = 2 - Configuration = "(H (1 [75] 4))" - End - Begin PaneConfiguration = 10 - NumPanes = 2 - Configuration = "(H (1[66] 2) )" - End - Begin PaneConfiguration = 11 - NumPanes = 2 - Configuration = "(H (4 [60] 2))" - End - Begin PaneConfiguration = 12 - NumPanes = 1 - Configuration = "(H (1) )" - End - Begin PaneConfiguration = 13 - NumPanes = 1 - Configuration = "(V (4))" - End - Begin PaneConfiguration = 14 - NumPanes = 1 - Configuration = "(V (2))" - End - ActivePaneConfig = 0 - End - Begin DiagramPane = - Begin Origin = - Top = 0 - Left = 0 - End - Begin Tables = - Begin Table = "ItemDet" - Begin Extent = - Top = 34 - Left = 516 - Bottom = 272 - Right = 686 - End - DisplayFlags = 280 - TopColumn = 0 - End - Begin Table = "RcdItem (ext)" - Begin Extent = - Top = 6 - Left = 246 - Bottom = 178 - Right = 416 - End - DisplayFlags = 280 - TopColumn = 0 - End - Begin Table = "RcdClass01 (ext)" - Begin Extent = - Top = 64 - Left = 836 - Bottom = 160 - Right = 1006 - End - DisplayFlags = 280 - TopColumn = 0 - End - Begin Table = "RcdClass02 (ext)" - Begin Extent = - Top = 185 - Left = 840 - Bottom = 281 - Right = 1010 - End - DisplayFlags = 280 - TopColumn = 0 - End - End - End - Begin SQLPane = - End - Begin DataPane = - Begin ParameterDefaults = "" - End - Begin ColumnWidths = 14 - Width = 284 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - End - End - Begin CriteriaPane = - Begin ColumnWidths = 11 - Column = 1440 - Alias = 900 - Table = 1605 - Output = 720 - Append = 1400 - NewValue = 1170 - SortType = 1350 - ', @level0type = N'SCHEMA', @level0name = N'ext', @level1type = N'VIEW', @level1name = N'v_ItemDetRcd'; +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'codice cliente', @level0type = N'SCHEMA', @level0name = N'ext', @level1type = N'TABLE', @level1name = N'RcdClient', @level2type = N'COLUMN', @level2name = N'CodClient'; GO -PRINT N'Creating [ext].[v_ClientDetRcd].[MS_DiagramPaneCount]...'; +PRINT N'Creating [ext].[RcdClient].[CodClientRcd].[MS_Description]...'; GO -EXECUTE sp_addextendedproperty @name = N'MS_DiagramPaneCount', @value = 1, @level0type = N'SCHEMA', @level0name = N'ext', @level1type = N'VIEW', @level1name = N'v_ClientDetRcd'; +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'codice cliente', @level0type = N'SCHEMA', @level0name = N'ext', @level1type = N'TABLE', @level1name = N'RcdClient', @level2type = N'COLUMN', @level2name = N'CodClientRcd'; GO -PRINT N'Creating [ext].[v_ClientDetRcd].[MS_DiagramPane1]...'; +PRINT N'Creating [ext].[RcdClient].[CodAgRcd].[MS_Description]...'; GO -EXECUTE sp_addextendedproperty @name = N'MS_DiagramPane1', @value = N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00] -Begin DesignProperties = - Begin PaneConfigurations = - Begin PaneConfiguration = 0 - NumPanes = 4 - Configuration = "(H (1[40] 4[20] 2[20] 3) )" - End - Begin PaneConfiguration = 1 - NumPanes = 3 - Configuration = "(H (1 [50] 4 [25] 3))" - End - Begin PaneConfiguration = 2 - NumPanes = 3 - Configuration = "(H (1 [50] 2 [25] 3))" - End - Begin PaneConfiguration = 3 - NumPanes = 3 - Configuration = "(H (4 [30] 2 [40] 3))" - End - Begin PaneConfiguration = 4 - NumPanes = 2 - Configuration = "(H (1 [56] 3))" - End - Begin PaneConfiguration = 5 - NumPanes = 2 - Configuration = "(H (2 [66] 3))" - End - Begin PaneConfiguration = 6 - NumPanes = 2 - Configuration = "(H (4 [50] 3))" - End - Begin PaneConfiguration = 7 - NumPanes = 1 - Configuration = "(V (3))" - End - Begin PaneConfiguration = 8 - NumPanes = 3 - Configuration = "(H (1[56] 4[18] 2) )" - End - Begin PaneConfiguration = 9 - NumPanes = 2 - Configuration = "(H (1 [75] 4))" - End - Begin PaneConfiguration = 10 - NumPanes = 2 - Configuration = "(H (1[66] 2) )" - End - Begin PaneConfiguration = 11 - NumPanes = 2 - Configuration = "(H (4 [60] 2))" - End - Begin PaneConfiguration = 12 - NumPanes = 1 - Configuration = "(H (1) )" - End - Begin PaneConfiguration = 13 - NumPanes = 1 - Configuration = "(V (4))" - End - Begin PaneConfiguration = 14 - NumPanes = 1 - Configuration = "(V (2))" - End - ActivePaneConfig = 0 - End - Begin DiagramPane = - Begin Origin = - Top = 0 - Left = 0 - End - Begin Tables = - Begin Table = "ClientDet" - Begin Extent = - Top = 6 - Left = 38 - Bottom = 136 - Right = 208 - End - DisplayFlags = 280 - TopColumn = 0 - End - Begin Table = "RcdClient (ext)" - Begin Extent = - Top = 6 - Left = 246 - Bottom = 153 - Right = 416 - End - DisplayFlags = 280 - TopColumn = 0 - End - End - End - Begin SQLPane = - End - Begin DataPane = - Begin ParameterDefaults = "" - End - Begin ColumnWidths = 10 - Width = 284 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - Width = 1500 - End - End - Begin CriteriaPane = - Begin ColumnWidths = 11 - Column = 1440 - Alias = 900 - Table = 1170 - Output = 720 - Append = 1400 - NewValue = 1170 - SortType = 1350 - SortOrder = 1410 - GroupBy = 1350 - Filter = 1350 - Or = 1350 - Or = 1350 - Or = 1350 - End - End -End -', @level0type = N'SCHEMA', @level0name = N'ext', @level1type = N'VIEW', @level1name = N'v_ClientDetRcd'; +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'codice agente...', @level0type = N'SCHEMA', @level0name = N'ext', @level1type = N'TABLE', @level1name = N'RcdClient', @level2type = N'COLUMN', @level2name = N'CodAgRcd'; + + +GO +PRINT N'Creating [ext].[RcdClient].[ClientNameRcd].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Ragione Sociale', @level0type = N'SCHEMA', @level0name = N'ext', @level1type = N'TABLE', @level1name = N'RcdClient', @level2type = N'COLUMN', @level2name = N'ClientNameRcd'; + + +GO +PRINT N'Creating [ext].[RcdItem].[CodItem].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'codice articolo', @level0type = N'SCHEMA', @level0name = N'ext', @level1type = N'TABLE', @level1name = N'RcdItem', @level2type = N'COLUMN', @level2name = N'CodItem'; + + +GO +PRINT N'Creating [ext].[RcdItem].[CodItemRcd].[MS_Description]...'; + + +GO +EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'codice articolo', @level0type = N'SCHEMA', @level0name = N'ext', @level1type = N'TABLE', @level1name = N'RcdItem', @level2type = N'COLUMN', @level2name = N'CodItemRcd'; GO diff --git a/C2P_Project/bin/Output/C2P_Project.dll b/C2P_Project/bin/Output/C2P_Project.dll index c89db13..7c8b7fd 100644 Binary files a/C2P_Project/bin/Output/C2P_Project.dll and b/C2P_Project/bin/Output/C2P_Project.dll differ diff --git a/C2P_Report/C2P_Report.csproj b/C2P_Report/C2P_Report.csproj index b49ea74..ce1c21d 100644 --- a/C2P_Report/C2P_Report.csproj +++ b/C2P_Report/C2P_Report.csproj @@ -19,6 +19,7 @@ + true @@ -38,8 +39,8 @@ 4 - - + + @@ -135,6 +136,9 @@ + + + Web.config diff --git a/C2P_Report/Reports/COSTIMATE/OffertDOC.rdl b/C2P_Report/Reports/COSTIMATE/OffertDOC.rdl new file mode 100644 index 0000000..459f558 --- /dev/null +++ b/C2P_Report/Reports/COSTIMATE/OffertDOC.rdl @@ -0,0 +1,1677 @@ + + + Steamware SRL - Vers. 1.3.1 + 0 + + + DB_C2P + None + ffd8a90c-e6a6-4b01-88d5-724b8c467036 + + + + + + DB_C2P + + + =Parameters!Ticket.Value + true + + + =Parameters!Chiave.Value + + + StoredProcedure + stp_prt_dsQuoteFull_Q_Data + true + + + + =Fields!QuoteType.Value+CStr(Fields!CodQuote.Value)+CStr(Fields!QuoteRev.Value) + + + Vers + System.String + + + QuoteType + System.String + + + CodQuote + System.Int64 + + + OfferResult + System.String + + + QuoteRev + System.Int32 + + + IdxQState + System.Int32 + + + KoReason + System.String + + + CodClient + System.String + + + Agente + System.String + + + ClientName + System.String + + + ProdType + System.String + + + CodItem + System.String + + + CodItemGroup + System.String + + + RawMat + System.String + + + UnitWeight + System.Decimal + + + BatchQty + System.Int32 + + + CodInco + System.String + + + TranspZone + System.String + + + KeyAM + System.String + + + Note + System.String + + + PriceOff + System.Decimal + + + CodClientAssoc + System.String + + + ClientNameAssoc + System.String + + + ItemDescr + System.String + + + CodifProfilo + System.String + + + ClasseMerc + System.String + + + TipoDies + System.String + + + CodDiesGroup + System.String + + + DiamDies + System.Decimal + + + HoleNumDies + System.Int32 + + + DiesPrice + System.Decimal + + + DiesExpLife + System.Decimal + + + DiesEOLife + System.Decimal + + + DiesByClass + System.Boolean + + + NumDiesInList + System.Decimal + + + NumDiesExaust + System.Decimal + + + CodPlant + System.String + + + KeyAMIL + System.String + + + KgTeo + System.Decimal + + + NumSMED + System.Decimal + + + QuotaMan + System.Decimal + + + PRMWeight + System.Decimal + + + PWeight + System.Decimal + + + PTare + System.Decimal + + + LivPackage + System.String + + + LivPackageDett + System.String + + + RawMatCost + System.Decimal + + + RawMatExtraCost + System.Decimal + + + RawMatFullCost + System.Decimal + + + CodPackag + System.String + + + PkgDesc + System.String + + + FSR + System.Decimal + + + ProvvCost + System.Decimal + + + EECost + System.Decimal + + + GasCost + System.Decimal + + + DiesCost + System.Decimal + + + PackCost + System.Decimal + + + TranspCost + System.Decimal + + + SellCost01 + System.Decimal + + + RefCost01 + System.Decimal + + + SellCost04 + System.Decimal + + + RefCost04 + System.Decimal + + + WSR01 + System.Decimal + + + MSR01 + System.Decimal + + + NetProd01 + System.Decimal + + + FC4UG01 + System.Decimal + + + VC4UG01 + System.Decimal + + + OH4UG01 + System.Decimal + + + SC4UG01 + System.Decimal + + + DSR + System.Decimal + + + NetProd04 + System.Decimal + + + FC4UG04 + System.Decimal + + + VC4UG04 + System.Decimal + + + FVC + System.Decimal + + + Charge + System.Decimal + + + P_FVC + System.Decimal + + + CPS + System.Decimal + + + P_CPS + System.Decimal + + + P_FC4UG04 + System.Decimal + + + FullCost + System.Decimal + + + P_FullCost + System.Decimal + + + MinPrice + System.Decimal + + + P_MinPrice + System.Decimal + + + P_PriceOff + System.Decimal + + + NetMar + System.Decimal + + + FCShield + System.Decimal + + + PckSur + System.Decimal + + + valid + System.Boolean + + + errorScore + System.Int32 + + + DiesPrice_sim + System.Decimal + + + SamplePrice + System.Decimal + + + DiesFullCost + System.Decimal + + + DiesPriceClientQuote + System.Decimal + + + DiesTecLife + System.Decimal + + + DiesCommLife + System.Decimal + + + MonthSalesPrev + System.Decimal + + + SalesPrevCost + System.Decimal + + + DiesFinCost + System.Decimal + + + ClientQuoteReven + System.Decimal + + + ExtraDiscountDies + System.Decimal + + + WSR01_sim + System.Decimal + + + MSR01_sim + System.Decimal + + + NetProd01_sim + System.Decimal + + + NetProd04_sim + System.Decimal + + + DSR_sim + System.Decimal + + + NetMar_sim + System.Decimal + + + FCShield_sim + System.Decimal + + + MinPrice_sim + System.Decimal + + + P_MinPrice_sim + System.Decimal + + + Cli_ZipCode + System.String + + + Cli_City + System.String + + + Cli_State + System.String + + + Cli_Nation + System.String + + + DescInco + System.String + + + + + + + + + + + + + 18.9cm + + + + + 19.38542cm + + + + + + + External + ="http://COSTIMATE/C2P/Drawings/logo_OfferDOC.png" + FitProportional + 0.36903cm + 0.44335cm + 1.5cm + 6.58cm + + + + + + + + + 2.15604cm + + + 4.10015cm + + + 1.91791cm + + + 2.28833cm + + + 1.97082cm + + + 2.76459cm + + + 2.79104cm + + + + + 0.6cm + + + + + true + true + + + + + Cod. Prod. + + + + + + + Textbox13 + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Descrizione + + + + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Lega + + + + + + + Textbox17 + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Prezzo/kg + + + + + + + Textbox23 + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Quantità + + + + + + + Textbox25 + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Totale + + + + + + + Textbox38 + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Data Consegna + + + + + + + Textbox27 + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + + + + + 0.6cm + + + + + true + true + + + + + =Fields!CodItem.Value + + + + + + + CodItem1 + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!ItemDescr.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!RawMat.Value + + + + + + + RawMat + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!P_PriceOff.Value + + + + + + 2pt + 2pt + 2pt + 2pt + it-IT + + + + + + + + true + true + + + + + =Fields!BatchQty.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!P_PriceOff.Value * Fields!BatchQty.Value + + + + + + 2pt + 2pt + 2pt + 2pt + it-IT + + + + + + + + true + true + + + + + __ /__ /____ + + + + + + + Textbox28 + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + + + + + + + + + + + + + + + + After + + + + + + + dsQuoteFull_Q_Data + 14.56063cm + 0.41689cm + 1.2cm + 17.98888cm + 1 + + + + + + true + true + + + + + =Fields!DescInco.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + Di seguito le condizioni offerte + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + Oggetto: Offerta commerciale + + + + + =Fields!QuoteType.Value+"|"+CStr(Fields!CodQuote.Value)+"."+CStr(Fields!QuoteRev.Value) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + + ="Bergamo, " + FormatDateTime(Today(),DateFormat.ShortDate) + + + + + + + + + + =Fields!ClientName.Value + + + + + + + + + + + + + + + + + + + + =Fields!Cli_City.Value + + + + + + + + + + + =Fields!Cli_Nation.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + + + + + + + + + + 2.5cm + + + + + + + true + true + + + + + In Fede + + + + + + + + + + + + + + + + + + =Fields!Agente.Value + + + + + + + Textbox155 + 11.89981cm + 2.5cm + 5.64854cm + + + 2pt + 2pt + 2pt + 2pt + + + + true + + + + + + + + + + + + + + + + + + + + + =Fields!Key.Value + + + Between + + + + + =Fields!Key.Value + + + + + + + + + + dsQuoteFull_Q_Data + 0.00001cm + 21.88542cm + 18.9cm + + 0.25pt + + + + + 27cm + - true @@ -1671,32 +1670,6 @@ true - - - image/jpeg - /9j/4AAQSkZJRgABAQEBLAEsAAD/4gxYSUNDX1BST0ZJTEUAAQEAAAxITGlubwIQAABtbnRyUkdCIFhZWiAHzgACAAkABgAxAABhY3NwTVNGVAAAAABJRUMgc1JHQgAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLUhQICAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABFjcHJ0AAABUAAAADNkZXNjAAABhAAAAGx3dHB0AAAB8AAAABRia3B0AAACBAAAABRyWFlaAAACGAAAABRnWFlaAAACLAAAABRiWFlaAAACQAAAABRkbW5kAAACVAAAAHBkbWRkAAACxAAAAIh2dWVkAAADTAAAAIZ2aWV3AAAD1AAAACRsdW1pAAAD+AAAABRtZWFzAAAEDAAAACR0ZWNoAAAEMAAAAAxyVFJDAAAEPAAACAxnVFJDAAAEPAAACAxiVFJDAAAEPAAACAx0ZXh0AAAAAENvcHlyaWdodCAoYykgMTk5OCBIZXdsZXR0LVBhY2thcmQgQ29tcGFueQAAZGVzYwAAAAAAAAASc1JHQiBJRUM2MTk2Ni0yLjEAAAAAAAAAAAAAABJzUkdCIElFQzYxOTY2LTIuMQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAWFlaIAAAAAAAAPNRAAEAAAABFsxYWVogAAAAAAAAAAAAAAAAAAAAAFhZWiAAAAAAAABvogAAOPUAAAOQWFlaIAAAAAAAAGKZAAC3hQAAGNpYWVogAAAAAAAAJKAAAA+EAAC2z2Rlc2MAAAAAAAAAFklFQyBodHRwOi8vd3d3LmllYy5jaAAAAAAAAAAAAAAAFklFQyBodH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ZVlkCtMVH6KUUV9NTh7OnGne9kf5ycQZtHPc9xmdQw8KCr1J1PZ07qnT55OXLFO/uq+n4JLQ/gp/4IFA/wDDyvwBwf8Akk3jLt/042tf3rUUV5mS/wC6P/E/0P6R+mB/ydSh/wBgdH/05XCiiivWP5WCiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigD//Z - - it-IT true Cm diff --git a/C2P_Report/Reports/COSTIMATE/ReportOffers_Q.rdl b/C2P_Report/Reports/COSTIMATE/ReportOffers_Q.rdl new file mode 100644 index 0000000..87dc80b --- /dev/null +++ b/C2P_Report/Reports/COSTIMATE/ReportOffers_Q.rdl @@ -0,0 +1,7121 @@ + + + Vers. 3.2.1 + 0 + + + DB_C2P + None + 40dc9b6f-bd23-4531-abf1-9e05da0cc955 + + + + + + DB_C2P + + + EN + + + C2P_prt + + + StoredProcedure + voc.stp_getByLinguaLemmaLike + true + + + + Lingua + System.String + + + Lemma + System.String + + + Traduzione + System.String + + + + + + DB_C2P + + + =Parameters!Ticket.Value + + + =Parameters!Chiave.Value + + + StoredProcedure + stp_prt_dsQuoteFull_Q_Data + + + + =Fields!QuoteType.Value+CStr(Fields!CodQuote.Value)+CStr(Fields!QuoteRev.Value) + + + Vers + System.String + + + QuoteType + System.String + + + CodQuote + System.Int64 + + + QuoteRev + System.Int32 + + + OfferResult + System.String + + + KoReason + System.String + + + BatchQty + System.Int32 + + + Charge + System.Decimal + + + Agente + System.String + + + ClasseMerc + System.String + + + ProdType + System.String + + + ClientName + System.String + + + ClientNameAssoc + System.String + + + CodClient + System.String + + + CodClientAssoc + System.String + + + CodDiesGroup + System.String + + + CodifProfilo + System.String + + + TranspZone + System.String + + + CodInco + System.String + + + CodItem + System.String + + + CodItemGroup + System.String + + + CodPackag + System.String + + + CodPlant + System.String + + + CPS + System.Decimal + + + DiamDies + System.Decimal + + + DiesCost + System.Decimal + + + DiesEOLife + System.Decimal + + + DiesExpLife + System.Decimal + + + DiesPrice + System.Decimal + + + DSR + System.Decimal + + + EECost + System.Decimal + + + FC4UG01 + System.Decimal + + + FC4UG04 + System.Decimal + + + FCShield + System.Decimal + + + DiesByClass + System.Boolean + + + FSR + System.Decimal + + + FullCost + System.Decimal + + + FVC + System.Decimal + + + GasCost + System.Decimal + + + HoleNumDies + System.Int32 + + + IdxQState + System.Int32 + + + ItemDescr + System.String + + + KeyAM + System.String + + + KeyAMIL + System.String + + + KgTeo + System.Decimal + + + LivPackage + System.String + + + LivPackageDett + System.String + + + MinPrice + System.Decimal + + + MSR01 + System.Decimal + + + NetMar + System.Decimal + + + NetProd01 + System.Decimal + + + NetProd04 + System.Decimal + + + Note + System.String + + + NumDiesExaust + System.Decimal + + + NumDiesInList + System.Decimal + + + NumSMED + System.Decimal + + + OH4UG01 + System.Decimal + + + P_CPS + System.Decimal + + + P_FC4UG04 + System.Decimal + + + P_FullCost + System.Decimal + + + P_FVC + System.Decimal + + + P_MinPrice + System.Decimal + + + P_PriceOff + System.Decimal + + + PackCost + System.Decimal + + + PckSur + System.Decimal + + + PkgDesc + System.String + + + PriceOff + System.Decimal + + + PRMWeight + System.Decimal + + + ProvvCost + System.Decimal + + + PTare + System.Decimal + + + PWeight + System.Decimal + + + QuotaMan + System.Decimal + + + RawMat + System.String + + + RawMatCost + System.Decimal + + + RawMatExtraCost + System.Decimal + + + RawMatFullCost + System.Decimal + + + RefCost01 + System.Decimal + + + RefCost04 + System.Decimal + + + SC4UG01 + System.Decimal + + + SellCost01 + System.Decimal + + + SellCost04 + System.Decimal + + + TipoDies + System.String + + + TranspCost + System.Decimal + + + UnitWeight + System.Decimal + + + VC4UG01 + System.Decimal + + + VC4UG04 + System.Decimal + + + WSR01 + System.Decimal + + + = Fields!CodItem.Value & ".png" + + + valid + System.Boolean + + + DiesPrice_sim + true + + + errorScore + System.Int32 + + + SamplePrice + System.Decimal + + + DiesFullCost + System.Decimal + + + DiesPriceClientQuote + System.Decimal + + + DiesTecLife + System.Decimal + + + DiesCommLife + System.Decimal + + + MonthSalesPrev + System.Decimal + + + SalesPrevCost + System.Decimal + + + DiesFinCost + System.Decimal + + + ClientQuoteReven + System.Decimal + + + ExtraDiscountDies + System.Decimal + + + WSR01_sim + System.Decimal + + + MSR01_sim + System.Decimal + + + NetProd01_sim + System.Decimal + + + NetProd04_sim + System.Decimal + + + DSR_sim + System.Decimal + + + NetMar_sim + System.Decimal + + + FCShield_sim + System.Decimal + + + MinPrice_sim + System.Decimal + + + P_MinPrice_sim + System.Decimal + + + Cli_ZipCode + System.String + + + Cli_City + System.String + + + Cli_State + System.String + + + Cli_Nation + System.String + + + DescInco + System.String + + + + + + DB_C2P + + + EN + + + ST% + + + StoredProcedure + voc.stp_getByLinguaLemmaLike + + + + Lingua + System.String + + + Lemma + System.String + + + Traduzione + System.String + + + + + + + + + + + + + 19.9cm + + + + + 1.7cm + + + + + + + true + + + + + =Switch(Globals!ReportName="ReportOffers_Q",Lookup("C2P_prt1_ReportTitle",Fields!Lemma.Value,Fields!Traduzione.Value, "dsVocabolario"), +Globals!ReportName="ReportOffers_S", Lookup("C2P_prt1_ReportTitle_S",Fields!Lemma.Value,Fields!Traduzione.Value, "dsVocabolario"),True,"Missing Title") + + + + + + + 0.1cm + 1.43cm + 13.64083cm + + + Middle + 2pt + 2pt + 2pt + 2pt + + + + External + =Variables!varUrlImage.Value & "logo_Offers.png" + FitProportional + 0.13cm + 14.3175cm + 1.4cm + 5.1cm + 1 + + + + + + true + + + + Black + + 0.5pt + + + + + + + + + 1cm + + + + + + + true + + + + + =Fields!ClientName.Value + + + + + + =Variables!FillColorCod.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_ClientName",Fields!Lemma.Value,Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorCod.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_CodClient",Fields!Lemma.Value,Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!CodClient.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + Black + + 0.5pt + + + + + + + + + 5.8cm + + + + + + + true + + + + + =Fields!CodItem.Value + + + + + + + 6.7cm + 0.5cm + 3.4cm + + + =Variables!FillColorCod.Value + 1pt + 1pt + 1pt + 1pt + + + + true + + + + + =Fields!ItemDescr.Value + + + + + + =Variables!FillColorDescr.Value + 1pt + 1pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_CodItem",Fields!Lemma.Value,Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorCod.Value + 1pt + 1pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_CodifProfilo",Fields!Lemma.Value,Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 1pt + 1pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_ClasseMerc",Fields!Lemma.Value,Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 1pt + 1pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_CodClientAssoc",Fields!Lemma.Value,Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 1pt + 1pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_CodItemGroup",Fields!Lemma.Value,Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorCod.Value + 1pt + 1pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_UnitWeight",Fields!Lemma.Value,Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 1pt + 1pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_RawMat",Fields!Lemma.Value,Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorCod.Value + 1pt + 1pt + 1pt + 1pt + + + + true + + + + + =Fields!CodifProfilo.Value + + + + + + =Variables!FillColorCod.Value + 1pt + 1pt + 1pt + 1pt + + + + true + + + + + =Fields!ClasseMerc.Value + + + + + + =Variables!FillColorDescr.Value + 1pt + 1pt + 1pt + 1pt + + + + true + + + + + =Fields!CodClientAssoc.Value + + + + + + + 1.3cm + 6.7cm + 0.4cm + 3.4cm + 11 + + + =Variables!FillColorDescr.Value + 1pt + 1pt + 1pt + 1pt + + + + true + + + + + =Fields!CodItemGroup.Value + + + + + + + 1.7cm + 6.7cm + 0.5cm + 3.4cm + 12 + + + =Variables!FillColorCod.Value + 1pt + 1pt + 1pt + 1pt + + + + true + + + + + =Fields!UnitWeight.Value + + + + + + + 2.2cm + 6.7cm + 0.4cm + 3.4cm + 13 + + + =Variables!FillColorDescr.Value + 1pt + 1pt + 1pt + 1pt + + + + true + + + + + =Fields!ClientNameAssoc.Value + + + + + + =Variables!FillColorDescr.Value + 1pt + 1pt + 1pt + 1pt + + + + true + + + + + =Fields!RawMat.Value + + + + + + + 2.6cm + 6.7cm + 0.5cm + 3.4cm + 15 + + + =Variables!FillColorCod.Value + 1pt + 1pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_CodInco", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_ProvvCost", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_BatchQty", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorCod.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_RawMatFullCost", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorCod.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_RawMatExtraCost", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 20pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_RawMatCost", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 20pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!CodInco.Value + + + + + + + 5.3cm + 6.7cm + 0.4cm + 3.4cm + 22 + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!ProvvCost.Value + + + + + + + 4.9cm + 6.7cm + 0.4cm + 3.4cm + 23 + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!BatchQty.Value + + + + + + + 4.4cm + 6.7cm + 0.5cm + 3.4cm + 24 + + + =Variables!FillColorCod.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!RawMatFullCost.Value + + + + + + + 3.9cm + 6.7cm + 0.5cm + 3.4cm + 25 + + + =Variables!FillColorCod.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!RawMatExtraCost.Value + + + + + + + 3.5cm + 6.7cm + 0.4cm + 3.4cm + 26 + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!RawMatCost.Value + + + + + + + RawMatCost + 3.1cm + 6.7cm + 0.4cm + 3.4cm + 27 + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + External + = Variables!varUrlImage.Value & Fields!ItemURL.Value + FitProportional + 2.1cm + 11.5cm + 90pt + 200pt + 28 + + + + + + true + + + + Black + + 0.5pt + + + + + + + + + 6.4cm + + + + + + + true + + + + + =Lookup("C2P_prt1_extrusion", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_Dies", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 20pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_TipoDies", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_DiamDies", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_NumDiesInList", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_HoleNumDies", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_CodDiesGroup", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_DiesPrice", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_DiesEOLife", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_DiesExpLife", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!DiamDies.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!TipoDies.Value + + + + + + + 0.8cm + 6.7cm + 0.4cm + 3.4cm + 11 + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!NumDiesInList.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!HoleNumDies.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!DiesEOLife.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!DiesExpLife.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!CodDiesGroup.Value + + + + + + + 0.8cm + 16.4cm + 0.4cm + 3.4cm + 16 + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!DiesPrice.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =iif(Fields!DiesExpLife.Value > 0, + Lookup("C2P_prt1_NumDiesExaust", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario"), + Lookup("C2P_prt1_NumDiesExaustGroup", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") ) + + + + + + =Variables!FillColorEtich.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!NumDiesExaust.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_extrusion2", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 20pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_CodPlant", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorCod.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_HoleNumDies", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_KgTeo", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_NumSMED", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!CodPlant.Value + + + + + + + 3.4cm + 6.7cm + 0.5cm + 3.4cm + 25 + + + =Variables!FillColorCod.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!HoleNumDies.Value + + + + + + + 3.9cm + 6.7cm + 0.4cm + 3.4cm + 26 + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!KgTeo.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!NumSMED.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_MSR01", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_WSR01", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!WSR01.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!MSR01.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!KeyAMIL.Value + + + + + + + 4.5cm + 10.6cm + 0.4cm + 9.2cm + 33 + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_NetProd01", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!NetProd01.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_KeyAMIL", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + + 4.5cm + 0.4cm + 10.1cm + 36 + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + Black + + 0.5pt + + + + + + + + + 3.3cm + + + + + + + true + + + + + =Fields!CodPackag.Value + + + + + + + 0.4cm + 6.7cm + 0.4cm + 3.4cm + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!PRMWeight.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_Package", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_CodPackag", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!QuotaMan.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!NetProd04.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_NetProd04", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_QuotaMan", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 20pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!LivPackage.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_LivPackage", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 20pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_PRMWeight", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_PWeight", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_PTare", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!PWeight.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!PTare.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!FSR.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!DSR.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_DSR", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 20pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_FSR", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!PkgDesc.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_NOLABEL", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + + 2.8cm + 6.7cm + 0.4cm + 3.4cm + 20 + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + 0.5pt + + + + + + Black + + + + + + + + + 6.9cm + + + + + + + true + + + + + =Fields!RefCost01.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!EECost.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_RefCost01", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!SellCost01.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_SellCost01", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 20pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!SellCost04.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_SellCost04", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 20pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_EECost", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_GasCost", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_DiesCost", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!GasCost.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!DiesCost.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!P_CPS.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_P_CPS", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_TranspCost", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_ProvvCost", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_PackCost", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_RefCost04", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_SC4UG01", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!RefCost04.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!PackCost.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!ProvvCost.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!TranspCost.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!SC4UG01.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_FVC", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorCod.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!FVC.Value + + + + + + =Variables!FillColorCod.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!P_FVC.Value + + + + + + =Variables!FillColorCod.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_P_FVC", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorCod.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_FC4UG04", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_CPS", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!CPS.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!FC4UG04.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_P_FC4UG04", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!P_FC4UG04.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_FullCost", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorCod.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!FullCost.Value + + + + + + =Variables!FillColorCod.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!P_FullCost.Value + + + + + + =Variables!FillColorCod.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_P_FullCost", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorCod.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_VC4UG01", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!VC4UG01.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_VC4UG04", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!VC4UG04.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + 0.5pt + + + + + + Black + 0.5pt + + + + + + + + + 1cm + + + + + + + true + + + + + =Lookup("C2P_prt1_MinPrice", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorCod.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!MinPrice.Value + + + + + + =Variables!FillColorCod.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_P_MinPrice", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorCod.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!P_MinPrice.Value + + + + + + =Variables!FillColorCod.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_Charge", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!Charge.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + 0.5pt + + + + + + + + + + + + 1.5cm + + + + + + + true + + + + + =Lookup("C2P_prt1_PriceOff", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorCod.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!PriceOff.Value + + + + + + =Variables!FillColorCod.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_NetMar", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorCod.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!NetMar.Value + + + + + + =Variables!FillColorCod.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_FCShield", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!FCShield.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_P_PriceOff", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorCod.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!P_PriceOff.Value + + + + + + =Variables!FillColorCod.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + 0.5pt + + + + + + + + + + + + 7.1cm + + + + + + + true + + + + + =Fields!DiesPrice_sim.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!SamplePrice.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!DiesTecLife.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!DiesFullCost.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!DiesPriceClientQuote.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!DiesCommLife.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!MonthSalesPrev.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!SalesPrevCost.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!DiesFinCost.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!ClientQuoteReven.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!ExtraDiscountDies.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!NetMar_sim.Value + + + + + + =Variables!FillColorCod.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!FCShield_sim.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!P_MinPrice_sim.Value + + + + + + =Variables!FillColorCod.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!MinPrice_sim.Value + + + + + + =Variables!FillColorCod.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_Charge", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!Charge.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_DiesDiscount", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_DiesPrice_sim", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_SamplePrice", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_DiesTecLife", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_DiesCommLife", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_DiesFullCost", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_DiesPriceClientQuote", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_MonthSalesPrev", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_SalesPrevCost", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_DiesFinCost", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_ClientQuoteReven", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_ExtraDiscountDies", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_NetMar_sim", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorCod.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_FCShield_sim", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_MinPrice_sim", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorCod.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_P_MinPrice_sim", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorCod.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + 0.5pt + + + + + + + + + + + + 0.3cm + + + + + + + true + true + + + + + Riga nascosta serve per footer + + + + + + + + + true + + + + + =Fields!QuoteType.Value & " | " & Fields!CodQuote.Value & "." & Fields!QuoteRev.Value & " " & Lookup("ST" & Fields!IdxQState.Value, Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolarioQState") + + + + + + + 10.6cm + 0.3cm + 9.2cm + 1 + + + + + + true + + + + + + + + + + + + + + + + + + + + + =Fields!Key1.Value + + + Between + + =Fields!CodQuote.Value + + + + =Fields!Key1.Value + + + + + After + + + + + Between + + + + + + + + + + =IIF(Parameters!Authoriz.Value=1,True,False) + + + + + + + =iif(LEFT(Globals!ReportName,14)="ReportOffers_S",False,True) + + + + + + + true + + Before + true + + + + + + true + true + dsQuoteFull_Q_Data + 35cm + 19.9cm + + 0.5pt + + + Black + + 0.5pt + + + Black + + 0.5pt + + + Black + + 0.5pt + + + Black + + 0.5pt + + + + + 35.07203cm + + + + + 20cm + + + 0.5cm + true + true + + + true + true + + + + + =Globals!OverallPageNumber & " / " & Globals!OverallTotalPages + + + + + + + 8.71083cm + 0.5cm + 1.89188cm + + + 2pt + 2pt + 2pt + 2pt + + + + true + + + + + =ReportItems("Quote_Usato_nel_Footer").Value + + + + + + + 10.7791cm + 0.5cm + 9.0209cm + 1 + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + Proxima © 2008- + + + + + =Format(Today, "yyyy" ) + + + + - + + + + Powered By Steam + + + + Ware + + + + + + + 0.5cm + 7.57458cm + 2 + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + 29.7cm + 21cm + 0.4cm + 0.4cm + 0.5cm + 0.5cm + 1.27cm + - Embedded - SoloProxima_285x72px + External + =Variables!varUrlImage.Value & "logo_Offers.png" FitProportional 0.13cm 14.3175cm @@ -1719,7 +1719,7 @@ Globals!ReportName="ReportOffers_S", Lookup("C2P_prt1_ReportTitle_S",Fields!Lemm External - =Fields!ItemURL.Value + = Variables!varUrlImage.Value & Fields!ItemURL.Value FitProportional 2.1cm 11.5cm @@ -7082,32 +7082,6 @@ Globals!ReportName="ReportOffers_S", Lookup("C2P_prt1_ReportTitle_S",Fields!Lemm true - - - image/jpeg - /9j/4AAQSkZJRgABAQEBLAEsAAD/4gxYSUNDX1BST0ZJTEUAAQEAAAxITGlubwIQAABtbnRyUkdCIFhZWiAHzgACAAkABgAxAABhY3NwTVNGVAAAAABJRUMgc1JHQgAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLUhQ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q+a68d+L9 WhiteSmoke + + http://COSTIMATE/C2P/Drawings/ + true Cm diff --git a/C2P_Report/Reports/COSTIMATE/ReportOffers_S.rdl b/C2P_Report/Reports/COSTIMATE/ReportOffers_S.rdl new file mode 100644 index 0000000..87dc80b --- /dev/null +++ b/C2P_Report/Reports/COSTIMATE/ReportOffers_S.rdl @@ -0,0 +1,7121 @@ + + + Vers. 3.2.1 + 0 + + + DB_C2P + None + 40dc9b6f-bd23-4531-abf1-9e05da0cc955 + + + + + + DB_C2P + + + EN + + + C2P_prt + + + StoredProcedure + voc.stp_getByLinguaLemmaLike + true + + + + Lingua + System.String + + + Lemma + System.String + + + Traduzione + System.String + + + + + + DB_C2P + + + =Parameters!Ticket.Value + + + =Parameters!Chiave.Value + + + StoredProcedure + stp_prt_dsQuoteFull_Q_Data + + + + =Fields!QuoteType.Value+CStr(Fields!CodQuote.Value)+CStr(Fields!QuoteRev.Value) + + + Vers + System.String + + + QuoteType + System.String + + + CodQuote + System.Int64 + + + QuoteRev + System.Int32 + + + OfferResult + System.String + + + KoReason + System.String + + + BatchQty + System.Int32 + + + Charge + System.Decimal + + + Agente + System.String + + + ClasseMerc + System.String + + + ProdType + System.String + + + ClientName + System.String + + + ClientNameAssoc + System.String + + + CodClient + System.String + + + CodClientAssoc + System.String + + + CodDiesGroup + System.String + + + CodifProfilo + System.String + + + TranspZone + System.String + + + CodInco + System.String + + + CodItem + System.String + + + CodItemGroup + System.String + + + CodPackag + System.String + + + CodPlant + System.String + + + CPS + System.Decimal + + + DiamDies + System.Decimal + + + DiesCost + System.Decimal + + + DiesEOLife + System.Decimal + + + DiesExpLife + System.Decimal + + + DiesPrice + System.Decimal + + + DSR + System.Decimal + + + EECost + System.Decimal + + + FC4UG01 + System.Decimal + + + FC4UG04 + System.Decimal + + + FCShield + System.Decimal + + + DiesByClass + System.Boolean + + + FSR + System.Decimal + + + FullCost + System.Decimal + + + FVC + System.Decimal + + + GasCost + System.Decimal + + + HoleNumDies + System.Int32 + + + IdxQState + System.Int32 + + + ItemDescr + System.String + + + KeyAM + System.String + + + KeyAMIL + System.String + + + KgTeo + System.Decimal + + + LivPackage + System.String + + + LivPackageDett + System.String + + + MinPrice + System.Decimal + + + MSR01 + System.Decimal + + + NetMar + System.Decimal + + + NetProd01 + System.Decimal + + + NetProd04 + System.Decimal + + + Note + System.String + + + NumDiesExaust + System.Decimal + + + NumDiesInList + System.Decimal + + + NumSMED + System.Decimal + + + OH4UG01 + System.Decimal + + + P_CPS + System.Decimal + + + P_FC4UG04 + System.Decimal + + + P_FullCost + System.Decimal + + + P_FVC + System.Decimal + + + P_MinPrice + System.Decimal + + + P_PriceOff + System.Decimal + + + PackCost + System.Decimal + + + PckSur + System.Decimal + + + PkgDesc + System.String + + + PriceOff + System.Decimal + + + PRMWeight + System.Decimal + + + ProvvCost + System.Decimal + + + PTare + System.Decimal + + + PWeight + System.Decimal + + + QuotaMan + System.Decimal + + + RawMat + System.String + + + RawMatCost + System.Decimal + + + RawMatExtraCost + System.Decimal + + + RawMatFullCost + System.Decimal + + + RefCost01 + System.Decimal + + + RefCost04 + System.Decimal + + + SC4UG01 + System.Decimal + + + SellCost01 + System.Decimal + + + SellCost04 + System.Decimal + + + TipoDies + System.String + + + TranspCost + System.Decimal + + + UnitWeight + System.Decimal + + + VC4UG01 + System.Decimal + + + VC4UG04 + System.Decimal + + + WSR01 + System.Decimal + + + = Fields!CodItem.Value & ".png" + + + valid + System.Boolean + + + DiesPrice_sim + true + + + errorScore + System.Int32 + + + SamplePrice + System.Decimal + + + DiesFullCost + System.Decimal + + + DiesPriceClientQuote + System.Decimal + + + DiesTecLife + System.Decimal + + + DiesCommLife + System.Decimal + + + MonthSalesPrev + System.Decimal + + + SalesPrevCost + System.Decimal + + + DiesFinCost + System.Decimal + + + ClientQuoteReven + System.Decimal + + + ExtraDiscountDies + System.Decimal + + + WSR01_sim + System.Decimal + + + MSR01_sim + System.Decimal + + + NetProd01_sim + System.Decimal + + + NetProd04_sim + System.Decimal + + + DSR_sim + System.Decimal + + + NetMar_sim + System.Decimal + + + FCShield_sim + System.Decimal + + + MinPrice_sim + System.Decimal + + + P_MinPrice_sim + System.Decimal + + + Cli_ZipCode + System.String + + + Cli_City + System.String + + + Cli_State + System.String + + + Cli_Nation + System.String + + + DescInco + System.String + + + + + + DB_C2P + + + EN + + + ST% + + + StoredProcedure + voc.stp_getByLinguaLemmaLike + + + + Lingua + System.String + + + Lemma + System.String + + + Traduzione + System.String + + + + + + + + + + + + + 19.9cm + + + + + 1.7cm + + + + + + + true + + + + + =Switch(Globals!ReportName="ReportOffers_Q",Lookup("C2P_prt1_ReportTitle",Fields!Lemma.Value,Fields!Traduzione.Value, "dsVocabolario"), +Globals!ReportName="ReportOffers_S", Lookup("C2P_prt1_ReportTitle_S",Fields!Lemma.Value,Fields!Traduzione.Value, "dsVocabolario"),True,"Missing Title") + + + + + + + 0.1cm + 1.43cm + 13.64083cm + + + Middle + 2pt + 2pt + 2pt + 2pt + + + + External + =Variables!varUrlImage.Value & "logo_Offers.png" + FitProportional + 0.13cm + 14.3175cm + 1.4cm + 5.1cm + 1 + + + + + + true + + + + Black + + 0.5pt + + + + + + + + + 1cm + + + + + + + true + + + + + =Fields!ClientName.Value + + + + + + =Variables!FillColorCod.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_ClientName",Fields!Lemma.Value,Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorCod.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_CodClient",Fields!Lemma.Value,Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!CodClient.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + Black + + 0.5pt + + + + + + + + + 5.8cm + + + + + + + true + + + + + =Fields!CodItem.Value + + + + + + + 6.7cm + 0.5cm + 3.4cm + + + =Variables!FillColorCod.Value + 1pt + 1pt + 1pt + 1pt + + + + true + + + + + =Fields!ItemDescr.Value + + + + + + =Variables!FillColorDescr.Value + 1pt + 1pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_CodItem",Fields!Lemma.Value,Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorCod.Value + 1pt + 1pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_CodifProfilo",Fields!Lemma.Value,Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 1pt + 1pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_ClasseMerc",Fields!Lemma.Value,Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 1pt + 1pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_CodClientAssoc",Fields!Lemma.Value,Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 1pt + 1pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_CodItemGroup",Fields!Lemma.Value,Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorCod.Value + 1pt + 1pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_UnitWeight",Fields!Lemma.Value,Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 1pt + 1pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_RawMat",Fields!Lemma.Value,Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorCod.Value + 1pt + 1pt + 1pt + 1pt + + + + true + + + + + =Fields!CodifProfilo.Value + + + + + + =Variables!FillColorCod.Value + 1pt + 1pt + 1pt + 1pt + + + + true + + + + + =Fields!ClasseMerc.Value + + + + + + =Variables!FillColorDescr.Value + 1pt + 1pt + 1pt + 1pt + + + + true + + + + + =Fields!CodClientAssoc.Value + + + + + + + 1.3cm + 6.7cm + 0.4cm + 3.4cm + 11 + + + =Variables!FillColorDescr.Value + 1pt + 1pt + 1pt + 1pt + + + + true + + + + + =Fields!CodItemGroup.Value + + + + + + + 1.7cm + 6.7cm + 0.5cm + 3.4cm + 12 + + + =Variables!FillColorCod.Value + 1pt + 1pt + 1pt + 1pt + + + + true + + + + + =Fields!UnitWeight.Value + + + + + + + 2.2cm + 6.7cm + 0.4cm + 3.4cm + 13 + + + =Variables!FillColorDescr.Value + 1pt + 1pt + 1pt + 1pt + + + + true + + + + + =Fields!ClientNameAssoc.Value + + + + + + =Variables!FillColorDescr.Value + 1pt + 1pt + 1pt + 1pt + + + + true + + + + + =Fields!RawMat.Value + + + + + + + 2.6cm + 6.7cm + 0.5cm + 3.4cm + 15 + + + =Variables!FillColorCod.Value + 1pt + 1pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_CodInco", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_ProvvCost", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_BatchQty", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorCod.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_RawMatFullCost", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorCod.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_RawMatExtraCost", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 20pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_RawMatCost", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 20pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!CodInco.Value + + + + + + + 5.3cm + 6.7cm + 0.4cm + 3.4cm + 22 + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!ProvvCost.Value + + + + + + + 4.9cm + 6.7cm + 0.4cm + 3.4cm + 23 + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!BatchQty.Value + + + + + + + 4.4cm + 6.7cm + 0.5cm + 3.4cm + 24 + + + =Variables!FillColorCod.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!RawMatFullCost.Value + + + + + + + 3.9cm + 6.7cm + 0.5cm + 3.4cm + 25 + + + =Variables!FillColorCod.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!RawMatExtraCost.Value + + + + + + + 3.5cm + 6.7cm + 0.4cm + 3.4cm + 26 + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!RawMatCost.Value + + + + + + + RawMatCost + 3.1cm + 6.7cm + 0.4cm + 3.4cm + 27 + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + External + = Variables!varUrlImage.Value & Fields!ItemURL.Value + FitProportional + 2.1cm + 11.5cm + 90pt + 200pt + 28 + + + + + + true + + + + Black + + 0.5pt + + + + + + + + + 6.4cm + + + + + + + true + + + + + =Lookup("C2P_prt1_extrusion", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_Dies", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 20pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_TipoDies", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_DiamDies", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_NumDiesInList", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_HoleNumDies", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_CodDiesGroup", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_DiesPrice", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_DiesEOLife", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_DiesExpLife", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!DiamDies.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!TipoDies.Value + + + + + + + 0.8cm + 6.7cm + 0.4cm + 3.4cm + 11 + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!NumDiesInList.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!HoleNumDies.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!DiesEOLife.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!DiesExpLife.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!CodDiesGroup.Value + + + + + + + 0.8cm + 16.4cm + 0.4cm + 3.4cm + 16 + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!DiesPrice.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =iif(Fields!DiesExpLife.Value > 0, + Lookup("C2P_prt1_NumDiesExaust", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario"), + Lookup("C2P_prt1_NumDiesExaustGroup", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") ) + + + + + + =Variables!FillColorEtich.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!NumDiesExaust.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_extrusion2", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 20pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_CodPlant", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorCod.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_HoleNumDies", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_KgTeo", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_NumSMED", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!CodPlant.Value + + + + + + + 3.4cm + 6.7cm + 0.5cm + 3.4cm + 25 + + + =Variables!FillColorCod.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!HoleNumDies.Value + + + + + + + 3.9cm + 6.7cm + 0.4cm + 3.4cm + 26 + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!KgTeo.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!NumSMED.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_MSR01", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_WSR01", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!WSR01.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!MSR01.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!KeyAMIL.Value + + + + + + + 4.5cm + 10.6cm + 0.4cm + 9.2cm + 33 + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_NetProd01", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!NetProd01.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_KeyAMIL", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + + 4.5cm + 0.4cm + 10.1cm + 36 + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + Black + + 0.5pt + + + + + + + + + 3.3cm + + + + + + + true + + + + + =Fields!CodPackag.Value + + + + + + + 0.4cm + 6.7cm + 0.4cm + 3.4cm + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!PRMWeight.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_Package", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_CodPackag", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!QuotaMan.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!NetProd04.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_NetProd04", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_QuotaMan", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 20pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!LivPackage.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_LivPackage", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 20pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_PRMWeight", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_PWeight", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_PTare", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!PWeight.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!PTare.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!FSR.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!DSR.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_DSR", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 20pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_FSR", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!PkgDesc.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_NOLABEL", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + + 2.8cm + 6.7cm + 0.4cm + 3.4cm + 20 + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + 0.5pt + + + + + + Black + + + + + + + + + 6.9cm + + + + + + + true + + + + + =Fields!RefCost01.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!EECost.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_RefCost01", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!SellCost01.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_SellCost01", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 20pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!SellCost04.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_SellCost04", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 20pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_EECost", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_GasCost", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_DiesCost", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!GasCost.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!DiesCost.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!P_CPS.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_P_CPS", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_TranspCost", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_ProvvCost", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_PackCost", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_RefCost04", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_SC4UG01", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!RefCost04.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!PackCost.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!ProvvCost.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!TranspCost.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!SC4UG01.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_FVC", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorCod.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!FVC.Value + + + + + + =Variables!FillColorCod.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!P_FVC.Value + + + + + + =Variables!FillColorCod.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_P_FVC", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorCod.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_FC4UG04", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_CPS", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!CPS.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!FC4UG04.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_P_FC4UG04", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!P_FC4UG04.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_FullCost", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorCod.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!FullCost.Value + + + + + + =Variables!FillColorCod.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!P_FullCost.Value + + + + + + =Variables!FillColorCod.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_P_FullCost", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorCod.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_VC4UG01", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!VC4UG01.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_VC4UG04", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!VC4UG04.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + 0.5pt + + + + + + Black + 0.5pt + + + + + + + + + 1cm + + + + + + + true + + + + + =Lookup("C2P_prt1_MinPrice", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorCod.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!MinPrice.Value + + + + + + =Variables!FillColorCod.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_P_MinPrice", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorCod.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!P_MinPrice.Value + + + + + + =Variables!FillColorCod.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_Charge", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!Charge.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + 0.5pt + + + + + + + + + + + + 1.5cm + + + + + + + true + + + + + =Lookup("C2P_prt1_PriceOff", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorCod.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!PriceOff.Value + + + + + + =Variables!FillColorCod.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_NetMar", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorCod.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!NetMar.Value + + + + + + =Variables!FillColorCod.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_FCShield", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!FCShield.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_P_PriceOff", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorCod.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!P_PriceOff.Value + + + + + + =Variables!FillColorCod.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + 0.5pt + + + + + + + + + + + + 7.1cm + + + + + + + true + + + + + =Fields!DiesPrice_sim.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!SamplePrice.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!DiesTecLife.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!DiesFullCost.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!DiesPriceClientQuote.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!DiesCommLife.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!MonthSalesPrev.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!SalesPrevCost.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!DiesFinCost.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!ClientQuoteReven.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!ExtraDiscountDies.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!NetMar_sim.Value + + + + + + =Variables!FillColorCod.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!FCShield_sim.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!P_MinPrice_sim.Value + + + + + + =Variables!FillColorCod.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!MinPrice_sim.Value + + + + + + =Variables!FillColorCod.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_Charge", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Fields!Charge.Value + + + + + + =Variables!FillColorDescr.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_DiesDiscount", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_DiesPrice_sim", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_SamplePrice", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_DiesTecLife", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_DiesCommLife", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_DiesFullCost", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_DiesPriceClientQuote", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_MonthSalesPrev", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_SalesPrevCost", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_DiesFinCost", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_ClientQuoteReven", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_ExtraDiscountDies", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_NetMar_sim", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorCod.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_FCShield_sim", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorEtich.Value + 30pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_MinPrice_sim", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorCod.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + + + + =Lookup("C2P_prt1_P_MinPrice_sim", Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolario") + + + + + + =Variables!FillColorCod.Value + 2pt + 2pt + 1pt + 1pt + + + + true + + 0.5pt + + + + + + + + + + + + 0.3cm + + + + + + + true + true + + + + + Riga nascosta serve per footer + + + + + + + + + true + + + + + =Fields!QuoteType.Value & " | " & Fields!CodQuote.Value & "." & Fields!QuoteRev.Value & " " & Lookup("ST" & Fields!IdxQState.Value, Fields!Lemma.Value, Fields!Traduzione.Value, "dsVocabolarioQState") + + + + + + + 10.6cm + 0.3cm + 9.2cm + 1 + + + + + + true + + + + + + + + + + + + + + + + + + + + + =Fields!Key1.Value + + + Between + + =Fields!CodQuote.Value + + + + =Fields!Key1.Value + + + + + After + + + + + Between + + + + + + + + + + =IIF(Parameters!Authoriz.Value=1,True,False) + + + + + + + =iif(LEFT(Globals!ReportName,14)="ReportOffers_S",False,True) + + + + + + + true + + Before + true + + + + + + true + true + dsQuoteFull_Q_Data + 35cm + 19.9cm + + 0.5pt + + + Black + + 0.5pt + + + Black + + 0.5pt + + + Black + + 0.5pt + + + Black + + 0.5pt + + + + + 35.07203cm + + + + + 20cm + + + 0.5cm + true + true + + + true + true + + + + + =Globals!OverallPageNumber & " / " & Globals!OverallTotalPages + + + + + + + 8.71083cm + 0.5cm + 1.89188cm + + + 2pt + 2pt + 2pt + 2pt + + + + true + + + + + =ReportItems("Quote_Usato_nel_Footer").Value + + + + + + + 10.7791cm + 0.5cm + 9.0209cm + 1 + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + Proxima © 2008- + + + + + =Format(Today, "yyyy" ) + + + + - + + + + Powered By Steam + + + + Ware + + + + + + + 0.5cm + 7.57458cm + 2 + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + 29.7cm + 21cm + 0.4cm + 0.4cm + 0.5cm + 0.5cm + 1.27cm + - Embedded - SoloProxima_285x72px + External + =Variables!varUrlImage.Value & "logo_Offers.png" FitProportional 0.13cm 14.3175cm @@ -1719,7 +1719,7 @@ Globals!ReportName="ReportOffers_S", Lookup("C2P_prt1_ReportTitle_S",Fields!Lemm External - =Fields!ItemURL.Value + = Variables!varUrlImage.Value & Fields!ItemURL.Value FitProportional 2.1cm 11.5cm @@ -7082,32 +7082,6 @@ Globals!ReportName="ReportOffers_S", Lookup("C2P_prt1_ReportTitle_S",Fields!Lemm true - - - image/jpeg - /9j/4AAQSkZJRgABAQEBLAEsAAD/4gxYSUNDX1BST0ZJTEUAAQEAAAxITGlubwIQAABtbnRyUkdCIFhZWiAHzgACAAkABgAxAABhY3NwTVNGVAAAAABJRUMgc1JHQgAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLUhQICAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABFjcHJ0AAABUAAAADNkZXNjAAABhAAAAGx3dHB0AAAB8AAAABRia3B0AAACBAAAABRyWFlaAAACGAAAABRnWFlaAAACLAAAABRiWFlaAAACQAAAABRkbW5kAAACVAAAAHBkbW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NNra+G2iKyS6hLHHHAIY3SVoLi58ktN5Ubf52dzbzW+o6kl/BdQazFfSW+tJqcMkOtRXSMVmjvFlAmEytuDrN84bO7mv8AVtr4M/ag/wCCZv7Fn7Xt9ceIPjH8GNHk8dXMPkv8SvBd3P4E+IEuPum41CzaM3e0cKL1Z1UYAGK58xy6eLkqtOWq6PY/QvALx+yjwtwFbh3Psuc8LVqe09tRt7ZSajHlnGUoqpBcq5bSi4e9pLm0/wA4Kp9PvLzSNVsNX0W81DSNetrqP+ytV0O6m03XrecsBF9luICs6yltoURNuLYA5r+16T/g28/YfbU/tMfxJ/aYh0zfuOkDxvoLjb/dFwdFMuPcnPvX39+zD/wSw/Yf/ZK1Sx8U/C34M6dqXxA0077H4k/EW/m+IPjewfgiSzuLstFZOMffsYoG5IzivMp5NipS99pI/o3Ovpe+GWDw -EqmU0cRiq7WlP2cacb9pzlJ8q7uMKnoyD/glVrv7TmvfsRfCOT9rTw54o0L4qadBdaVaX/jq+a68d+L9BimLaHq2twyEzwXsttIsUkd1/pDfZVlkCtMVH6KUUV9NTh7OnGne9kf5ycQZtHPc9xmdQw8KCr1J1PZ07qnT55OXLFO/uq+n4JLQ/gp/4IFA/wDDyvwBwf8Akk3jLt/042tf3rUUV5mS/wC6P/E/0P6R+mB/ydSh/wBgdH/05XCiiivWP5WCiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigD//Z - - it-IT @@ -7137,6 +7111,9 @@ EqmU0cRiq7WlP2cacb9pzlJ8q7uMKnoyD/glVrv7TmvfsRfCOT9rTw54o0L4qadBdaVaX/jq+a68d+L9 WhiteSmoke + + http://COSTIMATE/C2P/Drawings/ + true Cm diff --git a/C2P_Report/Reports/IIS02/OffertDOC.rdl b/C2P_Report/Reports/IIS02/OffertDOC.rdl index 6086a73..b955cee 100644 --- a/C2P_Report/Reports/IIS02/OffertDOC.rdl +++ b/C2P_Report/Reports/IIS02/OffertDOC.rdl @@ -1,6 +1,6 @@  - Steamware SRL - Vers. 1.1.1 + Steamware SRL - Vers. 1.3.1 0 @@ -18,7 +18,11 @@ =Parameters!Ticket.Value true + + =Parameters!Chiave.Value + + StoredProcedure stp_prt_dsQuoteFull_Q_Data true @@ -505,8 +509,8 @@ - Embedded - SoloProxima_285x72px + External + ="http://IIS02/C2P/Drawings/logo_OfferDOC.png" FitProportional 0.36903cm 0.44335cm @@ -916,7 +920,7 @@ @@ -981,7 +985,7 @@ - =Fields!P_PriceOff.Value * Fields!KgTeo.Value + =Fields!P_PriceOff.Value * Fields!BatchQty.Value @@ -981,7 +985,7 @@ - =Fields!P_PriceOff.Value * Fields!KgTeo.Value + =Fields!P_PriceOff.Value * Fields!BatchQty.Value - Embedded - SoloProxima_285x72px + External + =Variables!varUrlImage.Value & "logo_Offers.png" FitProportional 0.13cm 14.3175cm @@ -1716,7 +1719,7 @@ Globals!ReportName="ReportOffers_S", Lookup("C2P_prt1_ReportTitle_S",Fields!Lemm External - =Fields!ItemURL.Value + = Variables!varUrlImage.Value & Fields!ItemURL.Value FitProportional 2.1cm 11.5cm @@ -6877,9 +6880,9 @@ Globals!ReportName="ReportOffers_S", Lookup("C2P_prt1_ReportTitle_S",Fields!Lemm - 6.7cm + 8.71083cm 0.5cm - 3.4cm + 1.89188cm @@ -6909,9 +6912,9 @@ Globals!ReportName="ReportOffers_S", Lookup("C2P_prt1_ReportTitle_S",Fields!Lemm - 10.6cm + 10.7791cm 0.5cm - 9.2cm + 9.0209cm 1 + + true + true + + + + + Proxima © 2008- + + + + + =Format(Today, "yyyy" ) + + + + - + + + + Powered By Steam + + + + Ware + + + + + + + 0.5cm + 7.57458cm + 2 + + + 2pt + 2pt + 2pt + 2pt + + - Embedded - SoloProxima_285x72px + External + =Variables!varUrlImage.Value & "logo_Offers.png" FitProportional 0.13cm 14.3175cm @@ -1719,7 +1719,7 @@ Globals!ReportName="ReportOffers_S", Lookup("C2P_prt1_ReportTitle_S",Fields!Lemm External - =Fields!ItemURL.Value + = Variables!varUrlImage.Value & Fields!ItemURL.Value FitProportional 2.1cm 11.5cm @@ -7082,32 +7082,6 @@ Globals!ReportName="ReportOffers_S", Lookup("C2P_prt1_ReportTitle_S",Fields!Lemm true - - - image/jpeg - /9j/4AAQSkZJRgABAQEBLAEsAAD/4gxYSUNDX1BST0ZJTEUAAQEAAAxITGlubwIQAABtbnRyUkdCIFhZWiAHzgACAAkABgAxAABhY3NwTVNGVAAAAABJRUMgc1JHQgAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLUhQICAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABFjcHJ0AAABUAAAADNkZXNjAAABhAAAAGx3dHB0AAAB8AAAABRia3B0AAACBAAAABRyWFlaAAACGAAAABRnWFlaAAACLAAAABRiWFlaAAACQAAAABRkbW5kAAACVAAAAHBkbWRkAAACxAAAAIh2dWVkAAADTAAAAIZ2aWV3AAAD1AAAACRsdW1pAAAD+AAAABRtZWFzAAAEDAAAACR0ZWNoAAAEMAAAAAxyVFJDAAAEPAAACAxnVFJDAAAEPAAACAxiVFJDAAAEPAAACAx0ZXh0AAAAAENvcHlyaWdodCAoYykgMTk5OCBIZXdsZXR0LVBhY2thcmQgQ29tcGFueQAAZGVzYwAAAAAAAAASc1JHQiBJRUM2MTk2Ni0yLjEAAAAAAAAAAAAAABJzUkdCIElFQzYxOTY2LTIuMQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAWFlaIAAAAAAAAPNRAAEAAAABFsxYWVogAAAAAAAAAAAAAAAAAAAAAFhZWiAAAAAAAABvogAAOPUAAAOQWFlaIAAAAAAAAGKZAAC3hQAAGNpYWVogAAAAAAAAJKAAAA+EAAC2z2Rlc2MAAAAAAAAAFklFQyBodHRwOi8vd3d3LmllYy5jaAAAAAAAAAAAAAAAFklFQyBodHRwOi8vd3d3LmllYy5jaAAAAAAAAA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ycQZtHPc9xmdQw8KCr1J1PZ07qnT55OXLFO/uq+n4JLQ/gp/4IFA/wDDyvwBwf8Akk3jLt/042tf3rUUV5mS/wC6P/E/0P6R+mB/ydSh/wBgdH/05XCiiivWP5WCiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigD//Z - - it-IT @@ -7137,6 +7111,9 @@ EqmU0cRiq7WlP2cacb9pzlJ8q7uMKnoyD/glVrv7TmvfsRfCOT9rTw54o0L4qadBdaVaX/jq+a68d+L9 WhiteSmoke + + http://IIS02/C2P/Drawings/ + true Cm diff --git a/C2P_Report/Reports/IIS02/ReportOffers_S.rdl b/C2P_Report/Reports/IIS02/ReportOffers_S.rdl index fd071b0..dd55b4b 100644 --- a/C2P_Report/Reports/IIS02/ReportOffers_S.rdl +++ b/C2P_Report/Reports/IIS02/ReportOffers_S.rdl @@ -1,6 +1,6 @@  - Vers. 3.1.1 + Vers. 3.2.1 0 @@ -47,6 +47,9 @@ =Parameters!Ticket.Value + + =Parameters!Chiave.Value + StoredProcedure stp_prt_dsQuoteFull_Q_Data @@ -404,7 +407,7 @@ System.Decimal - ="http://10.74.82.218/C2P_Drawings/" & Fields!CodItem.Value & ".png" + = Fields!CodItem.Value & ".png" valid @@ -600,8 +603,8 @@ Globals!ReportName="ReportOffers_S", Lookup("C2P_prt1_ReportTitle_S",Fields!Lemm - Embedded - SoloProxima_285x72px + External + =Variables!varUrlImage.Value & "logo_Offers.png" FitProportional 0.13cm 14.3175cm @@ -1716,7 +1719,7 @@ Globals!ReportName="ReportOffers_S", Lookup("C2P_prt1_ReportTitle_S",Fields!Lemm External - =Fields!ItemURL.Value + = Variables!varUrlImage.Value & Fields!ItemURL.Value FitProportional 2.1cm 11.5cm @@ -6877,9 +6880,9 @@ Globals!ReportName="ReportOffers_S", Lookup("C2P_prt1_ReportTitle_S",Fields!Lemm - 6.7cm + 8.71083cm 0.5cm - 3.4cm + 1.89188cm @@ -6909,9 +6912,9 @@ Globals!ReportName="ReportOffers_S", Lookup("C2P_prt1_ReportTitle_S",Fields!Lemm - 10.6cm + 10.7791cm 0.5cm - 9.2cm + 9.0209cm 1 + + true + true + + + + + Proxima © 2008- + + + + + =Format(Today, "yyyy" ) + + + + - + + + + Powered By Steam + + + + Ware + + + + + + + 0.5cm + 7.57458cm + 2 + + + 2pt + 2pt + 2pt + 2pt + + - Embedded - SoloProxima_285x72px + External + =Variables!varUrlImage.Value & "logo_Offers.png" FitProportional 0.13cm 14.3175cm @@ -1719,7 +1719,7 @@ Globals!ReportName="ReportOffers_S", Lookup("C2P_prt1_ReportTitle_S",Fields!Lemm External - =Fields!ItemURL.Value + = Variables!varUrlImage.Value & Fields!ItemURL.Value FitProportional 2.1cm 11.5cm @@ -7082,32 +7082,6 @@ Globals!ReportName="ReportOffers_S", Lookup("C2P_prt1_ReportTitle_S",Fields!Lemm true - - - image/jpeg - /9j/4AAQSkZJRgABAQEBLAEsAAD/4gxYSUNDX1BST0ZJTEUAAQEAAAxITGlubwIQAABtbnRyUkdCIFhZWiAHzgACAAkABgAxAABhY3NwTVNGVAAAAABJRUMgc1JHQgAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLUhQICAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABFjcHJ0AAABUAAAADNkZXNjAAABhAAAAGx3dHB0AAAB8AAAABRia3B0AAACBAAAABRyWFlaAAACGAAAABRnWFlaAAACLAAAABRiWFlaAAACQAAAABRkbW5kAAACVAAAAHBkbWRkAAACxAAAAIh2dWVkAAADTAAAAIZ2aWV3AAAD1AAAACRsdW1pAAAD+AAAABRtZWFzAAAEDAAAACR0ZWNoAAAEMAAAAAxyVFJDAAAEPAAACAxnVFJDAAAEPAAACAxiVFJDAAAEPAAACAx0ZXh0AAAAAENvcHlyaWdodCAoYykgMTk5OCBIZXdsZXR0LVBhY2thcmQgQ29tcGFueQAAZGVzYwAAAAAAAAAS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nGUoqpBcq5bSi4e9pLm0/wA4Kp9PvLzSNVsNX0W81DSNetrqP+ytV0O6m03XrecsBF9luICs6yltoURNuLYA5r+16T/g28/YfbU/tMfxJ/aYh0zfuOkDxvoLjb/dFwdFMuPcnPvX39+zD/wSw/Yf/ZK1Sx8U/C34M6dqXxA0077H4k/EW/m+IPjewfgiSzuLstFZOMffsYoG5IzivMp5NipS99pI/o3Ovpe+GWDw -EqmU0cRiq7WlP2cacb9pzlJ8q7uMKnoyD/glVrv7TmvfsRfCOT9rTw54o0L4qadBdaVaX/jq+a68d+L9BimLaHq2twyEzwXsttIsUkd1/pDfZVlkCtMVH6KUUV9NTh7OnGne9kf5ycQZtHPc9xmdQw8KCr1J1PZ07qnT55OXLFO/uq+n4JLQ/gp/4IFA/wDDyvwBwf8Akk3jLt/042tf3rUUV5mS/wC6P/E/0P6R+mB/ydSh/wBgdH/05XCiiivWP5WCiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigD//Z - - it-IT @@ -7137,6 +7111,9 @@ EqmU0cRiq7WlP2cacb9pzlJ8q7uMKnoyD/glVrv7TmvfsRfCOT9rTw54o0L4qadBdaVaX/jq+a68d+L9 WhiteSmoke + + http://IIS02/C2P/Drawings/ + true Cm diff --git a/C2P_Report/Reports/IIS02/StdCostList.rdlc b/C2P_Report/Reports/IIS02/StdCostList.rdlc index 31ae2ec..d62c154 100644 --- a/C2P_Report/Reports/IIS02/StdCostList.rdlc +++ b/C2P_Report/Reports/IIS02/StdCostList.rdlc @@ -170,7 +170,9 @@ - textbox2 @@ -206,7 +208,9 @@ - textbox3 @@ -242,7 +246,9 @@ - textbox4 @@ -278,7 +284,9 @@ - textbox5 @@ -314,7 +322,9 @@ - textbox6 @@ -350,7 +360,9 @@ - textbox7 @@ -386,7 +398,9 @@ - textbox8 @@ -422,7 +436,9 @@ - textbox9 @@ -459,7 +475,7 @@ @@ -496,7 +512,9 @@ - textbox11 @@ -533,7 +551,7 @@ @@ -571,7 +589,7 @@ @@ -609,7 +627,7 @@ @@ -1156,38 +1174,6 @@ true true - - true - true - - - - - Proxima © 2008-2014 - - - - - - 2pt - 2pt - 2pt - 2pt - - true true @@ -1228,7 +1214,6 @@ 20.32cm 0.175in 3.1in - 1 @@ -1258,7 +1243,7 @@ 5.25in 0.175in 0.75in - 2 + 1 true @@ -1272,6 +1257,49 @@ 2pt + + true + true + + + + + Proxima © 2008- + + + + + =Format(Today, "yyyy" ) + + + + + + + 0.13417in + 0.175in + 3.1in + 2 + + + 2pt + 2pt + 2pt + 2pt + + @@ -940,7 +936,6 @@ it-IT - true @@ -986,7 +981,7 @@ - =Fields!P_PriceOff.Value * Fields!BatchQty.Value + =Fields!P_PriceOff.Value * Fields!KgTeo.Value