﻿var firstCallGetDataHoSTC2 = true;
var firstCallGetDataHoSTC2_Index = true;
var firstCallGetDataHaSTC2 = true;
var firstCallGetDataHaSTC2_Index = true;
var firstCallGetUpcomIndex = true;
var firstCallGetUpcomPrice = true;
var firstCallGetBondOutRightMarket = true;
var firstCallGetBondReposMarket = true;
var firstCallGetBondOutRight = true;
var firstCallGetBondRepos = true;

function GetDataHoSTC2()
{
    if (firstCallGetDataHoSTC2 || CheckTime(7,30,11,00))
    {
        SSI.STC.AjaxWebService.GetDataHoSTC2(HoPriceCallback, FailedCallback);
        firstCallGetDataHoSTC2 = false;
    }
}
function GetDataHoSTC2_Index()
{
    if (firstCallGetDataHoSTC2_Index || CheckTime(7,30,11,15))
    {
        SSI.STC.AjaxWebService.GetDataHoSTC2_Index(HoHeaderCallback, FailedCallback);
        firstCallGetDataHoSTC2_Index = false;
    }
}
function GetDataHaSTC2()
{
    if (firstCallGetDataHaSTC2 || CheckTime(7,30,11,15))
    {
        SSI.STC.AjaxWebService.GetDataHaSTC2(HaPriceCallback, FailedCallback);
        firstCallGetDataHaSTC2 = false;
    }
}
function GetDataHaSTC2_Index()
{
    if (firstCallGetDataHaSTC2_Index || CheckTime(7,30,11,15))
    {
        SSI.STC.AjaxWebService.GetDataHaSTC2_Index(HaHeaderCallback, FailedCallback);
        firstCallGetDataHaSTC2_Index = false;
    }
}
function GetStockListHo()
{
    SSI.STC.AjaxWebService.GetStockListHo(StockListHoCallback, FailedCallback);
}
function GetStockListHa()
{
    SSI.STC.AjaxWebService.GetStockListHa(StockListHaCallback, FailedCallback);
}
function GetUpcomPrice()
{
    if (firstCallGetUpcomPrice || CheckTime(7,30,15,15))
    {
        SSI.STC.AjaxWebService.GetUpcomPrice(UpcomPriceCallback, FailedCallback);
        firstCallGetUpcomPrice = false;
    }
}
function GetUpcomIndex()
{
    if (firstCallGetUpcomIndex || CheckTime(7,30,15,15))
    {
        SSI.STC.AjaxWebService.GetUpcomIndex(UpcomIndexCallback, FailedCallback);
        firstCallGetUpcomIndex = false;
    }
}
function GetUpcomStockList()
{
    SSI.STC.AjaxWebService.GetUpcomStockList(UpcomStockListCallback, FailedCallback);
}
function GetBondOutRightMarket()
{
    if (firstCallGetBondOutRightMarket || CheckTime(7,30,17,15))
    {
        SSI.STC.AjaxWebService.GetBondOutRightMarket(BondOutRightMarketCallback, FailedCallback);
        firstCallGetBondOutRightMarket = false;
    }
}
function GetBondReposMarket()
{
    if (firstCallGetBondReposMarket || CheckTime(7,30,17,15))
    {
        SSI.STC.AjaxWebService.GetBondReposMarket(BondReposMarketCallback, FailedCallback);
        firstCallGetBondReposMarket = false;
    }
}
function GetBondOutRight()
{
    if (firstCallGetBondOutRight || CheckTime(7,30,17,15))
    {
        SSI.STC.AjaxWebService.GetBondOutRight(BondOutRightCallback, FailedCallback);
        firstCallGetBondOutRight = false;
    }
}
function GetBondRepos()
{
    if (firstCallGetBondRepos || CheckTime(7,30,17,15))
    {
        SSI.STC.AjaxWebService.GetBondRepos(BondReposCallback, FailedCallback);
        firstCallGetBondRepos = false;
    }
}


function SucceededCallback(result, eventArgs){}
function FailedCallback(error){}
if (typeof(Sys) !== "undefined") Sys.Application.notifyScriptLoaded();
