示例#1
0
        private void _buildRefDatePosition()
        {
            // if 이미 set이 되면 안함

            clsHITM_FP_POSITION_TB clstb = new clsHITM_FP_POSITION_TB();

            clstb.POSITION_DT = this.refDate_.ToString("yyyyMMdd");

            if ( clstb.Select().Rows.Count == 0 )
            {
                CalendarManager cm = new CalendarManager(this.refDate_, CalendarManager.CountryType.SOUTH_KOREA);

                DateTime roopDate = this.refDate_.AddDays(-1.0);

                while (!cm.isHoliday(roopDate))
                {
                    roopDate = roopDate.AddDays(-1.0);
                }

                this.HedgeTradingViewModel_.FinanceBook_.makePositionFromPreDate(roopDate,this.refDate_);

            }

        }