当前位置: 首页>>代码示例>>C#>>正文


C# FrameworkUI.EntityBrowser类代码示例

本文整理汇总了C#中SMT.SaaS.FrameworkUI.EntityBrowser的典型用法代码示例。如果您正苦于以下问题:C# EntityBrowser类的具体用法?C# EntityBrowser怎么用?C# EntityBrowser使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


EntityBrowser类属于SMT.SaaS.FrameworkUI命名空间,在下文中一共展示了EntityBrowser类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: _ImgButtonEducationTotal_Click

 /// <summary>
 /// 员工年龄分析表
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void _ImgButtonEducationTotal_Click(object sender, RoutedEventArgs e)
 {
     ChartAgeReportFrom formShiftDefine = new ChartAgeReportFrom();
     EntityBrowser entBrowser = new EntityBrowser(formShiftDefine);
     entBrowser.FormType = FormTypes.New;
     entBrowser.Show<string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { });
 }
开发者ID:JuRogn,项目名称:OA,代码行数:12,代码来源:ReporstMainPage.xaml.cs

示例2: btnReSubmit_Click

 void btnReSubmit_Click(object sender, RoutedEventArgs e)
 {
     if (Meetinginfo != null)
     {
         if (Meetinginfo.meetinginfo.CHECKSTATE == "2" || meetinginfo.meetinginfo.CHECKSTATE == "3")
         {
             MeetingForm form = new MeetingForm(FormTypes.Resubmit, Meetinginfo);
             EntityBrowser browser = new EntityBrowser(form);
             browser.FormType = FormTypes.Resubmit;
             browser.MinHeight = 650;
             browser.MinWidth = 800;
             browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
             browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { }, true);
         }
         else
         {
             Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("CAUTION"), Utility.GetResourceStr("MEETINGINFONORESUBMIT"));
         }
     }
     else
     {
         ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "SUBMITAUDIT"), Utility.GetResourceStr("CONFIRMBUTTON"));
         return;
     }
 }
开发者ID:JuRogn,项目名称:OA,代码行数:25,代码来源:MeetingManagementInfos.xaml.cs

示例3: TravelapplicationPage_Click

        void TravelapplicationPage_Click(object sender, RoutedEventArgs e)
        {
            string strLeaveTypeSetID = string.Empty;
            if (DaGr.SelectedItems == null)
            {
                Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("SELECTDATAALERT"));
                return;
            }

            if (DaGr.SelectedItems.Count == 0)
            {
                Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("SELECTDATAALERT"));
                return;
            }

            for (int i = 0; i < DaGr.SelectedItems.Count; i++)
            {
                T_OA_AGENTDATESET ent = DaGr.SelectedItems[i] as T_OA_AGENTDATESET;

                AgentAgingSetForm AddWin = new AgentAgingSetForm(FormTypes.Edit, ent.AGENTDATESETID);
                EntityBrowser browser = new EntityBrowser(AddWin);
                browser.FormType = FormTypes.Edit;
                browser.MinWidth = 550;
                browser.MinHeight = 220;
                browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
                browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });
            }
        }
开发者ID:JuRogn,项目名称:OA,代码行数:28,代码来源:AgentAgingSet.xaml.cs

示例4: btnReSubmit_Click

 void btnReSubmit_Click(object sender, RoutedEventArgs e)
 {
     if (Meetingroomapp != null)
     {
         if (Meetingroomapp.roomapp.CHECKSTATE == "2" || Meetingroomapp.roomapp.CHECKSTATE == "3")
         {
             MeetingRoomAppForm AddWin = new MeetingRoomAppForm(FormTypes.Resubmit, Meetingroomapp.roomapp, Meetingroomapp.room);
             EntityBrowser browser = new EntityBrowser(AddWin);
             browser.MinHeight = 350;
             browser.MinWidth = 340;
             browser.ReloadDataEvent += new EntityBrowser.refreshGridView(AddWin_ReloadDataEvent);
             browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });
             Meetingroomapp = null;
         }
         else
         {
             Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("CAUTION"), Utility.GetResourceStr("MEETINGROOMAPPNOTRESUBMIT"));
         }
     }
     else
     {
         ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTONERECORD"), Utility.GetResourceStr("CONFIRMBUTTON"));
         return;
     }
 }
开发者ID:JuRogn,项目名称:OA,代码行数:25,代码来源:MeetingRoomAppManagement.xaml.cs

