MarketSellersList.cshtml 43 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929
  1. 
  2. @{
  3. Layout = null;
  4. }
  5. <!DOCTYPE html>
  6. <html>
  7. <head>
  8. <meta name="viewport" content="width=device-width" />
  9. <title>MarketSellersList</title>
  10. <link href="~/easyui/themes/default/easyui.css" rel="stylesheet" />
  11. <link rel="stylesheet" type="text/css" href="~/easyui/themes/icon.css" />
  12. <link href="~/Content/css/bootstrap.min.css" rel="stylesheet" />
  13. <link href="~/Content/js/plugins/layer/skin/layer.css" rel="stylesheet" />
  14. <script src="~/Content/js/jquery.min.js"></script>
  15. <script src="~/Content/js/bootstrap.min.js"></script>
  16. <script src="~/easyui/jquery.easyui.min.js"></script>
  17. <script src="~/easyui/jquery.easyui.mobile.js"></script>
  18. <script src="~/easyui/locale/easyui-lang-zh_CN.js"></script>
  19. <script src="~/Content/js/plugins/layer/laydate/laydate.js"></script>
  20. <script src="~/Content/js/plugins/layer/layer.min.js"></script>
  21. <script src="~/Content/js/plugins/validate/jquery.validate.min.js"></script>
  22. <script src="~/Content/js/plugins/validate/messages_zh.min.js"></script>
  23. <script src="~/js/Utils.js"></script>
  24. <script src="~/Content/plugins/ajaxFileUpload/ajaxFileUpload-M.js"></script>
  25. <link href="~/Content/css/Style/Markets.css" rel="stylesheet" />
  26. <script src="~/Content/js/js/MarketJs.js"></script>
  27. </head>
  28. <body>
  29. <section class="hidden">
  30. <input id="hid_Type" name="hid_Type" type="hidden" value="0" />
  31. <input id="hid_IsLock" name="IsLock" type="hidden" value="0" />
  32. <input id="hid_MarketType" name="hid_MarketType" type="hidden" value="0" />
  33. @*<input id="hid_MarketId" name="hid_MarketId" type="hidden" value="@ViewBag.MarketId" />*@
  34. @Html.Hidden("hid_SellerId")
  35. @Html.Hidden("hid_Add_Warrant","false")
  36. @Html.Hidden("hid_Type_Warrant")
  37. </section>
  38. <section style="height: 95vh; padding: 10px 20px;">
  39. <div class="row tbToolBar" id="tbToolBar">
  40. <div class="toolbar">
  41. <label>
  42. <input type="checkbox" id="DataToggle">显示已离开经营户人员
  43. </label>
  44. </div>
  45. <div class="toolbar" id="CurdTool">
  46. <a href="#" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="btn_Add()">添加</a>
  47. <span class="shuxian"></span>
  48. <a href="#" class="easyui-linkbutton" iconCls="icon-edit" plain="true" onclick="btn_Edit()">修改</a>
  49. <span class="shuxian"></span>
  50. <a href="#" class="easyui-linkbutton" iconCls="icon-edit" plain="true" onclick="btn_SellerStall()">设置摊位</a>
  51. <span class="shuxian"></span>
  52. <a href="#" class="easyui-linkbutton" iconCls="icon-remove" plain="true" onclick="btn_Del()">删除</a>
  53. </div>
  54. <div class="toolbar" id="ResetTool">
  55. <a href="#" class="easyui-linkbutton" iconCls="icon-undo" plain="true" onclick="btn_ReDel()">恢复删除</a>
  56. </div>
  57. @*<div class="toolbar-search">
  58. <span>【请选择查询条件】</span>
  59. <input class="easyui-searchbox" data-options="prompt:'请输入查询条件...',menu:'#search',searcher:LoadTable" style="width: 300px; height: 25px;" />
  60. <div id="search">
  61. <div data-options="name:'MarketSellerName'">经营户</div>
  62. <div data-options="name:'LicenseNo'">执照编码</div>
  63. <div data-options="name:'LicenseName'">执照名称</div>
  64. <div data-options="name:'StallName'">摊位</div>
  65. </div>
  66. </div>*@
  67. <div class="toolbar-search">
  68. <div id="Search" class="easyui-panel" title="请展开面板输入查询条件" style="width: 300px; height: 330px; padding: 10px;"
  69. data-options="iconCls:'icon-heart',collapsible:true,minimizable:false,maximizable:false,closable:false,collapsed:true,tools:[
  70. {
  71. iconCls:'icon-search',
  72. handler:function(){LoadTable(true)}
  73. }]">
  74. <table>
  75. <tr>
  76. <td><label for="SearchMarketSellerName">姓名</label></td>
  77. <td><input class="easyui-textbox" type="text" id="SearchMarketSellerName" name="SearchMarketSellerName" style="height: 25px; width: 150px" data-options="" /></td>
  78. </tr>
  79. @*<tr>
  80. <td><label for="SearchWarrantNumber">证照号码</label></td>
  81. <td><input class="easyui-textbox" type="text" id="SearchWarrantNumber" name="SearchWarrantNumber" style="height: 25px; width: 150px" data-options=""/></td>
  82. </tr>*@
  83. <tr>
  84. <td><label for="SearchLicenseNo">执照编码</label></td>
  85. <td><input class="easyui-textbox" type="text" id="SearchLicenseNo" name="SearchLicenseNo" style="height: 25px; width: 150px" data-options="" /></td>
  86. </tr>
  87. <tr>
  88. <td><label for="SearchLicenseName">执照名称</label></td>
  89. <td><input class="easyui-textbox" type="text" id="SearchLicenseName" name="SearchLicenseName" style="height: 25px; width: 150px" data-options="" /></td>
  90. </tr>
  91. <tr>
  92. <td><label for="SearchRegionID">所属辖区</label></td>
  93. <td>
  94. <select class="easyui-combobox" type="text" id="SearchRegionID" name="SearchRegionID" style="height: 25px; width: 150px" data-options="onSelect:function(){GetMarketSelStr()}">
  95. <option value="">全部</option>
  96. @Html.Raw(ViewBag.SelRegionInfo)
  97. </select>
  98. </td>
  99. </tr>
  100. <tr>
  101. <td><label for="SearchMarketID">隶属市场</label></td>
  102. <td>
  103. <select class="easyui-combobox" type="text" id="SearchMarketID" name="SearchMarketID" style="height: 25px; width: 150px" data-options="">
  104. @*@Html.Raw(ViewBag.SelMarketInfo)*@
  105. </select>
  106. </td>
  107. </tr>
  108. <tr>
  109. <td><label for="SearchTradeTypeID">经营类别</label></td>
  110. <td>
  111. <select class="easyui-combobox" type="text" id="SearchTradeTypeID" name="SearchTradeTypeID" style="height: 25px; width: 150px" data-options="">
  112. <option value="">全部</option>
  113. @Html.Raw(ViewBag.SelTradeTypeInfo)
  114. </select>
  115. </td>
  116. </tr>
  117. <tr>
  118. <td><label for="SearchTempAddress">暂住地址</label></td>
  119. <td><input class="easyui-textbox" type="text" id="SearchTempAddress" name="SearchTempAddress" style="height: 25px; width: 150px" data-options="" /></td>
  120. </tr>
  121. <tr>
  122. <td><label for="SearchStall">摊位</label></td>
  123. <td><input class="easyui-textbox" type="text" id="SearchStall" name="SearchStall" style="height: 25px; width: 150px" data-options="" /></td>
  124. </tr>
  125. <tr>
  126. <td colspan="2" style="text-align: center; width: 100%">
  127. <a href="#" class="easyui-linkbutton" iconCls="icon-search" style="width: 100%; height: 25px" onclick="LoadTable(true);">查询</a>
  128. </td>
  129. </tr>
  130. </table>
  131. </div>
  132. </div>
  133. </div>
  134. <table id="dgTable" class="easyui-datagrid" style="height: 100%;"
  135. data-options="singleSelect: true,
  136. method: 'post',
  137. multiSort: false,
  138. toolbar: '#tbToolBar',
  139. fitColumns: true,
  140. @*rownumbers: true,*@
  141. remoteSort: false,
  142. @*loadFilter: pagerFilter,*@
  143. onDblClickRow: function () {
  144. btn_Edit();
  145. },
  146. pagination: true,
  147. pageSize: 50,
  148. pageList: [20,50, 100]
  149. ">
  150. <thead>
  151. <tr>
  152. <th data-options="field:'MarketSellerName',width:150">姓名</th>
  153. <th data-options="field:'LicenseNo',width:150">执照编码</th>
  154. <th data-options="field:'LicenseName',width:150">执照名称</th>
  155. <th data-options="field:'CardIndex',width:150">食品信用安全码</th>
  156. <th data-options="field:'TradeTypeName',width:200">行业</th>
  157. <th data-options="field:'StallName',width:250,">摊位名称</th>
  158. <th data-options="field:'Tel',width:180,">联系电话</th>
  159. <th data-options="field:'MarketName',width:350,">隶属市场</th>
  160. </tr>
  161. </thead>
  162. </table>
  163. </section>
  164. <section>
  165. <div id="winModal" class="easyui-window winModal" title="经营户信息维护(带*为必填项)" style="width: 850px;padding:10px;"
  166. iconCls="icon-save" data-options="modal:true,closed:true">
  167. <div class="easyui-layout" data-options="fit:true" style="height:99%">
  168. <div data-options="region:'center'" style="padding:5px 25px 0;">
  169. <form id="form">
  170. @Html.Hidden("SellerId")
  171. <div class="clearfix">
  172. <div class="panle-half">
  173. <div class="input-group">
  174. <label class="input-group-addon control-label" for="MarketSellerName">姓名</label>
  175. <input class="form-control input-group-addon required" aria-disabled="true" name="MarketSellerName" id="MarketSellerName" type="text" value="" placeholder="请填写姓名" />
  176. <strong class="text-requird input-group-addon control-label">*</strong>
  177. </div>
  178. <div class="input-group">
  179. <label class="input-group-addon control-label" for="Age">年龄</label>
  180. <input class="form-control input-group-addon required" aria-disabled="true" name="Age" id="Age" type="text" value="" placeholder="请填写年龄" />
  181. <strong class="text-requird input-group-addon control-label">*</strong>
  182. </div>
  183. <div class="input-group">
  184. <label class="input-group-addon control-label" for="IdCard">身份证</label>
  185. <input class="form-control input-group-addon required IsCardId" aria-disabled="true" name="IdCard" id="IdCard" type="text" value="" placeholder="请填写身份证" />
  186. <strong class="text-requird input-group-addon control-label">*</strong>
  187. </div>
  188. <div class="input-group">
  189. <label class="input-group-addon control-label" for="LicenseNo">执照编码</label>
  190. <input class="form-control input-group-addon" aria-disabled="true" name="LicenseNo" id="LicenseNo" type="text" value="" placeholder="填写营业执照编码" />
  191. @*<strong class="text-requird input-group-addon control-label">*</strong>*@
  192. </div>
  193. <div class="input-group">
  194. <label class="input-group-addon control-label" for="CardIndex">食品安全码</label>
  195. <input class="form-control input-group-addon" aria-disabled="true" name="CardIndex" id="CardIndex" type="text" value="" placeholder="填写食品信用安全码" />
  196. </div>
  197. <div class="input-group">
  198. <label class="input-group-addon control-label" for="ResidenceAddress">户籍所在地</label>
  199. <input class="form-control input-group-addon required" aria-disabled="true" name="ResidenceAddress" id="ResidenceAddress" type="text" value="" placeholder="请填写户籍所在地" />
  200. <strong class="text-requird input-group-addon control-label">*</strong>
  201. </div>
  202. <div class="input-group">
  203. <label class="input-group-addon control-label" for="TradeTypeID">所属行业</label>
  204. <select class="form-control input-group-addon required" aria-disabled="true" name="TradeTypeID" id="TradeTypeID" type="text" value="" placeholder="请选择行业类型">
  205. @Html.Raw(ViewBag.SelTradeTypeInfo)
  206. </select>
  207. </div>
  208. <div class="input-group">
  209. <label class="input-group-addon control-label" for="Facia">字号名称</label>
  210. <input class="form-control input-group-addon" aria-disabled="true" name="Facia" id="Facia" type="text" value="" placeholder="请填写字号名称" />
  211. </div>
  212. <div class="input-group">
  213. <label class="input-group-addon control-label" for="AnnualStallFee">年规摊点费</label>
  214. <input class="form-control input-group-addon required" aria-disabled="true" name="AnnualStallFee" id="AnnualStallFee" type="text" value="" placeholder="请填写年规摊点费" />
  215. <strong class="text-requird input-group-addon control-label">*</strong>
  216. </div>
  217. </div>
  218. <div class="panle-half">
  219. <div class="input-group">
  220. <label class="input-group-addon control-label" for="Gender">性别</label>
  221. <select class="form-control input-group-addon required" aria-disabled="true" name="Gender" id="Gender" type="text" value="" placeholder="选择性别">
  222. <option value="1">男</option>
  223. <option value="0">女</option>
  224. </select>
  225. </div>
  226. <div class="input-group">
  227. <label class="input-group-addon control-label" for="Tel">电话</label>
  228. <input class="form-control input-group-addon" aria-disabled="true" name="Tel" id="Tel" type="text" value="" placeholder="请填写电话" />
  229. </div>
  230. <div class="input-group">
  231. <label class="input-group-addon control-label" for="LicenseName">执照名称</label>
  232. <input class="form-control input-group-addon" aria-disabled="true" name="LicenseName" id="LicenseName" type="text" value="" placeholder="填写营业执照名称" />
  233. @*<strong class="text-requird input-group-addon control-label">*</strong>*@
  234. </div>
  235. <div class="input-group">
  236. <label class="input-group-addon control-label" for="EnterMarketDate">进场时间</label>
  237. <input class="form-control input-group-addon laydate-icon required" aria-disabled="true" name="EnterMarketDate" id="EnterMarketDate" type="text" value="" placeholder="请填写进场时间" />
  238. <strong class="text-requird input-group-addon control-label">*</strong>
  239. </div>
  240. <div class="input-group">
  241. <label class="input-group-addon control-label" for="TempAddress">暂住地点</label>
  242. <input class="form-control input-group-addon" aria-disabled="true" name="TempAddress" id="TempAddress" type="text" value="" placeholder="请填写暂住地点" />
  243. </div>
  244. <div class="input-group">
  245. <label class="input-group-addon control-label" for="RunningWayTypeID">经营方式</label>
  246. <select class="form-control input-group-addon required" aria-disabled="true" name="RunningWayTypeID" id="RunningWayTypeID" type="text" value="" placeholder="请选择经营方式">
  247. @Html.Raw(ViewBag.SelRunningWayTypeInfo)
  248. </select>
  249. </div>
  250. <div class="input-group">
  251. <label class="input-group-addon control-label" for="ApparatusTypeID">衡器类型</label>
  252. <select class="form-control input-group-addon required" aria-disabled="true" name="ApparatusTypeID" id="ApparatusTypeID" type="text" value="" placeholder="请选择衡器类型">
  253. @Html.Raw(ViewBag.SelApparatusTypeInfo)
  254. </select>
  255. </div>
  256. <div class="input-group">
  257. <label class="input-group-addon control-label" for="Remark">备注</label>
  258. <input class="form-control input-group-addon" aria-disabled="true" name="Remark" id="Remark" type="text" value="" placeholder="请填写备注" />
  259. </div>
  260. </div>
  261. </div>
  262. <div class="clearfix">
  263. <h4 class="title text-left" style="margin-left: 20px;">从业人员信息</h4>
  264. <div class="employee panle-fluid" id="" style="">
  265. <div class="input-group" style="width: 19%;">
  266. <label class="input-group-addon control-label" style="min-width:30px" for="Staff1Name">姓名</label>
  267. <input class="form-control input-group-addon" aria-disabled="true" name="Staff1Name" id="Staff1Name" type="text" value="" placeholder="请填写姓名"/>
  268. </div>
  269. <div class="input-group" style="width: 14%;">
  270. <label class="input-group-addon control-label" style="min-width:30px" for="Staff1Gender">性别</label>
  271. <select class="form-control input-group-addon" aria-disabled="true" name="Staff1Gender" id="Staff1Gender" type="text" value="" placeholder="选择性别">
  272. <option value="1">男</option>
  273. <option value="0">女</option>
  274. </select>
  275. </div>
  276. <div class="input-group" style="width: 18%;">
  277. <label class="input-group-addon control-label" style="min-width:30px" for="Staff1Age">年龄</label>
  278. <input class="form-control input-group-addon" aria-disabled="true" name="Staff1Age" id="Staff1Age" type="text" value="" placeholder="请填写年龄"/>
  279. </div>
  280. <div class="input-group" style="width: 22%;">
  281. <label class="input-group-addon control-label" style="min-width:30px" for="Staff1Residence">户籍地</label>
  282. <input class="form-control input-group-addon" aria-disabled="true" name="Staff1Residence" id="Staff1Residence" type="text" value="" placeholder="请填写户籍地"/>
  283. </div>
  284. <div class="input-group" style="width: 26%;">
  285. <label class="input-group-addon control-label" style="min-width:30px" for="Staff1CurrentAddr">当前住所</label>
  286. <input class="form-control input-group-addon" aria-disabled="true" name="Staff1CurrentAddr" id="Staff1CurrentAddr" type="text" value="" placeholder="请填写当前住所"/>
  287. </div>
  288. </div>
  289. <div class="employee panle-fluid" id="" style="">
  290. <div class="input-group" style="width: 19%;">
  291. <label class="input-group-addon control-label" style="min-width:30px" for="Staff2Name">姓名</label>
  292. <input class="form-control input-group-addon" aria-disabled="true" name="Staff2Name" id="Staff2Name" type="text" value="" placeholder="请填写姓名"/>
  293. </div>
  294. <div class="input-group" style="width: 14%;">
  295. <label class="input-group-addon control-label" style="min-width:30px" for="Staff2Gender">性别</label>
  296. <select class="form-control input-group-addon" aria-disabled="true" name="Staff2Gender" id="Staff2Gender" type="text" value="" placeholder="选择性别">
  297. <option value="1">男</option>
  298. <option value="0">女</option>
  299. </select>
  300. </div>
  301. <div class="input-group" style="width: 18%;">
  302. <label class="input-group-addon control-label" style="min-width:30px" for="Staff2Age">年龄</label>
  303. <input class="form-control input-group-addon" aria-disabled="true" name="Staff2Age" id="Staff2Age" type="text" value="" placeholder="请填写年龄"/>
  304. </div>
  305. <div class="input-group" style="width: 22%;">
  306. <label class="input-group-addon control-label" style="min-width:30px" for="Staff2Residence">户籍地</label>
  307. <input class="form-control input-group-addon" aria-disabled="true" name="Staff2Residence" id="Staff2Residence" type="text" value="" placeholder="请填写户籍地"/>
  308. </div>
  309. <div class="input-group" style="width: 26%;">
  310. <label class="input-group-addon control-label" style="min-width:30px" for="Staff2CurrentAddr">当前住所</label>
  311. <input class="form-control input-group-addon" aria-disabled="true" name="Staff2CurrentAddr" id="Staff2CurrentAddr" type="text" value="" placeholder="请填写当前住所"/>
  312. </div>
  313. </div>
  314. <div class="employee panle-fluid" id="" style="">
  315. <div class="input-group" style="width: 19%;">
  316. <label class="input-group-addon control-label" style="min-width:30px" for="Staff3Name">姓名</label>
  317. <input class="form-control input-group-addon" aria-disabled="true" name="Staff3Name" id="Staff3Name" type="text" value="" placeholder="请填写姓名"/>
  318. </div>
  319. <div class="input-group" style="width: 14%;">
  320. <label class="input-group-addon control-label" style="min-width:30px" for="Staff3Gender">性别</label>
  321. <select class="form-control input-group-addon" aria-disabled="true" name="Staff3Gender" id="Staff3Gender" type="text" value="" placeholder="选择性别">
  322. <option value="1">男</option>
  323. <option value="0">女</option>
  324. </select>
  325. </div>
  326. <div class="input-group" style="width: 18%;">
  327. <label class="input-group-addon control-label" style="min-width:30px" for="Staff3Age">年龄</label>
  328. <input class="form-control input-group-addon" aria-disabled="true" name="Staff3Age" id="Staff3Age" type="text" value="" placeholder="请填写年龄"/>
  329. </div>
  330. <div class="input-group" style="width: 22%;">
  331. <label class="input-group-addon control-label" style="min-width:30px" for="Staff3Residence">户籍地</label>
  332. <input class="form-control input-group-addon" aria-disabled="true" name="Staff3Residence" id="Staff3Residence" type="text" value="" placeholder="请填写户籍地"/>
  333. </div>
  334. <div class="input-group" style="width: 26%;">
  335. <label class="input-group-addon control-label" style="min-width:30px" for="Staff3CurrentAddr">当前住所</label>
  336. <input class="form-control input-group-addon" aria-disabled="true" name="Staff3CurrentAddr" id="Staff3CurrentAddr" type="text" value="" placeholder="请填写当前住所"/>
  337. </div>
  338. </div>
  339. </div>
  340. <div id="WarranttoolBar" class="row">
  341. <h4 class="title">
  342. 市场证件明细
  343. <span class="pull-right" style="margin-right: 20px;">
  344. <a href="#" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="btn_Add_Warrant()">添加</a>
  345. <span class="shuxian"></span>
  346. <a href="#" class="easyui-linkbutton" iconCls="icon-edit" plain="true" onclick="btn_Edit_Warrant()">修改</a>
  347. <span class="shuxian"></span>
  348. <a href="#" class="easyui-linkbutton" iconCls="icon-remove" plain="true" onclick="btn_Del_Warrant()">删除</a>
  349. </span>
  350. </h4>
  351. </div>
  352. <div class="center-block">
  353. <table id="Warrant" class="" style="width: 770px; height: 200px; margin: 5px auto 0"
  354. data-options="singleSelect: true,
  355. method: 'post',
  356. multiSort: false,
  357. toolbar: '#WarranttoolBar',
  358. fitColumns: true,
  359. @*rownumbers: true,*@
  360. remoteSort: false,
  361. loadFilter: pagerFilter,
  362. onDblClickRow: function () {
  363. btn_Edit_Warrant();
  364. },
  365. pagination: false,
  366. pageSize: 5,
  367. pageList: [5, 10]
  368. ">
  369. </table>
  370. </div>
  371. </form>
  372. </div>
  373. <div data-options="region:'south',border:false" style="text-align:right;height:45px; padding:13px 20px 0;">
  374. <a class="easyui-linkbutton" id="Save" data-options="iconCls:'icon-ok'" href="javascript:void(0)" onclick="Save()" style="width:80px">确认</a>
  375. <a class="easyui-linkbutton" data-options="iconCls:'icon-cancel'" href="javascript:void(0)" onclick="$('#winModal').window('close');" style="width:80px">取消</a>
  376. </div>
  377. </div>
  378. </div>
  379. <div id="winModal_Warrant" class="easyui-window winModal" title="经营户执照信息维护" style="width: 450px;padding:10px;"
  380. iconCls="icon-save" data-options="modal:true,closed:true">
  381. <div class="easyui-layout" data-options="fit:true" style="height:99%">
  382. <div data-options="region:'center'" style="padding:15px 25px 0;">
  383. <form id="Warrant_form" class="panle-fluid">
  384. @Html.Hidden("hid_ID")
  385. <div class="input-group">
  386. <label class="input-group-addon control-label" for="WarrantTypeID">证件类型</label>
  387. <select class="form-control input-group-addon" aria-disabled="true" name="WarrantTypeID" id="WarrantTypeID" type="text" value="" placeholder="请选择证件类型...">
  388. @Html.Raw(ViewBag.SelWarrantType)
  389. </select>
  390. <strong class="text-requird input-group-addon control-label">*</strong>
  391. </div>
  392. <div class="input-group">
  393. <label class="input-group-addon control-label" for="WarrantStyle">执照类别</label>
  394. <select class="form-control input-group-addon" aria-disabled="true" name="WarrantStyle" id="WarrantStyle" type="text" value="" placeholder="请选择证件类型...">
  395. @Html.Raw(ViewBag.SelWarrantStyle)
  396. </select>
  397. </div>
  398. <div class="input-group">
  399. <label class="input-group-addon control-label" for="WarrantNumber">证件编号</label>
  400. <input class="form-control input-group-addon" aria-disabled="true" name="WarrantNumber" id="WarrantNumber" type="text" value="" placeholder="请输入证件编号"/>
  401. <strong class="text-requird input-group-addon control-label">*</strong>
  402. </div>
  403. <div class="input-group">
  404. <label class="input-group-addon control-label" for="ValidStartTime">起始日期</label>
  405. <input class="form-control input-group-addon" aria-disabled="true" name="ValidStartTime" id="ValidStartTime" type="text" value="" placeholder="请输入起始日期"/>
  406. </div>
  407. <div class="input-group">
  408. <label class="input-group-addon control-label" for="ValidEndTime">截止日期</label>
  409. <input class="form-control input-group-addon" aria-disabled="true" name="ValidEndTime" id="ValidEndTime" type="text" value="" placeholder="请输入截止日期"/>
  410. </div>
  411. <div class="input-group">
  412. <label class="input-group-addon control-label" for="FileTitle">附件名</label>
  413. <input class="form-control input-group-addon" aria-disabled="true" name="FileTitle" id="FileTitle" type="text" value="" placeholder="请输入附件名"/>
  414. </div>
  415. <div class="input-group">
  416. <label class="input-group-addon control-label" for="AttachFileUpdate">附件</label>
  417. <input class="form-control input-group-addon" aria-disabled="true" name="AttachFileUpdate" id="AttachFileUpdate" type="file" value="" placeholder="请浏览上传文件" onblur="CheckFileSize('AttachFileUpdate')"/>
  418. </div>
  419. </form>
  420. </div>
  421. <div data-options="region:'south',border:false" style="text-align:right;height:45px; padding:13px 20px 0;">
  422. <a class="easyui-linkbutton" id="Save_Warrant" data-options="iconCls:'icon-ok'" href="javascript:void(0)" onclick="Save_Warrant()" style="width:80px">确认</a>
  423. <a class="easyui-linkbutton" data-options="iconCls:'icon-cancel'" href="javascript:void(0)" onclick="$('#winModal_Warrant').window('close');" style="width:80px">取消</a>
  424. </div>
  425. </div>
  426. </div>
  427. <div id="winModal_Stall" class="easyui-window winModal" title="经营户摊位信息维护" style="width: 450px;height:200px;padding:10px;"
  428. iconCls="icon-save" data-options="modal:true,closed:true">
  429. <div class="easyui-layout" data-options="fit:true" style="height:99%">
  430. <div data-options="region:'center'" style="padding:15px 25px 0;">
  431. <form id="Stall_form" class="panle-fluid">
  432. <div class="input-group">
  433. <label class="input-group-addon control-label" for="MarketSellerName_Stall">经营户名</label>
  434. <input class="form-control input-group-addon" aria-disabled="true" name="MarketSellerName_Stall" id="MarketSellerName_Stall" type="text" value="" placeholder="" disabled="disabled" />
  435. </div>
  436. <div class="input-group">
  437. <label class="input-group-addon control-label" for="StallNo">摊位号</label>
  438. <select class="form-control input-group-addon" aria-disabled="true" name="StallNo" id="StallNo" type="text" value="" placeholder="摊位号">
  439. <option value="">请选择...</option>
  440. @Html.Raw(ViewBag.SelStallInfo)
  441. </select>
  442. <strong class="text-requird input-group-addon control-label">*</strong>
  443. </div>
  444. @Html.Hidden("hid_SellerId_Stall")
  445. </form>
  446. </div>
  447. <div data-options="region:'south',border:false" style="text-align:right;height:45px; padding:13px 20px 0;">
  448. <a class="easyui-linkbutton" id="Save_Stall" data-options="iconCls:'icon-ok'" href="javascript:void(0)" onclick="Save_Stall()" style="width:80px">确认</a>
  449. <a class="easyui-linkbutton" data-options="iconCls:'icon-cancel'" href="javascript:void(0)" onclick="$('#winModal_Stall').window('close');" style="width:80px">取消</a>
  450. </div>
  451. </div>
  452. </div>
  453. </section>
  454. <script>
  455. // 身份证号码验证
  456. jQuery.validator.addMethod("IsCardId",
  457. function (value, element) {
  458. function isCardId(sId) {
  459. 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: "国外" }
  460. var iSum = 0;
  461. if (!/^\d{17}(\d|x)$/i.test(sId)) {
  462. //console.log("你输入的身份证长度或格式错误");
  463. return false;
  464. }
  465. sId = sId.replace(/x$/i, "a");
  466. if (aCity[parseInt(sId.substr(0, 2))] == null) {
  467. //console.log("你的身份证地区非法");
  468. return false;
  469. }
  470. var sBirthday = sId.substr(6, 4) + "-" + Number(sId.substr(10, 2)) + "-" + Number(sId.substr(12, 2));
  471. var d = new Date(sBirthday.replace(/-/g, "/"));
  472. if (sBirthday !== (d.getFullYear() + "-" + (d.getMonth() + 1) + "-" + d.getDate())) {
  473. //console.log("身份证上的出生日期非法");
  474. return false;
  475. }
  476. for (var i = 17; i >= 0; i--) {
  477. iSum += (Math.pow(2, i) % 11) * parseInt(sId.charAt(17 - i), 11);
  478. }
  479. if (iSum % 11 !== 1) {
  480. console.log(iSum);
  481. //console.log("你输入的身份证号非法");
  482. return false;
  483. }
  484. //console.log(aCity[parseInt(sId.substr(0, 2))] + "," + sBirthday + "," + (sId.substr(16, 1) % 2 ? "男" : "女"));
  485. //aCity[parseInt(sId.substr(0,2))]+","+sBirthday+","+(sId.substr(16,1)%2?"男":"女");//此次还可以判断出输入的身份证号的人性别
  486. return true;
  487. }
  488. return this.optional(element) || (isCardId(value));
  489. },
  490. "请输入有效身份证号码!");
  491. //提交
  492. function Save(type) {
  493. type = type || $("#hid_Type").val();
  494. //var sellerId = (type !== "Add") ? $("#hid_SellerId").val() : "0";
  495. $.ajax({
  496. url: "@Url.Action("MarketSellersListOper", "MarketSystem")",
  497. type: "post",
  498. dataType: "json",
  499. beforeSend: function () {
  500. return BeforeSend();
  501. },
  502. data: {
  503. Type: type,
  504. SellerID: $("#hid_SellerId").val(),
  505. LicenseNo: $("#LicenseNo").val(),
  506. LicenseName: $("#LicenseName").val(),
  507. CardIndex: $("#CardIndex").val(),
  508. MarketSellerName: $("#MarketSellerName").val(),
  509. Gender: $("#Gender").val(),
  510. Age: $("#Age").val(),
  511. IdCard: $("#IdCard").val(),
  512. Tel: $("#Tel").val(),
  513. EnterMarketDate: $("#EnterMarketDate").val(),
  514. ResidenceAddress: $("#ResidenceAddress").val(),
  515. TempAddress: $("#TempAddress").val(),
  516. TradeTypeID: $("#TradeTypeID").val(),
  517. RunningWayTypeID: $("#RunningWayTypeID").val(),
  518. AnnualStallFee: $("#AnnualStallFee").val(),
  519. Facia: $("#Facia").val(),
  520. ApparatusTypeID: $("#ApparatusTypeID").val(),
  521. Remark: $("#Remark").val(),
  522. Staff1Name: $("#Staff1Name").val(),
  523. Staff1Gender:$("#Staff1Gender").val(),
  524. Staff1Age:$("#Staff1Age").val(),
  525. Staff1Residence:$("#Staff1Residence").val(),
  526. Staff1CurrentAddr: $("#Staff1CurrentAddr").val(),
  527. Staff2Name: $("#Staff2Name").val(),
  528. Staff2Gender: $("#Staff2Gender").val(),
  529. Staff2Age: $("#Staff2Age").val(),
  530. Staff2Residence: $("#Staff2Residence").val(),
  531. Staff2CurrentAddr: $("#Staff2CurrentAddr").val(),
  532. Staff3Name: $("#Staff3Name").val(),
  533. Staff3Gender: $("#Staff3Gender").val(),
  534. Staff3Age: $("#Staff3Age").val(),
  535. Staff3Residence: $("#Staff3Residence").val(),
  536. Staff3CurrentAddr: $("#Staff3CurrentAddr").val()
  537. },
  538. success: function (data) {
  539. if (CheckAajxData(data) === false) return;
  540. var msg = data.ErrorInfo;
  541. if (data.Success === true) {
  542. LoadTable();
  543. $("#winModal").window("close");
  544. if (type === "Add") {
  545. var msgArr = msg.split('|');
  546. if ($("#hid_Type_Warrant").val() === "true") {
  547. $("#hid_SellerId").val(msgArr[0]);
  548. layer.confirm("经营户信息保存成功,确认添加执照信息?",
  549. { icon: 3, title: '提示信息' },
  550. function(index) {
  551. $("hid__Add_Warrant").val("false");
  552. Save_Warrant("Add");
  553. $("#hid_SellerId").val("");
  554. layer.close(index);
  555. });
  556. } else {
  557. msg = (msgArr[1] == null || msgArr[1] == undefined) ? msgArr[0] : msgArr[1];
  558. layer.alert(msg, { icon: 1, title: '提示信息' });
  559. }
  560. } else {
  561. layer.alert(msg, { icon: 1, title: '提示信息' });
  562. }
  563. }
  564. else {
  565. layer.alert(msg, { icon: 2, title: '提示信息' });
  566. }
  567. }
  568. });
  569. }
  570. function Save_Warrant(type) {
  571. type = type || $("#hid_Type_Warrant").val();
  572. var sellerId = $("#hid_SellerId").val();
  573. $.ajaxFileUpload({
  574. url: '@Url.Action("MarketSellerWarrantOper", "MarketSystem")', //文件上传到哪个地址,告诉ajaxFileUpload
  575. secureuri: false, //一般设置为false
  576. fileElementId: 'AttachFileUpdate', //文件上传控件的Id <input type="file" id="fileUpload" name="file" />
  577. type: "post",
  578. //data: $("#Warrant_form").serializeArray(),
  579. dataType: "json",
  580. data: {
  581. Type: type,
  582. SellerID: sellerId,
  583. UploadFile: "true",
  584. ID: $("#hid_ID").val(),
  585. WarrantTypeID: $("#WarrantTypeID").val(),
  586. WarrantStyle: $("#WarrantStyle").val(),
  587. WarrantNumber: $("#WarrantNumber").val(),
  588. ValidStartTime: $("#ValidStartTime").val(),
  589. ValidEndTime: $("#ValidEndTime").val(),
  590. FileTitle: $("#FileTitle").val()
  591. },
  592. success: function(data) {
  593. if (CheckAajxData(data) === false) return;
  594. var msg = data.ErrorInfo;
  595. if (data.Success === true) {
  596. LoadWarrant_Seller(sellerId);
  597. $("#winModal_Warrant").window("close");
  598. layer.alert(msg, { icon: 1, title: '提示信息' });
  599. } else {
  600. layer.alert(msg, { icon: 7, title: '提示信息' });
  601. }
  602. }
  603. });
  604. }
  605. function Save_Stall() {
  606. var sellerId = $("#hid_SellerId_Stall").val();
  607. $.ajax({
  608. url: '@Url.Action("MarketSellerStallOper", "MarketSystem")',
  609. type: "post",
  610. //data: $("#Warrant_form").serializeArray(),
  611. dataType: "json",
  612. data: {
  613. SellerID: sellerId,
  614. StallNo:$("#StallNo").val()
  615. },
  616. success: function (data) {
  617. if (CheckAajxData(data) === false) return;
  618. var msg = data.ErrorInfo;
  619. if (data.Success === true) {
  620. LoadTable();
  621. $("#winModal_Stall").window("close");
  622. layer.alert(msg, { icon: 1, title: '提示信息' });
  623. } else {
  624. layer.alert(msg, { icon: 7, title: '提示信息' });
  625. }
  626. }
  627. });
  628. }
  629. //添加
  630. function btn_Add() {
  631. $("#hid_Type").val("Add");
  632. $("#winModal input").val("");
  633. $("#winModal textarea").val("");
  634. $("#hid_SellerId").val("");
  635. $("#modal .modal-title").html("添加");
  636. $("#winModal").window("open");
  637. LoadWarrant_Seller();
  638. }
  639. function btn_Add_Warrant() {
  640. var sellerId = $("#hid_SellerId").val();
  641. if (sellerId === "") {
  642. layer.confirm('需要先保存经营户信息,才可添加证照信息!',
  643. { icon: 3, title: '提示信息' },
  644. function (index) {
  645. $("#hid_Add_Warrant").val("true");
  646. Save("Add");
  647. layer.close(index);
  648. });
  649. } else {
  650. $("#hid_Type_Warrant").val("Add");
  651. $("#winModal_Warrant input").val("");
  652. $("#Save_Warrant span.l-btn-text").html("添加");
  653. $("#winModal_Warrant").window("open");
  654. }
  655. }
  656. //修改
  657. function btn_Edit_Warrant() {
  658. $("#hid_Type_Warrant").val("Edit");
  659. $("#Save_Warrant span.l-btn-text").html("修改");
  660. SetModalVal_Warrant();
  661. }
  662. //删除
  663. function btn_Del() {
  664. $("#hid_Type").val("Del");
  665. var rows = $('#dgTable').datagrid('getSelections');
  666. if (rows.length === 1) {
  667. var row = rows[0];
  668. //console.log(row);
  669. layer.confirm("您确定删除这条记录吗?", { icon: 3, title: '提示信息' },
  670. function (index) {
  671. $("#hid_SellerId").val(row.SellerID);
  672. Save("Del");
  673. layer.close(index);
  674. });
  675. }
  676. }
  677. function btn_ReDel() {
  678. $("#hid_Type").val("ReDel");
  679. var rows = $('#dgTable').datagrid('getSelections');
  680. if (rows.length === 1) {
  681. var row = rows[0];
  682. //console.log(row);
  683. layer.confirm("您确定恢复这条记录吗?", { icon: 3, title: '提示信息' },
  684. function (index) {
  685. $("#hid_SellerId").val(row.SellerID);
  686. Save("ReDel");
  687. layer.close(index);
  688. });
  689. }
  690. }
  691. function btn_Del_Warrant() {
  692. $("#hid_Type_Warrant").val("Del");
  693. $("#hid_SellerId").val();
  694. var rows = $('#Warrant').datagrid('getSelections');
  695. if (rows.length === 1) {
  696. var row = rows[0];
  697. //console.log(row);
  698. layer.confirm("您确定删除这条记录吗?",{ icon: 3, title: '提示信息' },
  699. function (index) {
  700. $("#hid_ID").val(row.ID);
  701. Save_Warrant("Del");
  702. layer.close(index);
  703. });
  704. }
  705. }
  706. function btn_SellerStall() {
  707. var rows = $('#dgTable').datagrid('getSelections');
  708. if (rows.length === 1) {
  709. var row = rows[0];
  710. //console.log(row);
  711. //$("#MarketID").val(row.MarketID);
  712. $("#hid_SellerId_Stall").val(row.SellerID);
  713. $("#MarketSellerName_Stall").val(row.MarketSellerName);
  714. $("#StallNo").val(row.StallID);
  715. $("#winModal_Stall").window("open");
  716. } else {
  717. layer.alert('请选择一条记录进行设置', { icon: 7, title: '提示信息' });
  718. }
  719. }
  720. //modal赋值
  721. function SetModalVal() {
  722. var rows = $('#dgTable').datagrid('getSelections');
  723. if (rows.length === 1) {
  724. var row = rows[0];
  725. console.log(row);
  726. //$("#MarketID").val(row.MarketID);
  727. $("#hid_SellerId").val(row.SellerID);
  728. $("#MarketSellerName").val(row.MarketSellerName);
  729. $("#LicenseNo").val(row.LicenseNo);
  730. $("#LicenseName").val(row.LicenseName);
  731. $("#CardIndex").val(row.CardIndex);
  732. $("#Gender").val(row.Gender);
  733. $("#Age").val(row.Age);
  734. $("#IdCard").val(row.IdCard);
  735. $("#Tel").val(row.Tel);
  736. $("#EnterMarketDate").val(row.EnterMarketDate);
  737. $("#ResidenceAddress").val(row.ResidenceAddress);
  738. $("#TempAddress").val(row.TempAddress);
  739. $("#TradeTypeID").val(row.TradeTypeID);
  740. $("#RunningWayTypeID").val(row.RunningWayTypeID);
  741. $("#AnnualStallFee").val(row.AnnualStallFee);
  742. $("#Facia").val(row.Facia);
  743. $("#ApparatusTypeID").val(row.ApparatusTypeID);
  744. $("#Remark").val(row.Remark);
  745. $("#Staff1Name").val(row.Staff1Name);
  746. $("#Staff1Gender").val(row.Staff1Gender);
  747. $("#Staff1Age").val(row.Staff1Age);
  748. $("#Staff1Residence").val(row.Staff1Residence);
  749. $("#Staff1CurrentAddr").val(row.Staff1CurrentAddr);
  750. $("#Staff2Name").val(row.Staff2Name);
  751. $("#Staff2Gender").val(row.Staff2Gender);
  752. $("#Staff2Age").val(row.Staff2Age);
  753. $("#Staff2Residence").val(row.Staff2Residence);
  754. $("#Staff2CurrentAddr").val(row.Staff2CurrentAddr);
  755. $("#Staff3Name").val(row.Staff3Name);
  756. $("#Staff3Gender").val(row.Staff3Gender);
  757. $("#Staff3Age").val(row.Staff3Age);
  758. $("#Staff3Residence").val(row.Staff3Residence);
  759. $("#Staff3CurrentAddr").val(row.Staff3CurrentAddr);
  760. if ($("#hid_Type").val() === "Edit") {
  761. LoadWarrant_Seller(row.SellerID);
  762. $("#winModal").window("open");
  763. }
  764. } else {
  765. layer.alert('请选择一条记录进行设置', { icon: 7, title: '提示信息' });
  766. }
  767. }
  768. function SetModalVal_Warrant() {
  769. var rows = $('#Warrant').datagrid('getSelections');
  770. if (rows.length === 1) {
  771. var row = rows[0];
  772. console.log(row);
  773. $("#hid_ID").val(row.ID);
  774. $("#WarrantTypeID").val(row.WarrantTypeID);
  775. $("#WarrantStyle").find("option[text='" + row.WarrantStyle + "']").attr("selected", "selected");;
  776. $("#WarrantNumber").val(row.WarrantNumber);
  777. $("#ValidStartTime").val(row.ValidStartTime);
  778. $("#ValidEndTime").val(row.ValidEndTime);
  779. $("#FileTitle").val(row.FileTitle);
  780. if ($("#hid_Type").val() === "Edit") {
  781. $("#winModal_Warrant").window("open");
  782. }
  783. } else {
  784. layer.alert('请选择一条记录进行设置', { icon: 7, title: '提示信息' });
  785. }
  786. }
  787. //加载表格数据
  788. @*function LoadTable(value, item) {
  789. $('#dgTable').datagrid({
  790. url: '@Url.Action("MarketSellersListResult", "GetResult")' + '?IsLock=' + $('#hid_IsLock').val() + '&PcVal=' + escape(value) + '&PcItem=' + item,
  791. onDblClickRow: function () {
  792. btn_Edit();
  793. }
  794. });
  795. }*@
  796. function LoadTable_Lock(value, item) {
  797. var marketId = $("input.textbox-value[name='SearchMarketID']").val();
  798. var marketSellerName = $('#SearchMarketSellerName').val(),
  799. //warrantNumber = $('#SearchWarrantNumber').val(),
  800. licenseNo = $('#SearchLicenseNo').val(),
  801. licenseName = $('#SearchLicenseName').val(),
  802. tradeTypeId = $("input.textbox-value[name='SearchTradeTypeID']").val(),
  803. tempAddress = $('#SearchTempAddress').val(),
  804. stall = $('#SearchStall').val();
  805. $('#dgTable').datagrid({
  806. 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),
  807. onDblClickRow: function () {
  808. }
  809. });
  810. }
  811. function LoadTable(collapsed) {
  812. collapsed = collapsed || false;
  813. var marketId = $("input.textbox-value[name='SearchMarketID']").val();
  814. var marketSellerName = $('#SearchMarketSellerName').val(),
  815. //warrantNumber = $('#SearchWarrantNumber').val(),
  816. licenseNo = $('#SearchLicenseNo').val(),
  817. licenseName = $('#SearchLicenseName').val(),
  818. tradeTypeId = $("input.textbox-value[name='SearchTradeTypeID']").val(),
  819. tempAddress = $('#SearchTempAddress').val(),
  820. stall = $('#SearchStall').val();
  821. if (collapsed===true) {
  822. $("#Search").panel("collapse", true);
  823. }
  824. if ($("#hid_IsLock").val() === "1") {
  825. LoadTable_Lock();
  826. } else {
  827. $('#dgTable').datagrid({
  828. url: "/GetResult/MarketSellersQryResult" + '?IsLock=0&MarketSellerName=' + escape(marketSellerName) + '&MarketID=' + marketId + '&TradeTypeID=' + tradeTypeId + '&TempAddress=' + escape(tempAddress) + '&Stall=' + escape(stall) + '&LicenseNo=' + escape(licenseNo) + "&LicenseName=" + escape(licenseName)
  829. ,onDblClickRow: function () {
  830. btn_Edit();
  831. }
  832. });
  833. }
  834. }
  835. var start = {
  836. elem: "#ValidStartTime",
  837. format: "YYYY-MM-DD",
  838. min: "2010-01-01",
  839. event: "focus",
  840. choose: function(datas) {
  841. end.min = datas; //开始日选好后,重置结束日的最小日期
  842. end.start = datas; //将结束日的初始值设定为开始日
  843. }
  844. };
  845. var end = {
  846. elem: "#ValidEndTime",
  847. format: "YYYY-MM-DD",
  848. min: "2010-01-01",
  849. event: "focus",
  850. choose: function(datas) {
  851. start.max = datas; //结束日选好后,重置开始日的最大日期
  852. }
  853. };
  854. $(function () {
  855. //加载表格数据
  856. //var value = $(".textbox.searchbox .textbox-value").val(), item = $(".textbox.searchbox .textbox-value").attr("name");
  857. //LoadTable(value, item);
  858. //加载日历控件
  859. setTimeout(LoadTable(false), 500);
  860. laydate({
  861. elem: '#EnterMarketDate',
  862. format: "YYYY-MM-DD",
  863. min: "1980-01-01",
  864. event: "focus"
  865. });
  866. laydate(start);
  867. laydate(end);
  868. });
  869. </script>
  870. </body>
  871. </html>