std_bills_lib.js 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545
  1. /**
  2. * Standard Bills Lib
  3. * Created by Mai on 2017/5/16.
  4. */
  5. /*
  6. * 废弃的
  7. * */
  8. var billsLibObj = {
  9. doAfterLoadBills: null, //外部设置拉取清单数据后的回调
  10. stdBillsTree: null,
  11. stdBillsSpread: null,
  12. stdBillsJobSpread: null,
  13. stdBillsFeatureSpread: null,
  14. refreshSettingForHint: function () {
  15. TREE_SHEET_HELPER.initSetting($('#stdBillsSpread')[0], billsLibObj.stdBillsTreeSetting);
  16. },
  17. checkBillsSpread: function () {
  18. if (!this.stdBillsSpread) {
  19. this.stdBillsSpread = SheetDataHelper.createNewSpread($('#stdBillsSpread')[0]);
  20. sheetCommonObj.spreadDefaultStyle(this.stdBillsSpread);
  21. this.stdBillsSpread.getSheet(0).name('stdBillsLib_bills');
  22. // 刷新setting中记录的spread的位置
  23. this.refreshSettingForHint();
  24. }
  25. },
  26. refreshBillsSpread: function () {
  27. if (this.stdBillsSpread) {
  28. this.stdBillsSpread.refresh();
  29. }
  30. },
  31. checkBillsRelaSpread: function () {
  32. if (!this.stdBillsJobSpread) {
  33. this.stdBillsJobSpread = SheetDataHelper.createNewSpread($('#stdBillsJobs')[0]);
  34. sheetCommonObj.spreadDefaultStyle(this.stdBillsJobSpread);
  35. }
  36. if (!this.stdBillsFeatureSpread) {
  37. this.stdBillsFeatureSpread = SheetDataHelper.createNewSpread($('#stdBillsFeatures')[0]);
  38. sheetCommonObj.spreadDefaultStyle(this.stdBillsFeatureSpread);
  39. }
  40. },
  41. refreshBillsRelaSpread: function () {
  42. if (this.stdBillsJobSpread) {
  43. this.stdBillsJobSpread.refresh();
  44. }
  45. if (this.stdBillsFeatureSpread) {
  46. this.stdBillsFeatureSpread.refresh();
  47. }
  48. },
  49. clearHighLight: function (spread) {
  50. if (spread) {
  51. let sheet = spread.getActiveSheet();
  52. sheet.suspendPaint();
  53. let orgColor = optionsOprObj.getOption('COLOROPTS', 'DEFAULT').backColor;
  54. sheet.getRange(0, -1, sheet.getRowCount(), -1, GC.Spread.Sheets.SheetArea.viewport).backColor(orgColor);
  55. sheet.resumePaint();
  56. }
  57. },
  58. setTagForHint: function (nodes) {
  59. let sheet = this.stdBillsSpread.getActiveSheet();
  60. sheet.suspendPaint();
  61. sheet.suspendEvent();
  62. for(let node of nodes){
  63. sheet.setTag(node.serialNo(), 2, node.data.ruleText ? node.data.ruleText : '');
  64. }
  65. sheet.resumePaint();
  66. sheet.resumeEvent();
  67. },
  68. loadStdBillsLib: function () {
  69. let i, select = $('#stdBillsLibSelect');
  70. select.empty();
  71. let bills_lib = projectInfoObj.projectInfo.engineeringInfo.bill_lib;
  72. let selectedBillsLib = sessionStorage.getItem('stdBillsLib');
  73. bills_lib.forEach(function (data) {
  74. var option = $('<option>').val(data.id).text(data.name);
  75. if(selectedBillsLib && data.id == selectedBillsLib){
  76. option.attr('selected', 'selected');
  77. }
  78. select.append(option);
  79. });
  80. if (select.children.length !== 0) {
  81. billsLibObj.loadStdBills(select.val());
  82. }
  83. },
  84. sortJobsAndFeatures: function (arr) {
  85. arr.sort(function (a, b) {
  86. let rst = 0;
  87. if(a.serialNo > b.serialNo) rst = 1;
  88. else if(a.serialNo < b.serialNo) rst = -1;
  89. return rst;
  90. });
  91. },
  92. findData: function (value, field, Array) {
  93. var i = 0;
  94. for (i = 0; i < Array.length; i++) {
  95. if (value[field] == Array[i][field]) {
  96. return Array[i];
  97. }
  98. }
  99. return null;
  100. },
  101. getBillsJobs: function (stdBillsJobData, node) {
  102. var jobs = [], i, jobData = null;
  103. if (stdBillsJobData && node && node.data.jobs) {
  104. for (i = 0; i < node.data.jobs.length; i++) {
  105. jobData = this.findData(node.data.jobs[i], 'id', stdBillsJobData);
  106. if (jobData) {
  107. jobData.serialNo = node.data.jobs[i].serialNo;
  108. jobs.push(jobData);
  109. }
  110. }
  111. }
  112. this.sortJobsAndFeatures(jobs);
  113. return jobs;
  114. },
  115. getBillsFeatures: function (stdBillsFeatureData, node) {
  116. var features = [], i, featureData = null;
  117. if (stdBillsFeatureData && node && node.data.items) {
  118. for (i = 0; i < node.data.items.length; i++) {
  119. featureData = this.findData(node.data.items[i], 'id', stdBillsFeatureData);
  120. if (featureData) {
  121. featureData.serialNo = node.data.items[i].serialNo;
  122. features.push(featureData);
  123. }
  124. }
  125. }
  126. this.sortJobsAndFeatures(features);
  127. return features;
  128. },
  129. insertBills: function (stdBillsJobData, stdBillsFeatureData, node) {
  130. if(projectInfoObj.projectInfo.property.lockBills == true && projectObj.project.withinBillsLocked(projectObj.project.mainTree.selected)){
  131. return false;
  132. }
  133. $.bootstrapLoading.start();
  134. //设置清单备注
  135. if(node.parent && node.parent.data.recharge){
  136. node.data.comments = node.parent.data.recharge;
  137. }
  138. if (/\//.test(node.data.unit)) {
  139. let existB = projectObj.project.Bills.sameStdCodeBillsData(node.data.code);
  140. if (existB) {
  141. let std = JSON.parse(JSON.stringify(node.data));
  142. std.unit = existB.unit;
  143. let canAdd = ProjectController.addBills(projectObj.project, projectObj.mainController, std);
  144. if(canAdd === false && $.bootstrapLoading.isLoading()){
  145. $.bootstrapLoading.end();
  146. }
  147. } else {
  148. ConfirmModal.stdBillsUnit.check(node.data, function (std) {
  149. let canAdd = ProjectController.addBills(projectObj.project, projectObj.mainController, std);
  150. if(canAdd === false && $.bootstrapLoading.isLoading()){
  151. $.bootstrapLoading.end();
  152. }
  153. }, function () {
  154. if($.bootstrapLoading.isLoading()){
  155. $.bootstrapLoading.end();
  156. }
  157. });
  158. }
  159. } else {
  160. let canAdd = ProjectController.addBills(projectObj.project, projectObj.mainController, node.data);
  161. if(canAdd === false && $.bootstrapLoading.isLoading()){
  162. $.bootstrapLoading.end();
  163. }
  164. }
  165. return true;
  166. },
  167. showBillsRela: function (node) {
  168. if (node && node.children.length === 0) {
  169. billsLibObj.showJobsAndFeatures(node);
  170. } else {
  171. billsLibObj.showBillsRemark(node);
  172. }
  173. },
  174. showJobs:function (jobs) {
  175. SheetDataHelper.loadSheetHeader(billsLibObj.jobsSetting, billsLibObj.stdBillsJobSpread.getActiveSheet());
  176. SheetDataHelper.loadSheetData(billsLibObj.jobsSetting, billsLibObj.stdBillsJobSpread.getActiveSheet(), jobs);
  177. },
  178. showFeatures: function (features) {
  179. SheetDataHelper.loadSheetHeader(billsLibObj.featuresSetting, billsLibObj.stdBillsFeatureSpread.getActiveSheet());
  180. SheetDataHelper.loadSheetData(billsLibObj.featuresSetting, billsLibObj.stdBillsFeatureSpread.getActiveSheet(), features);
  181. },
  182. showJobsAndFeatures: function (node) {
  183. $('#stdBillsJobTab').show();
  184. $('#stdBillsRemarkTab').hide();
  185. billsLibObj.refreshBillsRelaSpread();
  186. billsLibObj.checkBillsRelaSpread();
  187. this.showJobs(billsLibObj.getBillsJobs(billsLibObj.stdBillsJobData, node));
  188. this.showFeatures(billsLibObj.getBillsFeatures(billsLibObj.stdBillsFeatureData, node));
  189. },
  190. showBillsRemark: function (node) {
  191. $('#stdBillsJobTab').hide();
  192. $('#stdBillsRemarkTab').show();
  193. $('#stdBillsRemark').text(node && node.data.recharge ? node.data.recharge : '');
  194. },
  195. loadStdBills: function (stdBillsLibID) {
  196. var that = this;
  197. var stdBills;
  198. if(that.stdBillsTree){
  199. that.stdBillsTree = null;
  200. }
  201. that.stdBillsTree = idTree.createNew({id: 'ID', pid: 'ParentID', nid: 'NextSiblingID', rootId: -1, autoUpdate: true});
  202. var stdBillsTreeController = TREE_SHEET_CONTROLLER.createNew(that.stdBillsTree, billsLibObj.stdBillsSpread.getActiveSheet(), billsLibObj.stdBillsTreeSetting);
  203. $.bootstrapLoading.start();
  204. CommonAjax.post('/stdBillsEditor/getJobContent', {userId: userID, billsLibId: stdBillsLibID}, function (datas) {
  205. that.stdBillsJobData = datas;
  206. }, function () {
  207. that.stdBillsJobData = [];
  208. });
  209. CommonAjax.post('/stdBillsEditor/getItemCharacter', {userId: userID, billsLibId: stdBillsLibID}, function (datas) {
  210. that.stdBillsFeatureData = datas;
  211. }, function () {
  212. that.stdBillsFeatureData = [];
  213. });
  214. CommonAjax.post('/stdBillsEditor/getBills', {userId: userID, billsLibId: stdBillsLibID}, function (datas) {
  215. stdBills = datas;
  216. that.stdBillsTree.loadDatas(stdBills);
  217. //读取展开收起状态
  218. let currentExpState = sessionStorage.getItem('stdBillsLibExpState');
  219. if(currentExpState){
  220. that.stdBillsTree.setExpandedByState(that.stdBillsTree.items, currentExpState);
  221. }
  222. //非叶子节点默认收起
  223. else{
  224. that.stdBillsTree.setRootExpanded(that.stdBillsTree.roots, false);
  225. }
  226. stdBillsTreeController.showTreeData();
  227. //billsLibObj.setTagForHint(that.stdBillsTree.items);
  228. that.showBillsRela(that.stdBillsTree.firstNode());
  229. stdBillsTreeController.bind(TREE_SHEET_CONTROLLER.eventName.treeSelectedChanged, that.showBillsRela);
  230. that.stdBillsSpread.unbind(GC.Spread.Sheets.Events.CellDoubleClick);
  231. that.stdBillsSpread.bind(GC.Spread.Sheets.Events.CellDoubleClick, function (sender, args) {
  232. let selectNode = that.stdBillsTree.items[args.row];
  233. let name = selectNode.data.name;
  234. if (that.stdBillsTree.items[args.row].children.length === 0) {
  235. billsLibObj.insertBills(that.stdBillsJobData, that.stdBillsFeatureData, selectNode);
  236. }
  237. else{
  238. let me = billsLibObj;
  239. let node = that.stdBillsTree.items[args.row];
  240. if (!node || node.children.length === 0)
  241. return;
  242. node.setExpanded(!node.expanded);
  243. //设置展开收起状态
  244. sessionStorage.setItem('stdBillsLibExpState', that.stdBillsTree.getExpState(that.stdBillsTree.items));
  245. TREE_SHEET_HELPER.massOperationSheet(args.sheet, function () {
  246. let iCount = node.posterityCount(), i, child;
  247. for (i = 0; i < iCount; i++) {
  248. child = that.stdBillsTree.items[args.row + i + 1];
  249. args.sheet.setRowVisible(args.row + i + 1, child.visible, args.sheetArea);
  250. }
  251. args.sheet.invalidateLayout();
  252. });
  253. args.sheet.repaint();
  254. }
  255. });
  256. if(that.doAfterLoadBills){
  257. that.doAfterLoadBills();
  258. }
  259. $.bootstrapLoading.end();
  260. }, function () {
  261. that.stdBillsSpread.unbind(GC.Spread.Sheets.Events.CellDoubleClick);
  262. $.bootstrapLoading.end();
  263. });
  264. $('#stdBillsSearch>div>button').click(function () {
  265. billsLibObj.clearHighLight(billsLibObj.stdBillsSpread);
  266. var keyword = $('#stdBillsSearch>input').val();
  267. if (!keyword || keyword === '') {
  268. $('#stdBillsSearchResult').hide();
  269. return;
  270. }
  271. var result = that.stdBillsTree.items.filter(function (item) {
  272. var codeIs = item.data.code ? item.data.code.indexOf(keyword) !== -1 : false;
  273. var nameIs = item.data.name ? item.data.name.indexOf(keyword) !== -1 : false;
  274. return codeIs || nameIs;
  275. });
  276. result.sort(function (x, y) {
  277. return x.serialNo() - y.serialNo();
  278. });
  279. if (result.length !== 0) {
  280. //展开搜索出来的节点
  281. billsLibObj.expandSearchNodes(result);
  282. //设置记住展开
  283. sessionStorage.setItem('stdBillsLibExpState', that.stdBillsTree.getExpState(that.stdBillsTree.items));
  284. TREE_SHEET_HELPER.massOperationSheet(billsLibObj.stdBillsSpread.getActiveSheet(), function () {
  285. var sel = billsLibObj.stdBillsSpread.getActiveSheet().getSelections();
  286. stdBillsTreeController.setTreeSelected(result[0]);
  287. billsLibObj.stdBillsSpread.getActiveSheet().setSelection(result[0].serialNo(), sel[0].col, 1, 1);
  288. for (let node of result) {
  289. billsLibObj.stdBillsSpread.getActiveSheet().getRange(node.serialNo(), -1, 1, -1).backColor('lemonChiffon');
  290. }
  291. });
  292. billsLibObj.stdBillsSpread.getActiveSheet().showRow(result[0].serialNo(), GC.Spread.Sheets.VerticalPosition.bottom);
  293. $('#nextStdBills').show();
  294. $('#nextStdBills').unbind('click');
  295. $('#nextStdBills').bind('click', function () {
  296. var cur = that.stdBillsTree.selected, resultIndex = result.indexOf(cur), sel = billsLibObj.stdBillsSpread.getActiveSheet().getSelections();
  297. if (resultIndex === result.length - 1) {
  298. stdBillsTreeController.setTreeSelected(result[0]);
  299. billsLibObj.stdBillsSpread.getActiveSheet().setSelection(result[0].serialNo(), sel[0].col, 1, 1);
  300. billsLibObj.stdBillsSpread.getActiveSheet().showRow(result[0].serialNo(), GC.Spread.Sheets.VerticalPosition.top);
  301. } else {
  302. stdBillsTreeController.setTreeSelected(result[resultIndex + 1]);
  303. billsLibObj.stdBillsSpread.getActiveSheet().setSelection(result[resultIndex + 1].serialNo(), sel[0].col, 1, 1);
  304. billsLibObj.stdBillsSpread.getActiveSheet().showRow(result[resultIndex + 1].serialNo(), GC.Spread.Sheets.VerticalPosition.bottom);
  305. }
  306. });
  307. } else {
  308. billsLibObj.clearHighLight(billsLibObj.stdBillsSpread);
  309. $('#nextStdBills').hide();
  310. }
  311. $('#stdBillsSearchResultCount').text('搜索结果:' + result.length);
  312. $('#stdBillsSearchResult').show();
  313. });
  314. },
  315. expandSearchNodes: function(nodes){
  316. let that = this;
  317. TREE_SHEET_HELPER.massOperationSheet(billsLibObj.stdBillsSpread.getActiveSheet(), function () {
  318. function expParentNode(node){
  319. if(node.parent){
  320. expParentNode(node.parent);
  321. if(!node.parent.expanded){
  322. node.parent.setExpanded(true);
  323. }
  324. }
  325. }
  326. for(let node of nodes){
  327. expParentNode(node);
  328. }
  329. TREE_SHEET_HELPER.refreshTreeNodeData(that.stdBillsTreeSetting, that.stdBillsSpread.getActiveSheet(), that.stdBillsTree.roots, true);
  330. TREE_SHEET_HELPER.refreshNodesVisible(that.stdBillsTree.roots, that.stdBillsSpread.getActiveSheet(), true);
  331. });
  332. },
  333. locateAtBills: function (code) {
  334. let nineCode = code.substring(0, 9);
  335. let items = this.stdBillsTree.items;
  336. let locateBills = _.find(items, function(item){
  337. return item.data.code === nineCode;
  338. });
  339. if(locateBills){
  340. this.expandSearchNodes([locateBills]);
  341. sessionStorage.setItem('stdBillsLibExpState', this.stdBillsTree.getExpState(this.stdBillsTree.items));
  342. }
  343. let stdBillsSheet = this.stdBillsSpread.getActiveSheet();
  344. let locateRow = locateBills ? locateBills.serialNo() : 0;
  345. stdBillsSheet.setActiveCell(locateRow, 0);
  346. this.showBillsRela(locateBills);
  347. stdBillsSheet.showRow(locateRow, GC.Spread.Sheets.VerticalPosition.center);
  348. },
  349. stdBillsTreeSetting: {
  350. "emptyRowHeader": true,
  351. "rowHeaderWidth": 15,
  352. "treeCol": 0,
  353. "emptyRows":0,
  354. "headRows":1,
  355. "headRowHeight":[
  356. 40
  357. ],
  358. "defaultRowHeight": 21,
  359. "cols":[{
  360. "width":140,
  361. "readOnly": true,
  362. "head":{
  363. "titleNames":["项目编码"],
  364. "spanCols":[1],
  365. "spanRows":[1],
  366. "vAlign":[1],
  367. "hAlign":[1],
  368. "font":["Arial"]
  369. },
  370. "data":{
  371. "field":"code",
  372. "vAlign":1,
  373. "hAlign":0,
  374. "font":"Arial"
  375. }
  376. }, {
  377. "width":190,
  378. "readOnly": true,
  379. "head":{
  380. "titleNames":["项目名称"],
  381. "spanCols":[1],
  382. "spanRows":[1],
  383. "vAlign":[1],
  384. "hAlign":[1],
  385. "font":["Arial"]
  386. },
  387. "data":{
  388. "field":"name",
  389. "vAlign":1,
  390. "hAlign":0,
  391. "font":"Arial"
  392. }
  393. }, {
  394. "width":45,
  395. "readOnly": true,
  396. "showHint": true,
  397. "head":{
  398. "titleNames":["计量单位"],
  399. "spanCols":[1],
  400. "spanRows":[1],
  401. "vAlign":[1],
  402. "hAlign":[1],
  403. "font":["Arial"],
  404. "wordWrap": true
  405. },
  406. "data":{
  407. "field":"unit",
  408. "vAlign":1,
  409. "hAlign":1,
  410. "font":"Arial"
  411. }
  412. }/*, {
  413. "width":100,
  414. "readOnly": true,
  415. "showHint": true,
  416. "head":{
  417. "titleNames":["工程量计算规则"],
  418. "spanCols":[1],
  419. "spanRows":[1],
  420. "vAlign":[1],
  421. "hAlign":[1],
  422. "font":["Arial"]
  423. },
  424. "data":{
  425. "field":"ruleText",
  426. "vAlign":1,
  427. "hAlign":0,
  428. "font":"Arial"
  429. }
  430. }*/]
  431. },
  432. jobsSetting: {
  433. "emptyRows":0,
  434. "headRows":1,
  435. "rowHeaderWidth": 15,
  436. "headRowHeight":[25],
  437. "defaultRowHeight": 21,
  438. "cols":[{
  439. "width":160,
  440. "readOnly":true,
  441. "head":{
  442. "titleNames":["工作内容"],
  443. "spanCols":[1],
  444. "spanRows":[1],
  445. "vAlign":[1],
  446. "hAlign":[1],
  447. "font":["Arial"]
  448. },
  449. "data":{
  450. "field":"content",
  451. "vAlign":0,
  452. "hAlign":3,
  453. "font":"Arial"
  454. }
  455. }]
  456. },
  457. featuresSetting: {
  458. "emptyRows":0,
  459. "headRows":1,
  460. "rowHeaderWidth": 15,
  461. "headRowHeight":[25],
  462. "defaultRowHeight": 21,
  463. "cols":[{
  464. "width":160,
  465. "readOnly":true,
  466. "head":{
  467. "titleNames":["项目特征"],
  468. "spanCols":[1],
  469. "spanRows":[1],
  470. "vAlign":[1],
  471. "hAlign":[1],
  472. "font":["Arial"]
  473. },
  474. "data":{
  475. "field":"content",
  476. "vAlign":0,
  477. "hAlign":3,
  478. "font":"Arial"
  479. }
  480. }]
  481. }
  482. };
  483. function addEventOnResize(fn){
  484. let originFn = window.onresize;
  485. window.onresize =function () {
  486. originFn && originFn();
  487. fn();
  488. }
  489. }
  490. addEventOnResize(billsLibObj.refreshSettingForHint);
  491. //赋初始高度
  492. if($('#stdBillsSpread').height() === 0 || $('#qd').find('.bottom-content').height() === 0){
  493. $('#stdBillsSpread').height($(window).height()-$(".header").height()-$(".toolsbar").height()-$(".tools-bar-height-q").height()-312);
  494. $('#qd').find('.bottom-content').find('.p-0').height(270);
  495. }
  496. $('#stdBillsTab').bind('click', function () {
  497. if(!projectReadOnly){
  498. refreshSubSpread();//subSpread、jobSpread、itemSpread显示问题
  499. var select = $('#stdBillsLibSelect');
  500. billsLibObj.refreshBillsSpread();
  501. billsLibObj.refreshBillsRelaSpread();
  502. billsLibObj.checkBillsSpread();
  503. if (select[0].options.length === 0) {
  504. billsLibObj.loadStdBillsLib();
  505. };
  506. }
  507. });
  508. $('#stdBillsLibSelect').change(function () {
  509. $('#stdBillsSearchResult').hide();
  510. //$(".main-data-side-q").height($(window).height() - $(".header").height() - $(".toolsbar").height() - $(".tools-bar-height-q").height() - 202);
  511. billsLibObj.clearHighLight(billsLibObj.stdBillsSpread);
  512. var select = $(this);
  513. if (this.children.length !== 0) {
  514. //设置sessionStorage
  515. let billsLibId = select.val();
  516. sessionStorage.setItem('stdBillsLib', billsLibId);
  517. //清除展开收起状态sessionStorage
  518. sessionStorage.removeItem('stdBillsLibExpState');
  519. billsLibObj.loadStdBills(billsLibId);
  520. }
  521. });
  522. //搜索框回车
  523. $('#stdBillsSearch>input').bind('keypress', function (event) {
  524. if(event.keyCode === 13){
  525. $(this).blur();
  526. $('#stdBillsSearch>div>button').click();
  527. }
  528. });
  529. // 关闭搜索结果
  530. $('#closeSearchStdBills').click(function () {
  531. $('#stdBillsSearchResult').hide();
  532. $(".main-data-side-q").height($(window).height() - $(".header").height() - $(".toolsbar").height() - $(".tools-bar-height-q").height() - 202);
  533. billsLibObj.clearHighLight(billsLibObj.stdBillsSpread);
  534. billsLibObj.refreshBillsSpread();
  535. billsLibObj.refreshBillsRelaSpread();
  536. });