12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- @{
- ViewBag.Title = "授权信息";
- }
- @section head
- {
- <link href="~/Content/uploadify.css?v=@Hospital.Core.Utility.AppVersion(true)" rel="stylesheet" />
- }
- <div id="docs-body" class="container bg">
- <div class="modal" style="position: relative; top: auto; left: auto; right: auto; margin: 100px auto; z-index: 1; max-width: 100%;">
- <div class="modal-header">
- <h4>@ViewBag.Title</h4>
- </div>
- <div class="modal-body">
- <dl class="dl-horizontal">
- <dt>授权状态:</dt>
- <dd>@ViewBag.LicenseStatus</dd>
- <dt>授权说明:</dt>
- <dd>@ViewBag.LicenseStatusDesc</dd>
- @if (ViewBag.ServiceMessage != null && ViewBag.ServiceMessage != "")
- {
- <dt>技术维护期:</dt>
- <dd>@ViewBag.ServiceMessage</dd>
- }
- <dt>当前时间:</dt>
- <dd>@DateTime.Now.ToLongDateString()</dd>
- @if (ViewBag.LicenseStatus != "NotChecked")
- {
- <dt>硬件编码:</dt>
- <dd>@ViewBag.HardwareId</dd>
- <dt>授权文件:</dt>
- <dd>@ViewBag.Hos</dd>
- //if (ViewBag.LicenseStatus != "Licensed" || ViewBag.IsAboutToExpire == "True" ||(ViewBag.ServiceMessage != null && ViewBag.ServiceMessage != ""))
- //{
- <dt></dt>
- <dd style="margin-top: 10px;">
- <div id="file_upload"></div>
- <div id="upload-queue" style="margin-top: 10px;"></div>
- </dd>
- //}
- }
- </dl>
- </div>
- <div class="modal-footer">
- <a class="btn blue" href="@Url.Action("Index", "Home")">返回主页</a>
- <a class="btn default" href="@Url.Action("Index", "License")">刷新</a>
- </div>
- </div>
- </div>
- @section Scripts
- {
- <script src="~/assets/Huploadify/jquery.Huploadify.js?v=@Hospital.Core.Utility.AppVersion(true)"></script>
- <script type="text/javascript">
- $("#file_upload").uploadify({
- 'buttonClass': "btn btn-primary",
- 'buttonText': "上传授权文件",
- 'width': 140,
- 'height': 28,
- 'queueID': "upload-queue",
- //'fileSizeLimit': "100MB",
- 'uploadLimit': 1,
- 'multi': false,
- 'swf': appConfig.baseUrl + "/content/uploadify.swf",
- 'uploader': appConfig.baseUrl + "/License/Upload",
- 'scriptData': { 'var': (new Date()).getTime() },
- 'fileTypeDesc': "授权文件(*.license 文件)",
- 'fileTypeExts': "*.license",
- 'onUploadStart': function (file) {
- $('#alert-msg').html('正在上传 ' + file.name);
- },
- 'onUploadSuccess': function (file, data, response) {
- var result = eval("(" + response + ")");
- if (result) {
- if (result.success) {
- $.blockUI();
- window.location.reload();
- }
- else {
- alert(result.message);
- }
- }
- else {
- alert("上传错误,请重试。");
- }
- }
- });
- </script>
- }
|