Exemple #1
0
        /// <summary>
        /// 弹出表单子窗口,编辑班次定义
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnEdit_Click(object sender, RoutedEventArgs e)
        {
            string strShiftDefineID = string.Empty;
            if (dgSEList.SelectedItems == null)
            {
                ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "EDIT"), Utility.GetResourceStr("CONFIRMBUTTON"));
                return;
            }

            if (dgSEList.SelectedItems.Count == 0)
            {
                ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "EDIT"), Utility.GetResourceStr("CONFIRMBUTTON"));
                return;
            }

            T_HR_SHIFTDEFINE ent = dgSEList.SelectedItems[0] as T_HR_SHIFTDEFINE;
            strShiftDefineID = ent.SHIFTDEFINEID.ToString();

            ShiftDefineForm formShiftDefine = new ShiftDefineForm(FormTypes.Edit, strShiftDefineID);
            EntityBrowser entBrowser = new EntityBrowser(formShiftDefine);
            entBrowser.FormType = FormTypes.Edit;
            
            entBrowser.ReloadDataEvent += new EntityBrowser.refreshGridView(entBrowser_ReloadDataEvent);
            entBrowser.Show<string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) =>{});
        }
Exemple #2
0
        /// <summary>
        /// 弹出表单子窗口,新增班次定义
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnNew_Click(object sender, RoutedEventArgs e)
        {
            string strShiftDefineID = string.Empty;
            ShiftDefineForm formShiftDefine = new ShiftDefineForm(FormTypes.New, strShiftDefineID);
            EntityBrowser entBrowser = new EntityBrowser(formShiftDefine);
            entBrowser.FormType = FormTypes.New;
            entBrowser.ReloadDataEvent += new EntityBrowser.refreshGridView(entBrowser_ReloadDataEvent);
            entBrowser.Show<string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) =>{});

        }