Ejemplo n.º 1
0
 void btnEdit_Click(object sender, RoutedEventArgs e)
 {
     if (DtGrid.SelectedItems.Count > 0)
     {
         T_HR_EMPLOYEECONTRACT tempEnt = DtGrid.SelectedItems[0] as T_HR_EMPLOYEECONTRACT;
         //if (!SMT.SaaS.FrameworkUI.Common.Utility.ToolBarButtonOperationPermission(tempEnt, "T_HR_EMPLOYEECONTRACT", 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;
         //}
         EmployeeContractForm form = new EmployeeContractForm(FormTypes.Edit, tempEnt.EMPLOYEECONTACTID);
         EntityBrowser browser = new EntityBrowser(form);
         browser.FormType = FormTypes.Edit;
         form.MinHeight = 450;
         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", "EDIT"),
      Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
     }
 }
Ejemplo n.º 2
0
 void btnAudit_Click(object sender, RoutedEventArgs e)
 {
     if (DtGrid.SelectedItems.Count > 0)
     {
         T_HR_EMPLOYEECONTRACT temp = DtGrid.SelectedItems[0] as T_HR_EMPLOYEECONTRACT;
         EmployeeContractForm form = new EmployeeContractForm(FormTypes.Audit, temp.EMPLOYEECONTACTID);
         EntityBrowser browser = new EntityBrowser(form);
         browser.FormType = FormTypes.Audit;
         form.MinHeight = 450;
         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);
     }
 }
Ejemplo n.º 3
0
        void btnNew_Click(object sender, RoutedEventArgs e)
        {
            //Utility.OpenNewTask("SMT.HRM.UI.Form.Personnel.EmployeeContractForm,SMT.HRM.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null",null);

            EmployeeContractForm form = new EmployeeContractForm(FormTypes.New, "");
            EntityBrowser browser = new EntityBrowser(form);
            form.MinHeight = 450;
            browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
            browser.Show<string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { });
        }