public void testStepDownKI()
        {
            Excel_hifiveViewModel e_hifive = new Excel_hifiveViewModel();

            {
                Excel_noteInfoViewModel e_nivm = new Excel_noteInfoViewModel();

                e_nivm.Notional_ = "10000";

                e_hifive.Excel_issueInfoViewModel_ = e_nivm;
            }
        }
        public string set_issueInfo(double notional,
                                    DateTime effDate,
                                    DateTime matDate,
                                    string currency,
                                    double notionalPayment,
                                    bool overwrite = true)
        {
            try
            {
                if (effDate == null || effDate.Year == 1899)
                {
                    throw new Exception("effectiveDate empty");
                }

                if (matDate == null || matDate.Year == 1899)
                {
                    throw new Exception("maturityDate empty");
                }

                if (effDate >= matDate)
                {
                    throw new Exception("maturity must be later than effective");
                }

                Excel_noteInfoViewModel e_noteInfo = new Excel_noteInfoViewModel();

                e_noteInfo.Notional_               = notional.ToString();
                e_noteInfo.EffectiveDate_          = effDate;
                e_noteInfo.MaturityDate_           = matDate;
                e_noteInfo.Currency_               = new CurrencyViewModel(currency, currency);
                e_noteInfo.IncludeNotionalPayment_ = notionalPayment.ToString();

                this.InstVM_.Excel_interfaceViewModel_.Excel_issueInfoViewModel_ = e_noteInfo;

                List <string> member = new List <string>()
                {
                    "instType", "type", "notional", "effDate", "matDate", "currency"
                };
                List <string> value = new List <string>()
                {
                    "hifive", "issueInfo", notional.ToString(), StringConverter.xmlDateTimeToDateString(effDate), StringConverter.xmlDateTimeToDateString(matDate), currency.ToString()
                };

                e_noteInfo.VBA_description_ = this.vba_description(member, value);

                return("set complete");
            }
            catch (Exception e)
            {
                return("add fail : " + e.Message);
            }
        }