Exemplo n.º 1
0
    /// <summary>
    /// 初始化时效
    /// </summary>
    /// <param name="channelID"></param>
    /// <param name="programID"></param>
    protected void initDDLTimeSX(string programID, string dtID, string ttID)
    {
        string[] sx;
        //if (programID == "all" || lb_titleTime.Text == "昨天之前数据,不可查看!")
        if (programID == "all")
        {
            return;
        }
        else
        {
            try
            {
                int idtID = Convert.ToInt32(dtID);
                if (noSXDT(idtID))
                {
                    sx = null;
                }
                else
                {
                    int iprogramID = Convert.ToInt32(programID);
                    int ittID      = Convert.ToInt32(ttID);
                    sx = dbll.getSX2(iprogramID, idtID, ittID);
                }
            }
            catch
            {
                sx = null;
            }


            fillSX(sx);
            checkedAllSX();
        }
    }