Ejemplo n.º 1
0
        /// <summary>
        /// 根据用户权限显示初始界面(默认全部是报销填报界面)
        /// </summary>
        private void refreshControl()
        {
            refreshMenuColor(menu_addexpense);
            ucNewExpense ucExpense = new ucNewExpense();

            ucExpense.Width  = this.wpanel.Width;
            ucExpense.Height = this.wpanel.Height;
            this.wpanel.Children.Add(ucExpense);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 报销填报
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void menu_newexpense_Click(object sender, RoutedEventArgs e)
        {
            refreshMenuColor(sender);
            this.wpanel.Children.Clear();
            ucNewExpense uc = new ucNewExpense();

            uc.Width  = this.wpanel.Width;
            uc.Height = this.wpanel.Height;
            this.wpanel.Children.Add(uc);
        }