예제 #1
0
 void BtnView_Click(object sender, RoutedEventArgs e)
 {
     if (DtGrid.SelectedItems.Count > 0)
     {
         T_HR_CUSTOMGUERDONRECORD             tempid = DtGrid.SelectedItems[0] as T_HR_CUSTOMGUERDONRECORD;
         Form.Salary.TemporaryPayrollEditForm form   = new SMT.HRM.UI.Form.Salary.TemporaryPayrollEditForm(FormTypes.Browse, tempid.CUSTOMGUERDONRECORDID);
         form.IsEnabled = false;
         EntityBrowser browser = new EntityBrowser(form);
         form.MinHeight           = 250;
         browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
         browser.Show <string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { });
     }
     else
     {
         Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("SELECTERROR", "EDIT"));
     }
 }
예제 #2
0
 void BtnView_Click(object sender, RoutedEventArgs e)
 {
     if (DtGrid.SelectedItems.Count > 0)
     {
         T_HR_CUSTOMGUERDONRECORD tempid = DtGrid.SelectedItems[0] as T_HR_CUSTOMGUERDONRECORD;
         Form.Salary.TemporaryPayrollEditForm form = new SMT.HRM.UI.Form.Salary.TemporaryPayrollEditForm(FormTypes.Browse, tempid.CUSTOMGUERDONRECORDID);
         form.IsEnabled = false;
         EntityBrowser browser = new EntityBrowser(form); 
         form.MinHeight = 250;
         browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
         browser.Show<string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { });
     }
     else
     {
         Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("SELECTERROR", "EDIT"));
     }
 }