| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 | 
							- /**
 
-  * 许可证申请
 
-  * 
 
-  */
 
- $.namespace("xkzsq.main");
 
- xkzsq.main.szd = null;
 
- xkzsq.main.szgq = null;
 
- xkzsq.main.szgk = null;
 
- xkzsq.main.init = function() {
 
- 	xkzsq.main.sel();
 
- 	// 把form传入,构造翻页控件
 
- 	pageinfo($("#xkzsqform"));
 
- }
 
- xkzsq.main.sel = function() {
 
- 	initszdSelect('szdsel', xkzsq.main.szd, 'showgk', '80%');
 
- 	initgkSelect('gksel', xkzsq.main.szgk, xkzsq.main.szd, 'showgq', '80%');
 
- 	initgqSelect('gqsel', xkzsq.main.szgq, xkzsq.main.szd, xkzsq.main.szgk,
 
- 			null, '80%');
 
- }
 
- function showgk() {
 
- 	initgqSelect('gqsel', '', '', '', null, 200);
 
- 	initgkSelect('gksel', xkzsq.main.szgk, $('.szdselectpicker').val(),
 
- 			'showgq', '80%');
 
- }
 
- function showgq() {
 
- 	initgqSelect('gqsel', xkzsq.main.szgq, $('.szdselectpicker').val(), $(
 
- 			'.gkselectpicker').val(), null, '80%');
 
- }
 
- // 新增
 
- xkzsq.main.add = function() {
 
- 	$.ajax({
 
- 		async : true,
 
- 		url : $.app + "/xkzxx/findByjyrid",
 
- 		type : "post",
 
- 		dataType : "json",
 
- 		data:{
 
- 			flag :1
 
- 		},
 
- 		success : function(data) {// ajax返回的数据
 
- 			if (data.success) {
 
- 				location.href = $.app + "/xkzsq/addmain";
 
- 			} else {
 
- 				$.alert({
 
- 					title : '提示',
 
- 					content : data.message,
 
- 					confirm : function() {
 
- 					}
 
- 				});
 
- 			}
 
- 		}
 
- 	});
 
- }
 
- xkzsq.main.search = function() {
 
- 	$('#pagejump').val(1);
 
- 	$("#xkzsqform").submit();
 
- }
 
- xkzsq.main.del = function(data) {
 
- 	$.confirm({
 
- 		title : '确认框',
 
- 		content : '确认删除吗',
 
- 		confirm : function() {
 
- 			$.post($.app + "/xkzsq/delete", {
 
- 				id : data
 
- 			}, function(data) {
 
- 				if (data.success) {
 
- 					$.alert({
 
- 						title : '提示',
 
- 						content : '删除成功',
 
- 						confirm : function() {
 
- 							$("#xkzsqform").submit();
 
- 						}
 
- 					});
 
- 				} else {
 
- 					$.alert({
 
- 						title : '提示',
 
- 						content : data.message,
 
- 						confirm : function() {
 
- 						}
 
- 					});
 
- 				}
 
- 			}, "json");
 
- 		},
 
- 		cancel : function() {
 
- 		}
 
- 	});
 
- }
 
- xkzsq.main.edit = function(data) {
 
- 	location.href = $.app + "/xkzsq/editmain?id=" + data;
 
- }
 
- xkzsq.main.back = function(data) {
 
- 	location.href = $.app + "/xkzsq/editmain?flag=th&id=" + data;
 
- }
 
- xkzsq.main.banli = function(data) {
 
- 	location.href = $.app + "/xkzsq/viewmain?flag=audit&id=" + data;
 
- }
 
- xkzsq.main.view = function(data) {
 
- 	location.href = $.app + "/xkzsq/viewmain?id=" + data;
 
- }
 
- xkzsq.main.showxkzjds = function(data) {
 
- 	location.href = $.app + "/xkzsq/showXkzjds?sqid=" + data;
 
- }
 
 
  |