protected void DayPilotCalendar1_Refresh(object sender, RefreshEventArgs e) { DayPilotCalendar1.StartDate = e.StartDate; defineColumns(); DayPilotCalendar1.DataBind(); DayPilotCalendar1.Update(CallBackUpdateType.Full); }
public void Ctor_Object(object componentChanged, Type expectedTypeChanged) { var args = new RefreshEventArgs(componentChanged); Assert.Same(componentChanged, args.ComponentChanged); Assert.Equal(expectedTypeChanged, args.TypeChanged); }
private void OnComponentRefreshed(RefreshEventArgs e) { if (e.ComponentChanged != null) { this.OnComponentChanged(this, new ComponentChangedEventArgs(e.ComponentChanged, null, null, null)); } }
public void Ctor_Type(Type typeChanged) { var args = new RefreshEventArgs(typeChanged); Assert.Null(args.ComponentChanged); Assert.Same(typeChanged, args.TypeChanged); }
/// <summary> /// Called by TypeDescriptor when a type changes. If this type is currently holding /// our verb, invalidate the list. /// </summary> private void OnTypeRefreshed(RefreshEventArgs e) { if (_verbSourceType != null && _verbSourceType.IsAssignableFrom(e.TypeChanged)) { _currentVerbs = null; } }
/// <summary> /// 不许实现的获取数据方法 /// </summary> /// <param name="e"></param> /// <returns></returns> public override System.Data.DataTable GetData(RefreshEventArgs e) { CJia.HISOLAP.App.Tools.DBHelper.DBSwitchover(DBType.PIVAS); string sql = @"SELECT T.*,rownum rn FROM (SELECT DD.DRUG_NAME, DD.TOXI_PROPERTY, DD.DRUG_FORM, DD.DRUG_SPEC, SUM(IBD.Costs) AMOUNT FROM INP_BILL_DETAIL IBD, DRUG_DICT DD WHERE IBD.ITEM_CODE = DD.DRUG_CODE AND IBD.BILLING_DATE_TIME BETWEEN ? AND ?"; if (!e.IsSelectAllDept) { sql += " and ibd.ordered_by in (" + CJia.HISOLAP.App.Tools.Help.GetDeptString(e.SelectDepts) + ")"; } sql += @" GROUP BY DD.DRUG_NAME, DD.TOXI_PROPERTY, DD.DRUG_FORM, DD.DRUG_SPEC ORDER BY AMOUNT DESC) T where rownum<21"; object[] ob = new object[] { e.SelectStartDateTime, e.SelectEndDateTime }; DataTable data = CJia.DefaultOleDb.Query(sql, ob); CJia.HISOLAP.App.Tools.DBHelper.DBSwitchover(DBType.BI); data = DataTableHelper.GetRealColName(data); data = DataTableHelper.UpdateColName(data, new Dictionary <int, string>() { { 1, "药品名称" }, { 2, " 药品类型 " }, { 3, " 药品剂型 " }, { 4, " 药品规格 " }, { 5, " 金额 " }, { 6, " 序号 " } }); return(data); }
private void OnTypeDescriptorRefresh(RefreshEventArgs r) { if (r.ComponentChanged == this._filterDesigner) { this._filter = null; this._filterDesigner = null; } }
public void Ctor_Object() { object componentChanged = "componentChanged"; var args = new RefreshEventArgs(componentChanged); Assert.Same(componentChanged, args.ComponentChanged); Assert.Equal(typeof(string), args.TypeChanged); }
private void TypeDescriptor_Refreshed(RefreshEventArgs e) { if (this._service == null) { return; } this._service.Clear(); }
private void OnTypeDescriptorRefreshed(RefreshEventArgs e) { if (!Dispatcher.CheckAccess()) { Dispatcher.Invoke(new RefreshEventHandler(OnTypeDescriptorRefreshedInvoke), e); } else { OnTypeDescriptorRefreshedInvoke(e); } }
private void MainRowList_OnRefresh(object sender, RefreshEventArgs e) { if (!Loading) { MainRowList.Clear(); SortBy = null; foreach (var sortDesc in MainRowList.SortDescriptions) { SortBy = SortBy + "it." + sortDesc.PropertyName + (sortDesc.Direction == ListSortDirection.Ascending ? " ASC" : " DESC"); } GetMaindata(); } }
protected void iggRAMGauge_AsyncRefresh(object sender, RefreshEventArgs e) { try { RadialGauge rad = this.iggRAMGauge.Gauges[0] as RadialGauge; rad.Scales[0].Markers[0].Value = double.Parse(this.iggRAMGauge.ValueFromClient); } catch (Exception ex) { StackTrace stackTrace = new StackTrace(); APTLog.LogException(ex, stackTrace.GetFrame(0).GetMethod().Name, APT2012AssemblyInfo.AssemblyInfo, APT2012AssemblyInfo.SUBSYSTEM); //throw ex; } }
private void DetailsList_OnRefresh(object sender, RefreshEventArgs e) { if (!Loading) { SelectedMainRow.DetailsList.Clear(); DetailSortBy = null; foreach (var sortDesc in SelectedMainRow.DetailsList.SortDescriptions) { DetailSortBy = DetailSortBy + "it." + sortDesc.PropertyName + (sortDesc.Direction == ListSortDirection.Ascending ? " ASC" : " DESC"); } if (SelectedMainRow != null) { GetDetailData(); } } }
private void OnTypeDescriptorRefreshedInvoke(RefreshEventArgs e) { if (currentObjects != null) { for (var i = 0; i < currentObjects.Length; i++) { var typeChanged = e.TypeChanged; if (currentObjects[i] == e.ComponentChanged || typeChanged != null && typeChanged.IsInstanceOfType(currentObjects[i])) { // clear our property hashes //DoReload(); UpdateBrowsable(); return; } } } }
protected async void OnRefreshEvent(RefreshEventArgs e) { if (e.Rediscover) { await this.DeinitializeLifxClient(); await Task.Delay(1000); await this.InitializeLifxClient(); } else { foreach (LifxItem item in this.Items) { item.Update().RunAsync(); } } }
private static void TypeDescriptorRefreshed(RefreshEventArgs e) { if (e.ComponentChanged != null) { // We don't care about component changes, since they don't impact what attributes are provided for a property. return; } RuntimeTypeHandle typeChangedHandle = e.TypeChanged.TypeHandle; Dictionary <RuntimeTypeHandle, List <MemberInfoKey> > dependencies = DomainTypeDescriptor.PropertyTypeDependencies; if (dependencies.ContainsKey(typeChangedHandle)) { Dictionary <MemberInfoKey, AttributeCollection> attributesCache = DomainTypeDescriptor.PropertyInfoAttributesCache; lock (attributesCache) { foreach (MemberInfoKey memberInfoKey in dependencies[typeChangedHandle]) { // Clear out the attributes cache for every property that is dependent on the type that was refreshed. attributesCache[memberInfoKey] = null; } } } }
/// <summary> /// 不许实现的获取数据方法 /// </summary> /// <param name="e"></param> /// <returns></returns> public override System.Data.DataTable GetData(RefreshEventArgs e) { CJia.HISOLAP.App.Tools.DBHelper.DBSwitchover(DBType.PIVAS); string sql = @"SELECT DEPT_NAME, 90 DDDs FROM PAT_VISIT PV, DEPT_DICT GDV WHERE PV.DEPT_ADMISSION_TO = GDV.DEPT_CODE AND PV.DISCHARGE_DATE_TIME BETWEEN ? and ? "; if (!e.IsSelectAllDept) { sql += " and PV.DEPT_ADMISSION_TO in (" + CJia.HISOLAP.App.Tools.Help.GetDeptString(e.SelectDepts) + ")"; } sql += " GROUP BY DEPT_NAME"; object[] ob = new object[] { e.SelectStartDateTime, e.SelectEndDateTime }; DataTable data = CJia.DefaultOleDb.Query(sql, ob); CJia.HISOLAP.App.Tools.DBHelper.DBSwitchover(DBType.BI); data = DataTableHelper.GetRealColName(data); data = DataTableHelper.UpdateColName(data, new Dictionary <int, string>() { { 0, "病区名称" }, { 1, " DDDs " } }); return(data); }
/// <summary> /// 不许实现的获取数据方法 /// </summary> /// <param name="e"></param> /// <returns></returns> public override System.Data.DataTable GetData(RefreshEventArgs e) { CJia.HISOLAP.App.Tools.DBHelper.DBSwitchover(DBType.PIVAS); string sql = @"SELECT DD.DEPT_NAME, SUM(IBD.COSTS) AMOUNT, '' DDDS FROM INP_BILL_DETAIL IBD, DEPT_DICT DD WHERE IBD.ORDERED_BY = DD.DEPT_CODE AND IBD.BILLING_DATE_TIME BETWEEN ? AND ?"; if (!e.IsSelectAllDept) { sql += " and DD.DEPT_CODE in (" + CJia.HISOLAP.App.Tools.Help.GetDeptString(e.SelectDepts) + ")"; } sql += @" GROUP BY DD.DEPT_NAME ORDER BY AMOUNT"; object[] ob = new object[] { e.SelectStartDateTime, e.SelectEndDateTime }; DataTable data = CJia.DefaultOleDb.Query(sql, ob); CJia.HISOLAP.App.Tools.DBHelper.DBSwitchover(DBType.BI); data = DataTableHelper.GetRealColName(data); data = DataTableHelper.UpdateColName(data, new Dictionary <int, string>() { { 0, "科室名称" }, { 1, " 金额 " }, { 2, "DDDs" } }); return(data); }
private static void TypeDescriptorRefreshed(RefreshEventArgs args) { _valueSerializers = new Hashtable(); }
/// <summary> /// Raises after the site has finished refreshing. /// </summary> /// <param name="args">The <see cref="Rendition.InitEventArgs"/> instance containing the event data.</param> internal void raiseOnAfterRefresh(RefreshEventArgs args) { if(AfterRefresh != null) { AfterRefresh(this, args); }; }
/// <summary> /// Refreshes the site cache. /// </summary> /// <param name="site">The site.</param> public static void RefreshSiteData( Site site ) { ( "Read site_configuration table." ).Debug( 9 ); // if this instance lacks a database connection to a // rendition database, well, that's ok if (site.readSiteConfigFromSQL()) { ("Loading site Cache.").Debug(9); site.Defaults = new Site.SiteDefaults(site); ("Loading site image placeholders...").Debug(9, true); site.SiteImagePlaceholders = new SiteImagePlaceholders(site); ("Loading users...").Debug(9, true); site.Users = new Commerce.Users(site); site.NullUser = site.Users.List.Find(delegate(Commerce.User u) { return u.UserId == 0; }); //( "Loading galleries..." ).Debug( 9, true ); //site.Galleries = new Commerce.Galleries( site ); ("Loading redirectors...").Debug(9, true); site.Redirectors = new Commerce.Redirectors(site); ("Loading reviews...").Debug(9, true); site.Reviews = new Commerce.Reviews(site); ("Loading replies...").Debug(9, true); site.Replies = new Commerce.Replies(site); //( "Loading Blog categories..." ).Debug( 9, true ); //site.Blogs = new Commerce.Blogs( site ); ("Loading item properties...").Debug(9, true); site.Properties = new Commerce.Properties(site); ("Loading menus...").Debug(9, true); site.Menus = new Commerce.Menus(site); ("Loading Carriers...").Debug(9, true); site.Carriers = new Commerce.Carriers(site); ("Loading shipping rates...").Debug(9, true); site.Rates = new Commerce.Rates(site); ("Loading zones...").Debug(9, true); site.Zones = new Commerce.Zones(site); ("Loading zip to zone...").Debug(9, true); site.ZipToZones = new Commerce.ZipToZones(site); ("Loading countries...").Debug(9, true); site.Countries = new Commerce.Countries(site); ("Loading discounts...").Debug(9, true); site.Discounts = new Commerce.Discounts(site); ("Loading site specific item images...").Debug(9, true); site.ItemImages = new Commerce.ItemImages(site); ("Loading original item images...").Debug(9, true); site.RenderedImages = new Commerce.RenderedImages(site); ("Loading bill of materials...").Debug(9, true); site.BillOfMaterials = new Commerce.BillOfMaterials(site); ("Loading item swatches...").Debug(9, true); site.Swatches = new Commerce.Swatches(site); ("Loading item sizes...").Debug(9, true); site.Sizes = new Commerce.Sizes(site); ("Building items...").Debug(9, true); site.Items = new Commerce.Items(site); ("Building category hierarchies...").Debug(9, true); site.Categories = new Commerce.Categories(site); ("Loading SEO List Meta Utilities...").Debug(9, true); site.SeoListMetaUtilities = new Commerce.SeoListMetaUtilities(site); ("Loading Flag Types...").Debug(9, true); site.FlagTypes = new Commerce.FlagTypes(site); ("Loading Term Types...").Debug(9, true); site.Terms = new Commerce.Terms(site); ("Loading Site Sections...").Debug(9, true); site.SiteSections = new Commerce.SiteSections(site); } RefreshEventArgs args = new RefreshEventArgs(site , System.Web.HttpContext.Current); site.raiseOnAfterRefresh(args); ( "Cache refresh complete." ).Debug( 8 ); }
private void KinectTools_Refresh(RefreshEventArgs e) { this.ImageSource = this.m_kinectTools.ImageRenvoyer; this.ImgMain.Source = this.ImageSource; }
protected void DayPilotMonth1_Refresh(object sender, RefreshEventArgs e) { DayPilotMonth1.StartDate = e.StartDate; DayPilotMonth1.DataBind(); DayPilotMonth1.Update(); }
public void OnRefresh(object sender, RefreshEventArgs e) { Refresh(e.Recursive); }
protected void DayPilotCalendar1_Refresh(object sender, RefreshEventArgs e) { DayPilotCalendar1.StartDate = DayPilot.Utils.Week.FirstDayOfWeek(e.StartDate); DayPilotCalendar1.DataBind(); DayPilotCalendar1.Update(CallBackUpdateType.Full); }
/// <summary> /// Extends BeginInvoke so that when a state object is not needed, null does not need to be passed. /// <example> /// refresheventhandler.BeginInvoke(e, callback); /// </example> /// </summary> public static IAsyncResult BeginInvoke(this RefreshEventHandler refresheventhandler, RefreshEventArgs e, AsyncCallback callback) { if (refresheventhandler == null) { throw new ArgumentNullException("refresheventhandler"); } return(refresheventhandler.BeginInvoke(e, callback, null)); }
/// <summary> /// Handles the OnRefresh event of the DataList control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="SilverlightApplication.CustomSort.RefreshEventArgs"/> instance containing the event data.</param> void DataList_OnRefresh(object sender, RefreshEventArgs e) { GetData(); }