亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? inq_afe.c

?? BC3.1編譯,小交換機計費系統.使用Dos做出如此好的界面,少有.
?? C
?? 第 1 頁 / 共 2 頁
字號:
#include <graphics.h>
#include <bio.inc>
#include <menu.inc>
#include <key.inc>
#include "feedef.h"

#define BK_CLR	  7
#define CHR_CLR   0
#define HEAD_CLR  0

/* function  : print the detailed information for the authcds from the input one
 *	       to the end
 * called by : statistic()
 * date      : 1993.12.11
 */
void process_afee_all(UC opflg2)
{
    UI	 i;
    UC	 flag;
    AUTHCD_STRUCT  *authcd;

    if(check_prn() == FALSE)	    /* not ready */
	return;

    flag = load_authcd_tbl(0);
    if(flag == 0)		  /* charge.pho does not exist */
    {
       message(AUTHCD_FILE_ERR);
       return;
    }

    ANewlen = authcd_tbl_len();
    authcd  = Auth_cd_top;

    message_disp(8,"正在打印, 請稍候...");

    for(i=0;i<ANewlen;i++)
    {
	if(inv_aone(authcd, MULTY, opflg2) == FALSE)
	{
 	    message_end();
	    unload_authcd_tbl();
            return;
	}
	authcd++;
    }

    message_end();
    unload_authcd_tbl();
    return;
}


/* function  : print the detailed information for the authcds from the input one
 *	       to the end
 * called by : statistic()
 * date      : 1993.12.11
 */
void process_afee_part(UC opflg1, UC opflg2)
{
    UI	 i, idx;
    UI	 lenth;
    UC	 flag;
    UL	 auth_cd;
    AUTHCD_STRUCT  *authcd;

    if(opflg1 == PRINT)
    {
	if(check_prn() == FALSE)	/* not ready */
	    return;
    }

    flag = inp_phid_num(&auth_cd, &lenth, opflg1, AUTH_CD);
    if(flag == 1)
	return;

    flag = load_authcd_tbl(0);
    if(flag == FALSE)		  /* charge.pho does not exist */
    {
       message(AUTHCD_FILE_ERR);
       return;
    }

    ANewlen = authcd_tbl_len();
    i = 0;
    authcd  = Auth_cd_top;
    while(authcd->auth_code != auth_cd)
    {
	i++;
	authcd++;
    }

    idx = i;
    if( (idx+lenth) >= ANewlen )
	 idx = ANewlen;
    else
	 idx += lenth;

    if(opflg1 == PRINT)
	message_disp(8,"正在打印, 請稍候...");

    for(; i<idx; i++)
    {
	if(opflg1 == INQUIRE)
	{
	    if(inq_apart_fee(authcd, AUTH_FEE) == FALSE) break;
	}
	else
	{
	    if(inv_aone(authcd, MULTY, opflg2) == FALSE)
	    {
		 message_end();
		 unload_authcd_tbl();
		 return;
	    }
	}
	authcd++;
    }

    if(opflg1 == PRINT)
	message_end();

    unload_authcd_tbl();
    return;
}


/* function  :
 * called by : statistic()
 * date      : 1993.10.11
 */
void process_afee_one(UC opflg1, UC opflg2)
{
    UC	  flag;
    UL	  auth_cd;
    USERS_STRUCT nil={0, "", 0};
    AUTHCD_STRUCT  *authcd;

    if( opflg1 == PRINT)
    {
	if(check_prn() == FALSE)	/* not ready */
	    return;
    }

    flag = input_auth_cd(&auth_cd, opflg1);
    if(flag == 2)
	return;
    else if(flag == FALSE)	  /* the authcd no does not exist */
    {
	message(AUTHCD_NOT_EXIST);
	return;
    }

    flag = load_authcd_tbl(0);
    if(flag == FALSE)		  /* charge.pho does not exist */
    {
	message(AUTHCD_FILE_ERR);
	return;
    }

    ANewlen = authcd_tbl_len();

    authcd  = binary_authcd(auth_cd);
    if(authcd == NULL)
    {
	message(AUTHCD_NOT_EXIST);
	unload_authcd_tbl();
	return;
    }

    if(opflg1 == INQUIRE)
    {
	if(inq_apart_fee(authcd, AUTH_FEE) == TRUE)
            inquire_one_record(auth_cd, nil, ACCOUNT, AUTH_CD);
    }
    else
    {
	message_disp(8,"正在打印, 請稍候...");
	if( inv_aone(authcd, SINGLE, opflg2) == FALSE )
	{
	    message_end();
	    unload_authcd_tbl();
	    return;
	}
        message_end();
    }
    unload_authcd_tbl();
    return;
}



