From 76430b83e28b43122886c1cd8a9fb1cd61040d22 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期一, 28 六月 2021 12:50:50 +0800
Subject: [PATCH] Merge branch 'master' of http://47.108.235.38:8080/r/zhengcaioa

---
 zhengcaioa/zhengcaioa/Views/SimCost/Edit.cshtml |   95 +++++++++++++++--------------------------------
 1 files changed, 30 insertions(+), 65 deletions(-)

diff --git a/zhengcaioa/zhengcaioa/Views/SimCost/Edit.cshtml b/zhengcaioa/zhengcaioa/Views/SimCost/Edit.cshtml
index d419797..d9487c1 100644
--- a/zhengcaioa/zhengcaioa/Views/SimCost/Edit.cshtml
+++ b/zhengcaioa/zhengcaioa/Views/SimCost/Edit.cshtml
@@ -3,7 +3,6 @@
 @using zhengcaioa.Models;
 @{
     Layout = null;
-    List<SimBindView> Card = ViewData["SimCard"] as List<SimBindView>; 
 }
 
 <!DOCTYPE html>
@@ -58,40 +57,23 @@
                         <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>
+                                    <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="cbbCard" class="data form-control" name="sim_id" data-placeholder="閫夋嫨 搴忓垪 ...">
-                                            <option value="" hassubinfo="true">璇烽�夋嫨</option>
-                                            @foreach (var item in Card)
-                                            {
-                                                @if (!item.Id.Equals(Model.sim_id))
-                                                {
-                                                    <option value="@item.Id" hassubinfo="true">
-                                                        @item.simcard
-                                                    </option>
-                                                }
-                                                else
-                                                {
-                                                    <option value="@item.Id" hassubinfo="true" selected="selected">
-                                                        @item.simcard
-                                                    </option>
-                                                }
-                                            }
-                                        </select>
-                                        <input type="hidden" name="id" value="@Model.id" />
+                                        <input type="text" value="@Model.sub_userid" class="form-control" readonly="readonly" />
+                                        <input type="hidden" name="sim_id" value="@Model.sim_id" />
+                                    </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" name="bill_month" class="form-control" value="@Model.bill_month" readonly="readonly" />
+                                        <input type="hidden" name="bill_year" value="@Model.bill_year" />
                                     </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 id="billamount" class="form-control" label="钖祫寰呴亣" name="bill_amount" labtype="txt" addvisible="true" maxlength="500" editvisible="true" reg="" ismust="true" type="text" value="@Model.bill_amount" oninput="if(value.length>4)value=value.slice(0,10)" 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">璐圭敤璁拌处鏃ユ湡<i class="red">*</i></label>
-                                    <div class="col-sm-2 col-md-2">
-                                        <input id="acTime" class="form-control" name="accounted_time" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="text" value="@Model.accounted_time.ToString("yyyy/MM/dd")" >
+                                        <input id="billamount" class="form-control" name="bill_amount" labtype="txt" addvisible="true" maxlength="500" editvisible="true" reg="" ismust="true" type="text" value="@Model.bill_amount" oninput="if(value.length>4)value=value.slice(0,10)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)">
                                     </div>
                                 </div>
                             </div>
@@ -114,49 +96,32 @@
     </form>
 
     <script type="text/javascript">
-         $(function () {
-            
-             $("#cbbCard").chosen();           
-
-             laydate({ elem: "#acTime", format: 'YYYY/MM/DD', istime: false, event: "focus" });
-
-            });
-
-        var hh = document.body.clientHeight - $('.ibox-title').height() - $("#top").height() * 2 - 95;
-        $("#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"
-        };
-
+       
+            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 saveSimCost() {
 
-            if ($("#cbbCard").val() == '') {
-                toastr.warning("鐢佃瘽鍗″彿涓嶈兘涓虹┖");
-                return;
-            }
+            
             if ($("#billamount").val() == '') {
                 toastr.warning("瀹為檯鐢佃瘽璐圭敤涓嶈兘涓虹┖");
                 return;
             }
-            if ($("#acTime").val() == '') {
-                toastr.warning("璐圭敤璁拌处鏃ユ湡涓嶈兘涓虹┖");
-                return;
-            }
-           
+                       
             $.ajax({
                 type: "POST",
                 url: "/SimCost/SaveSimCost",

--
Gitblit v1.9.1