/// <summary> /// 事前オーダー登録 /// </summary> /// <param name="order">事前登録オーダー情報クラス</param> /// <returns>処理結果クラス</returns> public ResultData SetPreOrder_Serv(PreOrder order) { var ret = new ResultData(); try { if (order.Key == 0) { Search search = new Search(); search.HospID = order.HospID; search.PatID = order.PatID; Patient[] tmpList = Pat.GetPatientList(search); if (tmpList == null || tmpList.Length == 0) { order.Key = Pat.SetPatient(order); } } else { Pat.SetPatient(order); } // 事前オーダー登録メソッド呼び出し(内部関数) if (!POrder.SetPreOrder(order)) { ret.Message = "オーダー登録失敗:" + order.PatID + ":" + order.Modality + ":" + order.Date; } else { ret.Result = true; } } catch (Exception e) { LogControl.WriteLog(LogType.ERR, "SetPreOrder_Serv", e.Message); ret.Message = e.Message; } return(ret); }