123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672 |
- var i=0;
- var checkflag=true;
- $(".mainform")
- .Validform(
- {
- btnSubmit : "#btn_sub",
- tiptype: function (msg, o, cssctl) {
- if (o.type == 3) {//失败
- layer.tips(msg, o.obj, {
- tips: [1, '#F74D4D'],
- time: 3000
- });
- }
- },
- showAllError : true,
- ignoreHidden : true,
- beforeCheck : function(curform) {
- //在表单提交执行验证之前执行的函数,curform参数是当前表单对象。
- //这里明确return false的话将不会继续执行验证操作;
- },
- beforeSubmit : function(curform) {
- //在验证成功后,表单提交前执行的函数,curform参数是当前表单对象。
- //这里明确return false的话表单将不会提交;
- },
- callback : function(form) {
- var isCf=false;
- var ary= new Array();
- var ary2= new Array();
- $("input[name='xxxmc']").each(function(){
- ary.push($(this).val());
- });
- $("input[name='xxxdbmc']").each(function(){
- ary2.push($(this).val());
- });
- if(ary.length==0 || ary2.length==0){
- isCf=true;
- alert("您尚未填写完整相关信息项信息,请填写后提交。");
- }
- var nary=ary.sort();
- for(var i = 0; i < nary.length - 1; i++)
- {
- if (nary[i] == nary[i+1])
- {
- isCf=true;
- alert("存在重复信息项名称:" + nary[i]+",请修改后提交。");
- break;
- }
- }
- var nary2=ary2.sort();
- for(var i = 0; i < nary2.length - 1; i++)
- {
- if (nary2[i] == nary2[i+1])
- {
- isCf=true;
- alert("存在重复信息项英文名称:" + nary2[i]+",请修改后提交。");
- break;
- }
- }
-
- if(!isCf){
- var data1={"id":$("#id").val(),"infoname":$("#infoname").val(),"providebmcode":$("#providebmcode").val()};
- $.ajax({
- async:false,
- type:"post",
- url:"../tinfoclass/infonameUnique",
- contentType: "application/x-www-form-urlencoded;charset=utf-8",
- dataType: 'json',
- data:data1,
- success:function(result){
- if(result.exist=='0'){
- var check = confirm("您确定要提交表单吗?");
- if (check&&checkflag) {
- checkflag=false;
- mainform.action = "../tinfoclass/tinfoclass_save";
- mainform.submit();
- }
- }
- else{
- layer.msg('本部门中已存在该信息类名称,请修改信息类名称', {icon: 6});
- }
-
-
- },
- error:function(){
- layer.msg('服务器异常', {icon: 6});
- }
- });
-
- }
-
- return false;
- }
- });
- $(document).ready(function(){
- $('#sharetype').change(function(){
- if($(this).val()=="1"){
- $("#shareconditionsDis").show();
- $("#gxtj").text("共享条件");
- //传值取判断共享方式的取值,判断前先清空下拉框中的值
- issharemode($(this).val());
- }
- else if($(this).val()=="3"){
- $("#shareconditionsDis").show();
- $("#gxtj").text("不予共享依据");
- //传值取判断共享方式的取值,判断前先清空下拉框中的值
- issharemode($(this).val());
- }
- else{
- $("#shareconditionsDis").hide();
- $("#shareconditions").val("");
- //传值取判断共享方式的取值,判断前先清空下拉框中的值
- issharemode($(this).val());
- }
- })
- $("#isopensocial").change(function(){
- if($(this).val()=="不予开放"){
- $("#openconditionDis").show();
- $("#kftj").text("不予开放依据");
- }
- else if($(this).val()=="无条件开放"){
- $("#openconditionDis").hide();
- $("#opencondition").val("");
- }
- else if($(this).val()=="有条件开放"){
- $("#openconditionDis").show();
- $("#opencondition").val("依申请开放");
- $("#kftj").text("开放条件");
- }
- else{
- $("#openconditionDis").hide();
- $("#opencondition").val("");
- }
-
- })
- $("#managetype").change(function(){
- if($(this).val()=="是"){
- $("#glxtDis").show();
- }
- else if($(this).val()=="否"){
- $("#glxtDis").hide();
- $("#systeminfoname").val("");
- $("#systeminfoid").val("");
- }
-
- })
- $("#isglqz").change(function(){
- if($(this).val()=="是"){
- $("#isglqzDis").show();
- $("#isglqzDis2").hide();
- $('#qzqdBt').text("*");
- $("#qzqdDes").val("");
- $('#qzqd').removeAttr("ignore");
- }
- else if($(this).val()=="否"){
- $("#isglqzDis").hide();
- $("#isglqzDis2").show();
- if( $("#qzqdDes").val()==""){
- $("#qzqdDes").val("无需关联权责");
- }
- $("#qzqd").val("");
- $("#qzqdid").val("");
- }else{
- $("#isglqzDis").hide();
- $("#isglqzDis2").hide();
- $("#qzqd").val("");
- $("#qzqdid").val("");
- }
-
- })
-
- $("#glzyfl").bind("click",function(){
- var dgurl="../resClassify/resClassify_check";
- var index=layer.open({
- type: 2,
- move: false,
- area: [($(window).width()-80)+'px', ($(window).height()-80)+'px'],
- offset: '50px',
- shadeClose: true ,
- title : '资源分类',
- content: dgurl //这里content是一个URL,如果你不想让iframe出现滚动条,你还可以content: ['http://sentsin.com', 'no']
- });
- layer.full(index);
- });
- /**
- * 资源分类选择页面
- */
- $("#infotypename").bind("click",function(){
- var dgurl="../resClassify/resClassify_choose";
- var index=layer.open({
- type: 2,
- move: false,
- area: [($(window).width()-80)+'px', ($(window).height()-80)+'px'],
- offset: '50px',
- shadeClose: true ,
- title : '资源分类',
- content: dgurl //这里content是一个URL,如果你不想让iframe出现滚动条,你还可以content: ['http://sentsin.com', 'no']
- });
- layer.full(index);
- })
- $("#ywbmname").bind("click",ywbmChoose);
- function ywbmChoose(){
- var dgurl="../code/ywbm_choose";
- var index=layer.open({
- type: 2,
- move: false,
- area: [($(window).width()-80)+'px', ($(window).height()-80)+'px'],
- offset: '50px',
- shadeClose: true ,
- title : '业务部门',
- content: dgurl //这里content是一个URL,如果你不想让iframe出现滚动条,你还可以content: ['http://sentsin.com', 'no']
- });
- layer.full(index);
- }
- $("#xzqhname").bind("click",xzqhChoose);
- function xzqhChoose(){
- var dgurl="../code/xzqh_choose";
- var index=layer.open({
- type: 2,
- move: false,
- area: [($(window).width()-80)+'px', ($(window).height()-80)+'px'],
- offset: '50px',
- shadeClose: true ,
- title : '行政区划',
- content: dgurl //这里content是一个URL,如果你不想让iframe出现滚动条,你还可以content: ['http://sentsin.com', 'no']
- });
- layer.full(index);
-
- }
- /**
- * 提供方选择页面
- */
- // $("#providename").bind("click",function(){
- // var dgurl="../tinfoclass/dept_choose?type=1";
- // var index=layer.open({
- // type: 2,
- // move: false,
- // area: [($(window).width()-80)+'px', ($(window).height()-80)+'px'],
- // offset: '50px',
- // shadeClose: true ,
- // title : '信息类提供方',
- // content: dgurl //这里content是一个URL,如果你不想让iframe出现滚动条,你还可以content: ['http://sentsin.com', 'no']
- // });
- //
- // })
- $("#providebmname").bind("click",function(){
-
- var dgurl="../tinfoclass/dept_choose?type=2";
- var index=layer.open({
- type: 2,
- move: false,
- area: [($(window).width()-80)+'px', ($(window).height()-80)+'px'],
- offset: '50px',
- shadeClose: true ,
- title : '信息类提供方部门',
- content: dgurl //这里content是一个URL,如果你不想让iframe出现滚动条,你还可以content: ['http://sentsin.com', 'no']
- });
- layer.full(index);
-
- })
- $("#providezgname").bind("click",function(){
- var dgurl="../tinfoclass/dept_choose?type=3";
- var index=layer.open({
- type: 2,
- move: false,
- area: [($(window).width()-80)+'px', ($(window).height()-80)+'px'],
- offset: '50px',
- shadeClose: true ,
- title : '信息类提供方主管部门',
- content: dgurl //这里content是一个URL,如果你不想让iframe出现滚动条,你还可以content: ['http://sentsin.com', 'no']
- });
- layer.full(index);
-
- })
- $('#formattype').change(function(){
- var optionObj=$(this).find("option:selected");
- $("#formattypename").val(optionObj.attr("formattypename"));
- $("#formattypeid").val(optionObj.attr("formattypeid"));
- $.ajax({
- async:false,
- type:"post",
- url:"../tinfoclass/tinfoclass_item-"+optionObj.val(),
- contentType: "application/json;charset=utf-8",
- dataType: 'json',
-
- success:function(result){
- $("#subformattype option").remove();
- $("#subformattype").append("<option value='' subformattypename='' subformattypeid='' title='请选择'>请选择</option>");
- for (var i = 0; i < result.length; i++) {
- $("#subformattype").append("<option value='"+result[i].codeCode+"' subformattypename='"+result[i].codeCode+"' subformattypeid='"+result[i].id+"'>"+result[i].codeName+"</option>");
- }
- },
- error:function(){
- }
- });
-
- });
- /**
- * 关联业务系统 选择
- */
- $("#systeminfoname").bind("click",function(){
- var dgurl="../systeminfo/systeminfo_choose_list";
- var index=layer.open({
- type: 2,
- move: false,
- area: [($(window).width()-80)+'px', ($(window).height()-80)+'px'],
- offset: '50px',
- shadeClose: true ,
- title : '业务系统',
- content: dgurl //这里content是一个URL,如果你不想让iframe出现滚动条,你还可以content: ['http://sentsin.com', 'no']
- });
- layer.full(index);
- });
- $("#qzqd").bind("click",function(){
- var dgurl="../powerrespon/choose_list";
- var index=layer.open({
- type: 2,
- move: false,
- area: [($(window).width()-80)+'px', ($(window).height()-80)+'px'],
- offset: '50px',
- shadeClose: true ,
- title : '权责清单',
- content: dgurl //这里content是一个URL,如果你不想让iframe出现滚动条,你还可以content: ['http://sentsin.com', 'no']
- });
- layer.full(index);
- });
- /**
- * 关联业务事项选择
- */
- $("#ywsx").bind("click",function(){
- var dgurl="../tbusinessitem/tbusinessitem_choose_list";
- var index=layer.open({
- type: 2,
- move: false,
- area: [($(window).width()-80)+'px', ($(window).height()-80)+'px'],
- offset: '50px',
- shadeClose: true ,
- title : '业务事项',
- content: dgurl //这里content是一个URL,如果你不想让iframe出现滚动条,你还可以content: ['http://sentsin.com', 'no']
- });
- layer.full(index);
- });
- $('#subformattype').change(function(){
- var optionObj=$(this).find("option:selected");
- $("#subformattypename").val(optionObj.attr("subformattypename"));
- $("#subformattypeid").val(optionObj.attr("subformattypeid"));
-
-
- })
- $('#sharemode').change(function(){
- var iteValue = $("#sharetype").val();
- console.log('sharetype的值:' + iteValue);
- var optionObj=$(this).find("option:selected");
- $("#sharemodename").val(optionObj.attr("sharemodename"));
- $("#sharemodeid").val(optionObj.attr("sharemodeid"));
- $.ajax({
- async:false,
- type:"post",
- url:"../tinfoclass/tinfoclass_item-"+optionObj.val(),
- contentType: "application/json;charset=utf-8",
- dataType: 'json',
-
- success:function(result){
- $("#sharemodetype option").remove();
- $("#sharemodetype").append("<option value='' sharemodetypename='' sharemodetypeid='' title='请选择'>请选择</option>");
- for (var i = 0; i < result.length; i++) {
- $("#sharemodetype").append("<option value='"+result[i].codeCode+"' sharemodetypename='"+result[i].codeName+"' sharemodetypeid='"+result[i].id+"'>"+result[i].codeName+"</option>");
- }
- },
- error:function(){
- }
- });
-
- })
- $('#sharemodetype').change(function(){
- var optionObj=$(this).find("option:selected");
- $("#sharemodetypename").val(optionObj.attr("sharemodetypename"));
- $("#sharemodetypeid").val(optionObj.attr("sharemodetypeid"));
-
-
- })
- // 设置默认值
- $("#managetype").val("否");
- $("#isglqz").val("否");
- })
- function deleteInfo(obj){
- $("#"+obj).remove();
- }
- function editxxxInfo(id){
- var dgurl="../tinfoclass/tinfoclass_xxladd?id="+id;
- var index=layer.open({
- type: 2,
- move: false,
- area: [($(window).width()-80)+'px', ($(window).height()-80)+'px'],
- offset: '50px',
- shadeClose: true ,
- title : '信息项新增',
- content: dgurl //这里content是一个URL,如果你不想让iframe出现滚动条,你还可以content: ['http://sentsin.com', 'no']
- });
- layer.full(index);
- }
- function editxxxInfoHx(id){
- var obj = new Object();
- obj.isprimary=$("#"+id+" select[name='isprimary']").val();
- obj.xxxmc=$("#"+id+" input[name='xxxmc']").val();
- obj.xxxbm=$("#"+id+" input[name='xxxbm']").val();
- obj.xxxdbmc=$("#"+id+" input[name='xxxdbmc']").val();
- obj.glsjy=$("#"+id+" input[name='glsjy']").val();
- obj.sjymc=$("#"+id+" input[name='sjymc']").val();
- obj.sjylbname=$("#"+id+" input[name='sjylbname']").val();
- obj.sjylb=$("#"+id+" input[name='sjylb']").val();
- obj.sjylbid=$("#"+id+" input[name='sjylbid']").val();
- obj.subsjylbname=$("#"+id+" input[name='subsjylbname']").val();
- obj.subsjylb=$("#"+id+" input[name='subsjylb']").val();
- obj.subsjylbid=$("#"+id+" input[name='subsjylbid']").val();
- obj.codesetName=$("#"+id+" input[name='codesetName']").val();
- obj.codesetid=$("#"+id+" input[name='codesetid']").val();
- obj.datasize=$("#"+id+" input[name='datasize']").val();
- obj.ranges=$("#"+id+" input[name='ranges']").val();
- obj.indexnum=$("#"+id+" input[name='indexnum']").val();
- obj.description=$("#"+id+" input[name='description']").val();
- obj.sharetype=$("#"+id+" input[name='xxx_sharetype']").val();
- obj.shareconditions=$("#"+id+" input[name='xxx_shareconditions']").val();
- obj.sharemodename=$("#"+id+" input[name='xxx_sharemodename']").val();
- obj.sharemode=$("#"+id+" input[name='xxx_sharemode']").val();
- obj.sharemodeid=$("#"+id+" input[name='xxx_sharemodeid']").val();
- obj.sharemodetypename=$("#"+id+" input[name='xxx_sharemodetypename']").val();
- obj.sharemodetype=$("#"+id+" input[name='xxx_sharemodetype']").val();
- obj.sjyid=$("#"+id+" input[name='sjyid']").val();
- obj.sharemodetypeid=$("#"+id+" input[name='xxx_sharemodetypeid']").val();
- obj.isopensocial=$("#"+id+" input[name='xxx_isopensocial']").val();
- obj.opencondition=$("#"+id+" input[name='xxx_opencondition']").val();
- return obj;
- }
- function addDataMetaInfoZt(obj,xxxid){
- $("#"+xxxid).remove();
- var selectvalue1="";
- var selectvalue2="";
- if(obj.isprimary=="是"){
- selectvalue1="selected";
- }
- else{
- selectvalue2="selected";
- }
- var html="<tr id=\""+xxxid+"\">"
- +"<td width=\"200\" class=\"fn-text-center\"><a href=\"javascript:deleteInfo('"+xxxid+"')\" title=\"删除\" >删除</a></td>"
- +"<td width=\"100\" class=\"fn-text-center\"><select name=\"isprimary\" class=\"input-select\">"
- +" <option value=\"否\" title=\"否\" "+selectvalue2+">否</option>"
- +" <option value=\"是\" title=\"是\" "+selectvalue1+">是</option>"
- +" </select></td>"
- +"<td width=\"200\" class=\"fn-text-center\"><input class=\"input-normal input-wdl\" type=\"text\" name=\"xxxmc\" value=\""+obj.xxxmc+"\"/></td>"
- +"<td width=\"200\" class=\"fn-text-center\"><input class=\"input-normal input-wdl\" type=\"text\" name=\"xxxdbmc\" value=\""+obj.xxxdbmc+"\"/></td>"
- +"<td width=\"200\" class=\"fn-text-center\"><input class=\"input-normal input-wdl\" type=\"text\" name=\"xxxbm\" readonly=\"true\" value=\""+obj.xxxbm+"\"/></td>"
- +"<td width=\"200\" class=\"fn-text-center\"><input class=\"input-normal input-wdl\" type=\"text\" name=\"glsjy\" readonly=\"true\" value=\""+obj.glsjy+"\"/></td>"
- +"<td width=\"200\" class=\"fn-text-center\"><input class=\"input-normal input-wdl\" type=\"text\" name=\"sjymc\" readonly=\"true\" value=\""+obj.sjymc+"\"/></td>"
- +"<td width=\"200\" class=\"fn-text-center\"><input class=\"input-normal input-wdl\" type=\"text\" name=\"sjylbname\" readonly=\"true\" value=\""+obj.sjylbname+"\"/></td>"
- +" <input type=\"hidden\" name=\"sjylb\" readonly=\"true\" value=\""+obj.sjylb+"\"/>"
- +" <input type=\"hidden\" name=\"sjylbid\" readonly=\"true\" value=\""+obj.sjylbid+"\"/>"
- +"<td width=\"100\" class=\"fn-text-center\"><input class=\"input-normal input-wdl\" type=\"text\" name=\"subsjylbname\" readonly=\"true\" value=\""+obj.subsjylbname+"\"/></td>"
- +" <input type=\"hidden\" name=\"subsjylb\" readonly=\"true\" value=\""+obj.subsjylb+"\"/>"
- +" <input type=\"hidden\" name=\"subsjylbid\" readonly=\"true\" value=\""+obj.subsjylbid+"\"/>"
- +"<td width=\"160\" class=\"fn-text-center\"><input class=\"input-normal input-wdl\" type=\"text\" name=\"codesetName\" readonly=\"true\" value=\""+obj.codesetName+"\"/></td>"
- +" <input type=\"hidden\" name=\"codesetid\" readonly=\"true\" value=\""+obj.codesetid+"\"/>"
- +"<td width=\"160\" class=\"fn-text-center\"><input class=\"input-normal input-wdl\" type=\"text\" name=\"datasize\" readonly=\"true\" value=\""+obj.datasize+"\"/></td>"
- +"<td width=\"100\" class=\"fn-text-center\"><input class=\"input-normal input-wdl\" type=\"text\" name=\"ranges\" readonly=\"true\" value=\""+obj.ranges+"\"/></td>"
- +"<td width=\"160\" class=\"fn-text-center\"><input class=\"input-normal input-wdl\" datatype=\"n\" nullmsg=\"必填\" sucmsg=\" \" errormsg=\"请输数字\" type=\"text\" name=\"indexnum\" value=\""+obj.indexnum+"\" /><span class=\"Validform_checktip\"></span></td>"
- +"<td width=\"200\" class=\"fn-text-center\"><input class=\"input-normal input-wdl\" type=\"text\" name=\"description\" /></td>"
- +" <input type=\"hidden\" name=\"sjyid\" readonly=\"true\" value=\""+obj.sjyid+"\"/>"
- +" <input type=\"hidden\" name=\"glxxxid\" readonly=\"true\" value=\""+obj.glxxxid+"\"/>"
- +"</tr>";
- $("#dataMetaInfo").append(html);
- $("#listscroll").tableHeadFixer({"left" : 3});
- }
- function addDataMetaInfo(obj,xxxid){
- $("#"+xxxid).remove();
- var selectvalue1="";
- var selectvalue2="";
- if(obj.isprimary.value=="是"){
- selectvalue1="selected";
- }
- else{
- selectvalue2="selected";
- }
- var html="<tr id=\""+i+"\">"
- +"<td width=\"200\" class=\"fn-text-center\"><a href=\"javascript:deleteInfo('"+i+"')\" title=\"删除\" >删除</a> <a href=\"javascript:editxxxInfo('"+i+"')\" title=\"修改\" >修改</a></td>"
- +"<td width=\"100\" class=\"fn-text-center\"><select name=\"isprimary\" class=\"input-select\">"
- +" <option value=\"否\" title=\"否\" "+selectvalue2+">否</option>"
- +" <option value=\"是\" title=\"是\" "+selectvalue1+">是</option>"
- +" </select></td>"
- +"<td width=\"200\" class=\"fn-text-center\"><input class=\"input-normal input-wdl\" type=\"text\" name=\"xxxmc\" value=\""+obj.xxxmc.value+"\"/></td>"
- +"<td width=\"200\" class=\"fn-text-center\"><input class=\"input-normal input-wdl\" type=\"text\" name=\"xxxdbmc\" value=\""+obj.xxxdbmc.value+"\"/></td>"
- +"<td width=\"200\" class=\"fn-text-center\"><input class=\"input-normal input-wdl\" type=\"text\" name=\"xxxbm\" readonly=\"true\" value=\""+obj.xxxbm.value+"\"/></td>"
- +"<td width=\"200\" class=\"fn-text-center\"><input class=\"input-normal input-wdl\" type=\"text\" name=\"glsjy\" readonly=\"true\" value=\""+obj.glsjy.value+"\"/></td>"
- +"<td width=\"200\" class=\"fn-text-center\"><input class=\"input-normal input-wdl\" type=\"text\" name=\"sjymc\" readonly=\"true\" value=\""+obj.sjymc.value+"\"/></td>"
- +"<td width=\"200\" class=\"fn-text-center\"><input class=\"input-normal input-wdl\" type=\"text\" name=\"sjylbname\" readonly=\"true\" value=\""+obj.sjylbname.value+"\"/></td>"
- +" <input type=\"hidden\" name=\"sjylb\" readonly=\"true\" value=\""+obj.sjylb.value+"\"/>"
- +" <input type=\"hidden\" name=\"sjylbid\" readonly=\"true\" value=\""+obj.sjylbid.value+"\"/>"
- +"<td width=\"100\" class=\"fn-text-center\"><input class=\"input-normal input-wdl\" type=\"text\" name=\"subsjylbname\" readonly=\"true\" value=\""+obj.subsjylbname.value+"\"/></td>"
- +" <input type=\"hidden\" name=\"subsjylb\" readonly=\"true\" value=\""+obj.subsjylb.value+"\"/>"
- +" <input type=\"hidden\" name=\"subsjylbid\" readonly=\"true\" value=\""+obj.subsjylbid.value+"\"/>"
- +"<td width=\"160\" class=\"fn-text-center\"><input class=\"input-normal input-wdl\" type=\"text\" name=\"codesetName\" readonly=\"true\" value=\""+obj.codesetName.value+"\"/></td>"
- +" <input type=\"hidden\" name=\"codesetid\" readonly=\"true\" value=\""+obj.codesetid.value+"\"/>"
- +"<td width=\"160\" class=\"fn-text-center\"><input class=\"input-normal input-wdl\" type=\"text\" name=\"datasize\" readonly=\"true\" value=\""+obj.datasize.value+"\"/></td>"
- +"<td width=\"100\" class=\"fn-text-center\"><input class=\"input-normal input-wdl\" type=\"text\" name=\"ranges\" readonly=\"true\" value=\""+obj.ranges.value+"\"/></td>"
- +"<td width=\"160\" class=\"fn-text-center\"><input class=\"input-normal input-wdl\" datatype=\"n\" nullmsg=\"必填\" sucmsg=\" \" errormsg=\"请输数字\" type=\"text\" name=\"indexnum\" value=\""+obj.indexnum.value+"\" /><span class=\"Validform_checktip\"></span></td>"
- +"<td width=\"200\" class=\"fn-text-center\"><input class=\"input-normal input-wdl\" type=\"text\" name=\"description\" /></td>"
- // +"<td width=\"200\" class=\"fn-text-center\"><input class=\"input-normal input-wdl\" type=\"text\" name=\"xxx_sharetype\" value=\""+obj.sharetype.value+"\"/></td>"
- // +"<td width=\"200\" class=\"fn-text-center\"><input class=\"input-normal input-wdl\" type=\"text\" name=\"xxx_shareconditions\" readonly=\"true\" value=\""+obj.shareconditions.value+"\"/></td>"
- // +"<td width=\"200\" class=\"fn-text-center\"><input class=\"input-normal input-wdl\" type=\"text\" name=\"xxx_sharemodename\" readonly=\"true\" value=\""+obj.sharemodename.value+"\"/></td>"
- // +" <input type=\"hidden\" name=\"xxx_sharemode\" readonly=\"true\" value=\""+obj.sharemode.value+"\"/>"
- // +" <input type=\"hidden\" name=\"xxx_sharemodeid\" readonly=\"true\" value=\""+obj.sharemodeid.value+"\"/>"
- // +"<td width=\"200\" class=\"fn-text-center\"><input class=\"input-normal input-wdl\" type=\"text\" name=\"xxx_sharemodetypename\" readonly=\"true\" value=\""+obj.sharemodetypename.value+"\"/></td>"
- // +" <input type=\"hidden\" name=\"xxx_sharemodetype\" readonly=\"true\" value=\""+obj.sharemodetype.value+"\"/>"
- +" <input type=\"hidden\" name=\"sjyid\" readonly=\"true\" value=\""+obj.sjyid.value+"\"/>"
- +" <input type=\"hidden\" name=\"glxxxid\" readonly=\"true\" value=\"\"/>"
- // +" <input type=\"hidden\" name=\"xxx_sharemodetypeid\" readonly=\"true\" value=\""+obj.sharemodetypeid.value+"\"/>"
- // +"<td width=\"200\" class=\"fn-text-center\"><input class=\"input-normal input-wdl\" type=\"text\" name=\"xxx_isopensocial\" readonly=\"true\" value=\""+obj.isopensocial.value+"\"/></td>"
- // +"<td width=\"200\" class=\"fn-text-center\"><input class=\"input-normal input-wdl\" type=\"text\" name=\"xxx_opencondition\" readonly=\"true\" value=\""+obj.opencondition.value+"\"/></td>"
- +"</tr>";
- $("#dataMetaInfo").append(html);
- i++;
- $("#listscroll").tableHeadFixer({"left" : 3});
- }
- function opendgAdd(){
- if($("#infotypeid").val()!=""){
- var data1={"infotypeid":$("#infotypeid").val()};
- $.ajax({
- async:false,
- type:"post",
- url:"../tinfoclass/getinfotypecode",
- contentType: "application/x-www-form-urlencoded;charset=utf-8",
- dataType: 'json',
- data:data1,
- success:function(result){
- if(result.remark.indexOf("1")==0||result.remark.indexOf("2")==0){//
- var check=confirm("您要关联申请目录吗?");
- var dgurl="../tinfoclass/tinfoclass_yapplylist";
- if(!check){
- dgurl="../tinfoclass/tinfoclass_xxladd"
- }
- var index=layer.open({
- type: 2,
- move: false,
- area: [($(window).width()-80)+'px', ($(window).height()-80)+'px'],
- offset: '50px',
- shadeClose: true ,
- title : '信息项新增',
- content: dgurl //这里content是一个URL,如果你不想让iframe出现滚动条,你还可以content: ['http://sentsin.com', 'no']
- });
- layer.full(index);
- }
- else {//非主题编目
- var dgurl="../tinfoclass/tinfoclass_xxladd";
- var index=layer.open({
- type: 2,
- move: false,
- area: [($(window).width()-80)+'px', ($(window).height()-80)+'px'],
- offset: '50px',
- shadeClose: true ,
- title : '信息项新增',
- content: dgurl //这里content是一个URL,如果你不想让iframe出现滚动条,你还可以content: ['http://sentsin.com', 'no']
- });
- layer.full(index);
- }
- },
- error:function(){
- layer.msg('服务器异常', {icon: 6});
- }
- });
- }
- else{
- layer.msg("请先选择资源分类");
- }
-
-
- }
- if("2507c1e07750425fb77c731f5fcc9875,432bdef9ae45462c9314399cc04af819,46338a4c48b642b384e6569df07f6336,526c80da2851498bbfe660690bea5887,7aece946acd2441c8ea712e40189f540,ab5ff50a39684a59867eb3f3c139cbd2,c03adff00a9d4ddfa1d19dfb2a271847,d00d9819459344d3aede40790c5acb6a".indexOf($("#providebmcode").val())==-1){
- $('#qzqdBt').text("");
- $('#qzqd').attr("ignore","ignore");
-
- }
- else{
- $('#qzqdBt').text("*");
- $('#qzqd').removeAttr("ignore");
- }
- function issharemode(sharetype){
- //console.log("获取到sharetype的值为"+sharetype);
- //清空值
- $("#sharemodename").val("");
- $("#sharemodeid").val("");
- $("#sharemodetype").val("");
- $("#sharemodetypename").val("");
- $("#sharemodetypeid").val("");
- $.ajax({
- async:false,
- type:"post",
- url:"../tinfoclass/tinfoclass_item-gxfs",
- contentType: "application/json;charset=utf-8",
- dataType: 'json',
- success:function(result){
- $("#sharemode option").remove();
- $("#sharemode").append("<option value='' sharemodename='' sharemodeid='' title='请选择'>请选择</option>");
- for (var i = 0; i < result.length; i++) {
- //console.log("第==="+i+"===次循环,循环的值为:"+result[i].codeName);
- //有条件共享与无条件共享时,共享方式下拉选项禁用[不予共享]
- if(sharetype=="1"||sharetype=="2"){
- if(result[i].codeName=="不予共享"){
- $("#sharemode").append("<option value='"+result[i].codeCode+"' sharemodename='"+result[i].codeName+"' sharemodeid='"+result[i].id + "' disabled=disabled >"+result[i].codeName+"</option>");
- }else{
- $("#sharemode").append("<option value='"+result[i].codeCode+"' sharemodename='"+result[i].codeName+"' sharemodeid='"+result[i].id+"'>"+result[i].codeName+"</option>");
- }
- }else if(sharetype=="3"){
- //当用户下拉[共享类型为不予共享],那么禁用共享方式中下拉选项中的平台共享方式
- if(result[i].codeName=="共享平台方式"){
- $("#sharemode").append("<option value='"+result[i].codeCode+"' sharemodename='"+result[i].codeName+"' sharemodeid='"+result[i].id + "' disabled=disabled >"+result[i].codeName+"</option>");
- }else{
- $("#sharemode").append("<option value='"+result[i].codeCode+"' sharemodename='"+result[i].codeName+"' sharemodeid='"+result[i].id+"'>"+result[i].codeName+"</option>");
- }
- }else{
- $("#sharemode").append("<option value='"+result[i].codeCode+"' sharemodename='"+result[i].codeName+"' sharemodeid='"+result[i].id+"'>"+result[i].codeName+"</option>");
- }
-
- }
- },
- error:function(){
- }
- });
- }
- function setDefaultInfoclassProvidebm(row) {
- console.log(row);
- // 此处逻辑复制自dept_choose.html 2024年01月31日09:28:03 hujie 移除识别parent
- document.getElementById('providebmcode').value =row.id;
- document.getElementById('providebmname').value =row.name;
- document.getElementById('providename').value =row.name;
- if(row.ywbmname!=""){
- document.getElementById('ywbmname').value =row.ywbmname;
- document.getElementById('ywbmcode').value =row.ywbmcode;
- document.getElementById('ywbmid').value =row.ywbmid;
- if(document.getElementById('ywbm_dis')!=undefined) {
- document.getElementById('ywbm_dis').innerText =row.ywbmname;
- }
- }
- if(row.xzqhname!=""){
- document.getElementById('xzqhname').value =row.xzqhname;
- document.getElementById('xzqhid').value =row.xzqhid;
- document.getElementById('xzqhcode').value =row.xzqhcode;
- }
- if(document.getElementById('creditno')!=undefined) {
- document.getElementById('creditno').value =row.creditno;
- }
- if(document.getElementById('creditno_dis')!=undefined) {
- document.getElementById('creditno_dis').innerText =row.creditno;
- }
- if("2507c1e07750425fb77c731f5fcc9875,432bdef9ae45462c9314399cc04af819,46338a4c48b642b384e6569df07f6336,526c80da2851498bbfe660690bea5887,7aece946acd2441c8ea712e40189f540,ab5ff50a39684a59867eb3f3c139cbd2,c03adff00a9d4ddfa1d19dfb2a271847,d00d9819459344d3aede40790c5acb6a".indexOf(row.id)==-1){
- $(document.getElementById('qzqdBt')).text("");
- $(document.getElementById('qzqd')).attr("ignore","ignore");
- } else {
- $(document.getElementById('qzqdBt')).text("*");
- $(document.getElementById('qzqd')).removeAttr("ignore");
- }
- }
|