Merge branch 'develop'

This commit is contained in:
Samuele E. Locatelli
2020-02-19 19:51:01 +01:00
11 changed files with 985 additions and 107 deletions
+737 -34
View File
@@ -74,6 +74,8 @@ namespace AppData {
private PackListDataTable tablePackList;
private OtherItemDataTable tableOtherItem;
private global::System.Data.DataRelation relationFK_BatchReqList_OrderList;
private global::System.Data.DataRelation relationFK_ItemList_Materials1;
@@ -201,6 +203,9 @@ namespace AppData {
if ((ds.Tables["PackList"] != null)) {
base.Tables.Add(new PackListDataTable(ds.Tables["PackList"]));
}
if ((ds.Tables["OtherItem"] != null)) {
base.Tables.Add(new OtherItemDataTable(ds.Tables["OtherItem"]));
}
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
@@ -469,6 +474,16 @@ namespace AppData {
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
public OtherItemDataTable OtherItem {
get {
return this.tableOtherItem;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.BrowsableAttribute(true)]
@@ -611,6 +626,9 @@ namespace AppData {
if ((ds.Tables["PackList"] != null)) {
base.Tables.Add(new PackListDataTable(ds.Tables["PackList"]));
}
if ((ds.Tables["OtherItem"] != null)) {
base.Tables.Add(new OtherItemDataTable(ds.Tables["OtherItem"]));
}
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
@@ -794,6 +812,12 @@ namespace AppData {
this.tablePackList.InitVars();
}
}
this.tableOtherItem = ((OtherItemDataTable)(base.Tables["OtherItem"]));
if ((initTable == true)) {
if ((this.tableOtherItem != null)) {
this.tableOtherItem.InitVars();
}
}
this.relationFK_BatchReqList_OrderList = this.Relations["FK_BatchReqList_OrderList"];
this.relationFK_ItemList_Materials1 = this.Relations["FK_ItemList_Materials1"];
this.relationFK_OffOrd2Item_OfflineOrderList = this.Relations["FK_OffOrd2Item_OfflineOrderList"];
@@ -866,6 +890,8 @@ namespace AppData {
base.Tables.Add(this.tableCartOnKit);
this.tablePackList = new PackListDataTable();
base.Tables.Add(this.tablePackList);
this.tableOtherItem = new OtherItemDataTable();
base.Tables.Add(this.tableOtherItem);
this.relationFK_BatchReqList_OrderList = new global::System.Data.DataRelation("FK_BatchReqList_OrderList", new global::System.Data.DataColumn[] {
this.tableOrderList.OrdIDColumn}, new global::System.Data.DataColumn[] {
this.tableBatchReqList.OrdIDColumn}, false);
@@ -1066,6 +1092,12 @@ namespace AppData {
return false;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private bool ShouldSerializeOtherItem() {
return false;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
@@ -1196,6 +1228,9 @@ namespace AppData {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public delegate void PackListRowChangeEventHandler(object sender, PackListRowChangeEvent e);
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public delegate void OtherItemRowChangeEventHandler(object sender, OtherItemRowChangeEvent e);
/// <summary>
///Represents the strongly named DataTable class.
///</summary>
@@ -10513,6 +10548,347 @@ namespace AppData {
}
}
/// <summary>
///Represents the strongly named DataTable class.
///</summary>
[global::System.Serializable()]
[global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
public partial class OtherItemDataTable : global::System.Data.TypedTableBase<OtherItemRow> {
private global::System.Data.DataColumn columnOtherItemID;
private global::System.Data.DataColumn columnOtherItemExtCode;
private global::System.Data.DataColumn columnOtherItemDesc;
private global::System.Data.DataColumn columnOtherItemDtmx;
private global::System.Data.DataColumn columnOtherItemType;
private global::System.Data.DataColumn columnOtherItemNote;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public OtherItemDataTable() {
this.TableName = "OtherItem";
this.BeginInit();
this.InitClass();
this.EndInit();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
internal OtherItemDataTable(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", "16.0.0.0")]
protected OtherItemDataTable(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", "16.0.0.0")]
public global::System.Data.DataColumn OtherItemIDColumn {
get {
return this.columnOtherItemID;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn OtherItemExtCodeColumn {
get {
return this.columnOtherItemExtCode;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn OtherItemDescColumn {
get {
return this.columnOtherItemDesc;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn OtherItemDtmxColumn {
get {
return this.columnOtherItemDtmx;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn OtherItemTypeColumn {
get {
return this.columnOtherItemType;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn OtherItemNoteColumn {
get {
return this.columnOtherItemNote;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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", "16.0.0.0")]
public OtherItemRow this[int index] {
get {
return ((OtherItemRow)(this.Rows[index]));
}
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public event OtherItemRowChangeEventHandler OtherItemRowChanging;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public event OtherItemRowChangeEventHandler OtherItemRowChanged;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public event OtherItemRowChangeEventHandler OtherItemRowDeleting;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public event OtherItemRowChangeEventHandler OtherItemRowDeleted;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void AddOtherItemRow(OtherItemRow row) {
this.Rows.Add(row);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public OtherItemRow AddOtherItemRow(string OtherItemExtCode, string OtherItemDesc, string OtherItemDtmx, string OtherItemType, string OtherItemNote) {
OtherItemRow rowOtherItemRow = ((OtherItemRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
null,
OtherItemExtCode,
OtherItemDesc,
OtherItemDtmx,
OtherItemType,
OtherItemNote};
rowOtherItemRow.ItemArray = columnValuesArray;
this.Rows.Add(rowOtherItemRow);
return rowOtherItemRow;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public OtherItemRow FindByOtherItemID(int OtherItemID) {
return ((OtherItemRow)(this.Rows.Find(new object[] {
OtherItemID})));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public override global::System.Data.DataTable Clone() {
OtherItemDataTable cln = ((OtherItemDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override global::System.Data.DataTable CreateInstance() {
return new OtherItemDataTable();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
internal void InitVars() {
this.columnOtherItemID = base.Columns["OtherItemID"];
this.columnOtherItemExtCode = base.Columns["OtherItemExtCode"];
this.columnOtherItemDesc = base.Columns["OtherItemDesc"];
this.columnOtherItemDtmx = base.Columns["OtherItemDtmx"];
this.columnOtherItemType = base.Columns["OtherItemType"];
this.columnOtherItemNote = base.Columns["OtherItemNote"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private void InitClass() {
this.columnOtherItemID = new global::System.Data.DataColumn("OtherItemID", typeof(int), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnOtherItemID);
this.columnOtherItemExtCode = new global::System.Data.DataColumn("OtherItemExtCode", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnOtherItemExtCode);
this.columnOtherItemDesc = new global::System.Data.DataColumn("OtherItemDesc", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnOtherItemDesc);
this.columnOtherItemDtmx = new global::System.Data.DataColumn("OtherItemDtmx", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnOtherItemDtmx);
this.columnOtherItemType = new global::System.Data.DataColumn("OtherItemType", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnOtherItemType);
this.columnOtherItemNote = new global::System.Data.DataColumn("OtherItemNote", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnOtherItemNote);
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
this.columnOtherItemID}, true));
this.columnOtherItemID.AutoIncrement = true;
this.columnOtherItemID.AutoIncrementSeed = -1;
this.columnOtherItemID.AutoIncrementStep = -1;
this.columnOtherItemID.AllowDBNull = false;
this.columnOtherItemID.ReadOnly = true;
this.columnOtherItemID.Unique = true;
this.columnOtherItemExtCode.AllowDBNull = false;
this.columnOtherItemExtCode.MaxLength = 250;
this.columnOtherItemDesc.AllowDBNull = false;
this.columnOtherItemDesc.MaxLength = 500;
this.columnOtherItemDtmx.MaxLength = 50;
this.columnOtherItemType.AllowDBNull = false;
this.columnOtherItemType.MaxLength = 50;
this.columnOtherItemNote.AllowDBNull = false;
this.columnOtherItemNote.MaxLength = 500;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public OtherItemRow NewOtherItemRow() {
return ((OtherItemRow)(this.NewRow()));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
return new OtherItemRow(builder);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override global::System.Type GetRowType() {
return typeof(OtherItemRow);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.OtherItemRowChanged != null)) {
this.OtherItemRowChanged(this, new OtherItemRowChangeEvent(((OtherItemRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.OtherItemRowChanging != null)) {
this.OtherItemRowChanging(this, new OtherItemRowChangeEvent(((OtherItemRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.OtherItemRowDeleted != null)) {
this.OtherItemRowDeleted(this, new OtherItemRowChangeEvent(((OtherItemRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.OtherItemRowDeleting != null)) {
this.OtherItemRowDeleting(this, new OtherItemRowChangeEvent(((OtherItemRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void RemoveOtherItemRow(OtherItemRow row) {
this.Rows.Remove(row);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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_App ds = new DS_App();
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 = "OtherItemDataTable";
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>
@@ -14648,6 +15024,104 @@ namespace AppData {
}
}
/// <summary>
///Represents strongly named DataRow class.
///</summary>
public partial class OtherItemRow : global::System.Data.DataRow {
private OtherItemDataTable tableOtherItem;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
internal OtherItemRow(global::System.Data.DataRowBuilder rb) :
base(rb) {
this.tableOtherItem = ((OtherItemDataTable)(this.Table));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public int OtherItemID {
get {
return ((int)(this[this.tableOtherItem.OtherItemIDColumn]));
}
set {
this[this.tableOtherItem.OtherItemIDColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string OtherItemExtCode {
get {
return ((string)(this[this.tableOtherItem.OtherItemExtCodeColumn]));
}
set {
this[this.tableOtherItem.OtherItemExtCodeColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string OtherItemDesc {
get {
return ((string)(this[this.tableOtherItem.OtherItemDescColumn]));
}
set {
this[this.tableOtherItem.OtherItemDescColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string OtherItemDtmx {
get {
try {
return ((string)(this[this.tableOtherItem.OtherItemDtmxColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("Il valore della colonna \'OtherItemDtmx\' nella tabella \'OtherItem\' è DBNull.", e);
}
}
set {
this[this.tableOtherItem.OtherItemDtmxColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string OtherItemType {
get {
return ((string)(this[this.tableOtherItem.OtherItemTypeColumn]));
}
set {
this[this.tableOtherItem.OtherItemTypeColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string OtherItemNote {
get {
return ((string)(this[this.tableOtherItem.OtherItemNoteColumn]));
}
set {
this[this.tableOtherItem.OtherItemNoteColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsOtherItemDtmxNull() {
return this.IsNull(this.tableOtherItem.OtherItemDtmxColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetOtherItemDtmxNull() {
this[this.tableOtherItem.OtherItemDtmxColumn] = global::System.Convert.DBNull;
}
}
/// <summary>
///Row event argument class
///</summary>
@@ -15497,6 +15971,40 @@ namespace AppData {
}
}
}
/// <summary>
///Row event argument class
///</summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public class OtherItemRowChangeEvent : global::System.EventArgs {
private OtherItemRow eventRow;
private global::System.Data.DataRowAction eventAction;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public OtherItemRowChangeEvent(OtherItemRow 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", "16.0.0.0")]
public OtherItemRow Row {
get {
return this.eventRow;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataRowAction Action {
get {
return this.eventAction;
}
}
}
}
}
namespace AppData.DS_AppTableAdapters {
@@ -24963,6 +25471,201 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W
}
}
/// <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 OtherItemTableAdapter : 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", "16.0.0.0")]
public OtherItemTableAdapter() {
this.ClearBeforeFill = true;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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", "16.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", "16.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", "16.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", "16.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", "16.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 = "OtherItem";
tableMapping.ColumnMappings.Add("OtherItemID", "OtherItemID");
tableMapping.ColumnMappings.Add("OtherItemExtCode", "OtherItemExtCode");
tableMapping.ColumnMappings.Add("OtherItemDesc", "OtherItemDesc");
tableMapping.ColumnMappings.Add("OtherItemDtmx", "OtherItemDtmx");
tableMapping.ColumnMappings.Add("OtherItemType", "OtherItemType");
tableMapping.ColumnMappings.Add("OtherItemNote", "OtherItemNote");
this._adapter.TableMappings.Add(tableMapping);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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", "16.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 * from OtherItemList";
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_OtherItem_getByKey";
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("@OtherItemID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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_App.OtherItemDataTable 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", "16.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
public virtual DS_App.OtherItemDataTable GetData() {
this.Adapter.SelectCommand = this.CommandCollection[0];
DS_App.OtherItemDataTable dataTable = new DS_App.OtherItemDataTable();
this.Adapter.Fill(dataTable);
return dataTable;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
public virtual DS_App.OtherItemDataTable getByKey(global::System.Nullable<int> OtherItemID) {
this.Adapter.SelectCommand = this.CommandCollection[1];
if ((OtherItemID.HasValue == true)) {
this.Adapter.SelectCommand.Parameters[1].Value = ((int)(OtherItemID.Value));
}
else {
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
}
DS_App.OtherItemDataTable dataTable = new DS_App.OtherItemDataTable();
this.Adapter.Fill(dataTable);
return dataTable;
}
}
/// <summary>
///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
///</summary>
@@ -25436,15 +26139,6 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W
allChangedRows.AddRange(updatedRows);
}
}
if ((this._order2FinalKitTableAdapter != null)) {
global::System.Data.DataRow[] updatedRows = dataSet.Order2FinalKit.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
if (((updatedRows != null)
&& (0 < updatedRows.Length))) {
result = (result + this._order2FinalKitTableAdapter.Update(updatedRows));
allChangedRows.AddRange(updatedRows);
}
}
if ((this._nestingTableAdapter != null)) {
global::System.Data.DataRow[] updatedRows = dataSet.Nesting.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
@@ -25454,6 +26148,15 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W
allChangedRows.AddRange(updatedRows);
}
}
if ((this._binListTableAdapter != null)) {
global::System.Data.DataRow[] updatedRows = dataSet.BinList.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
if (((updatedRows != null)
&& (0 < updatedRows.Length))) {
result = (result + this._binListTableAdapter.Update(updatedRows));
allChangedRows.AddRange(updatedRows);
}
}
if ((this._offOrd2ItemTableAdapter != null)) {
global::System.Data.DataRow[] updatedRows = dataSet.OffOrd2Item.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
@@ -25472,12 +26175,12 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W
allChangedRows.AddRange(updatedRows);
}
}
if ((this._binListTableAdapter != null)) {
global::System.Data.DataRow[] updatedRows = dataSet.BinList.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
if ((this._order2FinalKitTableAdapter != null)) {
global::System.Data.DataRow[] updatedRows = dataSet.Order2FinalKit.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
if (((updatedRows != null)
&& (0 < updatedRows.Length))) {
result = (result + this._binListTableAdapter.Update(updatedRows));
result = (result + this._order2FinalKitTableAdapter.Update(updatedRows));
allChangedRows.AddRange(updatedRows);
}
}
@@ -25563,14 +26266,6 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W
allAddedRows.AddRange(addedRows);
}
}
if ((this._order2FinalKitTableAdapter != null)) {
global::System.Data.DataRow[] addedRows = dataSet.Order2FinalKit.Select(null, null, global::System.Data.DataViewRowState.Added);
if (((addedRows != null)
&& (0 < addedRows.Length))) {
result = (result + this._order2FinalKitTableAdapter.Update(addedRows));
allAddedRows.AddRange(addedRows);
}
}
if ((this._nestingTableAdapter != null)) {
global::System.Data.DataRow[] addedRows = dataSet.Nesting.Select(null, null, global::System.Data.DataViewRowState.Added);
if (((addedRows != null)
@@ -25579,6 +26274,14 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W
allAddedRows.AddRange(addedRows);
}
}
if ((this._binListTableAdapter != null)) {
global::System.Data.DataRow[] addedRows = dataSet.BinList.Select(null, null, global::System.Data.DataViewRowState.Added);
if (((addedRows != null)
&& (0 < addedRows.Length))) {
result = (result + this._binListTableAdapter.Update(addedRows));
allAddedRows.AddRange(addedRows);
}
}
if ((this._offOrd2ItemTableAdapter != null)) {
global::System.Data.DataRow[] addedRows = dataSet.OffOrd2Item.Select(null, null, global::System.Data.DataViewRowState.Added);
if (((addedRows != null)
@@ -25595,11 +26298,11 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W
allAddedRows.AddRange(addedRows);
}
}
if ((this._binListTableAdapter != null)) {
global::System.Data.DataRow[] addedRows = dataSet.BinList.Select(null, null, global::System.Data.DataViewRowState.Added);
if ((this._order2FinalKitTableAdapter != null)) {
global::System.Data.DataRow[] addedRows = dataSet.Order2FinalKit.Select(null, null, global::System.Data.DataViewRowState.Added);
if (((addedRows != null)
&& (0 < addedRows.Length))) {
result = (result + this._binListTableAdapter.Update(addedRows));
result = (result + this._order2FinalKitTableAdapter.Update(addedRows));
allAddedRows.AddRange(addedRows);
}
}
@@ -25613,11 +26316,11 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private int UpdateDeletedRows(DS_App dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
int result = 0;
if ((this._binListTableAdapter != null)) {
global::System.Data.DataRow[] deletedRows = dataSet.BinList.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if ((this._order2FinalKitTableAdapter != null)) {
global::System.Data.DataRow[] deletedRows = dataSet.Order2FinalKit.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
&& (0 < deletedRows.Length))) {
result = (result + this._binListTableAdapter.Update(deletedRows));
result = (result + this._order2FinalKitTableAdapter.Update(deletedRows));
allChangedRows.AddRange(deletedRows);
}
}
@@ -25637,6 +26340,14 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W
allChangedRows.AddRange(deletedRows);
}
}
if ((this._binListTableAdapter != null)) {
global::System.Data.DataRow[] deletedRows = dataSet.BinList.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
&& (0 < deletedRows.Length))) {
result = (result + this._binListTableAdapter.Update(deletedRows));
allChangedRows.AddRange(deletedRows);
}
}
if ((this._nestingTableAdapter != null)) {
global::System.Data.DataRow[] deletedRows = dataSet.Nesting.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
@@ -25645,14 +26356,6 @@ SELECT RemnantID, BatchID, MatID, SheetID, DimX, DimY, Available FROM Remnants W
allChangedRows.AddRange(deletedRows);
}
}
if ((this._order2FinalKitTableAdapter != null)) {
global::System.Data.DataRow[] deletedRows = dataSet.Order2FinalKit.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
&& (0 < deletedRows.Length))) {
result = (result + this._order2FinalKitTableAdapter.Update(deletedRows));
allChangedRows.AddRange(deletedRows);
}
}
if ((this._countersTableAdapter != null)) {
global::System.Data.DataRow[] deletedRows = dataSet.Counters.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
+79
View File
@@ -2264,6 +2264,39 @@ FROM v_CartKitDetail</CommandText>
</DbSource>
</Sources>
</TableAdapter>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="OtherItemTableAdapter" GeneratorDataComponentClassName="OtherItemTableAdapter" Name="OtherItem" UserDataComponentName="OtherItemTableAdapter">
<MainSource>
<DbSource ConnectionRef="Sauder_NKCConnectionString (Settings)" DbObjectName="Sauder_NKC.dbo.OtherItemList" DbObjectType="Table" 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="false" UserGetMethodName="GetData" UserSourceName="Fill">
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="true">
<CommandText>select * from OtherItemList</CommandText>
<Parameters />
</DbCommand>
</SelectCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="OtherItemID" DataSetColumn="OtherItemID" />
<Mapping SourceColumn="OtherItemExtCode" DataSetColumn="OtherItemExtCode" />
<Mapping SourceColumn="OtherItemDesc" DataSetColumn="OtherItemDesc" />
<Mapping SourceColumn="OtherItemDtmx" DataSetColumn="OtherItemDtmx" />
<Mapping SourceColumn="OtherItemType" DataSetColumn="OtherItemType" />
<Mapping SourceColumn="OtherItemNote" DataSetColumn="OtherItemNote" />
</Mappings>
<Sources>
<DbSource ConnectionRef="Sauder_NKCConnectionString (Settings)" DbObjectName="Sauder_NKC.dbo.stp_OtherItem_getByKey" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByKey" GetMethodModifier="Public" GetMethodName="getByKey" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByKey" UserSourceName="getByKey">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_OtherItem_getByKey</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="int" DbType="Int32" Direction="Input" ParameterName="@OtherItemID" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
</Sources>
</TableAdapter>
</Tables>
<Sources />
</DataSource>
@@ -2957,6 +2990,48 @@ FROM v_CartKitDetail</CommandText>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="OtherItem" msprop:Generator_TableClassName="OtherItemDataTable" msprop:Generator_TableVarName="tableOtherItem" msprop:Generator_TablePropName="OtherItem" msprop:Generator_RowDeletingName="OtherItemRowDeleting" msprop:Generator_RowChangingName="OtherItemRowChanging" msprop:Generator_RowEvHandlerName="OtherItemRowChangeEventHandler" msprop:Generator_RowDeletedName="OtherItemRowDeleted" msprop:Generator_UserTableName="OtherItem" msprop:Generator_RowChangedName="OtherItemRowChanged" msprop:Generator_RowEvArgName="OtherItemRowChangeEvent" msprop:Generator_RowClassName="OtherItemRow">
<xs:complexType>
<xs:sequence>
<xs:element name="OtherItemID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnOtherItemID" msprop:Generator_ColumnPropNameInRow="OtherItemID" msprop:Generator_ColumnPropNameInTable="OtherItemIDColumn" msprop:Generator_UserColumnName="OtherItemID" type="xs:int" />
<xs:element name="OtherItemExtCode" msprop:Generator_ColumnVarNameInTable="columnOtherItemExtCode" msprop:Generator_ColumnPropNameInRow="OtherItemExtCode" msprop:Generator_ColumnPropNameInTable="OtherItemExtCodeColumn" msprop:Generator_UserColumnName="OtherItemExtCode">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="250" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="OtherItemDesc" msprop:Generator_ColumnVarNameInTable="columnOtherItemDesc" msprop:Generator_ColumnPropNameInRow="OtherItemDesc" msprop:Generator_ColumnPropNameInTable="OtherItemDescColumn" msprop:Generator_UserColumnName="OtherItemDesc">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="500" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="OtherItemDtmx" msprop:Generator_ColumnVarNameInTable="columnOtherItemDtmx" msprop:Generator_ColumnPropNameInRow="OtherItemDtmx" msprop:Generator_ColumnPropNameInTable="OtherItemDtmxColumn" msprop:Generator_UserColumnName="OtherItemDtmx" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="OtherItemType" msprop:Generator_ColumnVarNameInTable="columnOtherItemType" msprop:Generator_ColumnPropNameInRow="OtherItemType" msprop:Generator_ColumnPropNameInTable="OtherItemTypeColumn" msprop:Generator_UserColumnName="OtherItemType">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="OtherItemNote" msprop:Generator_ColumnVarNameInTable="columnOtherItemNote" msprop:Generator_ColumnPropNameInRow="OtherItemNote" msprop:Generator_ColumnPropNameInTable="OtherItemNoteColumn" msprop:Generator_UserColumnName="OtherItemNote">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="500" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
<xs:unique name="Constraint1" msdata:PrimaryKey="true">
@@ -3054,6 +3129,10 @@ FROM v_CartKitDetail</CommandText>
<xs:selector xpath=".//mstns:PackList" />
<xs:field xpath="mstns:PackListID" />
</xs:unique>
<xs:unique name="OtherItem_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:OtherItem" />
<xs:field xpath="mstns:OtherItemID" />
</xs:unique>
</xs:element>
<xs:annotation>
<xs:appinfo>
+39 -38
View File
@@ -4,36 +4,37 @@
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
</autogenerated>-->
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="290" ViewPortY="326" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="326" ViewPortY="440" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<Shapes>
<Shape ID="DesignTable:BatchList" ZOrder="8" X="251" Y="375" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:StackList" ZOrder="20" X="584" Y="890" Height="343" Width="268" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="216" />
<Shape ID="DesignTable:SheetList" ZOrder="4" X="240" Y="793" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:OrderList" ZOrder="28" X="352" Y="29" Height="324" Width="198" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:BatchReqList" ZOrder="37" X="101" Y="100" Height="115" Width="220" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:ItemList" ZOrder="18" X="861" Y="19" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:Materials" ZOrder="35" X="1197" Y="37" Height="248" Width="198" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="197" />
<Shape ID="DesignTable:Bins" ZOrder="3" X="1265" Y="529" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:Carts" ZOrder="10" X="600" Y="340" Height="286" Width="187" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="159" />
<Shape ID="DesignTable:OfflineOrderList" ZOrder="5" X="939" Y="907" Height="267" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="140" />
<Shape ID="DesignTable:OffOrd2Item" ZOrder="33" X="1031" Y="660" Height="134" Width="219" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:KitList" ZOrder="31" X="604" Y="84" Height="229" Width="184" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
<Shape ID="DesignTable:Nesting" ZOrder="22" X="871" Y="458" Height="153" Width="228" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
<Shape ID="DesignTable:ImportLog" ZOrder="21" X="576" Y="628" Height="248" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="159" />
<Shape ID="DesignTable:BinList" ZOrder="25" X="1264" Y="323" Height="134" Width="216" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:FinalKit" ZOrder="14" X="23" Y="457" Height="172" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
<Shape ID="DesignTable:Order2FinalKit" ZOrder="17" X="13" Y="240" Height="134" Width="234" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:Counters" ZOrder="13" X="16" Y="706" Height="172" Width="196" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
<Shape ID="DesignTable:ErrorsLog" ZOrder="12" X="-6" Y="928" Height="248" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="140" />
<Shape ID="DesignTable:ItemValidation" ZOrder="7" X="83" Y="1185" Height="172" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
<Shape ID="DesignTable:PartValidPareto" ZOrder="11" X="365" Y="1187" Height="153" Width="236" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
<Shape ID="DesignTable:UnloadStats" ZOrder="9" X="639" Y="1236" Height="172" Width="215" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
<Shape ID="DesignTable:Remnants" ZOrder="6" X="912" Y="1188" Height="248" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="159" />
<Shape ID="DesignTable:CartOnKit" ZOrder="2" X="1259" Y="925" Height="305" Width="202" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:PackList" ZOrder="1" X="1264" Y="1256" Height="267" Width="297" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="178" />
<Shape ID="DesignTable:BatchList" ZOrder="9" X="251" Y="375" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:StackList" ZOrder="21" X="584" Y="890" Height="343" Width="268" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="216" />
<Shape ID="DesignTable:SheetList" ZOrder="5" X="240" Y="793" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:OrderList" ZOrder="29" X="352" Y="29" Height="324" Width="198" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:BatchReqList" ZOrder="38" X="101" Y="100" Height="115" Width="220" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:ItemList" ZOrder="19" X="861" Y="19" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:Materials" ZOrder="36" X="1197" Y="37" Height="248" Width="198" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="197" />
<Shape ID="DesignTable:Bins" ZOrder="4" X="1265" Y="529" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:Carts" ZOrder="11" X="600" Y="340" Height="286" Width="187" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="159" />
<Shape ID="DesignTable:OfflineOrderList" ZOrder="6" X="939" Y="907" Height="267" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="140" />
<Shape ID="DesignTable:OffOrd2Item" ZOrder="34" X="1031" Y="660" Height="134" Width="219" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:KitList" ZOrder="32" X="604" Y="84" Height="229" Width="184" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
<Shape ID="DesignTable:Nesting" ZOrder="23" X="871" Y="458" Height="153" Width="228" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
<Shape ID="DesignTable:ImportLog" ZOrder="22" X="576" Y="628" Height="248" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="159" />
<Shape ID="DesignTable:BinList" ZOrder="26" X="1264" Y="323" Height="134" Width="216" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:FinalKit" ZOrder="15" X="23" Y="457" Height="172" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
<Shape ID="DesignTable:Order2FinalKit" ZOrder="18" X="13" Y="240" Height="134" Width="234" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:Counters" ZOrder="14" X="16" Y="706" Height="172" Width="196" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
<Shape ID="DesignTable:ErrorsLog" ZOrder="13" X="-6" Y="928" Height="248" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="140" />
<Shape ID="DesignTable:ItemValidation" ZOrder="8" X="83" Y="1185" Height="172" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
<Shape ID="DesignTable:PartValidPareto" ZOrder="12" X="365" Y="1187" Height="153" Width="236" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
<Shape ID="DesignTable:UnloadStats" ZOrder="10" X="639" Y="1236" Height="172" Width="215" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
<Shape ID="DesignTable:Remnants" ZOrder="7" X="912" Y="1188" Height="248" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="159" />
<Shape ID="DesignTable:CartOnKit" ZOrder="3" X="1259" Y="925" Height="305" Width="202" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:PackList" ZOrder="2" X="1264" Y="1256" Height="267" Width="280" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="178" />
<Shape ID="DesignTable:OtherItem" ZOrder="1" X="369" Y="1401" Height="210" Width="204" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="140" />
</Shapes>
<Connectors>
<Connector ID="DesignRelation:FK_BatchReqList_OrderList" ZOrder="36" LineWidth="11">
<Connector ID="DesignRelation:FK_BatchReqList_OrderList" ZOrder="37" LineWidth="11">
<RoutePoints>
<Point>
<X>352</X>
@@ -45,7 +46,7 @@
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_ItemList_Materials1" ZOrder="34" LineWidth="11">
<Connector ID="DesignRelation:FK_ItemList_Materials1" ZOrder="35" LineWidth="11">
<RoutePoints>
<Point>
<X>1197</X>
@@ -57,7 +58,7 @@
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_OffOrd2Item_OfflineOrderList" ZOrder="32" LineWidth="11">
<Connector ID="DesignRelation:FK_OffOrd2Item_OfflineOrderList" ZOrder="33" LineWidth="11">
<RoutePoints>
<Point>
<X>1054</X>
@@ -69,7 +70,7 @@
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_ItemList_KitList" ZOrder="30" LineWidth="11">
<Connector ID="DesignRelation:FK_ItemList_KitList" ZOrder="31" LineWidth="11">
<RoutePoints>
<Point>
<X>788</X>
@@ -81,7 +82,7 @@
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_Nesting_ItemList" ZOrder="29" LineWidth="11">
<Connector ID="DesignRelation:FK_Nesting_ItemList" ZOrder="30" LineWidth="11">
<RoutePoints>
<Point>
<X>986</X>
@@ -93,7 +94,7 @@
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_KitList_Carts" ZOrder="26" LineWidth="11">
<Connector ID="DesignRelation:FK_KitList_Carts" ZOrder="27" LineWidth="11">
<RoutePoints>
<Point>
<X>699</X>
@@ -105,7 +106,7 @@
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_KitList_OrderList" ZOrder="27" LineWidth="11">
<Connector ID="DesignRelation:FK_KitList_OrderList" ZOrder="28" LineWidth="11">
<RoutePoints>
<Point>
<X>550</X>
@@ -117,7 +118,7 @@
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_OffOrd2Item_ItemList" ZOrder="19" LineWidth="11">
<Connector ID="DesignRelation:FK_OffOrd2Item_ItemList" ZOrder="20" LineWidth="11">
<RoutePoints>
<Point>
<X>1129</X>
@@ -129,7 +130,7 @@
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_BinList_Bins" ZOrder="24" LineWidth="11">
<Connector ID="DesignRelation:FK_BinList_Bins" ZOrder="25" LineWidth="11">
<RoutePoints>
<Point>
<X>1380</X>
@@ -141,7 +142,7 @@
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_BinList_ItemList" ZOrder="23" LineWidth="11">
<Connector ID="DesignRelation:FK_BinList_ItemList" ZOrder="24" LineWidth="11">
<RoutePoints>
<Point>
<X>1161</X>
@@ -153,7 +154,7 @@
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_Order2FinalKit_FinalKit" ZOrder="16" LineWidth="11">
<Connector ID="DesignRelation:FK_Order2FinalKit_FinalKit" ZOrder="17" LineWidth="11">
<RoutePoints>
<Point>
<X>131</X>
@@ -165,7 +166,7 @@
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_Order2FinalKit_OrderList" ZOrder="15" LineWidth="11">
<Connector ID="DesignRelation:FK_Order2FinalKit_OrderList" ZOrder="16" LineWidth="11">
<RoutePoints>
<Point>
<X>352</X>
+12
View File
@@ -23,6 +23,7 @@ namespace AppData
public DS_AppTableAdapters.OfflineOrderListTableAdapter taOffOL;
public DS_AppTableAdapters.OffOrd2ItemTableAdapter taOO2I;
public DS_AppTableAdapters.OrderListTableAdapter taOL;
public DS_AppTableAdapters.OtherItemTableAdapter taOtItem;
public DS_AppTableAdapters.PackListTableAdapter taPLD;
public DS_AppTableAdapters.PartValidParetoTableAdapter taPVP;
public DS_AppTableAdapters.RemnantsTableAdapter taRem;
@@ -58,6 +59,7 @@ namespace AppData
taOffOL.Connection.ConnectionString = connString;
taOO2I.Connection.ConnectionString = connString;
taOL.Connection.ConnectionString = connString;
taOtItem.Connection.ConnectionString = connString;
taPLD.Connection.ConnectionString = connString;
taPVP.Connection.ConnectionString = connString;
taRem.Connection.ConnectionString = connString;
@@ -85,6 +87,7 @@ namespace AppData
taOffOL = new DS_AppTableAdapters.OfflineOrderListTableAdapter();
taOO2I = new DS_AppTableAdapters.OffOrd2ItemTableAdapter();
taOL = new DS_AppTableAdapters.OrderListTableAdapter();
taOtItem = new DS_AppTableAdapters.OtherItemTableAdapter();
taPLD = new DS_AppTableAdapters.PackListTableAdapter();
taPVP = new DS_AppTableAdapters.PartValidParetoTableAdapter();
taRem = new DS_AppTableAdapters.RemnantsTableAdapter();
@@ -149,6 +152,15 @@ namespace AppData
answ.codeInt = codeInt;
answ.description = $"Item Generic: {answ.code}";
}
else if (bcValue.StartsWith("IX"))
{
answ.codeType = codeType.OtherItem;
answ.code = bcValue.Replace("IX", "");
int codeInt = 0;
int.TryParse(answ.code, NumberStyles.HexNumber, CultureInfo.InvariantCulture, out codeInt);
answ.codeInt = codeInt;
answ.description = $"Other Item: {answ.code}";
}
else if (bcValue.StartsWith("IT"))
{
answ.codeType = codeType.Item;
+1
View File
@@ -222,6 +222,7 @@
UNK = 0,
Item,
ItemGeneric,
OtherItem,
Material,
Sheet,
Stack,
+2 -2
View File
@@ -5,7 +5,7 @@
<div class="card text-center" style="width: 100%;">
<div class="card text-center border-primary" style="width: 100%;">
<h3 class="card-header bg-primary text-uppercase text-light"><%: traduci("BinList") %></h3>
<div class="card-body py-1">
<div class="row">
@@ -16,7 +16,7 @@
</div>
</div>
<div class="card text-center my-2" style="width: 100%;">
<div class="card text-center border-success my-2" style="width: 100%;">
<h3 class="card-header bg-success text-uppercase"><%: traduci("CartList") %></h3>
<div class="card-body py-1">
<div class="row">
+4 -4
View File
@@ -4,9 +4,9 @@
<div class="row">
<asp:Repeater runat="server" ID="repBins" DataSourceID="ods">
<ItemTemplate>
<div class="col-2">
<div runat="server" id="divBlock" class="row small alert border-thick px-0 alert-primary border border-primary" role="alert">
<div class="col-12">
<div class="col-2 mx-1">
<div runat="server" id="divBlock" class="row small alert border-thick p-0 pb-2 alert-primary border border-primary" role="alert">
<div class="col-12 bg-primary text-light pt-2">
<h5>
<asp:Label runat="server" ID="lblTitle" Text='<%# $"<b>B{Eval("BinIndex")}</b> | {Eval("BinDtmx")}" %>' CssClass="text-uppercase" /></h5>
</div>
@@ -59,4 +59,4 @@
<asp:Parameter DefaultValue="True" Name="OnKitStation" Type="Boolean" />
</SelectParameters>
</asp:ObjectDataSource>
</div>
</div>
+13 -13
View File
@@ -3,9 +3,9 @@
<div class="row">
<asp:Repeater runat="server" ID="repCarts" DataSourceID="ods">
<ItemTemplate>
<div class="col-2">
<div runat="server" id="divBlock" class="row small alert border-thick px-0 alert-success border border-success" role="alert">
<div class="col-12 bg-success text-light">
<div class="col-2 mx-1">
<div runat="server" id="divBlock" class='<%# "row small alert border-thick p-0 pb-2 border " + getCssByNums(Eval("NumPzWaiting"),Eval("NumPzBinAvail")) %>' role="alert">
<div class="col-12 bg-success text-light pt-2">
<h5>
<asp:Label runat="server" ID="lblTitle" Text='<%# $"<b>C{Eval("CartIndex")}</b> | {Eval("CartDtmx")}" %>' CssClass="text-uppercase" /></h5>
</div>
@@ -47,32 +47,32 @@
</div>
<div class="col-4 text-left">
Wait:
<asp:Label runat="server" ID="lblWait" CssClass="text-warning font-weight-bold" Text='<%# Eval("NumPzWaiting") %>' />
<asp:Label runat="server" ID="lblWait" CssClass="font-weight-bold" Text='<%# Eval("NumPzWaiting") %>' />
</div>
<div class="col-4 text-center">
Ready:
<asp:Label runat="server" ID="Label3" CssClass="text-primary font-weight-bold" Text='<%# Eval("NumPzBinAvail") %>' />
<asp:Label runat="server" ID="Label3" CssClass="font-weight-bold" Text='<%# Eval("NumPzBinAvail") %>' />
</div>
<div class="col-4 text-right">
Cart:
<asp:Label runat="server" ID="Label4" CssClass="text-success font-weight-bold" Text='<%# Eval("TotItemCart") %>' />
<asp:Label runat="server" ID="Label4" CssClass="font-weight-bold" Text='<%# Eval("TotItemCart") %>' />
</div>
<div class="col-6 text-left border-top border-success small">
<div class="col-6 text-left border-top border-success">
Other Parts #:
</div>
<div class="col-6 text-right border-top border-success small">
<div class="col-6 text-right border-top border-success">
<b>
<asp:Label ID="Label8" runat="server" Text='<%# Eval("OtherQtyReq") %>' /></b>
</div>
<div class="col-4 text-left small">
<div class="col-4 text-left">
Wait:
<asp:Label runat="server" ID="Label6" CssClass="text-warning font-weight-bold" Text='<%# Eval("OtherQtyWait") %>' />
<asp:Label runat="server" ID="Label6" CssClass="font-weight-bold" Text='<%# Eval("OtherQtyWait") %>' />
</div>
<div class="col-4 text-center small">
<div class="col-4 text-center">
</div>
<div class="col-4 text-right small">
<div class="col-4 text-right">
Cart:
<asp:Label runat="server" ID="Label9" CssClass="text-success font-weight-bold" Text='<%# Eval("OtherQtyCur") %>' />
<asp:Label runat="server" ID="Label9" CssClass="font-weight-bold" Text='<%# Eval("OtherQtyCur") %>' />
</div>
</div>
</div>
+17 -2
View File
@@ -14,9 +14,24 @@ namespace NKC_WF.WebUserControls
}
public string getCss(object val)
public string getCssByNums(object _numWait, object _numReady)
{
return "";
string answ = "alert-success border-success";
int numWait = 0;
int numReady = 0;
int.TryParse(_numWait.ToString(), out numWait);
int.TryParse(_numReady.ToString(), out numReady);
if (numWait > 0)
{
answ = "alert-danger border-danger";
}
else if (numReady > 0)
{ answ = "alert-warning border-warning"; }
else
{
answ = "alert-success border-success";
}
return answ;
}
public string getTitle(object val)
{
+77 -14
View File
@@ -213,15 +213,17 @@ namespace NKC_WF.WebUserControls
doRaiseEv = true;
break;
case codeType.Item:
tryPickup(decoData.rawData);
cmp_barcode.showOutput("badge badge-success", $"Valid IT Code: {decoData.rawData}");
processItemSuggestion(decoData.codeType, decoData.rawData, decoData.codeInt);
break;
case codeType.ItemGeneric:
tryPickup(decoData.rawData);
cmp_barcode.showOutput("badge badge-success", $"Valid IG Code: {decoData.rawData}");
processItemSuggestion(decoData.codeType, decoData.rawData, decoData.codeInt);
break;
case codeType.OtherItem:
cmp_barcode.showOutput("badge badge-success", $"Valid Generic PART Code: {decoData.rawData}");
processItemSuggestion(decoData.codeType, decoData.rawData, decoData.codeInt);
break;
case codeType.Material:
cmp_barcode.showOutput("badge badge-warning", $"Material - ignored: {decoData.description}");
doRaiseEv = true;
@@ -254,16 +256,7 @@ namespace NKC_WF.WebUserControls
return doRaiseEv;
}
/// <summary>
/// Prova a fare pickup (SOLO SE il mio item è nel foglio corrente...)
/// </summary>
/// <param name="itemDtmx"></param>
protected void tryPickup(string itemDtmx)
{
// salvo in item sel...
updateCurrData();
ComLib.saveItemPickup(SheetID, DeviceId, itemDtmx);
}
/// <summary>
/// Processo il DataMatrix letto
@@ -277,6 +270,13 @@ namespace NKC_WF.WebUserControls
// processo suggerimenti x ITEM / cart / bin dato suo RawData (Dtmx) e Cod univoco (intero)
switch (tipoCod)
{
case codeType.OtherItem:
var tabOtherItem = DataLayer.man.taOtItem.getByKey(codeInt);
if (tabOtherItem.Count == 1)
{
showOtherItemDetail(true, tabOtherItem[0], false);
}
break;
case codeType.Item:
tabItem = DataLayer.man.taIL.getBySearch(codeInt, rawData, 0, 999);
if (tabItem.Count == 1)
@@ -357,7 +357,7 @@ namespace NKC_WF.WebUserControls
break;
default:
break;
}
}
// cerco su DB
@@ -412,8 +412,9 @@ namespace NKC_WF.WebUserControls
/// <summary>
/// Mostra o nasconde dettaglio su ITEM letto
/// </summary>
/// <param name="v"></param>
/// <param name="showItem"></param>
/// <param name="itemRow"></param>
/// <param name="showError"></param>
private void showItemDetail(bool showItem, DS_App.ItemListRow itemRow, bool showError)
{
resetShowData();
@@ -470,6 +471,68 @@ namespace NKC_WF.WebUserControls
}
lbtResetSel.Visible = (itemIdSelected != 0);
}
/// <summary>
/// Mostra o nasconde dettaglio su OTHER ITEM letto
/// </summary>
/// <param name="showItem"></param>
/// <param name="otherItemRow"></param>
/// <param name="showError"></param>
private void showOtherItemDetail(bool showItem, DS_App.OtherItemRow otherItemRow, bool showError)
{
resetShowData();
divItemDet.Visible = showItem;
divItemError.Visible = showError;
if (showError)
{
displError("Other Item not found", true);
}
if (showItem)
{
lblItemCode.Text = otherItemRow.OtherItemExtCode;
lblItemDesc.Text = otherItemRow.OtherItemDesc;
lblItemDtmx.Text = otherItemRow.OtherItemDtmx;
itemIdSelected = otherItemRow.OtherItemID;
//// CONTROLLO SIA in stato 1 --> worked, 2--> selected, 100--> parked...
//switch (otherItemRow.StatusID)
//{
// case 0:
// displError("ERROR: Item not ready", false);
// break;
// case 1:
// case 2:
// case 100:
// // salvo che è in STATO 2 (picked up)
// DataLayer.man.taIL.updateStatus(otherItemRow.ItemID, 2, PlaceId);
// // verifico cosa devo mostrare come PROX passaggio...
// showCart = otherItemRow.ProcessesReq == "";
// showBin = (otherItemRow.ProcessesReq.Contains("PaintFlag"));
// secOp = otherItemRow.PostProcList;
// showSecOp = (secOp != "");
// doUpdate();
// break;
// case 3:
// displError("Item already on CART!", false);
// break;
// case 4:
// // fino a concorrenza qta richiesta sposto, POI do errori
// displError("ALL Item already scanned on BIN!", false);
// break;
// case 5:
// displError("Item already at KIT STATION!", false);
// break;
// case 990:
// displError("Item declared SCRAP!", false);
// break;
// case 991:
// displError("Item declared SCRAP with CNC program created!", false);
// break;
// default:
// displError("ERROR: Item status UNKNOWN!", false);
// break;
//}
}
lbtResetSel.Visible = (itemIdSelected != 0);
}
public int itemIdSelected
{
@@ -234,6 +234,10 @@ namespace NKC_WF.WebUserControls
cmp_barcode.showOutput("badge badge-warning", $"BUNK - ignored: {decoData.description}");
doRaiseEv = true;
break;
case codeType.OtherItem:
cmp_barcode.showOutput("badge badge-warning", $"Generic PART - ignored: {decoData.description}");
doRaiseEv = true;
break;
case codeType.Batch:
cmp_barcode.showOutput("badge badge-warning", $"Batch - ignored: {decoData.description}");
doRaiseEv = true;