public override void LoadFromStream(SerializationInfo info, int orderNumber) { this.o2b_prodtype = (OPETYPE)info.GetValue(String.Format(CultureInfo.InvariantCulture, "{0}{1}", entryo2bprodtype, orderNumber), typeof(OPETYPE)); this.o2b_prodqty = (int)info.GetValue(String.Format(CultureInfo.InvariantCulture, "{0}{1}", entryo2bprodqty, orderNumber), typeof(int)); this.o2b_altpriority = (int)info.GetValue(String.Format(CultureInfo.InvariantCulture, "{0}{1}", entryo2baltpriority, orderNumber), typeof(int)); this.o2b_altproportion = (int)info.GetValue(String.Format(CultureInfo.InvariantCulture, "{0}{1}", entryo2baltproportion, orderNumber), typeof(int)); this.o2b_basedqty = (int)info.GetValue(String.Format(CultureInfo.InvariantCulture, "{0}{1}", entryo2bbasedqty, orderNumber), typeof(int)); this.o2b_cobyprod = (int)info.GetValue(String.Format(CultureInfo.InvariantCulture, "{0}{1}", entryo2bcobyprod, orderNumber), typeof(int)); this.o2b_cobyprodqty = (int)info.GetValue(String.Format(CultureInfo.InvariantCulture, "{0}{1}", entryo2bcobyprodqty, orderNumber), typeof(int)); this.o2b_cobyprodrate = (int)info.GetValue(String.Format(CultureInfo.InvariantCulture, "{0}{1}", entryo2bcobyprodrate, orderNumber), typeof(int)); 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); }
public override void Init(int n) { this.Seq = n; this.Rtlist = new ArrayList(); this.Ltlist = new ArrayList(); o2b_prodtype = OPETYPE.NULL; o2b_prodqty = 1; o2b_altpriority = 1; o2b_altproportion = 0; o2b_basedqty = 1; o2b_cobyprod = 1; o2b_cobyprodqty = 1; o2b_cobyprodrate = 0; }