/// <summary> /// 审核 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void btnAudit_Click(object sender, RoutedEventArgs e) { string strID = string.Empty; if (dgAttSolAsignList.SelectedItems == null) { ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "APPOVALBUTTON"), Utility.GetResourceStr("CONFIRMBUTTON")); return; } if (dgAttSolAsignList.SelectedItems.Count == 0) { ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "APPOVALBUTTON"), Utility.GetResourceStr("CONFIRMBUTTON")); return; } T_HR_NOATTENDCARDEMPLOYEES entAttSolAsign = dgAttSolAsignList.SelectedItems[0] as T_HR_NOATTENDCARDEMPLOYEES; strID = entAttSolAsign.NOATTENDCARDEMPLOYEESID; NoAttendCardEmployeesForm formAttSolAsign = new NoAttendCardEmployeesForm(FormTypes.Audit, strID); EntityBrowser entBrowser = new EntityBrowser(formAttSolAsign); formAttSolAsign.MinWidth = 600; formAttSolAsign.MinHeight = 240; entBrowser.ReloadDataEvent += new EntityBrowser.refreshGridView(entBrowser_ReloadDataEvent); entBrowser.FormType = FormTypes.Audit; entBrowser.Show<string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { }); }
/// <summary> /// 弹出表单子窗口,以便新增考勤方案应用 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void btnNew_Click(object sender, RoutedEventArgs e) { //Utility.CreateFormFromEngine("862E6FA9-AB18-4D1F-A10E-46ED56EAD481", "SMT.HRM.UI.Form.Attendance.NoAttendCardEmployeesForm", "Audit"); //return; string strAttendanceSolutionAsignID = string.Empty; NoAttendCardEmployeesForm formAttendanceSolutionAsign = new NoAttendCardEmployeesForm(FormTypes.New, strAttendanceSolutionAsignID); EntityBrowser entBrowser = new EntityBrowser(formAttendanceSolutionAsign); formAttendanceSolutionAsign.MinWidth = 600; formAttendanceSolutionAsign.MinHeight = 240; entBrowser.FormType = FormTypes.New; entBrowser.ReloadDataEvent += new EntityBrowser.refreshGridView(entBrowser_ReloadDataEvent); entBrowser.Show<string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) =>{}); }