public double DCut1OnDCut2AndPart(double dcut1, double dcut2, ProductPart p)
        {
            //calculate dcu1 base on dcut2 and productpart
            switch (p.TypeOfDCut1)
            {
                case 2:
                    return 0;
                case 1:
                    return dcut2;
                default:
                    return dcut1;

            }
        }
Exemple #2
0
        private void SaveProductPartInDictionary(ProductPart c)
        {
            CheckExistDic();
            ProductPart val;
            if (ProductPartsDic.TryGetValue(c.CodProductPart, out val))
            {
                // yay, value exists!
                ProductPartsDic[c.CodProductPart] = c;
            }
            else
            {
                // darn, lets add the value
                ProductPartsDic.Add(c.CodProductPart, c);
            }

        }
Exemple #3
0
        public virtual void Copy(ProductPart to)
        {
            to.TimeStampTable = this.TimeStampTable;

            to.CodProduct = this.CodProduct;
            to.ProductPartName = this.ProductPartName;
            to.PrintingType = this.PrintingType;
            to.Format = this.Format;
            to.ServicesNumber = this.ServicesNumber;
            //CodProductPart_  = this. ;
            to.FormatOpened = this.FormatOpened;
            to.SubjectNumber = this.SubjectNumber;
            to.DCut = this.DCut;
            to.IsDCut = this.IsDCut;
            to.DCut1 = this.DCut1;
            to.DCut2 = this.DCut2;
            to.SideOnSide = this.SideOnSide;
            to.HaveDCutLimit = this.HaveDCutLimit;
            to.MaxDCut = this.MaxDCut;
            to.MinDCut = this.MinDCut;
            to.TypeOfDCut1 = this.TypeOfDCut1;
            to.TypeOfDCut2 = this.TypeOfDCut2;

            //***RIGUARDARE
            to.FormatType = this.FormatType;

        }