📄 yibiao.c
字号:
while(!(XBYTE[0xc010]&0x04))
{
//clear();
xs_hs();
xs_hhz(0,48,HYHG);
xs_hhz(4,16,QCRICK);
xs_time();
}
clear();
card_err_state=use_reset(); /*插卡后,用户卡复位*/
if (card_err_state!=0)
{
clear();
xs_hhz(2,32,FJYK);
key=0xff;
while(1)
{
dog();
jiao=1;
key=getkey();
if (key!=0xff)
{
out_card();
goto j3;
}
}
}
card_err_state=read_use_list(1);/*读第一条记录*/
if (card_err_state!=0)
{
kybc();
goto j3;
}
for(i=0;i<12;i++)
{
use_sel_adf_name[i]=uselistfile[i+4];
}
card_err_state=select_pse();/*选择应用*/
if (card_err_state!=0)
{
kybc();
goto j3;
}
if (card_init())
{
out_card();
goto j3;
}
card_err_state=read_use_001b_file();/*读'27'文件*/
if (card_err_state!=0)
{
kybc();
goto j3;
}
if ((use_pse_inf[12]!=0x01)&&(use_pse_inf[12]!=0x04)&&(use_pse_inf[12]!=0x02)&&(use_pse_inf[12]!=0x05)&&(use_pse_inf[12]!=0x06))/*如果插入的是管理卡或其他非法卡,显示"非加油卡"*/
{
xs_hhz(2,32,FJYK);
key=0xff;
jiao=1;
while (1)
{
key=getkey();
dog();
if (key!=0xff)
break;
}
out_card();
goto j3;/*回到请插入IC卡*/
}
if (use_pse_inf[12]==0x02)
{
menu_2(); /*插入管理卡*/
out_card();
goto j3;
}
j4:
if ((use_pse_inf[12]==0x04)||(use_pse_inf[12]==0x05)||(use_pse_inf[12]==0x06))/*插入的是员工卡处理*/
{
if (use_pse_inf[12]==0x04)
klx=0;
if (use_pse_inf[12]==0x05)
klx=1;
if (use_pse_inf[12]==0x06)
klx=2;
card_err_state==0;
while(1)
{
dog();
clear();
xs_hhz(0,0,ZAXZBMD);
xs_hhz(2,0,QSD);
search_hb=1;
search_result==2;
if (!NET)
while(1)
{
key=getkey();
if (key=='l')
{
out_card();
goto j3;
}
xs_time();
if (search_hb==0)
{
if (search_result==0)
{
if ((klx==1)||(klx==2))
goto byzmm;/*验泵卡和维修卡不验证密码*/
break;
}
if (search_result==1)
{
clear();
jiao=1;
search_result=1;
xs_hhz(0,0,CKFBK);
xs_hhz(4,0,ARYJJX);
if (klx==1)
{
xs_hhz(0,0,FBZNBK);
}
if (klx==2)
{
xs_hhz(0,0,FBZWXK);
}
key=0xff;
while(key==0xff)
{
key=getkey();
jiao=1;
xs_time();
}
out_card();
goto j3;
}
}
}
else
{
nlist[0]=use_pse_inf[10];
nlist[1]=use_pse_inf[11];
nlist[2]=use_pse_inf[12];
nlist[3]=use_pse_inf[13];
nlist[4]=use_pse_inf[14];
nlist[5]=use_pse_inf[15];
nlist[6]=use_pse_inf[16];
nlist[7]=use_pse_inf[17];
nlist[8]=use_pse_inf[18];
nlist[9]=use_pse_inf[19];
//tidyCpoy(4);
//copy(4);
i=seeAbout(4);
if (veraa[4]==0xff)
i=0;
//i=1;
if (i==0)
{
clear();
xs_hhz(0,0,CKFBK);
xs_hhz(4,0,ARYJJX);
if (klx==1)
{
xs_hhz(0,0,FBZNBK);
}
if (klx==2)
{
xs_hhz(0,0,FBZWXK);
}
key=0xff;
while(key==0xff)
{
key=getkey();
jiao=1;
xs_time();
}
out_card();
goto j3;
}
}
byzmm:
card_err_state=ver_pin1();
if (card_err_state!=0)
{
kybc();
goto j3;
}
if (card_err_state==0)
break;
xs_time();
}
/**/
if (ash_card())
{
out_card();
goto j3;
}
ck_flag=1;
clear();
card_err_state=read_use_001b_file();/*读'27'文件*/
if (card_err_state!=0)
{
kybc();
goto j3;
}
if (klx==0)
{
clear();
xs_hhz(0,0,YGK);
xs_hhz(2,0,YGH1);
ichy=use_001b_file[1];
i=use_001b_file[1];
xs_zi(2,127-16,SHUZI[i&0x0f]);
i>>=4;
xs_zi(2,127-32,SHUZI[i&0x0f]);
}
if (klx==1)
{
clear();
xs_hhz(2,40,NBK);
}
if(klx==2)
{
clear();
xs_hhz(2,40,WXK);
}
while(1)
{
dog();
xs_time();
key=getkey();
if ((XBYTE[0xc010]&0x04)==0x00)
goto j3;
if (key=='x')
{
if (klx==1)
goto j5;
if (klx==2)
goto j9;
card_err_state=read_use_001b_file();/*读'27'文件*/
if (card_err_state!=0)
{
kybc();
goto j3;
}
if (use_pse_inf[12]==0x05)
goto j5;
if (yx!=ichy)
{
clear();
xs_hhz(0,16,FSBYGK);
an_key_back();
goto j9;
}
goto j5;/*处理下班*/
}
if (key=='.')
{
while(1)
{
dog();
key=getkey();
if (key!=0xff)
if (key=='k')
{
if (klx==1)
goto j5;
if (klx==2)
goto j9;
card_err_state=read_use_001b_file();/*读'27'文件*/
if (card_err_state!=0)
{
kybc();
goto j3;
}
if (use_pse_inf[12]==0x05)
goto j5;
if (yx!=ichy)
{
clear();
xs_hhz(0,16,FSBYGK);
an_key_back();
goto j9;
}
goto j5;/*处理下班*/
}
else
goto j9;
}
}
if (key=='k')
{
j9:
clear();
xs_hhz(0,0,JYFS1);
xs_hhz(0,64,XJJY);
xs_hhz(2,0,YPYE);
xs_hhz(4,112,yuan);
card_err_state=get_balance();
if (card_err_state!=0)
{
kybc();
goto j3;
}
jezh1(0);
while(1)
{
if ((XBYTE[0xc010]&0x04)==0x00)
goto j3;
xs_time();
dog();
key=getkey();
if (key=='x')
{
if (klx==1)
goto j5;
if (klx==2)
goto j9;
card_err_state=read_use_001b_file();/*读'27'文件*/
if (card_err_state!=0)
{
kybc();
goto j3;
}
if (use_pse_inf[12]==0x05)
goto j5;
if (yx!=ichy)
{
clear();
xs_hhz(0,16,FSBYGK);
an_key_back();
goto j9;
}
goto j5;/*处理下班*/
}
if (key=='.')
{
while(1)
{
dog();
key=getkey();
if (key!=0xff)
if (key=='k')
{
if (klx==1)
goto j5;
if (klx==2)
goto j9;
card_err_state=read_use_001b_file();/*读'27'文件*/
if (card_err_state!=0)
{
kybc();
goto j3;
}
if (use_pse_inf[12]==0x05)
goto j5;
if (yx!=ichy)
{
clear();
xs_hhz(0,16,FSBYGK);
an_key_back();
goto j9;
}
goto j5;
}
else
goto j9;
}
}
if (key=='g')
{
menu_3();
goto j9;
}
if (key=='t')
{
ck_flag=0;
out_card();
goto j3;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -