123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306 |
-
- @{
- Layout = null;
- }
- <!DOCTYPE html>
- <html>
- <head>
- <meta name="viewport" content="width=device-width" />
- <title>TZQDouzhipin</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="~/js/Utils.js"></script>
- <link href="~/Content/css/Styles.css" rel="stylesheet" />
- <link href="~/Content/css/style.min862f.css" rel="stylesheet" />
- </head>
- <body>
- <section class="hidden">
- <input id="hid_IsMarketSysAccount" name="hid_IsMarketSysAccount" type="hidden" value="@ViewBag.IsMarketSysAccount" />
- <input id="hid_MarketID" name="hid_MarketID" type="hidden" value="@ViewBag.MarketID" />
-
- </section>
- <table class="tableStyle1" style="Z-INDEX:101;LEFT:5px;WIDTH:725px;TOP:10px;POSITION:absolute;">
- <tr>
- <td class="td1"><img alt="" src="../Images/icon_1.gif" />年份:</td>
- <td class="td2">
- <select id="cmbYear" style="height: 25px; width: 200px">
- @Html.Raw(ViewBag.SelYears)
- </select>
- </td>
- <td class="td1"><img alt="" src="../Images/icon_1.gif" />开始月份:</td>
- <td class="td2">
-
- <select id="StartMonth" name="StartMonth" style="height: 25px; width: 200px">
- @Html.Raw(ViewBag.SelStartMonths)
- </select>
- </td>
- <td class="td1">结束月份:</td>
- <td class="td2">
- <select id="EndMonth" name="EndMonth" style="height: 25px; width: 200px">
- @Html.Raw(ViewBag.SelEndMonths)
- </select>
-
- </td>
-
- </tr>
- <tr>
- <td class="td1"><img alt="" src="../Images/icon_1.gif" />市场名称:</td>
- <td class="td2" colspan="5" height="150px">
- <select class="form-control" multiple="true" style="height: 150px; width: 400px" id="MarketIDs" name="MarketIDs">
- @Html.Raw(ViewBag.SelMarketInfo)
- </select>
- </td>
- </tr>
- <tr>
- <td class="td1">
- <img alt="" src="../Images/icon_1.gif" />姓名:
- </td>
- <td class="td2" >
- <input class="easyui-textbox" style="height: 22px;width:200px" id="SellerNames" name="SellerNames" data-options="icons:[{
- iconCls:'icon-search_zoom',handler:function(){SearchModalSeller()}
- }]" />
-
-
- </td>
- <td class="td1">
- <img alt="" src="../Images/icon_1.gif" />注册号:
- </td>
- <td class="td2" >
- <input class="easyui-textbox" style="height: 22px;width:200px" id="TextRegNo" name="TextRegNo" />
- </td>
- <td class="td1" colspan="2">
- <div align="center">
- <a class="easyui-linkbutton" id="Save_Search" data-options="iconCls:'icon-search'" href="javascript:void(0)" onclick="btn_Query()" style="width:120px;margin-right:110px">显示打印结果</a>
- </div>
- </td>
- </tr>
- </table>
- <section>
-
- <div id="winModalSeller" class="easyui-window winModal" title="经营户查询" style="width: 700px; height: 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:5px 5px 5px;">
- <table>
- <tr>
- <td style="padding-left:5px">辖区工商:</td>
- <td style="padding-left:5px">
- @*<input class="easyui-combotree" id="RegionID" data-options="url:/BaseInfo/GetTreeRegion',method:'post',required:true,loadFilter: function (rows) {
- return convert(rows);
- }" style="width:100px;" />*@
- <input class="easyui-combotree" id="RegionID2" data-options="url:'/BaseInfo/GetTreeRegion',method:'post',loadFilter: function (rows) {
- return convert(rows);
- },onClick:function(data){largetSelectMarket(data)}" style="width:200px;height:20px" />
- </td>
- <td style="padding-left:5px">隶属市场:</td>
- <td style="padding-left:5px">
- <select style="height: 22px;width:200px" id="MarketID" name="MarketID">
- <option value="">请选择...</option>
- @Html.Raw(ViewBag.SelMarketInfo)
- </select>
- </td>
- </tr>
- <tr>
- <td style="padding-left:5px">姓名:</td>
- <td style="padding-left:5px">
- <input class="easyui-textbox" id="SellerName" style="width:200px;height:20px" />
- </td>
- <td style="padding-left:100px" colspan="2"><a class="easyui-linkbutton" data-options="iconCls:'icon-search'" href="javascript:void(0)" onclick="DgSearchSellerLoadTable()" style="width:100px;height:20px">搜索</a></td>
- </tr>
- </table>
- <table id="dgTable_SearchSeller" class="easyui-datagrid" style="width: 98%; height: 285px;"
- data-options="singleSelect: true,
- method: 'post',
- multiSort: false,
- fitColumns: true,
- remoteSort: false,
- onDblClickRow: function () {
- SetSearchSeller();
- }">
- <thead>
- <tr>
- <th data-options="field:'Name',width:50">姓名</th>
- <th data-options="field:'IdCard',width:150,">身份证号</th>
- <th data-options="field:'EnterMarketDate',width:100,">进场时间</th>
- <th data-options="field:'Tel',width:100">电话</th>
- </tr>
- </thead>
- </table>
- </div>
- <div data-options="region:'south',border:false" style="text-align:right; padding: 10px 20px;height:52px">
- <a class="easyui-linkbutton" data-options="iconCls:'icon-ok'" href="javascript:void(0)" onclick="SetSearchSeller()" style="width:80px">确认</a>
- <a class="easyui-linkbutton" data-options="iconCls:'icon-cancel'" href="javascript:void(0)" onclick="$('#winModalSeller').window('close');" style="width:80px">取消</a>
- </div>
- </div>
- </div>
- </section>
- <script>
- function largetSelectMarket(data) {
- var regionId = $('#RegionID2').combotree('getValue');
- refreshMarketList(regionId);
- }
- function refreshMarketList(regionId) {
- $("#MarketID").empty();
- $.post("/Reports/GetMarketJsons", { regionId: regionId }, function (data) {
- $("#MarketID").append("<option value=''>请选择...</option>");
- if (data.length > 0) {
- for (var i = 0; i < data.length; i++) {
- $("#MarketID").append("<option value=" + data[i].MarketID + ">" + data[i].Names + "</option>");
- }
- }
- }, "json")
- //$("#MarketID").combobox('reload', "/Reports/GetMarketJsons?regionId=" + regionId);
- }
- function SearchModalSeller() {
- $('#winModalSeller').window({ "title": "经营户搜索" });
- $('#SellerName').textbox('setValue', "")
- DgSearchSellerLoadTable();
- $('#winModalSeller').window('open');
- }
- function SearchModal() {
- $('#winModal').window({ "title": "搜索被检单位" });
- $('#MarketName').textbox('setValue',"")
- DgSearchLoadTable();
- $('#winModal').window('open');
- }
- function DgSearchLoadTable() {
- $('#dgTable_Search').datagrid({
- url: '/Reports/GetMarkets?RegionId=' + $('#RegionID').combotree('getValue') + '&&MarketName=' + $('#MarketName').textbox('getValue')
- })
- }
- function DgSearchSellerLoadTable() {
- $('#dgTable_SearchSeller').datagrid({
- url: '/Reports/GetMarketSeller?RegionId=' + $('#RegionID2').combotree('getValue') + '&&MarketID=' + $('#MarketID').val() + '&&SellerName=' + $('#SellerName').textbox('getValue')
- })
- }
- function SetSearch() {
- var row = $('#dgTable_Search').datagrid('getSelected');
- if (row) {
- $('#MarketNames').combobox('setValue', row.MarketID);
- $('#winModal').window('close');
- }
- }
- function SetSearchSeller() {
- var row = $('#dgTable_SearchSeller').datagrid('getSelected');
- if (row) {
- $('#SellerNames').textbox('setValue', row.Name);
- $('#winModalSeller').window('close');
- }
- }
- function btn_Query() {
- var MarketIDs = document.getElementById("MarketIDs");
- var strs = "";
- for (var i = 0; i < MarketIDs.length; i++) {
- //marketIds += marketIds == "" ? MarketIDs[i] : ',' + MarketIDs[i];
- if (MarketIDs.options[i].selected) {
- strs += MarketIDs.options[i].value + ",";
- }
- }
- if (strs.length > 0) {
- strs = strs.substr(0, strs.length - 1)
- }
- if (strs.length <= 0) {
- alert("请先选择市场进行查询!")
- return;
- }
- window.open("/Taizhang/RptPSellerEvaluation?MarketID=" + strs + '&&Year=' + $('#cmbYear').val() + '&&StartMonth=' + $('#StartMonth').val() + '&&EndMonth=' + $('#EndMonth').val() +
- '&&SellerName=' + $('#SellerNames').textbox('getValue') + '&&RegNo=' + $('#TextRegNo').textbox('getValue'));
- }
-
- $(function () {
-
-
- })
- function openwin(url) {
- var a = document.createElement("a");
- a.setAttribute("href", url);
- a.setAttribute("target", "_blank");
- a.setAttribute("id", "openwin");
- document.body.appendChild(a);
- a.click();
- }
- //弹出窗体居中
- function f_Center(ll_Width, ll_Height) {
- var ll_Left;
- var ll_Top;
- var ls_Str;
- ll_Left = (screen.width - ll_Width) / 2
- ll_Top = (screen.height - ll_Height) / 2
- if (ll_Left < 0) {
- ll_Left = 0;
- }
- if (ll_Top < 0) {
- ll_Top = 0;
- }
- ls_Str = "left = " + ll_Left + ",top = " + ll_Top + ",width = " + ll_Width + ",height = " + ll_Height;
- return ls_Str;
- }
- function convert(rows) {
- function exists(rows, parentId) {
- for (var i = 0; i < rows.length; i++) {
- if (rows[i].id == parentId) return true;
- }
- return false;
- }
- var nodes = [];
- // get the top level nodes
- for (var i = 0; i < rows.length; i++) {
- var row = rows[i];
- if (!exists(rows, row.parentId)) {
- nodes.push({
- id: row.id,
- text: row.name
- });
- }
- }
- var toDo = [];
- for (var i = 0; i < nodes.length; i++) {
- toDo.push(nodes[i]);
- }
- while (toDo.length) {
- var node = toDo.shift(); // the parent node
- // get the children nodes
- for (var i = 0; i < rows.length; i++) {
- var row = rows[i];
- if (row.parentId == node.id) {
- var child = { id: row.id, text: row.name };
- if (node.children) {
- node.children.push(child);
- } else {
- node.children = [child];
- }
- toDo.push(child);
- }
- }
- }
- return nodes;
- }
- </script>
- </body>
- </html>
|