123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276 |
- @using Hospital.Model.D_Models.Models
- @using Hospital.Model.Models
- @*<link href="~/Content/themes/jquery-ui-bootstrap/jquery-ui-1.10.1.custom.css?v=@Hospital.Core.Utility.AppVersion(true)" rel="stylesheet" />
- <link href="~/assets/Report/bower_components/bootstrap/dist/bootstrap.css" rel="stylesheet" />
- <link href="~/Content/ui-dialog-custom.css" rel="stylesheet" />*@
- @section head
- {
- <style>
- #alertWaringWrap {
- display: none;
- }
- </style>
- }
- @model D_MedicalRecord
- @{
- var userpermissionList = ViewBag.UserPermissionsIDSet as HashSet<int>;
- var isLeakManager = Hospital.Core.Utility.IsExitDataInList(userpermissionList, 18);
- var userprofile = ViewBag.UserProfile as Q_UserProfile;
- var isDataManager = Hospital.Core.Utility.IsExitDataInList(userpermissionList, 6);
- var isDeptDataManager = Hospital.Core.Utility.IsExitDataInList(userpermissionList, 7);
- var isDataFlow = Hospital.Core.Utility.IsExitDataInList(userpermissionList, 8);
- var isDataShenheEdit = Hospital.Core.Utility.IsExitDataInList(userpermissionList, 9);
- var isDataShenheEdit1 = Hospital.Core.Utility.IsExitDataInList(userpermissionList, 13); //是否可编辑审核前的数据
- var isTianbao = Hospital.Core.Utility.IsExitDataInList(userpermissionList, 10);
- var isFinalManager = Hospital.Core.Utility.IsExitDataInList(userpermissionList, 23);
- var CanReportChangeStatus = bool.Parse(Hospitol.Common.OptionsHelper.GetOption("CanReportChangeStatus") ?? "false"); //是否允许填报人员填报数据时标记无需上报
- var OpenAutoReportCheck = bool.Parse(Hospitol.Common.OptionsHelper.GetOption("OpenAutoReportCheck") ?? "false");
- var OpenReportCheck = bool.Parse(Hospitol.Common.OptionsHelper.GetOption("OpenReportCheck") ?? "false");
- var isEdit_0 = Hospital.Core.Utility.IsExitDataInList(userpermissionList, 32);
- var isEdit_8 = Hospital.Core.Utility.IsExitDataInList(userpermissionList, 33);
- //var OpenShSuspectRecord = bool.Parse(Hospitol.Common.OptionsHelper.GetOption("OpenShSuspectRecord") ?? "false");
- }
- <div class="navbar navbar-static-top navbar-default" style="background-color:white">
- <div class="navbar-inner">
- <div class="container" style="width:100%;padding-left: 100px;">
- @if (ViewBag.Logo != null)
- {
- <img src="@ViewBag.Logo" id="logoImg" style="margin:5px 5px 5px 0px;" />
- }
- <span class="brand text-brand" style="color:#434343;text-shadow:none;margin-left:5px;padding-left:0px" id="hospitalLogoIcon">
- <i class="fa fa-file-text-o"></i>
- @ViewBag.Title
- <small class="mg-l-20">
- <a id="report-tip-popover" class="cursor-help" data-placement="bottom"><span>填报要求</span> <i class="fa fa-caret-down"></i></a>
- </small>
- </span>
- <div id="report-actions" class="btn-group pull-right" style="padding-right:100px;">
- @if (!string.IsNullOrEmpty((string)ViewBag.SearchHISData))
- {
- <button class="btn btn-info" id="btn-searchHISViewData" data-url="@ViewBag.SearchHISData" data-hospitalname="@ViewBag.HospitalName" data-username="@userprofile.UserName" style="width:110px;"><i class="icon-white icon-remove"></i>@ViewBag.SearchHISDataBtnName</button>
- }
- @if (!string.IsNullOrEmpty((string)ViewBag.SearchHISData2))
- {
- <button class="btn btn-info" id="btn-searchHISViewData" data-url="@ViewBag.SearchHISData2" data-hospitalname="@ViewBag.HospitalName" data-username="@userprofile.UserName" style="width:110px;"><i class="icon-white icon-remove"></i>@(ViewBag.SearchHISDataBtnName + "2")</button>
- }
- @if ((bool)ViewBag.OpenDieaseAutoYyfx)
- {
- <button class="btn btn-info" id="btn-yyfxCotent" style="width:145px;"><i class="icon-white icon-remove"></i>查看完整病历溯源</button>
- }
- @if (ViewBag.LeakId != null && (CanReportChangeStatus || isLeakManager))
- {
- <button class="btn btnUnreport" id="btn-change-status-wusb"><i class="fa fa-times-circle-o"></i>无需上报</button>
- }
- @if (Model.ID > 0)
- {
- var islock = Model.IsLock.HasValue ? Model.IsLock : false;
- if (Model.BackUpFlag == 0 && ViewBag.IsV2 && !islock)
- {
- if ((Model.Add_UserProfileId == userprofile.PID && (Model.Status == 0 || Model.Status == 8)) ||
- ViewBag.IsSuper ||
- ((isDataManager || isDeptDataManager) && isDataShenheEdit && Model.Status == 11) ||
- ((isDataManager || isDeptDataManager || Model.Add_UserProfileId == userprofile.PID) && isDataShenheEdit1 && Model.Status == 1) ||
- ((isDataManager || isDeptDataManager) && isEdit_0 && Model.Status == 0) ||
- ((isDataManager || isDeptDataManager) && isEdit_8 && Model.Status == 8)
- )
- {
- if (Model.Ncis_IsExportWsb == null || !Model.Ncis_IsExportWsb.Value)
- {
- //未对接到卫健委的数据才允许修改
- <button class="btn btn-info" id="edit"><i class="fa fa-edit"></i>编辑</button>
- }
- if (isDataManager || isDeptDataManager || ViewBag.IsSuper)
- {
- if (Model.Status != 9 && Model.Status != 0 && (userprofile.UserName == "admin" || (Model.Status != 20))) //不等于作废或暂存或审核通过 && item.Status!=11
- {
- if (isDataFlow)
- {//有数据流转权限
- <button class="btn btn-success" id="btn-change-status" data-id="@(Model.ID)" data-class="@(Model.ReportClass)" data-statusname="@(((Hospital.Core.Enum.ReportEnum.Status)Model.Status).ToString())" data-status="@(Model.Status)"><i class="fa fa-check"></i>审核</button>
- }
- else
- {
- <button class="btn btn-success" id="btn-change-status1" data-id="@(Model.ID)" data-class="@(Model.ReportClass)" data-statusname="@(((Hospital.Core.Enum.ReportEnum.Status)Model.Status).ToString())" data-status="@(Model.Status)"><i class="fa fa-check"></i>审核</button>
- }
- }
- }
- if (ViewBag.IsSuper || isDataManager || isDeptDataManager)
- {
- <a class="btn" target="_blank" href="@Url.Action("PreView", "Report", new { @id = Model.ID, @returnUrl = HttpUtility.UrlEncode(Request.RawUrl) })" title="@ViewBag.DefindNameCL">
- <i class="fa fa-list"></i>详情
- </a>
- }
- if (CanReportChangeStatus || isLeakManager)
- {
- <button class="btn btnUnreport hidden" id="btn-change-status-wusb"><i class="icon-white icon-remove"></i>无需上报</button>
- }
- <button class="btn btn-primary" id="valRepeat" style="display:none;"><i class="fa fa-check"></i>验证重复</button>
- if (Model.Status == 0 || Model.Status == 8)
- {
- <button class="btn btn-info" id="save" style="display:none;"><i class="fa fa-save"></i>暂存</button>
- }
- <button class="btn btn-success" id="submit" style="display:none;"><i class="fa fa-upload"></i>上报</button>
- if (OpenReportCheck)
- {
- <button class="btn btn-info" id="btn-reportCheck" style="width: 115px; display: none;"><i class="fa fa-check-circle-o" aria-hidden="true"></i>指标质检</button>
- }
- }
- }
- }
- else if (ViewBag.IsV2)
- {
- if (CanReportChangeStatus || isLeakManager)
- {
- <button class="btn btnUnreport hidden" id="btn-change-status-wusb"><i class="icon-white icon-remove"></i>无需上报</button>
- }
- <button class="btn btn-primary" id="valRepeat"><i class="fa fa-check"></i>验证重复</button>
- <button class="btn btn-info" id="save"><i class="fa fa-save"></i>暂存</button>
- <button class="btn btn-success" id="submit"><i class="fa fa-upload"></i>上报</button>
- if (OpenReportCheck)
- {
- <button class="btn btn-info" id="btn-reportCheck" style="width:115px;"><i class="fa fa-check-circle-o" aria-hidden="true"></i>指标质检</button>
- }
- }
- @if (!string.IsNullOrEmpty(Request.QueryString["returnUrl"]) && Request.QueryString["returnUrl"].Contains("Report") && Request.QueryString["returnUrl"].Contains("List"))
- {
- <a role="button" class="btn btn-default clostbtn" title="关闭之前请先点保存,否则所做更改无效。" href="javascript:history.go(-1)"><i class="fa fa-times"></i>关闭</a>
- }
- else
- {
- <a role="button" class="btn btn-default clostbtn" title="关闭之前请先点保存,否则所做更改无效。"><i class="fa fa-times"></i>关闭</a>
- }
- </div>
- </div>
- </div>
- </div>
- <div class="control-group hide" id="SendHISData">
- <label class="control-label" style="width:150px;">唯一检测数据值:</label><div class="controls">
- <input type="text" class="textbox" id="uniqueValue" style="width:260px;" /><span style="color:red;margin-left:30px;" id="uniqueMessage"></span>
- </div>
- </div>
- @*@Scripts.Render("~/bundles/jquery")
- @Scripts.Render("~/bundles/bootstrap")
- @Scripts.Render("~/bundles/jqueryui")
- @Scripts.Render("~/bundles/knockout")*@
- @*<script type="text/javascript" src="~/Scripts/jquery.easyui.min.js"></script>
- <script src="~/Scripts/jquery.cookie.js?v=@Hospital.Core.Utility.AppVersion(true)"></script>
- *@
- <script>
- window.onbeforeunload = onbeforeunload_handler;
- function onbeforeunload_handler() {
- var warning = "确认退出?";
- $.unblockUI();
- return warning;
- }
- $('.clostbtn').click(function () {
- window.opener = null;
- window.close();
- })
- var global = {
- itemId: '@Model.ID',
- reportId: '@Model.ReportNo',
- currentUser: '@ViewBag.UserName',
- currentUserId: '@ViewBag.UserProfileId',
- Mould1: '@ViewBag.Mould1',
- Mould2: '@ViewBag.Mould2',
- Mould3: '@ViewBag.Mould3',
- Mould4: '@ViewBag.Mould4',
- Mould5: '@ViewBag.Mould5',
- OpenAutoReportCheck:'@OpenAutoReportCheck',
- urls: {
- UpdateStatus: '@Url.Action("UpdateStatus", "Report")',
- UpdateIsFinal: '@Url.Action("UpdateIsFinal", "Report")',
- IssueTag: {
- GetIssueTagsJson: '@Url.Action("GetIssueTagsJson", "IssueTag")',
- GetIssueTagJson: '@Url.Action("GetIssueTagJson", "IssueTag")',
- AddTag: '@Url.Action("AddTag", "IssueTag")',
- UpdateTag: '@Url.Action("UpdateTag", "IssueTag")',
- DeleteTag: '@Url.Action("DeleteTag", "IssueTag")'
- },
- uploadedFile: {
- GetFiles: '@Url.Action("GetFiles", "UploadFile")',
- Download: '@Url.Action("Download", "UploadFile")',
- Delete: '@Url.Action("Delete", "UploadFile")',
- Update: '@Url.Action("Update", "UploadFile")'
- },
- uploadify: {
- swf: '@Url.Content("~/Content/uploadify.swf")',
- uploader: '@Url.Action("Upload", "UploadFile")'
- },
- Issues: {
- GetIssusJson: '@Url.Action("GetIssuesJson", "Issue")',
- AddIssue: '@Url.Action("AddIssue", "Issue")',
- DeleteIssue: '@Url.Action("DeleteIssue", "Issue")',
- UpdateIssue: '@Url.Action("UpdateIssue", "Issue")'
- },
- Logs: {
- GetLogJson: '@Url.Action("GetLogJson", "ReportLog")',
- AddLog: '@Url.Action("AddLog", "ReportLog")',
- DeleteLog: '@Url.Action("DeleteLog", "ReportLog")'
- }
- }
- };
- $('input:radio[name="change-status"]').click(function () {
- //审核通过
- if ($(this).val() == 11) {
- $("#checkTo").removeClass("hide");
- $("#checkToWSB").change(function () {
- console.log($("#checkToWSB").attr("checked"));
- if ($("#checkToWSB").attr("checked") == undefined) {
- $("#checkToWSB").attr({ "checked": true });
- }else
- if ($("#checkToWSB").attr("checked") == "checked") {
- $("#checkToWSB").removeAttr("checked");
- }
- });
- $("#isFinal").change(function () {
- console.log($("#isFinal").attr("checked"));
- if ($("#isFinal").attr("checked") == undefined) {
- $("#isFinal").attr({ "checked": true });
- }else
- if ($("#isFinal").attr("checked") == "checked") {
- $("#isFinal").removeAttr("checked");
- }
- });
- } else {
- $("#checkTo").addClass("hide");
- $("#checkToWSB").removeAttr("checked");
- $("#isFinal").removeAttr("checked");
- }
- //移交待审
- if ($(this).val() == 2) {
- $("#YJDept").removeClass("hide");
- } else {
- $("#YJDept").addClass("hide");
- }
- });
- </script>
|