Beispiel #1
0
 void btnReSubmit_Click(object sender, RoutedEventArgs e)
 {
     ///TODO: 重新提交审核
     if (DtGrid.SelectedItems.Count > 0)
     {
         T_HR_EMPLOYEESALARYPOSTASIGN tmpEnt = DtGrid.SelectedItems[0] as T_HR_EMPLOYEESALARYPOSTASIGN;
         if (tmpEnt.CHECKSTATE != "3")
         {
             ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), "只有审核未通过的才可以重新提交", Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
             return;
         }
         else
         {
             Form.Salary.EmployeeBalancePostAddForm form = new Form.Salary.EmployeeBalancePostAddForm(FormTypes.Resubmit, tmpEnt.EMPLOYEESALARYPOSTASIGNID);
             EntityBrowser browser = new EntityBrowser(form);
             form.MinWidth            = 600;
             form.MinHeight           = 240;
             browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
             browser.FormType         = FormTypes.Resubmit;
             browser.Show <string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { });
         }
     }
     else
     {
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("SELECTERROR", "AUDIT"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
         //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("SELECTERROR", "AUDIT"));
         return;
     }
 }
Beispiel #2
0
 void btnReSubmit_Click(object sender, RoutedEventArgs e)
 {
     ///TODO: 重新提交审核
     if (DtGrid.SelectedItems.Count > 0)
     {
         
         T_HR_EMPLOYEESALARYPOSTASIGN tmpEnt = DtGrid.SelectedItems[0] as T_HR_EMPLOYEESALARYPOSTASIGN;
         if (tmpEnt.CHECKSTATE != "3")
         {
             ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), "只有审核未通过的才可以重新提交", Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
             return;
         }
         else
         {
             Form.Salary.EmployeeBalancePostAddForm form = new Form.Salary.EmployeeBalancePostAddForm(FormTypes.Resubmit, tmpEnt.EMPLOYEESALARYPOSTASIGNID);
             EntityBrowser browser = new EntityBrowser(form);
             form.MinWidth = 600;
             form.MinHeight = 240;
             browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
             browser.FormType = FormTypes.Resubmit;
             browser.Show<string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { });
         }
     }
     else
     {
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("SELECTERROR", "AUDIT"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
         //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("SELECTERROR", "AUDIT"));
         return;
     }
 }