From 378725af30f2ccf5007f80c553865be2b39f727a Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期二, 18 十月 2022 17:09:58 +0800 Subject: [PATCH] 修改数据库地址 --- zhengcaioa/zhengcaioa/Views/AdmGoodsManage/Ruku.cshtml | 32 ++++++++++++++++++++++++++------ 1 files changed, 26 insertions(+), 6 deletions(-) diff --git a/zhengcaioa/zhengcaioa/Views/AdmGoodsManage/Ruku.cshtml b/zhengcaioa/zhengcaioa/Views/AdmGoodsManage/Ruku.cshtml index 2870a79..af481f9 100644 --- a/zhengcaioa/zhengcaioa/Views/AdmGoodsManage/Ruku.cshtml +++ b/zhengcaioa/zhengcaioa/Views/AdmGoodsManage/Ruku.cshtml @@ -106,11 +106,20 @@ <option value="" hassubinfo="true">璇烽�夋嫨</option> @foreach (var item in ClassifyId) { - + + @if (!item.Id.Equals(Model.ClassifyId)) + { <option value="@item.Id" hassubinfo="true"> @item.ClassifyName </option> - + } + else + { + <option value="@item.Id" hassubinfo="true" selected="selected"> + @item.ClassifyName + </option> + } + } @@ -124,10 +133,21 @@ <option value="" hassubinfo="true">璇烽�夋嫨</option> @foreach (var item in Goods) { + @if (!item.Id.Equals(Model.Id)) + { + <option value="@item.Id" hassubinfo="true"> + @item.GoodsName + </option> + } + else + { + <option value="@item.Id" hassubinfo="true" selected="selected"> + @item.GoodsName + </option> + } - <option value="@item.Id" hassubinfo="true"> - @item.GoodsName - </option> + + } @@ -144,7 +164,7 @@ <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">鍓╀綑鏁伴噺</label> <div class="col-sm-2 col-md-2" grouptype="Vdata"> - <input class="form-control" label="鍓╀綑鏁伴噺" name="GoodsLeft" id="GoodsLeft" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="number" value="" readonly=""> + <input class="form-control" label="鍓╀綑鏁伴噺" name="GoodsLeft" id="GoodsLeft" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="number" value="@Model.GoodsLeft" readonly=""> </div> -- Gitblit v1.9.1