if(info.LCR_MAX_LDT_TBL) {
   var range_guide = " (1 - "+info.LCR_MAX_LDT_TBL+")";
} else {
   var range_guide = "";
}

var LCR_MAX_LDT_TBL_RANGE = "249";

if(LCR_MAX_LDT_TBL_RANGE) {
	var range_guide2 = " (0 - "+LCR_MAX_LDT_TBL_RANGE+")";
	if(LCR_MAX_LDT_TBL_RANGE < 99) {
		var maxInputRange = LCR_MAX_LDT_TBL_RANGE;
	} else {
		var maxInputRange = "100";
	}
}

var p221_lcr_type_source = [langs.getText("p221","opt_ldt_type_int"), langs.getText("p221","opt_ldt_type_col"), langs.getText("common","opt_both")];
var p221_chk_pwd_source = [langs.getText("common","opt_off"), langs.getText("common","opt_on")];

column_config["pgm221"] = [{readOnly: true}, {type: 'dropdown', source: p221_lcr_type_source}, {maxLength:12}, {type: 'dropdown', source: p221_chk_pwd_source}, {maxLength:3}, {maxLength:6}, {maxLength:6}, {maxLength:6}];

define(
    {elements:[
        {name:"tab1", tab: [
            {key: "pgm221_button", button: [{btn: langs.getText("common","btn_save"), btn_type: "btn_save auth_write"}]},
            {key: "pgm221_preload", preload: [{name: "RANGE_TYPE_1", range_type: 2}, {text: langs.getText("p221","enter_tblindex")+range_guide+" : "}, {name: "RANGE_1_0", value: "", textfield: [{max: 8, size: 10}], message: "", default_range: "1"}, {br: 1}, {name: "RANGE_TYPE_2", range_type: 2}, {text: langs.getText("common","enter_indexrange")+range_guide2+" : "}, {name: "RANGE_2_1", value: "", textfield: [{max: 40, size: 50}], message: "", default_range: getDefaultRange(range_guide2, maxInputRange), help: langs.re_toolTip()+"<br><br>"+langs.getText("toolTip","maxinputrange")+" - "+maxInputRange}, {btn: langs.getText("common","load"), btn_type: "btn_load"},
				langs.Range_Error_Table(),
				{endload: 1}, {br: 2}, {text: langs.getText("common","ldt_tbl_index")+" "}, {name: "RANGE_VIEW_1", value: "", text: 1}, {br: 1}, {text: langs.getText("common","index_range")+" "}, {name: "RANGE_VIEW_2", value: "", text: 1}]},
            {key: "pgm221_mktbl", edit_table: [{label: langs.getText("common","index")}, 
											   {label: langs.getText("p221","ldt_type")}, 
											   {label: langs.getText("p221","ldt_cd")}, {br: 1, cont: 1}, {label: "※ "+langs.getText("p221","cmt_max12digit"), cont: 1}, 
											   {label: langs.getText("p221","ldt_password")}, 
											   {label: langs.getText("common","ldt_zone_no")}, {br: 1, cont: 1}, {label: "(1-100)", cont: 1}, 
											   {label: langs.getText("common","dmt")+" 1"}, {br: 1, cont: 1}, {label: "("+langs.getText("common","must6digit")+")", cont: 1}, 
											   {label: langs.getText("common","dmt")+" 2"}, {br: 1, cont: 1}, {label: "("+langs.getText("common","must6digit")+")", cont: 1}, 
											   {label: langs.getText("common","dmt")+" 3"}, {br: 1, cont: 1}, {label: "("+langs.getText("common","must6digit")+")", cont: 1}],
								  data_form: [{key: "", tr: [ {name: "DEV_INDEX", value: "", label: 1}, 
															  {name:"LDT_TYPE", value: "", select: g_pgm221_sel_lcr_type, message: "", cont: 0},
															  {name:"LDT_CD", value: "", textfield: [{max: 12, size: 15}], message: "", cont: 0},
															  {name:"LDT_PASSWARD", value: "", select: g_onoff, message: "", cont: 0},
															  {name:"LDT_SUBZONE", value: "", textfield: [{max: 3, size: 10}], message: "", cont: 0},
															  {name:"LDT_DMT_0", value: "", textfield: [{max: 6, size: 10}], message: "", cont: 0},
															  {name:"LDT_DMT_1", value: "", textfield: [{max: 6, size: 10}], message: "", cont: 0},
															  {name:"LDT_DMT_2", value: "", textfield: [{max: 6, size: 10}], message: "", cont: 0}]}],
							  variable_data: [{}]}
		]}
	]}
);