/* function  : inquire
 * called by :
 * date      : 1993.10.18
 */
UC inq_apart_fee(AUTHCD_STRUCT *authcd, UC opflg)
{
    FILE *fp;
    UI	  input;
    UNIT_STRUCT cur_unit;

    TABLE_STRUCT  tfee_tbl1 = { 28, 115, 35, 35, 3, 5,
				{80, 135, 135, 135, 96},
				GREEN
			      };
    TABLE_STRUCT  tfee_tbl2 = { 28, 261, 35, 35, 1, 7,
				{80, 81, 80, 81, 80, 81, 96},
				GREEN
			      };
    TABLE_STRUCT  tfee_tbl3 = { 28, 335, 35, 35, 1, 4,
				{162, 162, 162, 96},
				GREEN
			      };

    fp = fopen(TotTimeFileName,"rb");
    if(fp == NULL)
    {
	message(TFEE_FILE_ERR);
	return(FALSE);
    }
    fread(&Ps_time, sizeof(TIME_STRUCT), 1, fp);
    fread(&Pe_time, sizeof(TIME_STRUCT), 1, fp);
    fclose(fp);

    clr_DialWin(2);

    disp_tfee_head(opflg);	/* display table head	*/

    draw_table(&tfee_tbl1);	    /* draw the table frame */
    disp_afee_detl1(authcd);

    draw_table(&tfee_tbl2);	    /* draw the table frame */
    disp_afee_detl2(authcd);

    draw_table(&tfee_tbl3);	    /* draw the table frame */
    disp_afee_detl3(authcd);

    message_disp(8,"Enter 繼續   Esc 終止");

    while(1)
    {
	input=get_key1();
	get_current(&cur_unit);
	switch(input)
	{
	    case ESC:	  /* QUIT */
		 recover_screen(2);
		 message_end();
		 return(FALSE);

	    case ENTER:   /* CONTINUE */
		 recover_screen(2);
		 message_end();
		 return(TRUE);
	    default:
		 sound_bell();
		 break;
	}
    }/* END OF WHILE */
}


/* function  : display the detail for the total fee table
 * called by : inq_total_fee()
 * date      : 1993.9.22
 */
