private void btnEdit_Click(object sender, RoutedEventArgs e)
 {
     selectedList = GetSelectList();
     if (selectedList == null)
     {
         ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("TIPS"), Utility.GetResourceStr("SELECTERROR", "EDIT"), Utility.GetResourceStr("CONFIRMBUTTON"));
         return;
     }
     if (SMT.SaaS.FrameworkUI.Common.Utility.ToolBarButtonByOperationControl(selectedList[0], OperationType.Edit, Common.CurrentLoginUserInfo.EmployeeID))
     {
         T_OA_WORKRECORD workerCordInfo = selectedList[0];
         WorkerCordForm frmWorkerCord = new WorkerCordForm(workerCordInfo, "update");
         EntityBrowser browser = new EntityBrowser(frmWorkerCord);
         browser.MinWidth = 580;
         browser.MinHeight = 505;
         browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
         browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { }, true);
     }
     else
     {
         Utility.ShowCustomMessage(MessageTypes.Caution, Utility.GetResourceStr("TIPS"), Utility.GetResourceStr("YOUDONOTHAVEPERMISSIONTOOPERATETHEDATA"));
     }
 }
 void BtnView_Click(object sender, RoutedEventArgs e)
 {
     selectedList = GetSelectList();
     if (selectedList == null)
     {
         ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("TIPS"), Utility.GetResourceStr("SELECTERROR", "VIEW"), Utility.GetResourceStr("CONFIRMBUTTON"));
         return;
     }
     T_OA_WORKRECORD workerCordInfo = selectedList[0];
     WorkerCordForm frmWorkerCord = new WorkerCordForm(workerCordInfo, "view");
     EntityBrowser browser = new EntityBrowser(frmWorkerCord);
     browser.FormType = FormTypes.Browse;
     browser.MinWidth = 580;
     browser.MinHeight = 505;
     browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
     browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { }, true);
 }
 private void btnNew_Click(object sender, RoutedEventArgs e)
 {
     WorkerCordForm frmWorkerCord = new WorkerCordForm(null, "add");
     EntityBrowser browser = new EntityBrowser(frmWorkerCord);
     browser.MinWidth = 580;
     browser.MinHeight = 505;
     browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
     browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { }, true);
 }