private void tbkFirstVirsionGroupTotalWeight_MouseLeftButtonUp(object sender, MouseButtonEventArgs e) { WindowWeightDetail wd = new WindowWeightDetail(); NormalClass nc = new NormalClass(); nc.Path = CurrentDir; nc.FirstVirsion_Group_ThisMonth(); WeightData wtdt = new WeightData(); wtdt = CalculateWeight(nc.DtResult); wd.Firstdg.ItemsSource = wtdt.ResultTable.DefaultView; wd.tbTotalWeight.Text = wtdt.Totalweight.ToString(); wd.Title = "部门初稿列表"; wd.Show(); }
private void showWeight() { WeightData wtdt = new WeightData(); NormalClass nc = new NormalClass(); nc.Path = CurrentDir; //计算个人初稿 nc.FirstVirsion_ThisMonth(UserName); wtdt = CalculateWeight(nc.DtResult); tbkFirstVirsionTotalWeight.Text = wtdt.Totalweight.ToString(); //计算个人递交 nc.Done_ThisMonth(UserName); wtdt = CalculateWeight(nc.DtResult); tbkDoneWeight.Text = wtdt.Totalweight.ToString(); //计算部门初稿 nc.FirstVirsion_Group_ThisMonth(); wtdt = CalculateWeight(nc.DtResult); tbkFirstVirsionGroupTotalWeight.Text = wtdt.Totalweight.ToString(); //计算部门递交 nc.Done_Group_ThisMonth(); wtdt = CalculateWeight(nc.DtResult); tbkGroupDoneWeight.Text = wtdt.Totalweight.ToString(); //计算积案 nc.OverStock(); wtdt = CalculateWeight(nc.DtResult); tbkOverStock.Text = wtdt.Count.ToString(); //计算超期案件 nc.OutofLimit(); wtdt = CalculateWeight(nc.DtResult); tbkOutofLimit.Text = wtdt.Count.ToString(); }