void disp_afee_detl1(AUTHCD_STRUCT *authcd)
{
     char *traned;
     UI    i, j;
     UI    x, y;
     UL    th, tm, ttm, tcu;
     double tch;
     UNIT_STRUCT cer_unit;

     outf(450,  78+16, BK_CLR, HEAD_CLR, "授權人名: %-s", authcd->auth_usr_nam);

     for(i=0; i<3; i++)
     {
       for(j=1; j<5; j++)
       {
	 cer_unit.unit_x = i;
	 cer_unit.unit_y = j;
	 get_certain(&cer_unit);
	 x = cer_unit.dot_sx+27;
	 y = cer_unit.dot_sy+9;

	 switch(j)
	 {
	    case 1:
		 if(i == 0 )
		 {
		    traned=fdigt_tran((double)(authcd->intern_charge)/100);
		    outf(x, y, BK_CLR, CHR_CLR, "%-s", traned);
		 }
		 else if(i == 1)
		 {
		    if(authcd->intern_time % 60 != 0)
			tm = (authcd->intern_time/60 + 1) % 60;
		    else
			tm = (authcd->intern_time/60) % 60;
		    th = (authcd->intern_time/60 +1) / 60;
		    traned=ldigt_tran(th);
		    outf(x, y, BK_CLR, CHR_CLR, "%-sh%2um", traned, tm);
		 }
		 else
		 {
		    traned=ldigt_tran( (UL)authcd->intern_count);
		    outf(x, y, BK_CLR, CHR_CLR, "%-s", traned);
		 }
		 break;
	    case 2:
		 if(i == 0 )
		 {
		    traned=fdigt_tran((double)(authcd->nation_charge)/100);
		    outf(x, y, BK_CLR, CHR_CLR, "%-s", traned);
		 }
		 else if(i == 1)
		 {
		    if(authcd->nation_time % 60 != 0)
			tm = (authcd->nation_time/60 + 1) % 60;
		    else
			tm = (authcd->nation_time/60) % 60;
		    th = (authcd->nation_time/60 + 1) / 60;
		    traned=ldigt_tran(th);
		    outf(x, y, BK_CLR, CHR_CLR, "%-sh%2um", traned, tm);
		 }
		 else
		 {
		    traned=ldigt_tran( (UL)authcd->nation_count);
		    outf(x, y, BK_CLR, CHR_CLR, "%-s", traned);
		 }
		 break;
	    case 3:
		 if(i == 0 )
		 {
		    traned=fdigt_tran((double)(authcd->local_charge)/100);
		    outf(x, y, BK_CLR, CHR_CLR, "%-s", traned);
		 }
		 else if(i == 1)
		 {
		    if(authcd->local_time % 60 != 0)
			tm = (authcd->local_time/60 + 1) % 60;
		    else
			tm = (authcd->local_time/60) % 60;
		    th = (authcd->local_time/60 + 1) / 60;
		    traned=ldigt_tran(th);
		    outf(x, y, BK_CLR, CHR_CLR, "%-sh%2um", traned, tm);
		 }
		 else
		 {
		    traned=ldigt_tran( (UL)authcd->local_count);
		    outf(x, y, BK_CLR, CHR_CLR, "%-s", traned);
		 }
		 break;
	    case 4:
		 if(i == 0 )
		 {
		    tch = ((double)(authcd->intern_charge + authcd->nation_charge +\
			   authcd->local_charge))/100;
		    traned=fdigt_tran(tch);
		    outf(x-19, y, BK_CLR, CHR_CLR, "%-s", traned);
		 }
		 else if(i == 1)
		 {
		    ttm = authcd->intern_time + authcd->nation_time +\
			  authcd->local_time;
		    if(ttm % 60 != 0)
		       tm = (ttm/60 + 1) % 60;
		    else
		       tm = (ttm/60) % 60;
		    th = (ttm/60 + 1) / 60;
		    traned=ldigt_tran(th);
		    outf(x-19, y, BK_CLR, CHR_CLR, "%-sh%2um", traned, tm);
		 }
		 else
		 {
		    tcu = (UL)authcd->intern_count + (UL)authcd->nation_count +\
			  (UL)authcd->local_count;
		    traned=ldigt_tran( tcu);
		    outf(x-19, y, BK_CLR, CHR_CLR, "%-s", traned);
		 }
		 break;
	    default:
		 break;
	 }    /* END SWITCH */
       }
     }
     return;
}


/* function  : display the detail for the total fee table
 * called by : inq_total_fee()
 * date      : 1993.9.22
 */
void disp_afee_detl2(AUTHCD_STRUCT *authcd)
{
     char *traned;
     UI    i, j;
     UI    x, y;
     double tch;
     UNIT_STRUCT cer_unit;

     i=0;
     for(j=0; j<7; j++)
     {
	 cer_unit.unit_x = i;
	 cer_unit.unit_y = j;
	 get_certain(&cer_unit);
	 x = cer_unit.dot_sx+8;
	 y = cer_unit.dot_sy+9;

	 switch(j)
	 {
	    case 0:
		 traned=fdigt_tran((double)(authcd->month_lease)/100);
		 outf(x, y, BK_CLR, CHR_CLR, "%-s", traned);
		 break;
	    case 5:
		 traned=fdigt_tran((double)(authcd->addfee)/100);
		 outf(x, y, BK_CLR, CHR_CLR, "%-s", traned);
		 break;
	    case 6:
		 tch = authcd->month_lease;
		 tch += authcd->addfee;
		 traned=fdigt_tran(tch/100);
		 outf(x, y, BK_CLR, CHR_CLR, "%-s", traned);
		 break;
	    default:
		 break;
	 }    /* END SWITCH */
     }
     return;
}


