public TaskApprove(FrequencyrangeInfo frequency, string isAddorUpdate)
        {
            InitializeComponent();
            IsAddorUpdate        = isAddorUpdate;
            OriginalrequencyInfo = frequency;
            InitData();
            if (frequency.FREQUENCYTYPE.ToString() != "")
            {
                if (frequency.FREQUENCYTYPE == 0)
                {
                    frequencyRange.IsChecked = true;
                }
                else
                {
                    frequencyPoint.IsChecked = false;
                }
            }

            CurrentrequencyInfo = TaskHelper.Clone <FrequencyrangeInfo>(frequency);
            this.DataContext    = CurrentrequencyInfo;
        }