update vers 0.5.25

- update voc
- update db e ricerca lega
This commit is contained in:
Samuele E. Locatelli
2014-02-18 18:42:56 +01:00
parent 9a5a6594dc
commit 45be3057f6
59 changed files with 1000 additions and 26 deletions
BIN
View File
Binary file not shown.
+8
View File
@@ -255,6 +255,7 @@
<Content Include="fonts\OpenSans_italic_400.woff" />
<Content Include="fonts\OpenSans_italic_600.woff" />
<Content Include="test.aspx" />
<Content Include="UpdateVoc.aspx" />
<Content Include="WebUserControls\mod_testata.ascx" />
<Content Include="JumboPage.master" />
<Content Include="FullPage.master" />
@@ -395,6 +396,13 @@
<Compile Include="test.aspx.designer.cs">
<DependentUpon>test.aspx</DependentUpon>
</Compile>
<Compile Include="UpdateVoc.aspx.cs">
<DependentUpon>UpdateVoc.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="UpdateVoc.aspx.designer.cs">
<DependentUpon>UpdateVoc.aspx</DependentUpon>
</Compile>
<Compile Include="ViewSwitcher.ascx.cs">
<DependentUpon>ViewSwitcher.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
+1 -1
View File
@@ -308,7 +308,7 @@ body {
/*font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 14px;
line-height: 1.428571429;*/
font: 13px/1.7em 'Open Sans';
font: 13px/1.5em 'Open Sans';
color: #333333;
background: #e9e9e9 url(../images/tiny_grid.png) repeat 0 0;
background-color: #ffffff;
+1 -1
View File
File diff suppressed because one or more lines are too long
+16
View File
@@ -66,6 +66,22 @@ namespace C2P.Services
}
return suggerimenti.ToArray();
}
[WebMethod]
[ScriptMethod(ResponseFormat = ResponseFormat.Json)]
public string[] RawMat(string keywordStartsWith)
{
// inizializzo risposta
List<string> suggerimenti = new List<string>();
// elenco candidati
DS_Utility.v_selRawMatDataTable tabella = DtProxy.man.taVSRM.searchLike(keywordStartsWith);
// aggiungo ogni riga...
foreach (DS_Utility.v_selRawMatRow riga in tabella)
{
//suggerimenti.Add(riga.label);
suggerimenti.Add(string.Format("{0}#{1}", riga.label, riga.value));
}
return suggerimenti.ToArray();
}
//[WebMethod]
//[ScriptMethod(ResponseFormat = ResponseFormat.Json)]
//public string[] Fornitori(string keywordStartsWith)
+16
View File
@@ -0,0 +1,16 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UpdateVoc.aspx.cs" Inherits="C2P.UpdateVoc" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
</div>
</form>
</body>
</html>
+21
View File
@@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SteamWare;
namespace C2P
{
public partial class UpdateVoc : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
// aggiorno vocabolario
DataWrap.DW.resetVocabolario();
// torno a menu...
Response.Redirect("Default");
}
}
}
+26
View File
@@ -0,0 +1,26 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace C2P
{
public partial class UpdateVoc
{
/// <summary>
/// form1 control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
}
}
+1 -1
View File
@@ -17,7 +17,7 @@
<add key="CodModulo" value="C2P" />
<add key="appName" value="C2P" />
<add key="mainRev" value="0.5" />
<add key="minRev" value="24" />
<add key="minRev" value="25" />
<!--area logger-->
<add key="_logDir" value="~/logs/" />
<add key="doShrinkFolder" value="true" />
+3 -8
View File
@@ -17,16 +17,11 @@
</div>
</div>
<div class="row">
<div class="col-lg-12">
<div class="col-lg-8">
<uc1:mod_autocomplete runat="server" ID="acArticolo" contextKey="a" minCharAutocomplete="2" showKey="false" ServicePath="Services/WS_data.asmx/Items" placeholder="Ricerca Articolo" />
</div>
</div>
<div class="row">
<div class="col-lg-2">
Lega
</div>
<div class="col-lg-10">
elenco
<div class="col-lg-4">
<uc1:mod_autocomplete runat="server" ID="acLega" contextKey="l" minCharAutocomplete="2" showKey="false" ServicePath="Services/WS_data.asmx/RawMat" placeholder="Ricerca Lega" />
</div>
</div>
<div class="row">
+14
View File
@@ -27,6 +27,7 @@ namespace C2P.WebUserControls
string cKey = acCliente.contextKey;
acCliente.labelRicerca = traduci("ac[C]liente");
acArticolo.labelRicerca = traduci("ac[A]rticolo");
acLega.labelRicerca = traduci("ac[L]ega");
}
/// <summary>
/// wrapper traduzione
@@ -47,6 +48,18 @@ namespace C2P.WebUserControls
acCliente.eh_reset += acCliente_eh_reset;
acArticolo.eh_valSelezionato += acArticolo_eh_valSelezionato;
acArticolo.eh_reset += acArticolo_eh_reset;
acLega.eh_valSelezionato += acLega_eh_valSelezionato;
acLega.eh_reset += acLega_eh_reset;
}
void acLega_eh_reset(object sender, EventArgs e)
{
salvaRicerca();
}
void acLega_eh_valSelezionato(object sender, EventArgs e)
{
salvaRicerca();
}
void acArticolo_eh_reset(object sender, EventArgs e)
@@ -85,6 +98,7 @@ namespace C2P.WebUserControls
// salvo valore selezionato cliente
memLayer.ML.setSessionVal("codClient", acCliente.valore);
memLayer.ML.setSessionVal("CodItem", acArticolo.valore);
memLayer.ML.setSessionVal("RawMat", acLega.valore);
// sollevo evento
if (eh_newSearchData != null)
{
+9
View File
@@ -38,5 +38,14 @@ namespace C2P.WebUserControls {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::C2P.WebUserControls.mod_autocomplete acArticolo;
/// <summary>
/// acLega control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::C2P.WebUserControls.mod_autocomplete acLega;
}
}
+1 -1
View File
@@ -71,7 +71,7 @@
<ul class="dropdown-menu">
<li><a href="javascript:;">My Profile</a></li>
<li class="divider"></li>
<li><a href="javascript:;">Logout</a></li>
<li><a href="UpdateVoc">Update Voc</a></li>
</ul>
</li>
</ul>
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -308,7 +308,7 @@ body {
/*font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 14px;
line-height: 1.428571429;*/
font: 13px/1.7em 'Open Sans';
font: 13px/1.5em 'Open Sans';
color: #333333;
background: #e9e9e9 url(../images/tiny_grid.png) repeat 0 0;
background-color: #ffffff;
File diff suppressed because one or more lines are too long
@@ -17,7 +17,7 @@
<add key="CodModulo" value="C2P" />
<add key="appName" value="C2P" />
<add key="mainRev" value="0.5" />
<add key="minRev" value="24" />
<add key="minRev" value="25" />
<!--area logger-->
<add key="_logDir" value="~/logs/" />
<add key="doShrinkFolder" value="true" />
@@ -308,7 +308,7 @@ body {
/*font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 14px;
line-height: 1.428571429;*/
font: 13px/1.7em 'Open Sans';
font: 13px/1.5em 'Open Sans';
color: #333333;
background: #e9e9e9 url(../images/tiny_grid.png) repeat 0 0;
background-color: #ffffff;
File diff suppressed because one or more lines are too long
@@ -17,7 +17,7 @@
<add key="CodModulo" value="C2P" />
<add key="appName" value="C2P" />
<add key="mainRev" value="0.5" />
<add key="minRev" value="24" />
<add key="minRev" value="25" />
<!--area logger-->
<add key="_logDir" value="~/logs/" />
<add key="doShrinkFolder" value="true" />
@@ -17,7 +17,7 @@
<add key="CodModulo" value="C2P" />
<add key="appName" value="C2P" />
<add key="mainRev" value="0.5" />
<add key="minRev" value="24" />
<add key="minRev" value="25" />
<!--area logger-->
<add key="_logDir" value="~/logs/" />
<add key="doShrinkFolder" value="true" />
@@ -17,7 +17,7 @@
<add key="CodModulo" value="C2P" />
<add key="appName" value="C2P" />
<add key="mainRev" value="0.5" />
<add key="minRev" value="24" />
<add key="minRev" value="25" />
<!--area logger-->
<add key="_logDir" value="~/logs/" />
<add key="doShrinkFolder" value="true" />
@@ -17,7 +17,7 @@
<add key="CodModulo" value="C2P" />
<add key="appName" value="C2P" />
<add key="mainRev" value="0.5" />
<add key="minRev" value="24" />
<add key="minRev" value="25" />
<!--area logger-->
<add key="_logDir" value="~/logs/" />
<add key="doShrinkFolder" value="true" />
@@ -17,7 +17,7 @@
<add key="CodModulo" value="C2P" />
<add key="appName" value="C2P" />
<add key="mainRev" value="0.5" />
<add key="minRev" value="24" />
<add key="minRev" value="25" />
<!--area logger-->
<add key="_logDir" value="~/logs/" />
<add key="doShrinkFolder" value="true" />
+3
View File
@@ -8,6 +8,9 @@
<add name="C2P_Data.Properties.Settings.Proxima_C2PConnectionString"
connectionString="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=Proxima_C2P;Persist Security Info=True;User ID=sa;Password=keyhammer;MultipleActiveResultSets=True;Application Name=EntityFramework"
providerName="System.Data.SqlClient" />
<add name="C2P_Data.Properties.Settings.C2P_ProjectConnectionString"
connectionString="Data Source=(localdb)\Projects;Initial Catalog=C2P_Project;Integrated Security=True"
providerName="System.Data.SqlClient" />
</connectionStrings>
<entityFramework>
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
+573
View File
@@ -28,6 +28,8 @@ namespace C2P_Data {
private v_selItemsDataTable tablev_selItems;
private v_selRawMatDataTable tablev_selRawMat;
private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -62,6 +64,9 @@ namespace C2P_Data {
if ((ds.Tables["v_selItems"] != null)) {
base.Tables.Add(new v_selItemsDataTable(ds.Tables["v_selItems"]));
}
if ((ds.Tables["v_selRawMat"] != null)) {
base.Tables.Add(new v_selRawMatDataTable(ds.Tables["v_selRawMat"]));
}
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
@@ -100,6 +105,16 @@ namespace C2P_Data {
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
public v_selRawMatDataTable v_selRawMat {
get {
return this.tablev_selRawMat;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.BrowsableAttribute(true)]
@@ -173,6 +188,9 @@ namespace C2P_Data {
if ((ds.Tables["v_selItems"] != null)) {
base.Tables.Add(new v_selItemsDataTable(ds.Tables["v_selItems"]));
}
if ((ds.Tables["v_selRawMat"] != null)) {
base.Tables.Add(new v_selRawMatDataTable(ds.Tables["v_selRawMat"]));
}
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
@@ -218,6 +236,12 @@ namespace C2P_Data {
this.tablev_selItems.InitVars();
}
}
this.tablev_selRawMat = ((v_selRawMatDataTable)(base.Tables["v_selRawMat"]));
if ((initTable == true)) {
if ((this.tablev_selRawMat != null)) {
this.tablev_selRawMat.InitVars();
}
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -232,6 +256,8 @@ namespace C2P_Data {
base.Tables.Add(this.tablev_selClient);
this.tablev_selItems = new v_selItemsDataTable();
base.Tables.Add(this.tablev_selItems);
this.tablev_selRawMat = new v_selRawMatDataTable();
base.Tables.Add(this.tablev_selRawMat);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -246,6 +272,12 @@ namespace C2P_Data {
return false;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private bool ShouldSerializev_selRawMat() {
return false;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
@@ -307,6 +339,9 @@ namespace C2P_Data {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public delegate void v_selItemsRowChangeEventHandler(object sender, v_selItemsRowChangeEvent e);
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public delegate void v_selRawMatRowChangeEventHandler(object sender, v_selRawMatRowChangeEvent e);
/// <summary>
///Represents the strongly named DataTable class.
///</summary>
@@ -857,6 +892,282 @@ namespace C2P_Data {
}
}
/// <summary>
///Represents the strongly named DataTable class.
///</summary>
[global::System.Serializable()]
[global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
public partial class v_selRawMatDataTable : global::System.Data.TypedTableBase<v_selRawMatRow> {
private global::System.Data.DataColumn columnvalue;
private global::System.Data.DataColumn columnlabel;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public v_selRawMatDataTable() {
this.TableName = "v_selRawMat";
this.BeginInit();
this.InitClass();
this.EndInit();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
internal v_selRawMatDataTable(global::System.Data.DataTable table) {
this.TableName = table.TableName;
if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
this.CaseSensitive = table.CaseSensitive;
}
if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
this.Locale = table.Locale;
}
if ((table.Namespace != table.DataSet.Namespace)) {
this.Namespace = table.Namespace;
}
this.Prefix = table.Prefix;
this.MinimumCapacity = table.MinimumCapacity;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected v_selRawMatDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
base(info, context) {
this.InitVars();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public global::System.Data.DataColumn valueColumn {
get {
return this.columnvalue;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public global::System.Data.DataColumn labelColumn {
get {
return this.columnlabel;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
public int Count {
get {
return this.Rows.Count;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public v_selRawMatRow this[int index] {
get {
return ((v_selRawMatRow)(this.Rows[index]));
}
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public event v_selRawMatRowChangeEventHandler v_selRawMatRowChanging;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public event v_selRawMatRowChangeEventHandler v_selRawMatRowChanged;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public event v_selRawMatRowChangeEventHandler v_selRawMatRowDeleting;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public event v_selRawMatRowChangeEventHandler v_selRawMatRowDeleted;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public void Addv_selRawMatRow(v_selRawMatRow row) {
this.Rows.Add(row);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public v_selRawMatRow Addv_selRawMatRow(string value, string label) {
v_selRawMatRow rowv_selRawMatRow = ((v_selRawMatRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
value,
label};
rowv_selRawMatRow.ItemArray = columnValuesArray;
this.Rows.Add(rowv_selRawMatRow);
return rowv_selRawMatRow;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public v_selRawMatRow FindByvaluelabel(string value, string label) {
return ((v_selRawMatRow)(this.Rows.Find(new object[] {
value,
label})));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public override global::System.Data.DataTable Clone() {
v_selRawMatDataTable cln = ((v_selRawMatDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected override global::System.Data.DataTable CreateInstance() {
return new v_selRawMatDataTable();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
internal void InitVars() {
this.columnvalue = base.Columns["value"];
this.columnlabel = base.Columns["label"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private void InitClass() {
this.columnvalue = new global::System.Data.DataColumn("value", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnvalue);
this.columnlabel = new global::System.Data.DataColumn("label", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnlabel);
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
this.columnvalue,
this.columnlabel}, true));
this.columnvalue.AllowDBNull = false;
this.columnvalue.MaxLength = 50;
this.columnlabel.AllowDBNull = false;
this.columnlabel.MaxLength = 50;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public v_selRawMatRow Newv_selRawMatRow() {
return ((v_selRawMatRow)(this.NewRow()));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
return new v_selRawMatRow(builder);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected override global::System.Type GetRowType() {
return typeof(v_selRawMatRow);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.v_selRawMatRowChanged != null)) {
this.v_selRawMatRowChanged(this, new v_selRawMatRowChangeEvent(((v_selRawMatRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.v_selRawMatRowChanging != null)) {
this.v_selRawMatRowChanging(this, new v_selRawMatRowChangeEvent(((v_selRawMatRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.v_selRawMatRowDeleted != null)) {
this.v_selRawMatRowDeleted(this, new v_selRawMatRowChangeEvent(((v_selRawMatRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.v_selRawMatRowDeleting != null)) {
this.v_selRawMatRowDeleting(this, new v_selRawMatRowChangeEvent(((v_selRawMatRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public void Removev_selRawMatRow(v_selRawMatRow row) {
this.Rows.Remove(row);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
DS_Utility ds = new DS_Utility();
global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
any1.Namespace = "http://www.w3.org/2001/XMLSchema";
any1.MinOccurs = new decimal(0);
any1.MaxOccurs = decimal.MaxValue;
any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
sequence.Items.Add(any1);
global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
any2.MinOccurs = new decimal(1);
any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
sequence.Items.Add(any2);
global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
attribute1.Name = "namespace";
attribute1.FixedValue = ds.Namespace;
type.Attributes.Add(attribute1);
global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
attribute2.Name = "tableTypeName";
attribute2.FixedValue = "v_selRawMatDataTable";
type.Attributes.Add(attribute2);
type.Particle = sequence;
global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
if (xs.Contains(dsSchema.TargetNamespace)) {
global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
try {
global::System.Xml.Schema.XmlSchema schema = null;
dsSchema.Write(s1);
for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
s2.SetLength(0);
schema.Write(s2);
if ((s1.Length == s2.Length)) {
s1.Position = 0;
s2.Position = 0;
for (; ((s1.Position != s1.Length)
&& (s1.ReadByte() == s2.ReadByte())); ) {
;
}
if ((s1.Position == s1.Length)) {
return type;
}
}
}
}
finally {
if ((s1 != null)) {
s1.Close();
}
if ((s2 != null)) {
s2.Close();
}
}
}
xs.Add(dsSchema);
return type;
}
}
/// <summary>
///Represents strongly named DataRow class.
///</summary>
@@ -965,6 +1276,43 @@ namespace C2P_Data {
}
}
/// <summary>
///Represents strongly named DataRow class.
///</summary>
public partial class v_selRawMatRow : global::System.Data.DataRow {
private v_selRawMatDataTable tablev_selRawMat;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
internal v_selRawMatRow(global::System.Data.DataRowBuilder rb) :
base(rb) {
this.tablev_selRawMat = ((v_selRawMatDataTable)(this.Table));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public string value {
get {
return ((string)(this[this.tablev_selRawMat.valueColumn]));
}
set {
this[this.tablev_selRawMat.valueColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public string label {
get {
return ((string)(this[this.tablev_selRawMat.labelColumn]));
}
set {
this[this.tablev_selRawMat.labelColumn] = value;
}
}
}
/// <summary>
///Row event argument class
///</summary>
@@ -1032,6 +1380,40 @@ namespace C2P_Data {
}
}
}
/// <summary>
///Row event argument class
///</summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public class v_selRawMatRowChangeEvent : global::System.EventArgs {
private v_selRawMatRow eventRow;
private global::System.Data.DataRowAction eventAction;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public v_selRawMatRowChangeEvent(v_selRawMatRow row, global::System.Data.DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public v_selRawMatRow Row {
get {
return this.eventRow;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public global::System.Data.DataRowAction Action {
get {
return this.eventAction;
}
}
}
}
}
namespace C2P_Data.DS_UtilityTableAdapters {
@@ -1419,6 +1801,197 @@ namespace C2P_Data.DS_UtilityTableAdapters {
}
}
/// <summary>
///Represents the connection and commands used to retrieve and save data.
///</summary>
[global::System.ComponentModel.DesignerCategoryAttribute("code")]
[global::System.ComponentModel.ToolboxItem(true)]
[global::System.ComponentModel.DataObjectAttribute(true)]
[global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public partial class v_selRawMatTableAdapter : global::System.ComponentModel.Component {
private global::System.Data.SqlClient.SqlDataAdapter _adapter;
private global::System.Data.SqlClient.SqlConnection _connection;
private global::System.Data.SqlClient.SqlTransaction _transaction;
private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
private bool _clearBeforeFill;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public v_selRawMatTableAdapter() {
this.ClearBeforeFill = true;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
get {
if ((this._adapter == null)) {
this.InitAdapter();
}
return this._adapter;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
internal global::System.Data.SqlClient.SqlConnection Connection {
get {
if ((this._connection == null)) {
this.InitConnection();
}
return this._connection;
}
set {
this._connection = value;
if ((this.Adapter.InsertCommand != null)) {
this.Adapter.InsertCommand.Connection = value;
}
if ((this.Adapter.DeleteCommand != null)) {
this.Adapter.DeleteCommand.Connection = value;
}
if ((this.Adapter.UpdateCommand != null)) {
this.Adapter.UpdateCommand.Connection = value;
}
for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
if ((this.CommandCollection[i] != null)) {
((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
}
}
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
internal global::System.Data.SqlClient.SqlTransaction Transaction {
get {
return this._transaction;
}
set {
this._transaction = value;
for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
this.CommandCollection[i].Transaction = this._transaction;
}
if (((this.Adapter != null)
&& (this.Adapter.DeleteCommand != null))) {
this.Adapter.DeleteCommand.Transaction = this._transaction;
}
if (((this.Adapter != null)
&& (this.Adapter.InsertCommand != null))) {
this.Adapter.InsertCommand.Transaction = this._transaction;
}
if (((this.Adapter != null)
&& (this.Adapter.UpdateCommand != null))) {
this.Adapter.UpdateCommand.Transaction = this._transaction;
}
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
get {
if ((this._commandCollection == null)) {
this.InitCommandCollection();
}
return this._commandCollection;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public bool ClearBeforeFill {
get {
return this._clearBeforeFill;
}
set {
this._clearBeforeFill = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private void InitAdapter() {
this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
tableMapping.SourceTable = "Table";
tableMapping.DataSetTable = "v_selRawMat";
tableMapping.ColumnMappings.Add("value", "value");
tableMapping.ColumnMappings.Add("label", "label");
this._adapter.TableMappings.Add(tableMapping);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private void InitConnection() {
this._connection = new global::System.Data.SqlClient.SqlConnection();
this._connection.ConnectionString = global::C2P_Data.Properties.Settings.Default.Proxima_C2PConnectionString;
}
[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[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT value, label FROM dbo.v_selRawMat";
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[1].Connection = this.Connection;
this._commandCollection[1].CommandText = "dbo.stp_VSRM_SearchLike";
this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@value", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
[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.Fill, true)]
public virtual int Fill(DS_Utility.v_selRawMatDataTable dataTable) {
this.Adapter.SelectCommand = this.CommandCollection[0];
if ((this.ClearBeforeFill == true)) {
dataTable.Clear();
}
int returnValue = this.Adapter.Fill(dataTable);
return returnValue;
}
[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, true)]
public virtual DS_Utility.v_selRawMatDataTable GetData() {
this.Adapter.SelectCommand = this.CommandCollection[0];
DS_Utility.v_selRawMatDataTable dataTable = new DS_Utility.v_selRawMatDataTable();
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_selRawMatDataTable searchLike(string value) {
this.Adapter.SelectCommand = this.CommandCollection[1];
if ((value == null)) {
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(value));
}
DS_Utility.v_selRawMatDataTable dataTable = new DS_Utility.v_selRawMatDataTable();
this.Adapter.Fill(dataTable);
return dataTable;
}
}
/// <summary>
///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
///</summary>
+58 -3
View File
@@ -2,9 +2,10 @@
<xs:schema id="DS_Utility" targetNamespace="http://tempuri.org/DS_Utility.xsd" xmlns:mstns="http://tempuri.org/DS_Utility.xsd" xmlns="http://tempuri.org/DS_Utility.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
<xs:annotation>
<xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
<DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<DataSource DefaultConnectionIndex="1" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<Connections>
<Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="Proxima_C2PConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="Proxima_C2PConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.C2P_Data.Properties.Settings.GlobalReference.Default.Proxima_C2PConnectionString" Provider="System.Data.SqlClient" />
<Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="C2P_ProjectConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="C2P_ProjectConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.C2P_Data.Properties.Settings.GlobalReference.Default.C2P_ProjectConnectionString" Provider="System.Data.SqlClient" />
</Connections>
<Tables>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="v_selClientTableAdapter" GeneratorDataComponentClassName="v_selClientTableAdapter" Name="v_selClient" UserDataComponentName="v_selClientTableAdapter">
@@ -65,6 +66,35 @@
</DbSource>
</Sources>
</TableAdapter>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="v_selRawMatTableAdapter" GeneratorDataComponentClassName="v_selRawMatTableAdapter" Name="v_selRawMat" UserDataComponentName="v_selRawMatTableAdapter">
<MainSource>
<DbSource ConnectionRef="Proxima_C2PConnectionString (Settings)" DbObjectName="Proxima_C2P.dbo.v_selRawMat" DbObjectType="View" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT value, label FROM dbo.v_selRawMat</CommandText>
<Parameters />
</DbCommand>
</SelectCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="value" DataSetColumn="value" />
<Mapping SourceColumn="label" DataSetColumn="label" />
</Mappings>
<Sources>
<DbSource ConnectionRef="Proxima_C2PConnectionString (Settings)" DbObjectName="Proxima_C2P.dbo.stp_VSRM_SearchLike" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="searchLike" GetMethodModifier="Public" GetMethodName="searchLike" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="searchLike" UserSourceName="searchLike">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_VSRM_SearchLike</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@value" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
</Sources>
</TableAdapter>
</Tables>
<Sources />
</DataSource>
@@ -73,7 +103,7 @@
<xs:element name="DS_Utility" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="DS_Utility" msprop:Generator_UserDSName="DS_Utility">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="v_selClient" msprop:Generator_TableClassName="v_selClientDataTable" msprop:Generator_TableVarName="tablev_selClient" msprop:Generator_RowChangedName="v_selClientRowChanged" msprop:Generator_TablePropName="v_selClient" msprop:Generator_RowDeletingName="v_selClientRowDeleting" msprop:Generator_RowChangingName="v_selClientRowChanging" msprop:Generator_RowEvHandlerName="v_selClientRowChangeEventHandler" msprop:Generator_RowDeletedName="v_selClientRowDeleted" msprop:Generator_RowClassName="v_selClientRow" msprop:Generator_UserTableName="v_selClient" msprop:Generator_RowEvArgName="v_selClientRowChangeEvent">
<xs:element name="v_selClient" msprop:Generator_TableClassName="v_selClientDataTable" msprop:Generator_TableVarName="tablev_selClient" msprop:Generator_TablePropName="v_selClient" msprop:Generator_RowDeletingName="v_selClientRowDeleting" msprop:Generator_RowChangingName="v_selClientRowChanging" msprop:Generator_RowEvHandlerName="v_selClientRowChangeEventHandler" msprop:Generator_RowDeletedName="v_selClientRowDeleted" msprop:Generator_UserTableName="v_selClient" msprop:Generator_RowChangedName="v_selClientRowChanged" msprop:Generator_RowEvArgName="v_selClientRowChangeEvent" msprop:Generator_RowClassName="v_selClientRow">
<xs:complexType>
<xs:sequence>
<xs:element name="value" msprop:Generator_ColumnVarNameInTable="columnvalue" msprop:Generator_ColumnPropNameInRow="value" msprop:Generator_ColumnPropNameInTable="valueColumn" msprop:Generator_UserColumnName="value">
@@ -93,7 +123,7 @@
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="v_selItems" msprop:Generator_TableClassName="v_selItemsDataTable" msprop:Generator_TableVarName="tablev_selItems" msprop:Generator_TablePropName="v_selItems" msprop:Generator_RowDeletingName="v_selItemsRowDeleting" msprop:Generator_RowChangingName="v_selItemsRowChanging" msprop:Generator_RowEvHandlerName="v_selItemsRowChangeEventHandler" msprop:Generator_RowDeletedName="v_selItemsRowDeleted" msprop:Generator_UserTableName="v_selItems" msprop:Generator_RowChangedName="v_selItemsRowChanged" msprop:Generator_RowEvArgName="v_selItemsRowChangeEvent" msprop:Generator_RowClassName="v_selItemsRow">
<xs:element name="v_selItems" msprop:Generator_TableClassName="v_selItemsDataTable" msprop:Generator_TableVarName="tablev_selItems" msprop:Generator_RowChangedName="v_selItemsRowChanged" msprop:Generator_TablePropName="v_selItems" msprop:Generator_RowDeletingName="v_selItemsRowDeleting" msprop:Generator_RowChangingName="v_selItemsRowChanging" msprop:Generator_RowEvHandlerName="v_selItemsRowChangeEventHandler" msprop:Generator_RowDeletedName="v_selItemsRowDeleted" msprop:Generator_RowClassName="v_selItemsRow" msprop:Generator_UserTableName="v_selItems" msprop:Generator_RowEvArgName="v_selItemsRowChangeEvent">
<xs:complexType>
<xs:sequence>
<xs:element name="value" msprop:Generator_ColumnVarNameInTable="columnvalue" msprop:Generator_ColumnPropNameInRow="value" msprop:Generator_ColumnPropNameInTable="valueColumn" msprop:Generator_UserColumnName="value">
@@ -113,6 +143,26 @@
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="v_selRawMat" msprop:Generator_TableClassName="v_selRawMatDataTable" msprop:Generator_TableVarName="tablev_selRawMat" msprop:Generator_TablePropName="v_selRawMat" msprop:Generator_RowDeletingName="v_selRawMatRowDeleting" msprop:Generator_RowChangingName="v_selRawMatRowChanging" msprop:Generator_RowEvHandlerName="v_selRawMatRowChangeEventHandler" msprop:Generator_RowDeletedName="v_selRawMatRowDeleted" msprop:Generator_UserTableName="v_selRawMat" msprop:Generator_RowChangedName="v_selRawMatRowChanged" msprop:Generator_RowEvArgName="v_selRawMatRowChangeEvent" msprop:Generator_RowClassName="v_selRawMatRow">
<xs:complexType>
<xs:sequence>
<xs:element name="value" msprop:Generator_ColumnVarNameInTable="columnvalue" msprop:Generator_ColumnPropNameInRow="value" msprop:Generator_ColumnPropNameInTable="valueColumn" msprop:Generator_UserColumnName="value">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="label" msprop:Generator_ColumnVarNameInTable="columnlabel" msprop:Generator_ColumnPropNameInRow="label" msprop:Generator_ColumnPropNameInTable="labelColumn" msprop:Generator_UserColumnName="label">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
<xs:unique name="Constraint1" msdata:PrimaryKey="true">
@@ -123,5 +173,10 @@
<xs:selector xpath=".//mstns:v_selItems" />
<xs:field xpath="mstns:value" />
</xs:unique>
<xs:unique name="v_selRawMat_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:v_selRawMat" />
<xs:field xpath="mstns:value" />
<xs:field xpath="mstns:label" />
</xs:unique>
</xs:element>
</xs:schema>
+3
View File
@@ -26,6 +26,7 @@ namespace C2P_Data
taQL = new DS_QuotesTableAdapters.QuoteListTableAdapter();
taVSCli = new DS_UtilityTableAdapters.v_selClientTableAdapter();
taVSItm = new DS_UtilityTableAdapters.v_selItemsTableAdapter();
taVSRM = new DS_UtilityTableAdapters.v_selRawMatTableAdapter();
}
/// <summary>
/// effettua setup dei connection strings da web.config della singola applicazione
@@ -37,6 +38,7 @@ namespace C2P_Data
taQL.Connection.ConnectionString = connStr;
taVSCli.Connection.ConnectionString = connStr;
taVSItm.Connection.ConnectionString = connStr;
taVSRM.Connection.ConnectionString = connStr;
}
#endregion
@@ -46,6 +48,7 @@ namespace C2P_Data
public DS_QuotesTableAdapters.QuoteListTableAdapter taQL;
public DS_UtilityTableAdapters.v_selClientTableAdapter taVSCli;
public DS_UtilityTableAdapters.v_selItemsTableAdapter taVSItm;
public DS_UtilityTableAdapters.v_selRawMatTableAdapter taVSRM;
public static DtProxy man = new DtProxy();
+12 -1
View File
@@ -1,7 +1,7 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.34003
// Runtime Version:4.0.30319.34011
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
@@ -34,5 +34,16 @@ namespace C2P_Data.Properties {
return ((string)(this["Proxima_C2PConnectionString"]));
}
}
[global::System.Configuration.ApplicationScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)]
[global::System.Configuration.DefaultSettingValueAttribute("Data Source=(localdb)\\Projects;Initial Catalog=C2P_Project;Integrated Security=Tr" +
"ue")]
public string C2P_ProjectConnectionString {
get {
return ((string)(this["C2P_ProjectConnectionString"]));
}
}
}
}
+8
View File
@@ -10,5 +10,13 @@
&lt;/SerializableConnectionString&gt;</DesignTimeValue>
<Value Profile="(Default)">Data Source=10.74.82.217\SQL2008R2;Initial Catalog=Proxima_C2P;Persist Security Info=True;User ID=sa;Password=keyhammer;MultipleActiveResultSets=True;Application Name=EntityFramework</Value>
</Setting>
<Setting Name="C2P_ProjectConnectionString" Type="(Connection string)" Scope="Application">
<DesignTimeValue Profile="(Default)">&lt;?xml version="1.0" encoding="utf-16"?&gt;
&lt;SerializableConnectionString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
&lt;ConnectionString&gt;Data Source=(localdb)\Projects;Initial Catalog=C2P_Project;Integrated Security=True&lt;/ConnectionString&gt;
&lt;ProviderName&gt;System.Data.SqlClient&lt;/ProviderName&gt;
&lt;/SerializableConnectionString&gt;</DesignTimeValue>
<Value Profile="(Default)">Data Source=(localdb)\Projects;Initial Catalog=C2P_Project;Integrated Security=True</Value>
</Setting>
</Settings>
</SettingsFile>
+13
View File
@@ -50,6 +50,19 @@ SELECT CodItem AS value, ItemDescr + ' [' + CodItem + ']' AS label
FROM dbo.ItemDet
WHERE (CodItem <> '')
GO
PRINT N'Creating [dbo].[v_selRawMat]...';
GO
CREATE VIEW dbo.v_selRawMat
AS
SELECT RawMat AS value, RawMat AS label
FROM dbo.RawMatDet
WHERE (RawMat <> '')
GO
PRINT N'Creating [dbo].[stp_esplodiVocab]...';
+7
View File
@@ -16,11 +16,18 @@ GO
/*Pointer used for text / image updates. This might not be needed, but is declared here just in case*/
DECLARE @pv binary(16)
BEGIN TRANSACTION
INSERT INTO [dbo].[Lingue] ([Lingua], [DescrizioneLingua]) VALUES (N'EN', N'English')
INSERT INTO [dbo].[Lingue] ([Lingua], [DescrizioneLingua]) VALUES (N'IT', N'Italiano')
ALTER TABLE [dbo].[Vocabolario] DROP CONSTRAINT [FK_Vocabolario_Lingue]
INSERT INTO [dbo].[Vocabolario] ([Lingua], [Lemma], [Traduzione]) VALUES (N'EN', N'ac[A]rticolo', N'[A]rticolo')
INSERT INTO [dbo].[Vocabolario] ([Lingua], [Lemma], [Traduzione]) VALUES (N'EN', N'ac[C]liente', N'[C]liente')
INSERT INTO [dbo].[Vocabolario] ([Lingua], [Lemma], [Traduzione]) VALUES (N'IT', N'ac[A]rticolo', N'[A]rticolo')
INSERT INTO [dbo].[Vocabolario] ([Lingua], [Lemma], [Traduzione]) VALUES (N'IT', N'ac[C]liente', N'[C]liente')
INSERT INTO [dbo].[Vocabolario] ([Lingua], [Lemma], [Traduzione]) VALUES (N'EN', N'ac[L]ega', N'[L]ega')
INSERT INTO [dbo].[Vocabolario] ([Lingua], [Lemma], [Traduzione]) VALUES (N'IT', N'ac[L]ega', N'[L]ega')
ALTER TABLE [dbo].[Vocabolario]
WITH NOCHECK ADD CONSTRAINT [FK_Vocabolario_Lingue] FOREIGN KEY ([Lingua]) REFERENCES [dbo].[Lingue] ([Lingua]) ON UPDATE CASCADE
COMMIT TRANSACTION
Binary file not shown.
+3
View File
@@ -8,6 +8,9 @@
<add name="C2P_Data.Properties.Settings.Proxima_C2PConnectionString"
connectionString="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=Proxima_C2P;Persist Security Info=True;User ID=sa;Password=keyhammer;MultipleActiveResultSets=True;Application Name=EntityFramework"
providerName="System.Data.SqlClient" />
<add name="C2P_Data.Properties.Settings.C2P_ProjectConnectionString"
connectionString="Data Source=(localdb)\Projects;Initial Catalog=C2P_Project;Integrated Security=True"
providerName="System.Data.SqlClient" />
</connectionStrings>
<entityFramework>
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+3
View File
@@ -8,6 +8,9 @@
<add name="C2P_Data.Properties.Settings.Proxima_C2PConnectionString"
connectionString="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=Proxima_C2P;Persist Security Info=True;User ID=sa;Password=keyhammer;MultipleActiveResultSets=True;Application Name=EntityFramework"
providerName="System.Data.SqlClient" />
<add name="C2P_Data.Properties.Settings.C2P_ProjectConnectionString"
connectionString="Data Source=(localdb)\Projects;Initial Catalog=C2P_Project;Integrated Security=True"
providerName="System.Data.SqlClient" />
</connectionStrings>
<entityFramework>
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
Binary file not shown.
+3
View File
@@ -186,6 +186,9 @@
<Build Include="Security\ext.sql" />
<Build Include="Security\tmp.sql" />
<Build Include="Security\voc.sql" />
<Build Include="ext\Stored Procedures\ext.stp_mergePackage2ItemClient_OLD.sql" />
<Build Include="ext\Stored Procedures\ext.stp_mergePackage2Item_OLD.sql" />
<Build Include="ext\Stored Procedures\ext.stp_mergePackage2_OLD.sql" />
</ItemGroup>
<ItemGroup>
<None Include="C2P_compare_dev2prod.scmp" />
+2
View File
@@ -1,3 +1,5 @@
CREATE SCHEMA [ext]
AUTHORIZATION [dbo];
+2
View File
@@ -1,3 +1,5 @@
CREATE SCHEMA [tmp]
AUTHORIZATION [dbo];
@@ -0,0 +1,61 @@

-- =============================================
-- 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
@@ -0,0 +1,61 @@

-- =============================================
-- 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
@@ -0,0 +1,61 @@

-- =============================================
-- 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
Binary file not shown.