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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? out_rang.c

?? BC3.1編譯,小交換機(jī)計(jì)費(fèi)系統(tǒng).使用Dos做出如此好的界面,少有.
?? C
?? 第 1 頁 / 共 2 頁
字號:


#include <dir.h>
#include <dos.h>
#include <alloc.h>
#include <conio.h>
#include <string.h>
#include <graphics.h>

#include <key.inc>
#include <bio.inc>
#include <menu.inc>

#include "feedef.h"
#define  MAXNUM    50

UL          *modi_no;        /* modified/deleted record No */
TIME_STRUCT *modi_date;

/* function  : display and handle the out-of-range telephone records
 * called by : phone_record_proc()
 * date      : 1993.10.5
 */
void out_of_range(void)
{
    UC           ratify;
    TABLE_STRUCT record_tbl = { 0, 99, 20, 18, 16, 9,
				{44, 85, 70, 175, 44, 44, 44, 52, 60},
				GREEN
			       };

    TIME_STRUCT  in_stime={0,0,0,0}, in_etime={0,0,0,24};

    ratify = set_in_time(&in_stime, &in_etime);       /* set in-range time */
    if(ratify == 1)          /* ESC */
	return;

    modi_no = (UL *)farcalloc(MAXNUM, sizeof(UL));
    if(modi_no == NULL)
	exit_scr(1,"Out of memory %lu bytes!\n\nGFS system shutdown abnormally\n\n\n\n",sizeof(UL)*MAXNUM);

    modi_date = (TIME_STRUCT *)farcalloc(MAXNUM, sizeof(TIME_STRUCT));
    if(modi_date == NULL)
	exit_scr(1,"Out of memory %lu bytes!\n\nGFS system shutdown abnormally\n\n\n\n", sizeof(TIME_STRUCT)*MAXNUM);

    clr_DialWin(2);

    draw_table(&record_tbl);

//    draw_table(&record_tbl);
    disp_out_head();
    disp_num();

    pop_back(MAX_X-S_XAD, D_BOTTOM+1, MAX_X, MAX_Y, 11);
    hz16_disp(MES_RIGHT+15, MES_TOP+1,"按鍵繼續(xù)", 0);  /* press any key */

    hz16_disp(220,80,"越 界 國 際 長 途 話 單", BLACK);  /* Intern long call */
    out_range_proc(IDD, in_stime, in_etime);

    clr_scr(220,80,440,97,0,7);
    hz16_disp(220,80,"越 界 國 內(nèi) 長 途 話 單", BLACK);  /* national long call */
    out_range_proc(DDD, in_stime, in_etime);

    clr_scr(220,80,440,97,0,7);
    hz16_disp(220,80,"越 界 市 內(nèi) 電 話 話 單", BLACK);   /* local call */
    out_range_proc(LDD, in_stime, in_etime);

    farfree(modi_date);
    farfree(modi_no);

    rid_pop();
    recover_screen(2);
    return;
}

/* function  : judge whether the file exists or not
 * called by : a general purposed routine
 * input     : filename -- file name to be checked
 * output    : TRUE  -- exist
 *             FALSE -- not exist
 * date      : 1993.10.12
 */
UC file_exist(UC *filename)
{
    struct ffblk fblk;

    if(findfirst(filename,&fblk,FA_RDONLY) == 0)      /* find */
	return(TRUE);
    else
	return(FALSE);
}

/* function  : set in-range time
 * called by : out_of_range()
 * date      : 1993.10.8
 */
