Exemple #1
0
 void BtnView_Click(object sender, RoutedEventArgs e)
 {
     if (DtGrid.SelectedItems.Count > 0)
     {
         T_HR_BLACKLIST tmpStandard = DtGrid.SelectedItems[0] as T_HR_BLACKLIST;
         BlackListForm2 form = new BlackListForm2(FormTypes.Browse, tmpStandard.BLACKLISTID);
         EntityBrowser browser = new EntityBrowser(form);
         browser.FormType = FormTypes.Browse;
         browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
         form.MinWidth = 470;
         form.MinHeight = 300;
         browser.Show<string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { });
     }
     else
     {
         //ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTDATAALERT"), Utility.GetResourceStr("CONFIRMBUTTON"));
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "VIEW"),
     Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
     }
 }
Exemple #2
0
        void btnEdit_Click(object sender, RoutedEventArgs e)
        {
            if (DtGrid.SelectedItems.Count > 0)
            {
                T_HR_BLACKLIST tmpStandard = DtGrid.SelectedItems[0] as T_HR_BLACKLIST;
                if (!SMT.SaaS.FrameworkUI.Common.Utility.ToolBarButtonOperationPermission(tmpStandard, "T_HR_BLACKLIST", SMT.SaaS.FrameworkUI.OperationType.Edit, SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID))
                {
                    ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("CAUTION"), Utility.GetResourceStr("NOEDITPERMISSION"),
                  Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
                    return;
                }
                BlackListForm2 form = new BlackListForm2(FormTypes.Edit, tmpStandard.BLACKLISTID);
                EntityBrowser browser = new EntityBrowser(form);

                browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
                form.MinWidth = 470;
                form.MinHeight = 300;
                browser.Show<string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { });
            }
            else
            {
                //ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTDATAALERT"), Utility.GetResourceStr("CONFIRMBUTTON"));
                ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "EDIT"),
              Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
            }
        }
Exemple #3
0
 void btnNew_Click(object sender, RoutedEventArgs e)
 {
     BlackListForm2 form = new BlackListForm2(FormTypes.New, "");
     EntityBrowser browser = new EntityBrowser(form);
     
     browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
     form.MinWidth = 470;
     form.MinHeight = 300;
     browser.Show<string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) =>{});
 }