12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- using System;
- using System.Collections.Generic;
- using CLIP.eForm.Consent.Dfh.WebService;
- using CLIP.eForm.Consent.Dfh.Entity;
- using System.Web.Services;
- namespace CLIP.eForm.Consent.Dfh.Web
- {
- public partial class DoctorList : System.Web.UI.Page
- {
- protected void Page_Load(object sender, EventArgs e)
- {
- // srchdd = (string.IsNullOrEmpty(this.Request.Params["IO_ADdate"])) ? DateTime.Now.ToShortDateString() : this.Request.Params["IO_ADdate"];
- }
-
- [WebMethod]
- public static string SetDeptDropdown(string gubun)
- {
- CLIP.eForm.Server.Diagnostics.LogHelper.LoggingHandler.Debug(string.Format("SetDeptDropdown : {0}", gubun));
- List<DeptListVO> resultList = null;
- string sResultJson = string.Empty;
- using (HospitalSvc svc = new HospitalSvc())
- {
- //수술,시술 선택에 따른 진료과 정보 바인딩
- resultList = svc.GetDeptList(gubun);
- resultList.Remove(resultList.Find(kvp => kvp.deptcd.Trim() == ""));
- if (resultList != null)
- {
- if (resultList != null && resultList.Count > 0)
- {
- sResultJson = "[";
- int i = 0;
- foreach (DeptListVO cVO in resultList)
- {
- if (i > 0) sResultJson += ",";
- else sResultJson += "{ \"DeptListVo\":{ \"deptnm\":\"선택\",\"deptcd\":\"\"} },";
- sResultJson += "{\"DeptListVo\":{";
- sResultJson += "\"deptnm\":\"" + cVO.deptnm + "\",";
- sResultJson += "\"deptcd\":\"" + cVO.deptcd + "\",";
- sResultJson += "\"No\":\"" + (i + 1) + "\"";
- sResultJson += "} }";
- i++;
- }
- sResultJson += "]";
- }
- }
- }
- return sResultJson;
- }
- [WebMethod]
- public static string SetDoctorList(string deptCd, string deptNm, string srchdd)
- {
- CLIP.eForm.Server.Diagnostics.LogHelper.LoggingHandler.Debug(string.Format("SetDoctorList : deptCd[{0}]", deptCd));
- CLIP.eForm.Server.Diagnostics.LogHelper.LoggingHandler.Debug(string.Format("SetDoctorList : deptNm[{0}]", deptNm));
- CLIP.eForm.Server.Diagnostics.LogHelper.LoggingHandler.Debug(string.Format("SetDoctorList : srchdd[{0}]", srchdd));
- List<DocListVO> resultList = null;
- string sResultJson = string.Empty;
- using (HospitalSvc svc = new HospitalSvc())
- {
- resultList = svc.GetDoctorList(srchdd.Replace("-", "").Replace("/", ""), deptCd);
- if (resultList != null)
- {
- if (resultList != null && resultList.Count > 0)
- {
- sResultJson = "[";
- int i = 0;
- foreach (DocListVO cVO in resultList)
- {
- if (i > 0) sResultJson += ",";
- sResultJson += "{";
- sResultJson += "\"doctorid\":\"" + cVO.doctorid + "\",";
- sResultJson += "\"doctornm\":\"" + cVO.doctornm + "\",";
- sResultJson += "\"deptCd\":\"" + deptCd + "\",";
- sResultJson += "\"deptNm\":\"" + deptNm + "\",";
- sResultJson += "\"No\":\"" + (i + 1) + "\"";
- sResultJson += "}";
- i++;
- }
- sResultJson += "]";
- }
- }
- }
- return sResultJson;
- }
- }
- }
|