예제 #1
0
 void btnEdit_Click(object sender, RoutedEventArgs e)
 {
     if (DtGrid.SelectedItems.Count > 0)
     {
         T_HR_PENSIONMASTER temp = DtGrid.SelectedItems[0] as T_HR_PENSIONMASTER;
         //if (!SMT.SaaS.FrameworkUI.Common.Utility.ToolBarButtonOperationPermission(temp, "T_HR_PENSIONMASTER", 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;
         //}
         PensionMasterForm form = new PensionMasterForm(FormTypes.Edit, temp.PENSIONMASTERID);
         EntityBrowser browser = new EntityBrowser(form);
         browser.FormType = FormTypes.Edit;
         form.MinHeight = 370.0;
         browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
         form.MinWidth = 470;
         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);
     }
 }
예제 #2
0
  void btnAudit_Click(object sender, RoutedEventArgs e)
  {
      if (DtGrid.SelectedItems.Count > 0)
      {
          T_HR_PENSIONMASTER temp = DtGrid.SelectedItems[0] as T_HR_PENSIONMASTER;
          PensionMasterForm form = new PensionMasterForm(FormTypes.Audit, temp.PENSIONMASTERID);
          EntityBrowser browser = new EntityBrowser(form);
          browser.FormType = FormTypes.Audit;
          browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
          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", "AUDIT"),
 Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
      }
  }
예제 #3
0
        void btnNew_Click(object sender, RoutedEventArgs e)
        {
            PensionMasterForm form = new PensionMasterForm(FormTypes.New, "");
            EntityBrowser browser = new EntityBrowser(form);

            browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
            form.MinHeight = 370.0;

            form.MinWidth = 470;
            browser.Show<string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { });
        }