示例5: btnEdit_Click

        void btnEdit_Click(object sender, RoutedEventArgs e)
        {
            string strLeaveTypeSetID = string.Empty;
            if (DaGr.SelectedItems == null)
            {
                Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("SELECTDATAALERT"));
                return;
            }

            if (DaGr.SelectedItems.Count == 0)
            {
                Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("SELECTDATAALERT"));
                return;
            }

            T_OA_AGENTSET ent = DaGr.SelectedItems[0] as T_OA_AGENTSET;

            ProxySettingsForm AddWin = new ProxySettingsForm(FormTypes.Edit, ent.AGENTSETID);
            EntityBrowser browser = new EntityBrowser(AddWin);
            browser.FormType = FormTypes.Edit;
            browser.MinWidth = 600;
            browser.MinHeight = 180;
            browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
            browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });
        }
开发者ID:JuRogn,项目名称:OA,代码行数:25,代码来源:ProxySettings.xaml.cs

示例6: Load

 private void Load()
 {
     SetPageColor mode = new SetPageColor();
     EntityBrowser browser = new EntityBrowser(mode);
     mode.MinWidth = 300.0;
     browser.Show<string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { });
 }
开发者ID:JuRogn,项目名称:OA,代码行数:7,代码来源:FunctionSetting.xaml.cs

示例7: btSystemSet_Click

 private void btSystemSet_Click(object sender, RoutedEventArgs e)
 {
     SystemParamSetForm paramset = new SystemParamSetForm();
     EntityBrowser browser = new EntityBrowser(paramset);
     paramset.MinHeight = 400;
     browser.Show<string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { });
 }
开发者ID:JuRogn,项目名称:OA,代码行数:7,代码来源:FunctionSetting.xaml.cs

示例8: btnReSubmit_Click

        void btnReSubmit_Click(object sender, RoutedEventArgs e)
        {
            string strAttendanceSolutionID = string.Empty;
            if (dgEmpLeaveRdList.SelectedItems == null)
            {
                Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("SELECTERROR", "ReSubmit"));
                return;
            }

            if (dgEmpLeaveRdList.SelectedItems.Count == 0)
            {
                Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("SELECTERROR", "ReSubmit"));
                return;
            }


            T_HR_EMPLOYEECANCELLEAVE tmpEnt = dgEmpLeaveRdList.SelectedItems[0] as T_HR_EMPLOYEECANCELLEAVE;

            TerminateLeaveForm form = new TerminateLeaveForm(FormTypes.Resubmit, tmpEnt.CANCELLEAVEID);
            EntityBrowser entBrowser = new EntityBrowser(form);
            //Modified by: Sam
            //Date       : 2011-9-6
            //For        : 此处导致打开Form窗体会出现滚动条
            //form.MinWidth = 820;
            //form.MinHeight = 600;
            entBrowser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
            entBrowser.FormType = FormTypes.Resubmit;
            entBrowser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });            //BindGrid();
        }
开发者ID:JuRogn,项目名称:OA,代码行数:29,代码来源:TerminateLeave.xaml.cs

示例9: btnNew_Click

 void btnNew_Click(object sender, RoutedEventArgs e)
 {
     Form.SysRolePermForms editForm = new SMT.SaaS.Permission.UI.Form.SysRolePermForms(FormTypes.New);
     EntityBrowser browser = new EntityBrowser(editForm);
     
     browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
     browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) =>{});
 }
开发者ID:JuRogn,项目名称:OA,代码行数:8,代码来源:SysRolePerm.xaml.cs

示例10: ButtonMainpostChange_Click

 void ButtonMainpostChange_Click(object sender, RoutedEventArgs e)
 {
     ExpireRemindSetForm form = new ExpireRemindSetForm();
     EntityBrowser browser = new EntityBrowser(form);
     //  form.MinHeight = 390;
     browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
     browser.Show<string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { });
 }
开发者ID:JuRogn,项目名称:OA,代码行数:8,代码来源:EmployeeCheck.xaml.cs

示例11: btnImport_Click

 void btnImport_Click(object sender, RoutedEventArgs e)
 {
     ImportOrgInfoForm form = new ImportOrgInfoForm();
     EntityBrowser browser = new EntityBrowser(form);
     form.MinHeight = 260;
     form.MinWidth = 400;
     browser.Show<string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { });
 }
开发者ID:JuRogn,项目名称:OA,代码行数:8,代码来源:Department.xaml.cs

