From d4a6d65f5e449c3e5464aa18ae97bf8953987217 Mon Sep 17 00:00:00 2001
From: LR-20210131IOQH\Administrator <jackcold@163.com>
Date: 星期二, 10 八月 2021 15:44:14 +0800
Subject: [PATCH] Merge branch 'master' of http://47.108.235.38:8080/r/zhengcaioa

---
 zhengcaioa/zhengcaioa/Views/AdmAsk/AskPunishAppeal.cshtml |  457 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 457 insertions(+), 0 deletions(-)

diff --git a/zhengcaioa/zhengcaioa/Views/AdmAsk/AskPunishAppeal.cshtml b/zhengcaioa/zhengcaioa/Views/AdmAsk/AskPunishAppeal.cshtml
new file mode 100644
index 0000000..b9eadef
--- /dev/null
+++ b/zhengcaioa/zhengcaioa/Views/AdmAsk/AskPunishAppeal.cshtml
@@ -0,0 +1,457 @@
+锘緻model AdmAskMarketingCostDTO;
+@using DTO;
+@using zhengcaioa.Models;
+@{
+    Layout = null;
+
+    //娴佺▼鐩稿叧
+    string shifoubiaoji = ViewBag.shifoubiaoji as string;
+    string sifoudangqian = ViewBag.sifoudangqian as string;
+    string dangqianbuzhou = ViewBag.dangqianbuzhou as string;
+
+    List<WfHistoryDTO> lishiyijian = ViewData["lishiyijian"] as List<WfHistoryDTO>; //瀹℃壒杩涘害
+
+    List<AdmBreakPrecedentDTO> AdmBreakPrecedentDTOs = ViewData["AdmBreakPrecedentDTOs"] as List<AdmBreakPrecedentDTO>;
+}
+
+<!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">
+    <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/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/style.min.css" rel="stylesheet">
+    <link href="~/css/plugins/toastr/toastr.min.css" rel="stylesheet" />
+
+    <!-- jqgrid-->
+    <script language="javascript" src="~/js/jquery.min.js" type="text/javascript"></script>
+    <script src="~/js/bootstrap.min.js"></script>
+
+    <!--瀹瑰櫒-->
+    <script language="javascript" src="~/js/plugins/chosen/chosen.jquery.js" type="text/javascript"></script>
+    <script language="javascript" src="~/js/plugins/layer/layer.js" type="text/javascript"></script>
+    <script src="~/js/plugins/toastr/toastr.min.js" type="text/javascript"></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/TUJS.js"></script>
+
+    <style type="text/css">
+
+        div.clearfix > label {
+            padding-top: 8px;
+        }
+
+        .col-md-1.control-label {
+            padding-right: 0px;
+            font-weight: 400;
+        }
+    </style>
+
+
+</head>
+
+<body class="gray-bg" style="overflow:auto">
+    <form id="fm" method="post">
+        <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 id="div_content" class="ibox-content" style="background-color:white;">
+                            <div class="row">
+                                <div class="clearfix layer-area" style="padding-bottom:15px;">
+                                    <label class="text-right col-sm-1 col-md-1 control-label">鍗曟嵁鍚嶇О<i class="red">*</i></label>
+                                    <div class="col-sm-2 col-md-2">
+                                        <input type="text" class="form-control" value="@Model.Tittle" name="tittle" id="tittle" validate="RequiredField" autocomplete="off" readonly="readonly">
+
+                                    </div>
+                                </div>
+                                <div class="clearfix layer-area" style="padding-bottom:15px;">
+                                    <label class="text-right col-sm-1 col-md-1 control-label">鐢宠浜�<i class="red">*</i></label>
+                                    <div class="col-sm-2 col-md-2">
+                                        <input type="text" class="form-control" value="@Model.CreaterName" name="createrName" id="createrName" validate="RequiredField" autocomplete="off" readonly="readonly">
+
+                                    </div>
+                                </div>
+                                <div class="clearfix layer-area" style="padding-bottom:15px;">
+                                    <label class="text-right col-sm-1 col-md-1 control-label">杩濈邯淇℃伅<i class="red">*</i></label>
+                                    <div class="col-sm-2 col-md-2">
+                                        <select id="BreakPrecedentId" class="form-control" name="BreakPrecedentId" data-placeholder="閫夋嫨 搴忓垪 ...">
+                                            <option value="" hassubinfo="true">璇烽�夋嫨</option>
+                                            @foreach (var item in AdmBreakPrecedentDTOs)
+                                            {
+                                            @if (!item.Id.Equals(Model.BreakPrecedentId))
+                                                {
+                                            <option value="@item.Id" hassubinfo="true">
+                                                @item.BreakThing
+                                            </option>
+                                                }
+                                                else
+                                                {
+                                            <option value="@item.Id" hassubinfo="true" selected="selected">
+                                                @item.BreakThing
+                                            </option>
+                                                }
+
+                                            }
+
+
+                                        </select>
+                                        <input type="hidden" id="BreakPrecedentName" name="BreakPrecedentName" value="@Model.BreakPrecedentId" />
+                                    </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" id="BreakTimeName">
+                                      
+                                    </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" id="UserName">
+                                       
+                                    </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"  id="BreakPrecedent">
+                                        
+                                    </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" id="BreakThing">
+                                        
+                                    </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" id="ChufajineName">
+                                       
+                                    </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" id="QianfaUserName">
+                                       
+                                    </div>
+                                </div>
+
+
+                                <div class="clearfix layer-area" style="padding-bottom:15px;">
+                                    <label class="text-right col-sm-1 col-md-1 control-label">鐢宠瘔鐞嗙敱<i class="red">*</i></label>
+                                    <div class="col-sm-6 col-md-6">
+                                        <textarea class="form-control bt" id="Remark" name="Remark" maxlength="500" length="long" style="resize:none;overflow-y:hidden; height:80px;">@Model.Remark</textarea>
+                                    </div>
+                                </div>
+
+
+
+
+
+
+                                <div class="clearfix layer-area" style="padding-bottom:15px;" id="shenpiyijian">
+                                    <label class="text-right col-sm-1 col-md-1 control-label">瀹℃壒鎰忚</label>
+                                    <div class="col-sm-6 col-md-6">
+                                        <textarea class="form-control data" id="Content" name="Content" style="resize:none;overflow-y:hidden; height:80px;" maxlength="500"></textarea>
+                                    </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">
+                                        <table>
+                                            @if (lishiyijian.Count > 0)
+                                            {
+                                                <tr>
+                                                    <td style="border:1px solid #ccc;width:150px;">姝ラ </td>
+                                                    <td style="border:1px solid #ccc;width:150px;"> 鎵瑰鐘舵��</td>
+                                                    <td style="border:1px solid #ccc;width:150px;">鎵瑰鏃堕棿</td>
+                                                    <td style="border:1px solid #ccc;width:300px;"> 瀹℃壒鎰忚</td>
+                                                    <td style="border:1px solid #ccc;width:100px;"> 鎵瑰浜�</td>
+                                                </tr>
+                                            }
+
+                                            @foreach (var wfHistory in lishiyijian)
+                                            {
+                                                <tr>
+                                                    <td style="border:1px solid #ccc;width:150px;">@wfHistory.Step</td>
+                                                    <td style="border:1px solid #ccc;width:150px;">@wfHistory.ChuliStatusName</td>
+                                                    <td style="border:1px solid #ccc;width:150px;">@wfHistory.ModifytimeName</td>
+                                                    <td style="border:1px solid #ccc;width:300px;">@wfHistory.Content</td>
+                                                    <td style="border:1px solid #ccc;width:100px;">@wfHistory.DeelUserIdName</td>
+                                                </tr>
+                                            }
+                                        </table>
+                                    </div>
+                                </div>
+                                <div class="clearfix layer-area" style="padding-bottom:60px;">
+
+                                </div>
+                            </div>
+                        </div>
+                    </div>
+                </div>
+            </div>
+        </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">
+                <a class="btn btn-success" href="javascript:void(0)" onclick="_pageAutoClose();" style="margin-left:4px; border-radius:4px;">
+                    <i class="glyphicon glyphicon-remove"></i>&nbsp;&nbsp;<span class="bold">鍙栨秷</span>
+                </a>
+                <a class="btn btn-success" id="tijiao" href="javascript:void(0)" onclick="saveSimCost('');" style="margin-left:4px; border-radius:4px;">
+                    <i class="glyphicon glyphicon-ok"></i>&nbsp;&nbsp;<span class="bold">鎻愪氦</span>
+                </a>
+
+                <a class="btn btn-success" id="tongyi" href="javascript:void(0)" onclick="saveSimCost('A');" style="margin-left:4px; border-radius:4px;">
+                    <span class="bold">鍚屾剰</span>
+                </a>
+
+                <a class="btn btn-success" id="jujue" href="javascript:void(0)" onclick="saveSimCost('D');" style="margin-left:4px; border-radius:4px;">
+                    <span class="bold">鎷掔粷</span>
+                </a>
+                <input type="hidden" id="id" name="id" value="@Model.Id" />
+                <input type="hidden" id="Tongguojujue" name="Tongguojujue" value="" />
+                <input type="hidden" id="Step" name="Step" value="@dangqianbuzhou" />
+            </div>
+        </div>
+
+    </form>
+
+    <script type="text/javascript">
+
+        var hh = document.body.clientHeight -  $("#top").height() * 2 - 50;
+        $("#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"
+        };
+
+
+        $(function () {
+
+             if ("@shifoubiaoji" != "A") {
+                $("input").attr('readonly', true);
+                $("textarea").attr('readonly', true);
+                $(':radio').attr('disabled', true);
+                $(':checkbox').attr('disabled', true);
+                $(':button').attr('disabled', true);
+                //$('a').removeAttr('onclick');
+                 $('select').attr('disabled', true);
+                 $("#fileUp").attr('disabled', true);
+
+                 $('.fujianshanchu').removeAttr('onclick');
+
+
+                 if ("@sifoudangqian" == "A") {
+                     $("#Content").attr('readonly', false);
+                      $('#tijiao').hide();
+                 } else {
+                     $('#tongyi').hide();
+                      $('#jujue').hide();
+                     $('#tijiao').hide();
+                     $('#shenpiyijian').hide();
+                 }
+
+            } else {
+
+
+                  //瀹℃壒鐩稿叧
+                 $('#shenpiyijian').hide();
+                 if ("@sifoudangqian" == "A") {
+                     $('#tongyi').hide();
+                     $('#jujue').hide();
+                     $('#BreakPrecedentId').chosen();
+                 } else {
+                     $('#tongyi').hide();
+                      $('#jujue').hide();
+                      $('#tijiao').hide();
+                 }
+
+
+            }
+
+        })
+
+
+        // 淇濆瓨
+        function saveSimCost(tongyi) {
+
+
+            if ($.trim($("#BreakPrecedentName").val()) == '') {
+                toastr.warning("杩濈邯淇℃伅涓嶈兘涓虹┖");
+                return;
+            }
+            if ($.trim($("#Remark").val()) == '') {
+                toastr.warning("鐢宠瘔鐞嗙敱涓嶈兘涓虹┖");
+                return;
+            }
+
+            $("#Tongguojujue").val(tongyi);
+
+            $.ajax({
+                type: "POST",
+                url: "/AdmAsk/SaveAskPunishAppeal",
+                dataType: "json",
+                global: false,
+                data: $('#fm').serialize(),
+                success: function (data) {
+
+                        if (data.Result) {
+                            parent.layer.msg('鎻愪氦鎴愬姛', { icon: 6 });
+                            try {
+                                _pageAutoClose();//鑷姩鍏抽棴椤甸潰鏂规硶
+                            }
+                            catch (err) {
+                                var pathname = window.location.pathname;
+                                var search = window.location.search;
+                                parent._CloseTab1(pathname + search);
+                            }
+                        }
+                        else {
+                            parent.layer.msg(data.Message, { icon: 5 });
+                        }
+
+                },
+                error: function () {
+                    parent.layer.msg('澶辫触', { icon: 5 });
+                }
+            });
+        }
+
+
+
+
+        $("#BreakPrecedentId").change(function () {
+
+            var BreakPrecedentId = $("#BreakPrecedentId").val();
+            $("#BreakPrecedentName").val(BreakPrecedentId);
+
+            if (BreakPrecedentId != "") {
+                $.ajax({
+                    type: "GET",
+                    url: "/AdmBreakPrecedent/GetBreakPrecedent?id=" + BreakPrecedentId,
+                    dataType: "json",
+                    global: false,
+                    data: "",
+                    success: function (data) {
+                        if (data.Result) {
+                            var DataInfo = data.DataInfo;
+
+
+                            $("#BreakTimeName").html(DataInfo.BreakTimeName);
+                            $("#UserName").html(DataInfo.UserName);
+                            $("#BreakPrecedent").html(DataInfo.BreakPrecedent);
+                            $("#BreakThing").html(DataInfo.BreakThing);
+                            $("#ChufajineName").html(DataInfo.ChufajineName);
+                            $("#QianfaUserName").html(DataInfo.QianfaUserName);
+
+                        } else {
+                            parent.layer.msg('澶辫触', { icon: 5 });
+                        }
+
+
+                    },
+                    error: function () {
+
+
+                        parent.layer.msg('澶辫触', { icon: 5 });
+                    }
+                });
+            } else {
+                $("#BreakTimeName").html("");
+                $("#UserName").html("");
+                $("#BreakPrecedent").html("");
+                $("#BreakThing").html("");
+                $("#ChufajineName").html("");
+                $("#QianfaUserName").html("");
+            }
+           
+        });
+
+       
+
+        function getBreakPrecedent() {
+
+            var BreakPrecedentName = $("#BreakPrecedentName").val();
+
+            if (BreakPrecedentName != "") {
+                $.ajax({
+                    type: "GET",
+                    url: "/AdmBreakPrecedent/GetBreakPrecedent?id=" + BreakPrecedentName,
+                    dataType: "json",
+                    global: false,
+                    data: "",
+                    success: function (data) {
+                        if (data.Result) {
+                            var DataInfo = data.DataInfo;
+
+
+                            $("#BreakTimeName").html(DataInfo.BreakTimeName);
+                            $("#UserName").html(DataInfo.UserName);
+                            $("#BreakPrecedent").html(DataInfo.BreakPrecedent);
+                            $("#BreakThing").html(DataInfo.BreakThing);
+                            $("#ChufajineName").html(DataInfo.ChufajineName);
+                            $("#QianfaUserName").html(DataInfo.QianfaUserName);
+
+                        } else {
+                            parent.layer.msg('澶辫触', { icon: 5 });
+                        }
+
+
+                    },
+                    error: function () {
+
+
+                        parent.layer.msg('澶辫触', { icon: 5 });
+                    }
+                });
+            } else {
+                $("#BreakTimeName").html("");
+                $("#UserName").html("");
+                $("#BreakPrecedent").html("");
+                $("#BreakThing").html("");
+                $("#ChufajineName").html("");
+                $("#QianfaUserName").html("");
+            }
+        }
+
+        getBreakPrecedent();
+
+        function _pageAutoClose() {
+            try {
+                parent.window._reloadPageData();
+                var index = parent.layer.getFrameIndex(window.name);
+                parent.layer.isRefresh = true;
+                parent.layer.closeAll('loading');
+                parent.layer.close(index);
+                return false;
+            }
+            catch (err) {
+                var pathname = window.location.pathname;
+                var search = window.location.search;
+                parent._CloseTab1(pathname + search);
+            }
+
+        }
+    </script>
+</body>
+</html>
\ No newline at end of file

--
Gitblit v1.9.1