public override void OnPageLoad(object sender, EventArgs e) { facade = new LeaveWordQueryFacade(this); filter = new LeaveWordQueryFilter(); model = new LeaveWordQueryVM(); model.CompanyCode = Newegg.Oversea.Silverlight.ControlPanel.Core.CPApplication.Current.CompanyCode; model.ChannelID = "1"; model.IsValidCase = false; QuerySection.DataContext = model; model.CreateTimeFrom = DateTime.Now.AddDays(-3); model.CreateTimeTo = DateTime.Now; comProcessStatus.ItemsSource = EnumConverter.GetKeyValuePairs <CommentProcessStatus>(EnumConverter.EnumAppendItemType.All); comOverTime.ItemsSource = EnumConverter.GetKeyValuePairs <OverTimeStatus>(EnumConverter.EnumAppendItemType.All); facade.GetLeaveWordProcessUser((s, args) => { if (args.FaultsHandle()) { return; } BizEntity.Common.UserInfo all = new BizEntity.Common.UserInfo(); //all.SysNo = 0; all.UserName = ResKeywords.Option_All; List <BizEntity.Common.UserInfo> list = args.Result; list.Add(all); comProcessUser.ItemsSource = list; }); base.OnPageLoad(sender, e); }
public override void OnPageLoad(object sender, EventArgs e) { facade = new NewsAdvReplyQueryFacade(this); model = new NewsAdvReplyQueryVM(); model.ChannelID = "1"; QuerySection.DataContext = model; filter = new NewsAdvReplyQueryFilter(); model.CompanyCode = Newegg.Oversea.Silverlight.ControlPanel.Core.CPApplication.Current.CompanyCode; showStatus.ItemsSource = EnumConverter.GetKeyValuePairs <ECCentral.BizEntity.MKT.NewsAdvReplyStatus>(EnumConverter.EnumAppendItemType.All); comIsUploadImage.ItemsSource = EnumConverter.GetKeyValuePairs <ECCentral.BizEntity.MKT.NYNStatus>(EnumConverter.EnumAppendItemType.All); CodeNamePairHelper.GetList("MKT", "CommentsCategory", CodeNamePairAppendItemType.All, (obj, args) => { if (args.FaultsHandle()) { return; } comCommentCategory.ItemsSource = args.Result; }); facade.GetNewAdvReplyCreateUsers((obj, args) => { if (args.FaultsHandle()) { return; } BizEntity.Common.UserInfo select = new BizEntity.Common.UserInfo(); select.UserID = "0"; select.UserName = ECCentral.BizEntity.Enum.Resources.ResCommonEnum.Enum_All; List <BizEntity.Common.UserInfo> source = args.Result; source.Add(select); lastEditUsers.ItemsSource = source; }); showStatus.SelectedIndex = 0; lastEditUsers.SelectedIndex = 0; comCommentCategory.SelectedIndex = 0; comIsUploadImage.SelectedIndex = 0; base.OnPageLoad(sender, e); }