private void test(Object sender, EventArgs eventArgs) { CiRptLabItmDO[] items = xapFormControl1.GetSelected<CiRptLabItmDO>("reportitem"); if (items.Count() > 0 && TestView != null) { this.TestView.ShowReportButton.Enabled = true; }else if (items.Count() == 0 && TestView != null) { this.TestView.ShowReportButton.Enabled = false; } }
void btnOK_MouseClick(object sender, MouseEventArgs e) { CiOrdSheet[] sheets = xapFormControl1.GetSelected <CiOrdSheet>("sheetItem"); sheets.ToList().ForEach(p => sheetList.Add(p)); model.Save(sheetList.ToArray());//把数据保存到数据库 }
private void Ondeletetime(object sender, EventArgs e) { AddFeeDTO[] ors = xapFormControl.GetSelected <AddFeeDTO>("cost"); if (ors != null && ors.Count() > 0) { int i = model.AddFeeDTOList.IndexOf(ors[0]); if (iscontainSrv(ors[0].Id_srv)) { model.deletefee(ors[0]); } } }
public void Ondeletetime(object sender, EventArgs e) { AddFeeDTO[] ors = xapFormControl.GetSelected <AddFeeDTO>("cost"); if (ors != null && ors.Count() > 0) { // int i = AddFeeDTOList.IndexOf(ors[0]); if (this.model.iscontainSrv(ors[0].Id_srv)) { if (!this.IsDelete()) { return; } this.model.deletefee(ors[0]); } } }
/// <summary> /// 医嘱确认 /// </summary> public void orderConfirm() { OrConfirm[] ors = xapFormControl.GetSelected <OrConfirm>("ordlist"); if (ors == null || ors.Count() == 0) { return; } CiOrderDO[] orders = GetOrChecked(ors); var a = new List <string>(); var b = new List <string>(); var c = new List <string>(); foreach (CiOrderDO ciOrderDo in orders) { if (ciOrderDo.Fg_sign == FBoolean.True && ciOrderDo.Fg_chk == FBoolean.False) { a.Add(ciOrderDo.Id_or); } else if (ciOrderDo.Fg_chk == FBoolean.True && ciOrderDo.Fg_stop == FBoolean.True && ciOrderDo.Fg_chk_stop == FBoolean.False && ciOrderDo.Fg_canc == FBoolean.False) { c.Add(ciOrderDo.Id_or); } else if (ciOrderDo.Fg_canc == FBoolean.True && ciOrderDo.Fg_chk_canc == FBoolean.False) { b.Add(ciOrderDo.Id_or); } } if (a.Count == 0 && b.Count == 0 && c.Count == 0) { this.ShowAlert("选中数据无效,请刷新界面!"); return; } Conform(a.ToArray(), b.ToArray(), c.ToArray()); GetOrConfirmList(dto); this.SetStatusMsg("确认成功"); }