/// <summary> /// 每行的审核事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnReview_Click(object sender, System.Windows.RoutedEventArgs e) { if (DtGrid.SelectedItem != null) { //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), "功能未实现"); // 1s 冉龙军 //ComplainProcess form = new ComplainProcess(FormTypes.Audit, ((T_HR_KPIRECORD)DtGrid.SelectedItem).KPIRECORDID, ""); //ComplainProcess form = new ComplainProcess(FormTypes.Audit, ((V_KPIRECORD)DtGrid.SelectedItem).T_HR_KPIRECORD.KPIRECORDID, ""); // 1e PerformanceComplain form = new PerformanceComplain(FormTypes.Audit, ((V_KPIRECORD)DtGrid.SelectedItem).T_HR_KPIRECORD.KPIRECORDID, ""); EntityBrowser browser = new EntityBrowser(form); browser.FormType = FormTypes.Audit; //form.MinHeight = 350; form.MinWidth = 500; browser.ReloadDataEvent += new EntityBrowser.refreshGridView(LoadData); browser.Show<string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { }); } else { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "AUDIT"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation); } }
/// <summary> /// 每行的提出申诉事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnComplain_Click(object sender, System.Windows.RoutedEventArgs e) { if (DtGrid.SelectedItem != null) { V_KPIRECORD tmpEnt = DtGrid.SelectedItems[0] as V_KPIRECORD; if (SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID != tmpEnt.T_HR_KPIRECORD.APPRAISEEID) { //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("只能申诉自己的考核")); ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("CAUTION"), Utility.GetResourceStr("只能申诉自己的考核"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation); return; } // 1s 冉龙军 //ComplainProcess form = new ComplainProcess(FormTypes.New, ((T_HR_KPIRECORD)DtGrid.SelectedItem).KPIRECORDID, ""); //ComplainProcess form = new ComplainProcess(FormTypes.New, ((V_KPIRECORD)DtGrid.SelectedItem).T_HR_KPIRECORD.KPIRECORDID, ""); // 1e PerformanceComplain form = new PerformanceComplain(FormTypes.New, ((V_KPIRECORD)DtGrid.SelectedItem).T_HR_KPIRECORD.KPIRECORDID, ""); EntityBrowser browser = new EntityBrowser(form); browser.FormType = FormTypes.New; form.MinHeight = 350; form.MinWidth = 500; browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent); browser.Show<string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { }); } else { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "EDIT"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation); } }