コード例 #1
0
ファイル: Satisfaction.xaml.cs プロジェクト: JuRogn/OA
 private void btnNew_Click(object sender, RoutedEventArgs e)//新增
 {
     SatisfactionSurveyChildWindow form = new SatisfactionSurveyChildWindow(FormTypes.New,"");
     EntityBrowser browser = new EntityBrowser(form);
     browser.FormType = FormTypes.New;
     browser.MinHeight = 300;
     browser.MinWidth = 580;
     browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
     browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { }, true);
 }
コード例 #2
0
ファイル: Satisfaction.xaml.cs プロジェクト: JuRogn/OA
 private void btnAudit_Click(object sender, RoutedEventArgs e)//审核
 {
     ObservableCollection<V_Satisfaction> selectItems = GetSelectList();
     if (selectItems != null)
     {
         V_Satisfaction ent = dg.SelectedItems[0] as V_Satisfaction;
         if (ent.RequireMaster.CHECKSTATE == ((int)CheckStates.Approving).ToString() ||
             ent.RequireMaster.CHECKSTATE == ((int)CheckStates.WaittingApproval).ToString() ||
             ent.RequireMaster.CHECKSTATE == ((int)CheckStates.UnSubmit).ToString())
         {
             SatisfactionSurveyChildWindow form = new SatisfactionSurveyChildWindow(FormTypes.Audit, ent.RequireMaster.SATISFACTIONMASTERID);
             EntityBrowser browser = new EntityBrowser(form);
             browser.FormType = FormTypes.Audit;
             browser.MinHeight = 550;
             browser.MinWidth = 750;
             browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
             browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { }, true);
         }
         else
         {
             Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("SELECTRECORDNOTOPERATEPLEASEAGAIN"));
             return;
         }
     }
     else
         ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "AUDIT"), Utility.GetResourceStr("CONFIRMBUTTON"));
 }
コード例 #3
0
ファイル: Satisfaction.xaml.cs プロジェクト: JuRogn/OA
 private void BtnView_Click(object sender, RoutedEventArgs e)//查看
 {
     ObservableCollection<V_Satisfaction> selectItems = GetSelectList();
     if (selectItems != null)
     {
         SatisfactionSurveyChildWindow form = new SatisfactionSurveyChildWindow(FormTypes.Browse, "");
         EntityBrowser browser = new EntityBrowser(form);
         browser.FormType = FormTypes.Browse;
         browser.MinHeight = 550;
         browser.MinWidth = 750;
         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", "VIEW"), Utility.GetResourceStr("CONFIRMBUTTON"));
 }
コード例 #4
0
ファイル: Satisfaction.xaml.cs プロジェクト: JuRogn/OA
 private void btnEdit_Click(object sender, RoutedEventArgs e)//修改
 {
     ObservableCollection<V_Satisfaction> selectItems = GetSelectList();
     if (selectItems != null)
     {
         V_Satisfaction ent = dg.SelectedItems[0] as V_Satisfaction;
         if (ent.RequireMaster.CHECKSTATE == ((int)CheckStates.UnSubmit).ToString() || ent.RequireMaster.CHECKSTATE == ((int)CheckStates.UnApproved).ToString())
         {
             SatisfactionSurveyChildWindow form = new SatisfactionSurveyChildWindow(FormTypes.Edit,ent.RequireMaster.SATISFACTIONMASTERID);
             EntityBrowser browser = new EntityBrowser(form);
             browser.FormType = FormTypes.Edit;
             browser.MinHeight = 500;
             browser.MinWidth = 650;
             browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
             browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { }, true);
         }
         else
         {
             ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("NOTONLYCANMODIFYTHEDATASUBMITTED"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
             return;
         }
     }
     else
     {
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("SELECTDATAALERT"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
     }
 }