UC  set_in_time(TIME_STRUCT *in_stime, TIME_STRUCT *in_etime)
{
    int  i,j;
    UC   backx=10, backy=20;
    UC   ratify;
    UI   sx, sy, ex;
    TABLE_STRUCT time_tbl = {H_BX-30,H_BY-30,0,40,2,7,\
			       {40,50,40,40,40,40,40},7};
    UNIT_STRUCT  cur_unit;

    message_disp(8,"←↓→↑ 移動  Enter 輸入  F1 確認(rèn)");  /* move and input */
    pop_back(H_BX-40,H_BY-70,H_BX+270,H_BY+80,7); /* big frame */
    draw_table(&time_tbl);
    hz16_disp(H_BX+50,H_BY-50,"設(shè) 定 界 內(nèi) 時 間",BLACK);  /* set range time */

    for(i=0;i<2;i++)
	for(j=0;j<7;j++)
	{
	    cur_unit.unit_x = i;
	    cur_unit.unit_y = j;
	    get_certain(&cur_unit);
	    sx = cur_unit.dot_sx;
	    sy = cur_unit.dot_sy;
	    ex = cur_unit.dot_ex;

	    switch(j)
	    {
		case 0:
		    if(i==0)      /* from */
			hz16_disp(sx+backx,sy+backy,"從",BLACK);
		    if(i==1)      /* to   */
			hz16_disp(sx+backx,sy+backy,"到",BLACK);
		    break;
		case 2:           /* year */
		    hz16_disp(sx+backx,sy+backy,"年",BLACK);
		    break;
		case 4:           /* month*/
		    hz16_disp(sx+backx,sy+backy,"月",BLACK);
		    break;
		case 6:           /* day  */
		    hz16_disp(sx+backx,sy+backy,"日",BLACK);
		    break;
		case 1:
		    draw_back(sx+backx-12, sy+backy-4, ex+2, sy+backy+20,11);
		    outf(sx+5, sy+backy , 11, BLACK, "%4u", s_time.year);
		    if(i==1)
		    {
			draw_back(sx+backx-12, sy+backy-4, ex+2, sy+backy+20, 11);
			outf(sx+5,sy+backy,11,BLACK,"%4u",e_time.year);
		    }
		    break;
		case 3:
		    draw_back(sx-2,sy+backy-4,ex+2,sy+backy+20,11);
		    outf(sx+backx,sy+backy,11,BLACK,"%2u",s_time.month);
		    if(i==1)
		    {
                        draw_back(sx-2,sy+backy-4,ex+2,sy+backy+20,11);
			outf(sx+backx,sy+backy,11,BLACK,"%2u",e_time.month);
		    }
		    break;
		case 5:
		    draw_back(sx-2,sy+backy-4,ex+2,sy+backy+20,11);
		    outf(sx+backx,sy+backy,11,BLACK,"%2u",s_time.day);
		    if(i==1)
		    {
		        draw_back(sx-2,sy+backy-4,ex+2,sy+backy+20,11);
			outf(sx+backx,sy+backy,11,BLACK,"%2u",e_time.day);
		    }
		    break;
		default:
		    sound_alarm();
		    break;
	    }      /* end of "switch(j)"     */
	}          /* end of "for(j), for(i) */

    set_finger_color(Dsp_clr.fng_clr);
    locate_finger(0, 1);

    in_stime->year = s_time.year;
    in_stime->month= s_time.month;
    in_stime->day  = s_time.day;
    in_etime->year = e_time.year;
    in_etime->month= e_time.month;
    in_etime->day  = e_time.day;

    ratify = input_in_time(in_stime, in_etime);

    rid_pop();
    message_end();
    return(ratify);
}

/* function  : input starting time and ending time for sorting
 * called by : set_in_time()
 * output    : in_stime -- starting time for deleting
 *             in_etime -- ending   time for deleting
 *             esc=1: ESC
 *             esc=2: F1(ratify)
 * date      : 1993.10.6
 */
