Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tiantan-gate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxinghua
tiantan-gate
Commits
32e823ff
Commit
32e823ff
authored
Jul 10, 2020
by
wangxinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
只有陪住医嘱 陪住人员的二维码才长期有效
后台设置医嘱的时候 如果住院号未入库 那么先入库
parent
8e9b38b9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
Authority.php
TTYYGate/application/common/model/Authority.php
+1
-1
HospitalAction.class.php
TTYYGate_Manage/Lib/Action/HospitalAction.class.php
+10
-4
No files found.
TTYYGate/application/common/model/Authority.php
View file @
32e823ff
...
...
@@ -115,7 +115,7 @@ class Authority extends Model
->
join
(
'__OBJECT_AUTHORITY__ oa'
,
'a.id=oa.authority_id'
)
->
where
(
"oa.object_id=
{
$did
}
and oa.type=3
{
$auth_id
}
"
)
->
value
(
'rule'
);
if
(
$result
[
'd'
]
&&
$pa
[
'pz_status'
]
==
1
)
if
(
$result
[
'd'
]
&&
$pa
[
'pz_status'
]
==
1
&&
$patientInfo
[
'VISIT_SPECIAL'
][
'YNSTAY'
]
==
1
)
$result
[
'p'
]
=
1
;
}
}
...
...
TTYYGate_Manage/Lib/Action/HospitalAction.class.php
View file @
32e823ff
...
...
@@ -50,11 +50,12 @@ class HospitalAction extends CommonAction
{
/*
//测试数据
$list[0] = array('ZHUYUANHAO'=>'1','BEDNO'=>'2','PAT_NAME'=>'张三','SHENFENZHENG'=>'13102219880318913','TELPHONE'=>'1352179****');
$list[0] = array('ZHUYUANHAO'=>'1','BEDNO'=>'2','PAT_NAME'=>'张三','SHENFENZHENG'=>'13102219880318913','TELPHONE'=>'1352179****','status'=>1);
$list[1] = array('ZHUYUANHAO'=>'2','BEDNO'=>'2','PAT_NAME'=>'张三','SHENFENZHENG'=>'13102219880318913','TELPHONE'=>'1352179****','status'=>1);
$this->assign('list',$list);
$this->display();
exit;
*/
//
*/
import
(
'@.ORG.Oracle'
);
import
(
"ORG.Page"
);
...
...
@@ -325,8 +326,13 @@ class HospitalAction extends CommonAction
$Object_authority
->
addAll
(
$oaData
);
}
//启用停用
M
(
"Patient_authority"
)
->
where
(
"zhuyuanhao=
$zhuyuanhao
"
)
->
save
(
$pa_data
);
$Patient_authority
=
M
(
"Patient_authority"
);
$vo
=
$Patient_authority
->
where
(
"zhuyuanhao='
$zhuyuanhao
'"
)
->
field
(
'id'
)
->
find
();
if
(
empty
(
$vo
))
{
$this
->
addPatientAut
(
$Patient_authority
,
$zhuyuanhao
);
}
$Patient_authority
->
where
(
"zhuyuanhao=
$zhuyuanhao
"
)
->
save
(
$pa_data
);
$result
=
true
;
}
catch
(
Exception
$e
){
$result
=
false
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment