private void InitQueryFilter() { MultiValuesItem<ExtOrgObj> item = new MultiValuesItem<ExtOrgObj>(); SMT.Saas.Tools.PersonnelWS.T_HR_EMPLOYEE ep = new Saas.Tools.PersonnelWS.T_HR_EMPLOYEE(); ep.EMPLOYEECNAME = DataCore.CurrentUser.Text; ep.EMPLOYEEID = DataCore.CurrentUser.Value.ToString(); List<ExtOrgObj> list = new List<ExtOrgObj>() { new ExtOrgObj { ObjectInstance = ep } }; item.Values = list; item.Text = ep.EMPLOYEECNAME; lkObject.SelectItem = item; lkObject.DataContext = item; lkObject.DisplayMemberPath = "Text"; DateTime dtSystem = DataCore.SystemSetting.UPDATEDATE.Value; dtSystem = dtSystem.AddDays(1 - dtSystem.Day); // 开始日期 // DatePicker dpStart = this.expander.FindChildControl<DatePicker>("dpStart"); dpStart.SelectedDate = dtSystem; // 结束日期 // DatePicker dpEnd = this.expander.FindChildControl<DatePicker>("dpEnd"); dpEnd.SelectedDate = dtSystem.AddMonths(1).AddSeconds(-1); }
private void InitQueryFilter() { //Button btnFind = this.expander.FindChildControl<Button>("btnFind"); btnFind.IsEnabled = true; // 查询对象 // LookUp lkObject = this.expander.FindChildControl<LookUp>("lkObject"); MultiValuesItem <ExtOrgObj> item = new MultiValuesItem <ExtOrgObj>(); SMT.Saas.Tools.PersonnelWS.T_HR_EMPLOYEE ep = new Saas.Tools.PersonnelWS.T_HR_EMPLOYEE(); ep.EMPLOYEECNAME = DataCore.CurrentUser.Text; ep.EMPLOYEEID = DataCore.CurrentUser.Value.ToString(); List <ExtOrgObj> list = new List <ExtOrgObj>() { new ExtOrgObj { ObjectInstance = ep } }; item.Values = list; item.Text = ep.EMPLOYEECNAME; lkObject.SelectItem = item; lkObject.DataContext = item; lkObject.DisplayMemberPath = "Text"; }
private void InitQueryFilter() { MultiValuesItem <ExtOrgObj> item = new MultiValuesItem <ExtOrgObj>(); SMT.Saas.Tools.PersonnelWS.T_HR_EMPLOYEE ep = new Saas.Tools.PersonnelWS.T_HR_EMPLOYEE(); ep.EMPLOYEECNAME = DataCore.CurrentUser.Text; ep.EMPLOYEEID = DataCore.CurrentUser.Value.ToString(); List <ExtOrgObj> list = new List <ExtOrgObj>() { new ExtOrgObj { ObjectInstance = ep } }; item.Values = list; item.Text = ep.EMPLOYEECNAME; lkObject.SelectItem = item; lkObject.DataContext = item; lkObject.DisplayMemberPath = "Text"; DateTime dtSystem = DataCore.SystemSetting.UPDATEDATE.Value; dtSystem = dtSystem.AddDays(1 - dtSystem.Day); // 开始日期 // DatePicker dpStart = this.expander.FindChildControl<DatePicker>("dpStart"); dpStart.SelectedDate = dtSystem; // 结束日期 // DatePicker dpEnd = this.expander.FindChildControl<DatePicker>("dpEnd"); dpEnd.SelectedDate = dtSystem.AddMonths(1).AddSeconds(-1); }
private void InitQueryFilter() { Button btnFind = this.expander.FindChildControl<Button>("btnFind"); btnFind.IsEnabled = true; // 预算类型 ComboBox cbbBudgetType = this.expander.FindChildControl<ComboBox>("cbbBudgetType"); CommonFunction.FillQueryComboBox<BudgetTypeData>(cbbBudgetType); ITextValueItem allItem = DataCore.AllSelectdData; cbbBudgetType.DisplayMemberPath = "Text"; cbbBudgetType.SelectedItem = allItem; // 查询对象 LookUp lkObject = this.expander.FindChildControl<LookUp>("lkObject"); MultiValuesItem<ExtOrgObj> item = new MultiValuesItem<ExtOrgObj>(); SMT.Saas.Tools.PersonnelWS.T_HR_EMPLOYEE ep = new Saas.Tools.PersonnelWS.T_HR_EMPLOYEE(); ep.EMPLOYEECNAME = DataCore.CurrentUser.Text; ep.EMPLOYEEID = DataCore.CurrentUser.Value.ToString(); List<ExtOrgObj> list = new List<ExtOrgObj>() { new ExtOrgObj { ObjectInstance = ep } }; item.Values = list; item.Text = ep.EMPLOYEECNAME; lkObject.SelectItem = item; lkObject.DataContext = item; lkObject.DisplayMemberPath = "Text"; }
//#region 打印按钮 //private void btnPrint_Click(object sender, RoutedEventArgs e) //{ // var obj = DaGr.SelectedItems; // if (obj == null || obj.Count == 0) // { // ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("TIPS"), Utility.GetResourceStr("SELECTERROR", "PRINT"), Utility.GetResourceStr("CONFIRMBUTTON"), MessageIcon.Exclamation); // return; // } // if (RepayEntity != null) // { // RepayApplyReport DetailWin = new RepayApplyReport(RepayEntity.REPAYAPPLYMASTERID); // CommonReportsView browser = new CommonReportsView(null, DetailWin, DetailWin.view) { EntityEditor = DetailWin }; // browser.Show<string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { }, true, RepayEntity.REPAYAPPLYMASTERID); // //RepayEntity = null; // } // else // { // ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "PRINT"), Utility.GetResourceStr("CONFIRMBUTTON")); // return; // } //} //#endregion #region 重新加载数据 /// <summary> /// 设置查询参数初始值 /// </summary> private void InitQueryFilter() { SMT.FBAnalysis.UI.CommonTools.MultiValuesItem <ExtOrgObj> item = new SMT.FBAnalysis.UI.CommonTools.MultiValuesItem <ExtOrgObj>(); SMT.Saas.Tools.PersonnelWS.T_HR_EMPLOYEE ep = new Saas.Tools.PersonnelWS.T_HR_EMPLOYEE(); ep.EMPLOYEECNAME = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeName; ep.EMPLOYEEID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID; List <ExtOrgObj> list = new List <ExtOrgObj>() { new ExtOrgObj { ObjectInstance = ep } }; item.Values = list; item.Text = ep.EMPLOYEECNAME; lkOrg.SelectItem = item; lkOrg.DataContext = item; lkOrg.DisplayMemberPath = "Text"; // 开始日期 dpStart.SelectedDate = DateTime.Now.AddDays(-30); // 结束日期 dpEnd.SelectedDate = DateTime.Now.AddDays(1).AddSeconds(-1); }
private void InitQueryFilter() { Button btnFind = this.expander.FindChildControl <Button>("btnFind"); btnFind.IsEnabled = true; // 预算类型 ComboBox cbbBudgetType = this.expander.FindChildControl <ComboBox>("cbbBudgetType"); CommonFunction.FillQueryComboBox <BudgetTypeData>(cbbBudgetType); ITextValueItem allItem = DataCore.AllSelectdData; cbbBudgetType.DisplayMemberPath = "Text"; cbbBudgetType.SelectedItem = allItem; // 查询对象 LookUp lkObject = this.expander.FindChildControl <LookUp>("lkObject"); MultiValuesItem <ExtOrgObj> item = new MultiValuesItem <ExtOrgObj>(); SMT.Saas.Tools.PersonnelWS.T_HR_EMPLOYEE ep = new Saas.Tools.PersonnelWS.T_HR_EMPLOYEE(); ep.EMPLOYEECNAME = DataCore.CurrentUser.Text; ep.EMPLOYEEID = DataCore.CurrentUser.Value.ToString(); List <ExtOrgObj> list = new List <ExtOrgObj>() { new ExtOrgObj { ObjectInstance = ep } }; item.Values = list; item.Text = ep.EMPLOYEECNAME; lkObject.SelectItem = item; lkObject.DataContext = item; lkObject.DisplayMemberPath = "Text"; }
/// <summary> /// 设置查询参数初始值 /// </summary> private void InitQueryFilter() { SMT.FBAnalysis.UI.CommonTools.MultiValuesItem<ExtOrgObj> item = new SMT.FBAnalysis.UI.CommonTools.MultiValuesItem<ExtOrgObj>(); SMT.Saas.Tools.PersonnelWS.T_HR_EMPLOYEE ep = new Saas.Tools.PersonnelWS.T_HR_EMPLOYEE(); ep.EMPLOYEECNAME = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeName; ep.EMPLOYEEID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID; List<ExtOrgObj> list = new List<ExtOrgObj>() { new ExtOrgObj { ObjectInstance = ep } }; item.Values = list; item.Text = ep.EMPLOYEECNAME; lkOrg.SelectItem = item; lkOrg.DataContext = item; lkOrg.DisplayMemberPath = "Text"; // 开始日期 dpStart.SelectedDate = DateTime.Now.AddDays(-30); // 结束日期 dpEnd.SelectedDate = DateTime.Now.AddDays(1).AddSeconds(-1); }