Пример #1
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            TechnicalDetails td = obj as TechnicalDetails;

            if ((object)td == null)
            {
                return(false);
            }
            return((this.DetailId == td.DetailId) && (this.TechDet_Config == td.TechDet_Config) && (this.DocPath == td.DocPath));
        }
Пример #2
0
        public List <TechnicalDetails> GetComponentTechDet()
        {
            Datahandler             dh       = Datahandler.getData();
            List <TechnicalDetails> techDets = new List <TechnicalDetails>();
            DataTable table = dh.readDataFromDB(DataAccesHelper.QueryGetTechnicalDetails + this.TechDet_Config.ConfigId + "'");

            foreach (DataRow item in table.Rows)
            {
                TechnicalDetails td = new TechnicalDetails();
                td.DetailId                = Convert.ToInt32(item[DataAccesHelper.tecDetId].ToString());
                td.DocPath                 = item[DataAccesHelper.tecDetDocPath].ToString();
                td.TechDet_Config          = new Configurations();
                td.TechDet_Config.ConfigId = item[DataAccesHelper.tecDetConfCode].ToString();
                techDets.Add(td);
            }

            return(techDets);
        }