mode_officia.js 588 B

12345678910111213141516171819202122232425
  1. //初始函数
  2. function initbodys(){
  3. if(!form('zinum'))return;
  4. $(form('zinum')).change(function(){
  5. getfilenum();
  6. });
  7. $('#inputtitle').css('color','red');
  8. $('body').append('<style>.ys1,.ys2{border-color:red;color:red}</style>');
  9. form('unitname').readOnly=false;
  10. form('chaoname').readOnly=false;
  11. }
  12. //得到文件编号:类别+年份+三位编号
  13. function getfilenum(){
  14. var type = form('zinum').value;
  15. if(type==''){
  16. form('num').value='';
  17. return;
  18. }
  19. js.ajax(geturlact('getfilenum'),{type:type},function(s){
  20. form('num').value=s;
  21. },'post');
  22. }