Пример #1
0
 void btnReSubmit_Click(object sender, RoutedEventArgs e)
 {
     ObservableCollection<T_OA_MAINTENANCEAPP> selectItems = GetSelectList();
     if (selectItems != null)
     {
         MaintenanceAppForm form = new MaintenanceAppForm(FormTypes.Resubmit);
         form.ConserVation = selectItems[0];
         EntityBrowser browser = new EntityBrowser(form);
         browser.FormType = FormTypes.Resubmit;
         browser.MinWidth = 750;
         browser.MinHeight = 600;
         browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
         browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { }, true);
     }
     else
         ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "ReSubmit"), Utility.GetResourceStr("CONFIRMBUTTON"));
 }
Пример #2
0
 //修改
 private void btnEdit_Click(object sender, RoutedEventArgs e)
 {
     ObservableCollection<T_OA_MAINTENANCEAPP> selectInfoList = GetSelectList();
     if (selectInfoList != null && selectInfoList.Count > 0)
     {
         selApporvalInfo = selectInfoList.FirstOrDefault();
         selApporvalInfo = selectInfoList[0];
         if (selApporvalInfo.CHECKSTATE == ((int)CheckStates.UnSubmit).ToString() || selApporvalInfo.CHECKSTATE == ((int)CheckStates.UnApproved).ToString())
         {
             MaintenanceAppForm form = new MaintenanceAppForm(FormTypes.Edit);
             form.EditState = "update";
             form.ConserVation = selectInfoList[0];
             EntityBrowser browser = new EntityBrowser(form);
             browser.FormType = FormTypes.Edit;
             browser.MinWidth = 750;
             browser.MinHeight = 550;
             browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
             browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });
         }
         else
         {
             Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("NOTONLYCANMODIFYTHEDATASUBMITTED"));
             return;
         }
     }
     else
         ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "UPDATE"), Utility.GetResourceStr("CONFIRMBUTTON"));
 }
Пример #3
0
 //新建
 private void btnNew_Click(object sender, RoutedEventArgs e)
 {
     MaintenanceAppForm form = new MaintenanceAppForm(FormTypes.New);
     form.EditState = "add";
     EntityBrowser browser = new EntityBrowser(form);
     browser.MinWidth = 750;
     browser.MinHeight = 550;
     browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
     browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });
 }