UC  input_in_time(TIME_STRUCT *in_stime,TIME_STRUCT *in_etime)
{
    UC   esc=0, result=0;
    UC   backx=10, backy=20, high=18, width=40;
    UI   sx, sy;
    UI   key;
    UL   value;
    UNIT_STRUCT  cur_unit;

    for(; ;)             /* input data */
    {
	key = get_key1();

	get_current(&cur_unit);
	sx = cur_unit.dot_sx;
	sy = cur_unit.dot_sy;

	switch(key)
	{
	    case ESC:
		esc = 1;
		break;
	    case F1:
		esc = 2;
		break;
	    case UP:
	    case DOWN:
		if(cur_unit.unit_x == 0)
		    move_finger(1,1);            /* down a step */
		else
		    move_finger(0,1);            /* up   a step */
		break;
	    case LEFT:
		if(cur_unit.unit_y > 2)
		    move_finger(2,2);       /* left two steps   */
		break;
	    case RIGHT:
		if(cur_unit.unit_y < 4)
		    move_finger(3,2);       /* right two steps  */
		break;
	    case ENTER:
		if(cur_unit.unit_x==0)      /* starting time    */
		{
		    switch(cur_unit.unit_y)
		    {
		    case 1:     /* year */
			hide_finger();
			result = get_dec(sx,sy+backy,high,width,5,4,\
							    &value,0x00);
			echo_finger();
			if(result)     /* valid input */
			{
			    in_stime->year = (UI)value;
			    move_finger(3,2);
			}
			break;
		    case 3:       /* month */
			hide_finger();
			result = get_dec(sx,sy+backy,high,width,backx,2,\
							    &value,0x00);
			echo_finger();
			if(result)     /* valid input */
			{
			    in_stime->month = (UC)value;
			    move_finger(3,2);
			}
			break;
		    case 5:       /* day */
			hide_finger();
			result = get_dec(sx,sy+backy,high,width,backx,2,\
							    &value,0x00);
			echo_finger();
			if(result)     /* valid input */
			{
			    in_stime->day = (UC)value;
			    move_finger(1,1);
			    move_finger(2,4);
			}
			break;
		    default:
			sound_alarm();
			break;
		    }        /* end of "switch(cur_unit.unit_y)" */
		}            /* end of "if(cur_unit.unit_x==0)"  */

		else if(cur_unit.unit_x==1)      /* ending time  */
		{
		    switch(cur_unit.unit_y)
		    {
		    case 1:     /* year */
			do
			{
			    hide_finger();
			    result = get_dec(sx,sy+backy,high,width,5,4,\
							    &value,0x00);
			    echo_finger();
			}while(result && (value<in_stime->year));

			if(result)     /* valid input */
			{
			    in_etime->year = (UI)value;
			    move_finger(3,2);
			}
			break;
		    case 3:       /* month */
			do
			{
			    hide_finger();
			    result = get_dec(sx,sy+backy,high,width,backx,2,\
							    &value,0x00);
			    echo_finger();
			}while(result && (in_stime->year==in_etime->year) \
				      && (value<in_stime->month) );

			if(result)     /* valid input */
			{
			    in_etime->month = (UC)value;
			    move_finger(3,2);
			}
			break;
		    case 5:       /* day */
			do
			{
			    hide_finger();
			    result = get_dec(sx,sy+backy,high,width,backx,2,\
							    &value,0x00);
			    echo_finger();
			}while(result && (in_stime->year==in_etime->year)   \
				      && (in_stime->year==in_etime->year)   \
				      && (value<in_stime->day) );

			if(result)     /* valid input */
			    in_etime->day = (UC)value;
			break;
		    default:
			sound_alarm();
			break;
		    }        /* end of "switch(cur_unit.unit_y)"     */
		}            /* end of "else if(cur_unit.unit_x==1)" */
		break;       /* for "case ENTER:"    */

	    default:
		sound_alarm();
		break;
	}                    /* end of "switch(key)" */
	if(esc != 0)
	    break;
    }                        /* end of "for(;;)"     */
    return(esc);
}


/* function  : display head for out-of-range records
 * called by : out_of_range()
 * date      : 1993.10.8
 */
void disp_out_head(void)
{
    outf(7,   103, 7,0, "序號");      /* sequence num  */

    outf(52,  103, 7,0, "分  機(jī)");   /* caller        */
    outf(133, 103, 7,0, "授權(quán)用戶"); /* authorized user */
    outf(207, 103, 7,0, "通達(dá)地區(qū)");  /* callee        */
    outf(281, 103, 7,0, "被    叫");  /* callee        */
    outf(386, 103, 7,0, "日期");      /* date          */
    outf(433, 103, 7,0, "起時");      /* starting time */
    outf(478, 103, 7,0, "時長");      /* duration      */
    outf(518, 103, 7,0, "附加費(fèi)");    /* main caller 2 */
    outf(576, 103, 7,0, "話  費(fèi)");    /* charge fee    */

    return;
}


/* function  : display head for out-of-range records
 * called by : out_of_range()
 * date      : 1993.10.8
 */
void disp_num(void)
{
    int i;

    for(i=0; i<16; i++)     /* DISPLAY No. IN THE TABLE     */
	    outf(20, i*19+123, 7, 0, "%x", i);

    return;
}