示例12: myBtn_Click

        private void myBtn_Click(object sender, RoutedEventArgs e)
        {
            Button btn = sender as Button;
            btn.IsEnabled = false;
            if (DaGr.SelectedItems == null)
            {
                ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("TIPS"), Utility.GetResourceStr("SELECTERROR", "OPERATION"), Utility.GetResourceStr("CONFIRMBUTTON"), MessageIcon.Exclamation);
                return;
            }

            if (DaGr.SelectedItems.Count == 0)
            {
                ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("TIPS"), Utility.GetResourceStr("SELECTERROR", "OPERATION"), Utility.GetResourceStr("CONFIRMBUTTON"), MessageIcon.Exclamation);
                return;
            }

            ///luojie 20120808
            ///未报销按钮的权限控制,同修改按钮
            V_Travelmanagement entrb = new V_Travelmanagement();
            entrb = DaGr.SelectedItems[0] as V_Travelmanagement;
            if (SMT.SaaS.FrameworkUI.Common.Utility.ToolBarButtonOperationPermission(entrb, "T_OA_BUSINESSTRIP", OperationType.Edit, Common.CurrentLoginUserInfo.EmployeeID))
            {
                for (int i = 0; i < DaGr.SelectedItems.Count; i++)
                {
                    V_Travelmanagement ent = new V_Travelmanagement();
                    ent = (DaGr.SelectedItems[i] as V_Travelmanagement);

                    reportid = ent.ReportId;
                    businesstrID = ent.Travelmanagement.BUSINESSTRIPID;
                    travelreimbursementId = ent.TrId;
                    Tdetail = ent.Tdetail;
                }

                if (!string.IsNullOrEmpty(travelreimbursementId) && travelreimbursementId != "空" && Tdetail > 0)//如果已生成报销单,直接打开表单提交
                {
                    WhetherReimbursement = false;
                    BusinessApplicationsForm AddWin = new BusinessApplicationsForm(FormTypes.Edit, businesstrID, WhetherReimbursement);
                    EntityBrowser browser = new EntityBrowser(AddWin);
                    browser.RemoveSMTLoading();
                    browser.FormType = FormTypes.Edit;
                    browser.EntityBrowseToolBar.MaxHeight = 0;
                    browser.MinWidth = 980;
                    browser.MinHeight = 445;
                    browser.TitleContent = "出差申请";
                    browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
                    browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });
                }
                else
                {
                    ReimbursementSwitch = true;//出差报销开关
                    Travelmanagement.GetTravelmanagementByIdAsync(businesstrID, btn);
                }
            }
            else
            {
                Utility.ShowCustomMessage(MessageTypes.Caution, Utility.GetResourceStr("CAUTION"), Utility.GetResourceStr("对不起,您没有修改该用户报销的权限"));
            }
        }
开发者ID:JuRogn,项目名称:OA,代码行数:58,代码来源:TravelapplicationPage_AddReimbursement.cs

示例13: btnNew_Click

 void btnNew_Click(object sender, RoutedEventArgs e)
 {
     AssetPurchaseControl AddWin = new AssetPurchaseControl(Action.Add);
     EntityBrowser browser = new EntityBrowser(AddWin);
     browser.MinWidth = 620;
     browser.MinHeight = 450;
     browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
     browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });
 }
开发者ID:JuRogn,项目名称:OA,代码行数:9,代码来源:AssetPurchasePage.xaml.cs

示例14: ButtonMainpostChange_Click

 //
 void ButtonMainpostChange_Click(object sender, RoutedEventArgs e)
 {
     EmployeePostChangeForm form = new EmployeePostChangeForm(FormTypes.New, "");
     form.isMainPostChanged = true;
     EntityBrowser browser = new EntityBrowser(form);
     //  form.MinHeight = 390;
     browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
     browser.Show<string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { });
 }
开发者ID:JuRogn,项目名称:OA,代码行数:10,代码来源:EmployeePostChange.xaml.cs

示例15: AttendYearlyBalance_Click

    void AttendYearlyBalance_Click(object sender, RoutedEventArgs e)
    {
        CalculateEmployeeAttendanceYearlyForm form = new CalculateEmployeeAttendanceYearlyForm();
        EntityBrowser browser = new EntityBrowser(form);
        form.MinHeight = 280.0;
        browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
        browser.Show<string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { });
 
    }        
开发者ID:JuRogn,项目名称:OA,代码行数:9,代码来源:AttendYearlyBalance.xaml.cs


注:本文中的SMT.SaaS.FrameworkUI.EntityBrowser类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。