本文整理汇总了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) => { });
}
示例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;
}
}
示例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) => { });
}
}
示例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;
}
}
示例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) => { });
}
示例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) => { });
}
示例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) => { });
}
示例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();
}
示例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) =>{});
}
示例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) => { });
}
示例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) => { });
}
示例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("对不起,您没有修改该用户报销的权限"));
}
}
示例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) => { });
}
示例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) => { });
}
示例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) => { });
}