private void xiangxixinxiUI_Click(object sender, RoutedEventArgs e) { if (shujuyuan_xuanzedeshengqingdan == null) { Gongju.tanchutishi("请先选择申请单!"); return; } }
private void weiye_Click(object sender, RoutedEventArgs e) { if (Fenyechaxun == null) { Gongju.tanchutishi("没有定义此功能!"); return; } dangqianye = gongjiye; Fenyechaxun(sender, e); }
private void houyeUI_Click(object sender, RoutedEventArgs e) { if (Fenyechaxun == null) { Gongju.tanchutishi("没有定义此功能!"); return; } dangqianye = Math.Min(gongjiye, dangqianye + 1); Fenyechaxun(sender, e); }
//删除申请单 private void shenqingdanliebiao_Shanchu_Click(object sender, RoutedEventArgs e) { if (shujuyuan_xuanzedeshengqingdan == null) { Gongju.tanchutishi("请先选择申请单!"); return; } shujuku.Linchuanghla_jiancedanSet.Remove(shujuyuan_xuanzedeshengqingdan); shujuku.SaveChanges(); shenqingdanfenyeUI_Fenyechaxun(null, null); }
private async void shanchuUI_Click(object sender, RoutedEventArgs e) { if (Shanchu_Click != null) { Shanchu_Click(sender, e); } else { await Gongju.tanchutishi("此功能没有实现!"); } }
private async void xiugaiUI_Click(object sender, RoutedEventArgs e) { if (Xiugai_Click != null) { Xiugai_Click(sender, e); } else { await Gongju.tanchutishi("此功能没有实现!"); } }
private async void tianjiaUI_Click(object sender, RoutedEventArgs e) { if (Tianjia_Click != null) { Tianjia_Click(sender, e); } else { await Gongju.tanchutishi("此功能没有实现!"); } }
private void quedingUI_Click(object sender, RoutedEventArgs e) { if (huanzhexingmingUI.Text.Trim().Length == 0) { Gongju.tanchutishi(this, "患者姓名不能为空!"); return; } if (shouyangriqiUI.SelectedDate == null) { Gongju.tanchutishi(this, "收样日期不能为空!"); return; } queding = true; this.Close(); }
//修改申请单 private void shenqingdanliebiao_Xiugai_Click(object sender, RoutedEventArgs e) { if (shujuyuan_xuanzedeshengqingdan == null) { Gongju.tanchutishi("请先选择申请单!"); return; } var tianjia = new Tianjiashenqingdan(); tianjia.shenqingdanUI.DataContext = shujuyuan_xuanzedeshengqingdan; tianjia.ShowDialog(); if (tianjia.queding) { shujuku.SaveChanges(); } }