Exemple #1
0
        void btnEdit_Click(object sender, RoutedEventArgs e)
        {
            if (DtGrid.SelectedItems.Count > 0)
            {
                T_HR_EMPLOYEECHECK temp = DtGrid.SelectedItems[0] as T_HR_EMPLOYEECHECK;
                if (temp.CHECKSTATE != Convert.ToInt32(CheckStates.UnSubmit).ToString())
                {
                    ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("CAUTION"), Utility.GetResourceStr("NOTONLYCANMODIFYTHEDATASUBMITTED"),
              Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);

                    return;
                }
                EmployeeCheckForm form = new EmployeeCheckForm(FormTypes.Edit, temp.BEREGULARID);
                EntityBrowser browser = new EntityBrowser(form);
                browser.FormType = FormTypes.Edit;
                form.MinWidth = 500;
                form.MinHeight = 310;
                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);
            }
        }
Exemple #2
0
 void btnAudit_Click(object sender, RoutedEventArgs e)
 {
     if (DtGrid.SelectedItems.Count > 0)
     {
         T_HR_EMPLOYEECHECK temp = DtGrid.SelectedItems[0] as T_HR_EMPLOYEECHECK;
         EmployeeCheckForm form = new EmployeeCheckForm(FormTypes.Audit, temp.BEREGULARID);
         EntityBrowser browser = new EntityBrowser(form);
         browser.FormType = FormTypes.Audit;
         form.MinWidth = 500;
         form.MinHeight = 310;
         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);
     }
 }
Exemple #3
0
 void btnNew_Click(object sender, RoutedEventArgs e)
 {
     EmployeeCheckForm form = new EmployeeCheckForm(FormTypes.New, "");
     EntityBrowser browser = new EntityBrowser(form);
     form.MinWidth = 500;
     form.MinHeight = 310;
     browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
     browser.Show<string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { });
 }