/// <summary>
        /// 更新看診進度資訊
        /// </summary>
        /// <param name="progress"></param>
        /// <returns></returns>
        public WebRegJsonResult UpdateProgressInfo(Models.API.Progress progress)
        {
            var result = new WebRegJsonResult();

            if (!string.IsNullOrWhiteSpace(this.Url))
            {
                try
                {
                    NameValueCollection nc = new NameValueCollection();

                    string runUrl = $"{this.Url}/Vision/GetClinic";

                    nc["Chinno"] = progress.Chinno;
                    nc["VID"]    = progress.RoomCode;
                    nc["RName"]  = progress.RoomName;
                    nc["RDName"] = progress.DocName;
                    nc["Sec"]    = progress.Sec;
                    nc["TTime"]  = progress.CurrentNumber;
                    nc["RDate"]  = progress.RDate;
                    nc["RList"]  = progress.RList;
                    nc["ROpen"]  = progress.ROpen;
                    nc["Source"] = "caller";

                    var resultJsonString = GetData(runUrl, nc);

                    result = JsonConvert.DeserializeObject <WebRegJsonResult>(resultJsonString);

                    if (result.Code == "0000")
                    {
                        result.Code = ((int)MessageCodeType.成功).ToString();
                    }
                    else
                    {
                        result.Code = ((int)MessageCodeType.Web例外訊息).ToString();
                    }
                }
                catch (Exception ex)
                {
                    //string msg = BossinfoException.GetMessage(ex);

                    result = new WebRegJsonResult
                    {
                        Code    = ((int)MessageCodeType.例外訊息).ToString(),
                        Message = ex.ToString()
                    };

                    log.Error($"更新看診進度錯誤:{ex.ToString()}");
                }
            }
            else
            {
                log.Warn("不執行 更新看診進度的API呼叫, 原因: 參數「CallClinicProgressRateUrl」 尚未設定");
            }
            return(result);
        }
        public WebRegJsonResult GetDataFromAPI()
        {
            var result = new WebRegJsonResult();

            if (!string.IsNullOrWhiteSpace(this.Url))
            {
                try
                {
                    NameValueCollection nc = new NameValueCollection();

                    string runUrl = $"{this.Url}/ClinicAndDoctorInfo/GetClinicAndDoctorInfo";

                    nc["comp"] = Config.CompaniesCode.ToString();

                    var resultJsonString = GetData(runUrl, nc);

                    result = JsonConvert.DeserializeObject <WebRegJsonResult>(resultJsonString);

                    if (result.Code == "1")
                    {
                        result.Code = ((int)MessageCodeType.成功).ToString();
                    }
                    else
                    {
                        result.Code = ((int)MessageCodeType.Web例外訊息).ToString();
                    }
                }
                catch (Exception ex)
                {
                    //string msg = BossinfoException.GetMessage(ex);

                    result = new WebRegJsonResult
                    {
                        Code    = ((int)MessageCodeType.例外訊息).ToString(),
                        Message = ex.ToString()
                    };

                    log.Error($"更新看診進度錯誤:{""}");
                }
            }
            else
            {
                log.Warn("不執行 更新看診進度的API呼叫, 原因: 參數「CallClinicProgressRateUrl」 尚未設定");
            }
            return(result);
        }