CINXE.COM

首页-医药代表备案平台

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <link rel="shortcut icon" href="/images/title.ico" type="image/x-icon" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="format-detection" content="telephone=no"> <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" /> <link rel="stylesheet" type="text/css" href="/css/common.css"/> <link rel="stylesheet" type="text/css" href="/css/style.css"/> <link rel="stylesheet" type="text/css" href="/css/select.css" /> <link rel="stylesheet" type="text/css" href="/css/media.css" /> <link rel="stylesheet" type="text/css" href="/css/screen-long-css.css" /> <script src="/js/jquery-1.8.3.min.js" type="text/javascript" charset="utf-8"></script> <script type="text/javascript" src="/js/flexible.js"></script> <style> .tab .tab_infos input{outline: none} </style> <title>首页-医药代表备案平台</title> </head> <body> <a href=/_ascnlink_n></a> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <link rel="shortcut icon" href="/images/title.ico" type="image/x-icon" /> <title>头部</title> <style> .mobile_iph{position:relative} .two-dimension{ position:absolute; z-index:1; top:34px; left:-38px; display:none; } .two-dimension p{text-align:center;} .arrow img{margin-left: 4px;margin-bottom: 2px;} .two-dimension img{ width:160px; } </style> </head> <div class="header"> <div class="warp clr"> <div class="logo"> <img src="/images/logo_bg.png"/> <img src="/images/mobileImg/return.png" class="mobileImg" id="return" onclick="JavaScript:history.go(-1);"/> <img src="/images/mobileImg/loginMenu.png" class="mobileImg" id="navlist"/> <img src="/images/mobileImg/loginMan.png" class="mobileImg" id="loginMan"/> <ul class="navlist" style="display:none;"> <!-- <li>首页</li> --> <li target="#annoucement"><img src="/images/2.png" alt="" /><span>信息公示</span></li> <li target="#publicQuery"><img src="/images/3.png" alt="" /><span>公共查询</span></li> </ul> </div> <div class="logo-right"> <div class="help-list clr"> <ul class="clr"> <a href="/reception/search" class="fr"><li>站内搜索</li></a> <li class="fr">|</li> <a class="fr"><li class="mobile_iph" style="padding-bottom:0;">手机平台<span class="arrow"><img src="/mrrp/images/arrow_down.png"></span><div class="two-dimension"><img src="/mrrp/reception/createCode"><p>[扫描二维码登录注册]</p></div></li></a> </ul> </div> <div class="login fr"> <a href="javascript:;" id="login">登&nbsp;录</a> <a href="/register/holder" id="register">注&nbsp;册</a> </div> </div> </div> </div> </html> <div class="warp clr" id="main"> <div class="onlineServer" id="publicQuery"> <div class="content-title"> <div class="title-left"> <img src="/images/3.png" alt="" /> <a><b>公共查询</b></a> </div> </div> <div class="onlineCon querySearch"> <div class="search clr"> <p> <span>备案号:</span> <input type="text" name="code" id="code" value="" style="width: 1.5rem;"/> </p> <p> <span>药品上市许可持有人:</span> <input type="text" name="orgid" id="selectorgid" class="selectSearch" style="width: 1.5rem;"/> </p> <div class="respens clr"> <span>医药代表姓名:</span> <input type="text" name="representativeName" id="selectrepresentativeName" value="" style="width:1.5rem;"/> </div> <div class="searchRespensBtn" style="display: inline-block"> <button class="btn" onclick="select_record()" style="outline: none">查询</button> </div> </div> <div class="tab"> <div class="tab-body tab_infos" style="display:none;width:100%;"> <p><span>备案号:</span><input type="text" id="codes" value="" readonly="readonly"/></p> <p><span>姓名:</span><input type="text" id="representativeName" value="" readonly="readonly" style="margin-top:-0.05rem;width:0.75rem;"/></p> <p><span>性别:</span><input type="text" id="sex" value="" readonly="readonly" style="margin-top:-0.075rem;width:0.75rem;"/></p> <p><span>药品上市许可持有人:</span><label id="orgId"></label></p> </div> <div class="tab-body tabls"> <p>请输入备案号,或者药品上市许可持有人+医药代表姓名查询</p> </div> </div> </div> </div> <div class="content clr" id="annoucement"> <div class="important" style="margin-right:1%" > <div class="content-title"> <div class="title-left"> <img src="/images/2.png" alt="" /> <a href="/publicity/tzgg" id="tzggId"><b>通知公告</b></a> </div> <a id="imBtn" href="/publicity/tzgg">更多</a> </div> <div class="important_noice"> <div class="noice-body"> <ul id="tul"> </ul> </div> </div> </div> <div class="important"> <div class="content-title"> <div class="title-left"> <img src="/images/1.png" alt="" /> <a href="/publicity/zcfg" id="zcfgId"><b>政策法规</b></a> </div> <a id="zcfgBtn" href="/publicity/zcfg" class="notie_more">更多</a> </div> <div class="important_noice"> <ul id="zul" class="one-list"> </ul> </form> </div> </div> </div> </div> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>底部</title> </head> <div class="footer"> <div class="warp"> <div class="contants"> <div style="width: 380px;margin: 0 auto"> <p><span style="margin-bottom:0">主管单位:国家药品监督管理局</span></p><br> <p><span>技术支持:中国药学会</span></p><br> <p><span style="color:#fff" id="">业务咨询电话:010-67095789</span></p><br> <p><span style="color:#fff" id="footerLon">技术咨询电话:010-89289114</span></p><br> <p><span style="color:#fff">反馈问题邮箱:pharmareps@cpa.org.cn</span></p> <p><span style="color:#fff">备案序号:<a href="https://beian.miit.gov.cn" target="_blank" style="color:#fff;">京ICP备05051953号-1</a> <a href="https://www.beian.gov.cn/portal/registerSystemInfo?recordcode=11010102004101" target="_blank" style="color:#fff;margin-bottom: 6px">公网安备11010102004101号</a> </span></p> </div> <!-- <p><span>技术支持:中国药学会</span></p> --> </div> </div> <!-- <div class="footer-info">中国药学会科技开发中心</div> --> </div> </div> </html> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <script type="text/javascript" charset="utf-8" src="/js/CryptoJs.js"></script> <title>登录</title> <style> .login-title{position:relative;} .login-title a{ position: absolute; top: 0; right: 0; display:block; background:url(../images/closeMask.png) no-repeat; width:22px; height:22px; float:right; margin-right:7px; margin-top:6px; cursor:pointer; } .login-title a:hover{ background:url(../images/closeMask2.png) no-repeat; } </style> </head> <div class="login-box" id="logins"> <div class="login-title"> <img src="/images/login_titlt.png"/> <a class="close"></a> </div> <div class="login-body clr"> <form id="loginForm"> <div class="line"> <input name="uname" id="uname" type="text" placeholder="输入用户名" style="width:170px"/> <span class="icon-user"></span> </div> <div class="line"> <input name="pwd" id="pwd" type="password" placeholder="输入密码" style="width:170px;"/> <span class="icon-password"></span> <a href="/findPassword/getMail" style="padding-left: 10px;color:#898989">忘记密码</a> </div> <div class="line"> <input name="validateCode" id="validateCode" type="text" placeholder="验证码" style="width: 62px;"/> <span class="icon-identify"></span> <img id="imgObj" title="看不清楚换一个" onclick="changeImg()" src="/validateCode/validateCode"> </div> <div class="line"> <button type="button" onclick="login()" id="btn_user_login_1" class="login-btns login-btns_on">登录</button> <!-- <button type="button" id="btn_user_register" class="login-btns login-btns_out" onclick="userRegisterInBox()">注册</button> <button type="button" onclick="login()" id="btn_user_login_2" class="login-btns login-btns_out">登录</button> <a class="close">取消</a> --> <a href="/register/holder" style="padding-left: 10px;color:#898989">注册</a> </div> <div> <span id="msg" style="color:red"></span> </div> </form> </div> </div> <script type="text/javascript"> var lORr="login"; $('#validateCode').bind('keypress',function(event){ if (event.keyCode == "13") { if(lORr=="login"){ login(); }else{ userRegisterInBox(); } } }); $('#pwd').bind('keypress',function(event){ if (event.keyCode == "13") { if(lORr=="login"){ login(); }else{ userRegisterInBox(); } } }); $('#uname').bind('keypress',function(event){ if (event.keyCode == "13") { if(lORr=="login"){ login(); }else{ userRegisterInBox(); } } }); function userRegisterInBox(){ var userType=$('input:radio[name="logintype"]:checked').val(); if(userType=="representative"){ window.location.href="/register/representative"; }else if(userType=="holder"){ window.location.href="/register/holder"; } } //加密 function formEnCode(value){ var KEY= CryptoJS.enc.Utf8.parse('Kin#v#Y&BkAKy^$K'); var IV = CryptoJS.enc.Utf8.parse('b#S7Fz^Gdw$wLYSl'); var key = KEY; var iv = IV; var strCode = CryptoJS.AES.encrypt(value,key,{ iv:iv, mode:CryptoJS.mode.CBC, padding:CryptoJS.pad.ZeroPadding }) // console.log(strCode); let strBase = CryptoJS.enc.Base64.stringify(strCode.ciphertext); // console.log(strBase) return strBase; } function login(){ var uname = $('#uname').val(); var pwd = $('#pwd').val(); var validateCode = $('#validateCode').val(); var type=$('input:radio[name="logintype"]:checked').val(); if(uname == ""){ $('#msg').text("请输入用户名"); return false; } if(pwd == ""){ $('#msg').text("请输入密码"); return false; } if(validateCode.length != 4){ $('#msg').text("请输入验证码"); return false; } //ajax提交表单信息 $("#btn_user_login_1").text("稍等..."); $("#btn_user_login_2").text("稍等..."); var pwd_trans = formEnCode(pwd); $.ajax({ type:"POST", url:"/user/userLogin", data:{ "uname":uname, "pwd":pwd_trans, "validateCode":validateCode, "typeName":"holder", }, dataType:"json", success:function(data){ if(0==data.result){ $(".login-box").css("display","none"); window.location.href=""+data.entity; }else{ //$('#msg').text(data.errInfo.errortext); //alert(data.errInfo.errortext); var type = data.entity; if(type == null||type == ""){ $('#msg').text(data.errInfo.errortext); }else if(type == "lock"){ $('#msg').html('密码错误10次, 您可以<a href="/findPassword/getMail" style="color:red;cursor:pointer">找回密码</a>, 或20分钟后再试'); } $("#btn_user_login_1").text("登录"); $("#btn_user_login_2").text("登录"); } } }); return true; } </script> </html> <!-- <div class="mask" id="showInfo"> <div class="mask_con"> <div class="masktop"> <span>违规公示</span><a></a> </div> <div class="maskinfo"> <div class="formbody"> <div class="maskline"><span>违规事项:</span><label id="wgsx"></label></div> <div class="wgInfo"> <span>违规情况:</span><textarea id="wgsm" rows="8" cols="60" style="resize: none;width:440px;height:125px;" disabled="disabled"></textarea> </div> </div> </div> <div class="maskbtn"> <input name="" type="button" class="cancel" value="关闭"> </div> </div> </div> --> <div class="czznMask" id="czznMask"> <a href="/fileInfo/czzn.pdf" download="医药代表信息备案平台操作指南.pdf">医药代表备案平台<br>操作指南</br></a> </a> </div> </body> <script src="/js/index.js" type="text/javascript" charset="utf-8"></script> <script src="/js/select.js" type="text/javascript" charset="utf-8"></script> <script src="/js/selectTwo.js" type="text/javascript" 3charset="utf-8"></script> <script src="/laydate/laydate.js" type="text/javascript" charset="utf-8"></script> <script src="/js/center.js"></script> <script type="text/javascript"> var clientWidth = document.documentElement.clientWidth; var clientHeight = document.documentElement.clientHeight; var scrollHei = document.documentElement.scrollHeight; // var czznMHei = $("#czznMask").css("height").split("px")[0]; var czznMWid = $("#czznMask").css("width").split("px")[0]; // console.log(clientWidth,clientHeight,scrollHei) console.log(czznMHei,czznMWid) var maxLeft = clientWidth-czznMWid; var maxTop = scrollHei-czznMHei; var per = clientWidth/scrollHei; var timePer = 20; var proporL = 1*per;//左右移动 每次的距离; var proporT = 1;//上下移动 每次10 var nowLeft = 0; var nowTop = 0; console.log(proporT,proporL) console.log(maxLeft,maxTop,) $("#czznMask").css("transform","translate("+maxLeft+"px,"+maxTop+"px)"); var timer1,timer2,timer3,timer4; ltTorb(); //左上 - 右下 移动 function ltTorb() { // console.log("右下移动") timer1=setInterval(function () { nowTop = nowTop+proporT; nowLeft = nowLeft + proporL; if (nowLeft >= maxLeft || nowTop >= maxTop){ clearInterval(timer1); timer1 = null; // console.log(nowLeft,nowTop) rbTolb(); return } $("#czznMask").css("transform","translate("+nowLeft+"px,"+nowTop+"px)"); },timePer) } //右下 - 左下 移动 function rbTolb() { // console.log("左平移动") timer2=setInterval(function () { nowLeft = nowLeft - proporL; if (nowLeft <= 0){ clearInterval(timer2); timer2 = null; // console.log(nowLeft,nowTop) lbTort(); return } $("#czznMask").css("transform","translate("+nowLeft+"px,"+nowTop+"px)"); },timePer) } //左下 - 右上移动 function lbTort() { // console.log("右上移动") timer3=setInterval(function () { nowTop = nowTop-proporT; nowLeft = nowLeft + proporL; if (nowTop <= 0 || nowLeft >= maxLeft){ clearInterval(timer3); timer3 = null; // console.log(nowLeft,nowTop) rtTolt(); return } $("#czznMask").css("transform","translate("+nowLeft+"px,"+nowTop+"px)"); },timePer) } //右上 - 左上移动 function rtTolt() { // console.log("左平移动") timer4=setInterval(function () { nowLeft = nowLeft - proporL; if (nowLeft <= 0){ clearInterval(timer4); timer4 = null; // console.log(nowLeft,nowTop) ltTorb(); return } $("#czznMask").css("transform","translate("+nowLeft+"px,"+nowTop+"px)"); },timePer) } var nowAnimation; $("#czznMask").hover(function () { // console.log(!timer1,!timer2,!timer3,!timer4) if (timer1){ nowAnimation = 1; }else if (timer2){ nowAnimation = 2; }else if (timer3){ nowAnimation = 3; }else if (timer4){ nowAnimation = 4; } clearInterval(timer1); clearInterval(timer2); clearInterval(timer3); clearInterval(timer4); },function(){ switch (nowAnimation) { case 1: ltTorb() break; case 2: rbTolb() break; case 3: lbTort() break; case 4: rtTolt() break; } }) //footer var footLon = $("#footerLon"); var footEl = $(".footer"); var footElWid = footEl.css("width").split("px")[0]*0.8; var footLonWid = footLon.css("width").split("px")[0]; var lonElMarL = (footElWid-footLonWid)/2; // $(".footer p span").css("margin-left",lonElMarL+10+"px"); // console.log(footElWid,footLonWid,(footElWid-footLonWid)/2); if(clientWidth <= 450){ warpHeight("main"); $("#navlist").click(function(){ $(".navlist").slideToggle(); }); $("[target]").click(function(){ var target = $(this).attr('target'); if(target == "#showInfo"){ $(target).show(); }else{ $(".onlineServer,.content,.public,.navlist").hide(); $(target).show(); } warpHeight("main"); }); $("#loginMan").click(function(){ window.location.href="/mobilel"; }) } function warpHeight(ids){ console.log(ids); var o= document.getElementById(ids); console.log(o.offsetHeight); var h = clientHeight-48-121; //高度 if(h >= o.offsetHeight){ $(".footer").css({ position: 'fixed', bottom: 0 }); }else{ $(".footer").css({ position: 'inherit'}); } } /* getEntityData(); //初使化数据 function getEntityData(){ $("#selectorgid").comboSelect({ "itemName": "entityName", "isHolder": "1", "url": "/system/manager/getLikeOrgs", "limit": 7 }); } */ $(function (){ $(".box a:nth-child(2n)").css("margin-right","0"); $('.big_noice').toggle( function(){ $('.heightTime').show(); $(this).val('取消'); },function(){ $('.heightTime').hide(); $(this).val('高级'); } ); $('.public .navitems a').click(function(){ var $index = $(this).index(); $(this).addClass('addClassBorder').siblings('a').removeClass('addClassBorder'); $('.public .onlineCon').siblings('.onlineCon').hide().eq($index).show(); /* getEntityDataTwo(); function getEntityDataTwo(){ $("#oname").comboSelectTwo({ "itemName": "entityName", "isHolder": "1", "url": "/system/manager/getLikeOrgs", "limit": 7 }); } */ }) }); // 刷新图片 function changeImg() { var imgSrc = $("#imgObj"); var src = imgSrc.attr("src"); var timeStamp = (new Date()).valueOf(); imgSrc.attr("src", "/validateCode/"+timeStamp); } //登录弹框 $("#login").click(function(){ changeImg(); $(".login-box").css("display","block"); $("#msg").text(""); $("#btn_user_login_2").hide(); $("#btn_user_login_1").show(); lORr="login"; $("#btn_user_register").addClass('login-btns_out').removeClass('login-btns_on'); }) $(".close").click(function(){ $(".login-box").css("display","none"); }) //格式化时间 Date.prototype.Format = function(fmt) { var o = { "M+" : this.getMonth() + 1, //月份 "d+" : this.getDate(), //日 "h+" : this.getHours(), //小时 "m+" : this.getMinutes(), //分 "s+" : this.getSeconds(), //秒 "q+" : Math.floor((this.getMonth() + 3) / 3), //季度 "S" : this.getMilliseconds() //毫秒 }; if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "") .substr(4 - RegExp.$1.length)); for ( var k in o) if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length))); return fmt; } /********* 公共查询 *******/ $(function(){ //初始化下拉搜索控件 // $('.selectSearch').comboSelect(); }); $(function (){ $('#service').addClass("active"); }); /* publicinitOrg(); function publicinitOrg() { $.ajax({ type: "POST", url: "/reception/queryOrgName", data: {}, dataType: "json", success: function (data) { if (0 == data.result) { var orgs = data.entity; var html = "<option value=''>--请选择--</option>"; for (var i = 0; i < orgs.length; i++) { html += "<option value='" + orgs[i].id + "'>" + orgs[i].name + "</option>"; } $("#selectorgid").html(html); $('.selectSearch').comboSelect(); } } }); } */ //查询备案号 function select_record(){ var code=$("#code").val(); var orgName = $("#selectorgid").val(); var representativeName = $("#selectrepresentativeName").val(); $.ajax({ type:"POST", url:"/record/selectcode", data:{ "code":code, "representativeName":representativeName, "orgName":orgName, }, dataType:"json", success:function(data){ $('.querySearch .tab .tabls p').css("color","#333"); if (0 == data.result) { $('.tab .tab_infos').show(); $('.tab .tabls').hide(); var recoedOrgs = data.entity; var org=""; var codeArr = []; for(var i = 0;i< recoedOrgs.length;i++){ var codeCurrent = recoedOrgs[i].code; if (codeArr.indexOf(codeCurrent)==-1){ codeArr.push(codeCurrent) } // $("#codes").val(recoedOrgs[i].code); // $("#representativeName").val(recoedOrgs[i].representativeName); // var typeSex = ""; // if(recoedOrgs[i].sex == 0){ // typeSex = "男"; // } // if(recoedOrgs[i].sex == 1){ // typeSex = "女"; // } // if(recoedOrgs[i].sex == 2){ // typeSex = "其他"; // } // $("#sex").val(typeSex); // var submit=""; // if(recoedOrgs[i].orgsubmit=="2"){ // submit="(待确认)"; // } // if(i==0){ // $("#orgId").html(recoedOrgs[i].oName+submit); // }else{ // $("#orgId").html($("#orgId").html()+","+recoedOrgs[i].oName+submit); // } } // console.log(codeArr) var pushArr=[]; for (var j =0;j<codeArr.length;j++){ var codeEl = codeArr[j]; var objs = {orgId:[]}; for(var i = 0;i< recoedOrgs.length;i++) { if (recoedOrgs[i].code == codeEl){ var sexStr ; if(recoedOrgs[i].sex == 0){ sexStr = "男"; } if(recoedOrgs[i].sex == 1){ sexStr = "女"; } if(recoedOrgs[i].sex == 2){ sexStr = "其他"; } var submit=""; if(recoedOrgs[i].orgsubmit=="2"){ submit="(待确认)"; } objs.sex = sexStr; objs.code = codeEl; objs.representativeName = recoedOrgs[i].representativeName; objs.orgId.push(recoedOrgs[i].oName+submit) ; } } pushArr.push(objs) } // console.log(pushArr) var htmlsPush = ''; for (var k =0;k<pushArr.length;k++){ htmlsPush += '<div><p><span>备案号:</span><input type="text" value="'+pushArr[k].code+'" readonly="readonly"></p>' +'<p><span>姓名:</span><input type="text" value="'+pushArr[k].representativeName+'" readonly="readonly" style="margin-top:-2px;width:60px;"></p>' +'<p><span>性别:</span><input type="text" value="'+pushArr[k].sex+'" readonly="readonly" style="margin-top:-2px;width:60px;"></p>' //+'<p style="padding-left: 16px"><span>药品上市许可持有人:'+pushArr[k].orgId.join(",")+'</span></p></div>'; +'<p><span style="text-align:left">药品上市许可持有人:'+pushArr[k].orgId.join(",")+'</span></p></div>'; } $(".tab .tab_infos").html(htmlsPush) // console.log(codeArr) } else { $('.querySearch .tab .tab_infos').hide(); $('.querySearch .tab .tabls').show(); $('.querySearch .tab .tabls p').html(data.errInfo.errortext); $('.list-right .search input').val(''); $("#code").val(''); $("#selectorgid").val(''); $("#selectrepresentativeName").val(''); //可疑的攻击行为时,红字提示 if(data.errInfo.errortext.indexOf("可疑的攻击行为") != -1){ $('.querySearch .tab .tabls p').css("color","red"); } } } }); } /*********************************************违规公示 ************************************************/ $(function (){ $('#publicity').addClass("active"); laydate.render({ elem: '#start_date' }); laydate.render({ elem: '#end_date' }); laydate.render({ elem: '#ostart_date' }); laydate.render({ elem: '#oend_date' }); $("#tbody tr td").click(function(){ $(this).parent().find('input').attr("checked", "true"); }) $("#otbody tr td").click(function(){ $(this).parent().find('input').attr("checked", "true"); }) }); //查询creditPerson表信息 function search(current){ if(typeof(current) == "undefined"){ current = 1; } var name = $("#cname").val(); var dateStart=$("#start_date").val(); var dateEnd=$("#end_date").val(); var size = $('#size').val(); //每页查询记录 var columnId = $("#columnParent option:selected").val(); // 查询违规事项 var item = $("#publicViolation>.content-title>.navitems>.addClassBorder").text(); $.ajax({ type:"POST", url:"/publicity/queryYydb", data:{ "name":name, "dateStart":dateStart, "dateEnd":dateEnd, "current":current, "size":size, "columnId":columnId, "item":item }, dataType:"json", success:function(data){ if(0==data.result){ var page = data.entity; var list = page.list; var html = ""; for(var i = 0; i < list.length; i++){ var date = list[i].createDate; var showDate = new Date(date).Format("yyyy-MM-dd"); html +="<tr><td style='color:#4A89CA;' target='#showInfo' id='info-modify' onclick='queryYydbWgsx(event);' class='"+list[i].id+"'>"+list[i].columnName+"</td>" +"<td>"+list[i].yydbName+"</td>" +"<td>"+list[i].supervise+"</td>" /* +"<td>"+list[i].superviseName+"</td>" */ +"<td>"+showDate+"</td></tr>"; } $('#tbody').html(html); //设置当前页 $('#current').html(page.pageNum); //设置总条数 $('#count').html(page.total); //设置总页数 $('#pages').html("/ "+page.pages); } } }); } function right(){ if(parseInt($('#current').text()) < parseInt($('#pages').text().substring(1)) && parseInt($('#current').text()) >= 1){ search(parseInt($('#current').text())+1); } } function left(){ if(parseInt($('#current').text()) <= parseInt($('#pages').text().substring(1)) && parseInt($('#current').text()) > 1){ search(parseInt($('#current').text())-1); } } function one(){ search(1); } function last(){ search(parseInt($('#pages').text().substring(1))); } function go(){ current = $('#current').val(); if(current == ""){ current = 1; } if(parseInt($('#current').val()) > parseInt($('#pages').text())){ current = $('#pages').text(); }else if(parseInt($('#current').val()) < 1){ current = 1; } search(current); } //查询医药代表违规内容弹框 function queryYydbWgsx(event){ //获取信息的id $('#info-modify').attr("target", '#showInfo'); var id = event.target.className; $.ajax({ type:"POST", url:"/publicity/queryYydbWgsx", data:{ "id":id, }, dataType:"json", success:function(data){ if(0==data.result){ var map = data.entity; $('#wgsx').html(map.dictionaryName); $('#wgsm').val(map.creditPerson.itemCondition); $('#showInfo').show(); }else{ $('#showInfo').hide(); alert(data.errInfo.errortext); } } }); } /* //许可持有人机构下拉 initOrg(); function initOrg() { $.ajax({ type: "POST", url: "/reception/queryOrgName", data: {}, dataType: "json", success: function (data) { if (0 == data.result) { var orgs = data.entity; var html = "<option value=''>--请选择--</option>"; for (var i = 0; i < orgs.length; i++) { html += "<option value='" + orgs[i].id + "'>" + orgs[i].name + "</option>"; } $("#oname").html(html); $('.selectSearch').comboSelect(); } } }); } */ //查询creditUnit表信息 function unitSearch(current){ if(typeof(current) == "undefined"){ current = 1; } /* var name = $('#oname option:selected').text(); if(name=="--请选择--"){ name=""; } */ var name=$("#oname").val(); var dateStart=$("#ostart_date").val(); var dateEnd=$("#oend_date").val(); var size = $('#size').val(); //每页查询记录 var columnId = $("#ocolumnParent option:selected").val(); // 查询违规事项 var item = $("#publicViolation>.content-title>.navitems>.addClassBorder").text(); $.ajax({ type:"POST", url:"/publicity/queryUnit", data:{ "name":name, "dateStart":dateStart, "dateEnd":dateEnd, "current":current, "size":size, "columnId":columnId, "item":item }, dataType:"json", success:function(data){ if(0==data.result){ var page = data.entity; var list = page.list; var html = ""; for(var i = 0; i < list.length; i++){ var date = list[i].createDate; var showDate = new Date(date).Format("yyyy-MM-dd"); html +="<tr><td style='color:#4A89CA;' target='#showInfo' id='info-modify' onclick='queryCyrWgsx(event);' class='"+list[i].id+"'>"+list[i].columnName+"</td>" +"<td>"+list[i].org.name+"</td>" +"<td>"+list[i].supervise+"</td>" /* +"<td>"+list[i].superviseName+"</td>" */ +"<td>"+showDate+"</td></tr>"; } $('#otbody').html(html); //设置当前页 $('#ocurrent').html(page.pageNum); //设置总条数 $('#ocount').html(page.total); //设置总页数 $('#opages').html("/ "+page.pages); } } }); } function oright(){ if(parseInt($('#ocurrent').text()) < parseInt($('#opages').text().substring(1)) && parseInt($('#ocurrent').text()) >= 1){ unitSearch(parseInt($('#ocurrent').text())+1); } } function oleft(){ if(parseInt($('#ocurrent').text()) <= parseInt($('#opages').text().substring(1)) && parseInt($('#ocurrent').text()) > 1){ unitSearch(parseInt($('#ocurrent').text())-1); } } function oone(){ unitSearch(1); } function olast(){ unitSearch(parseInt($('#opages').text().substring(1))); } function ogo(){ current = $('#ocurrent').val(); if(current == ""){ current = 1; } if(parseInt($('#ocurrent').val()) > parseInt($('#opages').text())){ current = $('#opages').text(); }else if(parseInt($('#ocurrent').val()) < 1){ current = 1; } unitSearch(current); } //查询药品持有人违规内容弹框 function queryCyrWgsx(event){ //获取信息的id /* $('#info-modify').attr("target", ''); var id = event.target.parentNode.childNodes[1].firstChild.value; */ $('#info-modify').attr("target", '#showInfo'); var id = event.target.className; $.ajax({ type:"POST", url:"/publicity/queryCyrWgsx", data:{ "id":id, }, dataType:"json", success:function(data){ if(0==data.result){ var map = data.entity; $('#wgsx').html(map.dictionaryName); $('#wgsm').val(map.creditUnit.rcondition); $('#showInfo').show(); }else{ $('#showInfo').hide(); alert(data.errInfo.errortext); } } }); } /*********************************************首页展示内容******************************************/ function tzggIndex(){ $.ajax({ type:"POST", url:"/reception/queryTzggList", data:{}, dataType:"json", success:function(data){ if(0==data.result){ var list = data.entity; //var list = page.list; var html = ""; if(list != null){ var showDate = null; for(var i = 0; i < list.length; i++){ var date = list[i].createDate; showDate = new Date(date).Format("yyyy-MM-dd"); html +="<li> <a href="+list[i].contentFile+" target='_blank'>"+list[i].title+"</a>" +"<span>"+showDate+"</span></li>"; } $("#tul").html(html); } } } }); } function zcfgIndex(){ $.ajax({ type:"POST", url:"/reception/queryZzfgList", data:{}, dataType:"json", success:function(data){ if(0==data.result){ var list = data.entity; //var list = page.list; var html = ""; if(list != null){ var showDate = null; for(var i = 0; i < list.length; i++){ var date = list[i].createDate; showDate = new Date(date).Format("yyyy-MM-dd"); html +="<li> <a href="+list[i].contentFile+" target='_blank'>"+list[i].title+"</a>" +"<span>"+showDate+"</span></li>"; } $("#zul").html(html); } } } }); } function yydbIndex(){ $.ajax({ type:"POST", url:"/reception/queryYydbWggs", data:{}, dataType:"json", success:function(data){ if(0==data.result){ var page = data.entity; var list = page.list; var html = ""; if(list != null){ var showDate = null; for(var i = 0; i < list.length; i++){ var date = list[i].createDate; showDate = new Date(date).Format("yyyy-MM-dd"); html +="<tr><td class="+list[i].id+" style='color:#4A89CA;' target='#showInfo' id='info-modify' onclick='queryYydbWgsx(event);'>"+list[i].columnName+"</td>" +"<td align='center'>"+list[i].yydbName+"</td>" +"<td align='center'>"+list[i].supervise+"</td>" +"<td>"+showDate+"</td></tr>"; } $("#tbody").html(html); //设置当前页 $('#current').html(page.pageNum); //设置总条数 $('#count').html(page.total); //设置总页数 $('#pages').html("/ "+page.pages); } } } }); } function ypcyrIndex(){ $.ajax({ type:"POST", url:"/reception/queryYpcyrWggs", data:{}, dataType:"json", success:function(data){ if(0==data.result){ var page = data.entity; var list = page.list; var html = ""; if(list != null){ var showDate = null; for(var i = 0; i < list.length; i++){ var date = list[i].createDate; showDate = new Date(date).Format("yyyy-MM-dd"); html +="<tr><td class="+list[i].id+" style='color:#4A89CA;' target='#showInfo' id='info-modify' onclick='queryCyrWgsx(event);'>"+list[i].columnName+"</td>" +"<td align='center'>"+list[i].org.name+"</td>" +"<td align='center'>"+list[i].supervise+"</td>" +"<td>"+showDate+"</td></tr>"; } $("#otbody").html(html); //设置当前页 $('#ocurrent').html(page.pageNum); //设置总条数 $('#ocount').html(page.total); //设置总页数 $('#opages').html("/ "+page.pages); } } } }); } $(function(){ zcfgIndex(); tzggIndex(); /* yydbIndex(); */ /* ypcyrIndex(); */ }) /*********************************************首页展示结束******************************************/ </script> </html>

Pages: 1 2 3 4 5 6 7 8 9 10