var datagrid,datagrid2;
var SBGridProperties = {};
var SBGridProperties2 = {};
function createGrid(){
SBGridProperties.id = 'datagrid';
SBGridProperties.parentid = 'SBGridArea';
SBGridProperties.jsonref = 'ct_data.resources';
SBGridProperties.rowheader = ['seq', 'update'];
SBGridProperties.selectmode = 'free';
SBGridProperties.synccol = ['datagrid1','datagrid2'];
SBGridProperties.columns = [
{caption : ['학원명'], ref : 'academy', width : '150px', style : 'text-align:center', type : 'output'},
{caption : ['설립자(성명)'], ref : 'name', width : '150px', style : 'text-align:center', type : 'input'},
{caption : ['전화번호'], ref : 'phone', width : '120px', style : 'text-align:center', type : 'input'},
{caption : ['학원주소'], ref : 'addr', width : '450px', style : 'text-align:center', type : 'textarea'},
{caption : ['교습과정'], ref : 'curriculum', width : '100px', style : 'text-align:center', type : 'combo', typeinfo :{ ref : 'newComboData', displayui : true, label : 'label', value : 'value'}},
{caption : ['교습과목(반)'], ref : 'class', width : '200px', style : 'text-align:center', type : 'input'},
{caption : ['정원'], ref : 'maxstudent', width : '70px', style : 'text-align:center', type : 'input', format : {type:'string', rule:'@ "명"'}},
{caption : ['교습기간'], ref : 'term', width : '100px', style : 'text-align:center', type : 'input'},
{caption : ['교육시작일'], ref : 'startday', width : '100px', style : 'text-align:center', type : 'datepicker', typeinfo : {locale : 'ko' , dateformat :'yymmdd'}, format : {type:'date', rule:'yyyy-mm-dd', origin : 'yyyymmdd' }},
{caption : ['총교습시간(분)'], ref : 'totalminute', width : '100px', style : 'text-align:center', type : 'input'},
{caption : ['교습비'], ref : 'pay', width : '100px', style : 'text-align:center', type : 'input', format : {type:'number', rule:'#,###'}},
{caption : ['강사수'], ref : 'teacher', width : '70px', style : 'text-align:center', type : 'input'}
];
datagrid = _SBGrid.create(SBGridProperties);
SBGridProperties2.id = 'datagrid2';
SBGridProperties2.parentid = 'SBGridArea2';
SBGridProperties2.jsonref = 'ct_data.resources';
SBGridProperties2.rowheader = ['seq', 'update'];
SBGridProperties2.selectmode = 'free';
SBGridProperties2.synccol = ['datagrid1','datagrid2'];
SBGridProperties2.columns = [
{caption : ['학원명'], ref : 'academy', width : '150px', style : 'text-align:center', type : 'output'},
{caption : ['설립자(성명)'], ref : 'name', width : '150px', style : 'text-align:center', type : 'input'},
{caption : ['전화번호'], ref : 'phone', width : '120px', style : 'text-align:center', type : 'input'},
{caption : ['학원주소'], ref : 'addr', width : '450px', style : 'text-align:center', type : 'textarea'},
{caption : ['교습과정'], ref : 'curriculum', width : '100px', style : 'text-align:center', type : 'combo', typeinfo :{ ref : 'newComboData', displayui : true, label : 'label', value : 'value'}},
{caption : ['교습과목(반)'], ref : 'class', width : '200px', style : 'text-align:center', type : 'input'},
{caption : ['정원'], ref : 'maxstudent', width : '70px', style : 'text-align:center', type : 'input', format : {type:'string', rule:'@ "명"'}},
{caption : ['교습기간'], ref : 'term', width : '100px', style : 'text-align:center', type : 'input'},
{caption : ['교육시작일'], ref : 'startday', width : '100px', style : 'text-align:center', type : 'datepicker', typeinfo : {locale : 'ko' , dateformat :'yymmdd'}, format : {type:'date', rule:'yyyy-mm-dd', origin : 'yyyymmdd' }},
{caption : ['총교습시간(분)'], ref : 'totalminute', width : '100px', style : 'text-align:center', type : 'input'},
{caption : ['교습비'], ref : 'pay', width : '100px', style : 'text-align:center', type : 'input', format : {type:'number', rule:'#,###'}},
{caption : ['강사수'], ref : 'teacher', width : '70px', style : 'text-align:center', type : 'input'}
];
datagrid2 = _SBGrid.create(SBGridProperties2);
};