void btnReSubmit_Click(object sender, RoutedEventArgs e) { if (Meetinginfo != null) { if (Meetinginfo.meetinginfo.CHECKSTATE == "2" || meetinginfo.meetinginfo.CHECKSTATE == "3") { MeetingForm form = new MeetingForm(FormTypes.Resubmit, Meetinginfo); EntityBrowser browser = new EntityBrowser(form); browser.FormType = FormTypes.Resubmit; browser.MinHeight = 650; browser.MinWidth = 800; browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent); browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { }, true); } else { Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("CAUTION"), Utility.GetResourceStr("MEETINGINFONORESUBMIT")); } } else { ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "SUBMITAUDIT"), Utility.GetResourceStr("CONFIRMBUTTON")); return; } }
private void btnEdit_Click(object sender, RoutedEventArgs e) { if (Meetinginfo != null) { if (SMT.SaaS.FrameworkUI.Common.Utility.ToolBarButtonOperationPermission(Meetinginfo.meetinginfo, "T_OA_MEETINGINFO", OperationType.Edit, Common.CurrentLoginUserInfo.EmployeeID)) { if (Meetinginfo.meetinginfo.CHECKSTATE == "0" || meetinginfo.meetinginfo.CHECKSTATE == "3") { MeetingForm form = new MeetingForm(FormTypes.Edit, Meetinginfo); EntityBrowser browser = new EntityBrowser(form); browser.FormType = FormTypes.Edit; browser.MinHeight = 580; browser.MinWidth = 800; browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent); browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { }, true); } else { //Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("CAUTION"), Utility.GetResourceStr("MEETINGINFONOTEDIT")); ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("TIPS"), Utility.GetResourceStr("MEETINGINFONOTEDIT"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation); } } else { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("TIPS"), Utility.GetResourceStr("YOUDONOTHAVEPERMISSIONTOOPERATETHEDATA"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation); } } else { ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "EDIT"), Utility.GetResourceStr("CONFIRMBUTTON")); return; } }
private void btnNew_Click(object sender, RoutedEventArgs e) { //T_OA_MEETINGINFO info = new T_OA_MEETINGINFO(); V_MeetingInfo MeetingInfoT = new V_MeetingInfo(); MeetingForm form = new MeetingForm(FormTypes.New, MeetingInfoT); EntityBrowser browser = new EntityBrowser(form); browser.MinHeight = 580; browser.MinWidth = 800; browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent); browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { },true); }
void btnAudit_Click(object sender, RoutedEventArgs e) { //throw new NotImplementedException(); if (Meetinginfo != null) { if (Meetinginfo.meetinginfo.CHECKSTATE == "2") { Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("CAUTION"), Utility.GetResourceStr("INOFSUBMITEDNOTEDIT")); return; } else { if (checkState == "0") //未提交的审核 { //SumbitFlow(audit, tmpInfoT); } else { if (checkState == "1" || checkState == "4") //待审核 或正审核 { MeetingForm form = new MeetingForm(FormTypes.Audit, Meetinginfo); EntityBrowser browser = new EntityBrowser(form); browser.FormType = FormTypes.Audit; browser.MinWidth = 800; browser.MinHeight = 580; browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent); browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { }); } } } } else { ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "AUDIT"), Utility.GetResourceStr("CONFIRMBUTTON")); return; } }