diff --git a/AppData/DS_Report.Designer.cs b/AppData/DS_Report.Designer.cs index 3dd1092..47debfc 100644 --- a/AppData/DS_Report.Designer.cs +++ b/AppData/DS_Report.Designer.cs @@ -46,6 +46,8 @@ namespace AppData { private stp_prt_RemnantDataTable tablestp_prt_Remnant; + private stp_prt_SpecialPartDataTable tablestp_prt_SpecialPart; + private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -107,6 +109,9 @@ namespace AppData { if ((ds.Tables["stp_prt_Remnant"] != null)) { base.Tables.Add(new stp_prt_RemnantDataTable(ds.Tables["stp_prt_Remnant"])); } + if ((ds.Tables["stp_prt_SpecialPart"] != null)) { + base.Tables.Add(new stp_prt_SpecialPartDataTable(ds.Tables["stp_prt_SpecialPart"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -235,6 +240,16 @@ namespace AppData { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public stp_prt_SpecialPartDataTable stp_prt_SpecialPart { + get { + return this.tablestp_prt_SpecialPart; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] [global::System.ComponentModel.BrowsableAttribute(true)] @@ -335,6 +350,9 @@ namespace AppData { if ((ds.Tables["stp_prt_Remnant"] != null)) { base.Tables.Add(new stp_prt_RemnantDataTable(ds.Tables["stp_prt_Remnant"])); } + if ((ds.Tables["stp_prt_SpecialPart"] != null)) { + base.Tables.Add(new stp_prt_SpecialPartDataTable(ds.Tables["stp_prt_SpecialPart"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -434,6 +452,12 @@ namespace AppData { this.tablestp_prt_Remnant.InitVars(); } } + this.tablestp_prt_SpecialPart = ((stp_prt_SpecialPartDataTable)(base.Tables["stp_prt_SpecialPart"])); + if ((initTable == true)) { + if ((this.tablestp_prt_SpecialPart != null)) { + this.tablestp_prt_SpecialPart.InitVars(); + } + } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -466,6 +490,8 @@ namespace AppData { base.Tables.Add(this.tablestp_prt_IRK_Sum); this.tablestp_prt_Remnant = new stp_prt_RemnantDataTable(); base.Tables.Add(this.tablestp_prt_Remnant); + this.tablestp_prt_SpecialPart = new stp_prt_SpecialPartDataTable(); + base.Tables.Add(this.tablestp_prt_SpecialPart); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -534,6 +560,12 @@ namespace AppData { return false; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + private bool ShouldSerializestp_prt_SpecialPart() { + return false; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) { @@ -622,6 +654,9 @@ namespace AppData { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] public delegate void stp_prt_RemnantRowChangeEventHandler(object sender, stp_prt_RemnantRowChangeEvent e); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public delegate void stp_prt_SpecialPartRowChangeEventHandler(object sender, stp_prt_SpecialPartRowChangeEvent e); + /// ///Represents the strongly named DataTable class. /// @@ -4683,6 +4718,376 @@ namespace AppData { } } + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class stp_prt_SpecialPartDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnDocID; + + private global::System.Data.DataColumn columnDocDtmx; + + private global::System.Data.DataColumn columnPartCode; + + private global::System.Data.DataColumn columnPartDescr; + + private global::System.Data.DataColumn columnDueDate; + + private global::System.Data.DataColumn columnTotItem; + + private global::System.Data.DataColumn columnPathImageFull; + + private global::System.Data.DataColumn columnQRCodeBaseUrl; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public stp_prt_SpecialPartDataTable() { + this.TableName = "stp_prt_SpecialPart"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + internal stp_prt_SpecialPartDataTable(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", "17.0.0.0")] + protected stp_prt_SpecialPartDataTable(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", "17.0.0.0")] + public global::System.Data.DataColumn DocIDColumn { + get { + return this.columnDocID; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn DocDtmxColumn { + get { + return this.columnDocDtmx; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn PartCodeColumn { + get { + return this.columnPartCode; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn PartDescrColumn { + get { + return this.columnPartDescr; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn DueDateColumn { + get { + return this.columnDueDate; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn TotItemColumn { + get { + return this.columnTotItem; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn PathImageFullColumn { + get { + return this.columnPathImageFull; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn QRCodeBaseUrlColumn { + get { + return this.columnQRCodeBaseUrl; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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", "17.0.0.0")] + public stp_prt_SpecialPartRow this[int index] { + get { + return ((stp_prt_SpecialPartRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public event stp_prt_SpecialPartRowChangeEventHandler stp_prt_SpecialPartRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public event stp_prt_SpecialPartRowChangeEventHandler stp_prt_SpecialPartRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public event stp_prt_SpecialPartRowChangeEventHandler stp_prt_SpecialPartRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public event stp_prt_SpecialPartRowChangeEventHandler stp_prt_SpecialPartRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public void Addstp_prt_SpecialPartRow(stp_prt_SpecialPartRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public stp_prt_SpecialPartRow Addstp_prt_SpecialPartRow(string DocID, string DocDtmx, string PartCode, string PartDescr, System.DateTime DueDate, int TotItem, string PathImageFull, string QRCodeBaseUrl) { + stp_prt_SpecialPartRow rowstp_prt_SpecialPartRow = ((stp_prt_SpecialPartRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + DocID, + DocDtmx, + PartCode, + PartDescr, + DueDate, + TotItem, + PathImageFull, + QRCodeBaseUrl}; + rowstp_prt_SpecialPartRow.ItemArray = columnValuesArray; + this.Rows.Add(rowstp_prt_SpecialPartRow); + return rowstp_prt_SpecialPartRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public stp_prt_SpecialPartRow FindByDocID(string DocID) { + return ((stp_prt_SpecialPartRow)(this.Rows.Find(new object[] { + DocID}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public override global::System.Data.DataTable Clone() { + stp_prt_SpecialPartDataTable cln = ((stp_prt_SpecialPartDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new stp_prt_SpecialPartDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + internal void InitVars() { + this.columnDocID = base.Columns["DocID"]; + this.columnDocDtmx = base.Columns["DocDtmx"]; + this.columnPartCode = base.Columns["PartCode"]; + this.columnPartDescr = base.Columns["PartDescr"]; + this.columnDueDate = base.Columns["DueDate"]; + this.columnTotItem = base.Columns["TotItem"]; + this.columnPathImageFull = base.Columns["PathImageFull"]; + this.columnQRCodeBaseUrl = base.Columns["QRCodeBaseUrl"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + private void InitClass() { + this.columnDocID = new global::System.Data.DataColumn("DocID", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDocID); + this.columnDocDtmx = new global::System.Data.DataColumn("DocDtmx", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDocDtmx); + this.columnPartCode = new global::System.Data.DataColumn("PartCode", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnPartCode); + this.columnPartDescr = new global::System.Data.DataColumn("PartDescr", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnPartDescr); + this.columnDueDate = new global::System.Data.DataColumn("DueDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDueDate); + this.columnTotItem = new global::System.Data.DataColumn("TotItem", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnTotItem); + this.columnPathImageFull = new global::System.Data.DataColumn("PathImageFull", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnPathImageFull); + this.columnQRCodeBaseUrl = new global::System.Data.DataColumn("QRCodeBaseUrl", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnQRCodeBaseUrl); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnDocID}, true)); + this.columnDocID.AllowDBNull = false; + this.columnDocID.ReadOnly = true; + this.columnDocID.Unique = true; + this.columnDocID.MaxLength = 5; + this.columnDocDtmx.ReadOnly = true; + this.columnDocDtmx.MaxLength = 1391; + this.columnPartCode.AllowDBNull = false; + this.columnPartCode.MaxLength = 250; + this.columnPartDescr.AllowDBNull = false; + this.columnPartDescr.MaxLength = 500; + this.columnDueDate.AllowDBNull = false; + this.columnTotItem.ReadOnly = true; + this.columnPathImageFull.ReadOnly = true; + this.columnPathImageFull.MaxLength = 4000; + this.columnQRCodeBaseUrl.ReadOnly = true; + this.columnQRCodeBaseUrl.MaxLength = 400; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public stp_prt_SpecialPartRow Newstp_prt_SpecialPartRow() { + return ((stp_prt_SpecialPartRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new stp_prt_SpecialPartRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(stp_prt_SpecialPartRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.stp_prt_SpecialPartRowChanged != null)) { + this.stp_prt_SpecialPartRowChanged(this, new stp_prt_SpecialPartRowChangeEvent(((stp_prt_SpecialPartRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.stp_prt_SpecialPartRowChanging != null)) { + this.stp_prt_SpecialPartRowChanging(this, new stp_prt_SpecialPartRowChangeEvent(((stp_prt_SpecialPartRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.stp_prt_SpecialPartRowDeleted != null)) { + this.stp_prt_SpecialPartRowDeleted(this, new stp_prt_SpecialPartRowChangeEvent(((stp_prt_SpecialPartRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.stp_prt_SpecialPartRowDeleting != null)) { + this.stp_prt_SpecialPartRowDeleting(this, new stp_prt_SpecialPartRowChangeEvent(((stp_prt_SpecialPartRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public void Removestp_prt_SpecialPartRow(stp_prt_SpecialPartRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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_Report ds = new DS_Report(); + 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 = "stp_prt_SpecialPartDataTable"; + 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; + } + } + /// ///Represents strongly named DataRow class. /// @@ -6710,6 +7115,177 @@ namespace AppData { } } + /// + ///Represents strongly named DataRow class. + /// + public partial class stp_prt_SpecialPartRow : global::System.Data.DataRow { + + private stp_prt_SpecialPartDataTable tablestp_prt_SpecialPart; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + internal stp_prt_SpecialPartRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tablestp_prt_SpecialPart = ((stp_prt_SpecialPartDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public string DocID { + get { + return ((string)(this[this.tablestp_prt_SpecialPart.DocIDColumn])); + } + set { + this[this.tablestp_prt_SpecialPart.DocIDColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public string DocDtmx { + get { + try { + return ((string)(this[this.tablestp_prt_SpecialPart.DocDtmxColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'DocDtmx\' in table \'stp_prt_SpecialPart\' is DBNull.", e); + } + } + set { + this[this.tablestp_prt_SpecialPart.DocDtmxColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public string PartCode { + get { + return ((string)(this[this.tablestp_prt_SpecialPart.PartCodeColumn])); + } + set { + this[this.tablestp_prt_SpecialPart.PartCodeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public string PartDescr { + get { + return ((string)(this[this.tablestp_prt_SpecialPart.PartDescrColumn])); + } + set { + this[this.tablestp_prt_SpecialPart.PartDescrColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public System.DateTime DueDate { + get { + return ((global::System.DateTime)(this[this.tablestp_prt_SpecialPart.DueDateColumn])); + } + set { + this[this.tablestp_prt_SpecialPart.DueDateColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public int TotItem { + get { + try { + return ((int)(this[this.tablestp_prt_SpecialPart.TotItemColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'TotItem\' in table \'stp_prt_SpecialPart\' is DBNull.", e); + } + } + set { + this[this.tablestp_prt_SpecialPart.TotItemColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public string PathImageFull { + get { + try { + return ((string)(this[this.tablestp_prt_SpecialPart.PathImageFullColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'PathImageFull\' in table \'stp_prt_SpecialPart\' is DBNull.", e); + } + } + set { + this[this.tablestp_prt_SpecialPart.PathImageFullColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public string QRCodeBaseUrl { + get { + try { + return ((string)(this[this.tablestp_prt_SpecialPart.QRCodeBaseUrlColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'QRCodeBaseUrl\' in table \'stp_prt_SpecialPart\' is DBNull.", e); + } + } + set { + this[this.tablestp_prt_SpecialPart.QRCodeBaseUrlColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public bool IsDocDtmxNull() { + return this.IsNull(this.tablestp_prt_SpecialPart.DocDtmxColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public void SetDocDtmxNull() { + this[this.tablestp_prt_SpecialPart.DocDtmxColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public bool IsTotItemNull() { + return this.IsNull(this.tablestp_prt_SpecialPart.TotItemColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public void SetTotItemNull() { + this[this.tablestp_prt_SpecialPart.TotItemColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public bool IsPathImageFullNull() { + return this.IsNull(this.tablestp_prt_SpecialPart.PathImageFullColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public void SetPathImageFullNull() { + this[this.tablestp_prt_SpecialPart.PathImageFullColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public bool IsQRCodeBaseUrlNull() { + return this.IsNull(this.tablestp_prt_SpecialPart.QRCodeBaseUrlColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public void SetQRCodeBaseUrlNull() { + this[this.tablestp_prt_SpecialPart.QRCodeBaseUrlColumn] = global::System.Convert.DBNull; + } + } + /// ///Row event argument class /// @@ -7083,6 +7659,40 @@ namespace AppData { } } } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public class stp_prt_SpecialPartRowChangeEvent : global::System.EventArgs { + + private stp_prt_SpecialPartRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public stp_prt_SpecialPartRowChangeEvent(stp_prt_SpecialPartRow 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", "17.0.0.0")] + public stp_prt_SpecialPartRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } } } namespace AppData.DS_ReportTableAdapters { @@ -10075,6 +10685,220 @@ SELECT codPostazione, stampante, note FROM ElencoPostazioni WHERE (codPostazione } } + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [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 stp_prt_SpecialPartTableAdapter : 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", "17.0.0.0")] + public stp_prt_SpecialPartTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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", "17.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", "17.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", "17.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", "17.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", "17.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 = "stp_prt_SpecialPart"; + tableMapping.ColumnMappings.Add("DocID", "DocID"); + tableMapping.ColumnMappings.Add("DocDtmx", "DocDtmx"); + tableMapping.ColumnMappings.Add("PartCode", "PartCode"); + tableMapping.ColumnMappings.Add("PartDescr", "PartDescr"); + tableMapping.ColumnMappings.Add("DueDate", "DueDate"); + tableMapping.ColumnMappings.Add("TotItem", "TotItem"); + tableMapping.ColumnMappings.Add("PathImageFull", "PathImageFull"); + tableMapping.ColumnMappings.Add("QRCodeBaseUrl", "QRCodeBaseUrl"); + this._adapter.TableMappings.Add(tableMapping); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::AppData.Properties.Settings.Default.Sauder_NKCConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "prt.stp_prt_SpecialPart"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[0].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[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CartID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PathImage", global::System.Data.SqlDbType.NVarChar, 4000, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QRCodeBaseUrl", global::System.Data.SqlDbType.NVarChar, 400, 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", "17.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_Report.stp_prt_SpecialPartDataTable dataTable, global::System.Nullable CartID, string PathImage, string QRCodeBaseUrl) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((CartID.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[1].Value = ((int)(CartID.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + if ((PathImage == null)) { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = ((string)(PathImage)); + } + if ((QRCodeBaseUrl == null)) { + this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[3].Value = ((string)(QRCodeBaseUrl)); + } + 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", "17.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_Report.stp_prt_SpecialPartDataTable GetData(global::System.Nullable CartID, string PathImage, string QRCodeBaseUrl) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((CartID.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[1].Value = ((int)(CartID.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + if ((PathImage == null)) { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = ((string)(PathImage)); + } + if ((QRCodeBaseUrl == null)) { + this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[3].Value = ((string)(QRCodeBaseUrl)); + } + DS_Report.stp_prt_SpecialPartDataTable dataTable = new DS_Report.stp_prt_SpecialPartDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + } + /// ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios /// diff --git a/AppData/DS_Report.xsd b/AppData/DS_Report.xsd index 582c58a..9ca7269 100644 --- a/AppData/DS_Report.xsd +++ b/AppData/DS_Report.xsd @@ -512,6 +512,34 @@ SELECT codPostazione, stampante, note FROM ElencoPostazioni WHERE (codPostazione + + + + + + prt.stp_prt_SpecialPart + + + + + + + + + + + + + + + + + + + + + + @@ -523,26 +551,26 @@ SELECT codPostazione, stampante, note FROM ElencoPostazioni WHERE (codPostazione - - + + - - - - - + + + + + - + @@ -552,56 +580,56 @@ SELECT codPostazione, stampante, note FROM ElencoPostazioni WHERE (codPostazione - + - - + + - + - + - - - - + + + + - + - + - + - + @@ -614,89 +642,89 @@ SELECT codPostazione, stampante, note FROM ElencoPostazioni WHERE (codPostazione - - - - + + + + - + - + - + - + - + - - + + - + - + - - + + - + - + @@ -709,87 +737,87 @@ SELECT codPostazione, stampante, note FROM ElencoPostazioni WHERE (codPostazione - - - - + + + + - + - + - - + + - - + + - + - - + + - - - - + + + + - - + + - + - + @@ -799,46 +827,46 @@ SELECT codPostazione, stampante, note FROM ElencoPostazioni WHERE (codPostazione - + - - + + - + - + - + - + - + @@ -848,77 +876,77 @@ SELECT codPostazione, stampante, note FROM ElencoPostazioni WHERE (codPostazione - + - + - + - + - + - + - + - + - + - - - - + + + + - - + + @@ -928,55 +956,55 @@ SELECT codPostazione, stampante, note FROM ElencoPostazioni WHERE (codPostazione - + - + - + - + - + - + - - - - + + + + - + @@ -989,28 +1017,28 @@ SELECT codPostazione, stampante, note FROM ElencoPostazioni WHERE (codPostazione - + - + - + - + @@ -1020,6 +1048,56 @@ SELECT codPostazione, stampante, note FROM ElencoPostazioni WHERE (codPostazione + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1046,5 +1124,9 @@ SELECT codPostazione, stampante, note FROM ElencoPostazioni WHERE (codPostazione + + + + \ No newline at end of file diff --git a/AppData/DataLayer.cs b/AppData/DataLayer.cs index b5a31ef..6e34961 100644 --- a/AppData/DataLayer.cs +++ b/AppData/DataLayer.cs @@ -54,6 +54,7 @@ namespace AppData public DS_ReportTableAdapters.stp_prt_IRK_SumTableAdapter taRepIRKSum; public DS_ReportTableAdapters.stp_prt_OtherPartTableAdapter taRepOtherPart; public DS_ReportTableAdapters.stp_prt_PartTableAdapter taRepPart; + public DS_ReportTableAdapters.stp_prt_SpecialPartTableAdapter taRepSpecPart; public DS_AppTableAdapters.SheetListTableAdapter taSHL; public DS_AppTableAdapters.SheetStatsTableAdapter taShStats; public DS_AppTableAdapters.SheetsPreviewTableAdapter taSP; @@ -210,6 +211,7 @@ namespace AppData taRepBunkList = new DS_ReportTableAdapters.stp_prt_BunkListTableAdapter(); taRepCart = new DS_ReportTableAdapters.stp_prt_CartTableAdapter(); taRepPart = new DS_ReportTableAdapters.stp_prt_PartTableAdapter(); + taRepSpecPart = new DS_ReportTableAdapters.stp_prt_SpecialPartTableAdapter(); taRepOtherPart = new DS_ReportTableAdapters.stp_prt_OtherPartTableAdapter(); taRepIRK = new DS_ReportTableAdapters.stp_prt_IRKTableAdapter(); taRepIRKSum = new DS_ReportTableAdapters.stp_prt_IRK_SumTableAdapter(); @@ -269,6 +271,7 @@ namespace AppData taRepBunkList.Connection.ConnectionString = connString; taRepCart.Connection.ConnectionString = connString; taRepPart.Connection.ConnectionString = connString; + taRepSpecPart.Connection.ConnectionString = connString; taRepOtherPart.Connection.ConnectionString = connString; taRepIRK.Connection.ConnectionString = connString; taRepIRKSum.Connection.ConnectionString = connString; @@ -446,6 +449,78 @@ namespace AppData return answ; } + /// + /// Restituisce tabella dati CKD dato CartID + /// + /// + /// + public DS_App.CartOnKitDataTable getCKD(int CartID) + { + DS_App.CartOnKitDataTable answ = new DS_App.CartOnKitDataTable(); + // controllo cache + bool trovato = false; + string redKey = memLayer.ML.redHash($"CKDByCartId:{CartID}"); + string rawData = ""; + rawData = memLayer.ML.getRSV(redKey); + if (!string.IsNullOrEmpty(rawData)) + { + try + { + answ = JsonConvert.DeserializeObject(rawData); + trovato = true; + } + catch + { } + } + if (!trovato) + { + // se non trovo leggo + answ = taCOK.getByKey(CartID); + rawData = JsonConvert.SerializeObject(answ); + // salvo in redis + memLayer.ML.setRSV(redKey, rawData, cacheDataTTL); + } + + //restituisco valore.. + return answ; + } + + + /// + /// Restituisce tabella dati SpecialPart (con cache lungo periodo) + /// + /// + public DS_App.SpecialPartsDataTable getSpecialPart() + { + DS_App.SpecialPartsDataTable answ = new DS_App.SpecialPartsDataTable(); + // controllo cache + bool trovato = false; + string redKey = memLayer.ML.redHash($"SpecialPartsTable"); + string rawData = ""; + rawData = memLayer.ML.getRSV(redKey); + if (!string.IsNullOrEmpty(rawData)) + { + try + { + answ = JsonConvert.DeserializeObject(rawData); + trovato = true; + } + catch + { } + } + if (!trovato) + { + // se non trovo leggo + answ = taSpecialPart.GetData(); + rawData = JsonConvert.SerializeObject(answ); + // salvo in redis x periodo LUNGO + memLayer.ML.setRSV(redKey, rawData, cacheDataTTL * 60); + } + + //restituisco valore.. + return answ; + } + /// /// Recupera printer dato codPostazione /// diff --git a/NKC_SDK/Enums.cs b/NKC_SDK/Enums.cs index 707824d..8153ce5 100644 --- a/NKC_SDK/Enums.cs +++ b/NKC_SDK/Enums.cs @@ -377,6 +377,12 @@ /// /// Dettaglio aggregato CART --> Item Requested Kitting /// - docCartIRKSum + docCartIRKSum, + + + /// + /// Dettaglio aggregato CART --> SpecialPart (come CANYON) + /// + docCartSpecialPart } } \ No newline at end of file diff --git a/NKC_WF/Reports/SpecialParts.rdlc b/NKC_WF/Reports/SpecialParts.rdlc new file mode 100644 index 0000000..d0fdffe --- /dev/null +++ b/NKC_WF/Reports/SpecialParts.rdlc @@ -0,0 +1,500 @@ + + + + + + + + + 7.37604in + + + + + 8.86829in + + + + + + + External + =Fields!PathImageFull.Value & First(Fields!ItemExtCode.Value, "stp_prt_Bin") & ".png" + FitProportional + 3.6in + 132mm + 187mm + + + + + + + + true + true + + + + + =First(Fields!BinIndexChar.Value) + + + + + + + BinIndexChar + 0.45297cm + 1.7086in + 2.27083in + + + Top + 2pt + 2pt + 2pt + 2pt + + + + + + true + true + + + + + =First(Fields!BinDtmxRich.Value) + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + =First(Fields!ItemExtCode.Value) + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + =First(Fields!TotItem.Value) + + + + + + + BinDtmxProc + 0.8187in + 0.25in + 2.97049in + 2 + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + =First(Fields!ItemDesc.Value) + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + 0.17833in + 2.40278in + 1.7086in + 2.97049in + 1 + + + + + + External + =Replace(Fields!QRCodeBaseUrl.Value.ToString(),"QRCODEVALUE",Fields!BinDtmxRich.Value.ToString()) + +' la stringa nel Campo è https://qrcode.steamware.net/HOME/QR_site/JSON?val={'baseUrl':'{0}','parameters':\['QRCODEVALUE'\]} +' dove la \ prima della [ serve perchè è una stringa quindi si trasforma poi in +' https://qrcode.steamware.net/HOME/QR_site/JSON?val={'baseUrl':'{0}','parameters':['QRCODEVALUE']} + + +'https://qrcode.steamware.net/HOME/QR_site/JSON?val={'baseUrl':'http://10.74.82.219/StockMan/STEA/Items/Details/{0}?StockItemID={0}','parameters':['VARIABILE']} + FitProportional + 0.41131cm + 5.44271in + 1.725in + 1.93333in + 2 + + + + + + true + 0.26993in + 0.00001cm + 2.08333in + 7.37604in + 1 + + + + Black + + 1pt + + + Black + + 1pt + + + Black + + 1pt + + + Black + + 1pt + + + + + true + true + + + + + =First(Fields!DueDate.Value) + + + + + + + DueDate + 2.49987in + 0.97917in + 7.3622in + 2 + + + 2pt + 2pt + 2pt + 2pt + + + + true + + + + + + + + + + + + + + + + + + + + + =Fields!ItemExtCode.Value + + + Output + true + + + + stp_prt_Bin + + End + + 0.1343in + 0.00001cm + 8.86829in + 7.37604in + + + + 9.5in +