/* function  : display the detail for the total fee table
 * called by : inq_total_fee()
 * date      : 1993.9.22
 */
void disp_afee_detl3(AUTHCD_STRUCT *authcd)
{
     char *traned;
     UI    i, j;
     UI    x, y;
     double tch;
     UNIT_STRUCT cer_unit;

     i=0;
     for(j=0; j<4; j++)
     {
	 cer_unit.unit_x = i;
	 cer_unit.unit_y = j;
	 get_certain(&cer_unit);
	 x = cer_unit.dot_sx+8;
	 y = cer_unit.dot_sy+9;

	 switch(j)
	 {
	    case 0:
		 outf(77, y, BK_CLR, CHR_CLR, "人民幣元");
		 break;
	    case 1:
		 outf(x,y,BK_CLR,CHR_CLR,"%-4u年%-2u月%-2u日%-2u時",\
					  Ps_time.year, Ps_time.month,\
					  Ps_time.day,	Ps_time.hour);
		 break;
	    case 2:
		 outf(x,y,BK_CLR,CHR_CLR,"%-4u年%-2u月%-2u日%-2u時",\
					  Pe_time.year, Pe_time.month,\
					  Pe_time.day,	Pe_time.hour);
		 break;
	    case 3:
		 tch  = authcd->intern_charge + authcd->nation_charge +\
			authcd->local_charge;
		 tch += authcd->month_lease;
		 tch += authcd->addfee;
		 traned=fdigt_tran(tch/100);
		 outf(x, y, BK_CLR, CHR_CLR, "%-s", traned);
		 break;
	    default:
		 break;
	 }    /* END SWITCH */
     }
     return;
}


