projectChangeList.js 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /**
  2. * 项目变更-列表
  3. */
  4. shr.defineClass("shr.project.projectChangeList",shr.framework.List,{
  5. initalizeDOM : function() {
  6. shr.project.projectChangeList.superClass.initalizeDOM.call(this);
  7. var _self = this;
  8. },
  9. /**
  10. * 审核
  11. */
  12. auditAction : function(){
  13. var that = this;
  14. var billIds = $("#grid").jqGrid("getSelectedRows");
  15. if (billIds == undefined || billIds.length == 0 || (billIds && billIds.length == 1 && billIds[0] == "")) {
  16. shr.showWarning({
  17. message : "请先选中一行数据!",
  18. hideAfter : 5
  19. })
  20. return;
  21. } else {
  22. shr.showConfirm('确认审核项目?', function() {
  23. top.Messenger().hideAll();
  24. that.doRemoteWithBatchAction({
  25. method : "auditPorject",
  26. billId : billIds.toString()
  27. });
  28. });
  29. }
  30. },
  31. // /**
  32. // * 提交
  33. // */
  34. // submitAction : function(){
  35. // var that = this;
  36. // var billIds = $("#grid").jqGrid("getSelectedRows");
  37. // if (billIds == undefined || billIds.length == 0 || (billIds && billIds.length == 1 && billIds[0] == "")) {
  38. // shr.showWarning({
  39. // message : "请先选中一行数据!",
  40. // hideAfter : 5
  41. // })
  42. // return;
  43. // } else {
  44. // shr.showConfirm('确认提交项目?', function() {
  45. // top.Messenger().hideAll();
  46. // that.doRemoteWithBatchAction({
  47. // method : "submitAction",
  48. // billId : billIds.toString()
  49. // });
  50. // });
  51. // }
  52. // },
  53. });