var alm_type_sel = [{value: "0", option: langs.getText("p1635","alarm")+" 1"+" (door:5, alarm:6)"}, {value: "1", option: langs.getText("p1635","alarm")+" 2"+" (door:5, alarm:6)"}, {value: "2", option: langs.getText("p163","e911_use")+" (1)"}, {value: "3", option: langs.getText("p163","ebath_alarm")+" (4)"}, {value: "4", option: langs.getText("p163","dcob_use")+" (2)"}, {value: "5", option: langs.getText("p163","sip_use")+" (3)"}, {value: "6", option: langs.getText("p163","stafull_alarm")+" (7)"}, {value: "7", option: langs.getText("p163","cofull_alarm")+" (8)"}, {value: "8", option: langs.getText("p163","smdrfull_alarm")+" (9)"}, {value: "9", option: langs.getText("p163","vmfull_alarm")+" (10)"}, {value: "10", option: langs.getText("p163","wtimbasefault_alarm")+" (11)"}, {value: "11", option: langs.getText("p163","wtimchainfault_alarm")+" (12)"}, {value: "12", option: langs.getText("p163","ismdr_full_alarm")+" (13)"}, {value: "13", option: langs.getText("p163","cabinetfault_alarm")+" (14)"}, {value: "14", option: langs.getText("p163","barfull_alarm")+" (15)"}, {value: "15", option: langs.getText("p163","ipcrfault_alarm")+" (16)"}, {value: "16", option: langs.getText("p163","ipwatch_alarm")+" (17)"}, {value: "17", option: langs.getText("p163","templcs_use")+" (18)"}, {value: "18", option: langs.getText("p163","licexpire_alarm")+" (19)"}, {value: "19", option: langs.getText("p163","licover_alarm")+" (20)"}, {value: "20", option: langs.getText("p163","tnetlcm_alarm")+" (21)"}, {value: "21", option: langs.getText("p163","tapidisc_alarm")+" (22)"}, {value: "22", option: langs.getText("p163","pmsdown_alarm")+" (23)"}];

if(info.PHASE>=3.1)
{
   alm_type_sel.push({value: "23", option: langs.getText("p163","ucsdown_alarm")+ " (24)"}, {value: "24", option: langs.getText("p163","pushdown_alarm")+" (25)"});
}

if(info.PHASE>=3.5)
{
   alm_type_sel.push({value: "25", option: langs.getText("p163","slvact_alarm")+" (26)"}, {value: "26", option: langs.getText("p163","restsmdrfull_alarm") + " (27)"});
}

if(info.PHASE>=4.1)
{
   alm_type_sel.push({value: "27", option: langs.getText("p163","timeslotfull_alarm")+" (28)"});
}

column_config["pgm1635"] = [{readOnly: true}, {readOnly: true}, {type: 'dropdown', source: [langs.getText("common","opt_off"), langs.getText("common","opt_on")]}, {maxLength:3}, {maxLength:3}, {maxLength:4}, {type: 'dropdown', source: [langs.getText("p1635","extcallans_r_none"), langs.getText("p1635","extcallans_r_all"), langs.getText("p1635","extcallans_r_aft")]}, {type: 'dropdown', source: [langs.getText("p1635","extcallprio_r_imm"), langs.getText("p1635","extcallprio_r_aft")]}, {maxLength:4}, {maxLength:3}, {maxLength:4}, {maxLength:3}, {type: 'dropdown', source: [langs.getText("p1635","almurg_owrpg"), langs.getText("p1635","almurg_owrall")]}, {type: 'dropdown', source: [langs.getText("common","opt_off"), langs.getText("common","opt_on")]}, {maxLength:2}, {maxLength:3}, {maxLength:2}, {type: 'dropdown', source: [langs.getText("p1635","almnprio_imm"), langs.getText("p1635","almnprio_aft")]}, {maxLength:4}];

