public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.GeneralTerminationEvent serial_GeneralTerminationEvent = serial_Class as FpmlSerializedCSharp.GeneralTerminationEvent;

            this.detailTerminationType_ = serial_GeneralTerminationEvent.DetailTerminationType_.ValueStr;

            this.eventDate_ = StringConverter.xmlDateToDateTime(serial_GeneralTerminationEvent.EventDate_.ValueStr);

            FpmlSerializedCSharp.GeneralTerminationEventDetail serial_generalTerminationEventDetail = serial_GeneralTerminationEvent.GeneralTerminationEventDetail_;
            string generalTerminationEventDetailtype = serial_generalTerminationEventDetail.Excel_type_.ValueStr;

            this.generalTerminationEventDetailViewModel_ = GeneralTerminationEventDetailViewModel.CreateGeneralTerminationEventDetail(generalTerminationEventDetailtype);
            this.generalTerminationEventDetailViewModel_.setFromSerial(serial_generalTerminationEventDetail);
        }
 public  void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
 {
     FpmlSerializedCSharp.GeneralTerminationEvent serial_GeneralTerminationEvent = serial_Class as FpmlSerializedCSharp.GeneralTerminationEvent;
 
     this.detailTerminationType_ = serial_GeneralTerminationEvent.DetailTerminationType_.ValueStr;
     
     this.eventDate_ = StringConverter.xmlDateToDateTime(serial_GeneralTerminationEvent.EventDate_.ValueStr);
     
     FpmlSerializedCSharp.GeneralTerminationEventDetail serial_generalTerminationEventDetail = serial_GeneralTerminationEvent.GeneralTerminationEventDetail_;
     string generalTerminationEventDetailtype = serial_generalTerminationEventDetail.Excel_type_.ValueStr;
     this.generalTerminationEventDetailViewModel_ = GeneralTerminationEventDetailViewModel.CreateGeneralTerminationEventDetail(generalTerminationEventDetailtype);
     this.generalTerminationEventDetailViewModel_.setFromSerial(serial_generalTerminationEventDetail);
     
 }