/// <summary>
        /// 选择查询类型
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void CmbCountType_Select(object sender, DirectEventArgs e)
        {
            try
            {
                switch (CmbCountType.SelectedItem.Value)
                {
                case "3":
                    CmbYear.Show();
                    CmbDay.Hide();
                    CmbMonth.Hide();
                    CmbWeek.Hide();

                    break;

                case "2":
                    CmbYear.Show();
                    CmbDay.Hide();
                    CmbMonth.Hide();
                    //CmbWeek.Show();
                    //CmbWeek.SelectedIndex = 0;
                    break;

                case "1":
                    CmbYear.Show();
                    CmbMonth.Show();
                    CmbDay.Hide();
                    CmbWeek.Hide();
                    break;

                case "0":
                    CmbYear.Show();
                    CmbDay.Show();
                    CmbMonth.Show();
                    CmbWeek.Hide();

                    break;
                }
            }
            catch (Exception ex)
            {
                ILog.WriteErrorLog(ex);
                logManager.InsertLogError("PassCarFlowCount.aspx-CmbCountType_Select", ex.Message + ";" + ex.StackTrace, "CmbCountType_Select has an exception");
            }
        }
Beispiel #2
0
        /// <summary>
        /// 分析类型触发事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        /// <returns></returns>
        protected void CmbCountType_Select(object sender, DirectEventArgs e)
        {
            switch (CmbCountType.SelectedItem.Value)
            {
            case "3":    //年
                CmbYear.Show();
                CmbDay.Hide();
                CmbMonth.Hide();
                CmbWeek.Hide();

                break;

            case "2":    //周
                CmbYear.Hide();
                CmbDay.Hide();
                CmbMonth.Hide();
                CmbWeek.Show();
                //CmbWeek.SelectedIndex = 0;
                break;

            case "1":    //月
                CmbYear.Show();
                CmbMonth.Show();
                CmbDay.Hide();
                CmbWeek.Hide();
                break;

            case "0":    //日
                CmbYear.Show();
                CmbDay.Show();
                CmbMonth.Show();
                CmbWeek.Hide();

                break;
            }
        }