define(
	{elements:[
		{name:"tab1", tab: [
			{key: "pgm1635_button", button: [{btn: langs.getText("common","btn_save"), btn_type: "btn_save auth_write"}]},
			{key: "pgm1635_mktbl", title: langs.getText("common","mktbl"), edit_table: [{label: langs.getText("common","order")}, {label: langs.getText("p163","service_for_alarm")}, {br: 1, cont: 1}, {label: "("+ langs.getText("p163","cc_num") +")", cont:1},
																												 {label: langs.getText("p1635","int_noti")}, {br: 1, cont: 1}, {label: langs.getText("p1635","int_almring"), cont: 1}, {label: langs.getText("p1635","int_noti")}, {br: 1, cont: 1}, {label: langs.getText("p1635","annc_no"), cont: 1}, {br: 1, cont: 1}, {label: "(0,"+info.START_OF_SYS_ANNC+"-"+info.END_OF_SYS_ANNC+")", cont: 1},
																												 {label: langs.getText("p1635","ext_noti")}, {br: 1, cont: 1}, {label: langs.getText("p1635","annc_no"), cont: 1}, {br: 1, cont: 1}, {label: "(0,"+info.START_OF_SYS_ANNC+"-"+info.END_OF_SYS_ANNC+")", cont: 1}, {label: langs.getText("p1635","ext_noti")}, {br: 1, cont: 1}, {label: langs.getText("p1635","first_delay"), cont: 1}, {br: 1, cont: 1}, {label: "(0,1-3600 "+langs.getText("common","cmt_second")+")", cont: 1}, {label: langs.getText("p1635","ext_noti")}, {br: 1, cont: 1}, {label: langs.getText("p1635","extcallans_rule"), cont: 1}, {label: langs.getText("p1635","ext_noti")}, {br: 1, cont: 1}, {label: langs.getText("p1635","extcallprio_rule"), cont: 1}, {label: langs.getText("p1635","ext_noti")}, {br: 1, cont: 1}, {label: langs.getText("p1635","armcnaa_tmr"), cont: 1}, {br: 1, cont: 1}, {label: "(0,1-3600 "+langs.getText("common","cmt_second")+")", cont: 1},
																												 {label: langs.getText("p1635","page_noti")}, {br: 1, cont: 1}, {label: langs.getText("p1635","annc_no"), cont: 1}, {br: 1, cont: 1}, {label: "(0,"+info.START_OF_SYS_ANNC+"-"+info.END_OF_SYS_ANNC+")", cont: 1}, {label: langs.getText("p1635","page_noti")}, {br: 1, cont: 1}, {label: langs.getText("p1635","first_delay"), cont: 1}, {br: 1, cont: 1}, {label: "(0,1-3600 "+langs.getText("common","cmt_second")+")", cont: 1}, {label: langs.getText("p1635","page_noti")}, {br: 1, cont: 1}, {label: langs.getText("p1635","almurg_level"), cont: 1}, {br: 1, cont: 1}, {label: "(0-255)", cont: 1}, {label: langs.getText("p1635","page_noti")}, {br: 1, cont: 1}, {label: langs.getText("p1635","almurg_ovwr"), cont: 1}, {label: langs.getText("p1635","page_noti")}, {br: 1, cont: 1}, {label: langs.getText("p1635","almdnd_ovr"), cont: 1}, {label: langs.getText("p1635","page_noti")}, {br: 1, cont: 1}, {label: langs.getText("p1635","almpag_repcnt"), cont: 1}, {br: 1, cont: 1}, {label: "(0-99)", cont: 1}, {label: langs.getText("p1635","page_noti")}, {br: 1, cont: 1}, {label: langs.getText("p1635","almpag_repint"), cont: 1}, {br: 1, cont: 1}, {label: "(5-255 "+langs.getText("common","cmt_second")+")", cont: 1}, {label: langs.getText("p1635","page_noti")}, {br: 1, cont: 1}, {label: langs.getText("p1635","almann_repcnt"), cont: 1}, {br: 1, cont: 1}, {label: "(0-99)", cont: 1}, {label: langs.getText("p1635","page_noti")}, {br: 1, cont: 1}, {label: langs.getText("p1635","almnprio_cond"), cont: 1}, {label: langs.getText("p1635","page_noti")}, {br: 1, cont: 1}, {label: langs.getText("p1635","armpnap_tmr"), cont: 1}, {br: 1, cont: 1}, {label: "(0,1-3600 "+langs.getText("common","cmt_second")+")", cont: 1}],
																								 data_form: [{key: "", tr: [{order: 1}, {name: "ALMTYPE", value: "", select: alm_type_sel, message: "", show: 0},
																																	 {name:"INTRING", value: "", select: [{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", cont: 0}, {name:"ANNCNO", value: "", textfield: [{max: 4, size: 5}], message: "", cont: 0},
																																	 {name:"EXANNO", value: "", textfield: [{max: 4, size: 5}], message: "", cont: 0}, {name:"EXTFSTDLY", value: "", textfield: [{max: 4, size: 4}], message: "", cont: 0}, {name: "EXTANSRLE", value: "", select: [{value: "0", option: langs.getText("p1635","extcallans_r_none")}, {value: "1", option: langs.getText("p1635","extcallans_r_all")}, {value: "2", option: langs.getText("p1635","extcallans_r_aft")}], message: "", cont: 0}, {name: "EXTPRIORLE", value: "", select: [{value: "0", option: langs.getText("p1635","extcallprio_r_imm")}, {value: "1", option: langs.getText("p1635","extcallprio_r_aft")}], message: "", cont: 0}, {name:"EXRSTWT", value: "", textfield: [{max: 4, size: 4}], message: "", cont: 0},
																																	 {name:"PGANNO", value: "", textfield: [{max: 4, size: 5}], message: "", cont: 0}, {name:"PGFSTDLY", value: "", textfield: [{max: 4, size: 4}], message: "", cont: 0}, {name:"PGURVAL", value: "", textfield: [{max: 4, size: 4}], message: "", cont: 0}, {name:"PGURRLE", value: "", select: [{value: "0", option: langs.getText("p1635","almurg_owrpg")}, {value: "1", option: langs.getText("p1635","almurg_owrall")}], message: "", cont: 0}, {name:"PGDNDOVR", value: "", select: [{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", cont: 0}, {name:"PGPRCNT", value: "", textfield: [{max: 2, size: 2}], message: "", cont: 0}, {name:"PGPINTV", value: "", textfield: [{max: 4, size: 4}], message: "", cont: 0}, {name:"PGARCNT", value: "", textfield: [{max: 2, size: 2}], message: "", cont: 0}, {name: "PGPRRLE", value: "", select: [{value: "0", option: langs.getText("p1635","almnprio_imm")}, {value: "1", option: langs.getText("p1635","almnprio_aft")}], message: "", cont: 0}, {name:"PGRSTWT", value: "", textfield: [{max: 4, size: 4}], message: "", cont: 0}]}],
																							 variable_data: [{}]}
		]}
	]}
);
