1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- #region Copyright © 2015 CLIPSOFT Co.,Ltd. All Rights Reserved.
- //
- // All rights are reserved. Reproduction or transmission in whole or in part,
- // in any form or by any means, electronic, mechanical or otherwise, is
- // prohibited without the prior written consent of the copyright owner.
- //
- // Filename:SelectConsentSvcDac.cs
- //
- #endregion
- using CLIP.eForm.Consent.Dfh.Entity;
- using CLIP.eForm.Server.Data;
- using IBatisNet.DataMapper;
- using System;
- using System.Collections;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace CLIP.eForm.Consent.Dfh.Dac {
- public class PatientDac : DacBase {
- //앞으로 GetPatientInfo()으로 대체될 임시함수
- public IList<PatientVO> GetPatientDetailInfo(ISqlMapper mapper, Hashtable param) {
- return mapper.QueryForList<PatientVO>("GET_PATIENT_DETAIL_INFO", param);
- }
- public IList<ClnDateForDropdownVO> GetTrmtDateList(ISqlMapper mapper, Hashtable param) {
- return mapper.QueryForList<ClnDateForDropdownVO>("GET_TRMT_DATE_LIST", param);
- }
- public IList<PatientVO> GetPatientInfo(ISqlMapper mapper, Hashtable param) {
- String flag = (String)param["ordtype"];
- if (flag.Equals("I") || flag.Equals("E"))//입원 , 응급
- {
- return mapper.QueryForList<PatientVO>("getPatientInfoIn", param);
- } else if (flag.Equals("O") || flag.Equals("S"))//외래 , 종건
- {
- return mapper.QueryForList<PatientVO>("getPatientInfoOut", param);
- } else {
- return null;
- }
- }
- public string GetOcrTag(ISqlMapper mapper, Hashtable param) {
- return mapper.QueryForObject<String>("getOcrTag", param);
- }
- public IList<string> GetDiagList(ISqlMapper mapper, Hashtable param) {
- return mapper.QueryForList<string>("getDiagList", param);
- }
- public string GetFileName(ISqlMapper mapper, Hashtable param) {
- mapper.Insert("setFileName", param);
- return mapper.QueryForObject<String>("getFileName", param);
- }
- public void delEformData(ISqlMapper mapper, Hashtable param) {
- mapper.Insert("delEformData", param);
- }
- public void insertPrintData(ISqlMapper mapper, Hashtable param) {
- string var2 = mapper.QueryForObject<String>("getHardCodeYN", param);
- if (var2 != null && var2.Equals("Y") && (bool)param["autoprint"]) {
- } else {
- string var = mapper.QueryForObject<String>("getFormFromdt", param);
- param.Add("formfromdt", var);
- mapper.Insert("setOcrPrntInfo", param);
- if (param["ocrprintyn"].Equals("Y")) {
- mapper.Insert("setOcrPrntHistInfo", param);
- }
- }
- }
- public int UpdateUserSetup(ISqlMapper mapper, Hashtable param) {
- //mapper.QueryForObject<Int32>("UPDATE_USERSETUP", param);
- return mapper.Update("UPDATE_USERSETUP", param);
- }
- }
- }
|