You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.7 KiB
47 lines
1.7 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace KPlan.Forms.Bean {
|
|
public class KPartSyncDataRow {
|
|
|
|
public int index { get; set; }
|
|
public string eplan_orderno { get; set; }
|
|
public string eplan_partno { get; set; }
|
|
public string eplan_erpno { get; set; }
|
|
public string eplan_name { get; set; }
|
|
public string eplan_desc { get; set; }
|
|
public string eplan_manufacturer { get; set; }
|
|
public string tc_itemid { get; set; }
|
|
public string tc_name { get; set; }
|
|
public string tc_revid { get; set; }
|
|
public string tc_desc { get; set; }
|
|
public string tc_manufacturer { get; set; }
|
|
public string tc_releasestatus { get; set; }
|
|
public string sync_status { get; set; }
|
|
|
|
public Eplan.EplApi.MasterData.MDPart part {get;set;}
|
|
public Teamcenter.Soa.Client.Model.Strong.ItemRevision rev { get; set; }
|
|
|
|
public override bool Equals(object obj) {
|
|
KPartSyncDataRow row = obj as KPartSyncDataRow;
|
|
if (row == null) {
|
|
return false;
|
|
}
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
string partNr1 = eplan_partno == null ? "" : eplan_partno;
|
|
string partNr2 = row.eplan_partno == null ? "" : row.eplan_partno;
|
|
string itemId1 = tc_itemid == null ? "" : tc_itemid;
|
|
string itemId2 = row.tc_itemid == null ? "" : row.tc_itemid;
|
|
string rev1 = tc_revid == null ? "" : tc_revid;
|
|
string rev2 = row.tc_revid == null ? "" : row.tc_revid;
|
|
return partNr1.Equals(partNr2) && itemId1.Equals(itemId2) && rev1.Equals(rev2);
|
|
}
|
|
|
|
}
|
|
}
|