using System;
using System.Collections.Generic;
using CLIP.eForm.Consent.WebService;

namespace CLIP.eForm.Consent.Web
{
    public partial class OperationList : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            using (HospitalSvc svc = new HospitalSvc())
            {
                string pid = (this.Request.Params["IO_Pt_ID"] != null) ? this.Request.Params["IO_Pt_ID"] : "";
                string ADdate = (this.Request.Params["IO_ADdate"] != null) ? this.Request.Params["IO_ADdate"] : "";
                string dutinstcd = (this.Request.Params["IO_DUTINSTCD"] != null) ? this.Request.Params["IO_DUTINSTCD"] : "";
                ADdate = ADdate.Replace("-", "").Replace("/", "");

                //IList<string> result = svc.GetDiagNameList(pid, ADdate, dutinstcd);
                // dbs227 추후 수수명 조회하는 API 와 연동 하여야 함
                IList<string> result = null;
                //result = svc.getOpNameList(pid, dutinstcd);

                opList.DataSource = result;
                opList.DataBind();
            }
        }
    }
}