📄 yibiao1.lst
字号:
491 3 {
492 3 clear();
493 3 xs_hhz(0,0,KYGQ);
494 3 goto start;
495 3 }*/
496 3 card_err_state=read_use_001b_file();/*读'27'文件*/
497 3 if (use_pse_inf[12]<0x02)
498 3 {
499 4 clear();
500 4 xs_hhz(2,32,FYGK);
501 4 while(1)
502 4 {
503 5 key=getkey();
504 5 if (key=='t')
505 5 {
506 6 out_card();
507 6 break;
508 6 }
509 5 xs_time();
510 5 }
511 4 goto start;
512 4 }
513 3 ygh=use_001b_file[1];
514 3 ygmm[0]=use_001b_file[2];
515 3 ygmm[1]=use_001b_file[3];
516 3 break;
517 3 }
518 2 if (key!=0xff)
519 2 {
520 3 debug=1;
521 3 clear();
522 3 xs_hhz(2,20,JYJXB);
523 3 }
524 2 if (debug==1)
525 2 dey++;
526 2 if (dey>40)
527 2 {
528 3 clear();
529 3 xs_hhz(0,40,JYS);
530 3 xs_hhz(2,0,FR);
531 3 xs_hhz(4,16,ICK);
532 3 debug=0;
533 3 dey=0;
534 3 }
535 2 xs_time();
536 2 }
537 1 clear();
538 1 xs_hhz(2,30,SBDR);
C51 COMPILER V6.02 YIBIAO1 06/21/2002 13:04:11 PAGE 10
539 1 while(1)
540 1 {
541 2 key=getkey();
542 2 if (key=='s')
543 2 goto ok;/*直接按上班键*/
544 2 if (key=='t')
545 2 {
546 3 out_card();
547 3 goto start;
548 3 }
549 2 if (key!=0xff)
550 2 if (key=='.')
551 2 {
552 3 while(1)
553 3 {
554 4 key=getkey();
555 4 if (key=='t')
556 4 {
557 5 out_card();
558 5 goto start;
559 5 }
560 4 if (key!=0xff)
561 4 if (key=='k')
562 4 goto ok;
563 4 else
564 4 {
565 5 out_card();
566 5 goto start;
567 5 }
568 4 xs_time();
569 4 }
570 3 }
571 2 else
572 2 {
573 3 out_card();
574 3 goto start;
575 3 }
576 2 xs_time();
577 2 }
578 1 ok:
579 1 clear();
580 1 xs_hhz(0,0,QSRYGMM);
581 1 while(1)
582 1 {
583 2 /*if ((XBYTE[0xc010]&0x04)!=0x00)
584 2 goto start;*/
585 2 i=password(0);
586 2 if (i==2)
587 2 {
588 3 out_card();
589 3 goto start;
590 3 }
591 2 if (i==1) /*处理员工密码*/
592 2 {
593 3 clear();
594 3 /*处理员工卡密码*/
595 3 if (use_001b_file[0]==0)
596 3 {
597 4 card_err_state=ver_pin1();
598 4 }
599 3 else
600 3 {
C51 COMPILER V6.02 YIBIAO1 06/21/2002 13:04:11 PAGE 11
601 4 xs_hhz(0,0,SRYGKMM);
602 4 for(i=0;i<=3;i++)
603 4 {
604 5 key=pass_card();
605 5 if (key==2)
606 5 {
607 6 out_card();
608 6 goto start;
609 6 }
610 5 card_err_state=ver_pin();
611 5 if (card_err_state==0)
612 5 break;
613 5 else
614 5 {
615 6 clear();
616 6 xs_hhz(0,0,MMCWQCS);
617 6 }
618 5 }
619 4 }
620 3 if (card_err_state!=0)
621 3 {
622 4 xs_hhz(0,0,CHDS1);
623 4 xs_hhz(2,0,CHDS2);
624 4 out_card();/*弹卡*/
625 4 goto start;
626 4 }
627 3 else
628 3 break;
629 3 }
630 2 else
631 2 {
632 3 clear();
633 3 pd++;
634 3 if (pd==3)
635 3 {
636 4 xs_hhz(0,0,CHDS1);
637 4 xs_hhz(2,0,CHDS2);
638 4 out_card();/*弹卡*/
639 4 goto start;
640 4 }
641 3 xs_hhz(0,0,MMCWQCS);
642 3 }
643 2 }
644 1 /*密码验证完毕*/
645 1 clear();
646 1 xs_hhz(0,0,ZAXZBMD);
647 1 clear();
648 1 xs_hhz(0,1,JYJSB);
649 1 xs_hhz(4,0,ARYJJX);
650 1 key=0xff;
651 1 /*员工上班后操作*/
652 1 while(key==0xff)
653 1 {
654 2 key=getkey();
655 2
656 2 xs_time();
657 2 }
658 1 j2:
659 1 clear();
660 1 xs_hhz(0,0,JYFS1);
661 1 xs_hhz(0,64,XJJY);
662 1 xs_hhz(2,0,YPYE);
C51 COMPILER V6.02 YIBIAO1 06/21/2002 13:04:11 PAGE 12
663 1 xs_hhz(4,112,yuan);
664 1 get_balance();
665 1 jezh1();
666 1 while(1)
667 1 {
668 2 key=getkey();
669 2 if (key=='k')
670 2 {
671 3 j1:
672 3 i=menu_1();
673 3 if (i==0x0f)
674 3 goto j2;/*如果按返回键*/
675 3 else
676 3 if (!ygkjycz(i))/*员工卡支付类型操作*/
677 3 goto j1;/*如果按返回键*/
678 3 clear();
679 3 xs_hhz(0,24,JYWC);
680 3 xs_hhz(4,0,ARYJJX);
681 3 key=0xff;
682 3 /*员工卡加油操作完成*/
683 3 while(key==0xff)
684 3 {
685 4 key=getkey();
686 4 xs_time();
687 4 }
688 3 goto j2;
689 3 }
690 2 if (key=='t') /*员工卡上班签到后退卡*/
691 2 {
692 3 out_card();
693 3 j3:
694 3 clear();
695 3 xs_hhz(0,32,HYHG);
696 3 xs_hhz(2,16,QCRICK);
697 3 while(XBYTE[0xc010]&0x04)
698 3 {
699 4 xs_time();
700 4 }
701 3 clear();
702 3 card_err_state=use_reset(); /*插卡后,用户卡复位*/
703 3 card_err_state=read_use_list(1);/*读第一条记录*/
704 3 for(i=0;i<12;i++)
705 3 {
706 4 use_sel_adf_name[i]=use_list_file[i+4];
707 4 }
708 3 card_err_state=select_pse();/*选择应用*/
709 3 card_err_state=read_use_001b_file();/*读'27'文件*/
710 3 if ((use_pse_inf[12]!=0x01)&&(use_pse_inf[12]!=0x04))/*如果插入的是管理卡或其他非法卡,显示"
-非加油卡"*/
711 3 {
712 4 xs_hhz(2,32,FJYK);
713 4 out_card();
714 4 goto j3;/*回到请插入IC卡*/
715 4 }
716 3 j4:
717 3 if (use_pse_inf[12]==0x04)/*插入的是员工卡处理*/
718 3 {
719 4 clear();
720 4 xs_hhz(0,0,YGK);
721 4 xs_hhz(2,0,YGH1);
722 4 i=use_001b_file[1];
723 4 xs_zi(2,127-16,SHUZI[i&0x0f]);
C51 COMPILER V6.02 YIBIAO1 06/21/2002 13:04:11 PAGE 13
724 4 i>>=4;
725 4 xs_zi(2,127-32,SHUZI[i&0x0f]);
726 4 while(1)
727 4 {
728 5 key=getkey();
729 5 if (key=='x')
730 5 goto j5;/*处理下班*/
731 5 if (key=='.')
732 5 {
733 6 while(1)
734 6 {
735 7 key=getkey();
736 7 if (key!=0xff)
737 7 if (key=='k')
738 7 goto j5;
739 7 else
740 7 goto j4;
741 7 }
742 6 }
743 5 if (key=='k')
744 5 {
745 6 clear();
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -