$("#btnCreate").click(function () {
$("#modalwindow").html("<iframe width='100%' height='100%' scrolling='no' frame' src='@Url.Action("Create")'></iframe>");
$("#modalwindow").window({ title: '@Resource.Create', width: 700, height: 400, iconCls: 'icon-add' }).window('open');
});
$("#btnEdit").click(function () {
var row = $('#List').datagrid('getSelected');
if (row != null) {
$("#modalwindow").html("<iframe width='100%' height='99%' frame src='@Url.Action("Edit")?>);
$("#modalwindow").window({ title: '@Resource.Edit', width: 700, height: 400, iconCls: 'icon-edit' }).window('open');
} else {
$.messageBox5s('@Resource.Tip', '@Resource.PlaseChooseToOperatingRecords');
}
});