123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929 |
-
- @{
- Layout = null;
- }
- <!DOCTYPE html>
- <html>
- <head>
- <meta name="viewport" content="width=device-width" />
- <title>MarketSellersList</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" name="hid_Type" type="hidden" value="0" />
- <input id="hid_IsLock" name="IsLock" type="hidden" value="0" />
- <input id="hid_MarketType" name="hid_MarketType" type="hidden" value="0" />
- @*<input id="hid_MarketId" name="hid_MarketId" type="hidden" value="@ViewBag.MarketId" />*@
- @Html.Hidden("hid_SellerId")
- @Html.Hidden("hid_Add_Warrant","false")
- @Html.Hidden("hid_Type_Warrant")
- </section>
- <section style="height: 95vh; padding: 10px 20px;">
- <div class="row tbToolBar" id="tbToolBar">
- <div class="toolbar">
- <label>
- <input type="checkbox" id="DataToggle">显示已离开经营户人员
- </label>
- </div>
- <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-edit" plain="true" onclick="btn_SellerStall()">设置摊位</a>
- <span class="shuxian"></span>
- <a href="#" class="easyui-linkbutton" iconCls="icon-remove" plain="true" onclick="btn_Del()">删除</a>
- </div>
- <div class="toolbar" id="ResetTool">
- <a href="#" class="easyui-linkbutton" iconCls="icon-undo" plain="true" onclick="btn_ReDel()">恢复删除</a>
- </div>
- @*<div class="toolbar-search">
- <span>【请选择查询条件】</span>
- <input class="easyui-searchbox" data-options="prompt:'请输入查询条件...',menu:'#search',searcher:LoadTable" style="width: 300px; height: 25px;" />
- <div id="search">
- <div data-options="name:'MarketSellerName'">经营户</div>
- <div data-options="name:'LicenseNo'">执照编码</div>
- <div data-options="name:'LicenseName'">执照名称</div>
- <div data-options="name:'StallName'">摊位</div>
- </div>
- </div>*@
- <div class="toolbar-search">
- <div id="Search" class="easyui-panel" title="请展开面板输入查询条件" style="width: 300px; height: 330px; padding: 10px;"
- data-options="iconCls:'icon-heart',collapsible:true,minimizable:false,maximizable:false,closable:false,collapsed:true,tools:[
- {
- iconCls:'icon-search',
- handler:function(){LoadTable(true)}
- }]">
- <table>
- <tr>
- <td><label for="SearchMarketSellerName">姓名</label></td>
- <td><input class="easyui-textbox" type="text" id="SearchMarketSellerName" name="SearchMarketSellerName" style="height: 25px; width: 150px" data-options="" /></td>
- </tr>
- @*<tr>
- <td><label for="SearchWarrantNumber">证照号码</label></td>
- <td><input class="easyui-textbox" type="text" id="SearchWarrantNumber" name="SearchWarrantNumber" style="height: 25px; width: 150px" data-options=""/></td>
- </tr>*@
- <tr>
- <td><label for="SearchLicenseNo">执照编码</label></td>
- <td><input class="easyui-textbox" type="text" id="SearchLicenseNo" name="SearchLicenseNo" style="height: 25px; width: 150px" data-options="" /></td>
- </tr>
- <tr>
- <td><label for="SearchLicenseName">执照名称</label></td>
- <td><input class="easyui-textbox" type="text" id="SearchLicenseName" name="SearchLicenseName" style="height: 25px; width: 150px" data-options="" /></td>
- </tr>
- <tr>
- <td><label for="SearchRegionID">所属辖区</label></td>
- <td>
- <select class="easyui-combobox" type="text" id="SearchRegionID" name="SearchRegionID" style="height: 25px; width: 150px" data-options="onSelect:function(){GetMarketSelStr()}">
- <option value="">全部</option>
- @Html.Raw(ViewBag.SelRegionInfo)
- </select>
- </td>
- </tr>
- <tr>
- <td><label for="SearchMarketID">隶属市场</label></td>
- <td>
- <select class="easyui-combobox" type="text" id="SearchMarketID" name="SearchMarketID" style="height: 25px; width: 150px" data-options="">
- @*@Html.Raw(ViewBag.SelMarketInfo)*@
- </select>
- </td>
- </tr>
- <tr>
- <td><label for="SearchTradeTypeID">经营类别</label></td>
- <td>
- <select class="easyui-combobox" type="text" id="SearchTradeTypeID" name="SearchTradeTypeID" style="height: 25px; width: 150px" data-options="">
- <option value="">全部</option>
- @Html.Raw(ViewBag.SelTradeTypeInfo)
- </select>
- </td>
- </tr>
- <tr>
- <td><label for="SearchTempAddress">暂住地址</label></td>
- <td><input class="easyui-textbox" type="text" id="SearchTempAddress" name="SearchTempAddress" style="height: 25px; width: 150px" data-options="" /></td>
- </tr>
- <tr>
- <td><label for="SearchStall">摊位</label></td>
- <td><input class="easyui-textbox" type="text" id="SearchStall" name="SearchStall" style="height: 25px; width: 150px" data-options="" /></td>
- </tr>
- <tr>
- <td colspan="2" style="text-align: center; width: 100%">
- <a href="#" class="easyui-linkbutton" iconCls="icon-search" style="width: 100%; height: 25px" onclick="LoadTable(true);">查询</a>
- </td>
- </tr>
- </table>
- </div>
- </div>
- </div>
- <table id="dgTable" class="easyui-datagrid" style="height: 100%;"
- 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:'MarketSellerName',width:150">姓名</th>
- <th data-options="field:'LicenseNo',width:150">执照编码</th>
- <th data-options="field:'LicenseName',width:150">执照名称</th>
- <th data-options="field:'CardIndex',width:150">食品信用安全码</th>
- <th data-options="field:'TradeTypeName',width:200">行业</th>
- <th data-options="field:'StallName',width:250,">摊位名称</th>
- <th data-options="field:'Tel',width:180,">联系电话</th>
- <th data-options="field:'MarketName',width:350,">隶属市场</th>
- </tr>
- </thead>
- </table>
- </section>
- <section>
- <div id="winModal" class="easyui-window winModal" title="经营户信息维护(带*为必填项)" style="width: 850px;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:5px 25px 0;">
- <form id="form">
-
-
- @Html.Hidden("SellerId")
- <div class="clearfix">
- <div class="panle-half">
- <div class="input-group">
- <label class="input-group-addon control-label" for="MarketSellerName">姓名</label>
- <input class="form-control input-group-addon required" aria-disabled="true" name="MarketSellerName" id="MarketSellerName" 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="Age">年龄</label>
- <input class="form-control input-group-addon required" aria-disabled="true" name="Age" id="Age" 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="IdCard">身份证</label>
- <input class="form-control input-group-addon required IsCardId" aria-disabled="true" name="IdCard" id="IdCard" 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="LicenseNo">执照编码</label>
- <input class="form-control input-group-addon" aria-disabled="true" name="LicenseNo" id="LicenseNo" 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="CardIndex">食品安全码</label>
- <input class="form-control input-group-addon" aria-disabled="true" name="CardIndex" id="CardIndex" type="text" value="" placeholder="填写食品信用安全码" />
- </div>
- <div class="input-group">
- <label class="input-group-addon control-label" for="ResidenceAddress">户籍所在地</label>
- <input class="form-control input-group-addon required" aria-disabled="true" name="ResidenceAddress" id="ResidenceAddress" 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="TradeTypeID">所属行业</label>
- <select class="form-control input-group-addon required" aria-disabled="true" name="TradeTypeID" id="TradeTypeID" type="text" value="" placeholder="请选择行业类型">
- @Html.Raw(ViewBag.SelTradeTypeInfo)
- </select>
- </div>
- <div class="input-group">
- <label class="input-group-addon control-label" for="Facia">字号名称</label>
- <input class="form-control input-group-addon" aria-disabled="true" name="Facia" id="Facia" type="text" value="" placeholder="请填写字号名称" />
- </div>
- <div class="input-group">
- <label class="input-group-addon control-label" for="AnnualStallFee">年规摊点费</label>
- <input class="form-control input-group-addon required" aria-disabled="true" name="AnnualStallFee" id="AnnualStallFee" type="text" value="" placeholder="请填写年规摊点费" />
- <strong class="text-requird input-group-addon control-label">*</strong>
- </div>
- </div>
- <div class="panle-half">
- <div class="input-group">
- <label class="input-group-addon control-label" for="Gender">性别</label>
- <select class="form-control input-group-addon required" aria-disabled="true" name="Gender" id="Gender" type="text" value="" placeholder="选择性别">
- <option value="1">男</option>
- <option value="0">女</option>
- </select>
- </div>
- <div class="input-group">
- <label class="input-group-addon control-label" for="Tel">电话</label>
- <input class="form-control input-group-addon" aria-disabled="true" name="Tel" id="Tel" type="text" value="" placeholder="请填写电话" />
- </div>
- <div class="input-group">
- <label class="input-group-addon control-label" for="LicenseName">执照名称</label>
- <input class="form-control input-group-addon" aria-disabled="true" name="LicenseName" id="LicenseName" 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="EnterMarketDate">进场时间</label>
- <input class="form-control input-group-addon laydate-icon required" aria-disabled="true" name="EnterMarketDate" id="EnterMarketDate" 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="TempAddress">暂住地点</label>
- <input class="form-control input-group-addon" aria-disabled="true" name="TempAddress" id="TempAddress" type="text" value="" placeholder="请填写暂住地点" />
- </div>
- <div class="input-group">
- <label class="input-group-addon control-label" for="RunningWayTypeID">经营方式</label>
- <select class="form-control input-group-addon required" aria-disabled="true" name="RunningWayTypeID" id="RunningWayTypeID" type="text" value="" placeholder="请选择经营方式">
- @Html.Raw(ViewBag.SelRunningWayTypeInfo)
- </select>
- </div>
- <div class="input-group">
- <label class="input-group-addon control-label" for="ApparatusTypeID">衡器类型</label>
- <select class="form-control input-group-addon required" aria-disabled="true" name="ApparatusTypeID" id="ApparatusTypeID" type="text" value="" placeholder="请选择衡器类型">
- @Html.Raw(ViewBag.SelApparatusTypeInfo)
- </select>
- </div>
- <div class="input-group">
- <label class="input-group-addon control-label" for="Remark">备注</label>
- <input class="form-control input-group-addon" aria-disabled="true" name="Remark" id="Remark" type="text" value="" placeholder="请填写备注" />
- </div>
- </div>
- </div>
-
- <div class="clearfix">
- <h4 class="title text-left" style="margin-left: 20px;">从业人员信息</h4>
- <div class="employee panle-fluid" id="" style="">
- <div class="input-group" style="width: 19%;">
- <label class="input-group-addon control-label" style="min-width:30px" for="Staff1Name">姓名</label>
- <input class="form-control input-group-addon" aria-disabled="true" name="Staff1Name" id="Staff1Name" type="text" value="" placeholder="请填写姓名"/>
- </div>
- <div class="input-group" style="width: 14%;">
- <label class="input-group-addon control-label" style="min-width:30px" for="Staff1Gender">性别</label>
- <select class="form-control input-group-addon" aria-disabled="true" name="Staff1Gender" id="Staff1Gender" type="text" value="" placeholder="选择性别">
- <option value="1">男</option>
- <option value="0">女</option>
- </select>
- </div>
- <div class="input-group" style="width: 18%;">
- <label class="input-group-addon control-label" style="min-width:30px" for="Staff1Age">年龄</label>
- <input class="form-control input-group-addon" aria-disabled="true" name="Staff1Age" id="Staff1Age" type="text" value="" placeholder="请填写年龄"/>
- </div>
- <div class="input-group" style="width: 22%;">
- <label class="input-group-addon control-label" style="min-width:30px" for="Staff1Residence">户籍地</label>
- <input class="form-control input-group-addon" aria-disabled="true" name="Staff1Residence" id="Staff1Residence" type="text" value="" placeholder="请填写户籍地"/>
- </div>
- <div class="input-group" style="width: 26%;">
- <label class="input-group-addon control-label" style="min-width:30px" for="Staff1CurrentAddr">当前住所</label>
- <input class="form-control input-group-addon" aria-disabled="true" name="Staff1CurrentAddr" id="Staff1CurrentAddr" type="text" value="" placeholder="请填写当前住所"/>
- </div>
- </div>
- <div class="employee panle-fluid" id="" style="">
- <div class="input-group" style="width: 19%;">
- <label class="input-group-addon control-label" style="min-width:30px" for="Staff2Name">姓名</label>
- <input class="form-control input-group-addon" aria-disabled="true" name="Staff2Name" id="Staff2Name" type="text" value="" placeholder="请填写姓名"/>
- </div>
- <div class="input-group" style="width: 14%;">
- <label class="input-group-addon control-label" style="min-width:30px" for="Staff2Gender">性别</label>
- <select class="form-control input-group-addon" aria-disabled="true" name="Staff2Gender" id="Staff2Gender" type="text" value="" placeholder="选择性别">
- <option value="1">男</option>
- <option value="0">女</option>
- </select>
- </div>
- <div class="input-group" style="width: 18%;">
- <label class="input-group-addon control-label" style="min-width:30px" for="Staff2Age">年龄</label>
- <input class="form-control input-group-addon" aria-disabled="true" name="Staff2Age" id="Staff2Age" type="text" value="" placeholder="请填写年龄"/>
- </div>
- <div class="input-group" style="width: 22%;">
- <label class="input-group-addon control-label" style="min-width:30px" for="Staff2Residence">户籍地</label>
- <input class="form-control input-group-addon" aria-disabled="true" name="Staff2Residence" id="Staff2Residence" type="text" value="" placeholder="请填写户籍地"/>
- </div>
- <div class="input-group" style="width: 26%;">
- <label class="input-group-addon control-label" style="min-width:30px" for="Staff2CurrentAddr">当前住所</label>
- <input class="form-control input-group-addon" aria-disabled="true" name="Staff2CurrentAddr" id="Staff2CurrentAddr" type="text" value="" placeholder="请填写当前住所"/>
- </div>
- </div>
- <div class="employee panle-fluid" id="" style="">
- <div class="input-group" style="width: 19%;">
- <label class="input-group-addon control-label" style="min-width:30px" for="Staff3Name">姓名</label>
- <input class="form-control input-group-addon" aria-disabled="true" name="Staff3Name" id="Staff3Name" type="text" value="" placeholder="请填写姓名"/>
- </div>
- <div class="input-group" style="width: 14%;">
- <label class="input-group-addon control-label" style="min-width:30px" for="Staff3Gender">性别</label>
- <select class="form-control input-group-addon" aria-disabled="true" name="Staff3Gender" id="Staff3Gender" type="text" value="" placeholder="选择性别">
- <option value="1">男</option>
- <option value="0">女</option>
- </select>
- </div>
- <div class="input-group" style="width: 18%;">
- <label class="input-group-addon control-label" style="min-width:30px" for="Staff3Age">年龄</label>
- <input class="form-control input-group-addon" aria-disabled="true" name="Staff3Age" id="Staff3Age" type="text" value="" placeholder="请填写年龄"/>
- </div>
- <div class="input-group" style="width: 22%;">
- <label class="input-group-addon control-label" style="min-width:30px" for="Staff3Residence">户籍地</label>
- <input class="form-control input-group-addon" aria-disabled="true" name="Staff3Residence" id="Staff3Residence" type="text" value="" placeholder="请填写户籍地"/>
- </div>
- <div class="input-group" style="width: 26%;">
- <label class="input-group-addon control-label" style="min-width:30px" for="Staff3CurrentAddr">当前住所</label>
- <input class="form-control input-group-addon" aria-disabled="true" name="Staff3CurrentAddr" id="Staff3CurrentAddr" type="text" value="" placeholder="请填写当前住所"/>
- </div>
- </div>
- </div>
- <div id="WarranttoolBar" class="row">
- <h4 class="title">
- 市场证件明细
- <span class="pull-right" style="margin-right: 20px;">
- <a href="#" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="btn_Add_Warrant()">添加</a>
- <span class="shuxian"></span>
- <a href="#" class="easyui-linkbutton" iconCls="icon-edit" plain="true" onclick="btn_Edit_Warrant()">修改</a>
- <span class="shuxian"></span>
- <a href="#" class="easyui-linkbutton" iconCls="icon-remove" plain="true" onclick="btn_Del_Warrant()">删除</a>
- </span>
- </h4>
- </div>
- <div class="center-block">
- <table id="Warrant" class="" style="width: 770px; height: 200px; margin: 5px auto 0"
- data-options="singleSelect: true,
- method: 'post',
- multiSort: false,
- toolbar: '#WarranttoolBar',
- fitColumns: true,
- @*rownumbers: true,*@
- remoteSort: false,
- loadFilter: pagerFilter,
- onDblClickRow: function () {
- btn_Edit_Warrant();
- },
- pagination: false,
- pageSize: 5,
- pageList: [5, 10]
- ">
- </table>
- </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()" 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_Warrant" 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 25px 0;">
- <form id="Warrant_form" class="panle-fluid">
-
- @Html.Hidden("hid_ID")
- <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="" placeholder="请选择证件类型...">
- @Html.Raw(ViewBag.SelWarrantType)
- </select>
- <strong class="text-requird input-group-addon control-label">*</strong>
- </div>
- <div class="input-group">
- <label class="input-group-addon control-label" for="WarrantStyle">执照类别</label>
- <select class="form-control input-group-addon" aria-disabled="true" name="WarrantStyle" id="WarrantStyle" type="text" value="" placeholder="请选择证件类型...">
- @Html.Raw(ViewBag.SelWarrantStyle)
- </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="" placeholder="请输入证件编号"/>
- <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="" placeholder="请输入起始日期"/>
- </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="" placeholder="请输入截止日期"/>
- </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="AttachFileUpdate">附件</label>
- <input class="form-control input-group-addon" aria-disabled="true" name="AttachFileUpdate" id="AttachFileUpdate" type="file" value="" placeholder="请浏览上传文件" onblur="CheckFileSize('AttachFileUpdate')"/>
- </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_Warrant" 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_Warrant').window('close');" style="width:80px">取消</a>
- </div>
- </div>
- </div>
-
- <div id="winModal_Stall" class="easyui-window winModal" title="经营户摊位信息维护" style="width: 450px;height:200px;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="Stall_form" class="panle-fluid">
-
- <div class="input-group">
- <label class="input-group-addon control-label" for="MarketSellerName_Stall">经营户名</label>
- <input class="form-control input-group-addon" aria-disabled="true" name="MarketSellerName_Stall" id="MarketSellerName_Stall" type="text" value="" placeholder="" disabled="disabled" />
- </div>
- <div class="input-group">
- <label class="input-group-addon control-label" for="StallNo">摊位号</label>
- <select class="form-control input-group-addon" aria-disabled="true" name="StallNo" id="StallNo" type="text" value="" placeholder="摊位号">
- <option value="">请选择...</option>
- @Html.Raw(ViewBag.SelStallInfo)
- </select>
- <strong class="text-requird input-group-addon control-label">*</strong>
- </div>
-
- @Html.Hidden("hid_SellerId_Stall")
- </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_Stall" data-options="iconCls:'icon-ok'" href="javascript:void(0)" onclick="Save_Stall()" style="width:80px">确认</a>
- <a class="easyui-linkbutton" data-options="iconCls:'icon-cancel'" href="javascript:void(0)" onclick="$('#winModal_Stall').window('close');" style="width:80px">取消</a>
- </div>
- </div>
- </div>
- </section>
- <script>
- // 身份证号码验证
- jQuery.validator.addMethod("IsCardId",
- function (value, element) {
- function isCardId(sId) {
- var aCity = { 11: "北京", 12: "天津", 13: "河北", 14: "山西", 15: "内蒙古", 21: "辽宁", 22: "吉林", 23: "黑龙江", 31: "上海", 32: "江苏", 33: "浙江", 34: "安徽", 35: "福建", 36: "江西", 37: "山东", 41: "河南", 42: "湖北", 43: "湖南", 44: "广东", 45: "广西", 46: "海南", 50: "重庆", 51: "四川", 52: "贵州", 53: "云南", 54: "西藏", 61: "陕西", 62: "甘肃", 63: "青海", 64: "宁夏", 65: "新疆", 71: "台湾", 81: "香港", 82: "澳门", 91: "国外" }
- var iSum = 0;
- if (!/^\d{17}(\d|x)$/i.test(sId)) {
- //console.log("你输入的身份证长度或格式错误");
- return false;
- }
- sId = sId.replace(/x$/i, "a");
- if (aCity[parseInt(sId.substr(0, 2))] == null) {
- //console.log("你的身份证地区非法");
- return false;
- }
- var sBirthday = sId.substr(6, 4) + "-" + Number(sId.substr(10, 2)) + "-" + Number(sId.substr(12, 2));
- var d = new Date(sBirthday.replace(/-/g, "/"));
- if (sBirthday !== (d.getFullYear() + "-" + (d.getMonth() + 1) + "-" + d.getDate())) {
- //console.log("身份证上的出生日期非法");
- return false;
- }
- for (var i = 17; i >= 0; i--) {
- iSum += (Math.pow(2, i) % 11) * parseInt(sId.charAt(17 - i), 11);
- }
- if (iSum % 11 !== 1) {
- console.log(iSum);
- //console.log("你输入的身份证号非法");
- return false;
- }
- //console.log(aCity[parseInt(sId.substr(0, 2))] + "," + sBirthday + "," + (sId.substr(16, 1) % 2 ? "男" : "女"));
- //aCity[parseInt(sId.substr(0,2))]+","+sBirthday+","+(sId.substr(16,1)%2?"男":"女");//此次还可以判断出输入的身份证号的人性别
- return true;
- }
- return this.optional(element) || (isCardId(value));
- },
- "请输入有效身份证号码!");
- //提交
- function Save(type) {
- type = type || $("#hid_Type").val();
- //var sellerId = (type !== "Add") ? $("#hid_SellerId").val() : "0";
- $.ajax({
- url: "@Url.Action("MarketSellersListOper", "MarketSystem")",
- type: "post",
- dataType: "json",
- beforeSend: function () {
- return BeforeSend();
- },
- data: {
- Type: type,
- SellerID: $("#hid_SellerId").val(),
- LicenseNo: $("#LicenseNo").val(),
- LicenseName: $("#LicenseName").val(),
- CardIndex: $("#CardIndex").val(),
- MarketSellerName: $("#MarketSellerName").val(),
- Gender: $("#Gender").val(),
- Age: $("#Age").val(),
- IdCard: $("#IdCard").val(),
- Tel: $("#Tel").val(),
- EnterMarketDate: $("#EnterMarketDate").val(),
- ResidenceAddress: $("#ResidenceAddress").val(),
- TempAddress: $("#TempAddress").val(),
- TradeTypeID: $("#TradeTypeID").val(),
- RunningWayTypeID: $("#RunningWayTypeID").val(),
- AnnualStallFee: $("#AnnualStallFee").val(),
- Facia: $("#Facia").val(),
- ApparatusTypeID: $("#ApparatusTypeID").val(),
- Remark: $("#Remark").val(),
- Staff1Name: $("#Staff1Name").val(),
- Staff1Gender:$("#Staff1Gender").val(),
- Staff1Age:$("#Staff1Age").val(),
- Staff1Residence:$("#Staff1Residence").val(),
- Staff1CurrentAddr: $("#Staff1CurrentAddr").val(),
- Staff2Name: $("#Staff2Name").val(),
- Staff2Gender: $("#Staff2Gender").val(),
- Staff2Age: $("#Staff2Age").val(),
- Staff2Residence: $("#Staff2Residence").val(),
- Staff2CurrentAddr: $("#Staff2CurrentAddr").val(),
- Staff3Name: $("#Staff3Name").val(),
- Staff3Gender: $("#Staff3Gender").val(),
- Staff3Age: $("#Staff3Age").val(),
- Staff3Residence: $("#Staff3Residence").val(),
- Staff3CurrentAddr: $("#Staff3CurrentAddr").val()
- },
- success: function (data) {
- if (CheckAajxData(data) === false) return;
- var msg = data.ErrorInfo;
- if (data.Success === true) {
- LoadTable();
- $("#winModal").window("close");
- if (type === "Add") {
- var msgArr = msg.split('|');
- if ($("#hid_Type_Warrant").val() === "true") {
- $("#hid_SellerId").val(msgArr[0]);
- layer.confirm("经营户信息保存成功,确认添加执照信息?",
- { icon: 3, title: '提示信息' },
- function(index) {
- $("hid__Add_Warrant").val("false");
- Save_Warrant("Add");
- $("#hid_SellerId").val("");
- layer.close(index);
- });
- } else {
- msg = (msgArr[1] == null || msgArr[1] == undefined) ? msgArr[0] : msgArr[1];
- layer.alert(msg, { icon: 1, title: '提示信息' });
- }
- } else {
- layer.alert(msg, { icon: 1, title: '提示信息' });
- }
- }
- else {
- layer.alert(msg, { icon: 2, title: '提示信息' });
- }
- }
- });
- }
- function Save_Warrant(type) {
- type = type || $("#hid_Type_Warrant").val();
- var sellerId = $("#hid_SellerId").val();
- $.ajaxFileUpload({
- url: '@Url.Action("MarketSellerWarrantOper", "MarketSystem")', //文件上传到哪个地址,告诉ajaxFileUpload
- secureuri: false, //一般设置为false
- fileElementId: 'AttachFileUpdate', //文件上传控件的Id <input type="file" id="fileUpload" name="file" />
- type: "post",
- //data: $("#Warrant_form").serializeArray(),
- dataType: "json",
- data: {
- Type: type,
- SellerID: sellerId,
- UploadFile: "true",
- ID: $("#hid_ID").val(),
- WarrantTypeID: $("#WarrantTypeID").val(),
- WarrantStyle: $("#WarrantStyle").val(),
- WarrantNumber: $("#WarrantNumber").val(),
- ValidStartTime: $("#ValidStartTime").val(),
- ValidEndTime: $("#ValidEndTime").val(),
- FileTitle: $("#FileTitle").val()
- },
- success: function(data) {
- if (CheckAajxData(data) === false) return;
- var msg = data.ErrorInfo;
- if (data.Success === true) {
- LoadWarrant_Seller(sellerId);
- $("#winModal_Warrant").window("close");
- layer.alert(msg, { icon: 1, title: '提示信息' });
- } else {
- layer.alert(msg, { icon: 7, title: '提示信息' });
- }
- }
- });
- }
- function Save_Stall() {
-
- var sellerId = $("#hid_SellerId_Stall").val();
- $.ajax({
- url: '@Url.Action("MarketSellerStallOper", "MarketSystem")',
-
- type: "post",
- //data: $("#Warrant_form").serializeArray(),
- dataType: "json",
- data: {
- SellerID: sellerId,
- StallNo:$("#StallNo").val()
- },
- success: function (data) {
- if (CheckAajxData(data) === false) return;
- var msg = data.ErrorInfo;
- if (data.Success === true) {
- LoadTable();
- $("#winModal_Stall").window("close");
- layer.alert(msg, { icon: 1, title: '提示信息' });
- } else {
- layer.alert(msg, { icon: 7, title: '提示信息' });
- }
- }
- });
- }
-
- //添加
- function btn_Add() {
- $("#hid_Type").val("Add");
- $("#winModal input").val("");
- $("#winModal textarea").val("");
- $("#hid_SellerId").val("");
- $("#modal .modal-title").html("添加");
- $("#winModal").window("open");
- LoadWarrant_Seller();
- }
- function btn_Add_Warrant() {
- var sellerId = $("#hid_SellerId").val();
- if (sellerId === "") {
- layer.confirm('需要先保存经营户信息,才可添加证照信息!',
- { icon: 3, title: '提示信息' },
- function (index) {
- $("#hid_Add_Warrant").val("true");
- Save("Add");
- layer.close(index);
- });
- } else {
- $("#hid_Type_Warrant").val("Add");
- $("#winModal_Warrant input").val("");
- $("#Save_Warrant span.l-btn-text").html("添加");
- $("#winModal_Warrant").window("open");
- }
- }
- //修改
- function btn_Edit_Warrant() {
- $("#hid_Type_Warrant").val("Edit");
- $("#Save_Warrant span.l-btn-text").html("修改");
- 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) {
- $("#hid_SellerId").val(row.SellerID);
- Save("Del");
- layer.close(index);
- });
- }
- }
- function btn_ReDel() {
- $("#hid_Type").val("ReDel");
- var rows = $('#dgTable').datagrid('getSelections');
- if (rows.length === 1) {
- var row = rows[0];
- //console.log(row);
- layer.confirm("您确定恢复这条记录吗?", { icon: 3, title: '提示信息' },
- function (index) {
- $("#hid_SellerId").val(row.SellerID);
- Save("ReDel");
- layer.close(index);
- });
- }
- }
- function btn_Del_Warrant() {
- $("#hid_Type_Warrant").val("Del");
- $("#hid_SellerId").val();
- var rows = $('#Warrant').datagrid('getSelections');
- if (rows.length === 1) {
- var row = rows[0];
- //console.log(row);
- layer.confirm("您确定删除这条记录吗?",{ icon: 3, title: '提示信息' },
- function (index) {
- $("#hid_ID").val(row.ID);
- Save_Warrant("Del");
- layer.close(index);
- });
- }
- }
- function btn_SellerStall() {
- var rows = $('#dgTable').datagrid('getSelections');
- if (rows.length === 1) {
- var row = rows[0];
- //console.log(row);
- //$("#MarketID").val(row.MarketID);
- $("#hid_SellerId_Stall").val(row.SellerID);
- $("#MarketSellerName_Stall").val(row.MarketSellerName);
- $("#StallNo").val(row.StallID);
- $("#winModal_Stall").window("open");
-
- } else {
- layer.alert('请选择一条记录进行设置', { icon: 7, title: '提示信息' });
- }
- }
- //modal赋值
- function SetModalVal() {
- var rows = $('#dgTable').datagrid('getSelections');
- if (rows.length === 1) {
- var row = rows[0];
- console.log(row);
- //$("#MarketID").val(row.MarketID);
- $("#hid_SellerId").val(row.SellerID);
- $("#MarketSellerName").val(row.MarketSellerName);
- $("#LicenseNo").val(row.LicenseNo);
- $("#LicenseName").val(row.LicenseName);
- $("#CardIndex").val(row.CardIndex);
- $("#Gender").val(row.Gender);
- $("#Age").val(row.Age);
- $("#IdCard").val(row.IdCard);
- $("#Tel").val(row.Tel);
- $("#EnterMarketDate").val(row.EnterMarketDate);
- $("#ResidenceAddress").val(row.ResidenceAddress);
- $("#TempAddress").val(row.TempAddress);
- $("#TradeTypeID").val(row.TradeTypeID);
- $("#RunningWayTypeID").val(row.RunningWayTypeID);
- $("#AnnualStallFee").val(row.AnnualStallFee);
- $("#Facia").val(row.Facia);
- $("#ApparatusTypeID").val(row.ApparatusTypeID);
- $("#Remark").val(row.Remark);
- $("#Staff1Name").val(row.Staff1Name);
- $("#Staff1Gender").val(row.Staff1Gender);
- $("#Staff1Age").val(row.Staff1Age);
- $("#Staff1Residence").val(row.Staff1Residence);
- $("#Staff1CurrentAddr").val(row.Staff1CurrentAddr);
- $("#Staff2Name").val(row.Staff2Name);
- $("#Staff2Gender").val(row.Staff2Gender);
- $("#Staff2Age").val(row.Staff2Age);
- $("#Staff2Residence").val(row.Staff2Residence);
- $("#Staff2CurrentAddr").val(row.Staff2CurrentAddr);
- $("#Staff3Name").val(row.Staff3Name);
- $("#Staff3Gender").val(row.Staff3Gender);
- $("#Staff3Age").val(row.Staff3Age);
- $("#Staff3Residence").val(row.Staff3Residence);
- $("#Staff3CurrentAddr").val(row.Staff3CurrentAddr);
- if ($("#hid_Type").val() === "Edit") {
- LoadWarrant_Seller(row.SellerID);
- $("#winModal").window("open");
- }
- } else {
- layer.alert('请选择一条记录进行设置', { icon: 7, title: '提示信息' });
- }
- }
- function SetModalVal_Warrant() {
- var rows = $('#Warrant').datagrid('getSelections');
- if (rows.length === 1) {
- var row = rows[0];
- console.log(row);
- $("#hid_ID").val(row.ID);
- $("#WarrantTypeID").val(row.WarrantTypeID);
- $("#WarrantStyle").find("option[text='" + row.WarrantStyle + "']").attr("selected", "selected");;
- $("#WarrantNumber").val(row.WarrantNumber);
- $("#ValidStartTime").val(row.ValidStartTime);
- $("#ValidEndTime").val(row.ValidEndTime);
- $("#FileTitle").val(row.FileTitle);
- if ($("#hid_Type").val() === "Edit") {
- $("#winModal_Warrant").window("open");
- }
- } else {
- layer.alert('请选择一条记录进行设置', { icon: 7, title: '提示信息' });
- }
- }
- //加载表格数据
- @*function LoadTable(value, item) {
- $('#dgTable').datagrid({
- url: '@Url.Action("MarketSellersListResult", "GetResult")' + '?IsLock=' + $('#hid_IsLock').val() + '&PcVal=' + escape(value) + '&PcItem=' + item,
- onDblClickRow: function () {
- btn_Edit();
- }
- });
- }*@
-
- function LoadTable_Lock(value, item) {
- var marketId = $("input.textbox-value[name='SearchMarketID']").val();
- var marketSellerName = $('#SearchMarketSellerName').val(),
- //warrantNumber = $('#SearchWarrantNumber').val(),
- licenseNo = $('#SearchLicenseNo').val(),
- licenseName = $('#SearchLicenseName').val(),
- tradeTypeId = $("input.textbox-value[name='SearchTradeTypeID']").val(),
- tempAddress = $('#SearchTempAddress').val(),
- stall = $('#SearchStall').val();
- $('#dgTable').datagrid({
- url: '@Url.Action("MarketSellersQryResult", "GetResult")' + '?IsLock=1&MarketSellerName=' + escape(marketSellerName) + '&MarketID=' + marketId + '&TradeTypeID=' + tradeTypeId + '&TempAddress=' + escape(tempAddress) + '&Stall=' + escape(stall) + '&LicenseNo=' + escape(licenseNo) + "&LicenseName=" + escape(licenseName),
- onDblClickRow: function () {
-
- }
- });
- }
- function LoadTable(collapsed) {
- collapsed = collapsed || false;
- var marketId = $("input.textbox-value[name='SearchMarketID']").val();
- var marketSellerName = $('#SearchMarketSellerName').val(),
- //warrantNumber = $('#SearchWarrantNumber').val(),
- licenseNo = $('#SearchLicenseNo').val(),
- licenseName = $('#SearchLicenseName').val(),
- tradeTypeId = $("input.textbox-value[name='SearchTradeTypeID']").val(),
- tempAddress = $('#SearchTempAddress').val(),
- stall = $('#SearchStall').val();
- if (collapsed===true) {
- $("#Search").panel("collapse", true);
- }
- if ($("#hid_IsLock").val() === "1") {
- LoadTable_Lock();
- } else {
- $('#dgTable').datagrid({
- url: "/GetResult/MarketSellersQryResult" + '?IsLock=0&MarketSellerName=' + escape(marketSellerName) + '&MarketID=' + marketId + '&TradeTypeID=' + tradeTypeId + '&TempAddress=' + escape(tempAddress) + '&Stall=' + escape(stall) + '&LicenseNo=' + escape(licenseNo) + "&LicenseName=" + escape(licenseName)
- ,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; //将结束日的初始值设定为开始日
- }
- };
- var end = {
- elem: "#ValidEndTime",
- format: "YYYY-MM-DD",
- min: "2010-01-01",
- event: "focus",
- choose: function(datas) {
- start.max = datas; //结束日选好后,重置开始日的最大日期
- }
- };
- $(function () {
- //加载表格数据
- //var value = $(".textbox.searchbox .textbox-value").val(), item = $(".textbox.searchbox .textbox-value").attr("name");
- //LoadTable(value, item);
- //加载日历控件
- setTimeout(LoadTable(false), 500);
- laydate({
- elem: '#EnterMarketDate',
- format: "YYYY-MM-DD",
- min: "1980-01-01",
- event: "focus"
- });
-
- laydate(start);
- laydate(end);
- });
- </script>
- </body>
- </html>
|