public void OnCellDoubleClick(object sender, RadRoutedEventArgs e) { SMSRecord obj = gv.SelectedItem as SMSRecord; if (obj != null) { if (obj.GradeType.IsSupervise) { SupervisionForm form = new SupervisionForm(obj); form.SaveCallBack = getData; form.IsEnabled = false; Tools.OpenWindow("督查情况", form, null, 400, 290); } else { SMSRecordForm form = new SMSRecordForm(obj); form.SaveCallBack = getData; form.IsEnabled = false; Tools.OpenWindow("群众办事登记", form, null, 600, 400); } } }
private void btnAdd_Click(object sender, RoutedEventArgs e) { SMSRecordForm frm = new SMSRecordForm(); rDataPager1.PageIndex = 0; frm.SaveCallBack = getData; Tools.OpenWindow("群众办事登记-新增", frm, null, 600, 400); }
private void btnEdit_Click(object sender, RoutedEventArgs e) { SMSRecord obj = gv.SelectedItem as SMSRecord; if (obj != null) { SMSRecordForm frm = new SMSRecordForm(obj); frm.SaveCallBack = getData; Tools.OpenWindow("群众办事登记-编辑", frm, null, 600, 400); } }
private void edit() { SMSRecord obj = gv.SelectedItem as SMSRecord; if (obj != null) { if (obj.GradeType.IsSupervise) { SupervisionForm form = new SupervisionForm(obj); form.SaveCallBack = getData; Tools.OpenWindow("督查情况", form, null, 400, 320); } else { SMSRecordForm form = new SMSRecordForm(obj); form.SaveCallBack = getData; Tools.OpenWindow("群众办事登记", form, null, 600, 400); } } }