📄 yibiao.c.bak
字号:
key=0xff;
while(1)
{
key=getkey();
if (key!=0xff)
{
out_card();/*弹卡*/
goto start;
}
xs_time();
}
}
xs_hhz(0,0,MMCWQCS);
}
}
/*密码验证完毕*/
clear();
xs_hhz(0,0,ZAXZBMD);
xs_hhz(2,0,QSD);
search_hb=1;
if (!NET)
while(1)
{
key=getkey();
if (key=='l')
goto start;
xs_time();
if (search_result==1)
break;
if (search_result==0)
{
clear();
search_result=1;
xs_hhz(0,0,CKFBK);
xs_hhz(4,0,ARYJJX);
key=0xff;
while(key==0xff)
{
key=getkey();
xs_time();
}
goto start;
}
}
/*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 (i==0)
{
clear();
xs_hhz(0,0,CKFBK);
xs_hhz(4,0,ARYJJX);
key=0xff;
while(key==0xff)
{
key=getkey();
xs_time();
}
goto start;
}
//else
//{
// break;
//}
} */
if (ash_card())
goto start;
yjsb=1;
ck_flag=1;
clear();
xs_hhz(0,1,JYJSB);
card_err_state=get_balance();
if (card_err_state!=0)
{
kybc();
goto start;
}
trade_record(5);/*生成上班记录*/
xs_hhz(4,0,ARYJJX);
key=0xff;
/*员工上班后操作*/
while(key==0xff)
{
key=getkey();
xs_time();
}
j2:
clear();
xs_hhz(0,0,JYFS1);
xs_hhz(0,64,XJJY);
xs_hhz(2,0,YPYE);
xs_hhz(4,112,yuan);
jezh1();
while(1)
{
key=getkey();
if ((XBYTE[0xc010]&0x04)==0x00)
goto j3;
if (key=='g')
{
menu_3();
goto j2;
}
if (key=='k')
{
if (!ygkjycz(0))/*员工卡支付类型操作*/
goto j2;/*如果按返回键*/
clear();
xs_hhz(0,24,JYWC);
xs_hhz(4,0,ARYJJX);
key=0xff;
/*员工卡加油操作完成*/
while(key==0xff)
{
key=getkey();
xs_time();
}
goto j2;
}
if (key=='l')
{
j1:
i=menu_1();
if (i==0x0f)
goto j2;/*如果按返回键*/
else
if (!ygkjycz(i))/*员工卡支付类型操作*/
goto j1;/*如果按返回键*/
clear();
xs_hhz(0,24,JYWC);
xs_hhz(4,0,ARYJJX);
key=0xff;
/*员工卡加油操作完成*/
while(key==0xff)
{
key=getkey();
xs_time();
}
goto j2;
}
if (key=='t') /*员工卡上班签到后退卡*/
{
out_card();
j3:
clear();
xs_hs();
xs_hhz(0,48,HYHG);
xs_hhz(4,16,QCRICK);
ck_flag=0;
while(!(XBYTE[0xc010]&0x04))
{
xs_time();
}
clear();
card_err_state=use_reset(); /*插卡后,用户卡复位*/
if (card_err_state!=0)
{
clear();
xs_hhz(2,48,CKK);
key=0xff;
while(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;
}
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))/*如果插入的是管理卡或其他非法卡,显示"非加油卡"*/
{
xs_hhz(2,32,FJYK);
out_card();
goto j3;/*回到请插入IC卡*/
}
if (use_pse_inf[12]==0x02)
{
menu_2(); /*插入管理卡*/
out_card();
goto j3;
}
j4:
if (use_pse_inf[12]==0x04)/*插入的是员工卡处理*/
{
clear();
xs_hhz(0,0,QSRYGMM);
card_err_state==0;
while(1)
{
i=password(0);
if (i==2)
{
out_card();
goto j3;
}
if (i==1) /*处理员工密码*/
{
clear();
/*处理员工卡密码*/
if (use_001b_file[0]==0)
{
card_err_state=ver_pin1();
if (card_err_state!=0)
{
kybc();
goto j3;
}
}
else
{
xs_hhz(0,0,SRYGKMM);
for(i=0;i<=3;i++)
{
key=pass_card();
if (key==2)
{
out_card();
goto j3;
}
card_err_state=ver_pin();
if (card_err_state!=0)
{
kybc();
goto j3;
}
if (card_err_state==0)
break;
else
{
clear();
xs_hhz(0,0,MMCWQCS);
}
}
}
}
if (i==0)
{
out_card();
goto j3;
}
if (card_err_state==0)
break;
xs_time();
}
clear();
xs_hhz(0,0,ZAXZBMD);
xs_hhz(2,0,QSD);
search_hb=1;
if (!NET)
while(1)
{
key=getkey();
if (key=='l')
{
out_card();
goto j3;
}
xs_time();
if (search_result==1)
break;
if (search_result==0)
{
clear();
search_result=1;
xs_hhz(0,0,CKFBK);
xs_hhz(4,0,ARYJJX);
key=0xff;
while(key==0xff)
{
key=getkey();
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 (i==0)
{
clear();
xs_hhz(0,0,CKFBK);
xs_hhz(4,0,ARYJJX);
key=0xff;
while(key==0xff)
{
key=getkey();
xs_time();
}
out_card();
goto j3;
}
}
/**/
if (ash_card())
{
out_card();
goto j3;
}
ck_flag=1;
clear();
xs_hhz(0,0,YGK);
xs_hhz(2,0,YGH1);
i=use_001b_file[1];
xs_zi(2,127-16,SHUZI[i&0x0f]);
i>>=4;
xs_zi(2,127-32,SHUZI[i&0x0f]);
while(1)
{
key=getkey();
if ((XBYTE[0xc010]&0x04)==0x00)
goto j3;
if (key=='x')
goto j5;/*处理下班*/
if (key=='.')
{
while(1)
{
key=getkey();
if (key!=0xff)
if (key=='k')
goto j5;
else
goto j4;
}
}
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();
while(1)
{
if ((XBYTE[0xc010]&0x04)==0x00)
goto j3;
xs_time();
key=getkey();
if (key=='g')
{
menu_3();
goto j9;
}
if (key=='t')
{
ck_flag=0;
out_card();
goto j3;
}
if (key=='l')
goto j30;
if (key=='k')
{
if (!ygkjycz(i))/*员工卡支付类型操作*/
{
goto j9;/*如果按返回键*/
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -