From 67a0042c5f29e4bb0e0b82f6190f2bc51480b45c Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期二, 28 二月 2023 13:25:09 +0800
Subject: [PATCH] 工资绩效改版

---
 zhengcaioa/zhengcaioa/Views/ServiceCharge/Index.cshtml |   88 ++++++++++++++++++++++++++------------------
 1 files changed, 52 insertions(+), 36 deletions(-)

diff --git a/zhengcaioa/zhengcaioa/Views/ServiceCharge/Index.cshtml b/zhengcaioa/zhengcaioa/Views/ServiceCharge/Index.cshtml
index b543845..1a13117 100644
--- a/zhengcaioa/zhengcaioa/Views/ServiceCharge/Index.cshtml
+++ b/zhengcaioa/zhengcaioa/Views/ServiceCharge/Index.cshtml
@@ -7,6 +7,7 @@
 
     int nookcount = Book == null ? 0 : Book.Count;
 
+    List<PageEntity> ActionInfo2 = ViewData["ActionInfo2"] as List<PageEntity>;
 }
 @{
     Layout = null;
@@ -165,7 +166,7 @@
                                     </div>
                                     <div>
 
-                                        <a class="btn btn-default" href="javascript:void(0)" onclick="OpenWindow('鏂板鍥句功','98%','100%', '/ServiceCharge/Edit');" style="margin-right:40px;margin-bottom:5px; border-radius:4px;float:right;width:5%;">
+                                        <a class="btn btn-default Update" href="javascript:void(0)" onclick="OpenWindow('鏂板鍥句功','98%','100%', '/ServiceCharge/Edit');" style="margin-right:40px;margin-bottom:5px; border-radius:4px;float:right;width:5%;display:none;">
                                             <i class="glyphicon glyphicon-plus"></i>&nbsp;&nbsp;<span class="bold">鏂板</span>
                                         </a>
                                     </div>
@@ -184,7 +185,7 @@
                                                 <th style="width:15%;">
                                                     璐у彿
                                                 </th>
-                                                <th style="width:15%;">
+                                                <th style="width:20%;">
                                                     涔﹀悕
                                                 </th>
                                                 <th style="width:15%;">
@@ -208,22 +209,25 @@
                                                     {
                                                         for (int i = 0; i < Book.Count; i++)
                                                         {
-                                                <tr>
-                                                    <td>@(i+1)</td>
-                                                    <td>@Book[i].BookNo</td>
-                                                    <td>@Book[i].BookName</td>
-                                                    <td>@Book[i].Chubanshe</td>
-                                                    <td>@Book[i].Chubantime.Value.ToString("yyyy-MM-dd")</td>
-                                                    <td>@Book[i].Danjia.Value.ToString("F2")</td>
-                                                    <td>
-                                                        <a href="javascript:void(0)" onclick="OpenWindow('@Book[i].BookName','98%','100%', '/ServiceCharge/Edit?id=@Book[i].Id');" style="margin-left:4px; border-radius:4px;">
-                                                            <span class="bold">淇敼</span>
-                                                        </a>
-                                                        <a href="javascript:void(0)" onclick="delPosition('@Book[i].Id');" style="margin-left:4px; border-radius:4px;">
-                                                            <span class="bold">鍒犻櫎</span>
-                                                        </a>
-                                                    </td>
-                                                </tr>
+                                                                                        <tr>
+                                                                                            <td>@(i+1)</td>
+                                                                                            <td>@Book[i].BookNo</td>
+                                                                                            <td>@Book[i].BookName</td>
+                                                                                            <td>@Book[i].Chubanshe</td>
+                                                                                           
+                                                                                            <td>@Book[i].ChubantimeName </td>
+                                                                                           
+
+                                                                                            <td>@Book[i].Danjia.Value.ToString("F2")</td>
+                                                                                            <td>
+                                                                                                <a href="javascript:void(0)"  class="Update"    onclick="OpenWindow('@Book[i].BookName','98%','100%', '/ServiceCharge/Edit?id=@Book[i].Id');" style="margin-left: 4px; border-radius: 4px; display: none;">
+                                                                                                    <span class="bold">淇敼</span>
+                                                                                                </a>
+                                                                                                <a href="javascript:void(0)"  class="Update"   onclick="delPosition('@Book[i].Id');" style="margin-left:4px; border-radius:4px;display:none;">
+                                                                                                    <span class="bold">鍒犻櫎</span>
+                                                                                                </a>
+                                                                                            </td>
+                                                                                        </tr>
                                                         }
                                                     }
                                             }
@@ -300,7 +304,7 @@
 
                                 <div class="clearfix layer-area" style="padding-bottom:15px;">
 
-                                    <label class="text-left col-sm-1 col-md-1 control-label">4銆佹寚瀵兼姇鏍囨枃浠讹細</label>
+                                    <label class="text-left col-sm-1 col-md-1 control-label">4銆佹爣涔︽寚瀵硷細</label>
 
                                 </div>
                                 <div class="clearfix layer-area" style="padding-bottom:15px;">
@@ -341,7 +345,7 @@
                                 </div>
                                 <div class="clearfix layer-area" style="padding-bottom:15px;">
 
-                                    <label class="text-left col-sm-1 col-md-1 control-label">5銆佷唬涔﹁川鐤戯細</label>
+                                    <label class="text-left col-sm-1 col-md-1 control-label">5銆佷唬鎷熻川鐤戝嚱锛�</label>
 
                                 </div>
                                 <div class="clearfix layer-area" style="padding-bottom:15px;">
@@ -382,7 +386,7 @@
                                 </div>
                                 <div class="clearfix layer-area" style="padding-bottom:15px;">
 
-                                    <label class="text-left col-sm-1 col-md-1 control-label">6銆佷唬涔︽姇璇夛細</label>
+                                    <label class="text-left col-sm-1 col-md-1 control-label">6銆佷唬鎷熸姇璇変功锛�</label>
 
                                 </div>
                                 <div class="clearfix layer-area" style="padding-bottom:15px;">
@@ -431,17 +435,17 @@
                                 </div>
                                 <div class="clearfix layer-area" style="padding-bottom:15px;">
 
-                                    <label class="text-left col-sm-1 col-md-1 control-label">8銆佷唬鎷熸姇璇夊鐞嗗喅瀹氾細</label>
+                                    <label class="text-left col-sm-1 col-md-1 control-label" style="width:10%;">8銆佷唬鎷熸姇璇夊鐞嗗喅瀹氾細</label>
                                     <div class="col-sm-2 col-md-2">
-                                        <input class="form-control" label="8銆佺珵浜夊鎵嬪拰璇勫涓撳鏌ヨ锛�" name="Dainitousuchulijueding" id="Dainitousuchulijueding" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="text" value="@Model.Dainitousuchulijueding" oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)">
+                                        <input class="form-control" label="8銆佷唬鎷熸姇璇夊鐞嗗喅瀹氾細" name="Dainitousuchulijueding" id="Dainitousuchulijueding" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="text" value="@Model.Dainitousuchulijueding" oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)">
                                     </div>
                                     <label class="text-left col-sm-1 col-md-1 control-label">鍏�</label>
                                 </div>
                                 <div class="clearfix layer-area" style="padding-bottom:15px;">
 
-                                    <label class="text-left col-sm-1 col-md-1 control-label">9銆佺珵浜夊鎵嬪拰璇勫涓撳鏌ヨ锛�</label>
+                                    <label class="text-left col-sm-1 col-md-1 control-label" style="width:20%;">9銆佺珵浜夊鎵嬪拰璇勫涓撳鍙傚姞鏀垮簻閲囪喘鏁版嵁淇℃伅鏌ヨ锛�</label>
                                     <div class="col-sm-2 col-md-2">
-                                        <input class="form-control" label="9銆佺珵浜夊鎵嬪拰璇勫涓撳鏌ヨ锛�" name="Jinzhengfuishou" id="Jinzhengfuishou" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="text" value="@Model.Jinzhengfuishou" oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)">
+                                        <input class="form-control" label="9銆佺珵浜夊鎵嬪拰璇勫涓撳鍙傚姞鏀垮簻閲囪喘鏁版嵁淇℃伅鏌ヨ锛�" name="Jinzhengfuishou" id="Jinzhengfuishou" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="text" value="@Model.Jinzhengfuishou" oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)">
                                     </div>
                                     <label class="text-left col-sm-1 col-md-1 control-label">鍏�/骞�</label>
                                 </div>
@@ -651,7 +655,7 @@
                                         </tbody>
                                     </table>
                                 </div>
-                                <div class="">
+                                @*<div class="">
 
                                     <h3>鍏�侀闄╀唬鐞�</h3>
 
@@ -660,10 +664,10 @@
 
                                     <label class="text-left col-sm-1 col-md-1 control-label">闈㈣</label>
 
-                                </div>
+                                </div>*@
                                 <div class="">
 
-                                    <h3>涔濄�佽蒋浠�</h3>
+                                    <h3>鍏�佽蒋浠�</h3>
 
                                 </div>
                                 <div class="clearfix layer-area" style="padding-bottom:15px;">
@@ -706,11 +710,11 @@
                                     </table>
                                 </div>
 
-                                <div class="">
+                                @*<div class="">
 
                                     <h3>鍗併�佸叾浠�</h3>
 
-                                </div>
+                                </div>*@
 
 
 
@@ -725,11 +729,11 @@
         <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-default" href="javascript:void(0)" onclick="Print();" style="margin-left:4px; border-radius:4px;">
+                <a class="btn btn-default Dayin" href="javascript:void(0)" onclick="Print();" style="margin-left:4px; border-radius:4px;display:none;">
                     <i class="glyphicon glyphicon-print"></i>&nbsp;&nbsp;<span class="bold">鎵撳嵃</span>
                 </a> &nbsp; &nbsp;
 
-                <a class="btn btn-success" href="javascript:void(0)" onclick="savePosition();" style="margin-left:4px; border-radius:4px;">
+                <a class="btn btn-success Update" href="javascript:void(0)" onclick="savePosition();" style="margin-left: 4px; border-radius: 4px; display: none;">
                     <i class="glyphicon glyphicon-ok"></i>&nbsp;&nbsp;<span class="bold">鎻愪氦</span>
                 </a>
             </div>
@@ -761,7 +765,7 @@
         var delPosition = function (id) {
 
 
-            
+
             $.ajax({
                 type: "GET",
                 url: "/ServiceCharge/Nullify?id=" + id,
@@ -807,7 +811,7 @@
 
 
 
-         
+
             //var data = { id: $("#Id").val(), StartTime:$("#StartTime").val(), Sheng: $("#Sheng").val(), job_level: $("#Job_level").val().toString(), ExistsAttachment: fileId != "" }
             $.ajax({
                 type: "POST",
@@ -816,7 +820,7 @@
                 global: false,
                 data: $('form').serializeArray(),
                 success: function (data) {
-                 
+
 
 
                         if (data.Result) {
@@ -848,7 +852,7 @@
         }
 
 
- 
+
 
         function _pageAutoClose() {
             window.location = "/ServiceCharge/Index";
@@ -858,6 +862,18 @@
             //parent.layer.close(index);
             return false;
         }
+
+           var ActionInfo22 = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ActionInfo2))';
+
+
+
+        $(function () {
+            var data = JSON.parse(ActionInfo22);
+            for (var o in data) {
+                $("." + data[o].PageShortcut).show();
+
+            }
+        });
     </script>
 </body>
 </html>
\ No newline at end of file

--
Gitblit v1.9.1