define(
    {elements:[
        {name:"tab1", tab: [
				{key: "pgm3132_button", button: [{btn: langs.getText("common","chk_out"), btn_type: "btn_save auth_write"}, {btn: langs.getText("common","receipt"), btn_type: "btn_p3132_receipt"}, {btn: langs.getText("p3132","btn_printroomch"), btn_type: "btn_p3132_printroomch"}]},
            {key: "pgm3132_preload", preload: [{name: "RANGE_TYPE_1", range_type: 1}, {text: langs.getText("common","enter_roomnum")+" : "}, {name: "RANGE_1_0", value: "", textfield: [{max: 8, size: 10}], message: ""}, {btn: langs.getText("common","load"), btn_type: "btn_load"}, langs.Range_Error_Table(), {endload: 1}, {br: 2}, {name: "RANGE_VIEW_1", value: "", text: 1, show: 0}]},
            {key: "pgm3132_mktbl", table:[{label: langs.getText("common","roomch_list"), colspan: 8}], 
                               data_form:[{key: "", struct: [{tr: [{label: langs.getText("p3132","co_serial_num")+" : ", colspan: 8}, {name: "SERIAL_NUM", value: "", label: 1, cont: 1}]},
																				 {tr: [{label: langs.getText("common","room_num")+" : ", colspan: 8}, {name: "ROOM_NUM", value: "", label: 1, cont: 1}]},
																				 {tr: [{label: langs.getText("common","guest_name")+" : ", colspan: 8}, {name: "GUEST_NAME", value: "", label: 1, cont: 1}]},
																				 {tr: [{label: langs.getText("common","check_in")+" : ", colspan: 8}, {name: "CHECKIN_TIME", value: "", label: 1, cont: 1}]},
																				 {tr: [{label: langs.getText("common","cur_time")+" : ", colspan: 8}, {name: "CUR_TIME", value: "", label: 1, cont: 1}, {label: " (", cont: 1}, {name: "DAYS", value: "", label: 1, cont: 1}, {label: " "+langs.getText("common","unit_days")+")", cont: 1}]},
																				 {th: [{label: langs.getText("common","start_time")}, {label: langs.getText("common","co")}, {label: langs.getText("common","call_duration")}, {label: langs.getText("common","dialed_num"), colspan: 2}, {label: langs.getText("common","count")}, {label: langs.getText("common","call_charge")}, {label: langs.getText("common","remark")}]},
																				 {tr: [{name: "CALL_HISTORY", value: "", freespace: 1}]},
																				 {tr: [{label: langs.getText("common","total_cnt"), colspan: 3}, {name: "CALL_TOTALCNT", value: "", label: 1, colspan: 5}]},
																				 {th: [{label: langs.getText("common","charge_time")}, {label: langs.getText("common","charge_sta"), colspan: 2}, {label: langs.getText("common","item"), colspan: 3}, {label: langs.getText("common","bar_charge")}, {label: langs.getText("common","tax")}]},
																				 {tr: [{name: "BAR_HISTORY", value: "", freespace: 1}]},
																				 {tr: [{label: langs.getText("common","total_cnt"), colspan: 3}, {name: "BAR_TOTALCNT", value: "", label: 1, colspan: 5}]},
																				 {th: [{label: langs.getText("common","item")}, {label: langs.getText("common","charge"), colspan: 2}, {label: langs.getText("common","tax")+"("+langs.getText("common","rate")+")", colspan: 3}, {label: langs.getText("common","sum"), colspan: 2}]},
																				 {tr: [{label: langs.getText("common","room_charge")}, {name: "ROOM_CHARGE", value: "", label: 1, colspan: 2}, {name: "ROOM_TAX", value: "", label: 1, colspan: 3}, {name: "ROOM_SUM", value: "", label: 1, colspan: 2}]},
																				 {tr: [{label: langs.getText("common","call_charge")}, {name: "CALL_CHARGE", value: "", label: 1, colspan: 2}, {name: "CALL_TAX", value: "", label: 1, colspan: 3}, {name: "CALL_SUM", value: "", label: 1, colspan: 2}]},
																				 {tr: [{label: langs.getText("common","bar_charge")}, {name: "BAR_CHARGE", value: "", label: 1, colspan: 2}, {name: "BAR_TAX", value: "", label: 1, colspan: 3}, {name: "BAR_SUM", value: "", label: 1, colspan: 2}]},
																				 {tr: [{label: langs.getText("common","prepaid")}, {label: "", colspan: 2}, {label: "", colspan: 3}, {name: "PREPAID", value: "", label: 1, colspan: 2}]},
																				 {tr: [{label: langs.getText("common","total")}, {label: "", colspan: 2}, {label: "", colspan: 3}, {name: "TOTAL_SUM", value: "", label: 1, colspan: 2}]}]}],
                           variable_data:[{}]}
        ]}
    ]}
);
