private void btnReSubmit_Click(object sender, RoutedEventArgs e)//重新提交 { ObservableCollection<T_OA_SATISFACTIONDISTRIBUTE> selectItems = GetSelectList(); if (selectItems != null) { SatisfactionDistribute_upd form = new SatisfactionDistribute_upd(FormTypes.Resubmit); form._Survey = selectItems[0]; EntityBrowser browser = new EntityBrowser(form); browser.FormType = FormTypes.Resubmit; browser.MinHeight = 500; browser.MinWidth = 700; browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent); browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { }, true); } else ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "ReSubmit"), Utility.GetResourceStr("CONFIRMBUTTON")); }
private void btnEdit_Click(object sender, RoutedEventArgs e)//修改 { ObservableCollection<T_OA_SATISFACTIONDISTRIBUTE> selectItems = GetSelectList(); if (selectItems != null) { T_OA_SATISFACTIONDISTRIBUTE ent = dg.SelectedItems[0] as T_OA_SATISFACTIONDISTRIBUTE; if (ent.CHECKSTATE == ((int)CheckStates.UnSubmit).ToString() || ent.CHECKSTATE == ((int)CheckStates.UnApproved).ToString()) { SatisfactionDistribute_upd form = new SatisfactionDistribute_upd(FormTypes.Edit); form._Survey = selectItems[0]; EntityBrowser browser = new EntityBrowser(form); browser.MinHeight = 500; browser.MinWidth = 700; browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent); browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { }, true); } else { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("NOTONLYCANMODIFYTHEDATASUBMITTED")); return; } } else ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "EDIT"), Utility.GetResourceStr("CONFIRMBUTTON")); }