123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610 |
-
- @{
- Layout = null;
- }
- <!DOCTYPE html>
- <html>
- <head>
- <meta name="viewport" content="width=device-width" />
- <title>MarketInfo</title>
- <link href="~/easyui/themes/default/easyui.css" rel="stylesheet" />
- <link rel="stylesheet" type="text/css" href="~/easyui/themes/icon.css" />
- <link href="~/Content/css/bootstrap.min.css" rel="stylesheet" />
- <link href="~/Content/js/plugins/layer/skin/layer.css" rel="stylesheet" />
- <script src="~/Content/js/jquery.min.js"></script>
- <script src="~/Content/js/bootstrap.min.js"></script>
- <script src="~/easyui/jquery.easyui.min.js"></script>
- <script src="~/easyui/jquery.easyui.mobile.js"></script>
- <script src="~/easyui/locale/easyui-lang-zh_CN.js"></script>
- <script src="~/Content/js/plugins/layer/laydate/laydate.js"></script>
- <script src="~/Content/js/plugins/layer/layer.min.js"></script>
- <script src="~/Content/js/plugins/validate/jquery.validate.min.js"></script>
- <script src="~/Content/js/plugins/validate/messages_zh.min.js"></script>
- <script src="~/js/Utils.js"></script>
- <script src="~/Content/plugins/ajaxFileUpload/ajaxFileUpload-M.js"></script>
- <link href="~/Content/css/Style/Markets.css" rel="stylesheet" />
- <script src="~/Content/js/js/MarketJs.js"></script>
- </head>
- <body>
- <section class="hidden">
- <input id="hid_Type_Attach" name="hid_Type_Attach" type="hidden" value="0" />
- @Html.Hidden("hid_Add_Warrant", "false")
- @Html.Hidden("hid_Type")
- </section>
- <section>
- <div class="winModal" style="width: 80%; margin: 5px auto;">
- <div class="panle-fluid " style="text-align: center"><h4 class="title"></h4></div>
-
- <form id="form" class="row">
- @Html.Hidden("Type", "Edit")
- <div class="panle-half">
- <div class="input-group">
- <label class="input-group-addon control-label" for="MarketID">注册号码</label>
- <input class="form-control input-group-addon required" aria-disabled="true" name="MarketID" id="MarketID" type="text" value="" placeholder="填写注册号码"/>
- <strong class="text-requird input-group-addon control-label">*</strong>
- </div>
- <div class="input-group">
- <label class="input-group-addon control-label" for="RegionId">辖区工商</label>
- <select class="form-control input-group-addon required" aria-disabled="true" name="RegionId" id="RegionId" type="text" value="" placeholder="选择所在辖区工商">
- @Html.Raw(ViewBag.SelRegionInfo)
- </select>
- <strong class="text-requird input-group-addon control-label">*</strong>
- </div>
- <div class="input-group">
- <label class="input-group-addon control-label" for="PractiseTime">开业时间</label>
- <input class="form-control input-group-addon laydate-icon required" readonly="readonly" aria-disabled="true" name="PractiseTime" id="PractiseTime" type="text" value="" placeholder="填写开业时间"/>
- <strong class="text-requird input-group-addon control-label">*</strong>
- </div>
- <div class="input-group">
- <label class="input-group-addon control-label" for="Area">
- 面积
- </label>
- <input class="form-control input-group-addon" aria-disabled="true" name="Area" id="Area" type="text" value=""/>
- <span class="input-group-addon control-label">平方米</span>
- </div>
- <div class="input-group">
- <label class="input-group-addon control-label" for="MarketSellerNum">经营户总数</label>
- <input class="form-control input-group-addon" aria-disabled="true" name="MarketSellerNum" id="MarketSellerNum" type="text" value=""/>
- </div>
- <div class="input-group">
- <label class="input-group-addon control-label" for="Principal">负责人</label>
- <input class="form-control input-group-addon" aria-disabled="true" name="Principal" id="Principal" type="text" value=""/>
- </div>
- <div class="input-group">
- <label class="input-group-addon control-label" for="LinkMan">联系人</label>
- <input class="form-control input-group-addon required" aria-disabled="true" name="LinkMan" id="LinkMan" type="text" value=""/>
- <strong class="text-requird input-group-addon control-label">*</strong>
- </div>
- <div class="input-group">
- <label class="input-group-addon control-label" for="FrontForUnit">主办单位</label>
- <input class="form-control input-group-addon" aria-disabled="true" name="FrontForUnit" id="FrontForUnit" type="text" value=""/>
- </div>
- <div class="input-group">
- <label class="input-group-addon control-label" for="Address">位置</label>
- <input class="form-control input-group-addon" aria-disabled="true" name="Address" id="Address" type="text" value=""/>
- </div>
- </div>
- <div class="panle-half">
- <div class="input-group">
- <label class="input-group-addon control-label" for="Name">市场名称</label>
- <input class="form-control input-group-addon required" aria-disabled="true" name="Name" id="Name" type="text" value=""/>
- <strong class="text-requird input-group-addon control-label">*</strong>
- </div>
- <div class="input-group">
- <label class="input-group-addon control-label" for="MarketTypeID">市场类型</label>
- <select class="form-control input-group-addon" aria-disabled="true" name="MarketTypeID" id="MarketTypeID" type="text" value="">
- @Html.Raw(ViewBag.SelMarketTypeInfo)
- </select>
- </div>
- <div class="input-group">
- <label class="input-group-addon control-label" for="Upgrade">提升方案</label>
- <select class="form-control input-group-addon" aria-disabled="true" name="Upgrade" id="Upgrade" type="text" value="">
- @Html.Raw(ViewBag.SelUpgradeInfo)
- </select>
- </div>
- <div class="input-group">
- <label class="input-group-addon control-label" for="Turnover">营业额</label>
- <input class="form-control input-group-addon" aria-disabled="true" name="Turnover" id="Turnover" type="text" value=""/>
- <span class="input-group-addon control-label">万元</span>
- </div>
- <div class="input-group">
- <label class="input-group-addon control-label" for="AuditFlag">规划审批</label>
- <select class="form-control input-group-addon" aria-disabled="true" name="AuditFlag" id="AuditFlag" type="text" value="">
- <option value="0">是</option>
- <option value="1">否</option>
- </select>
- </div>
- <div class="input-group">
- <label class="input-group-addon control-label" for="Telephone">联系电话</label>
- <input class="form-control input-group-addon" aria-disabled="true" name="Telephone" id="Telephone" type="text" value=""/>
- </div>
- <div class="input-group">
- <label class="input-group-addon control-label" for="LinkTel">联系人电话</label>
- <input class="form-control input-group-addon" aria-disabled="true" name="LinkTel" id="LinkTel" type="text" value=""/>
- </div>
- <div class="input-group">
- <label class="input-group-addon control-label" for="ManageUnit">管理单位</label>
- <input class="form-control input-group-addon" aria-disabled="true" name="ManageUnit" id="ManageUnit" type="text" value=""/>
- </div>
- </div>
- <div class="panle-fluid">
- <div class="input-group">
- <label class="input-group-addon control-label" for="Remark">备注</label>
- <textarea class="form-control input-group-addon" rows="3" aria-disabled="true" name="Remark" id="Remark" type="text" value=""></textarea>
- </div>
- </div>
- </form>
- <div class="panle-fluid " style="text-align: center"><h4 class="title">市场相关证件</h4>
- </div>
- <div class="panle-fluid">
- <section style="height: auto; padding: 10px 20px;">
- <div class="row tbToolBar" id="tbToolBar">
- <div class="toolbar" id="CurdTool">
- <a href="#" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="btn_Add()">添加</a>
- <span class="shuxian"></span>
- <a href="#" class="easyui-linkbutton" iconCls="icon-edit" plain="true" onclick="btn_Edit()">修改</a>
- <span class="shuxian"></span>
- <a href="#" class="easyui-linkbutton" iconCls="icon-remove" plain="true" onclick="btn_Del()">删除</a>
- <span class="shuxian"></span>
- <a href="#" class="easyui-linkbutton" iconCls="icon-link" plain="true" onclick="btn_Attach()">附件</a>
- </div>
- </div>
- <table id="dgTable" class="easyui-datagrid"
- data-options="singleSelect: true,
- method: 'post',
- multiSort: false,
- toolbar: '#tbToolBar',
- fitColumns: true,
- @*rownumbers: true,*@
- remoteSort: false,
- loadFilter: pagerFilter,
- onDblClickRow: function () {
- btn_Edit();
- },
- @*pagination: true,
- pageSize: 50,
- pageList: [20, 50, 100]*@
- ">
- <thead>
- <tr>
- <th data-options="field:'ID',width:80">编号</th>
- <th data-options="field:'Name',width:150">证件名称</th>
- <th data-options="field:'WarrantNumber',width:80,">证件号码</th>
- <th data-options="field:'ValidStartTime',width:50,">起始日期</th>
- <th data-options="field:'ValidEndTime',width:50,">截止日期</th>
- </tr>
- </thead>
- </table>
- </section>
- </div>
- <div class="panle-fluid" style="text-align: center">
- <a class="easyui-linkbutton" data-options="iconCls:'icon-ok'" href="javascript:void(0)" onclick="Save()" style="width: 120px">保存</a>
- </div>
- </div>
- </section>
- <section>
- <div id="winModal" class="easyui-window winModal" title="市场证照信息维护" style="width: 450px;height:320px; padding: 10px;"
- iconCls="icon-save" data-options="modal:true,closed:true">
- <div class="easyui-layout" data-options="fit:true" style="height: 99%">
- <div data-options="region:'center'" style="padding: 15px 25px 0;">
- <form id="form_Warrant" class="row">
- @Html.Hidden("ID")
- <div class="panle-fluid">
- <div class="input-group">
- <label class="input-group-addon control-label" for="WarrantTypeID">证件类型</label>
- <select class="form-control input-group-addon" aria-disabled="true" name="WarrantTypeID" id="WarrantTypeID" type="text" value="">
- @Html.Raw(ViewBag.SelWarrantTypeInfo)
- </select>
- </div>
- <div class="input-group">
- <label class="input-group-addon control-label" for="WarrantNumber">证件号</label>
- <input class="form-control input-group-addon" aria-disabled="true" name="WarrantNumber" id="WarrantNumber" type="text" value=""/>
- <strong class="text-requird input-group-addon control-label">*</strong>
- </div>
- <div class="input-group">
- <label class="input-group-addon control-label" for="ValidStartTime">起始日期</label>
- <input class="form-control input-group-addon" aria-disabled="true" name="ValidStartTime" id="ValidStartTime" type="text" value=""/>
- </div>
- <div class="input-group">
- <label class="input-group-addon control-label" for="ValidEndTime">起始日期</label>
- <input class="form-control input-group-addon" aria-disabled="true" name="ValidEndTime" id="ValidEndTime" type="text" value=""/>
- </div>
- </div>
- </form>
- </div>
- <div data-options="region:'south',border:false" style="text-align: right; height: 45px; padding: 13px 20px 0;">
- <a class="easyui-linkbutton" id="Save" data-options="iconCls:'icon-ok'" href="javascript:void(0)" onclick="Save_Warrant()" style="width: 80px">确认</a>
- <a class="easyui-linkbutton" data-options="iconCls:'icon-cancel'" href="javascript:void(0)" onclick="$('#winModal').window('close');" style="width: 80px">取消</a>
- </div>
- </div>
- </div>
- <div id="winModal_Attach" class="easyui-window winModal" title="附件维护" style="width: 450px; padding: 10px;"
- iconCls="icon-save" data-options="modal:true,closed:true">
- <div class="easyui-layout" data-options="fit:true" style="height: 99%">
- <div data-options="region:'center'" style="padding: 15px 5px 5px;">
- <div class="panle-fluid">
- <div class="input-group">
- <label class="input-group-addon control-label" for="AttachFile">上传附件</label>
- <input class="form-control input-group-addon" aria-disabled="true" name="AttachFile" id="AttachFile" type="file" value="" placeholder="" onblur="CheckFileSize('AttachFile')"/>
- </div>
- <div class="input-group">
- <label class="input-group-addon control-label" for="FileTitle">附件名称</label>
- <input class="form-control input-group-addon" aria-disabled="true" name="FileTitle" id="FileTitle" type="text" value="" placeholder=""/>
- </div>
- <div class="input-group">
- <label class="input-group-addon control-label" for="Description_Attach">备注信息</label>
- <textarea class="form-control input-group-addon" aria-disabled="true" name="Description_Attach" id="Description_Attach" type="text" value="" placeholder="" ></textarea>
- </div>
- <div class="input-group" style="margin: 20px auto 10px">
- <input class="btn btn-default" aria-disabled="true" name="" id="Save_Attach" type="button" value="确认上传附件" placeholder="" onclick="Save_Attach('Add')"/>
- </div>
- </div>
- <div class="panle-fluid">
- <div class="row tbToolBar" id="tbToolBar_Attach" style="padding-left: 0;">
- <div class="toolbar">
- <a href="#" class="easyui-linkbutton" iconCls="icon-link_go" plain="true" onclick="btn_Look()">查看</a>
- <span class="shuxian"></span>
- <a href="#" class="easyui-linkbutton" iconCls="icon-link_delete" plain="true" onclick="btn_Del_Attach()">删除</a>
- </div>
- </div>
- <table id="dgTable_Attach" class="easyui-datagrid" style="width: 100%; height: 170px;"
- data-options="singleSelect: true,
- method: 'post',
- multiSort: false,
- toolbar: '#tbToolBar_Attach',
- fitColumns: true,
- @*rownumbers: true,*@
- remoteSort: false,
- @*loadFilter: pagerFilter,*@
- onDblClickRow: function () {
- btn_Look();
- },
- pagination: false,
- pageSize: 50,
- pageList: [20, 50, 100]
- ">
- <thead>
- <tr>
- <th data-options="field:'FileTitle',width:100">附件标题</th>
- <th data-options="field:'FileExt',width:60,">扩展名</th>
- <th data-options="field:'TimeLastMod',width:90,">上传日期</th>
- </tr>
- </thead>
- </table>
- </div>
- </div>
- <div data-options="region:'south',border:false" style="text-align: right; height: 45px; padding: 13px 20px 0;">
- @*<a class="easyui-linkbutton" id="Save_Attach" data-options="iconCls:'icon-ok'" href="javascript:void(0)" onclick="Save_Attach()" style="width:80px">确认</a>*@
- <a class="easyui-linkbutton" data-options="iconCls:'icon-cancel'" href="javascript:void(0)" onclick="$('#winModal_Attach').window('close');" style="width: 80px">取消</a>
- </div>
- </div>
- </div>
- </section>
- <script>
-
- //提交
- function Save() {
- //type = type || $("#hid_Type").val();
- $.ajax({
- url: "@Url.Action("MarketsListOper", "MarketSystem",new {id= "MarketSystemMg" })",
- type: "post",
- dataType: "json",
- beforeSend: function () {
- return BeforeSend();
- },
- data: $("#form").serialize(),
- success: function (data) {
- if (CheckAajxData(data) === false) return;
- var msg = data.ErrorInfo;
- if (data.Success === true) {
- if ($("#hid_Add_Warrant").val() === "false") {
- LoadMarket();
- layer.confirm("市场信息保存成功,确认添加执照信息?",
- { icon: 3, title: '提示信息' },
- function (index) {
- //$("#hid__Add_Warrant").val("true");
- btn_Add();
- layer.close(index);
- });
- } else {
- LoadMarket();
- layer.alert(msg, { icon: 1, title: '提示信息' });
- }
- }
- else {
- layer.alert(msg, { icon: 2, title: '提示信息' });
- }
- }
- });
- }
- function Save_Warrant(type) {
- type = type || $("#hid_Type").val();
- var marketId = $("#MarketID").val();
- $.ajax({
- url: '@Url.Action("MarketWarrantOper", "MarketSystemMg")',
- type: "post",
- //data: $("#Warrant_form").serializeArray(),
- dataType: "json",
- data: {
- Type: type,
- MarketID: marketId,
- ID: $("#ID").val(),
- WarrantTypeID: $("#WarrantTypeID").val(),
- WarrantNumber: $("#WarrantNumber").val(),
- ValidStartTime: $("#ValidStartTime").val(),
- ValidEndTime: $("#ValidEndTime").val()
- },
- success: function(data) {
- if (CheckAajxData(data) === false) return;
- var msg = data.ErrorInfo;
- if (data.Success === true) {
- LoadTable();
- $("#winModal").window("close");
- layer.alert(msg, { icon: 1, title: '提示信息' });
- } else {
- layer.alert(msg, { icon: 7, title: '提示信息' });
- }
- }
- });
- }
- //添加
- function btn_Add() {
- if ($("#hid_Add_Warrant").val() === "false") {
- layer.confirm('需要先保存市场信息,才可添加证照信息!',
- { icon: 3, title: '提示信息' },
- function (index) {
- Save();
- layer.close(index);
- });
- }else {
- $("#hid_Type").val("Add");
- $("#winModal input").val("");
- $("#Save span.l-btn-text").html("添加");
- $("#winModal").window("open");
- }
- }
-
- //修改
- function btn_Edit() {
- $("#hid_Type").val("Edit");
- $("#Save span.l-btn-text").html("修改");
- console.log($("#hid_Type").val());
- SetModalVal_Warrant();
- }
- //删除
- function btn_Del() {
- $("#hid_Type").val("Del");
- var rows = $('#dgTable').datagrid('getSelections');
- if (rows.length === 1) {
- //var row = rows[0];
- //console.log(row);
- layer.confirm("您确定删除这条记录吗?", { icon: 3, title: '提示信息' },
- function (index) {
- SetModalVal_Warrant();
- Save_Warrant("Del");
- layer.close(index);
- });
- }
- }
- //证照modal赋值
- function SetModalVal_Warrant() {
- var rows = $('#dgTable').datagrid('getSelections');
- if (rows.length === 1) {
- var row = rows[0];
- $("#ID").val(row.ID);
- $("#WarrantNumber").val(row.WarrantNumber);
- $("#WarrantTypeID").val(row.WarrantTypeID);
- $("#ValidStartTime").val(row.ValidStartTime);
- $("#ValidEndTime").val(row.ValidEndTime);
- if ($("#hid_Type").val() === "Edit") {
- $("#winModal").window("open");
- }
- } else {
- layer.alert('请选择一条记录进行设置', {icon:2, title: '提示信息' });
- }
- }
- //加载表格数据
- function LoadTable() {
- $('#dgTable').datagrid({
- url: '@Url.Action("MarketsWarrantResult", "GetResult")' + '?MarketId=' + $('#MarketID').val(),
- onDblClickRow: function() {
- btn_Edit();
- }
- });
- }
- var start = {
- elem: "#ValidStartTime",
- format: "YYYY-MM-DD",
- min: "2010-01-01",
- event: "focus",
- choose: function (datas) {
- end.min = datas; //开始日选好后,重置结束日的最小日期
- end.start = datas; //将结束日的初始值设定为开始日
- }
- },
- end = {
- elem: "#ValidEndTime",
- format: "YYYY-MM-DD",
- min: "2010-01-01",
- event: "focus",
- choose: function (datas) {
- start.max = datas; //结束日选好后,重置开始日的最大日期
- }
- };
- function LoadMarket() {
- $.ajax({
- url: "@Url.Action("GetMarketInfo", "MarketSystemMg")",
- type: "post",
- dataType: "json",
- async:false,
- success: function (data) {
- if (CheckAajxData(data) === false) return;
- if (data.Success === true) {
- var row = data.MarketInfo[0];
- //console.log(row);
- $("#MarketID").val(row.MarketID);
- $("#RegionId").val(row.RegionID);
- $("#PractiseTime").val(row.PractiseTime);
- $("#Area").val(row.Area);
- $("#MarketSellerNum").val(row.MarketSellerNum);
- $("#Principal").val(row.Principal);
- $("#LinkMan").val(row.LinkMan);
- $("#FrontForUnit").val(row.FrontForUnit);
- $("#Address").val(row.Address);
- $("#Name").val(row.Names);
- $("#MarketTypeID").val(row.MarketTypeID);
- $("#Upgrade").val(row.Upgrade);
- $("#Turnover").val(row.Turnover);
- $("#AuditFlag").val(row.AuditFlag);
- $("#Telephone").val(row.Telephone);
- $("#LinkTel").val(row.LinkTel);
- $("#ManageUnit").val(row.ManageUnit);
- $("#Remark").val(row.Remark);
- $("#hid_Add_Warrant").val("true");
- } else {
- layer.alert(msg, { icon: 7, title: '提示信息' });
- }
- }
- });
- }
- $(function () {
- $("#form input").on("change",
- function () {
- $("#hid_Add_Warrant").val("false");
- });
- $("#form select").on("change",
- function () {
- $("#hid_Add_Warrant").val("false");
- });
- LoadMarket();
- //加载表格数据
- //var value = $(".textbox.searchbox .textbox-value").val(), item = $(".textbox.searchbox .textbox-value").attr("name");
- LoadTable();
- //加载日历控件
- laydate({
- elem: '#PractiseTime',
- format: "YYYY-MM-DD",
- min: "1980-01-01",
- event: "focus"
- });
- laydate(start);
- laydate(end);
- });
- function Save_Attach(type) {
- type = type || $("#hid_Type_Attach").val();
- $.ajaxFileUpload({
- url: "@Url.Action("AttachFileUpdate", "MarketSystem")",
- secureuri: false, //一般设置为false
- fileElementId: 'AttachFile', //文件上传控件的Id <input type="file" id="fileUpload" name="file" />
- type: "post",
- dataType: "json",
- data: {
- Type: type,
- UploadFile: "true",
- TableId: "MarketHasWarrant",
- ColumnId: "ID",
- SourceKey: $('#dgTable').datagrid('getSelections')[0].ID,
- FileTitle: $("#FileTitle").val(),
- Description: $("#Description_Attach").val()
- },
- success: function(data) {
- if (CheckAajxData(data) === false) return;
- var msg = data.ErrorInfo;
- if (data.Success === true) {
- LoadTable_Attach();
- layer.alert(msg, { icon: 1, title: '提示信息' });
- } else {
- LoadTable_Attach();
- layer.alert(msg, { icon: 7, title: '提示信息' });
- }
- }
- });
- }
- //加载附件表格数据
- function LoadTable_Attach() {
- $('#dgTable_Attach').datagrid({
- url: '@Url.Action("MarketAttachResult", "GetResult")' +
- '?SourceKey=' +
- $('#dgTable').datagrid('getSelections')[0].ID
- });
- }
- //打开附件modal
- function btn_Attach() {
- SetModalVal_Attach();
- }
- //查看附件
- function btn_Look() {
- var rows = $('#dgTable_Attach').datagrid('getSelections');
- if (rows.length === 1) {
- var row = rows[0];
- var path = "../" + row.FilePath + "/" + row.FileName;
- //window.location.href = path;
- window.open(path);
- } else {
- layer.alert('请选择一条记录进行设置', { icon: 7, title: '提示信息' });
- }
- }
- //删除附件
- function btn_Del_Attach() {
- $("#hid_Type_Attach").val("Del");
- var rows = $('#dgTable_Attach').datagrid('getSelections');
- if (rows.length === 1) {
- layer.confirm("您确定删除这条记录吗?",
- { icon: 3, title: '提示信息' },
- function(index) {
- SetModalVal_Attach();
- Save_Attach("Del");
- layer.close(index);
- });
- } else {
- layer.alert('请选择一条记录进行设置', { icon: 7, title: '提示信息' });
- }
- //附件
- }
- //修改附件
- function btn_Edit_Attach() {
- $("#hid_Type").val("Edit");
- $("#Save_Attach").html("修改");
- SetModalVal_Attach();
- }
- //附件modal赋值
- function SetModalVal_Attach() {
- var rows = $('#dgTable').datagrid('getSelections');
- if (rows.length === 1) {
- var row = rows[0];
- //console.log(row);
- $("#ID").val(row.ID);
- LoadTable_Attach();
- $("#winModal_Attach").window("open");
- } else {
- layer.alert('请选择一条记录进行设置', {icon:7, title: '提示信息' });
- }
- }
- </script>
- </body>
- </html>
|