item_increase_fee_view.js 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497
  1. /**
  2. * Created by zhang on 2020/1/17.
  3. */
  4. let itemBaseOptions = ["人工费","材料费","机械费","人工费+材料费","人工费+机械费","人工费+材料费","材料费+机械费","人工费+材料费+机械费"];
  5. let itemIncreaseFeeObj = {
  6. settingSpread:null,
  7. itemSetting:{
  8. header:[
  9. {headerName: "名称", headerWidth: 270, dataCode: "name", dataType: "String"},
  10. {headerName: "范围", headerWidth: 70, dataCode: "displayScope",hAlign: "center",dataType: "String",cellType:'cusButton',callback:'selectScope'},
  11. {headerName: "取费基数", headerWidth: 150, dataCode: "base", hAlign: "center", dataType: "String",cellType:'comboBox',options:itemBaseOptions},
  12. {headerName: "系数(%)", headerWidth: 55, dataCode: "coe", hAlign: "center", dataType: "Number",validator:"number"}
  13. ],
  14. view: {
  15. lockColumns: ["name","displayScope"],
  16. rowHeaderWidth:25,
  17. colHeaderHeight:36
  18. },
  19. autoFit:true,
  20. fitRow:['name'],
  21. callback:{
  22. selectScope:function (hitinfo) {
  23. $("#item_increase_scope").modal('show');
  24. }
  25. }
  26. },
  27. settingDatas:[],
  28. scopeSpread:null,
  29. scopeSetting:{
  30. header:[
  31. {headerName: "编码", headerWidth: 250, dataCode: "code", dataType: "String"},
  32. {headerName: "类别", headerWidth: 100, dataCode: "type",hAlign: "center",dataType: "String"},
  33. {headerName: "名称", headerWidth: 300, dataCode: "name", dataType: "String"},
  34. {headerName: "计取", headerWidth: 100, dataCode: "selected", hAlign: "center", dataType: "String",cellType:'checkBox'}
  35. ],
  36. view: {
  37. lockColumns: ["name","code","type","selected"],
  38. rowHeaderWidth:25,
  39. colHeaderHeight:36
  40. }
  41. },
  42. scopeDatas:[],
  43. initSpread:function () {
  44. if(this.settingSpread) return this.settingSpread.refresh();
  45. this.settingSpread = SheetDataHelper.createNewSpread($("#itemIncreaseFee_sheet")[0]);
  46. sheetCommonObj.spreadDefaultStyle(this.settingSpread);
  47. this.settingSheet = this.settingSpread.getSheet(0);
  48. sheetCommonObj.initSheet(this.settingSheet, this.itemSetting, 4);
  49. this.settingSheet.bind(GC.Spread.Sheets.Events.SelectionChanged,this.onItemSelectionChange);
  50. this.settingSheet.bind(GC.Spread.Sheets.Events.ValueChanged, this.onItemValueChange);
  51. this.settingSheet.name('itemIncreaseFee_sheet');
  52. if(projectReadOnly){
  53. disableSpread(this.settingSpread);
  54. }
  55. },
  56. initScopeSpread:function () {
  57. if(this.scopeSpread) return this.scopeSpread.refresh();
  58. this.scopeSpread = SheetDataHelper.createNewSpread($("#scopeSheet")[0]);
  59. sheetCommonObj.spreadDefaultStyle(this.scopeSpread);
  60. this.scopeSheet = this.scopeSpread.getSheet(0);
  61. sheetCommonObj.initSheet(this.scopeSheet, this.scopeSetting, 0);
  62. this.scopeSpread.bind(GC.Spread.Sheets.Events.ButtonClicked, this.onScopeCheckBoxClick);
  63. this.scopeSheet.name('scopeSheet');
  64. if(projectReadOnly){
  65. disableSpread(this.scopeSpread);
  66. }
  67. },
  68. getSelectedItem:function () {
  69. let selectedItem = null;
  70. let sel = this.settingSheet.getSelections()[0];
  71. if(sel.row != -1 && this.settingDatas.length>sel.row){
  72. selectedItem = this.settingDatas[sel.row];
  73. }
  74. return selectedItem;
  75. },
  76. showScopeDatas:function () {
  77. let controller = projectObj.mainController, project = projectObj.project;
  78. let allNodes=[];
  79. this.scopeDatas=[];
  80. let selectedItem = this.getSelectedItem();
  81. let fbfcNode = project.Bills.getFBFXNode(controller).source;//分部分项节点
  82. if(fbfcNode){
  83. allNodes.push(fbfcNode);
  84. controller.tree.getAllSubNode(project.Bills.getFBFXNode(controller).source,allNodes);
  85. }
  86. let meaNode = project.Bills.getMeasureNode(controller).source;//措施项目节点
  87. if(meaNode){
  88. allNodes.push(meaNode);
  89. controller.tree.getAllSubNode(project.Bills.getMeasureNode(controller).source,allNodes);
  90. }
  91. for(let row=0;row<allNodes.length;row++){
  92. let node = allNodes[row];
  93. let tem = {
  94. ID:node.data.ID,
  95. ParentID:node.data.ParentID,
  96. code:node.data.code,
  97. name:node.data.name,
  98. type:billText[node.data.type],
  99. selected:0,
  100. collapsed:false,
  101. row:row
  102. };
  103. if(selectedItem && selectedItem.scope&&selectedItem.scope[tem.ID]) tem.selected = 1;
  104. if(node.data.calcBase&&node.data.calcBase!="") delete tem.selected;//有基数计算的不可选
  105. this.scopeDatas.push(tem);
  106. }
  107. this.scopeSheet.setRowCount(this.scopeDatas.length);
  108. sheetCommonObj.showTreeData(this.scopeSheet, this.scopeSetting,this.scopeDatas);
  109. },
  110. onScopeCheckBoxClick:function (sender,args) {
  111. let me = itemIncreaseFeeObj;
  112. let checkboxValue = args.sheet.getCell(args.row, args.col).value();
  113. let newval = 0;
  114. checkboxValue?newval=0:newval=1;
  115. let record = me.scopeDatas[args.row];
  116. let dataMap= _.groupBy(me.scopeDatas,"ParentID");
  117. args.sheet.suspendPaint();
  118. args.sheet.suspendEvent();
  119. cascadeSelected(record,newval);
  120. args.sheet.resumeEvent();
  121. args.sheet.resumePaint();
  122. function cascadeSelected(parent,val) {
  123. if(gljUtil.isDef(parent.selected)){
  124. args.sheet.getCell(parent.row, args.col).value(val);
  125. parent.selected = val;
  126. if(dataMap[parent.ID]){
  127. for(let c of dataMap[parent.ID]){
  128. cascadeSelected(c,val);
  129. }
  130. }
  131. }
  132. }
  133. },
  134. onItemSelectionChange:function (sender,args) {
  135. args.sheet.repaint();
  136. },
  137. showDatas:function(datas){
  138. let sel = this.settingSheet.getSelections()[0];
  139. let oldData = sel.row<this.settingDatas.length?this.settingDatas[sel.row]:"";
  140. this.settingSheet.setRowCount(0);
  141. this.settingDatas = datas?datas:this.getItemSettingDatas();
  142. this.setItemForeStyle(this.settingDatas);
  143. sheetCommonObj.showData(this.settingSheet, this.itemSetting,this.settingDatas);
  144. this.settingSheet.setRowCount(this.settingDatas.length);
  145. sel.row = oldData?_.findIndex(this.settingDatas,{'name':oldData.name}):sel.row ;
  146. this.settingSheet.setSelection(sel.row==-1?0:sel.row,sel.col,sel.rowCount,sel.colCount);
  147. },
  148. setItemForeStyle:function (datas) {
  149. for(let d of datas){
  150. if(_.isEmpty(d.scope)){
  151. d.foreColor = "#ff2a23";
  152. d.styleCol = 1;
  153. }else {
  154. delete d.foreColor;
  155. delete d.styleCol;
  156. }
  157. }
  158. },
  159. getItemSettingDatas:function () {
  160. let datas = [];
  161. if(projectObj.project.property.itemIncreaseSetting){
  162. for(let i of projectObj.project.property.itemIncreaseSetting.setting){
  163. let d = {name:i.name,displayScope:"范围",scope:i.scope,base:i.base,coe:i.coe};
  164. datas.push(d);
  165. }
  166. }
  167. return datas;
  168. },
  169. isItemIncrease: function (node) {
  170. return node
  171. && node.sourceType === ModuleNames.ration
  172. && node.data.type === rationType.itemIncrease;
  173. },
  174. onItemValueChange:function (sender,args) {
  175. let me = itemIncreaseFeeObj;
  176. let dataCode = me.itemSetting.header[args.col].dataCode;
  177. let value = args.newValue;
  178. let tem = me.settingDatas[args.row];
  179. if (value&&!sheetCommonObj.checkData(args.col,me.itemSetting,value)) {
  180. alert('输入的数据类型不对,请重新输入!');
  181. return me.showDatas(me.settingDatas);
  182. }
  183. if(dataCode == 'coe') {
  184. if (value) value = scMathUtil.roundForObj(value, 2);
  185. }
  186. tem[dataCode] = value;
  187. me.showDatas(me.settingDatas);
  188. me.itemChange = true;
  189. },
  190. confirmScope:function(){
  191. let selectedItem = this.getSelectedItem();
  192. let scope = {};
  193. for(let n of this.scopeDatas){
  194. if(n.selected == 1) scope[n.ID] = true;
  195. }
  196. if(JSON.stringify(scope) != JSON.stringify(selectedItem.scope)) this.itemChange = true;//有改变的情况下才更新
  197. selectedItem.scope=scope;
  198. this.showDatas(this.settingDatas);
  199. },
  200. confirmItemIncreaseSetting:async function () {
  201. if(this.itemChange == true || projectObj.project.property.itemIncreaseSetting.isCalc == false){
  202. let datas = [];
  203. let itemIncreaseSetting = {
  204. isCalc : true,
  205. setting :[]
  206. };
  207. for(let d of this.settingDatas){
  208. itemIncreaseSetting.setting.push({name:d.name,scope:d.scope,base:d.base,coe:d.coe});
  209. }
  210. let tem ={
  211. type:'project',
  212. data:{ID:projectObj.project.ID(),"property.itemIncreaseSetting":itemIncreaseSetting}
  213. };
  214. datas.push(tem);
  215. let changeNodes = this.calcAllItemIncreaseFee(itemIncreaseSetting,datas);
  216. console.log(datas);
  217. let selectedNode = projectObj.project.mainTree.selected;
  218. //刷新缓存和树节点的插入删除
  219. let nodes = await projectObj.project.syncUpdateNodesAndRefresh(datas);
  220. //重新计算
  221. cbTools.refreshFormulaNodes();
  222. projectObj.project.calcProgram.calcNodesAndSave(changeNodes.concat(nodes));
  223. projectObj.mainController.setTreeSelection(selectedNode);
  224. }
  225. },
  226. calcItemIncreaseFeeByNodes:async function (nodes) {
  227. let itemIncreaseSetting = projectObj.project.property.itemIncreaseSetting;
  228. let datas = [];
  229. let refreshNodes=[];
  230. let rationGLJMap ={};
  231. let uniqMap={};
  232. if(!itemIncreaseSetting) return;
  233. if(itemIncreaseSetting.isCalc == false) return;
  234. for (n of nodes){
  235. if(n.sourceType == ModuleNames.ration) n = n.parent;
  236. if(uniqMap[n.data.ID]) continue;//去重复
  237. let newRefreshNodes = this.calcItemIncreasePerNode(n,itemIncreaseSetting,rationGLJMap,datas);
  238. if(newRefreshNodes.length > 0) refreshNodes = refreshNodes.concat(newRefreshNodes);
  239. uniqMap[n.data.ID] = true;
  240. }
  241. if(datas.length >0 || refreshNodes.length > 0){
  242. let nodes = await projectObj.project.syncUpdateNodesAndRefresh(datas);
  243. //重新计算
  244. cbTools.refreshFormulaNodes();
  245. projectObj.project.calcProgram.calcNodesAndSave(refreshNodes.concat(nodes));
  246. }
  247. },
  248. cancelItemIncreaseFee:async function () {
  249. let itemIncreaseSetting = projectObj.project.property.itemIncreaseSetting;
  250. let datas = [];
  251. let refreshNodes = [];
  252. if(itemIncreaseSetting && itemIncreaseSetting.isCalc == true){
  253. itemIncreaseSetting.isCalc = false;
  254. let billNodeMap = {};
  255. let tem ={
  256. type:'project',
  257. data:{ID:projectObj.project.ID(),"property.itemIncreaseSetting":itemIncreaseSetting}
  258. };
  259. datas.push(tem);
  260. for(let s of itemIncreaseSetting.setting){
  261. if(!_.isEmpty(s.scope)){
  262. for (let ID in s.scope){
  263. billNodeMap[ID] = true;//为了去重复
  264. }
  265. }
  266. }
  267. for(let cancelID in billNodeMap){
  268. let tnode = projectObj.project.mainTree.getNodeByID(cancelID);
  269. if(tnode){
  270. let cNode = this.cancelBillNode(tnode,datas);
  271. if(cNode) refreshNodes.push(cNode);
  272. }
  273. }
  274. let selectedNode = projectObj.project.mainTree.selected;
  275. //刷新缓存和树节点的插入删除
  276. await projectObj.project.syncUpdateNodesAndRefresh(datas);
  277. if(refreshNodes.length > 0){
  278. //重新计算
  279. cbTools.refreshFormulaNodes();
  280. projectObj.project.calcProgram.calcNodesAndSave(refreshNodes);
  281. projectObj.mainController.setTreeSelection(selectedNode);
  282. }
  283. }
  284. },
  285. getAllBillsIDMap:function () {
  286. let map = {};
  287. let itemIncreaseSetting = projectObj.project.property.itemIncreaseSetting;
  288. if(itemIncreaseSetting.isCalc == true){
  289. for(let s of itemIncreaseSetting.setting){
  290. if(!_.isEmpty(s.scope)){
  291. for (let ID in s.scope){
  292. map[ID] = true;
  293. }
  294. }
  295. }
  296. }
  297. return map;
  298. },
  299. calcAllItemIncreaseFee : function(setting,datas){
  300. let refreshNodes = [];
  301. let itemIncreaseSetting = setting?setting:projectObj.project.property.itemIncreaseSetting;
  302. let billNodeMap = {},rationGLJMap={};
  303. let cancelBillsIDMap = this.getAllBillsIDMap();
  304. if(itemIncreaseSetting && itemIncreaseSetting.isCalc == true){
  305. //为了不用循环所有节点,先挑出所有受影响的节点
  306. for(let s of itemIncreaseSetting.setting){
  307. if(!_.isEmpty(s.scope)){
  308. for (let ID in s.scope){
  309. billNodeMap[ID] = true;//为了去重复
  310. delete cancelBillsIDMap[ID];
  311. }
  312. }
  313. }
  314. for(let billsID in billNodeMap){
  315. let node = projectObj.project.mainTree.getNodeByID(billsID);
  316. let newRefreshNodes = this.calcItemIncreasePerNode(node,itemIncreaseSetting,rationGLJMap,datas);
  317. if(newRefreshNodes.length > 0) refreshNodes = refreshNodes.concat(newRefreshNodes);
  318. }
  319. //删除取消范围的清单下的子目定额
  320. for(let cancelID in cancelBillsIDMap){
  321. let tnode = projectObj.project.mainTree.getNodeByID(cancelID);
  322. let cNode = this.cancelBillNode(tnode,datas);
  323. if(cNode) refreshNodes.push(cNode);
  324. }
  325. }
  326. return refreshNodes;
  327. },
  328. cancelBillNode:function (node,datas) {
  329. if (node.children.length <= 0) return null;//如果没子项,不用计算
  330. if (node.source.children.length > 0) return null;//如果不是清单叶子节点,不用计算
  331. let isDelete = false;
  332. for(let rationNode of node.children){
  333. if(rationNode.data.code.indexOf("ZMZJF")!= -1){
  334. datas.push({type:ModuleNames.ration,data:{ID:rationNode.data.ID},action:"delete"});
  335. isDelete = true;
  336. }
  337. }
  338. return isDelete == true?node:null;
  339. },
  340. calcItemIncreasePerNode:function (node,setting,rationGLJMap,datas) {
  341. let itemIncreaseSetting = setting ? setting : projectObj.project.property.itemIncreaseSetting;
  342. let refreshNodes = [],rationCodeMap={},FeeMap={},updateDataIDMap={};
  343. if (node.children.length <= 0) return [];//如果没子项,不用计算
  344. if (node.source.children.length > 0) return [];//如果不是清单叶子节点,不用计算
  345. let labourTotal = 0,materialTotal=0,machineTotal=0;
  346. let process = getDecimal("process");
  347. let td = getDecimal("ration.totalPrice");
  348. let gd = getDecimal('glj.quantity');
  349. let preID="",serialNo=1;
  350. for(let rationNode of node.children){
  351. rationCodeMap[rationNode.data.code] = rationNode;
  352. if(rationNode.data.type == rationType.ration || rationNode.data.type == rationType.volumePrice ){//先只汇总定额和量价类型,不考虑自动生成的
  353. //计算人工费,材料费,机械费
  354. if(rationNode.data.feesIndex){
  355. let labour = rationNode.data.feesIndex.labour && rationNode.data.feesIndex.labour.totalFee?parseFloat(rationNode.data.feesIndex.labour.totalFee):0;
  356. let material = rationNode.data.feesIndex.material && rationNode.data.feesIndex.material.totalFee?parseFloat(rationNode.data.feesIndex.material.totalFee):0;
  357. let machine = rationNode.data.feesIndex.machine && rationNode.data.feesIndex.machine.totalFee?parseFloat(rationNode.data.feesIndex.machine.totalFee):0;
  358. labourTotal = scMathUtil.roundForObj(labourTotal + labour,getDecimal("process"));
  359. materialTotal = scMathUtil.roundForObj(materialTotal + material,getDecimal("process"));
  360. machineTotal = scMathUtil.roundForObj(machineTotal + machine,getDecimal("process"));
  361. }
  362. }
  363. if(rationNode.data.type != rationType.itemIncrease ){//计录除了子目增加节点外最后的节点ID,和nexeID
  364. preID = rationNode.data.ID;
  365. serialNo = rationNode.data.serialNo;
  366. }
  367. }
  368. FeeMap['人工费'] = labourTotal;
  369. FeeMap['材料费'] = materialTotal;
  370. FeeMap['机械费'] = machineTotal;
  371. //ZMZJF_1
  372. let s_in = 0;//序列号增长
  373. for(let i = 0; i < itemIncreaseSetting.setting.length;i++){
  374. let s = itemIncreaseSetting.setting[i];
  375. if(s.scope&&s.scope[node.data.ID]){
  376. let feeIndexArry = s.base.split("+");
  377. let total = 0;
  378. for(let index of feeIndexArry){
  379. total = scMathUtil.roundForObj(total + FeeMap[index],process);
  380. }
  381. total = scMathUtil.roundForObj(total,td);
  382. if(s.coe){
  383. let t = scMathUtil.roundForObj(total * s.coe/100,process);
  384. total = t;//scMathUtil.roundForObj(total + t,gd);
  385. }
  386. let seq = i+1;
  387. let code = "ZMZJF_"+seq;
  388. let ZMZJFnode = rationCodeMap[code];
  389. if(total > 0) {
  390. if(ZMZJFnode){//存在的话更新其它人工费消耗量
  391. this.updateItemNode(ZMZJFnode,total,rationGLJMap,datas);
  392. if(s_in>0){
  393. datas.push({type:ModuleNames.ration,data:{ID:ZMZJFnode.data.ID,serialNo:ZMZJFnode.data.serialNo +1}});
  394. } else {//如果s_in>0时,ZMZJFnode会因为有更新而刷新,不用push到refreshNodes里
  395. refreshNodes.push(ZMZJFnode);
  396. }
  397. preID = ZMZJFnode.data.ID;
  398. serialNo = ZMZJFnode.data.serialNo;
  399. }else {//不存在的话插入新的节点
  400. s_in = s_in +1;
  401. serialNo = serialNo+1;
  402. let newRationData = this.inserNewItemNodes(node.data.ID,node.data.quantity,preID,serialNo,code,s.name,total,datas);
  403. preID = newRationData.ID;
  404. }
  405. }else { //如果total小于0,但又存在的话,删除定额(同时后端处理时记得要删除定额工料机)
  406. if(ZMZJFnode){
  407. datas.push({type:ModuleNames.ration,data:{ID:ZMZJFnode.data.ID},action:"delete"});
  408. if(refreshNodes.length == 0) refreshNodes.push(node);//删除时,如果清单下没有定额更新,则刷新清单节点就行
  409. }
  410. }
  411. }
  412. }
  413. return refreshNodes;
  414. },
  415. updateItemNode:function (node,total,rationGLJMap,datas) {
  416. if(_.isEmpty(rationGLJMap)) this.setRationGLJMap(rationGLJMap);
  417. if(rationGLJMap[node.data.ID] && rationGLJMap[node.data.ID].quantity != total){
  418. datas.push({type:ModuleNames.ration_glj,data:{ID:rationGLJMap[node.data.ID].ID,quantity:total}})
  419. }
  420. },
  421. setRationGLJMap:function (rationGLJMap) {
  422. let gljList = projectObj.project.ration_glj.datas;
  423. for (let g of gljList){
  424. if(g.code == 'QTRGF') rationGLJMap[g.rationID] = g;
  425. }
  426. },
  427. inserNewItemNodes:function (billsItemID,billsQuantity,preID,serialNo,code,name,total,datas) {
  428. let Ration = projectObj.project.Ration;
  429. let newRationData = Ration.getTempRationData(Ration.getNewRationID(), billsItemID, serialNo, rationType.itemIncrease);
  430. newRationData.code = code;
  431. newRationData.name=name;
  432. newRationData.unit = '元';
  433. newRationData.quantity = "1";
  434. if(billsQuantity) newRationData.contain = scMathUtil.roundForObj(1/parseFloat(billsQuantity),getDecimal("process"))+"";
  435. newRationData.quantityEXP = '1';
  436. datas.push({type:ModuleNames.ration,data:newRationData,preSiblingID:preID,action:"add",parentID:billsItemID});
  437. let newRationGLJ = {
  438. rationID:newRationData.ID,
  439. billsItemID:billsItemID,
  440. shortName:projectObj.project.projectGLJ.getShortNameByID(gljType.LABOUR),
  441. GLJID:-1,
  442. projectID:newRationData.projectID,
  443. code:'QTRGF',
  444. original_code:'QTRGF',
  445. name:'其它人工费',
  446. specs:'',
  447. unit:'元',
  448. type:gljType.LABOUR,
  449. basePrice:1,
  450. marketPrice:1,
  451. adjCoe:null,
  452. from:'std',
  453. repositoryId:-1,
  454. quantity:total+"",
  455. rationItemQuantity:total+""
  456. };
  457. datas.push({type:ModuleNames.ration_glj,data:newRationGLJ,action:"add"});
  458. return newRationData;
  459. }
  460. };
  461. $(function () {
  462. $('#itemIncreaseFeeDiv').on('shown.bs.modal', function (e) {
  463. itemIncreaseFeeObj.itemChange = false;
  464. itemIncreaseFeeObj.initSpread();
  465. itemIncreaseFeeObj.showDatas();
  466. });
  467. $('#item_increase_scope').on('shown.bs.modal', function (e) {
  468. itemIncreaseFeeObj.initScopeSpread();
  469. itemIncreaseFeeObj.showScopeDatas();
  470. });
  471. $("#select_scope_confirm").click(function () {
  472. itemIncreaseFeeObj.confirmScope();
  473. })
  474. $("#itemIncreaseFeeConfirm").click(function () {
  475. itemIncreaseFeeObj.confirmItemIncreaseSetting();
  476. })
  477. });