How to use reportAll method in stryker-parent

Best JavaScript code snippet using stryker-parent

reportProduction.js

Source:reportProduction.js Github

copy

Full Screen

1/******2 3 UPDATE DATE:2017/4/124 NAV:企业调查5 NAME:WANGJH6 7 ******/8/************************************报告制作****************************************/9var reportProduction = function () {10 11 //报告引导12 var basicInformation = function () {13 var tmp_name = '';14 var rp_id = Query.getHash("rp_id");15 var tmp_id = Query.getHash("tmp_id");16 /*var tmp_name = decodeURI(Query.getHash("templateName"));17 if(!isNullOrEmpty(tmp_name)){18 $("#tempName").val(tmp_name);19 }*/20 $("#tempName").blur(function(){21 tmp_name = trimAll($(this).val());22 });23 $("#tempName").keyup(function(){24 if($(this).val().length >= 30){25 $("#errorTip").text("最多可以输入30个字符");26 }else{27 $("#errorTip").text("");28 }29 })30 //导航31 $.kf.ajax({32 type: "get",33 url: $.kf.REPORTMODULECHECK + "?rp_id="+ rp_id +"&tmp_id="+ tmp_id,34 data: "",35 dataType: "json",36 processResponse: function (data) {37 var tr = '';38 var dataList = data.data.body;39 tmp_name = data.data.tmpName;40 $("#tempName").val(tmp_name);41 $(dataList).each(function(i){42 tr += "<li current_name='"+ dataList[i] +"'><a href='javascript:void(0)'>"+ dataList[i] +"</a></li>";43 $(".productionCon").each(function(j){44 if($(this).attr("conname") == dataList[i]){45 $(this).addClass("have");46 }47 });48 })49 $(".tabLi").append(tr);50 $(".tabLi li").eq(0).addClass("active");51 52 //判断当前对应的内容53 $(".productionCon").each(function(){54 if($(this).attr("conName") == $(".tabLi li").eq(0).attr("current_name")){55 $(this).removeClass("hide");56 }57 })58 59 //tab切换60 $(".tabLi li").on("click",function(){61 $(this).addClass("active").siblings("li").removeClass("active")62 var curName = $(this).attr("current_name");63 $(".productionCon").each(function(){64 if($(this).attr("conName") == curName){65 $(this).removeClass("hide");66 $(this).siblings("div").addClass("hide");67 }68 })69 })70 }71 });72 73 74 //基本公司信息75 $.kf.ajax({76 type: "get",77 url: $.kf.REPORTCOMPANYINFO + "?rp_id="+ rp_id +"&tmp_id="+ tmp_id,78 data: "",79 dataType: "json",80 processResponse: function (data) {81 var dataList = data.data;82 if(isNullOrEmpty(dataList)){83 $(".basicMes").hide();84 }else{85 $(".basicDate").text(dataList.updateDate);86 $(".re1").eq(0).html("<span style='padding-left:3px;'>"+dataList.code+"</span>");87 $(".re1").eq(1).val(dataList.limitedDate).attr("value",dataList.limitedDate);88 $(".re1").eq(2).val(dataList.shortname).attr("value",dataList.shortname);89 $(".re1").eq(3).val(dataList.sharesDate).attr("value",dataList.sharesDate);90 $(".re1").eq(4).val(dataList.transaction).attr("value",dataList.transaction);91 $(".re1").eq(5).val(dataList.mode).attr("value",dataList.mode);92 $(".re1").eq(6).val(dataList.transfer).attr("value",dataList.transfer);93 $(".re1").eq(7).val(dataList.belongs).attr("value",dataList.belongs);94 $(".re1").eq(8).val(dataList.capital).attr("value",dataList.capital);95 $(".re1").eq(9).val(dataList.earningsDate).attr("value",dataList.earningsDate);96 $(".re1").eq(10).val(dataList.companyName).attr("value",dataList.companyName);97 $(".re1").eq(11).text(dataList.mainBusiness).attr("value",dataList.mainBusiness);98 $(".re1").eq(12).text(dataList.businessScope).attr("value",dataList.businessScope);99 $(".re1").eq(13).val(dataList.industry).attr("value",dataList.industry);100 $(".re1").eq(14).val(dataList.industryCode).attr("value",dataList.industryCode);101 $(".re1").eq(15).val(dataList.number).attr("value",dataList.number);102 $(".re1").eq(16).val(dataList.listingDate).attr("value",dataList.listingDate);103 $(".re1").eq(17).val(dataList.officeAddress).attr("value",dataList.officeAddress);104 $(".re1").eq(18).val(dataList.registeredAddress).attr("value",dataList.registeredAddress);105 $(".re1").eq(19).val(dataList.remarks).attr("value",dataList.remarks);106 }107 }108 });109 110 //中介机构信息111 $.kf.ajax({112 type: "get",113 url: $.kf.REPORTINTERMEDIARYINFO + "?rp_id="+ rp_id +"&tmp_id="+ tmp_id,114 data: "",115 dataType: "json",116 processResponse: function (data) {117 var dataList = data.data;118 if(isNullOrEmpty(dataList)){119 $(".basicMes2").hide();120 }else{121 $(".basicDate2").text(dataList.updateDate);122 $(".re01").eq(0).val(dataList.secompanyName).attr("value",dataList.secompanyName);123 $(".re01").eq(1).val(dataList.secompanyPersonnel).attr("value",dataList.secompanyPersonnel);124 $(".re01").eq(2).val(dataList.accounting).attr("value",dataList.accounting);125 $(".re01").eq(3).val(dataList.accountingPersonnel).attr("value",dataList.accountingPersonnel);126 $(".re01").eq(4).val(dataList.law).attr("value",dataList.law);127 $(".re01").eq(5).val(dataList.lawPersonnel).attr("value",dataList.lawPersonnel);128 $(".aboutmeOne1").val(dataList.remarks).attr("value",dataList.remarks);129 }130 }131 });132 133 //资质/专利信息134 $.kf.ajax({135 type: "get",136 url: $.kf.REPORTPATENTINFO + "?rp_id="+ rp_id +"&tmp_id="+ tmp_id,137 data: "",138 dataType: "json",139 processResponse: function (data) {140 var dataList = data.data;141 if(isNullOrEmpty(dataList)){142 $(".basicMes3").hide();143 }else{144 $(".basicDate3").text(dataList.updateDate);145 $(".re001").eq(0).val(dataList.patent).attr("value",dataList.patent);146 $(".re001").eq(1).val(dataList.softwareCopyright).attr("value",dataList.softwareCopyright);147 $(".re001").eq(2).val(dataList.utilityModelPatents).attr("value",dataList.utilityModelPatents);148 $(".re001").eq(3).val(dataList.related).attr("value",dataList.related);149 $(".re001").eq(4).val(dataList.designPatent).attr("value",dataList.designPatent);150 $(".re001").eq(5).val(dataList.enterprises).attr("value",dataList.enterprises);151 $(".re001").eq(6).val(dataList.remarks).attr("value",dataList.remarks);152 }153 }154 });155 156 //联系情况157 $.kf.ajax({158 type: "get",159 url: $.kf.REPORTCONTACTSITUATION + "?rp_id="+ rp_id +"&tmp_id="+ tmp_id,160 data: "",161 dataType: "json",162 processResponse: function (data) {163 var dataList = data.data;164 if(isNullOrEmpty(dataList)){165 $(".basicMes4").hide();166 }else{167 if(!isNullOrEmpty(dataList.contactScene)){168 $("#concatRadio input:radio").eq(dataList.contactScene).attr('checked', 'checked'); 169 $(".re0001").attr("value",dataList.name);170 $(".re0002").attr("value",dataList.job);171 $(".re0003").attr("value",dataList.tel);172 }173 }174 }175 });176 177 //var ue = UE.getEditor('editor');178 var ue = UE.getEditor('editor', {179 toolbars: []180 });181 /////////////////////////风险提示////////////////////////////////182 //风险提示183 $.kf.ajax({184 type: "get",185 url: $.kf.REPORTRISKWARNING + "?rp_id="+ rp_id +"&tmp_id="+ tmp_id,186 data: "",187 dataType: "json",188 processResponse: function (data) {189 var dataList = data.data;190 if(isNullOrEmpty(dataList)){191 $(".riskTip").hide();192 }else{193 $(".basicDate4").text(dataList.upadateDate);194 $(".ae1").text(dataList.content);195 ue.ready(function() {196 ue.setContent(dataList.content, false);197 });198 $(".ae2").val(dataList.remarks).attr("value",dataList.remarks);199 }200 }201 });202 203 //过往处罚情况204 $.kf.ajax({205 type: "get",206 url: $.kf.REPORTPENALTIES + "?rp_id="+ rp_id +"&tmp_id="+ tmp_id,207 data: "",208 dataType: "json",209 processResponse: function (data) {210 var dataList = data.data.body;211 var dataC = data.data;212 if(isNullOrEmpty(dataC)){213 $(".riskTip2").hide();214 }else{215 var tr = "";216 $(".basicDate5").text(data.data.updateDate);217 $(".remarksC").text(data.data.remarks)218 $(dataList).each(function(i){219 tr += "<tr>";220 tr += "<td>" + dataList[i].introduction + "</td>";221 tr += "<td style='text-align:center'>"+ dataList[i].announcementDateType +"</td>";222 tr += "<td style='text-align:center'>" + dataList[i].announcementDate + "</td>";223 tr += "</tr>";224 })225 $("#pastPenaltiesList").append(tr)226 }227 }228 });229 230 231 232 /////////////////////////人员信息////////////////////////////////233 //管理层信息234 $.kf.ajax({235 type: "get",236 url: $.kf.REPORTINFORMATION + "?rp_id="+ rp_id +"&tmp_id="+ tmp_id,237 data: "",238 dataType: "json",239 processResponse: function (data) {240 var dataList = data.data.body;241 var dataC = data.data;242 if(isNullOrEmpty(dataC)){243 $(".perInformation").hide();244 }else{245 var tr = "";246 $(".rb").text(data.data.updateDate);247 $(".remarksDC").val(data.data.remarks).attr("value",data.data.remarks);248 $(dataList).each(function(i){249 tr += "<tr>";250 tr += "<td><input type='text' value='"+ dataList[i].executiveName +"' /></td>";251 tr += "<td><input type='text' value='"+ dataList[i].job +"' /></td>";252 if(dataList[i].sex == "男"){253 tr += "<td style='text-align:center;padding:0;'><select class='selectReport'>";254 tr += "<option>男</option>";255 tr += "<option>女</option>";256 tr += "</select><span>男</span></td>";257 }else{258 tr += "<td style='text-align:center;padding:0;'><select class='selectReport'>";259 tr += "<option>女</option>";260 tr += "<option>男</option>";261 tr += "</select><span>女</span></td>";262 }263 tr += "<td><input class='text-center' type='text' value='"+ dataList[i].term +"' /></td>";264 tr += "<td><textarea rows='2' type='text' value='"+ dataList[i].remarks +"'>"+ dataList[i].remarks +"</textarea></td>";265 tr += "</tr>";266 })267 $("#reportInformation").append(tr);268 $(".selectReport").show();269 $(".selectReport").parent().find("span").hide();270 $(".selectReport").on("change",function(){271 $(this).parent().find("span").text($(this).find("option:selected").text());272 });273 reportInformation();274 }275 }276 });277 278 //高管简介279 $.kf.ajax({280 type: "get",281 url: $.kf.REPORTINFORMATIONINFO + "?rp_id="+ rp_id +"&tmp_id="+ tmp_id,282 data: "",283 dataType: "json",284 processResponse: function (data) {285 var dataList = data.data.body;286 var dataC = data.data;287 if(isNullOrEmpty(dataC)){288 $(".perInformation").hide();289 }else{290 var tg = "";291 $(".rb3").text(data.data.updateDate);292 $(".remarksD2").val(data.data.remarks).attr("value",data.data.remarks);293 $(dataList).each(function(i){294 tg += "<tr>";295 tg += "<td><input type='text' value='"+ dataList[i].executiveName +"' /></td>";296 tg += "<td><textarea rows='3' type='text' value=''>"+ dataList[i].introduction +"</textarea></td>";297 tg += "</tr>";298 })299 $("#executiveInfor").append(tg);300 managementIntroduction();301 }302 }303 });304 305 306 /////////////////////////财务指标////////////////////////////////307 //财务数据308 $.kf.ajax({309 type: "get",310 url: $.kf.REPORTINDICATOR + "?rp_id="+ rp_id +"&tmp_id="+ tmp_id,311 data: "",312 dataType: "json",313 processResponse: function (data) {314 var dataList = data.data.body;315 var dataC = data.data;316 if(isNullOrEmpty(dataList)){317 $(".finDate").find("table").hide();318 }else{319 var tr = "";320 $(".unit").text(data.data.unit);321 $(".rbb3").text(data.data.updateDate);322 $(".remarksF").val(data.data.remarks);323 $(dataList).each(function(i){324 tr += "<tr>";325 tr += "<td style='line-height:38px' class='textR'><b>"+ dataList[i].date +"</b></td>";326 tr += "<td><input class='textRight' type='text' value='"+ dataList[i].totalEquity +"' /></td>";327 tr += "<td><input class='textRight' type='text' value='"+ dataList[i].totalShareCapital +"' /></td>";328 tr += "<td><input class='textRight' type='text' value='"+ dataList[i].totalOperatingIncome +"' /></td>";329 tr += "<td><input class='textRight' type='text' value='"+ dataList[i].netProfit +"' /></td>";330 tr += "<td><input class='textRight' type='text' value='"+ dataList[i].netProfitRate +"' /></td>";331 tr += "<td><input class='textRight' type='text' value='"+ dataList[i].netPrfCut +"' /></td>";332 tr += "<td><input class='textRight' type='text' value='"+ dataList[i].assetLiabilityRatio +"' /></td>";333 tr += "<td><input class='textRight' type='text' value='"+ dataList[i].salesGrossMargin +"' /></td>";334 tr += "<td><input class='textRight' type='text' value='"+ dataList[i].earningsPerShare +"' /></td>";335 tr += "<td><input class='textRight' type='text' value='"+ dataList[i].netAssetsPerShare +"' /></td>";336 tr += "<td><input class='textRight' type='text' value='"+ dataList[i].capitalPerShare +"' /></td>";337 tr += "<td><input class='textRight' type='text' value='"+ dataList[i].undistributedProfit +"' /></td>";338 tr += "<td><input class='textRight' type='text' value='"+ dataList[i].stock +"' /></td>";339 tr += "<td><input class='textRight' type='text' value='"+ dataList[i].moneyFund +"' /></td>";340 tr += "<td><input class='textRight' type='text' value='"+ dataList[i].accountsReceivable +"' /></td>";341 tr += "<td><input class='textRight' type='text' value='"+ dataList[i].netCashFlowOperating +"' /></td>";342 tr += "<td><input class='textRight' type='text' value='"+ dataList[i].netCashFlowInvesting +"' /></td>";343 tr += "<td><input class='textRight' type='text' value='"+ dataList[i].netCashFlowFinancing +"' /></td>";344 tr += "</tr>";345 })346 $("#financialData").append(tr);347 financialData();348 }349 }350 });351 352 353 /////////////////////////商业分析////////////////////////////////354 //营收情况355 $.kf.ajax({356 type: "get",357 url: $.kf.REPORTREVENUESITUATION + "?rp_id="+ rp_id +"&tmp_id="+ tmp_id,358 data: "",359 dataType: "json",360 processResponse: function (data) {361 var dataList = data.data.body;362 var dataC = data.data;363 if(isNullOrEmpty(dataC)){364 $(".busAnalysis").hide();365 $(".businessTime").text("--");366 $(".businessTime2").text("--");367 }else{368 var tr = "";369 $(".rbbb").text(data.data.updateDate);370 $(".remarksG").val(data.data.remarks);371 if(!isNullOrEmpty(data.data.newDate)){372 $(".businessTime").text(data.data.newDate);373 }else{374 $(".businessTime").text("--");375 }376 if(!isNullOrEmpty(data.data.oldDate)){377 $(".businessTime2").text(data.data.oldDate);378 }else{379 $(".businessTime2").text("--");380 }381 $(dataList).each(function(i){382 tr += "<tr>";383 if(dataList[i].productType == "合计"){384 tr += "<td class='textR'><b>"+ dataList[i].productType +"</b></td>";385 }else{386 tr += "<td><input class='textL' type='text' value='"+ dataList[i].productType +"' /></td>";387 }388 tr += "<td><input class='textRight' type='text' value='"+ dataList[i].newDate +"' /></td>";389 tr += "<td><input type='text' value='"+ dataList[i].newRatio +"' /></td>";390 tr += "<td><input class='textRight' type='text' value='"+ dataList[i].oldDate +"' /></td>";391 tr += "<td><input type='text' value='"+ dataList[i].oldRatio +"' /></td>";392 tr += "</tr>";393 })394 $("#revenueSituationList").append(tr);395 revenueSituation()396 }397 }398 });399 400 //前五客户情况401 $.kf.ajax({402 type: "get",403 url: $.kf.REPORTCUSTOMERSITUATION + "?rp_id="+ rp_id +"&tmp_id="+ tmp_id,404 data: "",405 dataType: "json",406 processResponse: function (data) {407 var dataList = data.data.body;408 var dataC = data.data;409 if(isNullOrEmpty(dataC)){410 $(".busAnalysis2").hide();411 }else{412 var tr = "";413 $(".rbbb2").text(data.data.updateDate);414 $(".remarksH").val(data.data.remarks);415 $(dataList).each(function(i){416 tr += "<tr>";417 tr += "<td style='color:#999;text-align:center'>"+ dataList[i].date +"</td>";418 if(dataList[i].supplierName == "合计"){419 tr += "<td class='textR'><b>"+ dataList[i].supplierName +"</b></td>";420 }else{421 tr += "<td><input class='textL' type='text' value='"+ dataList[i].supplierName +"' /></td>";422 }423 tr += "<td><input class='textRight' type='text' value='"+ dataList[i].purchaseAmount +"' /></td>";424 tr += "<td><input type='text' value='"+ dataList[i].ratio +"' /></td>";425 tr += "</tr>";426 })427 $("#firstFiveHappeningList").append(tr);428 firstFiveHappening();429 }430 }431 });432 433 //前五供应商情况434 $.kf.ajax({435 type: "get",436 url: $.kf.REPORTSUPPLIERSITUATION + "?rp_id="+ rp_id +"&tmp_id="+ tmp_id,437 data: "",438 dataType: "json",439 processResponse: function (data) {440 var dataList = data.data.body;441 var dataC = data.data;442 if(isNullOrEmpty(dataC)){443 $(".busAnalysis3").hide();444 }else{445 var tr = "";446 $(".rbbb3").text(data.data.updateDate);447 $(".remarksI").val(data.data.remarks);448 $(dataList).each(function(i){449 tr += "<tr>";450 tr += "<td style='color:#999;text-align:center'>"+ dataList[i].date +"</td>";451 if(dataList[i].supplierName == "合计"){452 tr += "<td class='textR'><b>"+ dataList[i].supplierName +"</b></td>";453 }else{454 tr += "<td><input class='textL' type='text' value='"+ dataList[i].supplierName +"' /></td>";455 }456 tr += "<td><input class='textRight' type='text' value='"+ dataList[i].purchaseAmount +"' /></td>";457 tr += "<td><input type='text' value='"+ dataList[i].ratio +"' /></td>";458 tr += "</tr>";459 })460 $("#firstFiveSupplierList").append(tr);461 firstFiveSupplier();462 }463 }464 });465 466 //商业模式467 var ue2 = UE.getEditor('editor2', {468 toolbars: []469 });470 $.kf.ajax({471 type: "get",472 url: $.kf.REPORTBUSINESSMODEL + "?rp_id="+ rp_id +"&tmp_id="+ tmp_id,473 data: "",474 dataType: "json",475 processResponse: function (data) {476 var dataList = data.data;477 if(isNullOrEmpty(dataList)){478 $(".busAnalysis4").hide();479 }else{480 $(".datJ").text(data.data.updateDate);481 ue2.ready(function() {482 ue2.setContent(dataList.content, false);483 });484 $(".remarksJ").val(data.data.remarks);485 }486 }487 });488 489 //同商业模式企业490 $.kf.ajax({491 type: "get",492 url: $.kf.REPORTBUSINESSWITH + "?rp_id="+ rp_id +"&tmp_id="+ tmp_id,493 data: "",494 dataType: "json",495 processResponse: function (data) {496 var dataList = data.data.body;497 var dataC = data.data;498 if(isNullOrEmpty(dataC)){499 $(".busAnalysis5").hide();500 }else{501 var tr = "";502 $(".datK").text(data.data.updateDate);503 $(".remarksK").val(data.data.remarks);504 $(dataList).each(function(i){505 tr += "<tr>";506 tr += "<td><input type='text' value='"+ dataList[i].code +"' /></td>";507 tr += "<td><input type='text' value='"+ dataList[i].name +"' /></td>";508 tr += "</tr>";509 })510 $("#businessModelCompany").append(tr);511 businessModelCompany();512 }513 }514 });515 516 517 /////////////////////////做市行情////////////////////////////////518 //做市信息519 $.kf.ajax({520 type: "get",521 url: $.kf.REPORTMARKETINFO + "?rp_id="+ rp_id +"&tmp_id="+ tmp_id,522 data: "",523 dataType: "json",524 processResponse: function (data) {525 var dataList = data.data.body;526 var dataC = data.data;527 if(isNullOrEmpty(dataC)){528 $(".reportQutes4").hide();529 }else{530 var tr = "";531 $(".hqMes2").text(dataC.updateDate);532 $(".remarksJJ").val(data.data.remarks);533 $(dataList).each(function(i){534 tr += "<tr>";535 if(dataList[i].maker == "合计"){536 tr += "<td class='textR'><b>"+ dataList[i].maker +"</b></td>";537 }else{538 tr += "<td><input type='text' value='"+ dataList[i].maker +"' /></td>";539 }540 tr += "<td><input type='text' value='"+ dataList[i].buyDate +"' /></td>";541 tr += "<td><input type='text' value='"+ dataList[i].buyWay +"' /></td>";542 tr += "<td><input class='textRight' type='text' value='"+ dataList[i].buyCost +"' /></td>";543 tr += "<td><input class='textRight' type='text' value='"+ dataList[i].buyNumber +"' /></td>";544 tr += "</tr>";545 })546 $("#marketInformation").append(tr);547 marketInformation();548 }549 }550 });551 552 /////////////////////////媒体报道////////////////////////////////553 //媒体报道554 var _url = $.kf.REPORTSINFOMEDIA + "?rp_id="+ rp_id +"&tmp_id="+ tmp_id;555 //new GetTable(_url, $("#pageMedia"), {}, mediaList, "get", $("#mediaReportList"),"",$(".maskInTableMedia"),false).init();556 $.getTable({557 url:_url,//url558 pageId:$("#pageMedia"),//分页id559 callback:mediaList,//callback560 loadId:".maskInTableMedia",561 showDataBox:false,562 tbodyId:$("#mediaReportList")//tbody的id,563 })564 function mediaList(data){565 var dataList = data.data.body;566 if(isNullOrEmpty(dataList)){567 $("#pageMedia").hide();568 }569 var tr = "";570 $(".mediaDate").text(data.data.updateDate)571 572 $(dataList).each(function(i){573 tr += "<tr>";574 tr += "<td><a href='" + $.url.newsInfoUrl() + "id=" + dataList[i].id + '&name=news&from=makeReport' + "'>" + dataList[i].title + "</a></td>";575 tr += "<td class='textR'>"+ dataList[i].newsSource +"</td>";576 tr += "<td class='textR'>"+ dataList[i].releaseDate +"</td>";577 tr += "</tr>";578 })579 $("#mediaReportList").append(tr);580 }581 582 /////////////////////////公告信息////////////////////////////////583 //公告信息584 var _url2 = $.kf.REPORTNOTICEINFO + "?rp_id="+ rp_id +"&tmp_id="+ tmp_id;585 //new GetTable(_url, $("#pageNotice"), {}, noteList, "get", $("#noticeNewsList"),"",$(".maskInTableNote"),false).init();586 $.getTable({587 url:_url2,//url588 pageId:$("#pageNotice"),//分页id589 callback:noteList,//callback590 loadId:".maskInTableNote",591 showDataBox:false,592 tbodyId:$("#noticeNewsList")//tbody的id,593 })594 function noteList(data){595 var dataList = data.data.body;596 if(isNullOrEmpty(dataList)){597 $("#pageNotice").hide();598 }599 $("#noticeNewsList").html("");600 var tr = "";601 $(".noticeDate").text(data.data.updateDate);602 $(dataList).each(function(i){603 tr += "<tr>";604 if(isNullOrEmpty(dataList[i].url)){605 tr += "<td><a href='javascript:void(0)'>"+ dataList[i].title +"</a></td>";606 }else{607 tr += "<td><a target='_blank' href='"+ dataList[i].url +"'>"+ dataList[i].title +"</a></td>"; 608 }609 tr += "<td class='textR'>"+ dataList[i].newsSource +"</td>";610 tr += "<td class='textR'>"+ dataList[i].releaseDate +"</td>";611 tr += "</tr>";612 })613 $("#noticeNewsList").append(tr);614 }615 616 /////////////////////////股权信息////////////////////////////////617 //股权结构分析618 $.kf.ajax({619 type: "get",620 url: $.kf.REPORTSTRUCTURE + "?rp_id="+ rp_id +"&tmp_id="+ tmp_id,621 data: "",622 dataType: "json",623 processResponse: function (data) {624 var dataList = data.data.body;625 var dataC = data.data;626 if(isNullOrEmpty(dataC)){627 $(".equInformation").hide();628 }else{629 var tr = "";630 $(".remarksN").val(data.data.remarks);631 $(".datN").text(data.data.updateDate);632 $(dataList).each(function(i){633 tr += "<tr>";634 if(dataList[i].shareholderName == "合计"){635 tr += "<td><b>"+ dataList[i].shareholderName +"</b></td>";636 }else{637 tr += "<td><input type='text' value='"+ dataList[i].shareholderName +"' /></td>";638 }639 tr += "<td><input class='textRight' type='text' value='"+ dataList[i].holdingShares +"' /></td>";640 tr += "<td><input class='textRight' type='text' value='"+ dataList[i].endPeriod +"' /></td>";641 tr += "<td><input type='text' value='"+ dataList[i].endPeriodRatio +"' /></td>";642 tr += "<td><input class='textRight' type='text' value='"+ dataList[i].qutstandingShares +"' /></td>";643 /*tr += "<td><input type='text' value='"+ dataList[i].sharesType +"' /></td>";644 tr += "<td><input type='text' value='"+ dataList[i].buyCost +"' /></td>";*/645 tr += "</tr>";646 })647 $("#equityAnalysisList").append(tr);648 equityAnalysis();649 }650 }651 });652 653 //历史定增654 $.kf.ajax({655 type: "get",656 url: $.kf.REPORTHISTORYINCREASE + "?rp_id="+ rp_id +"&tmp_id="+ tmp_id,657 data: "",658 dataType: "json",659 processResponse: function (data) {660 var dataList = data.data.body;661 var dataC = data.data;662 if(isNullOrEmpty(dataC)){663 $(".equInformation2").hide();664 }else{665 var tr = "";666 $(".distoryRmark").val(data.data.remarks);667 $(".distoryDate").text(data.data.updateDate);668 $(dataList).each(function(i){669 tr += "<tr>";670 tr += "<td><input type='text' value='"+ dataList[i].IssueDate +"' /></td>";671 tr += "<td><input class='textRight' type='text' value='"+ dataList[i].IssuePrice +"' /></td>";672 tr += "<td><input class='textRight' type='text' value='"+ dataList[i].issueNumber +"' /></td>";673 tr += "<td><input class='textRight' type='text' value='"+ dataList[i].fundRaising +"' /></td>";674 tr += "<td><textarea rows='4' type='text' value=''>"+ dataList[i].IssueObject +"</textarea></td>";675 tr += "<td><input class='text-center' type='text' value='"+ dataList[i].IssuePurpose +"' /></td>";676 tr += "<td><input class='text-center' type='text' value='"+ dataList[i].releaseResults +"' /></td>";677 tr += "</tr>";678 })679 $("#historyAddList").append(tr);680 historyAdd();681 }682 }683 });684 685 //分红686 $.kf.ajax({687 type: "get",688 url: $.kf.REPORTDIVIDENDS + "?rp_id="+ rp_id +"&tmp_id="+ tmp_id,689 data: "",690 dataType: "json",691 processResponse: function (data) {692 var dataList = data.data.body;693 var dataC = data.data;694 if(isNullOrEmpty(dataC)){695 $(".equInformation3").hide();696 }else{697 var tr = "";698 $(".dividendsRemarks").val(data.data.remarks);699 $(".dividendsDate").text(data.data.updateDate);700 $(dataList).each(function(i){701 tr += "<tr>";702 tr += "<td><input class='text-center' type='text' value='"+ dataList[i].reportingPeriod +"' /></td>";703 tr += "<td><input type='text' value='"+ dataList[i].dividendStatement +"' /></td>";704 tr += "<td><input class='text-center' type='text' value='"+ dataList[i].equityRegistrationDate +"' /></td>";705 tr += "<td><input class='textRight' type='text' value='"+ dataList[i].beforeCapital +"' /></td>";706 tr += "<td><input class='textRight' type='text' value='"+ dataList[i].rearCapital +"' /></td>";707 tr += "</tr>";708 })709 $("#dividendsList").append(tr);710 dividends();711 }712 }713 });714 715 716 /////////////////////////债权质押////////////////////////////////717 //股权质押718 $.kf.ajax({719 type: "get",720 url: $.kf.REPORTBONDPLEDGE + "?rp_id="+ rp_id +"&tmp_id="+ tmp_id,721 data: "",722 dataType: "json",723 processResponse: function (data) {724 var dataList = data.data.body;725 var dataC = data.data;726 if(isNullOrEmpty(dataC)){727 728 }else{729 var tr = "";730 $(".equityPledgeRemarks").val(data.data.remarks);731 $(".equityPledgeDate").text(data.data.updateDate);732 $(dataList).each(function(i){733 tr += "<tr>";734 tr += "<td><input class='text-center' type='text' value='"+ dataList[i].pledgeDate +"' /></td>";735 tr += "<td><input type='text' value='"+ dataList[i].person +"' /></td>";736 tr += "<td><input class='textRight' type='text' value='"+ dataList[i].sharesNumber +"' /></td>";737 tr += "<td><input class='textRight' type='text' value='"+ dataList[i].totalSharesNumber +"' /></td>";738 tr += "<td><input type='text' value='"+ dataList[i].borrowingObject +"' /></td>";739 tr += "<td><input class='textRight' type='text' value='"+ dataList[i].loanAmount +"' /></td>";740 tr += "<td><input class='text-center' type='text' value='"+ dataList[i].pledgePeriod +"' /></td>";741 tr += "<td><input type='text' value='"+ dataList[i].guarantor +"' /></td>";742 tr += "</tr>";743 })744 $("#equityPledgeList").append(tr);745 equityPledge();746 }747 }748 });749 750 /////////////////////////投融信息////////////////////////////////751 //关联公司情况752 $.kf.ajax({753 type: "get",754 url: $.kf.REPORTCOMPANYSITUATION + "?rp_id="+ rp_id +"&tmp_id="+ tmp_id,755 data: "",756 dataType: "json",757 processResponse: function (data) {758 var dataList = data.data.body;759 var dataC = data.data;760 if(isNullOrEmpty(dataC)){761 762 }else{763 var tr = "";764 $(".companyHappeningRemarks").val(data.data.remarks);765 $(".companyHappeningDate").text(data.data.updateDate);766 $(dataList).each(function(i){767 tr += "<tr>";768 tr += "<td><input type='text' value='"+ dataList[i].subsidiaryName +"' /></td>";769 tr += "<td><input class='textRight' type='text' value='"+ dataList[i].registeredCapital +"' /></td>";770 tr += "<td><input type='text' value='"+ dataList[i].registrationTime +"' /></td>";771 tr += "<td><input type='text' value='"+ dataList[i].proportion +"' /></td>";772 tr += "<td><input type='text' value='"+ dataList[i].representative +"' /></td>";773 tr += "</tr>";774 })775 $("#companyHappeningList").append(tr);776 companyHappening();777 }778 }779 });780 781 782 /////////////////////////企业交流////////////////////////////////783 //企业交流784 $.kf.ajax({785 type: "get",786 url: $.kf.REPORTCOMMUNICATION + "?rp_id="+ rp_id +"&tmp_id="+ tmp_id,787 data: "",788 dataType: "json",789 processResponse: function (data) {790 var dataList = data.data;791 if(isNullOrEmpty(dataList.problem)){792 $(".busCommunication").hide();793 }else{794 $(".busCommunication textarea").text(dataList.problem.problem);795 }796 if(isNullOrEmpty(dataList.businessNeeds)){797 $(".busCommunication2").hide();798 }else{799 $(".busCommunication2 textarea").text(dataList.businessNeeds.businessNeeds);800 }801 if(isNullOrEmpty(dataList.cooperation)){802 $(".busCommunication3").hide();803 }else{804 $(".busCommunication3 textarea").text(dataList.cooperation.cooperation);805 }806 }807 });808 809 810 811 //////////////////////////////////上送字段/////////////////////////////////////812 var reportAll = [];813 814 815 $("#reportAll input[type='text'],#reportAll textarea").each(function(){816 $(this).change(function(){817 var code = $(this).attr("current-code");818 var value = $(this).val();819 var obj={};820 obj[code] = value;821 $.each(reportAll,function(name,val){822 for (var key in val) {823 if(key == code){824 reportAll.splice(name,1)825 }826 }827 })828 reportAll.push(obj);829 })830 })831 832 //基本信息--联系情况radio833 $("#concatRadio input[type='radio']").each(function(){834 if($(this).is(':checked')){835 var mobai = $(this).attr("current-code");836 reportAll.push({b01040100:mobai})837 }838 })839 $("#concatRadio input[type='radio']").on("click",function(){840 if($(this).is(':checked')){841 var mobai = $(this).attr("current-code");842 reportAll.push({b01040100:mobai})843 }844 })845 846 //人员信息 --管理层信息847 var managementMesD = [];848 var manageLast = {};849 function reportInformation(){850 $("#reportInformation input,#reportInformation textarea").each(function(){851 $(this).change(function(){852 var intr = [];853 intr = intr.concat(reportAll);854 manageLast = intr.splice(reportAll.length-1,1)[0];855 for (var val in manageLast) {856 if(val == "b03010000"){857 reportAll.pop();858 }859 }860 managerList();861 var managerCon = {b03010000:managementMesD};862 reportAll.push(managerCon);863 })864 })865 866 $("#reportInformation select").each(function(){867 $(this).change(function(){868 var intr = [];869 intr = intr.concat(reportAll);870 manageLast = intr.splice(reportAll.length-1,1)[0];871 for (var val in manageLast) {872 if(val == "b03010000"){873 reportAll.pop();874 }875 }876 managerList();877 var managerCon = {b03010000:managementMesD}878 reportAll.push(managerCon)879 })880 })881 }882 function managerList(){883 managementMesD.splice(0,managementMesD.length)884 $("#reportInformation tr").each(function(i){885 var executiveName = $(this).children("td").eq(0).children("input").val();886 var job = $(this).children("td").eq(1).children("input").val();887 var sexSelect = $(this).children("td").eq(2).children("select").find("option:selected");888 var sex = sexSelect.text();889 var term = $(this).children("td").eq(3).children("input").val();890 var remarks = $(this).children("td").eq(4).children("textarea").val();891 managementMesD.push({"executiveName":executiveName,"job":job,"sex":sex,"term":term,"remarks":remarks});892 })893 }894 895 896 //人员信息 --高管简介897 var managementIntroductionD = [];898 var introductionLast = {};899 function managementIntroduction(){900 $("#executiveInfor input,#executiveInfor textarea").each(function(){901 $(this).change(function(){902 var intr = [];903 intr = intr.concat(reportAll);904 introductionLast = intr.splice(reportAll.length-1,1)[0];905 for(var val in introductionLast){906 if(val == "b03020000"){907 reportAll.pop()908 }909 }910 IntroductionList();911 var managerCon = {b03020000:managementIntroductionD}912 reportAll.push(managerCon)913 })914 })915 }916 function IntroductionList(){917 managementIntroductionD.splice(0,managementIntroductionD.length)918 $("#executiveInfor tr").each(function(i){919 var executiveName = $(this).children("td").eq(0).children("input").val();920 var introduction = $(this).children("td").eq(1).children("textarea").val();921 managementIntroductionD.push({"executiveName":executiveName,"introduction":introduction});922 })923 }924 925 926 //财务数据 --财务指标927 var financialDataD = [];928 var financialDataLast = {};929 function financialData(){930 $("#financialData input").each(function(){931 $(this).change(function(){932 var intr = [];933 intr = intr.concat(reportAll);934 financialDataLast = intr.splice(reportAll.length-1,1)[0];935 for(var val in financialDataLast){936 if(val == "b04010000"){937 reportAll.pop()938 }939 }940 financialDataList();941 var managerCon = {b04010000:financialDataD}942 reportAll.push(managerCon)943 })944 })945 }946 function financialDataList(){947 financialDataD.splice(0,financialDataD.length)948 $("#financialData tr").each(function(i){949 var date = $(this).children("td").eq(0).children("b").text();950 var totalEquity = $(this).children("td").eq(1).children("input").val();951 var totalShareCapital = $(this).children("td").eq(2).children("input").val();952 var totalOperatingIncome = $(this).children("td").eq(3).children("input").val();953 var netProfit = $(this).children("td").eq(4).children("input").val();954 var netProfitRate = $(this).children("td").eq(5).children("input").val();955 var netPrfCut = $(this).children("td").eq(6).children("input").val();956 var assetLiabilityRatio = $(this).children("td").eq(7).children("input").val();957 var salesGrossMargin = $(this).children("td").eq(8).children("input").val();958 var earningsPerShare = $(this).children("td").eq(9).children("input").val();959 var netAssetsPerShare = $(this).children("td").eq(10).children("input").val();960 var capitalPerShare = $(this).children("td").eq(11).children("input").val();961 var undistributedProfit = $(this).children("td").eq(12).children("input").val();962 var stock = $(this).children("td").eq(13).children("input").val();963 var moneyFund = $(this).children("td").eq(14).children("input").val();964 var accountsReceivable = $(this).children("td").eq(15).children("input").val();965 var netCashFlowOperating = $(this).children("td").eq(16).children("input").val();966 var netCashFlowInvesting = $(this).children("td").eq(17).children("input").val();967 var netCashFlowFinancing = $(this).children("td").eq(18).children("input").val();968 financialDataD.push({"date":date,"totalEquity":totalEquity,"totalShareCapital":totalShareCapital,"totalOperatingIncome":totalOperatingIncome,"netProfit":netProfit,"netProfitRate":netProfitRate,"netPrfCut":netPrfCut,"assetLiabilityRatio":assetLiabilityRatio,"salesGrossMargin":salesGrossMargin,"earningsPerShare":earningsPerShare,"netAssetsPerShare":netAssetsPerShare,"capitalPerShare":capitalPerShare,"undistributedProfit":undistributedProfit,"stock":stock,"moneyFund":moneyFund,"accountsReceivable":accountsReceivable,"netCashFlowOperating":netCashFlowOperating,"netCashFlowInvesting":netCashFlowInvesting,"netCashFlowFinancing":netCashFlowFinancing});969 })970 }971 972 973 //商业分析 --营收情况974 var revenueSituationD = [];975 var revenueSituationLast = {};976 function revenueSituation(){977 $("#revenueSituationList input").each(function(){978 $(this).change(function(){979 var intr = [];980 intr = intr.concat(reportAll);981 revenueSituationLast = intr.splice(reportAll.length-1,1)[0];982 for(var val in revenueSituationLast){983 if(val == "b05010000"){984 reportAll.pop()985 }986 }987 revenueSituationList();988 var managerCon = {b05010000:revenueSituationD}989 reportAll.push(managerCon)990 })991 })992 }993 function revenueSituationList(){994 revenueSituationD.splice(0,revenueSituationD.length)995 $("#revenueSituationList tr").each(function(i){996 var productType = $(this).children("td").eq(0).children("input").val();997 if(productType == undefined){998 productType = "合计"999 }1000 var newDate = $(this).children("td").eq(1).children("input").val();1001 var newRatio = $(this).children("td").eq(2).children("input").val();1002 var oldDate = $(this).children("td").eq(3).children("input").val();1003 var oldRatio = $(this).children("td").eq(4).children("input").val();1004 revenueSituationD.push({"productType":productType,"newDate":newDate,"newRatio":newRatio,"oldDate":oldDate,"oldRatio":oldRatio});1005 })1006 }1007 1008 1009 //商业分析 --前五名客户情况1010 var firstFiveHappeningD = [];1011 var firstFiveHappeningLast = {};1012 function firstFiveHappening(){1013 $("#firstFiveHappeningList input").each(function(){1014 $(this).change(function(){1015 var intr = [];1016 intr = intr.concat(reportAll);1017 firstFiveHappeningLast = intr.splice(reportAll.length-1,1)[0];1018 for(var val in firstFiveHappeningLast){1019 if(val == "b05020000"){1020 reportAll.pop()1021 }1022 }1023 firstFiveHappeningList();1024 var managerCon = {b05020000:firstFiveHappeningD}1025 reportAll.push(managerCon)1026 })1027 })1028 }1029 function firstFiveHappeningList(){1030 firstFiveHappeningD.splice(0,firstFiveHappeningD.length)1031 $("#firstFiveHappeningList tr").each(function(i){1032 var date = $(this).children("td").eq(0).text();1033 var supplierName = $(this).children("td").eq(1).children("input").val();1034 if(supplierName == undefined){1035 supplierName = "合计"1036 }1037 var purchaseAmount = $(this).children("td").eq(2).children("input").val();1038 var ratio = $(this).children("td").eq(3).children("input").val();1039 firstFiveHappeningD.push({"date":date,"supplierName":supplierName,"purchaseAmount":purchaseAmount,"ratio":ratio});1040 })1041 }1042 1043 1044 //商业分析 --前五名供应商情况1045 var firstFiveSupplierD = [];1046 var firstFiveSupplierLast = {};1047 function firstFiveSupplier(){1048 $("#firstFiveSupplierList input").each(function(){1049 $(this).change(function(){1050 var intr = [];1051 intr = intr.concat(reportAll);1052 firstFiveSupplierLast = intr.splice(reportAll.length-1,1)[0];1053 for(var val in firstFiveSupplierLast){1054 if(val == "b05030000"){1055 reportAll.pop()1056 }1057 }1058 firstFiveSupplierList();1059 var managerCon = {b05030000:firstFiveSupplierD};1060 reportAll.push(managerCon)1061 })1062 })1063 }1064 function firstFiveSupplierList(){1065 firstFiveSupplierD.splice(0,firstFiveSupplierD.length);1066 $("#firstFiveSupplierList tr").each(function(i){1067 var date = $(this).children("td").eq(0).text();1068 var supplierName = $(this).children("td").eq(1).children("input").val();1069 if(supplierName == undefined){1070 supplierName = "合计"1071 }1072 var purchaseAmount = $(this).children("td").eq(2).children("input").val();1073 var ratio = $(this).children("td").eq(3).children("input").val();1074 firstFiveSupplierD.push({"date":date,"supplierName":supplierName,"purchaseAmount":purchaseAmount,"ratio":ratio});1075 })1076 }1077 1078 1079 //商业分析 --同商业模式企业1080 var businessModelCompanyD = [];1081 var businessModelCompanyLast = {};1082 function businessModelCompany(){1083 $("#businessModelCompany input").each(function(){1084 $(this).change(function(){1085 var intr = [];1086 intr = intr.concat(reportAll);1087 businessModelCompanyLast = intr.splice(reportAll.length-1,1)[0];1088 for(var val in businessModelCompanyLast){1089 if(val == "b05050000"){1090 reportAll.pop()1091 }1092 }1093 businessModelCompanyList();1094 var managerCon = {b05050000:businessModelCompanyD}1095 reportAll.push(managerCon)1096 })1097 })1098 }1099 function businessModelCompanyList(){1100 businessModelCompanyD.splice(0,businessModelCompanyD.length)1101 $("#businessModelCompany tr").each(function(i){1102 var code = $(this).children("td").eq(0).children("input").val();1103 var name = $(this).children("td").eq(1).children("input").val();1104 businessModelCompanyD.push({"code":code,"name":name});1105 })1106 }1107 1108 1109 //行情做市 --做市信息1110 var marketInformationD = [];1111 var marketInformationLast = {};1112 function marketInformation(){1113 $("#marketInformation input").each(function(){1114 $(this).change(function(){1115 var intr = [];1116 intr = intr.concat(reportAll);1117 marketInformationLast = intr.splice(reportAll.length-1,1)[0];1118 for(var val in marketInformationLast){1119 if(val == "b06020000"){1120 reportAll.pop()1121 }1122 }1123 marketInformationList();1124 var managerCon = {b06020000:marketInformationD}1125 reportAll.push(managerCon)1126 })1127 })1128 }1129 function marketInformationList(){1130 marketInformationD.splice(0,marketInformationD.length)1131 $("#marketInformation tr").each(function(i){1132 var maker = $(this).children("td").eq(0).children("input").val();1133 var buyDate = $(this).children("td").eq(1).children("input").val();1134 var buyWay = $(this).children("td").eq(2).children("input").val();1135 var buyCost = $(this).children("td").eq(3).children("input").val();1136 var buyNumber = $(this).children("td").eq(4).children("input").val();1137 marketInformationD.push({"maker":maker,"buyDate":buyDate,"buyWay":buyWay,"buyCost":buyCost,"buyNumber":buyNumber});1138 })1139 }1140 1141 1142 //股权信息 --股权结构分析1143 var equityAnalysisD = [];1144 var equityAnalysisLast = {};1145 function equityAnalysis(){1146 $("#equityAnalysisList input").each(function(){1147 $(this).change(function(){1148 var intr = [];1149 intr = intr.concat(reportAll);1150 equityAnalysisLast = intr.splice(reportAll.length-1,1)[0];1151 for(var val in equityAnalysisLast){1152 if(val == "b09010000"){1153 reportAll.pop()1154 }1155 }1156 equityAnalysisList();1157 var managerCon = {b09010000:equityAnalysisD}1158 reportAll.push(managerCon)1159 })1160 })1161 }1162 function equityAnalysisList(){1163 equityAnalysisD.splice(0,equityAnalysisD.length)1164 $("#equityAnalysisList tr").each(function(i){1165 var shareholderName = $(this).children("td").eq(0).children("input").val();1166 if(shareholderName == undefined){1167 shareholderName = "合计"1168 }1169 var holdingShares = $(this).children("td").eq(1).children("input").val();1170 var endPeriod = $(this).children("td").eq(2).children("input").val();1171 var endPeriodRatio = $(this).children("td").eq(3).children("input").val();1172 var qutstandingShares = $(this).children("td").eq(4).children("input").val();1173 equityAnalysisD.push({"shareholderName":shareholderName,"holdingShares":holdingShares,"endPeriod":endPeriod,"endPeriodRatio":endPeriodRatio,"qutstandingShares":qutstandingShares});1174 })1175 }1176 1177 //股权信息 --历史定增1178 var historyAddD = [];1179 var historyAddLast = {};1180 function historyAdd(){1181 $("#historyAddList input,#historyAddList textarea").each(function(){1182 $(this).change(function(){1183 var intr = [];1184 intr = intr.concat(reportAll);1185 historyAddLast = intr.splice(reportAll.length-1,1)[0];1186 for(var val in historyAddLast){1187 if(val == "b09020000"){1188 reportAll.pop()1189 }1190 }1191 historyAddList();1192 var managerCon = {b09020000:historyAddD}1193 reportAll.push(managerCon)1194 })1195 })1196 }1197 function historyAddList(){1198 historyAddD.splice(0,historyAddD.length)1199 $("#historyAddList tr").each(function(i){1200 var IssueDate = $(this).children("td").eq(0).children("input").val();1201 var IssuePrice = $(this).children("td").eq(1).children("input").val();1202 var issueNumber = $(this).children("td").eq(2).children("input").val();1203 var fundRaising = $(this).children("td").eq(3).children("input").val();1204 var IssueObject = $(this).children("td").eq(4).children("textarea").val();1205 var IssuePurpose = $(this).children("td").eq(5).children("input").val();1206 var releaseResults = $(this).children("td").eq(6).children("input").val();1207 historyAddD.push({"IssueDate":IssueDate,"IssuePrice":IssuePrice,"issueNumber":issueNumber,"fundRaising":fundRaising,"IssueObject":IssueObject,"IssuePurpose":IssuePurpose,"releaseResults":releaseResults});1208 })1209 }1210 1211 //股权信息 --分红1212 var dividendsD = [];1213 var dividendsLast = {};1214 function dividends(){1215 $("#dividendsList input").each(function(){1216 $(this).change(function(){1217 var intr = [];1218 intr = intr.concat(reportAll);1219 dividendsLast = intr.splice(reportAll.length-1,1)[0];1220 for(var val in dividendsLast){1221 if(val == "b09030000"){1222 reportAll.pop()1223 }1224 }1225 dividendsList();1226 var managerCon = {b09030000:dividendsD}1227 reportAll.push(managerCon)1228 })1229 })1230 }1231 function dividendsList(){1232 dividendsD.splice(0,dividendsD.length)1233 $("#dividendsList tr").each(function(i){1234 var reportingPeriod = $(this).children("td").eq(0).children("input").val();1235 var dividendStatement = $(this).children("td").eq(1).children("input").val();1236 var equityRegistrationDate = $(this).children("td").eq(2).children("input").val();1237 var beforeCapital = $(this).children("td").eq(3).children("input").val();1238 var rearCapital = $(this).children("td").eq(4).children("input").val();1239 dividendsD.push({"reportingPeriod":reportingPeriod,"dividendStatement":dividendStatement,"equityRegistrationDate":equityRegistrationDate,"beforeCapital":beforeCapital,"rearCapital":rearCapital});1240 })1241 }1242 1243 //债权质押 --股权质押1244 var equityPledgeD = [];1245 var equityPledgeLast = {};1246 function equityPledge(){1247 $("#equityPledgeList input").each(function(){1248 $(this).change(function(){1249 var intr = [];1250 intr = intr.concat(reportAll);1251 equityPledgeLast = intr.splice(reportAll.length-1,1)[0];1252 for(var val in equityPledgeLast){1253 if(val == "b10010000"){1254 reportAll.pop()1255 }1256 }1257 equityPledgeList();1258 var managerCon = {b10010000:equityPledgeD}1259 reportAll.push(managerCon)1260 })1261 })1262 }1263 function equityPledgeList(){1264 equityPledgeD.splice(0,equityPledgeD.length)1265 $("#equityPledgeList tr").each(function(i){1266 var pledgeDate = $(this).children("td").eq(0).children("input").val();1267 var person = $(this).children("td").eq(1).children("input").val();1268 var sharesNumber = $(this).children("td").eq(2).children("input").val();1269 var totalSharesNumber = $(this).children("td").eq(3).children("input").val();1270 var borrowingObject = $(this).children("td").eq(4).children("input").val();1271 var loanAmount = $(this).children("td").eq(5).children("input").val();1272 var pledgePeriod = $(this).children("td").eq(6).children("input").val();1273 var guarantor = $(this).children("td").eq(7).children("input").val();1274 equityPledgeD.push({"pledgeDate":pledgeDate,"person":person,"sharesNumber":sharesNumber,"totalSharesNumber":totalSharesNumber,"borrowingObject":borrowingObject,"loanAmount":loanAmount,"pledgePeriod":pledgePeriod,"guarantor":guarantor});1275 })1276 }1277 1278 //投融信息 --关联公司情况1279 var companyHappeningD = [];1280 var companyHappeningLast = {};1281 function companyHappening(){1282 $("#companyHappeningList input").each(function(){1283 $(this).change(function(){1284 var intr = [];1285 intr = intr.concat(reportAll);1286 companyHappeningLast = intr.splice(reportAll.length-1,1)[0];1287 for(var val in companyHappeningLast){1288 if(val == "b11010000"){1289 reportAll.pop()1290 }1291 }1292 companyHappeningList();1293 var managerCon = {b11010000:companyHappeningD}1294 reportAll.push(managerCon)1295 })1296 })1297 }1298 function companyHappeningList(){1299 companyHappeningD.splice(0,companyHappeningD.length)1300 $("#companyHappeningList tr").each(function(i){1301 var subsidiaryName = $(this).children("td").eq(0).children("input").val();1302 var registeredCapital = $(this).children("td").eq(1).children("input").val();1303 var registrationTime = $(this).children("td").eq(2).children("input").val();1304 var proportion = $(this).children("td").eq(3).children("input").val();1305 var representative = $(this).children("td").eq(4).children("input").val();1306 companyHappeningD.push({"subsidiaryName":subsidiaryName,"registeredCapital":registeredCapital,"registrationTime":registrationTime,"proportion":proportion,"representative":representative});1307 })1308 }1309 1310 1311 //预览导出报告1312 $("#outTemplate").on("click",function(){1313 $("#comModalLoad").modal("show");1314 delay_till_last('#outTemplate', function() {1315 var obj = {"b02010000":$("#editorDiv").html()};1316 $.each(reportAll,function(name,val){1317 for (var key in val) {1318 if(key == "b02010000"){1319 reportAll.splice(name,1)1320 }1321 }1322 })1323 reportAll.push(obj);1324 1325 var obj2 = {"b05040000":$("#editor2Div").html()};1326 $.each(reportAll,function(name,val){1327 for (var key in val) {1328 if(key == "b05040000"){1329 reportAll.splice(name,1)1330 }1331 }1332 })1333 reportAll.push(obj2);1334 var imgSrc = $("#img001").find("img").attr("src");1335 var imgSrc2 = $("#img002").find("img").attr("src");1336 imgUrl.push({b06010200:{"imgSrc":imgSrc,"imgSrc2":imgSrc2}});1337 var allDate = reportAll.concat(imgUrl);1338 var cc = JSON.stringify(allDate);1339 var parentAll = {"data":cc,"rp_id":rp_id,"tmp_id":tmp_id,"type":"export","tmp_name":tmp_name};1340 1341 //var allDateFY = JSON.stringify(parentAll);1342 if(isNullOrEmpty(tmp_name)){1343 $("#tempNameErr").text('报告名称不能为空').show();1344 }else{1345 $("#tempNameErr").text('').hide();1346 $.kf.ajax({1347 type: "post",1348 url: $.kf.REPORTSAVEEXPORT,1349 data:parentAll,1350 dataType: "json",1351 processResponse: function (data) {1352 if(data.code == "10010"){1353 $("#tempNameErr").text(data.message).show();1354 }else{1355 $("#tempNameErr").text('').hide();1356 $("#comModalLoad").modal("hide");1357 window.location.href = data.url;1358 }1359 }1360 });1361 }1362 }, 300);1363 })1364 1365 //导出报告1366 $("#createTemplate").on("click",function(){1367 $("#hideOut").click();1368 $("#comModalLoad").modal("show");1369 delay_till_last('#createTemplate', function() {1370 ue.ready(function() {1371 var ueText = UE.getEditor('editor').getContent();1372 var obj = {"b02010000":ueText};1373 $.each(reportAll,function(name,val){1374 for (var key in val) {1375 if(key == "b02010000"){1376 reportAll.splice(name,1)1377 }1378 }1379 })1380 reportAll.push(obj);1381 });1382 ue2.ready(function() {1383 var ueText2 = UE.getEditor('editor2').getContent();1384 var obj = {"b05040000":ueText2};1385 $.each(reportAll,function(name,val){1386 for (var key in val) {1387 if(key == "b05040000"){1388 reportAll.splice(name,1)1389 }1390 }1391 })1392 reportAll.push(obj);1393 });1394 var imgSrc = $("#img001").find("img").attr("src");1395 var imgSrc2 = $("#img002").find("img").attr("src");1396 imgUrl.push({b06010200:{"imgSrc":imgSrc,"imgSrc2":imgSrc2}});1397 var allDate = reportAll.concat(imgUrl);1398 var cc = JSON.stringify(allDate);1399 var parentAll = {"data":cc,"rp_id":rp_id,"tmp_id":tmp_id,"type":"export","tmp_name":tmp_name};1400 1401 //var allDateFY = JSON.stringify(parentAll);1402 if(isNullOrEmpty(tmp_name)){1403 $("#tempNameErr").text('报告名称不能为空').show();1404 }else{1405 $("#tempNameErr").text('').hide();1406 $.kf.ajax({1407 type: "post",1408 url: $.kf.REPORTSAVEEXPORT,1409 data:parentAll,1410 dataType: "json",1411 processResponse: function (data) {1412 if(data.code == "10010"){1413 $("#tempNameErr").text(data.message).show();1414 }else{1415 $("#tempNameErr").text('').hide();1416 $("#comModalLoad").modal("hide");1417 window.location.href = data.url;1418 }1419 1420 }1421 });1422 }1423 }, 300);1424 })1425 1426 //保存报告1427 $("#saveTemplate,#saveTemplate2").on("click",function(){1428 $("#hideOut").click();1429 delay_till_last('#saveTemplate,#saveTemplate2', function() {1430 ue.ready(function() {1431 var ueText = UE.getEditor('editor').getContent();1432 var obj = {"b02010000":ueText};1433 $.each(reportAll,function(name,val){1434 for (var key in val) {1435 if(key == "b02010000"){1436 reportAll.splice(name,1)1437 }1438 }1439 })1440 reportAll.push(obj);1441 });1442 ue2.ready(function() {1443 var ueText2 = UE.getEditor('editor2').getContent();1444 var obj = {"b05040000":ueText2};1445 $.each(reportAll,function(name,val){1446 for (var key in val) {1447 if(key == "b05040000"){1448 reportAll.splice(name,1)1449 }1450 }1451 })1452 reportAll.push(obj);1453 });1454 var imgSrc = $("#img001").find("img").attr("src");1455 var imgSrc2 = $("#img002").find("img").attr("src");1456 imgUrl.push({b06010200:{"imgSrc":imgSrc,"imgSrc2":imgSrc2}});1457 var allDate = reportAll.concat(imgUrl);1458 var cc = JSON.stringify(allDate);1459 var parentAll = {"data":cc,"rp_id":rp_id,"tmp_id":tmp_id,"type":"save","tmp_name":tmp_name};1460 //var allDateFY = JSON.stringify(parentAll);1461 if(isNullOrEmpty(tmp_name)){1462 $("#tempNameErr").text('报告名称不能为空').show();1463 }else{1464 $("#tempNameErr").text('').hide();1465 $.kf.ajax({1466 type: "post",1467 url: $.kf.REPORTSAVEEXPORT,1468 data:parentAll,1469 dataType: "json",1470 processResponse: function (data) {1471 if(data.code == "10010"){1472 $("#tempNameErr").text(data.message).show();1473 }else{1474 $("#tempNameErr").text('').hide();1475 alert("保存成功","提示","saveRep");1476 $("#saveRep").click(function(){1477 window.top.location.href = $.url.reportList(); 1478 })1479 }1480 }1481 });1482 }1483 }, 300);1484 })1485 1486 //放弃1487 $("#notCreateTemplate").click(function(){1488 delay_till_last('#notCreateTemplate', function() {1489 alert("您确定要放弃继续编写吗?您将失去全部已编写的信息","提示","notCreateSure",true);1490 $("#notCreateSure").click(function(){1491 window.top.location.href = $.url.reportGuide();1492 })1493 }, 300);1494 })1495 1496 1497 1498 }1499 return {1500 basicInformation: function () {1501 basicInformation()1502 }1503 }...

Full Screen

Full Screen

report.component.ts

Source:report.component.ts Github

copy

Full Screen

...26 startDate: string = '';27 endDate: string = '';28 ngOnInit(): void {29 this.titleService.setTitle(`Hesabat${TITLE}`);30 this.reportAll.reportAll().subscribe((data: ReportAll[]) => {31 this.dataSource = new MatTableDataSource<ReportAll>(data);32 this.dataSource.paginator = this.paginator;33 });34 }35 dateRange = new FormGroup({36 start: new FormControl(),37 end: new FormControl()38 });39 applyFilter() {40 const startDate = this.pipe.transform(this.startDate, 'yyyy-MM-dd');41 const endDate = this.pipe.transform(this.endDate, 'yyyy-MM-dd');42 if(startDate === null || endDate === null) {43 return;44 }...

Full Screen

Full Screen

reportAll.service.ts

Source:reportAll.service.ts Github

copy

Full Screen

...10 baseUrl!: string;11 constructor(private http: HttpClient, private apiUrlService: ApiUrlsService) {12 this.baseUrl = apiUrlService.getCrmAPIURI();13 }14 reportAll(): Observable<ReportAll[]> {15 return this.http.get<ReportAll[]>(`${this.baseUrl}/Report/GetAll`);16 }17 getDate(startDate: string, endDate: string): Observable<ReportAll[]>{18 return this.http.get<ReportAll[]>(`${this.baseUrl}/Report/GetAll?startDate=${startDate}&endDate=${endDate}`);19 }...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1const reportAll = require('stryker-parent').reportAll;2reportAll();3module.exports = require('stryker-parent').config({4 karma: {5 config: {6 }7 },8});

Full Screen

Using AI Code Generation

copy

Full Screen

1var stryker = require('stryker-parent');2stryker.reportAll();3var stryker = require('stryker-parent');4stryker.reportAll();5var stryker = require('stryker-parent');6stryker.reportAll();7var path = require('path');8var childProcess = require('child_process');9var strykerParentPath = require.resolve('stryker-parent');10var stryker = childProcess.fork(path.join(strykerParentPath, '../lib/stryker-parent.js'));11stryker.send({ type: 'reportAll' });12var stryker = require('stryker-parent');13stryker.reportAll();14var path = require('path');15var childProcess = require('child_process');16var strykerParentPath = require.resolve('stryker-parent');17var stryker = childProcess.fork(path.join(strykerParentPath, '../lib/stryker-parent.js'));18stryker.send({ type: 'reportAll' });

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run stryker-parent automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful