mode_assetm.js 598 B

123456789101112131415161718192021222324252627
  1. //初始函数
  2. function initbodys(){
  3. $(form('typeid')).change(function(){
  4. getfilenum();
  5. });
  6. $(form('state')).change(function(){
  7. if(this.value=='0'){
  8. form('usename').value='';
  9. form('useid').value='';
  10. }
  11. });
  12. }
  13. //得到文件编号:类别+年份+三位编号
  14. function getfilenum(){
  15. var type = form('typeid').value;
  16. if(type==''){
  17. return;
  18. }
  19. js.ajax(geturlact('getfilenum'),{type:type},function(s){
  20. form('num').value=s;
  21. },'get');
  22. }
  23. function changesubmit(d){
  24. if(d.state=='1' && form('usename').value=='')return '在用状态请选择使用者';
  25. };