|
@@ -971,9 +971,22 @@ namespace CLIP.eForm.Consent.UI {
|
|
|
string deptCd = this.consentMain.ConsentExecuteInfo["userDeptCd"];
|
|
|
string hosType = (vo.instCd == null) ? consentMain.ConsentExecuteInfo["dutinstcd"] : vo.instCd;
|
|
|
|
|
|
- if (string.IsNullOrEmpty(userName)) {
|
|
|
- UserVO userVo = hospitalWebService.GetUserInfo(userId, hosType, deptCd);
|
|
|
- userName = userVo.userName;
|
|
|
+ UserVO userVo = hospitalWebService.GetUserInfo(userId, hosType, deptCd);
|
|
|
+ //if (string.IsNullOrEmpty(userName)) {
|
|
|
+ // var date = CurrentTargetPatient.clnDate;
|
|
|
+ // userName = userVo.userName;
|
|
|
+ //}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 선택된 환자의 진료의가 퇴직한 경우 사용자 정보를 가져올 수 없어 로그인 한 사용자의 정보를 매핑하여 준다
|
|
|
+ */
|
|
|
+ var tmpOrddeptcd = CurrentEndUser?.DeptCode ?? String.Empty;
|
|
|
+ if (String.IsNullOrEmpty(tmpOrddeptcd)) {
|
|
|
+ userName = this.consentMain.ConsentExecuteInfo["loginUserName"];
|
|
|
+ deptCd = this.consentMain.ConsentExecuteInfo["userDeptCd"];
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ deptCd = tmpOrddeptcd;
|
|
|
}
|
|
|
|
|
|
string patientCode = vo.pid;
|
|
@@ -1024,7 +1037,7 @@ namespace CLIP.eForm.Consent.UI {
|
|
|
, userName
|
|
|
, userName
|
|
|
, mainDrId
|
|
|
- , CurrentEndUser.DeptCode
|
|
|
+ , deptCd
|
|
|
, consentMain.GetTotalPageCount().ToString()
|
|
|
, "P"
|
|
|
, "P"
|
|
@@ -1068,9 +1081,22 @@ namespace CLIP.eForm.Consent.UI {
|
|
|
string hosType = consentMain.ConsentExecuteInfo["dutinstcd"];
|
|
|
string deptCd = this.consentMain.ConsentExecuteInfo["userDeptCd"];
|
|
|
|
|
|
- if (string.IsNullOrEmpty(userName)) {
|
|
|
- UserVO userVo = hospitalWebService.GetUserInfo(userId, hosType, deptCd);
|
|
|
- userName = userVo.userName;
|
|
|
+ UserVO userVo = hospitalWebService.GetUserInfo(userId, hosType, deptCd);
|
|
|
+ //if (string.IsNullOrEmpty(userName)) {
|
|
|
+ // var date = CurrentTargetPatient.clnDate;
|
|
|
+ // userName = userVo.userName;
|
|
|
+ //}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 선택된 환자의 진료의가 퇴직한 경우 사용자 정보를 가져올 수 없어 로그인 한 사용자의 정보를 매핑하여 준다
|
|
|
+ */
|
|
|
+ var tmpOrddeptcd = CurrentEndUser?.DeptCode ?? String.Empty;
|
|
|
+ if (String.IsNullOrEmpty(tmpOrddeptcd)) {
|
|
|
+ userName = this.consentMain.ConsentExecuteInfo["loginUserName"];
|
|
|
+ deptCd = this.consentMain.ConsentExecuteInfo["userDeptCd"];
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ deptCd = tmpOrddeptcd;
|
|
|
}
|
|
|
|
|
|
string patientCode = CurrentTargetPatient.PatientCode;
|
|
@@ -1128,7 +1154,7 @@ namespace CLIP.eForm.Consent.UI {
|
|
|
, userName
|
|
|
, userName
|
|
|
, mainDrId
|
|
|
- , currentEndUser.DeptCode
|
|
|
+ , deptCd /* currentEndUser.DeptCode */
|
|
|
, consentMain.GetTotalPageCount().ToString()
|
|
|
, "P"
|
|
|
, "P"
|
|
@@ -1800,9 +1826,22 @@ namespace CLIP.eForm.Consent.UI {
|
|
|
string deptCd = this.consentMain.ConsentExecuteInfo["userDeptCd"];
|
|
|
string hosType = this.consentMain.ConsentExecuteInfo["dutinstcd"];
|
|
|
|
|
|
- if (string.IsNullOrEmpty(userName)) {
|
|
|
- UserVO userVo = hospitalWebService.GetUserInfo(userId, hosType, deptCd);
|
|
|
- userName = userVo.userName;
|
|
|
+ UserVO userVo = hospitalWebService.GetUserInfo(userId, hosType, deptCd);
|
|
|
+ //if (string.IsNullOrEmpty(userName)) {
|
|
|
+ // var date = CurrentTargetPatient.clnDate;
|
|
|
+ // userName = userVo.userName;
|
|
|
+ //}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 선택된 환자의 진료의가 퇴직한 경우 사용자 정보를 가져올 수 없어 로그인 한 사용자의 정보를 매핑하여 준다
|
|
|
+ */
|
|
|
+ var tmpOrddeptcd = CurrentEndUser?.DeptCode ?? String.Empty;
|
|
|
+ if (String.IsNullOrEmpty(tmpOrddeptcd)) {
|
|
|
+ userName = this.consentMain.ConsentExecuteInfo["loginUserName"];
|
|
|
+ deptCd = this.consentMain.ConsentExecuteInfo["userDeptCd"];
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ deptCd = tmpOrddeptcd;
|
|
|
}
|
|
|
|
|
|
string patientCode = CurrentTargetPatient.PatientCode;
|
|
@@ -1859,7 +1898,7 @@ namespace CLIP.eForm.Consent.UI {
|
|
|
, userName
|
|
|
, userName
|
|
|
, mainDrId
|
|
|
- , CurrentEndUser.DeptCode
|
|
|
+ , deptCd
|
|
|
, consentMain.GetTotalPageCount().ToString()
|
|
|
, "T"
|
|
|
, "P" // 임시저장 시 P 상태로 기록, 스캔 매수 입력 하도록 설정
|
|
@@ -2118,9 +2157,22 @@ namespace CLIP.eForm.Consent.UI {
|
|
|
string deptCd = this.consentMain.ConsentExecuteInfo["userDeptCd"];
|
|
|
string hosType = consentMain.ConsentExecuteInfo["dutinstcd"];
|
|
|
|
|
|
- if (string.IsNullOrEmpty(userName)) {
|
|
|
- UserVO userVo = hospitalWebService.GetUserInfo(userId, hosType, deptCd);
|
|
|
- userName = userVo.userName;
|
|
|
+ UserVO userVo = hospitalWebService.GetUserInfo(userId, hosType, deptCd);
|
|
|
+ //if (string.IsNullOrEmpty(userName)) {
|
|
|
+ // var date = CurrentTargetPatient.clnDate;
|
|
|
+ // userName = userVo.userName;
|
|
|
+ //}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 선택된 환자의 진료의가 퇴직한 경우 사용자 정보를 가져올 수 없어 로그인 한 사용자의 정보를 매핑하여 준다
|
|
|
+ */
|
|
|
+ var tmpOrddeptcd = CurrentEndUser?.DeptCode ?? String.Empty;
|
|
|
+ if (String.IsNullOrEmpty(tmpOrddeptcd)) {
|
|
|
+ userName = this.consentMain.ConsentExecuteInfo["loginUserName"];
|
|
|
+ deptCd = this.consentMain.ConsentExecuteInfo["userDeptCd"];
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ deptCd = tmpOrddeptcd;
|
|
|
}
|
|
|
|
|
|
string patientCode = CurrentTargetPatient.PatientCode;
|
|
@@ -2190,7 +2242,7 @@ namespace CLIP.eForm.Consent.UI {
|
|
|
, dschdd
|
|
|
, consentState
|
|
|
, mainDrId
|
|
|
- , CurrentEndUser.DeptCode
|
|
|
+ , deptCd // CurrentEndUser.DeptCode
|
|
|
, consentMain.GetTotalPageCount().ToString()
|
|
|
, actKind
|
|
|
, "P"
|