Beispiel #1
0
        private void tbkDoneWeight_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
            WindowWeightDetail wd = new WindowWeightDetail();
            NormalClass        nc = new NormalClass();

            nc.Path = CurrentDir;
            nc.Done_ThisMonth(UserName);
            WeightData wtdt = new WeightData();

            wtdt = CalculateWeight(nc.DtResult);
            wd.Firstdg.ItemsSource = wtdt.ResultTable.DefaultView;
            wd.tbTotalWeight.Text  = wtdt.Totalweight.ToString();
            wd.Show();
        }
Beispiel #2
0
        private void tbkOutofLimit_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
            WindowWeightDetail wd = new WindowWeightDetail();
            NormalClass        nc = new NormalClass();

            nc.Path = CurrentDir;
            nc.OutofLimit();
            WeightData wtdt = new WeightData();

            wtdt = CalculateWeight(nc.DtResult);
            wd.Firstdg.ItemsSource = wtdt.ResultTable.DefaultView;
            wd.tbTotalWeight.Text  = wtdt.Count.ToString();
            wd.Title = "部门超期案件列表";
            wd.Show();
        }