/// <summary> /// 弹出表单子窗口,以便编辑考勤异常扣款定义 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void btnEdit_Click(object sender, RoutedEventArgs e) { string strAttendanceDeductMasterId = string.Empty; if (dgAttDedMasSetList.SelectedItems == null) { ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "EDIT"), Utility.GetResourceStr("CONFIRMBUTTON")); return; } if (dgAttDedMasSetList.SelectedItems.Count == 0) { ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "EDIT"), Utility.GetResourceStr("CONFIRMBUTTON")); return; } T_HR_ATTENDANCEDEDUCTMASTER ent = dgAttDedMasSetList.SelectedItems[0] as T_HR_ATTENDANCEDEDUCTMASTER; strAttendanceDeductMasterId = ent.DEDUCTMASTERID.ToString(); AttendanceDeductMasterForm formAttDedMas = new AttendanceDeductMasterForm(FormTypes.Edit, strAttendanceDeductMasterId); EntityBrowser entBrowser = new EntityBrowser(formAttDedMas); formAttDedMas.MinWidth = 630; formAttDedMas.MinHeight = 580; entBrowser.FormType = FormTypes.Edit; entBrowser.ReloadDataEvent += new EntityBrowser.refreshGridView(entBrowser_ReloadDataEvent); 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) { string strVacationID = string.Empty; AttendanceDeductMasterForm formAttDedMas = new AttendanceDeductMasterForm(FormTypes.New, strVacationID); EntityBrowser entBrowser = new EntityBrowser(formAttDedMas); formAttDedMas.MinWidth = 630; formAttDedMas.MinHeight = 580; entBrowser.FormType = FormTypes.New; entBrowser.ReloadDataEvent += new EntityBrowser.refreshGridView(entBrowser_ReloadDataEvent); entBrowser.Show <string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { }); }