Beispiel #1
0
        public override void LoadFromStream(SerializationInfo info, int orderNumber)
        {
            this.b2o_constype    = (BOMTYPE)info.GetValue(String.Format(CultureInfo.InvariantCulture, "{0}{1}", entryb2oconstype, orderNumber), typeof(BOMTYPE));
            this.b2o_cosqty      = (int)info.GetValue(String.Format(CultureInfo.InvariantCulture, "{0}{1}", entryb2ocosqty, orderNumber), typeof(int));
            this.b2o_altbuf      = (string)info.GetValue(String.Format(CultureInfo.InvariantCulture, "{0}{1}", entryb2oaltbuf, orderNumber), typeof(string));
            this.b2o_altpriority = (int)info.GetValue(String.Format(CultureInfo.InvariantCulture, "{0}{1}", entryb2oaltpriority, orderNumber), typeof(int));
            this.b2o_altbufs     = (ArrayList)info.GetValue(String.Format(CultureInfo.InvariantCulture, "{0}{1}", entryb2oaltbufs, orderNumber), typeof(ArrayList));

            Point ctct    = (Point)info.GetValue(String.Format(CultureInfo.InvariantCulture, "{0}{1}", entryctct, orderNumber), typeof(Point));
            Point ltct    = (Point)info.GetValue(String.Format(CultureInfo.InvariantCulture, "{0}{1}", entryltct, orderNumber), typeof(Point));
            Point rtct    = (Point)info.GetValue(String.Format(CultureInfo.InvariantCulture, "{0}{1}", entryrtct, orderNumber), typeof(Point));
            int   distype = (int)info.GetValue(String.Format(CultureInfo.InvariantCulture, "{0}{1}", entrydistype, orderNumber), typeof(int));

            DRWObj.CONPONT lttp = (DRWObj.CONPONT)info.GetValue(String.Format(CultureInfo.InvariantCulture, "{0}{1}", entrylttp, orderNumber), typeof(DRWObj.CONPONT));
            DRWObj.CONPONT rttp = (DRWObj.CONPONT)info.GetValue(String.Format(CultureInfo.InvariantCulture, "{0}{1}", entryrttp, orderNumber), typeof(DRWObj.CONPONT));

            this.Rtlist = new ArrayList();
            this.Ltlist = new ArrayList();

            this.Drwobj = new DRWCon(ltct, rtct, DRWObj.CONPONT.LtCt, DRWObj.CONPONT.RtCt, this);

            this.Drwobj.Stype   = lttp;
            this.Drwobj.Etype   = rttp;
            this.Drwobj.Distype = distype;

            base.LoadFromStream(info, orderNumber);
        }
Beispiel #2
0
        public override void Init(int n)
        {
            this.Seq    = n;
            this.Rtlist = new ArrayList();
            this.Ltlist = new ArrayList();

            b2o_altbufs     = new ArrayList();
            b2o_constype    = BOMTYPE.NULL;
            b2o_altbuf      = "";
            b2o_cosqty      = 1;
            b2o_altpriority = 1;
        }