From 19c415a2047d2407383c147f6f8fea536be9a4da Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期一, 25 十月 2021 08:47:02 +0800
Subject: [PATCH] 提交
---
zhengcaioa/zhengcaioa/Views/DailyManagement/EditWorkAnPai.cshtml | 2
zhengcaioa/zhengcaioa/Views/SysCode/Editfalv.cshtml | 346 ++++++++++++++++++++++++++++++++++++++
zhengcaioa/zhengcaioa/Views/SysCode/Indexfalv.cshtml | 66 +++++++
zhengcaioa/zhengcaioa/Views/DailyManagement/EditWorkmy.cshtml | 2
zhengcaioa/zhengcaioa/Controllers/SysCodeController.cs | 67 +++++++
zhengcaioa/zhengcaioa/Views/DailyManagement/EditMemoBook.cshtml | 2
6 files changed, 482 insertions(+), 3 deletions(-)
diff --git a/zhengcaioa/zhengcaioa/Controllers/SysCodeController.cs b/zhengcaioa/zhengcaioa/Controllers/SysCodeController.cs
index 926924e..31bf640 100644
--- a/zhengcaioa/zhengcaioa/Controllers/SysCodeController.cs
+++ b/zhengcaioa/zhengcaioa/Controllers/SysCodeController.cs
@@ -8,6 +8,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
+using System.Transactions;
using zhengcaioa.Models;
namespace zhengcaioa.Controllers
@@ -400,5 +401,71 @@
}
+
+ [CheckLogin]
+ public IActionResult Indexfalv()
+ {
+ var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User"));
+ ViewData["curentuser"] = curentuser;
+ List<ActionEntity> actionlist = new List<ActionEntity>();
+ ActionEntity actionEntity = new ActionEntity();
+ actionEntity.OpenType = 0;
+ actionEntity.ActionUrl = "";
+ actionEntity.ActionFun = "Search";
+ actionEntity.PageIco = "fa fa-search";
+ actionEntity.ActionName = "鏌ヨ";
+ actionlist.Add(actionEntity);
+ ActionEntity actionEntity1 = new ActionEntity();
+ actionEntity1.OpenType = 0;
+ actionEntity1.ActionUrl = "";
+ actionEntity1.ActionFun = "Add";
+ actionEntity1.PageIco = "fa fa-plus";
+ actionEntity1.ActionName = "鏂板";
+ actionlist.Add(actionEntity1);
+ ViewData["ActionInfo"] = actionlist;
+ return View();
+ }
+
+ [CheckLogin]
+ public IActionResult GetListfalv(SysCodeDtlSearchEntity searchEntity)
+ {
+ var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User"));
+ ViewData["curentuser"] = curentuser;
+ //JsonResult jsonResult = new JsonResult(_liaotianService.SearchByPaging(search), new Newtonsoft.Json.Serialization.DefaultContractResolver());
+ searchEntity.CodeTable = "expert_test_topicjiexi";
+ searchEntity.CodeField = "falv";
+ return new JsonResult(_sysCodeService.SearchSysCodeDtlPaging(searchEntity));
+ }
+
+
+
+ public IActionResult Editfalv(string id)
+ {
+ var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User"));
+ ViewData["curentuser"] = curentuser;
+
+
+ SysCodeDtlEntity sysCodeDtlEntity = new SysCodeDtlEntity();
+
+
+ sysCodeDtlEntity = _sysCodeService.GetSysCodeDtlInfo(id, "expert_test_topicjiexi", "falv");
+
+
+ ViewData.Model = sysCodeDtlEntity;
+
+
+
+
+ return View();
+ }
+
+
+
+
+
+
+
+
+
}
}
diff --git a/zhengcaioa/zhengcaioa/Views/DailyManagement/EditMemoBook.cshtml b/zhengcaioa/zhengcaioa/Views/DailyManagement/EditMemoBook.cshtml
index 68cec55..5bb8dd7 100644
--- a/zhengcaioa/zhengcaioa/Views/DailyManagement/EditMemoBook.cshtml
+++ b/zhengcaioa/zhengcaioa/Views/DailyManagement/EditMemoBook.cshtml
@@ -118,7 +118,7 @@
<tr>
<td class="title"><label id="shixian">鎻愰啋浜嬮」</label></td>
<td>
- <textarea class="data" id="Context" name="Context" style="overflow-y:hidden" cols="60" rows="10">@Model.Context </textarea>
+ <textarea class="data" id="Context" maxlength="500" name="Context" style="overflow-y:hidden" cols="60" rows="10">@Model.Context </textarea>
</td>
</tr>
diff --git a/zhengcaioa/zhengcaioa/Views/DailyManagement/EditWorkAnPai.cshtml b/zhengcaioa/zhengcaioa/Views/DailyManagement/EditWorkAnPai.cshtml
index c95b63b..a54d9f3 100644
--- a/zhengcaioa/zhengcaioa/Views/DailyManagement/EditWorkAnPai.cshtml
+++ b/zhengcaioa/zhengcaioa/Views/DailyManagement/EditWorkAnPai.cshtml
@@ -170,7 +170,7 @@
<tr>
<td class="title"><label id="shixian">宸ヤ綔鍐呭<i class="red">*</i></label></td>
<td>
- <textarea class="data" id="Context" name="Context" style="overflow-y:hidden" cols="60" rows="10">@Model.Context </textarea>
+ <textarea class="data" id="Context" maxlength="500" name="Context" style="overflow-y:hidden" cols="60" rows="10">@Model.Context </textarea>
</td>
</tr>
<tr>
diff --git a/zhengcaioa/zhengcaioa/Views/DailyManagement/EditWorkmy.cshtml b/zhengcaioa/zhengcaioa/Views/DailyManagement/EditWorkmy.cshtml
index 1e30d14..f937e90 100644
--- a/zhengcaioa/zhengcaioa/Views/DailyManagement/EditWorkmy.cshtml
+++ b/zhengcaioa/zhengcaioa/Views/DailyManagement/EditWorkmy.cshtml
@@ -139,7 +139,7 @@
<tr>
<td class="title"><label id="shixian">宸ヤ綔鍐呭<i class="red">*</i></label></td>
<td>
- <textarea class="data" id="Context" name="Context" style="overflow-y:hidden" cols="60" rows="10">@Model.Context </textarea>
+ <textarea class="data" id="Context" maxlength="500" name="Context" style="overflow-y:hidden" cols="60" rows="10">@Model.Context </textarea>
</td>
</tr>
<tr>
diff --git a/zhengcaioa/zhengcaioa/Views/SysCode/Editfalv.cshtml b/zhengcaioa/zhengcaioa/Views/SysCode/Editfalv.cshtml
new file mode 100644
index 0000000..2a9cd7d
--- /dev/null
+++ b/zhengcaioa/zhengcaioa/Views/SysCode/Editfalv.cshtml
@@ -0,0 +1,346 @@
+锘緻model DTO.SysCodeDtlEntity
+@using DTO;
+@using zhengcaioa.Models;
+@{
+
+
+
+
+
+
+
+
+
+
+
+}
+@{
+ Layout = null;
+}
+
+<!DOCTYPE html>
+<html>
+<head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
+ <meta name="description" content="">
+ <meta name="author" content="ThemeBucket">
+ <title>@(SiteConfig.SiteName)</title>
+ <link href="~/css/bootstrap.min.css" rel="stylesheet">
+ <link href="~/css/font-awesome.min.css" rel="stylesheet">
+ <link href="~/css/animate.min.css" rel="stylesheet">
+
+ @*<link href="~/css/plugins/iCheck/custom.css" rel="stylesheet">*@
+ <link href="~/css/style.min.css" rel="stylesheet">
+ <link href="~/css/plugins/chosen/chosen.css" rel="stylesheet">
+ @*<link href="~/js/plugins/layer/skin/layer.css" rel="stylesheet">*@
+ @*<link href="~/css/plugins/datapicker/datepicker3.css" rel="stylesheet">*@
+ <link href="~/css/style.min.css" rel="stylesheet">
+ <link href="~/css/plugins/toastr/toastr.min.css" rel="stylesheet" />
+ <link href="~/css/plugins/webuploader/webuploader.css" rel="stylesheet" />
+
+ <style type="text/css">
+ .webuploader-pick {
+ position: relative;
+ display: inline-block;
+ cursor: pointer;
+ background: #00b7ee;
+ padding: 8px 14px 7px 14px;
+ color: #fff;
+ text-align: center;
+ border-radius: 3px;
+ overflow: hidden;
+ }
+
+ div.clearfix > label {
+ padding-top: 8px;
+ }
+
+ .chosen-container {
+ border-radius: 1px;
+ border: 1px solid #e5e6e7;
+ }
+
+ .col-md-1.control-label {
+ padding-right: 0px;
+ font-weight: 400;
+ }
+ </style>
+
+ <!-- jqgrid-->
+ @*<link href="~/css/plugins/jqgrid/ui.jqgrid.css" rel="stylesheet">*@
+ <script language="javascript" src="~/js/jquery.min.js" type="text/javascript"></script>
+ <script src="~/js/bootstrap.min.js"></script>
+ @*<script src="~/js/plugins/bootstro/bootstro.js"></script>*@
+
+ <!--瀹瑰櫒-->
+ @*<script language="javascript" src="~/js/datehelper.js" type="text/javascript"></script>*@
+ @*<script language="javascript" src="~/js/plugins/query/jquery.query-object.js" type="text/javascript"></script>*@
+ @*<script language="javascript" src="~/js/plugins/iCheck/icheck.min.js" type="text/javascript"></script>*@
+ <script language="javascript" src="~/js/plugins/chosen/chosen.jquery.js" type="text/javascript"></script>
+ @*<script language="javascript" src="~/js/plugins/datapicker/bootstrap-datepicker.js" type="text/javascript"></script>*@
+ <script language="javascript" src="~/js/plugins/layer/layer.js" type="text/javascript"></script>
+ @*<script src="~/js/plugins/jqgrid/jquery.jqGrid.min.js" type="text/javascript"></script>*@
+ @*<script src="~/js/plugins/jqgrid/i18n/grid.locale-cn.js" type="text/javascript"></script>*@
+ <script src="~/js/plugins/toastr/toastr.min.js" type="text/javascript"></script>
+ <script src="~/js/plugins/webuploader/webuploader.min.js"></script>
+
+ <script language="javascript" src="~/js/common-layout.js" type="text/javascript"></script>
+ <script src="~/js/plugins/layer/laydate/laydate.js" type="text/javascript"></script>
+ @*<script src="~/js/plugins/iTexbox/itextbox.js" type="text/javascript"></script>*@
+ @*<script src="~/js/plugins/iuploader/iuploader.js"></script>*@
+ <script src="~/js/TUJS.js"></script>
+</head>
+<body class="gray-bg" style="overflow:auto">
+ <form id="formtest">
+ <div class="wrapper wrapper-content" id="ibox-content" style="padding:15px;">
+ <div class="row">
+ <div class="col-sm-12">
+ <div class="ibox float-e-margins">
+ <div class="ibox-title">
+ <h5> <i class="fa fa-list"></i> 鍩烘湰淇℃伅</h5>
+ </div>
+ <div id="div_content" class="ibox-content" style="background-color:white;">
+ <div class="row">
+ <div class="clearfix layer-area" style="padding-bottom:15px;">
+
+
+
+
+
+
+
+
+
+ <div class="clearfix layer-area" style="padding-bottom:15px;">
+ <label class="text-right col-sm-1 col-md-1 control-label">缂栫爜</label>
+ <div class="col-sm-2 col-md-2" style="width:5%;">
+ <input class="form-control" label="缂栫爜" id="CodeSn" name="CodeSn" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="50" ismust="true" type="text" value="@Model.CodeSn">
+
+ <input type="hidden" name="Id" value="@Model.Id" />
+
+ <input type="hidden" name="CodeId" value="@Model.CodeId" />
+ </div>
+ </div>
+
+ <div class="clearfix layer-area" style="padding-bottom:15px;">
+ <label class="text-right col-sm-1 col-md-1 control-label">鍚嶇О</label>
+ <div class="col-sm-2 col-md-2">
+ <input class="form-control" label="鍚嶇О" id="Comments" name="Comments" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="50" ismust="true" type="text" value="@Model.Comments">
+
+
+ </div>
+ </div>
+ <div class="clearfix layer-area" style="padding-bottom:15px;">
+ <label class="text-right col-sm-1 col-md-1 control-label">鎺掑簭</label>
+ <div class="col-sm-2 col-md-2" style="width:5%;">
+ <input class="form-control" label="鎺掑簭" id="Sort" name="Sort" labtype="txt" addvisible="true" editvisible="true" maxlength="100" reg="" ismust="flase" type="text" value="@Model.Sort" oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)">
+
+ </div>
+
+ </div>
+ <div class="clearfix layer-area" style="padding-bottom:15px;">
+ <label class="text-right col-sm-1 col-md-1 control-label">澶囨敞</label>
+ <div class="col-sm-6 col-md-6">
+ <input class="form-control" label="澶囨敞" id="Contents" name="Contents" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="300" ismust="true" type="text" value="@Model.Contents">
+
+
+ </div>
+ </div>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ </div>
+
+
+
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ <div class="wrapper wrapper-content" style="margin-top:0px"></div>
+ <div class="ibox-content" id="top" style="z-index:100; position:fixed; height:50px; width:100%;bottom:0; text-align: right; padding-top:8px ">
+ <div class="" style="float:right;" data-bootstro-width="500px" data-bootstro-content="鍔熻兘鎸夐挳锛氣�滀繚瀛樷�濓紝鈥滃垹闄も��">
+ <a class="btn btn-success" href="javascript:void(0)" onclick="delPosition();" style="margin-left:4px; border-radius:4px;">
+ <i class="glyphicon glyphicon-remove"></i> <span class="bold">鍒犻櫎</span>
+ </a>
+
+ <a class="btn btn-success" href="javascript:void(0)" onclick="savePosition();" style="margin-left:4px; border-radius:4px;">
+ <i class="glyphicon glyphicon-ok"></i> <span class="bold">鎻愪氦</span>
+ </a>
+
+ <a class="btn btn-success" href="javascript:void(0)" onclick="closepage();" style="margin-left:4px; border-radius:4px;">
+ <i class="glyphicon glyphicon-remove"></i> <span class="bold">鍏抽棴</span>
+ </a>
+ </div>
+ </div>
+
+ </form>
+
+ <script type="text/javascript">
+
+
+ var hh = document.body.clientHeight - $('.ibox-title').height() - $("#top").height() * 2;
+ $("#div_content").height(hh);
+
+ toastr.options = {
+ "closeButton": true,
+ "debug": false,
+ "progressBar": true,
+ "positionClass": "toast-bottom-right",
+ "onclick": null,
+ "showDuration": "300",
+ "hideDuration": "600",
+ "timeOut": "4500",
+ "extendedTimeOut": "600",
+ "showEasing": "swing",
+ "hideEasing": "linear",
+ "showMethod": "fadeIn",
+ "hideMethod": "fadeOut"
+ };
+
+
+
+
+
+
+ var id = '@Model.Id';
+
+ var delPosition = function () {
+ if (id == null || id == '') {
+ toastr.warning("璇峰厛淇濆瓨");
+ return;
+ }
+ $.ajax({
+ type: "GET",
+ url: "/SysCode/NullifySysCodeDtl?id=" + id,
+ dataType: "json",
+ global: false,
+ data: '',
+ success: function (data) {
+
+
+ if (data.Result) {
+ // parent._afterSave(true);
+ parent.layer.msg('鍒犻櫎鎴愬姛', { icon: 6 });
+ _pageAutoClose();//鑷姩鍏抽棴椤甸潰鏂规硶
+ }
+ else {
+ // toastr.error("");
+ parent.layer.msg('鍒犻櫎澶辫触', { icon: 5 });
+ }
+
+ },
+ error: function () {
+ if ($.isNumber(imgLoad)) {
+ parent.layer.close(imgLoad);
+ }
+ //toastr.error("淇濆瓨澶辫触");
+
+ parent.layer.msg('淇濆瓨澶辫触', { icon: 5 });
+ }
+ });
+
+ }
+
+
+
+ var closepage = function () {
+ _pageAutoClose();//鑷姩鍏抽棴椤甸潰鏂规硶
+ }
+
+
+
+ // 淇濆瓨宀椾綅淇℃伅
+ var savePosition = function () {
+
+
+
+
+ if ($.trim($("#CodeSn").val()) == '') {
+ toastr.warning("缂栫爜涓嶈兘涓虹┖");
+ return;
+ }
+
+
+ if ($.trim($("#Comments").val()) == '') {
+ toastr.warning("鍚嶇О涓嶈兘涓虹┖");
+ return;
+ }
+
+
+
+
+
+ // var data = { id: $("#Id").val(), DocType: $("#DocType").val(), DocDept: $("#DocDept").val(), PublishTime: $("#PublishTime").val(), DocNo: $("#DocNo").val(), DocTitle: $("#DocTitle").val(), DocContent: ueue, DocZtc: $("#DocZtc").val(), Printtimes: $("#Printtimes").val(), DocCsdw: $("#DocCsdw").val(), PrintStatus: $("#PrintStatus").val()}
+ $.ajax({
+ type: "POST",
+ url: "/SysCode/Savequestiontype",
+ dataType: "json",
+ global: false,
+ data: $('form').serializeArray(),
+ success: function (data) {
+
+
+
+ if (data.Result) {
+ // parent._afterSave(true);
+ parent.layer.msg('鎴愬姛淇濆瓨', { icon: 6 });
+
+
+ window.location = "/SysCode/Editfalv";
+
+ //try {
+ // _pageAutoClose();//鑷姩鍏抽棴椤甸潰鏂规硶
+ //}
+ //catch (err) {
+ // parent._CloseTab1("/HrJibengongzi/Edit/");
+ //}
+
+ }
+ else {
+ // toastr.error("澶辫触");
+ parent.layer.msg(data.Message, { icon: 5 });
+ }
+
+ },
+ error: function () {
+
+
+ parent.layer.msg('澶辫触', { icon: 5 });
+ }
+ });
+ }
+
+
+
+
+ function _pageAutoClose() {
+ parent.window._reloadPageData();
+ var index = parent.layer.getFrameIndex(window.name);
+ parent.layer.isRefresh = true;
+ parent.layer.closeAll('loading');
+ parent.layer.close(index);
+ return false;
+ }
+
+
+ </script>
+</body>
+</html>
\ No newline at end of file
diff --git a/zhengcaioa/zhengcaioa/Views/SysCode/Indexfalv.cshtml b/zhengcaioa/zhengcaioa/Views/SysCode/Indexfalv.cshtml
new file mode 100644
index 0000000..01e6b1c
--- /dev/null
+++ b/zhengcaioa/zhengcaioa/Views/SysCode/Indexfalv.cshtml
@@ -0,0 +1,66 @@
+锘緻{
+ ViewBag.Title = "falv";
+ Layout = "~/Views/Shared/_Layout_Search.cshtml";
+}
+@section headerStyle{
+ <script type="text/javascript">
+ dataCol = [
+ { label: 'id', name: 'Id', labtype: 'txt', hidden: true },
+ {
+ label: '缂栫爜', name: 'CodeSn', labtype: 'txt', hidden: false, width: 50,
+ formatter: function (cellvalue, options, rowObject) {
+ return "<a onclick=\"OpenWindow('" + rowObject.Comments + "','98%','100%', '/SysCode/Editfalv?id=" + rowObject.Id + "')\" >" + cellvalue + "</a>";
+ }
+ },
+ {
+ label: '鍚嶇О', name: 'Comments', labtype: 'txt', hidden: false, width: 200,
+
+ },
+ {
+ label: '鎺掑簭', name: 'Sort', labtype: 'txt', hidden: false, width: 50,
+
+ },
+ {
+ label: '澶囨敞', name: 'Contents', labtype: 'txt', hidden: false, width: 300,
+
+ },
+ { label: '鐘舵��', name: 'RecStatus', labtype: 'txt', hidden: true },
+ { label: '鍒涘缓浜�', name: 'Creater', labtype: 'txt', hidden: true },
+ { label: '鍒涘缓鏃堕棿', name: 'Createtime', labtype: 'txt', hidden: true },
+ { label: '淇敼浜�', name: 'Modifier', labtype: 'txt', hidden: true },
+ { label: '淇敼鏃堕棿', name: 'Modifytime', labtype: 'txt', hidden: true },
+
+ ];
+ dataUrl = "/SysCode/GetListfalv";
+ searchCol = [
+ { label: '缂栫爜', name: 'CodeSn', labtype: 'txt', hidden: false },
+
+ { label: '鍚嶇О', name: 'Comments', labtype: 'txt', hidden: false },
+
+
+
+ ];
+ var _pageAdd = function () {
+ OpenWindow("鏂板娉曞緥", "98%", "90%", "/SysCode/Editfalv/");
+ }
+
+ var _afterSave = function (result) {
+ if (result) {
+ toastr.success("淇濆瓨鎴愬姛");
+ } else {
+ toastr.error("淇濆瓨澶辫触");
+ }
+ }
+
+ var _afterDel = function (result) {
+ if (result) {
+ toastr.success("鍒犻櫎鎴愬姛");
+ } else {
+ /**/
+ toastr.error("鍒犻櫎鎴愬姛");
+ /**/
+ }
+}
+ </script>
+}
+
--
Gitblit v1.9.1