var range_guide = " (0 - 31)";

define(
    {elements:[
        {name:"tab1", tab: [
            {key: "pgm197_button", button: [{btn: langs.getText("common","btn_save"), btn_type: "btn_save auth_write"}]},
            {key: "pgm197_preload", preload: [{name: "RANGE_TYPE_1", range_type: 2}, {text: langs.getText("p197","enter_cabinetnum")+range_guide+" : "}, {name: "RANGE_1_0", value: "", textfield: [{max: 8}], message: ""}, {btn: langs.getText("common","load"), btn_type: "btn_load"}, langs.Range_Error_Table(), {endload: 1}, {br: 2}, {text: langs.getText("p197","cabinet_num")+" "}, {name: "RANGE_VIEW_1", value: "", text: 1}]},
            {key: "pgm197_mktbl_inputcabinfo", table: [{label: langs.getText("common","order"), sort: "num"}, {label: langs.getText("common","attr")}, {label: langs.getText("common","val")}]},
            {key: "pgm197_mc_sts", tr:[{order: 1}, {label: langs.getText("p197","mc_sts")}, {name:"MC_STS", value: "", select: [{value: "0", option: langs.getText("common","opt_off")}, {value: "1", option: langs.getText("common","opt_on")}], message: "", cont: 0}]},
            {key: "pgm197_mc_mcno", tr:[{order: 1}, {label: langs.getText("common","cabinet_number")+" (0 ~ 999)"}, {name:"MC_MCNO", value: "", textfield: [{max: 3}], message: ""}]},
            {key: "pgm197_mc_gwno", tr:[{order: 1}, {label: langs.getText("p197","mc_gwno")}, {name:"MC_GWNO", value: "", textfield: [{max: 5}], message: ""}]},
            {key: "pgm197_mc_name", tr:[{order: 1}, {label: langs.getText("common","remark")}, {name:"MC_NAME", value: "", textfield: [{max: 9}], message: "",enable_mullang:1}]},
            {key: "pgm197_mktbl_cabinet_info", table:[{label: langs.getText("common","index")}, {label: langs.getText("common","cabinet_number")}, {label: langs.getText("p197","mc_stschkgw")}, {label: langs.getText("p197","mc_stschk")}, 
                                                      {label: langs.getText("p197","mc_fan1")}, {label: langs.getText("p197","mc_fan2")}, {label: langs.getText("p197","mc_psu1fan")}, {label: langs.getText("p197","mc_psu2fan")}, {label: langs.getText("p197","mc_psu1")}, {label: langs.getText("p197","mc_psu2")}], 
                                           data_form:[{key: "", tr: [{name:"MC_INDEX", value:"", label: 1}, 
                                                                     {name:"MC_CABNUM", value:"", label: 1}, 
                                                                     {name:"MC_STSCHKGW", value:"", label: 1},  
                                                                     {name:"MC_STSCHK", value:"", label: 1}, 
                                                                     {name:"MC_FAN1", value:"", label: 1}, 
                                                                     {name:"MC_FAN2", value:"", label: 1}, 
                                                                     {name:"MC_PSU1FAN", value:"", label: 1}, 
                                                                     {name:"MC_PSU2FAN", value:"", label: 1}, 
                                                                     {name:"MC_PSU1", value:"", label: 1}, 
                                                                     {name:"MC_PSU2", value:"", label: 1}]}],
                                       variable_data:[{}]}
        ]}
    ]}
);
