Beispiel #1
0
        /// <summary>
        /// 编辑
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void btnEdit_Click(object sender, RoutedEventArgs e)
        {
            string strSchedulingTemplateMasterID = string.Empty;
            if (dgSTList.SelectedItems == null)
            {
                ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "EDIT"), Utility.GetResourceStr("CONFIRMBUTTON"));
                return;
            }

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

            T_HR_SCHEDULINGTEMPLATEMASTER ent = dgSTList.SelectedItems[0] as T_HR_SCHEDULINGTEMPLATEMASTER;
            strSchedulingTemplateMasterID = ent.TEMPLATEMASTERID.ToString();

            SchedulingTemplateForm formSchedulingTemplate = new SchedulingTemplateForm(FormTypes.Edit, strSchedulingTemplateMasterID);
            EntityBrowser entBrowser = new EntityBrowser(formSchedulingTemplate);
            entBrowser.FormType = FormTypes.Edit;
            
            entBrowser.ReloadDataEvent += new EntityBrowser.refreshGridView(entBrowser_ReloadDataEvent);
            entBrowser.Show<string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) =>{});
        }
Beispiel #2
0
 /// <summary>
 /// 新增
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void btnNew_Click(object sender, RoutedEventArgs e)
 {
     string strSchedulingTemplateMasterID = string.Empty;
     SchedulingTemplateForm formSchedulingTemplate = new SchedulingTemplateForm(FormTypes.New, strSchedulingTemplateMasterID);
     EntityBrowser entBrowser = new EntityBrowser(formSchedulingTemplate);
     entBrowser.FormType = FormTypes.New;
     
     entBrowser.ReloadDataEvent += new EntityBrowser.refreshGridView(entBrowser_ReloadDataEvent);
     entBrowser.Show<string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { });
 }