/* function  : handle the out-of-range records
 * called by : out_of_range()
 * input     : mode -- IDD,DDD,LDD
 *             in_stime -- in_range starting time
 *             in_etime -- in_range ending   time
 * date      : 1993.10.8
 * procedure : first display the out-of-range records, when full of 16,
 *             ask whether to delete or modify some items. If not, go
 *             to display the next page, otherwise, remember the
 *             record No(the sequence No in *.dat) to modi_no[], and
 *             set the corresponding modi_date[]. The max number of
 *             records that can be deleted or modified is 50.
 *                 In file_refresh(), compare the record No with modi_no[],
 *             if equal, reset the date or not copy it, according to
 *             modifying or deleting
 * data      : modi_no[] -- remember the record No of modified/deleted records
 *                          in file (bei shan chu hua dan de ji lu hao)
 *             modi_date[] -- remember the modified date of modified/deleted
 *                            records
 *             modi -- remember all the number of records modified or deleted,
 *                     used for modi_no[] and modi_date[]
 *             tbl_no -- the row number in the table, transformed from
 *                       '0'-'9' or 'a'-'f'
 *             out_no[] -- remember the record No in the file for the 16
 *                         out-of-range records in the table
 */
void out_range_proc(UC mode, TIME_STRUCT in_stime, TIME_STRUCT in_etime)
{
    FILE *fp;
    char *a_name="不明";
    UC   auth_name[9];
    UC   position=0;              /* for display in table */
    UC   re_do=0, ch[2]="\0\0";
    UC   modi=0, tbl_no;
    UC   res, in_flag, modi_flag, pass_flag, flag;
    UI   i, key;
    UL   rec_no;
    UL   out_no[16], value;
    RATE_STRUCT huge *rate_tmp;
    UNIT_STRUCT   cur_unit;

    flag  = load_rate_tab();
    if(flag != TRUE)
    {
	message(RATE_FILE_ERR);
	return;
    }

    flag  = load_authcd_tbl(0);
    if(flag != TRUE)
        Authflg = OFF;
    else
        Authflg = ON;

    if(mode == IDD)
    {
	fp = fopen("idd.dbf","rb");
	if(fp==NULL)
	{
	    get_key1();
	    unload_rate_tab();
            if(Authflg == ON)
                unload_authcd_tbl();
	    return;

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
激情六月婷婷久久| 99久久精品国产麻豆演员表| 日韩不卡在线观看日韩不卡视频| 亚洲一区在线观看网站| 日韩成人一区二区三区在线观看| 亚洲v日本v欧美v久久精品| 日韩高清国产一区在线| 国产麻豆成人传媒免费观看| 成人国产在线观看| 日本韩国一区二区| 日韩美女一区二区三区| 国产午夜精品久久久久久免费视 | 久久久www成人免费毛片麻豆| 国产免费成人在线视频| 亚洲一区免费在线观看| 国产高清亚洲一区| 欧美性猛交一区二区三区精品| 亚洲精品一区二区三区精华液| 国产精品美女www爽爽爽| 日韩高清中文字幕一区| 成人国产精品免费| 欧美大黄免费观看| 一区二区三区四区国产精品| 国产一区二区91| 欧美日韩国产一级片| 亚洲视频在线一区| 韩国女主播一区| 在线成人免费视频| 亚洲欧洲日韩在线| 国产美女视频一区| 欧美一级xxx| 午夜电影网亚洲视频| 99久久久精品| 国产精品水嫩水嫩| 成人在线综合网| 国产精品天美传媒| 国产黄色91视频| 久久综合九色综合欧美就去吻 | 久久精品免视看| 精品无人码麻豆乱码1区2区| 欧美一区三区四区| 五月婷婷久久丁香| 3d动漫精品啪啪1区2区免费| 亚洲高清不卡在线| 91精品综合久久久久久| 日韩在线一区二区三区| 4438成人网| 久久99国产精品久久| 日韩欧美一区二区在线视频| 日本欧美韩国一区三区| 欧美日韩精品系列| 久久国产精品色| 亚洲国产高清不卡| 91香蕉视频在线| 日本欧美大码aⅴ在线播放| 91精品国产综合久久精品性色| 蜜桃精品视频在线| 国产香蕉久久精品综合网| 不卡影院免费观看| 午夜电影一区二区| 国产欧美日韩麻豆91| 一本色道久久综合亚洲aⅴ蜜桃| 一区二区三国产精华液| 91精品国产入口在线| 粉嫩蜜臀av国产精品网站| 一级中文字幕一区二区| 精品久久久久久最新网址| 不卡的电影网站| 日韩va欧美va亚洲va久久| 亚洲国产成人自拍| 91精品国产91综合久久蜜臀| 国产999精品久久久久久绿帽| 亚洲国产cao| 国产精品成人免费| 日韩欧美色电影| 欧美在线短视频| 国产999精品久久久久久| 日本最新不卡在线| 伊人婷婷欧美激情| 中文字幕+乱码+中文字幕一区| 欧美另类高清zo欧美| 色先锋aa成人| 成人中文字幕电影| 国产一区二区女| 另类的小说在线视频另类成人小视频在线 | 国产婷婷色一区二区三区在线| 欧美系列一区二区| 91亚洲男人天堂| 成人国产精品免费网站| 国产传媒欧美日韩成人| 毛片av一区二区| 免费高清不卡av| 香蕉成人伊视频在线观看| 亚洲欧美中日韩| 中文字幕巨乱亚洲| 国产色一区二区| 久久精品一区二区三区不卡牛牛 | 懂色av一区二区在线播放| 另类小说色综合网站| 免费观看91视频大全| 日韩**一区毛片| 久久99精品国产91久久来源| 黄色小说综合网站| 国产一区二区精品久久| 国产成人av福利| 91丨porny丨蝌蚪视频| 91网站在线播放| 精品视频在线免费看| 欧美精品久久天天躁| 中文在线一区二区| 九九久久精品视频| 最新国产成人在线观看| 在线不卡a资源高清| 欧美日韩国产成人在线免费| 91精品国产综合久久久久久漫画| 9191成人精品久久| 欧美不卡一区二区三区四区| 欧美成人vps| 亚洲人成在线播放网站岛国| 午夜视频久久久久久| 国产美女视频91| 欧美三级视频在线| 精品久久一区二区三区| 国产精品理论片| 久久精品国产一区二区| 99视频精品在线| 精品日韩一区二区| 亚洲影视资源网| 成人黄动漫网站免费app| 欧美美女bb生活片| 亚洲人精品午夜| 国产精品一区二区不卡| 在线成人免费观看| 一区二区不卡在线播放| 国产成人在线看| 欧美一级生活片| 亚洲一区二区三区精品在线| 国产精品亚洲午夜一区二区三区 | 亚洲成人免费视频| 成人黄色综合网站| 国产性色一区二区| 久久成人精品无人区| 欧美日本在线一区| 亚洲伊人色欲综合网| 色综合久久88色综合天天 | 日日摸夜夜添夜夜添精品视频 | 一本色道久久综合亚洲91| 中文字幕av不卡| 成人久久久精品乱码一区二区三区| 精品国产电影一区二区| 蜜臀av一区二区在线免费观看| 欧美性生活影院| 亚洲国产日韩a在线播放性色| 99r精品视频| 亚洲欧洲日韩综合一区二区| 成人国产精品免费| 国产精品私房写真福利视频| 国产成人精品一区二区三区四区 | 亚洲欧洲日产国产综合网| 成人综合在线网站| 亚洲日本一区二区| 欧美色网站导航| 久久精品国产成人一区二区三区| 宅男在线国产精品| 国产久卡久卡久卡久卡视频精品| 2020国产精品自拍| 99九九99九九九视频精品| 亚洲一区二区三区在线| 欧美一区二区三区人| 国产精品白丝av| 亚洲欧美欧美一区二区三区| 欧美三级视频在线| 国产精品1024| 一级女性全黄久久生活片免费| 日韩一区二区在线免费观看| 国产河南妇女毛片精品久久久| 亚洲精品久久嫩草网站秘色| 欧美精品1区2区3区| 国产99久久久国产精品潘金| 亚洲风情在线资源站| 精品成人免费观看| 在线观看成人免费视频| 激情图区综合网| 亚洲自拍与偷拍| 中文字幕av资源一区| 日韩欧美高清在线| 91国偷自产一区二区三区成为亚洲经典 | 亚洲午夜影视影院在线观看| 国产亚洲一本大道中文在线| 欧洲生活片亚洲生活在线观看| 国产一区二区三区免费| 亚洲午夜私人影院| 国产精品久久久久久久浪潮网站| 欧美精品高清视频| 欧美怡红院视频| 91在线一区二区| 成人晚上爱看视频| 国产精品911| 麻豆91精品91久久久的内涵| 亚洲电影第三页|