?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人高清免费观看| 91影院在线免费观看| 处破女av一区二区| 欧美日韩国产首页| 国产精品美女久久久久高潮| 午夜久久福利影院| 99精品视频在线观看| 亚洲精品一区二区三区蜜桃下载 | 国产精品久久午夜夜伦鲁鲁| 亚洲五月六月丁香激情| 丰满少妇在线播放bd日韩电影| 欧美猛男男办公室激情| 亚洲日本在线a| 国产一区二区不卡| 欧美一卡二卡在线| 亚洲国产wwwccc36天堂| 97se亚洲国产综合自在线不卡| 亚洲精品一区在线观看| 麻豆国产欧美日韩综合精品二区 | 一本色道久久综合狠狠躁的推荐| 2020国产精品久久精品美国| 首页国产欧美日韩丝袜| 在线看国产日韩| 亚洲精品一二三| 91丨porny丨蝌蚪视频| 国产精品毛片大码女人| 国产高清在线观看免费不卡| 欧美v日韩v国产v| 免费在线视频一区| 91精品国产日韩91久久久久久| 午夜成人在线视频| 欧美高清视频在线高清观看mv色露露十八| 亚洲精品国产无套在线观| 92国产精品观看| 亚洲欧美二区三区| 日本福利一区二区| 亚洲五码中文字幕| 91精品国产欧美一区二区成人| 亚洲成av人片在www色猫咪| 欧美日韩国产综合久久| 日韩黄色免费电影| 日韩精品一区在线观看| 久久97超碰色| 国产亚洲视频系列| 成人av中文字幕| 一区二区视频在线看| 欧美色手机在线观看| 天堂成人国产精品一区| 欧美大胆人体bbbb| 国产99精品国产| 亚洲欧美色一区| 欧美日韩黄视频| 韩国精品免费视频| 中文字幕国产一区| 欧洲精品在线观看| 美女视频黄a大片欧美| 久久精品亚洲精品国产欧美| a级精品国产片在线观看| 亚洲综合丝袜美腿| 精品黑人一区二区三区久久| 成人国产精品免费| 日韩**一区毛片| 中文字幕二三区不卡| 欧美日韩在线观看一区二区 | 欧美精品一区二区三区四区| 国产91精品在线观看| 一卡二卡三卡日韩欧美| 日韩精品一区二区三区老鸭窝| 国产经典欧美精品| 亚洲国产日韩精品| 久久久www成人免费毛片麻豆| 91小视频在线免费看| 免费成人在线影院| 成人欧美一区二区三区1314| 555www色欧美视频| eeuss国产一区二区三区| 日韩电影免费在线看| 中文字幕一区av| 欧美精品一区视频| 欧美视频第二页| 国产99精品国产| 美美哒免费高清在线观看视频一区二区 | 欧美国产精品一区| 在线电影欧美成精品| 97久久精品人人爽人人爽蜜臀| 久久精品国产精品亚洲红杏 | 国产欧美精品一区二区色综合朱莉 | 日韩黄色免费网站| 亚洲欧美国产毛片在线| 久久精品人人做| 日韩一级片网站| 欧美在线不卡一区| www.亚洲免费av| 国产麻豆精品在线| 青草av.久久免费一区| 亚洲一区在线观看免费观看电影高清 | av资源网一区| 国产成人综合网站| 国产自产v一区二区三区c| 五月综合激情日本mⅴ| 亚洲男人的天堂av| 国产精品美女久久久久高潮| 国产亚洲欧洲997久久综合 | 国产凹凸在线观看一区二区| 久久精品国产秦先生| 美女www一区二区| 青青草国产成人99久久| 午夜精品福利在线| 亚洲国产视频一区二区| 亚洲最大色网站| 一区二区视频在线| 亚洲综合区在线| 亚洲黄色av一区| 亚洲精品高清视频在线观看| 亚洲日本va午夜在线影院| 中文一区二区完整视频在线观看 | 成人黄页毛片网站| 成人免费看片app下载| 成人免费看黄yyy456| www.欧美日韩国产在线| jizz一区二区| 色婷婷av一区二区三区大白胸 | www.亚洲免费av| 91在线观看高清| 一本色道久久加勒比精品| 91国产福利在线| 欧美色成人综合| 91精品免费观看| 亚洲精品一区二区三区蜜桃下载| 久久精品在这里| 国产精品国产三级国产普通话三级 | 国产精品久久久久久福利一牛影视| 中文字幕欧美激情| 亚洲精品日产精品乱码不卡| 一区二区三区小说| 日韩精品欧美成人高清一区二区| 日本中文在线一区| 国产一区二区三区久久久| 成人国产视频在线观看| 欧美羞羞免费网站| 538prom精品视频线放| 国产人成一区二区三区影院| 中文字幕亚洲精品在线观看 | 国产成人啪免费观看软件| 成人午夜视频免费看| 欧洲亚洲国产日韩| 欧美一级片在线看| 欧美激情综合五月色丁香 | 国产一区不卡视频| 色天使久久综合网天天| 日韩免费一区二区| 亚洲精品国产一区二区精华液 | 国产一区二区免费看| 日本久久电影网| 欧美zozo另类异族| 夜夜夜精品看看| 国产在线精品一区二区夜色 | 亚欧色一区w666天堂| 国产福利一区二区| 欧美军同video69gay| 国产精品久久久久永久免费观看| 亚洲国产日韩a在线播放| 国产九色精品成人porny| 在线视频一区二区三| 久久久久一区二区三区四区| 一二三区精品视频| 不卡av免费在线观看| 精品福利一二区| 亚洲成人1区2区| 色综合中文字幕| 在线视频综合导航| 久久久久免费观看| 一区二区在线观看视频 | 国产成人免费视频精品含羞草妖精 | 自拍偷拍国产精品| 九九九精品视频| 在线观看一区不卡| 亚洲天堂精品在线观看| 国产精品一区二区三区网站| 欧美久久久久久久久中文字幕| 国产精品久久二区二区| 激情深爱一区二区| 欧美一级欧美三级在线观看| 亚洲国产综合人成综合网站| 99久久精品国产精品久久| 国产精品66部| 欧美综合欧美视频| 亚洲视频一区二区免费在线观看| 国产福利一区在线| 亚洲精品一区二区三区香蕉| 久久精品国内一区二区三区| 69av一区二区三区| 日本不卡一区二区三区| 欧美日韩亚洲综合一区 | 中文字幕亚洲欧美在线不卡| 国产精品一区三区| 国产日产精品一区| 成人一级片在线观看| 中文文精品字幕一区二区| 国产盗摄视频一区二区三区|