openForm('#JQDialog1', $('#dataGridMaster').datagrid('getSelected'), "viewed", 'dialog');
//最後兩個參數分別是打開的時候狀態(viewed, updated,inserted)