/// <summary> /// 弹出表单子窗口,以便编辑带薪假设置 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void btnEdit_Click(object sender, RoutedEventArgs e) { string strFreeLeaveDaySetID = string.Empty; if (dgFreeLeaveDaySetList.SelectedItems == null) { ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "EDIT"), Utility.GetResourceStr("CONFIRMBUTTON")); return; } if (dgFreeLeaveDaySetList.SelectedItems.Count == 0) { ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "EDIT"), Utility.GetResourceStr("CONFIRMBUTTON")); return; } T_HR_FREELEAVEDAYSET ent = dgFreeLeaveDaySetList.SelectedItems[0] as T_HR_FREELEAVEDAYSET; strFreeLeaveDaySetID = ent.FREELEAVEDAYSETID.ToString(); FreeLeaveDaySetForm formFreeLeaveDaySet = new FreeLeaveDaySetForm(FormTypes.Edit, strFreeLeaveDaySetID, null); EntityBrowser entBrowser = new EntityBrowser(formFreeLeaveDaySet); 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 strFreeLeaveDaySetID = string.Empty; FreeLeaveDaySetForm formFreeLeaveDaySet = new FreeLeaveDaySetForm(FormTypes.New, strFreeLeaveDaySetID, null); EntityBrowser entBrowser = new EntityBrowser(formFreeLeaveDaySet); entBrowser.FormType = FormTypes.New; entBrowser.ReloadDataEvent += new EntityBrowser.refreshGridView(entBrowser_ReloadDataEvent); entBrowser.Show <string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { }); }