rock_assetm_list.php 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <?php if(!defined('HOST'))die('not access');?>
  2. <script >
  3. $(document).ready(function(){
  4. var modenum='assetm';
  5. var a = $('#view_{rand}').bootstable({
  6. tablename:modenum,celleditor:true,autoLoad:false,modenum:modenum,fanye:true,
  7. checked:true,
  8. columns:[{
  9. text:'资产名称',dataIndex:'title',editor:false,align:'left'
  10. },{
  11. text:'编号',dataIndex:'num'
  12. },{
  13. text:'操作时间',dataIndex:'optdt'
  14. },{
  15. text:'状态',dataIndex:'state'
  16. },{
  17. text:'品牌',dataIndex:'brand'
  18. },{
  19. text:'所在位置',dataIndex:'address'
  20. },{
  21. text:'使用者',dataIndex:'usename'
  22. },{
  23. text:'',dataIndex:'caozuo'
  24. }],
  25. itemdblclick:function(d){
  26. openxiangs(d.title,modenum, d.id);
  27. }
  28. });
  29. var c = {
  30. del:function(){
  31. a.del();
  32. },
  33. daochu:function(o1){
  34. publicdaochuobj({
  35. 'objtable':a,
  36. 'modename':'固定资产',
  37. 'modenum':modenum,
  38. 'btnobj':o1
  39. });
  40. },
  41. adds:function(){
  42. openinput('固定资产',modenum);
  43. },
  44. search:function(){
  45. var s=get('key_{rand}').value;
  46. a.setparams({key:s},true);
  47. },
  48. daoru:function(){
  49. managelistassetm = a;
  50. addtabs({num:'daoruassetm',url:'flow,input,daoru,modenum=assetm',icons:'plus',name:'导入固定资产'});
  51. },
  52. prinwem:function(){
  53. var sid = a.getchecked();
  54. if(sid==''){
  55. js.msg('msg','没有选中记录');
  56. return;
  57. }
  58. var url = '?a=printewm&m=assetm&d=main&sid='+sid+'';
  59. window.open(url);
  60. },
  61. mobj:a,
  62. title:'资产分类',
  63. stable:'assetm',
  64. optionview:'optionview_{rand}',
  65. optionnum:'assetstype',
  66. rand:'{rand}'
  67. };
  68. var c = new optionclass(c);
  69. js.initbtn(c);
  70. });
  71. </script>
  72. <table width="100%">
  73. <tr valign="top">
  74. <td>
  75. <div style="border:1px #cccccc solid;width:220px">
  76. <div id="optionview_{rand}" style="height:400px;overflow:auto;"></div>
  77. </div>
  78. </td>
  79. <td width="10" nowrap>&nbsp;</td>
  80. <td width="95%">
  81. <div>
  82. <table width="100%"><tr>
  83. <td align="left" nowrap>
  84. <button class="btn btn-primary" click="adds" type="button"><i class="icon-plus"></i> 新增</button>&nbsp;
  85. <button class="btn btn-default" click="allshow" type="button">所有资产</button>&nbsp;
  86. </td>
  87. <td style="padding-left:10px">
  88. <input class="form-control" style="width:200px" id="key_{rand}" placeholder="资产名称/编号/使用人">
  89. </td>
  90. <td style="padding-left:10px">
  91. <button class="btn btn-default" click="search" type="button">搜索</button>
  92. </td>
  93. <td width="90%">
  94. &nbsp;&nbsp;<span id="megss{rand}"></span>
  95. </td>
  96. <td align="right" nowrap>
  97. <button class="btn btn-default" click="prinwem" type="button">打印二维码</button>&nbsp;
  98. <button class="btn btn-default" click="daoru" type="button">导入资产</button>&nbsp;
  99. <button class="btn btn-default" click="daochu" type="button">导出 <i class="icon-angle-down"></i></button>
  100. </td>
  101. </tr></table>
  102. </div>
  103. <div class="blank10"></div>
  104. <div id="view_{rand}"></div>
  105. </td>
  106. </tr>
  107. </table>
粤ICP备19079148号