Exemplo n.º 1
0
        public static GeneralScheduleViewModel Create(string lastEventDate)
        {
            GeneralScheduleViewModel gsvm = new GeneralScheduleViewModel();

            gsvm.EventDate_ = lastEventDate + 3;

            gsvm.generalScheduleDeatilViewModel_
                = GeneralScheduleDeatilViewModel.CreateGeneralScheduleDeatil("general_scheduleDetail_fixedCoupon");

            return(gsvm);
        }
Exemplo n.º 2
0
        public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.GeneralSchedule serial_GeneralSchedule = serial_Class as FpmlSerializedCSharp.GeneralSchedule;

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

            this.detailScheduleType_ = serial_GeneralSchedule.DetailScheduleType_.ValueStr;

            FpmlSerializedCSharp.GeneralScheduleDeatil serial_generalScheduleDeatil = serial_GeneralSchedule.GeneralScheduleDeatil_;
            string generalScheduleDeatiltype = serial_generalScheduleDeatil.Excel_type_.ValueStr;

            this.generalScheduleDeatilViewModel_ = GeneralScheduleDeatilViewModel.CreateGeneralScheduleDeatil(generalScheduleDeatiltype);
            this.generalScheduleDeatilViewModel_.setFromSerial(serial_generalScheduleDeatil);
        }
 public  void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
 {
     FpmlSerializedCSharp.GeneralSchedule serial_GeneralSchedule = serial_Class as FpmlSerializedCSharp.GeneralSchedule;
 
     this.eventDate_ = StringConverter.xmlDateToDateTime(serial_GeneralSchedule.EventDate_.ValueStr);
     
     this.detailScheduleType_ = serial_GeneralSchedule.DetailScheduleType_.ValueStr;
     
     FpmlSerializedCSharp.GeneralScheduleDeatil serial_generalScheduleDeatil = serial_GeneralSchedule.GeneralScheduleDeatil_;
     string generalScheduleDeatiltype = serial_generalScheduleDeatil.Excel_type_.ValueStr;
     this.generalScheduleDeatilViewModel_ = GeneralScheduleDeatilViewModel.CreateGeneralScheduleDeatil(generalScheduleDeatiltype);
     this.generalScheduleDeatilViewModel_.setFromSerial(serial_generalScheduleDeatil);
     
 }