Преглед изворни кода

创客奖励记录信息添加机具货款退还类别

DuGuYang пре 3 година
родитељ
комит
259426dd6e

+ 4 - 1
Areas/Admin/Controllers/MainServer/SysRechargeRecordController.cs

@@ -128,18 +128,21 @@ namespace MySystem.Areas.Admin.Controllers
             string BizAmount31 = "0.00";//活动奖励
             string BizAmount31 = "0.00";//活动奖励
             string BizAmount114 = "0.00";//私董会分红
             string BizAmount114 = "0.00";//私董会分红
             string BizAmount115 = "0.00";//分仓奖励
             string BizAmount115 = "0.00";//分仓奖励
-            DataTable dt = OtherMySqlConn.dtable("SELECT SUM(if(BizType=30,Amount,0)),SUM(if(BizType=31,Amount,0)),SUM(if(BizType=114,Amount,0)),SUM(if(BizType=115,Amount,0)) FROM SysRechargeRecord where 1=1 " + condition);
+            string BizAmount126 = "0.00";//分仓奖励
+            DataTable dt = OtherMySqlConn.dtable("SELECT SUM(if(BizType=30,Amount,0)),SUM(if(BizType=31,Amount,0)),SUM(if(BizType=114,Amount,0)),SUM(if(BizType=115,Amount,0)),SUM(if(BizType=126,Amount,0)) FROM SysRechargeRecord where 1=1 " + condition);
             if (dt.Rows.Count > 0)
             if (dt.Rows.Count > 0)
             {
             {
                 BizAmount30 = decimal.Parse(function.CheckNum(dt.Rows[0][0].ToString())).ToString("f2");
                 BizAmount30 = decimal.Parse(function.CheckNum(dt.Rows[0][0].ToString())).ToString("f2");
                 BizAmount31 = decimal.Parse(function.CheckNum(dt.Rows[0][1].ToString())).ToString("f2");
                 BizAmount31 = decimal.Parse(function.CheckNum(dt.Rows[0][1].ToString())).ToString("f2");
                 BizAmount114 = decimal.Parse(function.CheckNum(dt.Rows[0][2].ToString())).ToString("f2");
                 BizAmount114 = decimal.Parse(function.CheckNum(dt.Rows[0][2].ToString())).ToString("f2");
                 BizAmount115 = decimal.Parse(function.CheckNum(dt.Rows[0][3].ToString())).ToString("f2");
                 BizAmount115 = decimal.Parse(function.CheckNum(dt.Rows[0][3].ToString())).ToString("f2");
+                BizAmount126 = decimal.Parse(function.CheckNum(dt.Rows[0][4].ToString())).ToString("f2");
             }
             }
             other.Add("BizAmount30", BizAmount30);
             other.Add("BizAmount30", BizAmount30);
             other.Add("BizAmount31", BizAmount31);
             other.Add("BizAmount31", BizAmount31);
             other.Add("BizAmount114", BizAmount114);
             other.Add("BizAmount114", BizAmount114);
             other.Add("BizAmount115", BizAmount115);
             other.Add("BizAmount115", BizAmount115);
+            other.Add("BizAmount126", BizAmount126);
             obj.Add("other", other);
             obj.Add("other", other);
             return Json(obj);
             return Json(obj);
         }
         }

+ 3 - 0
Areas/Admin/Views/MainServer/SysRechargeRecord/Index.cshtml

@@ -73,6 +73,7 @@
                                 <option value="31">活动奖励</option>
                                 <option value="31">活动奖励</option>
                                 <option value="114">私董会分红</option>
                                 <option value="114">私董会分红</option>
                                 <option value="115">分仓奖励</option>
                                 <option value="115">分仓奖励</option>
+                                <option value="126">机具货款退还</option>
                             </select>
                             </select>
                         </div>
                         </div>
                     </div>
                     </div>
@@ -132,6 +133,8 @@
                     红包奖励(元):<span style="color: #f00;" id="BizAmount30">0.00</span> | 活动奖励(元):<span style="color: #f00;" id="BizAmount31">0.00</span>
                     红包奖励(元):<span style="color: #f00;" id="BizAmount30">0.00</span> | 活动奖励(元):<span style="color: #f00;" id="BizAmount31">0.00</span>
                     <br>
                     <br>
                     私董会分红(元):<span style="color: #f00;" id="BizAmount114">0.00</span> | 分仓奖励(元):<span style="color: #f00;" id="BizAmount115">0.00</span>
                     私董会分红(元):<span style="color: #f00;" id="BizAmount114">0.00</span> | 分仓奖励(元):<span style="color: #f00;" id="BizAmount115">0.00</span>
+                    <br>
+                    机具货款退还(元):<span style="color: #f00;" id="BizAmount126">0.00</span>
                 </blockquote>
                 </blockquote>
                 
                 
                 <table id="LAY-list-manage" lay-filter="LAY-list-manage"></table>
                 <table id="LAY-list-manage" lay-filter="LAY-list-manage"></table>

+ 1 - 0
wwwroot/layuiadmin/modules_main/SysRechargeRecord_Admin.js

@@ -143,6 +143,7 @@ layui.config({
             $("#BizAmount31").text(res.other.BizAmount31);
             $("#BizAmount31").text(res.other.BizAmount31);
             $("#BizAmount114").text(res.other.BizAmount114);
             $("#BizAmount114").text(res.other.BizAmount114);
             $("#BizAmount115").text(res.other.BizAmount115);
             $("#BizAmount115").text(res.other.BizAmount115);
+            $("#BizAmount126").text(res.other.BizAmount126);
             $(".layui-none").text("无数据");
             $(".layui-none").text("无数据");
         }
         }
     });
     });

BIN
wwwroot/users/批量奖励操作模板.xlsx